{"__v":0,"_id":"58526ffc60eb6a2300f56b31","category":{"__v":26,"_id":"564dcf87d3320b0d0028ca10","pages":["564dcfb4d3320b0d0028ca11","564dd25da8671617004e7b71","564dd3a7e39c4435005a1f33","564ddbcbd3320b0d0028ca25","564ddcb2a8671617004e7b8e","564ddfffa8671617004e7b94","564de165a8671617004e7b97","564de17d9176e9170068007b","564de194e39c4435005a1f56","564de3d99176e9170068007e","564de439fe07a81700b5c3af","564ef3911e9a082b00344ea1","564f03dfedbade0d000efa57","564f0978234efc0d006e186e","564f0d9aaf8ae235002db90e","564f133e4f000617007bd68e","564f14d829338a1700beefcd","564f15619eb2701700532470","564f2fec6b10960d00865761","564f302b6b10960d00865764","564f33e219857f2b00387a44","564f35d110b21d3500ad29d3","564f42e41af2c835004bfbe9","564f456ab85ee335004cbdb3","5652e161b83d8e0d00d24b6b","56859949cfc7cf0d001cb3f5"],"project":"564621e00c30fb2100ba3814","version":"564621e10c30fb2100ba3817","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-19T13:32:55.176Z","from_sync":false,"order":6,"slug":"api-overview","title":"Ad Request API"},"parentDoc":null,"project":"564621e00c30fb2100ba3814","user":"564621d275c83f0d00e9d52d","version":{"__v":14,"_id":"564621e10c30fb2100ba3817","project":"564621e00c30fb2100ba3814","createdAt":"2015-11-13T17:46:09.275Z","releaseDate":"2015-11-13T17:46:09.275Z","categories":["564621e10c30fb2100ba3818","564624cf0c30fb2100ba3822","564628d69f3f550d00fa3db6","564dafeeda00e82b00ed601d","564daff8fc36dc3700882b95","564db0ccda00e82b00ed601f","564dcf87d3320b0d0028ca10","5661a6e436398e0d00f79566","568585153703ed1700e420b0","56858767d96a760d00545da6","56858d693703ed1700e420b2","56858d8d22c41b0d00e4666c","56859e9c009a8d0d00797130","5685a6453703ed1700e420d3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-15T10:27:08.365Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":15,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"All iOS ad requests must be made using HTTPs\",\n  \"body\": \"Starting with ~~1st January 2017~~ (deadline extended by Apple to a date in the future) Apple will default to \\\"secure HTTP connections\\\".\\n\\nThis is called ATS (Application Transport Security) and will ensure that all data is transferred securely between your app and servers.\"\n}\n[/block]\nMobFox will validate ad markup and serve you only secure ads (if requested).\n\nPlease keep in mind that not all demand partners will have switched to secure ads so that we expect the Fill Rate to drop for a short while until the market adapted to secure ads. The reason for the Fill Rate to drop is that MobFox will discard insecure ads to protect your Render Rate on iOS.\n\nYou can find [Apple's official ATS docs here](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html?mkt_tok=eyJpIjoiWldJMVkyVm1PVFV3TW1JeSIsInQiOiJZKytxcFdOM2ZOaGZQekFiV1FiWDhwQ1EzV3liVlRxK2hza0xvb3pDY1NENzVKcVpmTkpEWTVIXC96bjB2VFB6NVwvZm5tNHU1UDloQ2ZsYXFcL08rWjFDZDlSd3JVUVVCMXZRZTJUOWdkRkFDND0ifQ%3D%3D#//apple_ref/doc/uid/TP40009251-SW35).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"What it means for you as a publisher\"\n}\n[/block]\n##Complying to ATS means\n1. Sending **all ad requests** (via API, iOS SDK, JS SDK) to MobFox using **HTTPs** only, so that iOS doesn't block your ad requests\n2. Adding [imp_secure=1](doc:global-request-parameters) to your ad request parameters to indicate you want to receive only secure ad markup\n\n## When making Server-to-Server (S2S) ad requests\nS2S connections don't need to use **HTTPs**.\nWhat needs to be secure is the **HTTP call from iOS** and **the markup served** to your user.\n\n## When using our JS SDK\nMake sure to use only **HTTPs** when inserting our JS tag into your app - see below.\nAlso add the **secure** flag to the JS src=\"\" to indicate that you want to receive only secure ads.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"//ATS support is enabled by using HTTPs instead of HTTP when loading any \\\"src\\\" file AND by adding the secure=1 flag to indicate that you want to receive only secure ads\\n\\n<script src=\\\"https://my.mobfox.com/ad_sdk.js?secure=1&...\\\"></script>\",\n      \"language\": \"javascript\",\n      \"name\": \"JS SDK\"\n    }\n  ]\n}\n[/block]\nShould you have questions please don't hesitate to contact us at [mobfox-support:::at:::mobfox.com](mailto:mobfox-support@mobfox.com).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Best Practice\"\n}\n[/block]\nWe recommend supporting ATS as soon as possible.\n\nIt's common to also switch Android ad requests to being secure because it protects users data best.","excerpt":"What it means for you as a MobFox publisher","slug":"secure-ads","type":"basic","title":"Secure Ads"}

Secure Ads

What it means for you as a MobFox publisher

[block:callout] { "type": "danger", "title": "All iOS ad requests must be made using HTTPs", "body": "Starting with ~~1st January 2017~~ (deadline extended by Apple to a date in the future) Apple will default to \"secure HTTP connections\".\n\nThis is called ATS (Application Transport Security) and will ensure that all data is transferred securely between your app and servers." } [/block] MobFox will validate ad markup and serve you only secure ads (if requested). Please keep in mind that not all demand partners will have switched to secure ads so that we expect the Fill Rate to drop for a short while until the market adapted to secure ads. The reason for the Fill Rate to drop is that MobFox will discard insecure ads to protect your Render Rate on iOS. You can find [Apple's official ATS docs here](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html?mkt_tok=eyJpIjoiWldJMVkyVm1PVFV3TW1JeSIsInQiOiJZKytxcFdOM2ZOaGZQekFiV1FiWDhwQ1EzV3liVlRxK2hza0xvb3pDY1NENzVKcVpmTkpEWTVIXC96bjB2VFB6NVwvZm5tNHU1UDloQ2ZsYXFcL08rWjFDZDlSd3JVUVVCMXZRZTJUOWdkRkFDND0ifQ%3D%3D#//apple_ref/doc/uid/TP40009251-SW35). [block:api-header] { "type": "basic", "title": "What it means for you as a publisher" } [/block] ##Complying to ATS means 1. Sending **all ad requests** (via API, iOS SDK, JS SDK) to MobFox using **HTTPs** only, so that iOS doesn't block your ad requests 2. Adding [imp_secure=1](doc:global-request-parameters) to your ad request parameters to indicate you want to receive only secure ad markup ## When making Server-to-Server (S2S) ad requests S2S connections don't need to use **HTTPs**. What needs to be secure is the **HTTP call from iOS** and **the markup served** to your user. ## When using our JS SDK Make sure to use only **HTTPs** when inserting our JS tag into your app - see below. Also add the **secure** flag to the JS src="" to indicate that you want to receive only secure ads. [block:code] { "codes": [ { "code": "//ATS support is enabled by using HTTPs instead of HTTP when loading any \"src\" file AND by adding the secure=1 flag to indicate that you want to receive only secure ads\n\n<script src=\"https://my.mobfox.com/ad_sdk.js?secure=1&...\"></script>", "language": "javascript", "name": "JS SDK" } ] } [/block] Should you have questions please don't hesitate to contact us at [mobfox-support@mobfox.com](mailto:mobfox-support@mobfox.com). [block:api-header] { "type": "basic", "title": "Best Practice" } [/block] We recommend supporting ATS as soon as possible. It's common to also switch Android ad requests to being secure because it protects users data best.