From 7f919d5c9053deada32ef8c91411b88c00637ade Mon Sep 17 00:00:00 2001 From: Eamon Bauman Date: Fri, 12 May 2017 03:16:48 -0500 Subject: [PATCH] docs(): fix options for prepareInterstitial (#1535) Using the example in the previous version of this document, calling prepareInterstitial(adId) resulted in an "-[__NSCFString count]: unrecognized selector sent to instance" exception. This was alleviated by changing the call to prepareInterstitial({adId: adId}) (e.g. passing in an options object vs. just the adid string) --- src/@ionic-native/plugins/admob/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/admob/index.ts b/src/@ionic-native/plugins/admob/index.ts index 82e4e313a..57d3bd2e2 100644 --- a/src/@ionic-native/plugins/admob/index.ts +++ b/src/@ionic-native/plugins/admob/index.ts @@ -112,7 +112,7 @@ export interface AdExtras { * } else if (this.platform.is('ios')) { * adId = 'YOUR_ADID_IOS'; * } - * this.admob.prepareInterstitial(adId) + * this.admob.prepareInterstitial({adId: adId}) * .then(() => { this.admob.showInterstitial(); }); * } *