Good day dear Twitter team!
We have a problem with downloading report for the account 18ce53wm3ha.
Request (POST with empty body): https://ads-api.twitter.com/9/stats/jobs/accounts/18ce53wm3ha?start_time=2021-10-25T18%3A00%3A00Z&granularity=DAY&end_time=2021-10-26T18%3A00%3A00Z&metric_groups=WEB_CONVERSION&placement=ALL_ON_TWITTER&entity_ids=18ce53wm3ha&entity=ACCOUNT
Response: {“code”:“ACTION_NOT_ALLOWED”,“message”:“This user does not have permission to read or for account 18ce53wm3ha”}
NOTE: There is no problem with fetching of user data: https://ads-api.twitter.com/9/accounts and also tweets for this account: https://ads-api.twitter.com/9/accounts/18ce53wm3ha/tweets?timeline_type=ALL&include_mentions_and_replies=true&tweet_type=PUBLISHED.
How the account access should be configured to avoid this error?
Hi team,
could you please help with the question above?
imit8me
#3
Hey @FivetranD
Based off the error message it sounds like the authenticated user making the request doesn’t have the appropriate permissions for the Ads account. You can use the GET authenticated_user_access endpoint to verify the user’s permissions prior to making the request.
Thanks!
Hi @imit8me
yes, the permission was checked
https://ads-api.twitter.com/9/accounts/18ce53wm3ha/authenticated_user_access
… and the user has CREATIVE_MANAGER and TWEET_COMPOSER roles:
{"request":{"params":{"account_id":"18ce53wm3ha"}},"data":{"user_id":1****9,"user_id_str":"1***9","permissions":["CREATIVE_MANAGER","TWEET_COMPOSER"]}}
According to the documentation creative manager should have access to ads.twitter.com.
Kind Regards
imit8me
#5
Thanks for the update. So, in order to be able to pull analytics for an ads account, the user needs to have CAMPAIGN_ANALYST, AD_MANAGER or ACCOUNT_ADMIN permissions. The current user permissions would only allow the user to create and manage creatives for the ads account.
Thanks!