2013-02-26 64 views
2

我在Android平台上关闭Livecode v5.5.4 ...我已经能够成功发布应用程序,但是无法弄清楚如何安装无缝广告......由于LC已经与inneractive合作,他们提供这表明它的那么容易,因为方向......Livecode Interactive Ads Android

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

如果没有马克的建议报告的错误,你可能想确保它是可见的搭配:

mobileAddSetVisible "myAd1",true 

如果做不到这一点,你可以发布mobileAds函数的结果和让我们知道是否将adLoaded或adLoadFailed消息发送到执行mobileAdCreate的对象?

+0

这工作....还收到直接从Livecode支持相同的意见...谢谢 – user1924697 2013-03-18 04:54:20

1

您需要检查结果的值:

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

亲切的问候,

马克