From e5b0365d0cf742ba33cb4acc9d1b61b95cef0b2f Mon Sep 17 00:00:00 2001 From: Valentin Klinghammer Date: Thu, 3 Nov 2016 10:41:41 +0100 Subject: [PATCH] Added basic usage description to AdMob --- src/plugins/admob.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/plugins/admob.ts b/src/plugins/admob.ts index 67b8274f9..949725e02 100644 --- a/src/plugins/admob.ts +++ b/src/plugins/admob.ts @@ -5,6 +5,20 @@ import { Observable } from 'rxjs/Observable'; * @name AdMob * @description Plugin for Google Ads, including AdMob / DFP (doubleclick for publisher) and mediations to other Ad networks. * @usage + * ```typescript + * import { AdMob } from 'ionic-native'; + * + * ionViewDidLoad() { + * AdMob.onBannerDismiss() + * .subscribe(() => { console.log('User returned from interstitial'); }); + * } + * + * public onClick() { + * AdMob.prepareInterstitial('YOUR_ADID') + * .then(() => { AdMob.showInterstitial(); }); + * } + * + * ``` * Please refer the the plugin's original repository for detailed usage. */ @Plugin({