我在库路径中使用了此代码和ANE文件,但广告没有显示请帮助我。?
http://code.google.com/p/flash-air-admob-ane-for-ios-and-android/( 旧链接> http://code.google.com/p/flash-air-admob-ane-for-ios/)
我将ANE文件放在链接
之上import flash.display.Sprite;
import so.cuo.platform.admob.Admob;
import so.cuo.platform.admob.AdmobPosition;
function SimpleDemo()
{
var admob:Admob = Admob.getInstance();
trace(admob.supportDevice)
if (admob.supportDevice)
{
admob.setKeys("k9c0d6c840db6180439d2e7add2bf014");
admob.showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);
}
else
{
txt.text=" Device not support"
}
}
SimpleDemo()
答案 0 :(得分:0)
1.用你的自我身份ID替换admob id
2.将SimpleDemo()更改为新的SimpleDemo()
3.config xxx-app.xml