MoPub banner auto load issue fix


mopub-twitter-fabric-tool-set-suite-logo I use MoPub mediation to show banner ads in my mobile apps. There is one issue I faced and today I am going here to share the solution. In my game app, I show banner ad at the end of game over page. And when user go to other screen i hide the banner ad. But the problem I noticed that the banner ad is auto loading though it is not showing when user is in another screen.

My first solution was removing the banner ad view from master view and set the banner ad view to nil, but it not solved. Later I found the following solution fix the issue.

 

[self.adView removeFromSuperview];
[self.adView stopAutomaticallyRefreshingContents];
self.adView = nil;

So the difference between MoPub and AdMob banner handling is, in AdMob if you remove the banner from master view it no longer request for additional ads, whereas in MoPub you’ve to manually call to stop auto load.

mahmud ahsan

Computer programmer and hobbyist photographer from Bangladesh, lives in Malaysia. My [Business | Twitter | Linkedin | Instagram | Flickr | 500px]

You may also like

LEAVE A COMMENT

About Me

Computer programmer and hobbyist photographer from Bangladesh, lives in Malaysia. My [Business | Twitter | Linkedin | Instagram | Flickr | 500px]

Flickr

Flickr Feed
Flickr Feed
Flickr Feed
Flickr Feed
Flickr Feed
Flickr Feed
Flickr Feed
Flickr Feed
Flickr Feed

Twitter Feed

Fanpage