iAds - listener not triggered

I am trying to integrate iAds into my app. However, the adListener()-Function is not triggered when the ad system is initialised using ads.init(). Hence, I can not say whether an ad is served or not. Everything has been set up correctly (incl. iTunesConnect). I can display test-ads if I use the ads.show() command but I would like to make a test via the adListener upfront in order to switch to Inneractive in case no iAds are being served. I tried to put a native alert in the adListener() Function but it nevers shows up.

This is really frustrating - any idea how to fix this?
[import]uid: 101883 topic_id: 35209 reply_id: 335209[/import]

Ads don’t work quite the way you are thinking it should.

The ads.init() just setups up all the connections necessary and sets up the call back listener. It in no way actually requests ads from the server. If you just call ads.init() and nothing else, you will never get the listener called because there are no more requests made.

The ads.show() call starts the ad delivery engine. I’m not sure about iAds, but for the other vendors, ads will be rotated periodically, I’m guessing iAds does the same thing, though iAds does not permit you to set the interval of any rotation. When iAds completes delivery of an ad, or if it could not, it should then call the call back listener you setup in the init call.

The ads.hide() will take down the current ad and prevent future requests until ads.show() is called again.

Hope this helps explain things. [import]uid: 199310 topic_id: 35209 reply_id: 139992[/import]

Rob, that solved my problem - I had a wrong understanding of when then listener is actually called.

Thank you very much,
Jens

+1

[import]uid: 101883 topic_id: 35209 reply_id: 140066[/import]

Ads don’t work quite the way you are thinking it should.

The ads.init() just setups up all the connections necessary and sets up the call back listener. It in no way actually requests ads from the server. If you just call ads.init() and nothing else, you will never get the listener called because there are no more requests made.

The ads.show() call starts the ad delivery engine. I’m not sure about iAds, but for the other vendors, ads will be rotated periodically, I’m guessing iAds does the same thing, though iAds does not permit you to set the interval of any rotation. When iAds completes delivery of an ad, or if it could not, it should then call the call back listener you setup in the init call.

The ads.hide() will take down the current ad and prevent future requests until ads.show() is called again.

Hope this helps explain things. [import]uid: 199310 topic_id: 35209 reply_id: 139992[/import]

Rob, that solved my problem - I had a wrong understanding of when then listener is actually called.

Thank you very much,
Jens

+1

[import]uid: 101883 topic_id: 35209 reply_id: 140066[/import]