Added basic usage description to AdMob

This commit is contained in:
Valentin Klinghammer 2016-11-03 10:41:41 +01:00 committed by GitHub
parent 88f6ecf250
commit e5b0365d0c

View File

@ -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({