I’m trying to create a Promoted-Only tweet for a user_id (@jschwindt) that granted permission to another account (@overprintme) using the endpoint https://dev.twitter.com/ads/reference/post/accounts/%3Aaccount_id/tweet but I was unable to do it yet. This is how I tried:
-
Listing accounts that @overpirntme has access:
twurl accounts
Overprintme
YoLq8LFVAXnKCEb80wTzNK4NW (default)
twurl -H ads-api.twitter.com /0/accounts | python -m “json.tool”
{
“data”: [
{
“approval_status”: “ACCEPTED”,
“created_at”: “2014-07-14T20:59:07Z”,
“deleted”: false,
“id”: “18ce53w89u3”,
“name”: “Juan Schwindt”,
“salt”: “c1ff3cb47d930886ab9f90cc6dacdf45”,
“timezone”: “America/Denver”,
“timezone_switch_at”: “2014-07-13T06:00:00Z”,
“updated_at”: “2014-07-14T20:59:43Z”
},
{
“approval_status”: “ACCEPTED”,
“created_at”: “2015-08-24T17:51:32Z”,
“deleted”: false,
“id”: “18ce542bske”,
“name”: “Overprint”,
“salt”: “fee09f74a3269fa03fa135764766b306”,
“timezone”: “America/Los_Angeles”,
“timezone_switch_at”: “2015-08-23T07:00:00Z”,
“updated_at”: “2015-08-24T17:52:00Z”
}
],
“data_type”: “account”,
“next_cursor”: null,
“request”: {
“params”: {}
},
“total_count”: 2
}
-
Trying to publish tweet for @jschwindt id=1955061
twurl -H ads-api.twitter.com /0/accounts/18ce53w89u3/tweet -d ‘status=From @overprintme with @jschwindt account_id&as_user_id=1955061’ | python -m ‘json.tool’
{
“errors”: [
{
“code”: “UNAUTHORIZED_ACCESS”,
“message”: “User 3413092361 is not authorized to create tweets for user id 1955061”
}
],
“request”: {
“params”: {
“account_id”: “18ce53w89u3”,
“as_user_id”: 1955061,
“status”: “From @overprintme with @jschwindt account_id”
}
}
}
Here https://ads.twitter.com/accounts/18ce53w89u3/account_users logged as @jschwindt I granted Ad Manager rights to @overprintme but I couldn’t make it work, any clue?
Thanks!