在Flash中使用milkmangames扩展名不会显示admob广告

时间:2014-01-13 09:47:07

标签: android flash

我已经在android中创建了一个应用程序,我已按照这里所说的一切:http://www.adobe.com/devnet/air/articles/admob-ane-android.html在我的应用中展示广告,但是如果我放置此代码,广告就不会显示:

if(AdMob.isSupported)
{
AdMob.init("my publisher id");
}
else
{
trace("AdMob won't work on this platform!");
return;
}

AdMob.addEventListener(AdMobErrorEvent.FAILED_TO_RECEIVE_AD,onFailedReceiveAd);
function onFailedReceiveAd(e:AdMobErrorEvent):void
{
trace("Ad failed to load.");
}


AdMob.showAd(AdMobAdType.BANNER,AdMobAlignment.LEFT,AdMobAlignment.BOTTOM);

首先,其他所有代码都不再有效,如果我将此代码放在所有其余代码下方,该应用程序可以正常工作,但广告从未显示过,有人知道我如何展示我的广告吗?

3 个答案:

答案 0 :(得分:1)

如果您在模拟器上进行测试,AdMob.isSupported将始终返回false。因此,您必须在设备上进行测试才能测试AdMob。

答案 1 :(得分:0)

我注意到牛奶的名字Admob ANE有一些问题。突然没有广告,我的意思是不会在一段时间内显示单个广告。送牛奶游戏广告如有更改,恕不另行通知。起初我认为这是谷歌的错,但统一广告工作得很好。由于这个原因,人们正在减少大笔资金。 也许谷歌阻止了牛奶运动员游戏ANE的广告?

答案 2 :(得分:0)

我遇到了类似的问题,并写信给Milkman。他们礼貌地建议我阅读手册 - GettingStarted.pdf,当然,还有关于正确设置-app.xml的说明。

您需要在-app.xml的android部分中包含某些manifestAddition:

select  distinct a.date,
   a.Location,
   b.C,
   c.EB,
   d.p,
   e.amt

   from (select * from test1 group by date,location) as A
   left outer join
        (select date,count(*) as C, location from test1 where pTypeCode = "C" group by date,location) as b
   on a.date = b.date
   and a.location = b.location     
   left outer join
        (select date,count(*) as EB, location from test1 where pTypeCode = "EB" group by date,location) as c
   on a.date = c.date
   and a.location = c.location    
   left outer join
        (select date,count(*) as P, location from test1 where pTypeCode = "P" group by date,location) as d
   on a.date = d.date
   and a.location = d.location     
   left outer join
        (select date,location,sum(Amt) as Amt, location from test1 group by date, location) as e
   on a.date = e.date
   and a.location = e.location
   order by a.date,a.location;