mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
Added basic usage description to AdMob
This commit is contained in:
parent
88f6ecf250
commit
e5b0365d0c
@ -5,6 +5,20 @@ import { Observable } from 'rxjs/Observable';
|
|||||||
* @name AdMob
|
* @name AdMob
|
||||||
* @description Plugin for Google Ads, including AdMob / DFP (doubleclick for publisher) and mediations to other Ad networks.
|
* @description Plugin for Google Ads, including AdMob / DFP (doubleclick for publisher) and mediations to other Ad networks.
|
||||||
* @usage
|
* @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.
|
* Please refer the the plugin's original repository for detailed usage.
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
|
Loading…
Reference in New Issue
Block a user