2013-02-26 46 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 

親切的問候,

馬克