I was able to resolve the issue. After giving access to account used to generate credentials I was able to get all campaigns for particular customer id.
Reference: https://groups.google.com/g/adwords-api/c/sq7EeUt4Sp8/m/NlP-yZSKBAAJ On Wednesday, December 28, 2022 at 5:18:47 PM UTC+5:30 Aditya Todkar wrote: > I am trying to make first API call using this command: > python get_campaigns.py --customer_id=352-XXXXXX > > 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 have already created test manager account and after that I have created > 2 accounts each having one test campaign. > > I have added test manager account customer id in google.yaml file but when > I use customer id of red and blue account in python get_campaigns script it > shows above error message. Can someone please let me know what I am missing? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/bc2de88d-ccc7-4d2b-8e1d-c5501afa7c0cn%40googlegroups.com.