Hi Google Ads team,
I'm trying to use this documentation
https://developers.google.com/google-ads/api/rest/reference/rest/v10/customers.customerClientLinks/mutate#MutateCustomerClientLinkResult
to create link between a Manager account and a client account.
I have added the necessary headers, Authorization, login-customer-id,
developer-token. But still no solution to this.
*Whenever I send this:*
{
"operation": {
"create": {
"resourceName":
"customers/1650865311/customerClientLinks/1650865311~2738633711",
"status": "PENDING",
"clientCustomer": "1650865311",
"managerLinkId": "2738633711",
"hidden": false
},
},
"validateOnly": true
}
*It gives me this error:*
"error": {
"status": "INVALID_ARGUMENT",
"message": "Request contains an invalid argument.",
"code": 400,
"details": [
{
"errors": [
{
"errorCode": {
"requestError": "RESOURCE_NAME_MALFORMED"
},
"message": "Resource name '1650865311' is malformed: expected
'customers/{customer_id}'.",
"location": {
"fieldPathElements": [
{
"fieldName": "operation"
},
{
"fieldName": "create"
},
{
"fieldName": "client_customer"
}
]
}
},
{
"errorCode": {
"requestError": "IMMUTABLE_FIELD"
},
"message": "Field 'hidden' cannot be modified by 'CREATE'
operation.",
"location": {
"fieldPathElements": [
{
"fieldName": "operation"
},
{
"fieldName": "create"
},
{
"fieldName": "hidden"
}
]
}
},
{
"errorCode": {
"newResourceCreationError": "CANNOT_SET_ID_FOR_CREATE"
},
"message": "Do not set the id field while creating new
resources.",
"trigger": {
"stringValue":
"customers/1650865311/customerClientLinks/1650865311~2738633711"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operation"
},
{
"fieldName": "create"
},
{
"fieldName": "resource_name"
}
]
}
}
],
"@type":
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
"requestId": "gbIWqnm3MvgcnhTzUZShYw"
}
]
}
}
Can't find out what's the right argument.
How to do this in right way with REST API ???
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/88ac8de0-7640-48e7-8e1c-5b295e8007den%40googlegroups.com.