I am ran this 
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/authentication/generate_refresh_token.py>
 
github token creation than I used this token for OAuth sometimes successful 
and other times i got USER_PERMISSION_DENIED or PERMISSION_DENIED. After 
setting up Oauth keys for x-times, generating token for xy- times i now 
only seem to get this error:

 google.api_core.exceptions.PermissionDenied: 403 Request had insufficient 
authentication scopes.

I dont understand how it works

I have following structure:

--> Company Huge MCC
           --> Other Company sub MCCs
                         --> Account I want to get campigns from
i was trying to use this 
<https://github.com/googleads/googleads-python-lib/blob/9bfa25c1bbd45957a8d670c7d744523c8457dd32/examples/adwords/v201809/basic_operations/get_campaigns.py>
 
get campign script, obviously I am complete beginner and still dont 
understand where in the script this OAuth magic happens and how the 
permissions are handeled and whatever.

I also set up test account like this
--> TEST MCC
         --> Test Account
                  --> Test Campign
trying to use the same script as above but i failed miserably with the same

  google.api_core.exceptions.PermissionDenied: 403 Request had insufficient 

Error.

Can you explain how this code works?:

ga_service = client.get_service("GoogleAdsService", version="v6") (line 30)



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f285089a-9c75-4c99-9fc9-c51bd587cbf9n%40googlegroups.com.

Reply via email to