Hi Kazi, Thank you for reaching out to Google Ads API support. The errors
returned are a good starting point to find out how to send a correct request.
For the error "RESOURCE_NAME_MALFORMED" for field Name "client_customer" the
specifics of the error returned is "Resource name '1650865311' is malformed:
expected 'customers/{customer_id}"for "fieldName": "client_customer" To fix
this you can replace the value of "1650865311" for the key "clientCustomer"
with "customers/1650865311".
For the error "CANNOT_SET_ID_FOR_CREATE" for field name "resource_name" the
specifics of the error returned is "Do not set the id field while creating new
resources." To fix this you can remove the key - value pair of "managerLinkId",
it is already implied by the HTTP header which should be
"https://googleads.googleapis.com/v10/customers/1650865311/customerClientLinks:mutate".
For the error IMMUTABLE_FIELD for the field name "hidden", the specifics of the
error is "Field 'hidden' cannot be modified by 'CREATE' operation.". To fix
this error you may take out the key - value pair of "hidden" from the "create"
operation and update the "hidden" field in a second "update" operation.
Here are 2 operations that will get you the desired outcome:
{
"operation": {
"create": {
"status": "PENDING",
"clientCustomer": "customers/1650865311",
}
},
}
{
"operation": {
"updateMask": "hidden",
"update": {
"resourceName":
"customers/1650865311/customerClientLinks/1650865311~1650865311",
"hidden": true
}
},
}
Feel free to get back to us.
Regards,
Aryeh
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/df8zT000000000000000000000000000000000000000000000RD42S400qDd8aeF0SVyRfRJy5M9Xkw%40sfdc.net.