Re: Fail to receive Location-based ad on simulator

14 views
Skip to first unread message

Rajkumar Parameswaran

unread,
May 22, 2013, 12:23:34 PM5/22/13
to google-adm...@googlegroups.com
Hey Tuan,

Generally we tell people to not trust the simulator when it comes to things like network calls. If it works on the device, it sounds like it's not an issue.

Raj


On Fri, May 17, 2013 at 3:33 AM, Tuan Cao <caomanh...@gmail.com> wrote:
Hi,

I'm having some issue with testing location-based ad on iPhone simulator. When I use Xcode's location simulator to setup location as London (on of the location that has ad), the app fail to receive any ad with following error: "No ad to show."

I even use hard-coded value of London city which is but that doesn't help too, I still receive "No ad to show" error.

However, when tested the app on device in London. There is an ad show up for London area. 

Note: unfortunately, I don't have access to Admob account, which is in my client hand. And I don't want to ask before try everything I can. 

Following is my snippet of code that setup Admob:

Set up banner view
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
bannerView_.adUnitID = self.adUnitID;
bannerView_.delegate = self;
bannerView_.rootViewController = self;
 
 
Setup ad request
GADRequest *request = [GADRequest request]; 
[request setLocationWithLatitude: 51.00000000 longitude:(CGFloat) -0.11387900 accuracy:(CGFloat) 10];
[bannerView_ loadRequest:request];

Does anyone encounter the same issue? Is it just simulator problem? And how do you fix the problem?

Many thanks,
Tuan

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages