mopub/mopub-client — Issue #40: [Mopub+Adwhirl] Lots of unecessary HTTP Request if refresh interval !=0
Author: nicolasbraun
Created: 2012-03-08 14:42:00+00:00
State: open

Hello,

I'm trying to integrate Mopub+Adwhirl, following your tutorial.
Im seing in my logs and while snifing HTTP that Mopub SDK is send à lots of request to the server if I don't set the refresh interval for my ad unit to 0sec.

My setting : Adwhirl : 100% fillrate to mopub
AdWhirlRefreshRate : 15sec
Mopub Ad Unit : Resfresh rate : 10sec, only one Ad Unit

Console output :

**2012-03-08 15:28:30.401 MyApp[97327:1c403] [Ad] Moving from {{0, 366}, {320, 50}} to {{0, 366}, {320, 50}}**
2012-03-08 15:28:30.508 MyApp[97327:1c403] MOPUB: Ad manager (0xa8fa2d0) fired initial ad request.
2012-03-08 15:28:30.900 MyApp[97327:1c403] MOPUB: Ad manager (0xf17edc0) fired initial ad request.
2012-03-08 15:28:31.045 MyApp[97327:1c403] MOPUB: Ad view (0xa8fa2d0) received valid response from MoPub server.
2012-03-08 15:28:31.311 MyApp[97327:1c403] MOPUB: Ad view (0xa8f1b00) received valid response from MoPub server.
2012-03-08 15:28:31.553 MyApp[97327:1c403] MOPUB: Ad view (0xf17edc0) received valid response from MoPub server.
2012-03-08 15:28:31.770 MyApp[97327:1c403] MOPUB: Ad manager (0x94306f0) fired initial ad request.
2012-03-08 15:28:31.981 MyApp[97327:1c403] MOPUB: Ad view (0x94306f0) received valid response from MoPub server.
2012-03-08 15:28:32.093 MyApp[97327:1c403] MOPUB: Ad manager (0xa8274e0) fired initial ad request.
2012-03-08 15:28:32.323 MyApp[97327:1c403] MOPUB: Ad manager (0xa854b20) fired initial ad request.
2012-03-08 15:28:32.365 MyApp[97327:1c403] MOPUB: Ad view (0xa8274e0) received valid response from MoPub server.
2012-03-08 15:28:32.562 MyApp[97327:1c403] MOPUB: Ad view (0xa854b20) received valid response from MoPub server.
2012-03-08 15:28:32.671 MyApp[97327:1c403] MOPUB: Ad manager (0x9408740) fired initial ad request.
2012-03-08 15:28:32.979 MyApp[97327:1c403] MOPUB: Ad view (0x9408740) received valid response from MoPub server.
2012-03-08 15:28:44.399 MyApp[97327:1c403] MOPUB: Ad view (0xa8f1aa0) is no longer ignoring autorefresh.
2012-03-08 15:28:44.399 MyApp[97327:1c403] MOPUB: Ad manager (0xa8f1aa0) fired initial ad request.
2012-03-08 15:28:44.614 MyApp[97327:1c403] MOPUB: Ad view (0xa8f1aa0) received valid response from MoPub server.
2012-03-08 15:28:44.644 MyApp[97327:1c403] MOPUB: Ad manager (0xa8b8700) fired initial ad request.
2012-03-08 15:28:44.827 MyApp[97327:1c403] MOPUB: Ad view (0xa8b8700) received valid response from MoPub server.
2012-03-08 15:28:45.041 MyApp[97327:1c403] MOPUB: Ad manager (0xa816c40) fired initial ad request.
**2012-03-08 15:28:45.246 MyApp[97327:1c403] MOPUB: Ad view (0xa816c40) received valid response from MoPub server.
2012-03-08 15:28:45.402 MyApp[97327:1c403] [Ad] Moving from {{0, 366}, {320, 50}} to {{0, 366}, {320, 50}}**
2012-03-08 15:28:46.046 MyApp[97327:1c403] MOPUB: Ad manager (0xa8fa2d0) fired initial ad request.
2012-03-08 15:28:46.307 MyApp[97327:1c403] MOPUB: Ad view (0xa8fa2d0) received valid response from MoPub server.
2012-03-08 15:28:46.312 MyApp[97327:1c403] MOPUB: Ad manager (0xa8f1b00) fired initial ad request.
2012-03-08 15:28:46.528 MyApp[97327:1c403] MOPUB: Ad view (0xa8f1b00) received valid response from MoPub server.
2012-03-08 15:28:46.554 MyApp[97327:1c403] MOPUB: Ad manager (0xf17edc0) fired initial ad request.
2012-03-08 15:28:46.771 MyApp[97327:1c403] MOPUB: Ad view (0xf17edc0) received valid response from MoPub server.
2012-03-08 15:28:46.982 MyApp[97327:1c403] MOPUB: Ad manager (0x94306f0) fired initial ad request.
2012-03-08 15:28:47.292 MyApp[97327:1c403] MOPUB: Ad view (0x94306f0) received valid response from MoPub server.
2012-03-08 15:28:47.370 MyApp[97327:1c403] MOPUB: Ad manager (0xa8274e0) fired initial ad request.
2012-03-08 15:28:47.562 MyApp[97327:1c403] MOPUB: Ad manager (0xa854b20) fired initial ad request.
2012-03-08 15:28:47.765 MyApp[97327:1c403] MOPUB: Ad view (0xa854b20) received valid response from MoPub server.
2012-03-08 15:28:47.926 MyApp[97327:1c403] MOPUB: Ad view (0xa8274e0) received valid response from MoPub server.
2012-03-08 15:28:47.980 MyApp[97327:1c403] MOPUB: Ad manager (0x9408740) fired initial ad request.
2012-03-08 15:28:48.215 MyApp[97327:1c403] MOPUB: Ad view (0x9408740) received valid response from MoPub server.

And the longer I let the app run the more request there are between the 15sec Adwhirl interval (lines with [Ad] moving...corresponds to adWhirlDidAnimateToNewAdIn Notification)

If I set the refreshInterval to 0 in my Mopub interface is then work very well.

Please note that I moade some changes to mopubLoadAd because my banners weren't clickable (see below) but I don't think this has any impact since I'm having the same problem with your demo project.

-(void)mopubLoadAd:(AdWhirlView *)awView {
// replace banner content
[_mopubAdapter release];
_mopubAdapter = [[AdWhirlCustomEventAdapterMoPub
requestMoPubAdForAdUnitID:FDMopubAdUnitId
withAdWhirlDelegate:self
forAdWhirlView:awView] retain];

Thanks for your help,
Nicolas