AdProvider
此内容尚不支持你的语言。
Defined in: services/ads.ts:26
A drop-in ad source for hosts that have none: the editor’s play mode, unit
tests, a web dev build. create* mirrors the platform factories so one seam
serves both; createMockAdProvider is the standard implementation.
Methods
Section titled “Methods”createInterstitialAd()
Section titled “createInterstitialAd()”createInterstitialAd(
adUnitId):PlatformInterstitialAd
Defined in: services/ads.ts:28
Parameters
Section titled “Parameters”adUnitId
Section titled “adUnitId”string
Returns
Section titled “Returns”PlatformInterstitialAd
createRewardedAd()
Section titled “createRewardedAd()”createRewardedAd(
adUnitId):PlatformRewardedAd
Defined in: services/ads.ts:27
Parameters
Section titled “Parameters”adUnitId
Section titled “adUnitId”string
Returns
Section titled “Returns”PlatformRewardedAd