Search This Blog

Saturday, 16 August 2014

How to use Google AdMob in Windows Phone app

Step 1. Firstly download Google Admob SDK for Windows Phone from the link below
Step 2. Go to your AdMob account and create an ad unit for your app
Fill in the details to create an AdUnit as follows
  • Fill in your app name and select platform
  • Select the type of AdUnit and fill in the name for the AdUnit. You can customize the look of the ad whenever you want
  • Click on save and an AdUnit id would be generated.All done you are ready setting thing up for AdMob.
Step 3. Unzip the SDK files and you will find a GoogleAds.dll file in it. Create a new project and add a reference to this dll file in your project.















Note: If the GoogleAds.dll is showing as incompatible then follow these steps
  • In the file explorer, navigate to the Google Ads.dll
  • Right click the dll file and click ‘Properties’
  • In the ‘General’ tab, at the bottom, there will be an ‘unblock’ button
  • Unblock the dll file and add it again in your project
You will need to add the following capabilities in your app for ads to appear!
  • ID_CAP_NETWORKING: Access to network services is required when requesting ads.
  • ID_CAP_WEBBROWSERCOMPONENT: Required since the AdView is a web browser.
  • ID_CAP_MEDIALIB_PLAYBACK: Provides access for currently playing media items.
  • ID_CAP_MEDIALIB_AUDIO: Provides read access to audio items in media library.
That's it... :)
now run the emulator...and wait for a while..adds will appear...!!!

No comments:

Post a Comment