AdMob Android

From POKKT DOCUMENTATION
Jump to: navigation, search

AdMob Pokkt Mediation

Last Update: 5th October, 2017


Pokkt SDK version used: 6.2.1

AdMob SDK version used: com.google.android.gms:play-services-ads:10.0.1'


Download Latest Version Pokkt Mediation.


  1. Common Steps for AdMob Pokkt Mediation:This is common documentation which is useful for all plugin.
  2. Native Integration:Check the Steps Mentioned for Native.
  3. Xamarin Integration:Check the Steps Mentioned for Xamarin.
  4. AIR Integration:Check the Steps Mentioned for AIR.
  5. Marmalade Integration:Check the Steps Mentioned for Marmalade.
  6. ShiVa Integration:There is no separate documentation for this. Please follow “Common AdMob Pokkt Mediation” page.
  7. Cocos2d-x Integration:There is no separate documentation for this. Please follow “Common AdMob Pokkt Mediation” page.
  8. Unity3D Integration:There is no separate documentation for this. Please follow “Common AdMob Pokkt Mediation” page.
  9. Titanium Integration:There is no separate documentation for this. Please follow “Common AdMob Pokkt Mediation” page.

Common Steps for AdMob Pokkt Mediation

Prerequisites


Step 1: Configure Pokkt Dashboard

  • Create Account and login at http://www.pokkt.com
  • Register your app here if not registered.
  • To use the AdMob Mediation please enter the following details on Pokkt Dashboard:
    Admob config2.jpg


  • Class Name (required): This is the class name that you define inside your application to set up the network. Classname for the network can be set during SDK integration. If you are using Pokkt’s default adaptors for mediation which is given in PokktMediation.jar, then class name will be com.pokkt.thirdparty.AdMobNetwork.
  • Test Device Id (optional): For testing AdMob and if you want to see test ad for interstitial then please provide test divide Id. You can add multiple device Id with comma (,) separated without any space.
  • ECPM: Put your expected value of ECPM which will in turn rank this network in comparison to other configured networks.
  • App Id: Provide app id from your AdMob account dashboard.
  • Publisher Id: Provide publisher id from your AdMob account dashboard.
  • Screens (required): Here need to provide “AdMob Ad unit ID”. First create screen name in Pokkt dashboard which will reflect here as screen name so provide “Ad unit ID’here. Now for getting “Ad unit ID”from AdMob, create new monetize app in AdMob dashboard and open that app then there is a option “New Ad Unit”. So create new ad unit which will generate Ad unit ID and that Ad unit ID you need to provide here. This screen name will map with this Ad unit ID. Please check below screen shot for how to create screen in Pokkt dashboard.
    Screen.jpg


Note: For More Detail, Please follow the below link

https://support.google.com/admob/answer/3052638


Step 2: Configuration in Application (Native)

  • Download the mediation project from POKKT and it is suggested to use the same class file AdMobNetwork(AdMobNetwork.java, AdMobVideoAdManager.java, AdMobBannerManager.java and AdMobInterstitialManager.java) in your project. You have the option to make changes to these classes, in-fact you can create your own custom adaptor for AdMob using our protocol, just make sure to mention the exact name of class in the “class name” box, refer the Step 1.
  • Add “Google play services ads framework” into your project. Make sure to update your project's dependencies accordingly.
  • Add the necessary permissions for AdMob as suggested in AdMob integration document to your application manifest.
  • Add the recommended activitiesand meta datato your AndroidManifest.xmlas suggested in AdMob integration guide.

Xamarin Android

Follow the below steps to integrate Mediation in Xamarin android project:

  1. Add downloaded file PokktMediation.dllin your project under reference section.
  2. You need to download AdMob extension for Xamarin.
  3. Follow above all process to complete integration.

AIR Android

Follow the below steps to integrate Mediation in AIR android project:

  1. Add downloaded file PokktMediation.anein your project
  2. You need AdMob so please google to download AdMob .ane file and and use that.
  3. Google play service .ane file also required and few of the AdNetwork .ane comes with google play service .ane so be careful with this. We are giving PokktMediation.ane separate GooglePlayService.ANE separate.
  4. Follow above all process to complete integration and also check our given example specially app.xml file.

Marmalade Android

Follow the below steps to integrate Mediation in Marmalade android project:

  1. Check downloaded file which has one mediation project “PokktMediationExtension” and this need to be added in your project as subproject in .mkb file.
  2. Marmalade is providing AdMob extension “s3eGoogleAdMob” so add this as subproject in .mkb file.
  3. Follow above all process to complete integration and also check our given example.