You may need to enforce a specific ad in the player during integration and troubleshoot iterations.
Using a proxy tool such as Charles proxy you can map the Teads ad response in order to serve the creative of your choice.
- Download Charles proxy
- Connect Charles to your phone: https://www.charlesproxy.com/documentation/faqs/using-charles-from-an-iphone/
- Use the "map local" option as below in order to map the Teads ad Response with a local response.
Please find below an ad_response.json example.
{
"settings": {
"values": {
"animations": {
"expand": 0,
"collapse": 0.5
},
"placementFormat": "inread",
"adType": "video",
"pageId": 0,
"brandLogoUrl": "",
"placementId": 127432,
"allowedPlayer": "any",
"threshold": 50
},
"components": {
"soundButton": {
"display": true,
"countdown": 0,
"type": "equalizer"
},
"slider": {
"closeButtonDisplay": false
},
"callButton": {
"display": false
},
"closeButton": {
"display": false,
"countdown": 0
},
"endScreen": {
"replayButton": {
"text": "Rejouer la vidéo"
},
"callButton": {
"type": "learnMore",
"text": "En savoir plus"
},
"autoClose": false,
"countdown": 6,
"type": "simple"
},
"credits": {
"display": true,
"text": "Ads by [Teads]",
"link": "https://hp.teads.com/?utm_source=inread&utm_medium=credits&utm_campaign=invented%20by%20teads"
},
"brandLogo": {
"display": false
},
"label": {
"display": true,
"text": "PUBLICITÉ"
}
},
"behaviors": {
"playerClick": "fullscreen",
"soundStart": {
"type": "mute"
},
"soundMute": "threshold",
"soundOver": "over",
"slider": {
"enable": false
},
"friendly": false,
"secure": false,
"end": "endscreen",
"launch": "auto",
"videoStart": "threshold",
"videoPause": "no",
"sticky": true,
"onlyNative": true,
"smartPosition": {
"top": false,
"corner": false,
"mustBypassWhitelist": true
}
}
},
"ads": [{
"settings": {
"values": {
"animations": {
"expand": 0,
"collapse": 0.5
},
"placementFormat": "inread",
"adType": "video",
"pageId": 0,
"brandLogoUrl": "",
"placementId": 127432,
"allowedPlayer": "any",
"threshold": 50
},
"components": {
"soundButton": {
"display": true,
"countdown": 0,
"type": "equalizer"
},
"slider": {
"closeButtonDisplay": false
},
"callButton": {
"display": false
},
"closeButton": {
"display": false,
"countdown": 0
},
"endScreen": {
"replayButton": {
"text": "Rejouer la vidéo"
},
"callButton": {
"type": "learnMore",
"text": "En savoir plus"
},
"autoClose": false,
"countdown": 6,
"type": "simple"
},
"credits": {
"display": true,
"text": "Ads by [Teads]",
"link": "https://hp.teads.com/?utm_source=inread&utm_medium=credits&utm_campaign=invented%20by%20teads"
},
"brandLogo": {
"display": false
},
"label": {
"display": true,
"text": "PUBLICITÉ"
}
},
"behaviors": {
"playerClick": "fullscreen",
"soundStart": {
"type": "mute"
},
"soundMute": "threshold",
"soundOver": "over",
"slider": {
"enable": false
},
"friendly": false,
"secure": false,
"end": "endscreen",
"launch": "auto",
"videoStart": "threshold",
"videoPause": "no",
"sticky": true,
"onlyNative": true,
"smartPosition": {
"top": false,
"corner": false,
"mustBypassWhitelist": true
}
}
},
"type": "VastXml",
"content": "<VAST version=\"3.0\"><Ad id=\"446499\"><Wrapper><AdSystem>Teads Technology</AdSystem><VASTAdTagURI><![CDATA[https://misc.teads.tv/inapp/1550-video-sdk-om.1.2.20.xml]]></Error><Creatives></Creatives></Wrapper></Ad></VAST>",
"connection_id": 72392,
"scenario_id": 6974,
"dsp_campaign_id": "446499",
"ad_source_id": 125,
"dsp_creative_id": "438710",
"insertion_id": 446499,
"placement_id": 127432,
"portfolio_item_id": 1
}],
"wigoEnabled": false,
"placementMetadata": {
"127432": {
"adCallTrackingUrl": "https://t.teads.tv/track?action=adCall&pid=127432&pageId=0",
"auctionId": "6dac5538-abd8-4d8e-b84b-44cd04d50fbf"
}
},
"viewerId": "BB5AC305-6CEC-4368-8DBD-7A3272F8B22D"
}
Replace https://misc.teads.tv/inapp/1550-video-sdk-om.1.2.20.xml with any VAST URL you want to test.
Please keep in mind ad will start only if visibility conditions are met, see troubleshooting section.