Amazon Android

From POKKT DOCUMENTATION
Jump to: navigation, search

Amazon Ads Pokkt Mediation

Last Update: 4th June, 2018


Pokkt SDK version used: 7.2.0

Amazon SDK version used: 5.8.1.1


Download Latest Version Pokkt Mediation.


  1. Common Steps for Amazon 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 Amazon Pokkt Mediation” page.
  7. Cocos2d-x Integration:There is no separate documentation for this. Please follow “Common Amazon Pokkt Mediation” page.
  8. Unity3D Integration:There is no separate documentation for this. Please follow “Common Amazon Pokkt Mediation” page.
  9. Titanium Integration:There is no separate documentation for this. Please follow “Common Amazon Pokkt Mediation” page.

Common Steps for Amazon Ads Pokkt Mediation

Prerequisites


GDPR

  • Amazon will not serve ads if User has denied the GDPR consent to get personalised ads.

Step 1: Configure Pokkt Dashboard

  • Create account and Login at http://www.pokkt.com
  • Register your app here if not registered.
  • To use the Amazon Mediation, enter the following details on Pokkt Dashboard:

    Amazon config.jpg


  • Class Name (required):This is the fully qualified 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.AmazonAdsNetwork.
  • Application Key (required):Login to Amazon dashboard and create new app if not created. Once app has been created then click on app name and then click on Mobile Ads tab. Here you will get Application Key.
  • ECPM (required):Put your expected value of ECPM which will in turn rank this network in comparison to other configured networks.



Step 2: Configuration in Application (Native)

  • Download the mediation project from POKKT and it is recommended to use the same class file AmazonNetwork in your project. And if you want to do some changes please do those changes in same file.
  • Refer Amazon integration document at https://developer.amazon.com/docs/mobileads/mb-quick-start.html#enabling-ads-in-android-apps
  • Add Amazon SDK into your project. Make sure to update your project's dependencies accordingly as suggested in above document.
  • Add the necessary permissions for Amazon as suggested in Amazon integration document to your application manifest.
  • Add the recommended activity to your AndroidManifest.xml as suggested in Amazon integration guide.

Xamarin Android

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

  1. Add downloaded file PokktMediation.dll in your project under reference section.
  2. Please download the .dll extension from Amazon : https://developer.amazon.com/sdkdownload
  3. Please 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.ane in your project.
  2. Download Amazon ANE from below link and add this one in your project.
    https://developer.amazon.com/sdk-download
  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. Amazon is not providing marmalade extension so you need to create your own extension or you can take our help. We have created dummy extension for this testing purpose. We can help you on this.
  3. Add created Amazon extension project in your project as subproject.
  4. Follow above all process to complete integration and also check our given example.