{"_id":"57c834e059cd4b0e00b888f0","version":{"_id":"574ff4bd3fa1870e00889ba9","project":"574ff4bd3fa1870e00889ba6","__v":20,"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"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"parentDoc":null,"category":{"_id":"57c8349b5754fa1700b12242","project":"574ff4bd3fa1870e00889ba6","version":"574ff4bd3fa1870e00889ba9","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-09-01T14:00:59.579Z","from_sync":false,"order":12,"slug":"counter","title":"Ad Tag"},"project":"574ff4bd3fa1870e00889ba6","user":"57a4ab017523720e00b4aa44","__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-01T14:02:08.487Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Pubnative supports integration with MoPub as a Custom Network. If you’ve integrated the MoPub SDK already, you don’t need to write any extra code! Instead, you can place a Custom Network ad tag and target it to your existing inventory. Pubnative ad tag has built in support for failing over to the next ad source.\n\n\n\n## Create a New Custom Network\n\n  * Go to Networks\n  * Add a Network\n  * Custom Network\n  * Save Section\n  * Go to Network Detail Page\n\n\n## Create a New Order\n\n  * Click on the Orders tab in the header.\n\n  * Click the Add a New Order button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/a3d1b7d-New_order.png\",\n        \"New order.png\",\n        1060,\n        300,\n        \"#eaf1f2\"\n      ]\n    }\n  ]\n}\n[/block]\n  * Enter a descriptive name for the order and set the Advertiser to “Pubnative”. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/91ffb33-Order_name.png\",\n        \"Order name.png\",\n        1060,\n        321,\n        \"#2f3138\"\n      ]\n    }\n  ]\n}\n[/block]\n## Create a New Line Item\n\nUse the following parameters in the Add a Line Item section:\n\n  * Type: “Network”\n  * Priority: 1\n  * Name: Descriptive label that contains the parameters of running this ad tag\n  * Network: “Custom Network”\n  * Name: “Pubnative Banner”\n  * Custom HTML: Add the HTML tag provided by your Pubnative account manager here\n  * Set the Delivery Speed option to “Spread Evenly”.\n  * Leave other fields as their default values.\n \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/c1603d8-Place_ad_tag_here.png\",\n        \"Place ad tag here.png\",\n        871,\n        412,\n        \"#dfdcdb\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Waterfall Priority settings\",\n  \"body\": \"We recommend publishers to refrain from running PN ad tag on the last position of the waterfall. As this may result in discrepancies in impression numbers recorded in the Pubnative dashboard.\"\n}\n[/block]\n  * Find the Ad Unit to which you connect the ad tag\n  * Check the box under the AD UNITS column.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/399932e-connect_ad_unit.png\",\n        \"connect ad unit.png\",\n        1211,\n        530,\n        \"#f2f3f3\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Ad Unit supported\",\n  \"body\": \"Pubnative ad tag supports MREC, Banner, and Medium - 300x250 and 320x50 ad units ONLY\"\n}\n[/block]\n\n Geo, Connectivity, and Device Targeting section:\n \n* Select the Filter by device and OS option.\n* Set the Min to 4.4 for Android.\n* Leave other fields as their default values \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/fe79410-geo_targetting.png\",\n        \"geo targetting.png\",\n        1225,\n        610,\n        \"#dfdfdc\"\n      ]\n    }\n  ]\n}\n[/block]\n  \n* Configure any custom targeting in the Advanced Targeting sections.\n\n* Click the Save and View button. \n\n* Send the “Ad Unit ID” to your Pubnative account manager. This will allow us to test your configuration.","excerpt":"","slug":"mopub-ad-tag-integration","type":"basic","title":"MoPub Ad Tag Integration"}

MoPub Ad Tag Integration


Pubnative supports integration with MoPub as a Custom Network. If you’ve integrated the MoPub SDK already, you don’t need to write any extra code! Instead, you can place a Custom Network ad tag and target it to your existing inventory. Pubnative ad tag has built in support for failing over to the next ad source. ## Create a New Custom Network * Go to Networks * Add a Network * Custom Network * Save Section * Go to Network Detail Page ## Create a New Order * Click on the Orders tab in the header. * Click the Add a New Order button. [block:image] { "images": [ { "image": [ "https://files.readme.io/a3d1b7d-New_order.png", "New order.png", 1060, 300, "#eaf1f2" ] } ] } [/block] * Enter a descriptive name for the order and set the Advertiser to “Pubnative”. [block:image] { "images": [ { "image": [ "https://files.readme.io/91ffb33-Order_name.png", "Order name.png", 1060, 321, "#2f3138" ] } ] } [/block] ## Create a New Line Item Use the following parameters in the Add a Line Item section: * Type: “Network” * Priority: 1 * Name: Descriptive label that contains the parameters of running this ad tag * Network: “Custom Network” * Name: “Pubnative Banner” * Custom HTML: Add the HTML tag provided by your Pubnative account manager here * Set the Delivery Speed option to “Spread Evenly”. * Leave other fields as their default values. [block:image] { "images": [ { "image": [ "https://files.readme.io/c1603d8-Place_ad_tag_here.png", "Place ad tag here.png", 871, 412, "#dfdcdb" ] } ] } [/block] [block:callout] { "type": "warning", "title": "Waterfall Priority settings", "body": "We recommend publishers to refrain from running PN ad tag on the last position of the waterfall. As this may result in discrepancies in impression numbers recorded in the Pubnative dashboard." } [/block] * Find the Ad Unit to which you connect the ad tag * Check the box under the AD UNITS column. [block:image] { "images": [ { "image": [ "https://files.readme.io/399932e-connect_ad_unit.png", "connect ad unit.png", 1211, 530, "#f2f3f3" ] } ] } [/block] [block:callout] { "type": "warning", "title": "Ad Unit supported", "body": "Pubnative ad tag supports MREC, Banner, and Medium - 300x250 and 320x50 ad units ONLY" } [/block] Geo, Connectivity, and Device Targeting section: * Select the Filter by device and OS option. * Set the Min to 4.4 for Android. * Leave other fields as their default values [block:image] { "images": [ { "image": [ "https://files.readme.io/fe79410-geo_targetting.png", "geo targetting.png", 1225, 610, "#dfdfdc" ] } ] } [/block] * Configure any custom targeting in the Advanced Targeting sections. * Click the Save and View button. * Send the “Ad Unit ID” to your Pubnative account manager. This will allow us to test your configuration.