mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
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)
This commit is contained in:
parent
00c156811f
commit
7f919d5c90
@ -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(); });
|
||||
* }
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user