GADBannerView: How to stop ads being auto refreshed

1,132 views
Skip to first unread message

davab

unread,
Nov 6, 2012, 1:52:23 AM11/6/12
to google-adm...@googlegroups.com
I have separate but compounding problems:

1. If I delete my GADBannerView the view controller that was the delegate still keeps getting ads sent to it. Even when that view is not on top and there is another active view controller also receiving ads! This is causing micro pauses in my game even though I ignore the unwanted adViewDidReceiveAd's.

2. I have changed the setting: Automatic refresh to 'no refresh' in the Admob web portal. But I am still getting (auto refreshed) ads pushed every 30 seconds as was my previous setting. I changed this a few days ago but they have still not updated.

My solution to problem 1 was that if I always request an ad each time then I won't need to worry about auto refreshed ones. An alternative would be if I could cancel the request somehow. The 2 screens have different ad sizes and are the only 2 views that have ads in the game so I didn't want to go with a singleton approach.

Rajkumar Parameswaran

unread,
Nov 7, 2012, 12:24:17 PM11/7/12
to google-adm...@googlegroups.com
For 1, are you sure that you're nil'ing out your delegate after you delete the GADBannerView? Can you show us your code that removes the GADBannerView?

--
 
 
 

davab

unread,
Nov 7, 2012, 10:15:40 PM11/7/12
to google-adm...@googlegroups.com
That was exactly the problem I wasn't nil'ing the delegate before nil'ing the GDBannerView. (I'm using ARC so nil'ing is all I need)

RE 2. the auto refresh issue - I'm not sure why the auto refresh kept going even after I'd changed the settings but it is now moot as I've re-enabled it in the portal as I want to go with the auto refresh instead of needing to request one all the time.
Reply all
Reply to author
Forward
0 new messages