RE: Programatically see what level of access an account manager is given

2019-01-28 Thread googleadsapi-forumadvisor via 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ug1g8dgh3g000l4veq004vq9jcw68mj8chg60o30c1g68q3gd1h%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Programatically see what level of access an account manager is given

2019-01-28 Thread Zweitze
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, etc. But, when you think about it, that's a 
special type of access, so it does make sense.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0ec38360-b9d3-42bd-b8c4-8e9ec00643c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Programatically see what level of access an account manager is given

2019-01-28 Thread James Andrews
I seem to have gotten unnoticed, anyone? bueller?


On Thursday, January 24, 2019 at 10:42:58 PM UTC+9, James Andrews wrote:
>
> 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
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a6648479-5417-42e1-8c1d-fae2e7620e94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.