Skip to main content

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

Comments

  1. Thank you very much forthis writeup. It was helpful for me.

    Regards

    KRK

    ReplyDelete
    Replies
    1. Nothing makes me happier than to help other, and i am really glad that i was of a help to you,

      Thanks
      Mohammed Ezzat Awad

      Delete
  2. If you are looking for a reputable contextual advertising network, I recommend you take a look at PropellerAds.

    ReplyDelete
  3. QUANTUM BINARY SIGNALS

    Get professional trading signals sent to your cell phone every day.

    Follow our trades NOW and profit up to 270% per day.

    ReplyDelete
  4. Seeking to join new affiliate programs?
    Visit this affiliate directory to look at the ultimate list of affiliate networks.

    ReplyDelete

Post a Comment

Popular posts from this blog

(AsyncWebClient) Async Webclient for windows phone 8

Using windows phone web client is pretty common but the thing is you can not use it using Async -> Await mechanism so i used threading to create an async functionality for The Download string and upload string methods here is the code below // Comment public class AsyncWebClient { public Task DownloadString(Uri uri) { var task = new TaskCompletionSource(); try { var client = new WebClient(); client.DownloadStringCompleted += (s, e) => { task.SetResult(e.Result); }; client.DownloadStringAsync(uri); } catch (Exception ex) { task.SetException(ex); } return task.Task; } public Task UploadString(Uri uri, string content) { var task = new TaskCompletionSource(); try { var client…

RuntimeBinderException cannot resolver property in Unit Test in case of dynamic return.. Solved

Xamarin UI Tests – Deep dive Part 1

IntroAs the title may describe this is the first of the series of articles that will cover the UI Test of Xamarin in a deep dive, we will start simple and then dig deeper as we go. Since this is very well the first of the series, it will mostly cover up the architecture and the testing technique that Xamarin UI Tests uses.

The Technology
Xamarin UI Test is an automation testing framework similar to selenium, Watir, Watin (.net), Robot and Sikuli, if you have used BDD (Behavioral Driven Development) or a more advanced TDD (Test Driven Development) approach at least you must have come across one of these frameworks, and in that perspective comes Xamarin UI Testing as an automation framework designed specifically for Xamarin Automation testing, For starter Xamarin UI Tests was not build from scratch, instead it was built on top of another UI Automation testing framework that is targeting android and iOS sepecifically which is Calabash, I have to say that this choice was made wisely as of n…