0

I am using AdMob through AdWhirl and last week running in the simulator showed test ads from both AdMob and iAd. Nothing has changed in my AdWhirl code, and test mode is still on, yet I no longer get test ads from AdMob. Every now and then I get a proper ad. Test ads from iAd are fine.

I have tried the AdWhirl and AdMob forums but my posts never get posted!

Anyone know what the problem could be?

Thanks

Darren
  • 10,182
  • 20
  • 95
  • 162

2 Answers2

4

I think that you may need to modify the code in the AdWhirlAdapterGoogleAdMobAds.m. The line where it turns on test mode

[additional setObject:@"on" forKey:@"adtest"];

Should probably be changed to

request.testDevices = [NSArray arrayWithObjects:
                       GAD_SIMULATOR_ID,                                           
                       nil];

It looks like the method of using "adtest" in the additionalParamters property of GADRequest doesn't seem to be working anymore.

Of course, this also assumes you've overridden the adWhirlTestMode method in your class that is an AdWhirlDelegate.

RajPara
  • 2,281
  • 1
  • 16
  • 9
  • Thanks, I shall try this in the morning. I have adWhirlTestMode set to YES. – Darren Jan 19 '12 at 23:05
  • Excellent RajPara, this fixed it. You are right that adtest parameter isn't working any more. I'm now getting test ads again. I trust I can leave this change in place when I finally distro my app, and just remove the adWhirlTestMode. – Darren Jan 20 '12 at 09:27
1

if you changed nothing..then it is from there side..try changing priorities..and traffic of the ads network in adwhirl.

Shubhank
  • 21,721
  • 8
  • 65
  • 83
  • I've disabled all networks apart from AdMob. I now get no ads, unless every now and then a proper ad is available. It's frustrating that I can't talk to anyone at AdMob as they refer to their forum, yet you can't post on their forum without admin authorisation. Has anyone else had problems like this with AdMob lately? – Darren Jan 18 '12 at 10:04
  • from what i have experienced there are no test ads in admob..maybe there are ..but in my experience i had both iAd and admob.. and iAd always showed up with test advertisement since it was a higher priority.. but when i changed the priority . there were admob ads coming up..just that could not earn money with them.(this is the time when i was testing the app in development). So i want to ask your problem is ads are coming but not always? – Shubhank Jan 18 '12 at 12:00
  • Yes I am getting ads but not regular (which I guess is the usual behaviour). However last week I was getting test ads from AdMob. It said it was a test ad and always came, and if you clicked on it it showed some google stuff. Now the test ads have stopped. – Darren Jan 18 '12 at 12:12
  • well..you ware worried for test ads coming and now stopping.. i didn't have test ads in the first place..yet i submitted and am earning money using admob :) – Shubhank Jan 18 '12 at 12:14
  • Ok thanks. Maybe i'm worried over nothing. I didn't want to get punished for requesting proper ads in the simulator. From what i've been reading, the AdMod SDK has a setting to automatically detect the simulator, so it must definately be a problem their end. Thanks – Darren Jan 18 '12 at 12:31