Difference between revisions of "Amazon iOS"

From POKKT DOCUMENTATION
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Amazon Pokkt Mediation ==
 
== Amazon Pokkt Mediation ==
  
<small>Last Update: 27th April, 2018</small>
+
<small>Last Update: 3rd April, 2019</small>
  
 
-----
 
-----
  
Pokkt SDK version used: 7.0
+
Pokkt SDK version used: 7.5.0
  
Amazon SDK version used: 2.2.15.1
+
Amazon SDK version used: 2.2.17
  
 
-----
 
-----
Line 21: Line 21:
 
* Create account and Login at [https://developer.amazon.com https://developer.amazon.com]
 
* Create account and Login at [https://developer.amazon.com https://developer.amazon.com]
 
* Read instructions at [https://developer.amazon.com/public/apis/earn/mobile-ads/ios/docs/quick-start-guide https://developer.amazon.com/public/apis/earn/mobile-ads/ios/docs/quick-start-guide]
 
* Read instructions at [https://developer.amazon.com/public/apis/earn/mobile-ads/ios/docs/quick-start-guide https://developer.amazon.com/public/apis/earn/mobile-ads/ios/docs/quick-start-guide]
 +
 +
-----
 +
 +
=== GDPR ===
 +
 +
* Amazon will not serve ads if User has denied the GDPR consent to get personalised ads.
  
 
-----
 
-----
Line 32: Line 38:
  
  
* '''App Id (required):'''Create or sign-in to your AdColony account and retrieve the AdColony app ID. Same need to provide here.
+
* '''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, then class name will be “AmazonAdsNetwork” (you can simply copy-paste it without the quotes).
* '''Client Option (required):'''Enter the app version of AdColony Framework.
+
* '''- App Key (required):'''Login in Amazon dashboard, create new app and get the app key.
* '''All Zone Ids (required):'''Once new app has been created then create zone which will give you one zone id. If you want to create multiple zone then create all zone and give zone id here with comma separated here. It will accept multiple zone Id.
 
* '''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, then class name will be “AdColonyNetwork” (you can simply copy-paste it without the quotes).
 
 
* '''ECPM:'''Put your expected value of ECPM which will in turn rank this network in comparison to other configured networks.
 
* '''ECPM:'''Put your expected value of ECPM which will in turn rank this network in comparison to other configured networks.
* '''Screens (required):'''Here need to provide individual '''zone id'''which was created in AdColony dashboard inside app. So first create '''Screen''' in Pokkt dashboard which will reflect here. Once screen has been created then provide zone id inside this field. This screen name will map with zone id at run time. Provide your adColony '''ZoneId''' as a screen in '''Pokkt dashboard'''.
 
 
'''Note: For More Detail, Please follow the below link:'''
 
 
[http://support.adcolony.com/customer/portal/articles/761987-setting-up-apps-zones http://support.adcolony.com/customer/portal/articles/761987-setting-up-apps-zones]
 
  
 
-----
 
-----
Line 47: Line 46:
 
=== Step 2: Configuration in your Application ===
 
=== Step 2: Configuration in your Application ===
  
<ul>
+
* Download the mediation project from POKKT and it is recommended to use the same class file '''AmazonAdsNetwork''' in your project. And if you want to do some changes please do those changes in same file.
<li>Download the mediation project from POKKT, it is suggested to use the provided class file '''AdColonyNetwork'''(AdColonyNetwork.h and AdColonyNetwork.m) in your project. You have the option to make changes to this class, in-fact you can create your own custom adaptor for AdColony using our protocol, just make sure to mention the exact name of class in the “class name” box, refer the Step 1.</li>
+
* Add the AmazonAd.framework either as a standalone library file in libs folder.
<li>Add the '''“AdColony.framework”'''file into your project. Make sure to update your project's dependencies accordingly.</li>
 
<li><p>If your project doesn't support '''ARC''', add the following linker flag to '''Target > Build Settings > Linking > Other Linker Flags:'''<br /></p>
 
<p>'''- fobjc-arc'''(this enables ARC for AdColony)</p></li>
 
<li><p>Add the following libraries and frameworks to Target > Build Phases > Link Binary With Libraries:<br /></p>
 
<p>- libz.1.2.5.tbd</p>
 
<p>- AdColony.framework</p>
 
<p>- AdSupport.framework (Set to Optional)</p>
 
<p>- AudioToolbox.framework</p>
 
<p>- AVFoundation.framework</p>
 
<p>- CoreGraphics.framework</p>
 
<p>- CoreMedia.framework</p>
 
<p>- CoreTelephony.framework</p>
 
<p>- EventKit.framework</p>
 
<p>- EventKitUI.framework</p>
 
<p>- MediaPlayer.framework</p>
 
<p>- MessageUI.framework</p>
 
<p>- QuartzCore.framework</p>
 
<p>- Social.framework (Set to Optional)</p>
 
<p>- StoreKit.framework (Set to Optional)</p>
 
<p>- SystemConfiguration.framework</p>
 
<p>- WebKit.framework (Set to Optional)</p></li></ul>
 
 
 
-----
 
 
 
== Marmalade iOS ==
 
 
 
Follow the below steps to integrate AdColony Mediation in Marmalade iOS project:
 
 
 
# Ensure that you have “libAdColonyExtension.a” added in your main project and added to your '''.mkb'''file, ref:<br /> iphone-link-lib='AdColonyExtension'<br /> iphone-link-libdir=‘$CWD’
 
# Download and add AdColony framework, add this under deployment section, add this to required frameworks, ref:<br /> iphone-link-opts="-F$CWD -framework AdColony”
 
# Check the provided sample app for more details.
 
# If you see any error related to “CFNetwork framework not found” then add CFNetwork.framework in your project folder and update '''.mkb'''file like below:<br /> iphone-link-opts="-F$CWD -framework CFNetwork”
 
# Follow above all process to complete integration and also check our given example.
 
 
 
== Xamarin iOS ==
 
 
 
Follow the below steps to integrate Mediation in Xamarin iOS project:
 
 
 
# Copy downloaded file libAdColonyExtension.a in your project folder.
 
# Open project option by right click on your project and select “iOS Build” from left pane and then add the libAdColonyExtension.a details and required framework of AdColony inside “Additional mtouch arguments” like below. This is working so you can try with this also.
 
# -gcc_flags "-F${ProjectDir} -framework AdColony -framework CFNetwork -framework CoreGraphics -framework AudioToolbox -framework CoreLocation -framework EventKitUI - framework MessageUI -framework Security -framework Social -framework MobileCoreServices - framework WebKit -weak_framework StoreKit -L${ProjectDir} -lAdColonyExtension -force_load $ {ProjectDir}/libAdColonyExtension.a”
 
# Add CFNetwork framework inside project folder also if needed.
 
# Follow above all process to complete integration.
 
 
 
== AIR iOS ==
 
 
 
Follow the below steps to integrate Mediation in AIR iOS project:
 
 
 
# Copy downloaded file '''AdColonyExtension_iOS.ane'''in your project folder.
 
# Download AdColony ANE from below link and add in your project: <br />[https://github.com/AdColony/AdColony-AdobeAIR-SDK https://github.com/AdColony/AdColony-AdobeAIR-SDK]
 

Latest revision as of 14:55, 3 April 2019

Amazon Pokkt Mediation

Last Update: 3rd April, 2019


Pokkt SDK version used: 7.5.0

Amazon SDK version used: 2.2.17


Download Latest Version Pokkt Mediation.


Common Steps for Amazon 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 log-in at http://www.pokkt.com
  • To use the Amazon Mediation please enter the following details on POKKT Dashboard:

Amazon config ios.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, then class name will be “AmazonAdsNetwork” (you can simply copy-paste it without the quotes).
  • - App Key (required):Login in Amazon dashboard, create new app and get the app key.
  • ECPM:Put your expected value of ECPM which will in turn rank this network in comparison to other configured networks.

Step 2: Configuration in your Application

  • Download the mediation project from POKKT and it is recommended to use the same class file AmazonAdsNetwork in your project. And if you want to do some changes please do those changes in same file.
  • Add the AmazonAd.framework either as a standalone library file in libs folder.