Livecode交互式广告Android

时间:2013-02-26 23:32:33

标签: android ads livecode

我在Android平台上正在使用Livecode v5.5.4 ...我已经能够成功发布应用程序了,但是,无法弄清楚如何安装有趣的广告...因为LC已与他们合作他们合作提供方向,表明它像......一样简单。

mobileAdRegister "YOUR-AD-KEY" //I've replaced with my APP ID from inneractive

local tDetails

put "30" into tDetails["refresh"] // The advert refresh interval in seconds
put 25 into tDetails["age"] // The age of the target audience
put "male" into tDetails["gender"] // The expected gender of the target audience 
mobileAdCreate "myAd1", "banner", (0,0), tDetails

然而,似乎没有任何工作......任何LC ppl都有建议吗?...谢谢

2 个答案:

答案 0 :(得分:2)

如果Mark的建议没有报告错误,您可能希望确保它可见:

mobileAddSetVisible "myAd1",true

如果失败,您可以发布mobileAds函数的结果,并告诉我们adboaded或adLoadFailed消息是否被发送到执行mobileAdCreate的对象?

答案 1 :(得分:1)

您需要检查结果的值:

mobileAdCreate "myAd1","banner",(0,0),tDetails
put the result into rslt
if rslt is not empty then
  beep
  answer error rslt
end if

亲切的问候,

标记