Can not create promtoted tweets using for promotable_user_type = RETWEET_ONLY

api

#1

i have ads account with many promotable users attached,

there is one user with promotable_user_type = FULL, i have no issue in creating promotable tweets using this account user id in as_user_id

But when i try to create tweets for promotable_user_type = RETWEET_ONLY i get an unauthorised error

My question is that can we create new promotable tweets for promotable_user_type = RETWEET_ONLY, or this type of promotable users can only retweet and can not create new tweets


#2

@usmanarham: Thanks for the question and for providing some details.

The promotable users endpoint lists the users whose content can be promoted by the current account.

To determine whether you can create a Tweet for an advertiser, use the authenticated user access endpoint and look for the TWEET_COMPOSER permission.

Let us know if this helps. Thanks!


Publication failed with Account Administrator User
#3

@juanshishido Thanks for the reply, i am sharing some more details of what issue i am facing

my call for promotable users give me the following results for account : 18ce545ghtr

$ twurl -H ads-api.twitter.com "/2/accounts/18ce545ghtr/promotable_users"
{
  "request": {
    "params": {
      "account_id": "18ce545ghtr"
    }
  },
  "next_cursor": null,
  "data": [
    {
      "user_id": "1955986946",
      "id": "de979",
      "account_id": "18ce545ghtr",
      "created_at": "2015-09-15T11:09:48Z",
      "updated_at": "2015-09-15T11:09:48Z",
      "deleted": false,
      "promotable_user_type": "FULL"
    },
    {
      "user_id": "622094740",
      "id": "ft3e9",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:31:10Z",
      "updated_at": "2015-11-17T06:31:10Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    },
    {
      "user_id": "2576308465",
      "id": "ft3ej",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:31:20Z",
      "updated_at": "2015-11-17T06:31:20Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    },
    {
      "user_id": "3192800988",
      "id": "ft3ep",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:31:29Z",
      "updated_at": "2015-11-17T06:31:29Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    },
    {
      "user_id": "3075052712",
      "id": "ft3ev",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:31:39Z",
      "updated_at": "2015-11-17T06:31:39Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    },
    {
      "user_id": "2906236656",
      "id": "ft3f2",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:31:48Z",
      "updated_at": "2015-11-17T06:31:48Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    },
    {
      "user_id": "2410836547",
      "id": "ft3fi",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:31:56Z",
      "updated_at": "2015-11-17T06:31:56Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    },
    {
      "user_id": "1563408608",
      "id": "ft3fs",
      "account_id": "18ce545ghtr",
      "created_at": "2015-11-17T06:32:04Z",
      "updated_at": "2015-11-17T06:32:04Z",
      "deleted": false,
      "promotable_user_type": "RETWEETS_ONLY"
    }
  ]
}

My call for authenticated user access give me the following results for accoount : 18ce545ghtr

$ twurl -H ads-api.twitter.com "/2/accounts/18ce545ghtr/authenticated_user_access"
{
  "data": {
    "user_id": 56716780,
    "permissions": [
      "ACCOUNT_ADMIN",
      "TWEET_COMPOSER"
    ]
  },
  "request": {
    "params": {
      "account_id": "18ce545ghtr"
    }
  }
}

The problem comes when i try to use user id 2410836547 to create promotable tweets i get unauthorised error that user 56716780 is not allowed to create pormotable tweets for user id 2410836547

but if i user user id : 1955986946 it works.

the only difference i see between the the two promotable users is
user id : 1955986946 , promotable_user_type = FULL
user id : 2410836547, promotable_user_type = RETWEETS_ONLY

Why am i allowed to create tweets for account user id 1955986946 and not for 2410836547.


#4

(I’ve edited your code blocks for readability.)

@usmanarham: In the first request, you’re authenticated as user 1955986946 (@careem). I can infer this because the object with that user ID is listed as a FULL promotable user type.

In the second request, however, you’re authenticated as user 56716780 (@zeerakzubdah). The response tells us that that user is able to create (nullcasted) Tweets—because of the TWEET_COMPOSER permission—on behalf of 18ce545ghtr's FULL promotable userwhich is 1955986946 (@careem). Those Tweet create requests should succeed.

Next, you say:

The problem comes when i try to use user id 2410836547 to create promotable tweets i get unauthorised error that user 56716780 is not allowed to create pormotable tweets for user id 2410836547

In this case, I’m assuming you’re still authenticated as user 56716780 (@zeerakzubdah) trying to create Tweets for user 2410836547 (@CareemPAK). I would urge you to check the authenticated user access endpoint once more using @CareemPAK’s ads account in the resource path. That should give you an indication of what’s going on.

If you still need help, please provide the Tweet create requests, both the successful and unsuccessful ones.

Thanks.