Hello,

I'm struggling to make my first API call, as described here 
<https://developers.google.com/google-ads/api/docs/first-call/get-campaigns?hl=en-US>
.

When I run "get_campaigns.py" I get this error:

Request with ID "..." failed with status "PERMISSION_DENIED" and includes 
the following errors:
        Error with 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 am running this on a windows machine through Anaconda Prompt. In the 
"basic_operations" directory I execute: python get_campaigns.py -c 
MY_CLIENT_ID. "MY_CLIENT_ID" is the ID of the client who's campaigns I am 
trying to see. This client is under my test MCC account. 

I think something might be wrong with my google-ads.yaml file, but I'm not 
sure what. It's set up as:

use_proto_plus: True (added this in based on an error message, but it's not 
included 
here 
<https://developers.google.com/google-ads/api/docs/first-call/refresh-token?hl=en-US>
)
developer_token: TEST TOKEN FROM MY PRODUCTION GOOGLE ADS ACCOUNT
client_id: CLIENT ID FROM MY PRODUCTION CLIENT'S GOOGLE ADS APP
client_secret:  CLIENT SECRET FROM MY PRODUCTION CLIENT'S GOOGLE ADS APP
refresh_token: REFRESH TOKEN GENERATED FOLLOWING THESE INSTRUCTIONS 
<https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-desktop?hl=en-US>
login_customer_id: ID FOR TEST MCC ACCOUNT

Are these values correct? If so, what else could generate the above error 
message?

Thank you!
Kyle





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f52f6e73-8a70-462a-bc8a-316caaee1e06n%40googlegroups.com.

Reply via email to