Cannot create “Promoted-Only” Tweets with as_user_id param


#1

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:

  1. 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
    }

  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!


#2

Hey @jschwindt,

In order to use the POST accounts/:account_id/tweet endpoint on behalf of a user who is not the FULL promotable user, you’ll want to check if the current user has been granted specific TWEET_COMPOSER access to the account. You can check this via GET accounts/:account_id/authenticated_user_access. If the user doesn’t have TWEET_COMPOSER and isn’t the FULL promotable user, an account admin will need to grant the ability to create Promoted-Only Tweets in ads.twitter.com. More details on that here (sample of that screen is also below). If you have trouble with that, the Help link in the corner of the Ads UI should get you in touch with the account management teams.

We’ll see if we can make the docs clearer around this.

Thanks!


#3

Hi @jaakkosf,

The problem I have is that I don’t get that checkbox in my UI:

Can you tell me what it depends on?

Thank you!

Juan.


#4

I had the same problem. When I added a payment method, it suddenly appeared.