Edit and Add Configuration of Ad platform for airadmin To Published in 2015-07-09 flash air( Read:2466

Edit and Add Configuration of Ad platform

If you want publish app as android apk,you need add config to xxx-app.xml file.

Each ad platform may need some configuration such as permissions and activity or service, according to the platform witch you used add the corresponding configuration. As long as the use of a platform, and that the corresponding configuration platform must added to AndroidManifest.xml

For example admob need to add the following configuration permissions inside AndroidManifest.xml
<Uses-permission android: name = "android.permission.ACCESS_NETWORK_STATE" />
<Uses-permission android: name = "android.permission.ACCESS_WIFI_STATE" />
<Uses-permission android: name = "android.permission.INTERNET" />


active and meta-data information
<Meta-data android: name = "com.google.android.gms.version"
        android: value = "7327000" />
<Activity
            android: name = "com.google.android.gms.ads.AdActivity" android: configChanges = "keyboard | keyboardHidden | orientation | screenLayout | uiMode | screenSize | smallestScreenSize" android: theme = "@ android: style / Theme.Translucent" />

config look like this


<android>
        <manifestAdditions><![CDATA[
			<manifest android:installLocation="auto">
			   <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"/>
			    <uses-permission android:name="android.permission.INTERNET"/>
			    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
			    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
			     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
			     <application >
         <meta-data android:name="com.google.android.gms.version"
        android:value="7327000" />
			  	        <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>


Keymob official support platforms configuration can been found the platform configuration documentation

Next: Used Keymob in as3 code

0 Reviews,0 Participation.

Previous Next 0

Latest comments

No comment Oh!