{"_id":"59808861823611003e5812a0","project":"574ff4bd3fa1870e00889ba6","version":{"_id":"574ff4bd3fa1870e00889ba9","project":"574ff4bd3fa1870e00889ba6","__v":21,"createdAt":"2016-06-02T08:56:29.492Z","releaseDate":"2016-06-02T08:56:29.492Z","categories":["574ff4bd3fa1870e00889baa","577278ecdceb570e003a9001","577279865617b117009e643f","577279985617b117009e6440","577279bc8c48e00e00503504","5774fe18605b770e0037be8a","577ce3ad87acf617003c4187","577f8476a77c700e006a6c52","57b486ae0d2b640e00e9d3f5","57b722133d3e620e004ec74b","57bd95f00fe3a00e003e2cc5","57c8349359cd4b0e00b888ef","57c8349b5754fa1700b12242","57cedb0bad483e0e00890239","57cedbe807d7ea0e00e438cc","57d82967156ef72b007ffcd8","58ee353ad1ee2f0f0034a13d","596623221738df00298622a5","59a51730192dba000fc9ca38","59a8129f1e7b26000fa0fb1a","5a0322bf044b6f001c236e36"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"category":{"_id":"57b722133d3e620e004ec74b","__v":0,"version":"574ff4bd3fa1870e00889ba9","project":"574ff4bd3fa1870e00889ba6","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-19T15:13:23.417Z","from_sync":false,"order":9,"slug":"ios-native-ads-mediation-layer","title":"iOS SDK"},"user":"5770fa1ce5a0000e0023c680","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-08-01T13:55:45.037Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":11,"body":"This guide is intended for publishers who are interested in serving native ads, banner ads, MRect ads and fullscreen interstitials from PubNative using the AdMob mediation network. This document will include help the setting up of the mediation adapter with your iOS application and setting up any additional request parameters.\n[block:api-header]\n{\n  \"title\": \"Requirements\"\n}\n[/block]\n* AdMob SDK\n* PubNative SDK\n* Pubnative AdMob Adapter\n* An App Token obtained from PubNative Dashboard\n* A Placement Name configured and obtained from the PubNative Dashboard\n[block:api-header]\n{\n  \"title\": \"AdMob iOS SDK\"\n}\n[/block]\nDownload and install the AdMob SDK as described in the AdMob for [iOS documentation](https://developers.google.com/admob/ios/quick-start).\n[block:api-header]\n{\n  \"title\": \"PubNative iOS SDK\"\n}\n[/block]\nYou can add PubNative SDK in your project in two ways:\n  * If you are using iOS 8 or higher, then simply add **Pubnative.framework** to your project. To do this, click on your application’s target, then click on “Build Phases” and expand the “Embedded Binaries group”. Add **Pubnative.framework** file here.\n  * If you are below iOS 8, you can manually clone the repository and Drag & Drop **sdk/sdk** folder into your Xcode application group. (Be sure to check the “Copy items into destination group’s folder” option.) \n[block:api-header]\n{\n  \"title\": \"PubNative Admob iOS Adapter\"\n}\n[/block]\nDownload PubNative AdMob adapter files and add them to your project. To do this, drag the **admob** folder into your Xcode application group. (Be sure to check the “Copy items into destination group’s folder” option.)\n[block:api-header]\n{\n  \"title\": \"Configuring a Custom Event\"\n}\n[/block]\nPubNative AdMob iOS Adapter supports the following ad formats:\n\n  * [Banner](http://developers.pubnative.net/v3.0/docs/admob-adapter-2#adding-a-custom-event-for-mediation-of-banners)\n  * [Mrect](http://developers.pubnative.net/v3.0/docs/admob-adapter-2#adding-a-custom-event-for-mediation-of-mrect)\n  * [Interstitial](http://developers.pubnative.net/v3.0/docs/admob-adapter-2#adding-a-custom-event-for-mediation-of-interstitia) \n[block:api-header]\n{\n  \"title\": \"Adding a Custom Event for mediation of Banners\"\n}\n[/block]\nAdd a Custom event in your AdMob account: \n  * Sign in to your AdMob account.\n  * Choose an application to configure mediation.\n  * Create new Ad Unit.\n  * Go to “Mediation” section.\n  * Create new mediation or modify existing one. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/b3ad6b6-8659b91-AdMob_Mediation.png\",\n        \"8659b91-AdMob_Mediation.png\",\n        852,\n        603,\n        \"#dd4338\"\n      ]\n    }\n  ]\n}\n[/block]\n  * Choose a Banner type.\n  * Add new Custom Event.\n  * Setup all parameters as you want at next screen, and go to next\n\n\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"PNAMBannerCustomEvent\",\n      \"language\": \"text\",\n      \"name\": \"Class Name\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t\\t“app_token”: “<YOUR_APPTOKEN>”,\\n\\t\\t“placement”: “<PLACEMENT_NAME>”\\n\\t}\",\n      \"language\": \"text\",\n      \"name\": \"Parameter\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Adding a Custom Event for mediation of MRect\"\n}\n[/block]\nSame procedure as for Banners. The only difference is that you need to configure it for Medium placements.\n[block:api-header]\n{\n  \"title\": \"Adding a Custom Event for mediation of Interstitials\"\n}\n[/block]\nAdd a Custom event in your AdMob account: \n  * Sign in to your AdMob account.\n  * Choose an application to configure mediation.\n  * Create new Ad Unit.\n  * Go to “Mediation” section.\n  * Create new mediation or modify existing one. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/2d91810-80d3919-AdMob_Mediation.png\",\n        \"80d3919-AdMob_Mediation.png\",\n        852,\n        603,\n        \"#dd4338\"\n      ]\n    }\n  ]\n}\n[/block]\n  * Choose a Interstitial type.\n  * Add new Custom Event.\n  * Setup all parameters as you want at next screen, and go to next\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"PNAMInterstitialCustomEvent\",\n      \"language\": \"text\",\n      \"name\": \"Class Name\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t\\t“app_token”: “<YOUR_APPTOKEN>”,\\n\\t\\t“placement”: “<PLACEMENT_NAME>”\\n\\t}\",\n      \"language\": \"text\",\n      \"name\": \"Parameter\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"admob-adapter-2","type":"basic","title":"AdMob Adapter iOS"}
This guide is intended for publishers who are interested in serving native ads, banner ads, MRect ads and fullscreen interstitials from PubNative using the AdMob mediation network. This document will include help the setting up of the mediation adapter with your iOS application and setting up any additional request parameters. [block:api-header] { "title": "Requirements" } [/block] * AdMob SDK * PubNative SDK * Pubnative AdMob Adapter * An App Token obtained from PubNative Dashboard * A Placement Name configured and obtained from the PubNative Dashboard [block:api-header] { "title": "AdMob iOS SDK" } [/block] Download and install the AdMob SDK as described in the AdMob for [iOS documentation](https://developers.google.com/admob/ios/quick-start). [block:api-header] { "title": "PubNative iOS SDK" } [/block] You can add PubNative SDK in your project in two ways: * If you are using iOS 8 or higher, then simply add **Pubnative.framework** to your project. To do this, click on your application’s target, then click on “Build Phases” and expand the “Embedded Binaries group”. Add **Pubnative.framework** file here. * If you are below iOS 8, you can manually clone the repository and Drag & Drop **sdk/sdk** folder into your Xcode application group. (Be sure to check the “Copy items into destination group’s folder” option.) [block:api-header] { "title": "PubNative Admob iOS Adapter" } [/block] Download PubNative AdMob adapter files and add them to your project. To do this, drag the **admob** folder into your Xcode application group. (Be sure to check the “Copy items into destination group’s folder” option.) [block:api-header] { "title": "Configuring a Custom Event" } [/block] PubNative AdMob iOS Adapter supports the following ad formats: * [Banner](http://developers.pubnative.net/v3.0/docs/admob-adapter-2#adding-a-custom-event-for-mediation-of-banners) * [Mrect](http://developers.pubnative.net/v3.0/docs/admob-adapter-2#adding-a-custom-event-for-mediation-of-mrect) * [Interstitial](http://developers.pubnative.net/v3.0/docs/admob-adapter-2#adding-a-custom-event-for-mediation-of-interstitia) [block:api-header] { "title": "Adding a Custom Event for mediation of Banners" } [/block] Add a Custom event in your AdMob account: * Sign in to your AdMob account. * Choose an application to configure mediation. * Create new Ad Unit. * Go to “Mediation” section. * Create new mediation or modify existing one. [block:image] { "images": [ { "image": [ "https://files.readme.io/b3ad6b6-8659b91-AdMob_Mediation.png", "8659b91-AdMob_Mediation.png", 852, 603, "#dd4338" ] } ] } [/block] * Choose a Banner type. * Add new Custom Event. * Setup all parameters as you want at next screen, and go to next [block:code] { "codes": [ { "code": "PNAMBannerCustomEvent", "language": "text", "name": "Class Name" } ] } [/block] [block:code] { "codes": [ { "code": "{\n\t\t“app_token”: “<YOUR_APPTOKEN>”,\n\t\t“placement”: “<PLACEMENT_NAME>”\n\t}", "language": "text", "name": "Parameter" } ] } [/block] [block:api-header] { "title": "Adding a Custom Event for mediation of MRect" } [/block] Same procedure as for Banners. The only difference is that you need to configure it for Medium placements. [block:api-header] { "title": "Adding a Custom Event for mediation of Interstitials" } [/block] Add a Custom event in your AdMob account: * Sign in to your AdMob account. * Choose an application to configure mediation. * Create new Ad Unit. * Go to “Mediation” section. * Create new mediation or modify existing one. [block:image] { "images": [ { "image": [ "https://files.readme.io/2d91810-80d3919-AdMob_Mediation.png", "80d3919-AdMob_Mediation.png", 852, 603, "#dd4338" ] } ] } [/block] * Choose a Interstitial type. * Add new Custom Event. * Setup all parameters as you want at next screen, and go to next [block:code] { "codes": [ { "code": "PNAMInterstitialCustomEvent", "language": "text", "name": "Class Name" } ] } [/block] [block:code] { "codes": [ { "code": "{\n\t\t“app_token”: “<YOUR_APPTOKEN>”,\n\t\t“placement”: “<PLACEMENT_NAME>”\n\t}", "language": "text", "name": "Parameter" } ] } [/block]