I have a situation where I can not use one of the libraries so I am trying to figure out the JSON to update campaigns. I am able to use the query language to retreive data, but am getting caught on the mutate services.
For example, when I post the following JSON to: https://googleads.googleapis.com/v1/customers/{account number}/campaigns:mutate { "operations": [ { "update": { "resourceName": "customers/{account number}/campaigns/{campaign ID}" , "status": "PAUSED" } } ] } I receive the following response: { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v1.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "fieldMaskError": "FIELD_MASK_MISSING" }, "message": "Cannot use empty field mask in update operation.", "location": { "fieldPathElements": [ { "fieldName": "operations", "index": "0" } ] } } ] } ] } } I am unsure how to set the field mask in the Google ads API so that I am indicating I am only updating the campaign status field. I can't find much JSON documentation for the ads API and have tried several different ways without much luck, so any help is appreciated. Thanks. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/29004ed9-53b1-4d6c-b478-896b9bf9ce07%40googlegroups.com.