Thank you Nikisha, that was a tremendous help!

Just in case anyone stumbles across this in the future, I did need to make 
a couple of tweaks to the JSON from the log file to get it to work. Here is 
what worked for me:

{
 "operations": {
     "update": {
        "resourceName": "customers/{Account Number/campaigns/{Campaign 
Number}",
        "status": "PAUSED"
       },
       "update_mask": {
        "paths": "resource_name",
        "paths": "status"
       }
    }
}


On Wednesday, June 26, 2019 at 1:18:50 PM UTC-6, adsapiforumadvisor wrote:
>
> Hi Allen,
>
> Thank you for contacting support. I tried updating campaign using code 
> sample 
> <https://developers.google.com/google-ads/api/docs/samples/update-campaign>from
>  
> Java Client libraries and have attached logs. From the logs, you can see 
> that you need to use update_mask field to perform update operation. Please 
> refer to this guide 
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/field-masks>
>  
> for more information on field mask and code sample to update campaigns. Let 
> us know if you need additional information.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UCZZUS: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 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/aaeb73b5-0364-4c00-9b45-51fe7845df00%40googlegroups.com.

Reply via email to