User not found error

api

#1

We faced with the problem during work with this account
https://ads-api.twitter.com/4/accounts/18ce54aubl2

{
    "request": {
        "params": {
            "account_id": "18ce54aubl2"
        }
    },
    "data": {
        "name": "Sprinklr Brasil",
        "business_name": null,
        "timezone": "America/Sao_Paulo",
        "timezone_switch_at": "2016-05-05T03:00:00Z",
        "id": "18ce54aubl2",
        "created_at": "2016-03-28T14:30:38Z",
        "salt": "f37a6ad6b9c703ccd0abe849f49d7bd4",
        "updated_at": "2016-06-27T14:26:50Z",
        "industry_type": "BUSINESS_TO_BUSINESS",
        "business_id": null,
        "approval_status": "ACCEPTED",
        "deleted": false
    }
}

This account has the promotable user
https://ads-api.twitter.com/4/accounts/18ce54aubl2/promotable_users

{
    "request": {
        "params": {
            "account_id": "18ce54aubl2"
        }
    },
    "next_cursor": null,
    "data": [
        {
            "user_id": "3345747682",
            "id": "isana",
            "account_id": "18ce54aubl2",
            "created_at": "2016-03-28T14:30:38Z",
            "updated_at": "2016-05-06T16:05:09Z",
            "deleted": false,
            "promotable_user_type": "FULL"
        }
    ]
}

But request to scoped_timeline endpoint reitrive the error
https://ads-api.twitter.com/4/accounts/18ce54aubl2/scoped_timeline?scoped_to=followers&count=1000

{
    "errors": [
        {
            "code": "INVALID_PARAMETER",
            "message": "Expected user id to be promotable users, got \"3345747682\" for user_id",
            "parameter": "user_id"
        }
    ],
    "request": {
        "params": {
            "count": 1000,
            "scoped_to": "followers",
            "account_id": "18ce54aubl2"
        }
    }
}

Also the attempt to get information about the user via such request:
https://api.twitter.com/1.1/users/show.json?user_id=3345747682
retrieve error:

{
    "errors": [
        {
            "code": 50,
            "message": "User not found."
        }
    ]
}

But how it possible? Other endpoints retrieve information about this user except for show.json. According to the response of other endpoints, user exists, it’s not being deleted and the account is active also.


#2

Thanks for the question, @damir_mv, and for outlining the various requests you’ve made. It helps a lot.

Both the GET users/show and GET accounts/:account_id/scoped_timeline endpoints have the right information, although the latter could use a better error message. This user (3345747682) is, indeed, not found.

The GET accounts/:account_id/promoted_users endpoint simply returns the information it has, but does not check on the particular status of the user. It just provides the information about who owns the ads account.

What user are you authenticated as? That will help me understand why we return the account information in the GET accounts request.

Thanks again.


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.


#4

#5

@damir_mv I reopened this topic.

Thanks,
Shohei


#7

Are you asking about username? We did requests under Sprinklr Brasil account


#8

Thanks!


#9

@damir_mv Hi, it looks like this Ads account was suspended at some point. In fact, I assume you can’t access your Ads account page anymore: https://ads.twitter.com/ads_manager/18ce54aubl2/campaigns/

I’m not sure why and I can’t check your account history either, so you may want to reach out to our sales rep or someone appropriate person.

Best,
Shohei