{"__v":21,"_id":"5774ce18cee322190018f567","category":{"__v":0,"_id":"577279865617b117009e643f","project":"574ff4bd3fa1870e00889ba6","version":"574ff4bd3fa1870e00889ba9","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-06-28T13:20:06.542Z","from_sync":false,"order":4,"slug":"native-code-examples","title":"Native Code Sample"},"parentDoc":null,"project":"574ff4bd3fa1870e00889ba6","user":"5770dd042659e20e00c90a98","version":{"__v":17,"_id":"574ff4bd3fa1870e00889ba9","project":"574ff4bd3fa1870e00889ba6","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"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-30T07:45:28.427Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"PubNative gives you unlimited freedom in the way you integrate your ads. However, some inspiration never hurts! \n\nYou can access PubNative's open library of integration examples in order to make the best of native advertising.\n\nClick on the images below to access the library for iOS, Android, Corona, Cocos2d-x, and Unity.\n[block:html]\n{\n  \"html\": \"<div class=\\\"isa_info\\\">\\n  <strong><font color=\\\"7d0a80\\\">Note!</font></strong> Our samples are fully OpenRTB compatible!\\n</div> \"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<table>\\n  <tr>\\n  \\t<td><center><b>iOS</b></center></td>\\n    <td><center><b>Android</b></center></td>\\n    <td><center><b>Corona</b></center></td>\\n    <td><center><b>Cocos2d-x</b></center></td>\\n    <td><center><b>Unity</b></center></td>\\n  </tr>\\n\\n  <tr>\\n\\n\\t\\t<td><center> \\n      <a href=\\\"http://github.com/pubnative/pubnative-ios-library\\\" target=\\\"_blank\\\">\\n  \\t\\t<img src=\\\"https://cdn4.iconfinder.com/data/icons/iconsimple-logotypes/512/apple-128.png\\\" height=\\\"75\\\" width=\\\"75\\\" hspace=\\\"20\\\"/img>\\n\\t\\t</a></center>\\n    </td>\\n\\n\\t\\t<td><center>\\n    <a href=\\\"https://github.com/pubnative/pubnative-android-library\\\" target=\\\"_blank\\\">\\n  \\t\\t<img src=\\\"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Android_robot.svg/512px-Android_robot.svg.png\\\" height=\\\"75\\\" width=\\\"60\\\" hspace=\\\"20\\\"/img>\\n\\t\\t</a></center>\\n    </td>\\n\\n    <td><center>\\n\\t\\t<a href=\\\"https://github.com/pubnative/pubnative-corona-library\\\" target=\\\"_blank\\\">\\n  \\t\\t<img src=\\\"https://coronalabs.com/wp-content/uploads/2013/10/Flat_Corona_250x250.png\\\" height=\\\"75\\\" width=\\\"75\\\" hspace=\\\"20\\\"/img>\\n\\t\\t</a></center>\\n    </td>\\n\\n    <td><center>\\n\\t\\t\\t<a href=\\\"https://github.com/pubnative/pubnative-cocos2dx-library\\\" target=\\\"_blank\\\">\\n  \\t\\t\\t<img src=\\\"https://pbs.twimg.com/profile_images/596196096457646081/4r4N6CNO.png\\\" height=\\\"75\\\" width=\\\"75\\\" hspace=\\\"20\\\"/img>\\n\\t\\t\\t</a></center>\\n    </td>\\n\\n\\t\\t<td><center>\\n    <a href=\\\"https://github.com/pubnative/pubnative-unity-library\\\" target=\\\"_blank\\\">\\n   \\t\\t<img src=\\\"http://www.shiva-engine.com/legacy/wiki/images/archive/a/aa/20100523235954!Unity_logo.png\\\" height=\\\"75\\\" width=\\\"75\\\" hspace=\\\"20\\\"/img>\\n\\t\\t</a></center>\\n    </td>\\n</table>\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<div></div>\\n\\n<style>\\n.isa_info {\\nmargin: 10px 0px;\\npadding:12px;\\n}\\n\\n.isa_info {\\n    color: #424242;\\n    background-color: #dcdcdc;\\n}\\n\\n.isa_info i {\\n    margin:10px 22px;\\n    font-size:16px;\\n    vertical-align:middle;\\n}\\n</style>\"\n}\n[/block]","excerpt":"","slug":"native-code-samples","type":"basic","title":"Native Code Samples"}

Native Code Samples


PubNative gives you unlimited freedom in the way you integrate your ads. However, some inspiration never hurts! You can access PubNative's open library of integration examples in order to make the best of native advertising. Click on the images below to access the library for iOS, Android, Corona, Cocos2d-x, and Unity. [block:html] { "html": "<div class=\"isa_info\">\n <strong><font color=\"7d0a80\">Note!</font></strong> Our samples are fully OpenRTB compatible!\n</div> " } [/block] [block:html] { "html": "<table>\n <tr>\n \t<td><center><b>iOS</b></center></td>\n <td><center><b>Android</b></center></td>\n <td><center><b>Corona</b></center></td>\n <td><center><b>Cocos2d-x</b></center></td>\n <td><center><b>Unity</b></center></td>\n </tr>\n\n <tr>\n\n\t\t<td><center> \n <a href=\"http://github.com/pubnative/pubnative-ios-library\" target=\"_blank\">\n \t\t<img src=\"https://cdn4.iconfinder.com/data/icons/iconsimple-logotypes/512/apple-128.png\" height=\"75\" width=\"75\" hspace=\"20\"/img>\n\t\t</a></center>\n </td>\n\n\t\t<td><center>\n <a href=\"https://github.com/pubnative/pubnative-android-library\" target=\"_blank\">\n \t\t<img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Android_robot.svg/512px-Android_robot.svg.png\" height=\"75\" width=\"60\" hspace=\"20\"/img>\n\t\t</a></center>\n </td>\n\n <td><center>\n\t\t<a href=\"https://github.com/pubnative/pubnative-corona-library\" target=\"_blank\">\n \t\t<img src=\"https://coronalabs.com/wp-content/uploads/2013/10/Flat_Corona_250x250.png\" height=\"75\" width=\"75\" hspace=\"20\"/img>\n\t\t</a></center>\n </td>\n\n <td><center>\n\t\t\t<a href=\"https://github.com/pubnative/pubnative-cocos2dx-library\" target=\"_blank\">\n \t\t\t<img src=\"https://pbs.twimg.com/profile_images/596196096457646081/4r4N6CNO.png\" height=\"75\" width=\"75\" hspace=\"20\"/img>\n\t\t\t</a></center>\n </td>\n\n\t\t<td><center>\n <a href=\"https://github.com/pubnative/pubnative-unity-library\" target=\"_blank\">\n \t\t<img src=\"http://www.shiva-engine.com/legacy/wiki/images/archive/a/aa/20100523235954!Unity_logo.png\" height=\"75\" width=\"75\" hspace=\"20\"/img>\n\t\t</a></center>\n </td>\n</table>" } [/block] [block:html] { "html": "<div></div>\n\n<style>\n.isa_info {\nmargin: 10px 0px;\npadding:12px;\n}\n\n.isa_info {\n color: #424242;\n background-color: #dcdcdc;\n}\n\n.isa_info i {\n margin:10px 22px;\n font-size:16px;\n vertical-align:middle;\n}\n</style>" } [/block]