Ok, I’m having a bit of trouble. I’ve followed the "Ads (inneractive)multiple times and still can’t get any ads to display when I build for the device (android). Especially "banner or "text (I get a white screen with “fullscreen”).
I’ve tried dozens of combinations, and have followed the tutorial precisely and have looked at the Ansca Inneractive example. Am I missing something obvious?
I’ve been putting local ads = require “ads” in my Main.lua and the rest of the required code for displaying ads in other scenes.
[code]
module(…, package.seeall)
function new()
local localGroup = display.newGroup()
–Images
local background = display.newImage(“menuBackground.png”)
background.xScale =.5
background.yScale = .5
background:setReferencePoint(display.TopLeftReferencePoint)
localGroup:insert(background)
local choseDiffBtn = display.newImage(“present_big.png”)
choseDiffBtn.x = display.contentWidth*0.5 - 100
choseDiffBtn.y = display.contentHeight*0.5
choseDiffBtn.xScale = .37
choseDiffBtn.yScale = .37
localGroup:insert(choseDiffBtn)
– Example for inneractive:
ads.init( “inneractive”, “IA_GameTest” )
– iPhone, iPod touch, iPad
ads.show( “banner”, { x=100, y=100, interval=10 } )
local goDifficulty = function ( event )
if event.phase == “began” then
director:changeScene( “difficulty”, “moveFromRight”)
end
end
choseDiffBtn:addEventListener( “touch” , goDifficulty)
return localGroup
end [import]uid: 66329 topic_id: 19613 reply_id: 319613[/import]
[import]uid: 52491 topic_id: 19613 reply_id: 75756[/import]