------
If you are Finished a Project and put it on the Google Play Store. If you created the Application Using Adobe Flash CS6 and Flash Develop AS3.
If you want to put Ads on your game using Admob but can't seem to do it to save the life of me. then this can help you .
1.first you need download adobe air sdk 20 or later,and upgrade your ide air sdk,then download admob plugin for adobe flash air from https://github.com/lilili87222/admob-for-flash/
2. add adobe air admob plugin to your mobile project ,it ease in flash cc ,flash builder or flash developer.
3.then you can call admob api with as3,the following is same sample code
init Admob in flash air,this need call before call other api,banner id and institial id can got from admob
```
var admob:Admob=Admob.getInstance();
admob.setKeys("your admob banner id","your admob institial id");
```
### show simple admob banner in adobe air app
```
admob.showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);
```
###show admob Interstitial ad (full screen ad)
```
if (admob.isInterstitialReady())// check ad has cached ,if true show it
{
admob.showInterstitial();
}
else
{
admob.cacheInterstitial();
}
```
### add admob activity and permission . you need add in application-app.xml ,remember this is reqired for air android app
```
<android>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent"/>
</application>
</manifest>
]]></manifestAdditions>
</android>
```
That is all,is that easy?
hi, can you make a tutorial video?
回复删除yes, please. video tutorial how to use it would be great.
回复删除thank you.