{"_id":"59679c5ec97c200015940738","project":"574ff4bd3fa1870e00889ba6","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"},"category":{"_id":"57b486ae0d2b640e00e9d3f5","__v":0,"project":"574ff4bd3fa1870e00889ba6","version":"574ff4bd3fa1870e00889ba9","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-17T15:45:50.062Z","from_sync":false,"order":7,"slug":"native-ads-mediation-layer","title":"Android SDK"},"user":"5770fa1ce5a0000e0023c680","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-13T16:14:22.743Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":11,"body":"[block:api-header]\n{\n  \"title\": \"Extended View\"\n}\n[/block]\nIt is possible to configure several design elements of native ads within each ad layout method (**[Small](http://developers.pubnative.net/docs/standard-ad-layouts)**, **[Medium](http://developers.pubnative.net/docs/medium-ad-layouts)** or **[Large](http://developers.pubnative.net/docs/large-ad-layouts)**). Below you can find common methods for each ad layout and layout specific methods.\n[block:api-header]\n{\n  \"title\": \"All Ad Layouts\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"setContainerBackgroundColor(int color) { }\\nsetAdBackgroundColor(int color) { }\",\n      \"language\": \"text\",\n      \"name\": \"Background colour\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"setTitleTextColor(int color) { }\\nsetTitleTextSize(float size) { }\\nsetTitleTextFont(Typeface font) { }\",\n      \"language\": \"text\",\n      \"name\": \"Title colour, size and font\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"setDescriptionTextColor(int color) { }\\nsetDescriptionTextSize(float size) { }\\nsetDescriptionTextFont(Typeface font) { }\",\n      \"language\": \"text\",\n      \"name\": \"Description colour, size and font\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"setCallToActionBackgroundColor(int color) { }\\nsetCallToActionTextColor(int color) { }\\nsetCallToActionTextSize(float size) { }\\nsetCallToActionTextFont(Typeface font) { }\",\n      \"language\": \"text\",\n      \"name\": \"Call-To-Action button background, text colour, text size and text font\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Small Ad Layout specific\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"setIconPosition(IconPosition position) { }\",\n      \"language\": \"text\",\n      \"name\": \"Icon position\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Medium Ad Layout specific\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"setIconPosition(IconPosition position) { }\\nsetBannerPosition(BannerPosition position) { }\",\n      \"language\": \"text\",\n      \"name\": \"Icon and Banner positions\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Large Ad Layout specific\"\n}\n[/block]\nCurrently, Large layout has no possibilities for changes in the UI.","excerpt":"","slug":"ad-layouts-configurationsextended-view","type":"basic","title":"Ad Layouts configurations"}

Ad Layouts configurations


[block:api-header] { "title": "Extended View" } [/block] It is possible to configure several design elements of native ads within each ad layout method (**[Small](http://developers.pubnative.net/docs/standard-ad-layouts)**, **[Medium](http://developers.pubnative.net/docs/medium-ad-layouts)** or **[Large](http://developers.pubnative.net/docs/large-ad-layouts)**). Below you can find common methods for each ad layout and layout specific methods. [block:api-header] { "title": "All Ad Layouts" } [/block] [block:code] { "codes": [ { "code": "setContainerBackgroundColor(int color) { }\nsetAdBackgroundColor(int color) { }", "language": "text", "name": "Background colour" } ] } [/block] [block:code] { "codes": [ { "code": "setTitleTextColor(int color) { }\nsetTitleTextSize(float size) { }\nsetTitleTextFont(Typeface font) { }", "language": "text", "name": "Title colour, size and font" } ] } [/block] [block:code] { "codes": [ { "code": "setDescriptionTextColor(int color) { }\nsetDescriptionTextSize(float size) { }\nsetDescriptionTextFont(Typeface font) { }", "language": "text", "name": "Description colour, size and font" } ] } [/block] [block:code] { "codes": [ { "code": "setCallToActionBackgroundColor(int color) { }\nsetCallToActionTextColor(int color) { }\nsetCallToActionTextSize(float size) { }\nsetCallToActionTextFont(Typeface font) { }", "language": "text", "name": "Call-To-Action button background, text colour, text size and text font" } ] } [/block] [block:api-header] { "title": "Small Ad Layout specific" } [/block] [block:code] { "codes": [ { "code": "setIconPosition(IconPosition position) { }", "language": "text", "name": "Icon position" } ] } [/block] [block:api-header] { "title": "Medium Ad Layout specific" } [/block] [block:code] { "codes": [ { "code": "setIconPosition(IconPosition position) { }\nsetBannerPosition(BannerPosition position) { }", "language": "text", "name": "Icon and Banner positions" } ] } [/block] [block:api-header] { "title": "Large Ad Layout specific" } [/block] Currently, Large layout has no possibilities for changes in the UI.