Merge pull request #769 from ValentinKlinghammer/patch-1

docs(admob) Added basic usage description
This commit is contained in:
Max Lynch 2016-11-20 08:12:02 -06:00 committed by GitHub
commit fa624df1da

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