Here is a great working example of the new SDK.
Advertising SDK for Windows Phone XNA Sample - June 2011
Here is a link to an excellent set of comments that really helped me before i found the above post.
New Microsoft Advertising SDK June 2011 Update Now Available
Now with those links out of the way. Here are some simple notes to get ya going faster i hope.
1. Remove the 'RotationMode.Manual' argument from the CreateAd method (only mod for that!).
2. Change the 'ErrorEventArgs
3. Your AdManager has gone away. If you used visible, then use the 'bannerAd.visible' instead.
4. Change the 'Admanager' declaration to 'AdGameComponent adGameComponent'
5. Change 'Ad bannerAd' to 'DrawableAd bannerAd', as it is now more than it was.
6. Change 'RequestNextAd()' to 'Refresh()'.
7. Now ya gotta declare that component
AdGameComponent.Initialize(adApplicationId /*"test_client"*/);
adGameComponent = AdGameComponent.Current;
Components.Add(adGameComponent);
8. Change your 'AdManager.CreateAd' to 'adGameComponent.CreateAd'
Then you should be ready to go. If you used the "test_client" and also "Image480_80" when setting this all up, you Will be in testmode. Setting test mode is now not nescessary, it is implied.
I hope this helps a few people, good luck and may your Ads make you lots of moolah.
Da Voodoochief
No comments:
Post a Comment