I try to set up iAds.
I want to place the iAd banner at the bottom of the screen.
Is it allowed to do that?
I have this function. I test in the device.
If the iAds is not showed, I have this text “error showing the iAds”
I place the code in the menu screen.
When I go to other levels , I still see the text " “error showing the iAds”
The text didnt disapear
[lua]
local function adListener( event )
– event table includes:
– event.provider
– event.isError (e.g. true/false )
– event.response - the localized description of the event (error or confirmation message)
local msg = event.response
– just a quick debug message to check what response we got from the library
print("Message received from the ads library: ", msg)
if event.isError then
–statusText:setTextColor( 255, 0, 0 )
–statusText.text = msg
local myText = display.newText( “error showing the iAds”, 100, 200, native.systemFont, 16 )
myText:setFillColor( 1, 0, 0 )
else
–statusText:setTextColor( 0, 255, 0 )
–statusText.text = msg
end
end
[/lua]