The problem, shortly:
1. I have created a new client account under the manager account (via 
CustomerServiceClient::createCustomerClient).
2. After that, I've read all client links for the manager and located the 
link to the newly created client account.
3. Then I sent a mutational request to cancel that link, but it failed for 
an unknown reason (via CustomerClientLinkServiceClient::
mutateCustomerClientLink).

Let me attach here logs of each of 3 requests and responses.


*How do I unlink a client account from the manager account correctly? *(I 
found no example in the docs)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6c522ca6-0825-4308-9a6c-61a71ee4f44b%40googlegroups.com.
Request
-------
Method Name: 
/google.ads.googleads.v2.services.CustomerService/CreateCustomerClient
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.2.23 gapic\/ gax\/1.2.0 grpc\/1.26.0",
    "x-goog-request-params": "customer_id=3172192127",
    "developer-token": "REDACTED"
}
Request: 
{"customerId":"3172192127","customerClient":{"descriptiveName":"Account created 
with CustomerService on 20200214 
07:31:30","currencyCode":"EUR","timeZone":"America/New_York"}}

Response
-------
Headers: {
    "content-disposition": "attachment",
    "request-id": "nlZHC0miOLqRG_T3WNsNaA",
    "date": "Fri, 14 Feb 2020 07:31:32 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; 
ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000"
}
Response: {"resourceName":"customers/8004921225"}
Request
-------
Method Name: /google.ads.googleads.v2.services.GoogleAdsService/Search
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.2.23 gapic\/ gax\/1.2.0 grpc\/1.26.0",
    "x-goog-request-params": "customer_id=3172192127",
    "developer-token": "REDACTED",
    "login-customer-id": "3172192127"
}
Request: {"customerId":"3172192127","query":"        SELECT\n            
customer_client_link.client_customer,\n            
customer_client_link.hidden,\n            
customer_client_link.manager_link_id,\n            
customer_client_link.resource_name,\n            customer_client_link.status\n  
      FROM\n            customer_client_link\n        WHERE\n            
customer_client_link.client_customer='customers/8004921225'"}

Response
-------
Headers: {
    "content-disposition": "attachment",
    "request-id": "HSzwJDd6vohG4WvVAgCEsQ",
    "date": "Fri, 14 Feb 2020 07:31:51 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; 
ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000"
}
Response: 
{"results":[{"customerClientLink":{"resourceName":"customers/3172192127/customerClientLinks/8004921225~165046766","clientCustomer":"customers/8004921225","managerLinkId":"165046766","status":"ACTIVE","hidden":false}}],"totalResultsCount":"1","fieldMask":"customerClientLink.clientCustomer,customerClientLink.hidden,customerClientLink.managerLinkId,customerClientLink.resourceName,customerClientLink.status"}
Request
-------
Method Name: 
/google.ads.googleads.v2.services.CustomerClientLinkService/MutateCustomerClientLink
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.2.23 gapic\/ gax\/1.2.0 grpc\/1.26.0",
    "x-goog-request-params": "customer_id=3172192127",
    "developer-token": "REDACTED",
    "login-customer-id": "3172192127"
}
Request: 
{"customerId":"3172192127","operation":{"update":{"resourceName":"customers/3172192127/customerClientLinks/8004921225~165046766","clientCustomer":"customers/8004921225","managerLinkId":"165046766","status":"CANCELED","hidden":false},"updateMask":"status"}}

Response
-------
Headers: {
    "request-id": "ajZOw16cp2cXU2FhuoMXUg",
    "date": "Fri, 14 Feb 2020 07:31:53 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; 
ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000"
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {"errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The 
error code is not in this 
version.","location":{"fieldPathElements":[{"fieldName":"operation"}]}}]}

Reply via email to