How to properly update the assets in an ad group

176 views
Skip to first unread message

Evgeniy Lepikov

unread,
Nov 12, 2021, 11:01:55 AM11/12/21
to AdWords API and Google Ads API Forum
Hi there!
Initially, my goal was to run a query to add new assets to an existing group. The Ad Type of exist Ad is AppAd . 
In the process of adding new asserts I got an error 
"Field 'ad_group' cannot be modified by 'UPDATE' operation."

After searching for a description of the error I found this report

The AppAd type is not mutable and this is the root cause of the error you received. Please refer to this guide on what ad types are mutable. As you said you encountered an issue when removing the ad and creating a new one. 

Ok, I tried deleting Ad and got 

message: "Cannot remove an adgroup ad with this ad type."

Now I don't quite understand how I can add new assets ? What do I have to do to be able to do that? Maybe I should try to delete the whole group? Will this be the right solution?

Google Ads API Forum Advisor

unread,
Nov 12, 2021, 3:07:32 PM11/12/21
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

I reproduced this behavior that and app ad cannot be removed with a remove operation from adGroupAd. You may remove the AdGroup. If you want to replicate the ad before removing it you can do a get of the AdGroupAdService and create the new adGroup with adGroupAd with the contents of that 'get' response. Feel free to get back to us.

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey

Regards,
 
Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2R8YmX:ref

Evgeniy Lepikov

unread,
Nov 15, 2021, 4:31:19 AM11/15/21
to AdWords API and Google Ads API Forum
Hi Aryeh,
Thank you for help!

Perhaps there is an example of a query using GetAdGroupAd via API ? What parameters are returned?  Optimally if for python
пятница, 12 ноября 2021 г. в 20:07:32 UTC, adsapi:

Google Ads API Forum Advisor

unread,
Nov 15, 2021, 10:19:02 AM11/15/21
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

I found out if you want to change the assets associated with the Campaign you can call AdService to change the assets on the Creative that is enabled instead of AdGroupAdService.

Regarding samples for a 'get' call in Python library you can reach out to their issue tracker.

With that being said, you can modify get_responsive_search_ads.py, most of the fields can be accessed in the underlying ad_group_ad report.
Reply all
Reply to author
Forward
0 new messages