BTW: i of course looked into that link but i cant figure out how to add this damn header into the request. Where is this header generated?
Pavel Hegler schrieb am Dienstag, 16. März 2021 um 17:58:33 UTC+1: > I fixed it a little bit. I just redid the whole Oauth thing and than I ran > it again and now i only get this error: > errors { > error_code { > authorization_error: USER_PERMISSION_DENIED > } > message: "User doesn\'t have permission to access customer. Note: If > you\'re accessing a client customer, the manager\'s customer id must be set > in the \'login-customer-id\' header. See > https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid > " > } > > I put a variable > login-customer-id: *Account number of my Company Huge MCC without -* > into my google-ads.yaml file and i get the same problem. > > PLS Help > > > > > > Pavel Hegler schrieb am Dienstag, 16. März 2021 um 16:45:29 UTC+1: > >> 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/f05d36af-2296-4c3d-bb6f-85ce4117ef80n%40googlegroups.com.