Difference between revisions of "Amazon iOS"

From POKKT DOCUMENTATION
Jump to: navigation, search
(Step 1: Configure Pokkt Dashboard)
Line 40: Line 40:
 
=== 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]
 

Revision as of 03:53, 27 April 2018

Amazon Pokkt Mediation

Last Update: 27th April, 2018


Pokkt SDK version used: 7.0

Amazon SDK version used: 2.2.15.1


Download Latest Version Pokkt Mediation.


Common Steps for Amazon Pokkt Mediation

Prerequisites


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.