Thank you for information. 

I'm getting an error on invalid fieldmask. Not sure but I believe the issue 
is in the fieldmask 'HeadlinePart1', How should this be represented?

Thanks for your help!
Steve

This is a very simplified version or testing only:
           // these are **** out but have real id's
            long customerId = long.Parse("****960");
            long adgroupId = long.Parse("*****49");
            long adId = long.Parse("*****2617");

            AdGroupAd adwordAdtoUpdate = new AdGroupAd()
            {
                ResourceName = ResourceNames.AdGroupAd(customerId, 
adgroupId, adId),
                Ad = new Ad
                {                   
                    ExpandedTextAd = new ExpandedTextAdInfo
                    {
                        HeadlinePart1 = "My First Headline1 Update"
                    }
                }

            };

            FieldMask fieldMask = new FieldMask();
            fieldMask.Paths.AddRange(new string[] { "HeadlinePart1" });

            AdGroupAdOperation operation = new AdGroupAdOperation()
            {
                Update = adwordAdtoUpdate,
                UpdateMask = fieldMask
            };

            MutateAdGroupAdsResponse response = 
adGroupAdService.MutateAdGroupAds(
                        customerId.ToString(), new AdGroupAdOperation[] { 
operation });




On Friday, January 24, 2020 at 9:31:17 AM UTC-5, adsapiforumadvisor wrote:
>
> Hi Steve,
>
> Thank you for reaching out. Please see the release notes here 
> <https://developers.google.com/google-ads/api/docs/release-notes#ads_2>. 
> You can update a single field of an ExpandedTextAd using an AdService 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.services#adservice>
>  
> mutate request.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001USwwqr: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/0490dfae-8b72-4f8c-b940-e2787169419c%40googlegroups.com.

Reply via email to