Problem iAd integration!

I as the example I integrated iAd in my application, but when I try it on the device does not show me any publicity (including testing). Where is the mistake?
Thank you very much for your help in advance!

[lua]local ads = require(“ads”)

local function adListener(event)
local msg = event.response
if event.isError then
– Failed to receive an ad, we print the error message returned from the library.
print(msg)
end
end

ads.init( “iads”, “myappid”, adListener )

ads.show( “banner”, { x=0, y=0 } )[/lua]

[import]uid: 98258 topic_id: 35011 reply_id: 335011[/import]

I can not find the error because it is not compatible (ads) with the simulator mode. [import]uid: 98258 topic_id: 35011 reply_id: 139190[/import]

Try displaying the error in a alert box
[lua]local function adListener(event)
local msg = event.response
if event.isError then
native.showAlert(“iAd Error”,msg,{“Ok”})
end
end[/lua] [import]uid: 64174 topic_id: 35011 reply_id: 139194[/import]

I intuit that fails because it does not show, I want to know is “why” is not displayed. [import]uid: 98258 topic_id: 35011 reply_id: 139205[/import]

Are you using the correct Bundle ID ?

It’s not the app id, thought I would ask as your code above says “myAppId”.

Also have you enabled ads for this app in iTunes Connect ?

Dave [import]uid: 117617 topic_id: 35011 reply_id: 139237[/import]

If the ID is correctly bunddle (Here it hides) but is correctly.
I need to add anything else? I think something is going on but I’m not sure it is. I also gave him high in iAd Network. The app is in status “prepare for upload”. [import]uid: 98258 topic_id: 35011 reply_id: 139312[/import]

Hi there,

Your code looks ok. The thing is iAds still has low fill rates; and when you don’t get any banner from the inventory, the view gets hidden.

If you run a method in the listener that hides and reshows the banner in case of an error, eventually the banner ad will appear in the view.

Also, please keep in mind that only USA, UK, France, Germany, Spain, Italy, Japan, and Canada serve ads.

Hope this helps,

Alex. [import]uid: 196533 topic_id: 35011 reply_id: 139334[/import]

but no form of test it? What we do not want is for me not to work and stayed advertising without gaining anything for her. Do not know what I mean … I’m from spain
Thanks! [import]uid: 98258 topic_id: 35011 reply_id: 139396[/import]

aitor.10794 - Alex me pidio que te mande un recado en espanol para ver si puedo ayudar.
Basicamente, lo que entiendo es que puede ser que no veas ads porque iAds tiene un “fill rate” bastante bajo, entonces cuando haces pruebas es muy posible que no salga nada.

Fuera de eso, parece que tu codigo esta correcto. Si todavia hay alguna error, necesitariamos ver mas de tu codigo y configuracion para ver si hay algun error. Con la informacion que has dado hasta ahora no es posible saber si realmente hay un problem.

Me explico?

David [import]uid: 10668 topic_id: 35011 reply_id: 139399[/import]

thank you very much for your answer! Spanish better than English for me. The code structure is basically the following:

1-implementing iAds
2 - the rest of the code

The application works I do not know is if put in the right order. First iAds and after the code? (I do not want is to hide the banner)

Anyway, check it Apple? [import]uid: 98258 topic_id: 35011 reply_id: 139439[/import]

that is, I have the code in the following order:

1 - Implementing iAd
2 - Game Variables
3 - Logic and game
4 - Background

No advertising will be hidden but not come out? I’m somewhat new to this and I have fear of getting it wrong. Thanks for your help! [import]uid: 98258 topic_id: 35011 reply_id: 139458[/import]

anyone know how you can try?

Take this opportunity to ask if it is necessary to resize the background to see advertising without hiding parts of the background.

Thanks! [import]uid: 98258 topic_id: 35011 reply_id: 139633[/import]

I can not find the error because it is not compatible (ads) with the simulator mode. [import]uid: 98258 topic_id: 35011 reply_id: 139190[/import]

Try displaying the error in a alert box
[lua]local function adListener(event)
local msg = event.response
if event.isError then
native.showAlert(“iAd Error”,msg,{“Ok”})
end
end[/lua] [import]uid: 64174 topic_id: 35011 reply_id: 139194[/import]

I intuit that fails because it does not show, I want to know is “why” is not displayed. [import]uid: 98258 topic_id: 35011 reply_id: 139205[/import]

Are you using the correct Bundle ID ?

It’s not the app id, thought I would ask as your code above says “myAppId”.

Also have you enabled ads for this app in iTunes Connect ?

Dave [import]uid: 117617 topic_id: 35011 reply_id: 139237[/import]

If the ID is correctly bunddle (Here it hides) but is correctly.
I need to add anything else? I think something is going on but I’m not sure it is. I also gave him high in iAd Network. The app is in status “prepare for upload”. [import]uid: 98258 topic_id: 35011 reply_id: 139312[/import]

Hi there,

Your code looks ok. The thing is iAds still has low fill rates; and when you don’t get any banner from the inventory, the view gets hidden.

If you run a method in the listener that hides and reshows the banner in case of an error, eventually the banner ad will appear in the view.

Also, please keep in mind that only USA, UK, France, Germany, Spain, Italy, Japan, and Canada serve ads.

Hope this helps,

Alex. [import]uid: 196533 topic_id: 35011 reply_id: 139334[/import]

but no form of test it? What we do not want is for me not to work and stayed advertising without gaining anything for her. Do not know what I mean … I’m from spain
Thanks! [import]uid: 98258 topic_id: 35011 reply_id: 139396[/import]

aitor.10794 - Alex me pidio que te mande un recado en espanol para ver si puedo ayudar.
Basicamente, lo que entiendo es que puede ser que no veas ads porque iAds tiene un “fill rate” bastante bajo, entonces cuando haces pruebas es muy posible que no salga nada.

Fuera de eso, parece que tu codigo esta correcto. Si todavia hay alguna error, necesitariamos ver mas de tu codigo y configuracion para ver si hay algun error. Con la informacion que has dado hasta ahora no es posible saber si realmente hay un problem.

Me explico?

David [import]uid: 10668 topic_id: 35011 reply_id: 139399[/import]