Failed to preview scheduled tweet using GET accounts/:account_id/tweet/preview/:tweet_id

api

#1
$ twurl -H "https://ads-api.twitter.com" "/2/accounts/18ce54iditw/scheduled_tweets/914756833742487552" | jq "."
{
  "request": {
    "params": {
      "scheduled_tweet_id": 914756833742487600
    }
  },
  "data": {
    "completed_at": null,
    "id_str": "914756833742487552",
    "text": "test tweet PROMOTED BBBB",
    "user_id": "870127656477483008",
    "scheduled_status": "SCHEDULED",
    "id": 914756833742487600,
    "media_ids": [],
    "nullcast": true,
    "created_at": "2017-10-02T07:39:59Z",
    "scheduled_at": "2018-07-06T22:07:00Z",
    "card_uri": null,
    "updated_at": "2017-10-02T07:39:59Z",
    "tweet_id": null,
    "media_keys": []
  }
}

$ twurl -H "https://ads-api.twitter.com" "/2/accounts/18ce54iditw/tweets/preview/914756833742487552" | jq "."
{
  "errors": [
    {
      "code": "ROUTE_NOT_FOUND",
      "message": "The requested resource could not be found"
    }
  ],
  "request": {
    "params": {}
  }
}```

#2

If it is not a bug, would you please tell me how to preview a scheduled tweet?


#3

:disappointed_relieved: Could anyone help me?


#4

Thanks for the question, @wenping.wang. This isn’t currently supported, but we’re working on it. We’ll update the thread with more information when we have it.


#5

@wenping.wang: To get an HTML preview for a Scheduled Tweet, use the new GET accounts/:account_id/scheduled_tweets/preview/:scheduled_tweet_id endpoint. See our Tweet preview improvements announcement for more detail.