Windows Phone 7 Advertising SDK upgrading to 7.1 Test Mood and Advertising change AdControl does not contain Test Mode
Recently i upgraded a windows phone project from 7.0 sdk to 7.1 and i got this error the Adcontrol.TestMode cannot be resolved this is the message 'Microsoft.Advertising.Mobile.UI.AdControl' does not contain a definition for 'TestMode'
The solution i found here was all because the the SDK itself has changed
you have to set the ApplicationId and UnitId properties manualy as follows
#if SHOW_TEST_ADS
adControl.ApplicationId = "test_client";
adControl.AdUnitId = "Image480_80";
#else
// Use your real Application ID and Ad Unit ID here
adControl.ApplicationId = "34fg678a-de7s-67ad-0988-9876543g1h43";
adControl.AdUnitId = "12345";
#endif
pieace a cake !!!
here is the link to all changes
http://community.microsoftadvertising.com/forums/t/69768.aspx
The solution i found here was all because the the SDK itself has changed
you have to set the ApplicationId and UnitId properties manualy as follows
#if SHOW_TEST_ADS
adControl.ApplicationId = "test_client";
adControl.AdUnitId = "Image480_80";
#else
// Use your real Application ID and Ad Unit ID here
adControl.ApplicationId = "34fg678a-de7s-67ad-0988-9876543g1h43";
adControl.AdUnitId = "12345";
#endif
pieace a cake !!!
here is the link to all changes
http://community.microsoftadvertising.com/forums/t/69768.aspx
Thank you very much forthis writeup. It was helpful for me.
ReplyDeleteRegards
KRK
Nothing makes me happier than to help other, and i am really glad that i was of a help to you,
DeleteThanks
Mohammed Ezzat Awad