Hello
I am trying to create a customerClient and do an update but i get an
error....Below is the my request for create and update respectively.
*Client Customer Client*
Request
{
"customerClient": {
"customer": {"name":"test", "timeZone":"America/New York",
"descriptiveName": "Test123"} },
"validateOnly":false,
"emailAddress": ""
}
URL:
https://googleads.googleapis.com/v11/customers/2892122049:createCustomerClient
Response:
{"googleAdsError":"map[code:400 details:[map[@type:type.googleapis.com
/google.ads.googleads.v11.errors.GoogleAdsFailure
errors:[map[errorCode:map[requestError:REQUIRED_FIELD_MISSING]
message:Field 'customer' is required for 'CREATE' operation.]]
requestId:13sq-Hq1fVHcv6-9pIck0w]] message:Request contains an invalid
argument. status:INVALID_ARGUMENT]","message":"google ads
error","severity":"ERROR","timestamp":"2022-08-28T14:56:49.737499000"}
*Update Customer name*
Request:
{
"operations": [
{
"update": {
"name": "SojernMCCAcc",
},
"updateMask": "name"
}
],
}
URL: https://googleads.googleapis.com/v11/customers/2892122049:mutate
Response:
{"googleAdsError":"map[code:400
details:[map[@type:type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure
errors:[map[errorCode:map[requestError:OPERATION_REQUIRED]
location:map[fieldPathElements:[map[fieldName:operation]]] message:Mutate
operations must have 'create', 'update', or 'remove' specified.]]
requestId:VlB-QuSOAFP5XzazK3GJDg]] message:Request contains an invalid
argument. status:INVALID_ARGUMENT]","message":"google ads
error","severity":"ERROR","timestamp":"2022-08-28T14:24:58.720427000"}
Could you please advise? The requests in both cases seem accurate.
Regards
Samantha
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d131bc34-e467-44ed-8788-ce77c9f12fc8n%40googlegroups.com.