Dear Twitter Staff,
In regards to the Pre-roll CTA Endpoint, it looks like it has now been updated to show the correct endpoint: POST accounts/:account_id/preroll_call_to_actions
But when we tried to hit this endpoint, we received an INTERNAL_ERROR error code. Please see the following TWURL and advise:
twurl -t -H "https://ads-api-sandbox.twitter.com/" "/0/accounts/gq0w3i/preroll_call_to_actions" -d "line_item_id=cmab" -d "call_to_action=VISIT_SITE" -d "call_to_action_url=http://twitter.com/" -t | json-prettify
Here is the response:
{
"errors": [
{
"code": "INTERNAL_ERROR",
"message": "Internal Error"
}
],
"request": {
"params": {
}
}
}
And here is the full trace:
8963 % twurl -t -H "https://ads-api-sandbox.twitter.com/" "/0/accounts/gq0w3i/preroll_call_to_actions" -d "line_item_id=cmab" -d "call_to_action=VISIT_SITE" -d "call_to_action_url=http%3A%2F%2Ftwitter.com%2F" -t | json-prettify opening connection to ads-api-sandbox.twitter.com...
opened
<- "POST /0/accounts/gq0w3i/preroll_call_to_actions HTTP/1.1\r\nAccept: */*\r\nUser-Agent: OAuth gem v0.4.7\r\nContent-Type: application/x-www-form-urlencoded\r\nAuthorization: OAuth oauth_consumer_key=\"EC2gKPePluhEBh49u26nA\", oauth_nonce=\"6JhjYneO2krAzj8IzcKpJGK9U0GudQBLgCQqfv6Ydg\", oauth_signature=\"DzRV5o2trLKiA4%2BYimw6nSVTDP0%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1458779439\", oauth_token=\"3073813016-2Gxuh05I9karD6Vpj60XQVsPeZ85oXQ8pDhJsYL\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: ads-api-sandbox.twitter.com\r\nContent-Length: 98\r\n\r\n"
<- "line_item_id=cmab&call_to_action=VISIT_SITE&call_to_action_url=http%253A%252F%252Ftwitter.com%252F"
-> "HTTP/1.1 500 Internal Server Error\r\n"
-> "connection: close\r\n"
-> "content-disposition: attachment; filename=json.json\r\n"
-> "content-length: 89\r\n"
-> "content-type: application/json;charset=utf-8\r\n"
-> "date: Thu, 24 Mar 2016 00:30:40 GMT\r\n"
-> "server: tsa_a\r\n"
-> "set-cookie: guest_id=v1%3A145877944000610344; Domain=.twitter.com; Path=/; Expires=Sat, 24-Mar-2018 00:30:40 UTC\r\n"
-> "strict-transport-security: max-age=631138519\r\n"
-> "x-access-level: read-write-directmessages\r\n"
-> "x-connection-hash: 25d049f049d2c9f02691330011ae30fd\r\n"
-> "x-content-type-options: nosniff\r\n"
-> "x-frame-options: SAMEORIGIN\r\n"
-> "x-rate-limit-limit: 300\r\n"
-> "x-rate-limit-remaining: 300\r\n"
-> "x-rate-limit-reset: 1458779500\r\n"
-> "x-response-time: 64\r\n"
-> "x-runtime: 0.051207\r\n"
-> "x-transaction: 616ece2f5e86f4fd\r\n"
-> "x-tsa-request-body-time: 88\r\n"
-> "x-xss-protection: 1; mode=block\r\n"
-> "\r\n"
reading 89 bytes...
-> ""
-> "{\"errors\":[{\"code\":\"INTERNAL_ERROR\",\"message\":\"Internal Error\"}],\"request\":{\"params\":{}}}"
read 89 bytes
Conn close
{
"errors": [
{
"code": "INTERNAL_ERROR",
"message": "Internal Error"
}
],
"request": {
"params": {
}
}
}