Search code examples
c#.netpermissionsgoogle-ads-apiaccess-levels

Google AdWords account permissions via api


This question is for those who are working with Google AdWords.

In Google AdWords, we have these account permissions

enter image description here

Is there any way to check if a user has read-only, standard or admin permissions via API? In ManagedCustomerService we have canManageClients, is this the admin? What about ready only and standard permissions?


Solution

  • You need to use the CustomerUserAccess entity. It's pretty simple and example code is provided here: https://developers.google.com/google-ads/api/docs/account-management/managing-users

    You'll need the users ID and the customer ID which I assume you already have from your question. Pass those, an Ad Client and a new role and you're good to go.