Programatically see what level of access an account manager is given

15 views
Skip to first unread message

James Andrews

unread,
Jan 24, 2019, 8:42:58 AM1/24/19
to AdWords API and Google Ads API Forum
Hello,

I have an manager account with several managed accounts of varying access level.  I would like to be able to sort the managed accounts into groups by access level, but I don't see a call in the API docs to get the access level a manager has via the API.   Does such a call exist?  And if so can you point me in the right direction?

Thanks,
James

James Andrews

unread,
Jan 28, 2019, 9:26:24 AM1/28/19
to AdWords API and Google Ads API Forum
I seem to have gotten unnoticed, anyone? bueller?

Zweitze

unread,
Jan 28, 2019, 10:44:20 AM1/28/19
to AdWords API and Google Ads API Forum
I am not aware of a direct call in AdWords API, although the new Ads API (currently in beta) may have some.

I do know a workaround. Identify API calls that fail when the user has no sufficient access rights.
Then call that exact API call with header flag "validateOnly" set to true. When that flag is set, the API will report errors, but if no errors occur, the API will NOT execute the call.
The idea is that you check whether the error occurs. However, be aware of different errors.

For instance: You could try creating a campaign with validateOnly. When that succeeds with validateOnly set, you know that the user has more than read-only access. But, when it fails, you should be aware of different errors as well, for instance you didn't supply a campaign name, or its name was too long, or a campaign with the same name exists, etc. In other words, on failure you've got to examine the error.

A special warning about disabled accounts (not campaigns or groups, but accounts): when an account is disabled, all API calls fail. Reasons for Google to disable an account include (for instance) lacking payments, repeatedly violating T&C, etc. But, when you think about it, that's a special type of access, so it does make sense.

googleadsapi...@google.com

unread,
Jan 28, 2019, 3:14:50 PM1/28/19
to AdWords API and Google Ads API Forum
Hello James,

Unfortunately, it is not possible to fetch the access level via API. You could only see the access level via "Account access" section of the AdWords account via UI.

Regards,
Sai Teja, AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages