From part 2, we're success create all we need both code and button for control ads and special debugging step, but that's not enough. We need to adjust and config which part via text editor and brilliant thing will coming on screen.
AIR for Android Settings
In flash goto "File > AIR 23.0 for Android Settings..." then on "General" tab check setting should be like below image and you should see "AdMob.ane" in list of "Included files". Goto tab "Permissions" and check on "Manually manage permissions and manifest additions in the application descriptor file.".
Config Application-app.xml
Open your "AdMobCC2017-app.xml" via text editor (I'm use Sublime Text), it' should place inside folder same fla file. From previous step we've check manual configuration this file, so we need to add first base permissions like below after "<versionLabel></versionLabel>", enter to new line and place below code.
<android>
<manifestAdditions>
<![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application>
<meta-data android:name="com.google.android.gms.version" android:value="8487000" />
<!-- should be 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"/>
</application>
</manifest>]]>
</manifestAdditions>
</android>
<extensions>
<extensionID>com.pozirk.ads.AdMob</extensionID>
</extensions>
and add tag extension refer to ANE like above (if it's already exist in this xml file, you don't need it more.) Don't forget to save file and re-check all edit again.
Publish to Android Device
Last thing you need Android devices (Phone or Tablet), please prepare it........then ok, in flash goto "File > AIR 23.0 for Android Settings...". Goto tab "Deployment" and click "create" (if you don't have filename.p12 file exist), fill any text field with your data or test by my sample data is ok,
Publisher name: gamedevtodied
Organization unit: gamedevtodied
Organization name: gamedevtodied
Country: US
Password: gamedevtodied
Confirm password: gamedevtodied
Type: 2048-RSA
Validity period: 25 years
then click "Save as" to your project folder and click "OK", you should see notice dialog "Self-signed certificate has been created." mean your sign was success created. Connect your android device via usb cable. You must "Allow USB debugging" tap "OK". Connect your android to 3G/4G/WIFI, my android OS version is 4.4.2. (It's work only Android 4.0 or above).
Back to AIR for Android Settings on tab "Deployment", filled "Password" field and check setting as below image. "Android deployment type" choose "Device release", "AIR runtime" choose "Embed AIR runtime with application", "After publishing" check "Install application on selected Android devices" and "Launch application on selected Android devices". If your android devices not show under "Device Serial No" after connected via usb, please click "Refresh". Then click "Publish". When your app has success installed on device, test via tap button "BANNER" and "INTERSTITIAL" and see what happen. If you're not clear about this part just back to part 2 and try again on it.
Free Download



please make toutorial video i cant make like this steps
ReplyDeleteGood idea, this weekend i will make an update via video tutorial.
DeleteThis comment has been removed by the author.
ReplyDeletehello brother..thank you so much..i have a problem if you can help me ..please
ReplyDelete