Skip to main content

Posts

Showing posts with the label Microsoft.Advertising.Mobile.UI.AdControl does not contain Test Mode

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