AdMob Windows Phone 7 message "Ad Not available" on Trial mode on device

653 views
Skip to first unread message

actorix

unread,
Jul 29, 2011, 12:38:24 PM7/29/11
to Google AdMob Ads Developers
Hallo,

when I ran AdMob on the Emulator in Trial mode, I see the Trial/Test
Ad showing up, but when I ran the same code on the device HTC HD7, I
only see the error message "Ad Not available".

Has anyone an idea, why does happend?

Eric Leichtenschlag

unread,
Jul 29, 2011, 1:02:01 PM7/29/11
to google-adm...@googlegroups.com
Hello Actorix,

Are you running the application on your phone or debugging it?  Test mode is automatically enabled if a debugger is attached, but otherwise you will need to specify your device for test mode as described here: http://code.google.com/mobile/ads/docs/wp7/intermediate.html#testmode.

Cheers,
Eric

actorix

unread,
Jul 29, 2011, 1:12:19 PM7/29/11
to Google AdMob Ads Developers
Hallo Eric,

I ran the code in debug mode and that is what confuses me right now
and I added the Device ID via code:

byte[] DeviceID =
(byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
string strDeviceID = Convert.ToBase64String(DeviceID);

MyAd.TestDeviceIDs.Add(strDeviceID);

The Device ID is added on Page Load

Cheers,
Markus

On Jul 29, 7:02 pm, Eric Leichtenschlag <eleichtens...@google.com>
wrote:

actorix

unread,
Jul 29, 2011, 4:28:21 PM7/29/11
to Google AdMob Ads Developers
What I also get, when I move to another xaml page and move back to the
page with the google add, I get instead of the error message "Ad Not
available",the error: Expected ':'

Eric Leichtenschlag

unread,
Aug 1, 2011, 5:43:58 PM8/1/11
to google-adm...@googlegroups.com
Hey Actorix,

It turns out there is an issue where setting the TestDeviceId is still not properly forcing a test ad, so you were still requesting an actual ad.  For now, as a workaround, try this:

MyAd.AdditionalParameters.Add("adtest", "on");

Note that this will always set test mode, so you will not want to release with this code.

As far as the "Ad not available" error, this is due to low fill rates.  The Windows Phone 7 SDK does not support AdSense backfill like Android and iOS, and unfortunately there also are not as many advertisers targeting the Windows Phone 7 platform.

Cheers,
Eric 
Reply all
Reply to author
Forward
0 new messages