Find out whether OAuth2 user is read-only

98 views
Skip to first unread message

GD

unread,
May 16, 2017, 10:29:15 AM5/16/17
to AdWords API Forum
Hi,

I wonder whether there is any way to find out if an OAuth user has read-only access to the API. Currently, the only way we can detect this is when we get OperationAccessDenied.ACTION_NOT_PERMITTED errors, but it would be nice to be able to check this in advance.

Vishal Vinayak (Adwords API Team)

unread,
May 16, 2017, 11:10:33 AM5/16/17
to AdWords API Forum
Hi,

Access levels (such as Read only, Administrative Access etc.) pertain to the email address associated with the OAuth credentials used to authenticate the SOAP call. You can check the access level associated with an email address by signing in to the your AdWords account and navigating to Account Settings > Account Access. Unfortunately, this information is not available via the API. Please feel free to revert if you have additional questions. 

Regards,
Vishal, AdWords API Team

Zweitze

unread,
May 17, 2017, 8:51:14 AM5/17/17
to AdWords API Forum
Most likely you can find out by making a sample call with request header validateOnly set to true.
If you do so, the request will never be executed, but you do get feedback whether the call could be executed - and if it can't be executed you get the errors.

GD

unread,
May 17, 2017, 9:22:32 AM5/17/17
to AdWords API Forum
Thanks, this is a great idea.
Reply all
Reply to author
Forward
0 new messages