Hello,
Thanks for the information, but I have gone through this process once 
again. Just checked the GCP credentials and they're totally okay. I 
copy/pasted them just to be sure, and again went through the 
authentication/authorization process. But *same error persists*. FYI, The 
accounts which are already manually added as sub-account in the Google Ads 
Manager account, they work totally fine. i can pull their campaign data 
without any problem. But the problem is with the accounts that are not 
manually added into the Manager account. Even after the authorization, I 
can't pull their campaign data through search/searchStream or can't create 
customerClientLink with them. 


*Request / Response*

POST /v10/customers/1650865311/customerClientLinks:mutate HTTP/1.1 Host: 
googleads.googleapis.com Developer-token: SnI1Qzt-wRhz5K1_3DrKIg 
Content-length: 140 Content-type: application/json Authorization: Bearer 
ya29.a0ARrdaM9LW7dudgj4XEwEHlMR7_2RCi8HfOFMZ8sImehTsRAax3ybye-vYE-ZGUy8NC8xadziYdEJSsDj7wHn9n0NXU1L-r5podV0r6hamHuNSLvBPWsrrJCZZ_qWATL7zq_FheFRuXmn0gj0UoJc3-YVwBMC
 
Login-customer-id: 2738633711{
    "operation": { 
        "create": {
         "status": "PENDING",
  "clientCustomer": "customers/1650865311",
   
}
        },
     
}

HTTP/1.1 403 Forbidden Content-length: 733 X-xss-protection: 0 
X-content-type-options: nosniff Transfer-encoding: chunked Request-id: 
YTnXM_uZhj3_4VKa-d0BWQ Vary: Origin, X-Origin, Referer Server: ESF 
-content-encoding: gzip Cache-control: private Date: Thu, 09 Jun 2022 
12:37:00 GMT X-frame-options: SAMEORIGIN Alt-svc: h3=":443"; 
ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; 
ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; 
ma=2592000,quic=":443"; ma=2592000; v="46,43" Content-type: 
application/json; charset=UTF-8{
  "error": {
    "status": "PERMISSION_DENIED", 
    "message": "The caller does not have permission", 
    "code": 403, 
    "details": [
      {
        "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
"
          }
        ], 
        "@type": 
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure", 
        "requestId": "YTnXM_uZhj3_4VKa-d0BWQ"
      }
    ]
  }
} 

Waiting ti hear from you. 

On Thursday, June 9, 2022 at 5:36:02 PM UTC+6 adsapi wrote:

> Hi Kazi,
>
> Thank you for providing the requested information. 
>
> Upon checking this, I can see that you already set the correct customer Id 
> in the *login-customer-id* field so the error should not persist. To 
> further help you address this, the next thing we need to check is if you 
> are using Oauth credential generated the provided email address. In order 
> to check this, you may login to your GCP credential page 
> <https://console.developers.google.com/apis/credentials> using the 
> provided email address. Lastly, compare the client Id and client secret of 
> the GCP credential page and your API configuration. If not the same, you 
> may copy the client Id and client secret from the GCP credential page and 
> apply it in the API configuration. If already the same let us know so that 
> we can raise it to the rest of my team.
>
>
> Best regards,
> [image: Google Logo] 
> Jinky 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2bd2cU:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7c58d6fa-feb4-474f-ab41-0052200caee9n%40googlegroups.com.
  • Is... Kazi Khayruzzaman
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Kazi Khayruzzaman
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Kazi Khayruzzaman
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
              • ... Kazi Khayruzzaman

Reply via email to