Hi,
I think sending the message via private didn't go through, so, I am sending
it via this channel.
We made an API call: gAdsClient.ShowAccountHierarchy( loginCustomerId:
4822940284 );
This is the response:
The hierarchy of customer ID 4822940284 is printed below:
Customer ID (Descriptive Name, Currency Code, Time Zone)
4822940284 (MerchantAdvantage, USD, America/New_York)
--2684650069 (AllivetPPC, USD, America/New_York)
--6764581459 (CAL Ranch, USD, America/Denver)
----2668359371 (C-A-L Ranch, USD, America/Chicago)
--7663396020 (Devine Medical, USD, America/Los_Angeles)
--More accounts...
The client customer in question is the first one ( 2684650069 ).
So, if we can see it in the list above, why do we get error
USER_PERMISSION_DENIED when we try to create a keyword for this client
customer?
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v13.services.AdGroupCriterionService/MutateAdGroupCriteria
Host:
Headers: {
"x-goog-api-client": "gl-dotnet/4.7.2 gapic/15.0.0
gax/4.0.0+7489c236e0a5801d0f6e89bf1c23433f48521956 grpc/2.46.3 gccl/2.1.0
pb/3.21.5+638779f353731a0a04496bde20d14164684c3d93",
"developer-token": "REDACTED",
"login-customer-id": "4822940284",
"x-goog-request-params": "customer_id=2684650069"
}
{ "customerId": "2684650069", "operations": [ { "create": { "status":
"ENABLED", "keyword": { "matchType": "EXACT", "text": "Flurbiprofen 0.03
Ophthalmic Drops, 2.5 ml" }, "adGroup":
"customers/2684650069/adGroups/109104318229", "finalUrls": [
"https://www.allivet.com/product/flurbiprofen-0-03-drops-2-5-ml/28902.html"
] } } ] }
Response
--------
Headers: {
"request-id": "ixZmDBZcOuPNI-qQK1dSpg",
"date": "Wed, 22 Mar 2023 13:28:57 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
"google.ads.googleads.v13.errors.googleadsfailure-bin":
"Cv8BCgJIAhL4AVVzZXIgZG9lc24ndCBoYXZlIHBlcm1pc3Npb24gdG8gYWNjZXNzIGN1c3RvbWVyLiBOb3RlOiBJZiB5b3UncmUgYWNjZXNzaW5nIGEgY2xpZW50IGN1c3RvbWVyLCB0aGUgbWFuYWdlcidzIGN1c3RvbWVyIGlkIG11c3QgYmUgc2V0IGluIHRoZSAnbG9naW4tY3VzdG9tZXItaWQnIGhlYWRlci4gU2VlIGh0dHBzOi8vZGV2ZWxvcGVycy5nb29nbGUuY29tL2dvb2dsZS1hZHMvYXBpL2RvY3MvY29uY2VwdHMvY2FsbC1zdHJ1Y3R1cmUjY2lkEhZpeFptREJaY091UE5JLXFRSzFkU3Bn",
"grpc-status-details-bin":
"CAcSI1RoZSBjYWxsZXIgZG9lcyBub3QgaGF2ZSBwZXJtaXNzaW9uGuMCCkR0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMy5lcnJvcnMuR29vZ2xlQWRzRmFpbHVyZRKaAgr/AQoCSAIS+AFVc2VyIGRvZXNuJ3QgaGF2ZSBwZXJtaXNzaW9uIHRvIGFjY2VzcyBjdXN0b21lci4gTm90ZTogSWYgeW91J3JlIGFjY2Vzc2luZyBhIGNsaWVudCBjdXN0b21lciwgdGhlIG1hbmFnZXIncyBjdXN0b21lciBpZCBtdXN0IGJlIHNldCBpbiB0aGUgJ2xvZ2luLWN1c3RvbWVyLWlkJyBoZWFkZXIuIFNlZSBodHRwczovL2RldmVsb3BlcnMuZ29vZ2xlLmNvbS9nb29nbGUtYWRzL2FwaS9kb2NzL2NvbmNlcHRzL2NhbGwtc3RydWN0dXJlI2NpZBIWaXhabURCWmNPdVBOSS1xUUsxZFNwZw=="
}
Fault: {
"StatusCode": 7,
"Details": "The caller does not have permission",
"RequestId": "ixZmDBZcOuPNI-qQK1dSpg",
"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": "ixZmDBZcOuPNI-qQK1dSpg"
}
}
----------------END API CALL----------------
What are the possible causes for this issue?
Thanks.
On Thursday, March 23, 2023 at 10:26:31 AM UTC-5 Google Ads API Forum
Advisor wrote:
> Hi,
>
> Thanks for getting back with us.
>
> Moving forward to your error about* "Customer ID 4822940284 is likely a
> test account, so its customer client information cannot be retrieved."*.
> Could you confirm if you got this error while running the API call to *Get
> Account Hierarchy*
> <https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy>
> while
> using the *customer_client*
> <https://developers.google.com/google-ads/api/fields/v13/customer_client_query_builder>
> resource?
> As upon checking on our end the CID 4822940284 has Standard API access and
> not a test account.
>
> In line with this, for us to further investigate, could you provide us the
> complete *request*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
> and *response*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
> logs
> with *request ID*
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> generated
> as shown in the respective links.
>
> You may then send the requested logs via the Reply privately to author
> option. If the reply privately option is not available, you can send your
> logs directly to our *[email protected]* alias instead.
>
> Regards,
> [image: Google Logo] Google Ads API Team
>
> ref:_00D1U1174p._5004Q2k27Mx: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/118c96b6-203e-4539-9a08-61321b7440e1n%40googlegroups.com.