Hi, I'm trying to run the GoogleAdsServiceClient->search(MCC_ACCOUNT_ID, query) method.
I have set both clientCustomerId, and loginCustomerId to MCC_ACCOUNT_ID (without hyphens). After requesting I get: Failure: {"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":"PXzsKpUMYkZ_n1Y_T3_PqA"} *Request details:* Method Name: /google.ads.googleads.v8.services.GoogleAdsService/Search Host: googleads.googleapis.com Headers: { "x-goog-api-client": "gl-php\/7.4.24 gccl\/12.0.0 gapic\/12.0.0 gax\/1.7.1 grpc\/1.41.0", "x-goog-request-params": "customer_id=REMOVED", "developer-token": "REDACTED", "login-customer-id": "REMOVED" } Request: {"customerId":"REMOVED","query":"SELECT customer_client.client_customer, customer_client.level, customer_client.id FROM customer_client WHERE customer_client.level <= 1"} As you can see I've included the loginCustomerId but still getting the error message. Can you suggest anything for me to do? Thank you in advance, Andjel -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/236fb178-ef49-4c4f-bfa3-489b1725e5c4n%40googlegroups.com.