Skip to content

Commit

Permalink
improved example
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor committed Nov 24, 2017
1 parent 116341a commit f9e9206
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@ protected function onEvent(ae:AdEvent):void
//showing smart-size ad at the bottom center side of the screen
_admob.show("AD_UNIT_ID", AdParams.SIZE_SMART_BANNER, AdParams.HALIGN_CENTER, AdParams.VALIGN_BOTTOM);
//hide ad
//hiding ad
_admob.hide();
//caching and showing interstitial ad
//caching interstitial ad
_admob.cacheInterstitial("AD_UNIT_ID");
...
//showing interstitial ad, make sure it's cached first
_admob.showInterstitial();
...
_admob.setVolume(vol); //set volume of the ad, 0-1 range, where 0 - mute, 1 - max volume.
//setting volume of the interstitial ad, can have sound, if it's video
_admob.setVolume(vol); //0-1 range, where 0 - mute, 1 - max volume (default, I guess).
```

# Games with AdMob
Expand Down

0 comments on commit f9e9206

Please sign in to comment.