From fe89f2bf96ae4acf85edbff22ea2b0f4c69206a2 Mon Sep 17 00:00:00 2001 From: Miquel Date: Sun, 22 Mar 2020 10:52:56 +0100 Subject: [PATCH] fix(admob): fix interstitialAdId parameter typo (#3348) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Miquel Martín --- src/@ionic-native/plugins/admob/index.ts | 26 +++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/admob/index.ts b/src/@ionic-native/plugins/admob/index.ts index 02148445e3..fe2facc235 100644 --- a/src/@ionic-native/plugins/admob/index.ts +++ b/src/@ionic-native/plugins/admob/index.ts @@ -11,7 +11,7 @@ export interface AdmobOptions { /** * (Optional) Your interstitial id code from your AdMob account. Defaults to publisherId */ - interstitialAdId?: string; + interstitiaAdlId?: string; /** * (Optional) Your rewarded id code from your AdMob account. Defaults to publisherId @@ -19,7 +19,27 @@ export interface AdmobOptions { rewardedAdId?: string; /** - * (Optional) Your tappx id for iOS apps. If Admob is configured, it is also used to backfill your lost inventory when there are no Admob ads available + * (Optional) Your ad slot code from your AdSense account. Only for browser platform + */ + adSlot?: string; + + /** + * (Optional) Indicates if show a close button on interstitial browser ads. Only for browser platform + */ + interstitialShowCloseButton?: boolean; + + /** + * (Optional) Indicates the number of seconds that the interstitial ad waits before show the close button. Only for browser platform + */ + secondsToShowCloseButton?: number; + + /** + * (Optional) Indicates the number of seconds that the interstitial ad waits before close the ad. Only for browser platform + */ + secondsToCloseInterstitial?: number; + + /** + * (Optional) Your tappx id for iOS apps. If Admob is configured, it is also used to backfill your lost inventory (when there are no Admob ads available) */ tappxIdiOS?: string; @@ -100,7 +120,7 @@ export interface AdmobOptions { * // Admob options config * const admobOptions: AdmobOptions = { * publisherId: 'XXX-XXXX-XXXX', - * interstitialAdId: 'XXX-XXXX-XXXX', + * interstitialId: 'XXX-XXXX-XXXX', * rewardedAdId: 'XXX-XXXX-XXXX', * isTesting: true, * autoShowBanner: false,