Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Talk:Using Microsoft Advertising Control in Windows Phone apps

From Wiki
Jump to: navigation, search


Croozeus - Renamed and subedited

Hi Pavan,

Good article! Using Ads can be so easy in WP7 :)

I sub-edited the article and moved it to the new title. New title just because monetization may include several options while this article focuses on one of them i.e. advertising.


croozeus 09:00, 1 February 2012 (EET)

Pavan.pareta -

Good observation and addressed it.

Thank you Croozeus !


Pavan Pareta 12:46, 1 February 2012 (EET)

Hamishwillee - Also added categories and see also


Added In-App advertising category to make this easier to find.

Added SeeAlso with links to main MSDN topics about advertising. Feel free to add more.



hamishwillee 04:51, 24 April 2012 (EEST)

Amol Tembhukar - Not Showing Control When Run on the emulator


I have created the same app with your ref code. But, While running the app on emulator its not showing the Ad Control on the screen.

Waiting for reply.


- Amol T

Amol_Tembhukar 09:11, 7 June 2012 (EEST)

Pavan.pareta - RE: Not Showing Control When Run on the emulator

Hello Amol,

Make sure that you have Internet Connectivity on your computer, however you can also try this code on wp7 device as well.


Pavan Pareta 05:20, 14 June 2012 (EEST)

SB Dev -

The PubCenter control detects when it is being run inside the Emulator. Real Ads will only show up when running the sample on a device.

If you put the following values inside the Controls XAML definition it will display test Ads and those also work on the Emulator:



SB Dev (talk) 20:04, 15 September 2013 (EEST)

Jeepy - Doesn't work for me


this doesn't work for me !

WP 7.1

I have installed your application on the phone, change the "Application ID" & "Ad Unit ID" to the mine, a small empty rectangle is displayed during 1 second and disappear immediately without showing something.

Any idea ? Thanks in advance for your answer, sincerely,


Jeepy (talk) 11:20, 22 December 2013 (EET)

Jeepy - Doesn't work for me * EDITED *

Have found the problem :

just add this :

adControl.ErrorOccurred += new EventHandler<Microsoft.Advertising.AdErrorEventArgs>(bannerAd_ErrorOccurred);

to catch the error and I get : "no ads available" !

I switch my phone to US in the regional setting and I'm now able to get ads !! no too cool .....

BTW : thanks for this nice article.


Jeepy (talk) 13:04, 22 December 2013 (EET)

SB Dev - PubCenter issues ATM

Microsoft seems to have quite some issues with the service right now. You can more information on the current state of this in the pubcenter support forums. The thread dealing with the issue you mention can be found here:

SB Dev (talk) 19:02, 22 December 2013 (EET)

ODosta - Microsoft Pubcenter

Sir, I did not understand, because you insert this code at microsoft apps, but I want to insert at my site, So please tell me Can I add this ad code at <a href="">My website</a>.

ODosta (talk) 16:33, 12 May 2014 (EEST)

Vivekmaskara - Pubcenter over admob

Nice article. Gives a fair insight on how different ad providers perform. Pubcenter is really a great ad network as it pays per impression for most of the campaigns. Otherwise now with windows phone 8 one could try google admobs which would give better earnings if you have a good CTR. I even wrote a comprehensive article on how to integrate admob in your windows phone app.

vivekmaskara (talk) 07:30, 21 July 2014 (EEST)