Updating ads without setting all fields

98 views
Skip to first unread message

Dmitry Shvetsov

unread,
Apr 26, 2019, 1:31:56 AM4/26/19
to AdWords API and Google Ads API Forum
Hi!
I'm updating the expanded text ad via Adwords API.
I use 'AdService', 'operator': 'SET'.

It requared to fill in all of thees fields:
'headlinePart1'
'headlinePart2'
'description':

But I need to update only 'headlinePart2'.
Is it possible to fill in only 'headlinePart2'?
I want other fields in the ad will stay without changing.

It will be easier.

Thank's!

googleadsapi...@google.com

unread,
Apr 26, 2019, 4:18:50 AM4/26/19
to adwor...@googlegroups.com
Hi Dmitry,

The HeadlinePart1HeadlinePart2, and Description fields are not required when using the SET operator of the AdService as stated in their documentation. They are only required when using the ADD operator when creating them via the AdGroupAdService.

That said, could you confirm if you are getting any errors when using the AdService to modify your existing ExpandedTextAd? If yes, could you send to me the complete SOAP request and response logs so I can further investigate? You may reply using the Reply privately to author option.

Thanks and regards,
Peter
Google Ads API Team

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7a5bb4a3-a6aa-461f-8fb6-25a400e587c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dmitry Shvetsov

unread,
Apr 26, 2019, 4:41:44 AM4/26/19
to AdWords API and Google Ads API Forum
Hi Peter!
Thank's for your answer.
Yes, I got error.
'requestId': '0005876ac2a3f0900a37a1d082064f9c'

Respond in text in the attachment.
When I send request with header1 and desription it works good.
respond.txt

Dmitry Shvetsov

unread,
Apr 26, 2019, 4:50:28 AM4/26/19
to AdWords API and Google Ads API Forum
The whole respond in the attachment.
respond_whole.txt

googleadsapi...@google.com

unread,
Apr 26, 2019, 3:36:04 PM4/26/19
to hunter...@gmail.com, AdWords API and Google Ads API Forum
Greetings!

Unfortunately, the required fields are needed even on the SET. I'm sorry that our documentation does not reflect that; that can definitely be confusing. I've filed an issue that we'll be fixing our documentation to fix that. Thank you for bringing this to our attention!

Cheers,
Nadine Sundquist, Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 04/26/19 04:50:28 hunter...@gmail.com wrote:
The whole respond in the attachment.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.

Dmitry Shvetsov

unread,
Apr 26, 2019, 3:57:56 PM4/26/19
to AdWords API and Google Ads API Forum
Thak you for your answer!
Are the same requirements in the new Ads API?

May be it Will be better to use new Ads API. I worry that I could clear some fields in ads.

My task is to change some sale text and images in the ads.
Now I have to set all fields of all ads not to clear them. It's hard and and can get mistakes.
That's why I'm looking for way to set only one field in the ad.

googleadsapi...@google.com

unread,
Apr 29, 2019, 12:08:54 PM4/29/19
to hunter...@gmail.com, AdWords API and Google Ads API Forum
Hello,

That feature is currently under development, so I've given my teammates a formal feature request for the Google Ads API that we only need to set the one field. You've caught us at the right time. I don't have an exact date as to when that will be released, but we will try to see if we can make this possible. I can't guarantee it, but I'm definitely trying.

Best,
Nadine, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.

Steve Deshaies

unread,
Jan 23, 2020, 3:14:05 PM1/23/20
to AdWords API and Google Ads API Forum
Hello, 

Has this discussed feature been added to the current version of the C# API?  Does it allow us to update for example only the headline1 in an existing expanded text ad?

Thanks for the info!
Steve

Google Ads API Forum Advisor Prod

unread,
Jan 24, 2020, 9:31:17 AM1/24/20
to st...@stoorz.com, adwor...@googlegroups.com
Hi Steve,

Thank you for reaching out. Please see the release notes here. You can update a single field of an ExpandedTextAd using an AdService mutate request.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001USwwqr:ref

Steve Deshaies

unread,
Jan 24, 2020, 12:02:12 PM1/24/20
to AdWords API and Google Ads API Forum
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 });

Google Ads API Forum Advisor Prod

unread,
Jan 24, 2020, 3:56:46 PM1/24/20
to st...@stoorz.com, adwor...@googlegroups.com
Hi Steve,

Can you please share the complete detailed request and response logs via reply privately to author so that I can further investigate the issue? You can find information on enabling logging here.
Reply all
Reply to author
Forward
0 new messages