本文介绍了如何添加谷歌AdMob的广告在闪光灯的ios?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试AdMob的广告添加到我的Flash的iOS application.I有安装AdMob的姊(的 HTTPS://$c$c.google.com/p/flash-air-admob-ane-for-ios-and-android/ 一>)增加以下code在时间轴
I am try to add admob ad to my flash for ios application.I have install the admob ane(https://code.google.com/p/flash-air-admob-ane-for-ios-and-android/) add the follow code in timeline
import so.cuo.platform.admob.Admob;
import so.cuo.platform.admob.AdmobEvent;
import so.cuo.platform.admob.AdmobSize;
var admob:Admob=Admob.getInstance();
admob.setKeys("ca-app-pub-17380930385764784/6322941144","ca-app-pub-17380930385764874/4846207943");
admob.showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);
和测试app.xml中的含量
and the content of test-app.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/14.0">
<id>test</id>
<filename>test</filename>
<name>test</name>
<versionNumber>1.0.0</versionNumber>
<initialWindow>
<content>test.swf</content>
<autoOrients>false</autoOrients>
<fullScreen>false</fullScreen>
<visible>false</visible>
</initialWindow>
<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"/>
<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"/>
</application>
</manifest>
]]></manifestAdditions>
</android>
<iPhone>
<InfoAdditions><![CDATA[
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
]]></InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>
</application>
却得到了一个错误,当我运行。
but get a error when I run.
invalid application descriptor unknown namespace http //ns.adobe.com/air/application/14.0
我不知道哪一步cuased这一点。
I do not know what step cuased this.
推荐答案
AIR SDK版本太低。升级的Adobe Flash AIR SDK为14或更高版本。
AIR SDK version is too low. Upgrade adobe flash AIR SDK to version 14 or later.
这篇关于如何添加谷歌AdMob的广告在闪光灯的ios?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!