Consider making a test call at the start, with SOAP Header "ValidateOnly" set to true. Suitable test calls are creating an ad group (easiest) or creating a campaign (harder, but also works on accounts without campaigns).
Hope this helps.
Note: I think security is not a point of focus at Google. I asked at an API workshop what happens whether a user with read only access can execute a script, and in that case whether the script could set labels. The silence said it all. Noone knew the expected behavior (eg. are errors logged or is the log readonly?!) could be. This was over a year ago but I don't think anything changed.
On Monday, November 23, 2015 at 9:55:21 PM UTC+1, Clicquot The Dog wrote:
        -- Hope this helps.
Note: I think security is not a point of focus at Google. I asked at an API workshop what happens whether a user with read only access can execute a script, and in that case whether the script could set labels. The silence said it all. Noone knew the expected behavior (eg. are errors logged or is the log readonly?!) could be. This was over a year ago but I don't think anything changed.
On Monday, November 23, 2015 at 9:55:21 PM UTC+1, Clicquot The Dog wrote:
Thanks for the reply Anthony. Assuming though that I can't exactly walk over to said user's computer to see what kind of Account access they have, is there a suggested approach to dealing with this? I dislike the idea of essentially doing a try / catch when creating an ad because I don't know ahead of time whether the client has permission to do so.
On Monday, November 23, 2015 at 3:38:51 PM UTC-5, Anthony Madrigal wrote:Hello,
There is currently no way to see your access level by using the API. However, you can check your access level by navigating to your AdWords account then selecting Account settings -> Account access.Cheers,AnthonyAdWords API Team
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/4c2cb762-391e-4d3a-8967-3fefd4ed0cf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment