Hello,

I am fetching accounts from a manager account with REST. In total we have 6 
manager accounts, but I can only fetch the underlying accounts for 2 
manager accounts. 

This is the error I get for those 2:
[
     [
       "error" => [
         "code" => 403,
         "message" => "The caller does not have permission",
         "status" => "PERMISSION_DENIED",
         "details" => [
           [
             "@type" => 
"type.googleapis.com/google.ads.googleads.v7.errors.GoogleAdsFailure",
             "errors" => [
               [
                 "errorCode" => [
                   "authorizationError" => "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";,
               ],
             ],
             "requestId" => "k_z4bCJzdV_loLl2H-FJiQ",
           ],
         ],
       ],
     ],
   ]

I've tried to add "login-customer-id" to the header with the customer ID of 
the manager account, but unfortunately I had no success. Which seems 
logical, as the error message says you have to do this when you're 
accessing a client customer. 

Probably some good-to-know information:

   1. I use this 
   URL: 
"https://googleads.googleapis.com/v7/customers/[MANAGER_ACCOUNT_ID]/googleAds:searchStream";
   2. For 2 manager accounts I get the child accounts, for the other 4 I 
   don't.


Could you please help?



Met vriendelijke groet / With kind regards,
Bram van Rijswijk
Backend Developer
SOCIAL BLUE
Nieuwe Steen 27
​1625 HV  Hoorn
​The Netherlands 
T: +31 (0)229 283 000
E: b.van.rijsw...@socialblue.com
We're an official Facebook Marketing Partner
Kvk: 59384360

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7b8126b5-8f2a-4fcd-83e2-35d06b5dfd2cn%40googlegroups.com.

Reply via email to