Hello dear Forum,

I am migrating the Google Adwords API to the new Google Ads API using 
Python for both. I am using a manager account with several client accounts 
linked to it. These other accounts are managed form the manager account and 
reporting works perfectly fine when using the "old" AdWords API. When I 
tried to make the fist call with the new API 
(https://developers.google.com/google-ads/api/docs/first-call/get-campaigns) 
I wasn't able to recieve reports from our linked accounts. I recieved the 
following error:

  "errors": [
    {
      "errorCode": {
        "authorizationError": "USER_PERMISSION_DENIED"
      },
      "message": "User doesn't have permission to access customer."
    }
  ]
}

I was wondering if our clients will have to take some action (like to grant 
rights ) or if I am missing something in the use of the new API.
I login via client secret/id and developer token of my manager account. The 
request going out to the managed accounts via their customer id is:

    query = ("""
SELECT campaign.name, campaign.status, segments.device, metrics.impressions, 
metrics.clicks,
       metrics.ctr, metrics.average_cpc, metrics.cost_micros
FROM campaign
WHERE segments.date DURING LAST_30_DAYS
    """)
response = ga_service.search(customer_id, query, page_size=page_size)


Any help will be appreciated.

Greets Tobias





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4407304b-811b-4df3-b616-c1f0039475d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to