I've been trying to follow the examples and documentation for the google ads API, but I haven't been able to complete a successful request. I currently have my developer token, client_id, client_secret, and refresh_token in my google ads YAML file, but I'm constantly getting authentication errors. Without adding any explicit scopes when generating the refresh token, I get the error below:
google.api_core.exceptions.PermissionDenied: 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT" domain: "googleapis.com" metadata {key: "method" value: "google.ads.googleads.v9.services.GoogleAdsService.SearchStream'} metadata {key: "service" value: "googleads.googleapis.com"}]. I thought the issue was not explicitly adding the adwords scope for the SearchStream call, but generating a new refresh token with that scope gave me another error shown below: google.auth.exceptions.RefreshError: ('unauthorized_client: Unauthorized', {'error': 'unauthorized_client', 'error_description': 'Unauthorized'}). I'm pretty confident that I followed the documentation correctly, so I was wondering if anyone had any advice on how I could tackle this issue. If it helps, I'm getting the errors above when trying the get_campaigns.py example. Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords 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/544a0c4a-d48b-4486-8691-4261c1e1db0en%40googlegroups.com.