customerClientLinks:mutate through REST API

49 views
Skip to first unread message

Steve Wilcox

unread,
Dec 9, 2020, 10:36:55 AM12/9/20
to AdWords API and Google Ads API Forum
Greetings All!

I'm having some trouble getting a REST API call working.  The issue appears to be with my JSON, given the error message, but I know from long experience not to bet on that.

The URL I'm sending against is:
https://googleads.googleapis.com/v5/customers/<client customerID>/customerClientLinks:mutate

but I've also tried it with

https://googleads.googleapis.com/v5/customers/<manager customer id>/customerClientLinks:mutate

The JSON I'm sending is:

{
  "operations": [
"updateMask": "status",
update: {
"resourceName": "customers/<customer client id>/customerClientLinks/<resource id>",
"status": "INACTIVE"
}
  ]
}

The error message I get is:

{ "error": { "code": 400, "message": "Invalid JSON payload received. Expected , or ] after array value.\nns\": [\n\t\"updateMask\": \"status\",\n\tupdate:\n ^", "status": "INVALID_ARGUMENT" } }  

Any thoughts?

Google Ads API Forum Advisor Prod

unread,
Dec 10, 2020, 4:25:01 PM12/10/20
to swi...@convoyant.com, adwor...@googlegroups.com

Hi Steve,

Thank you for reaching out. Please give it a try to use the following JSON payload:


{

  "operations": [

          {

             "updateMask": "status",

             "update": {

                  "resourceName": "customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}",

                  "status": "INACTIVE"

             }

          }

  ]

}

Thanks and regards,
Xiaoming, Google Ads API Team

 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q28odRG:ref

Steve Wilcox

unread,
Dec 11, 2020, 2:45:58 PM12/11/20
to AdWords API and Google Ads API Forum
This is precisely the payload I'm trying to use.  Groups is telling me I don't have access to reply privately to author, so if you want to email me direclty, I can send you the precise payload I'm using.

Thanks!

Google Ads API Forum Advisor Prod

unread,
Dec 14, 2020, 11:42:56 AM12/14/20
to swi...@convoyant.com, adwor...@googlegroups.com

Hi Steve,

Thank you for reaching out. You could send the complete request and response logs along with the code snippet you used to our email alias googleadsa...@google.com.



Thanks and regards,
Xiaoming, Google Ads API Team

 

Steve Wilcox

unread,
Dec 14, 2020, 12:36:40 PM12/14/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Thank you, I will do that. 
--
Steve Wilcox
Developer | ResNexus
Reply all
Reply to author
Forward
0 new messages