Creating an App Carousel card adds unwanted slashes to deep_link.
Whether you create it from the API or from the admin screen, a slash is added to deep_link.
$ twurl -H ads-api.twitter.com -A 'Content-type: application/json' /9/accounts/18ce54j6614/cards -d '{"components":[{"media_keys":["7_1381618153352876035","7_1382343777646374917"],"type":"SWIPEABLE_MEDIA"},{"destination":{"country_code":"JP","googleplay_app_id":"XXX.android.XXXXX","googleplay_deep_link":"XXXXX-jp-XXXX://","ipad_app_id":"000000","ipad_deep_link":"XXXXX-jp-XXXX://","iphone_app_id":"000000","iphone_deep_link":"XXXXX-jp-XXXX://","type":"APP"},"label":{"type":"ENUM","value":"OPEN"},"type":"BUTTON"}],"name":"test_card"}' | jq
{
"request": {
"params": {
"account_id": "18ce54j6614"
}
},
"data": {
"name": "test_card",
"components": [
{
"type": "SWIPEABLE_MEDIA",
"media_keys": [
"7_1381618153352876035",
"7_1382343777646374917"
]
},
{
"type": "BUTTON",
"label": {
"type": "ENUM",
"value": "OPEN"
},
"destination": {
"type": "APP",
"country_code": "JP",
"googleplay_app_id": "XXX.android.XXXXX",
"googleplay_deep_link": "XXXXX-jp-XXXX:///", <-------------- added slash
"ipad_app_id": "000000",
"ipad_deep_link": "XXXXX-jp-XXXX:///", <-------------- added slash
"iphone_app_id": "000000",
"iphone_deep_link": "XXXXX-jp-XXXX:///" <-------------- added slash
}
}
],
"created_at": "2021-06-04T07:23:26Z",
"card_uri": "card://1400714799428739072",
"updated_at": "2021-06-04T07:23:26Z",
"deleted": false
}
}
Hey @pinchan
Thanks for reaching out! We’re looking into the issue and will report back once we know more.
Thanks!
Are you still investigating this matter?
This case will continue to occur.
When will the repair be completed?
Hey @pinchan
Apologies for the delay. So, as it turns out the additional / is an intentional part of our logic for compatibility reasons. It shouldn’t ultimately affect the link itself, and will work as intended. Is there a specific use-case where this is causing an issue? Any details would be helpful.
Thanks!
If the link works, it’s okay.
thank you.