How to remove images/videos from App Campaign Ad?

412 views
Skip to first unread message

Wenjun Yang

unread,
Feb 21, 2022, 1:27:25 AM2/21/22
to Google Ads API and AdWords API Forum
Hi, 
I managed to create new campaign with images and videos for AppCampaign.
But I found using AdGroupAd.update could not remove images or videos.

Part of our python code are:

service_name = "AdGroupAdService"
service = self.client.get_service(service_name)
operation_name = "AdGroupAdOperation"
operation = self.client.get_type(operation_name)
update_obj = operation.update

ad_group_ad_resource_name = 'xxxxx' 
update_obj.resource_name = ad_group_ad_resource_name
update_obj.ad.app_ad.images = []  # we tried to remove all images from this ad

self.client.copy_from(
    operation.update_mask,
    protobuf_helpers.field_mask(None, update_obj._pb),
)

response = service.mutate_ad_group_ads(
    customer_id=self.account_id, operations=[operation]
)


Please help with this, thanks!
Wenjun





Google Ads API Forum Advisor

unread,
Feb 21, 2022, 11:15:59 AM2/21/22
to wenju...@webeye.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please provide us with the complete request and response? Did you attempt to send your request with the images field left empty?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2WxZ17:ref

Wenjun Yang

unread,
Feb 21, 2022, 8:43:48 PM2/21/22
to Google Ads API and AdWords API Forum
hello,

Yes, I set the images as empty list. 
also I tried set it as None, both not work.

I will collect request and response log later.

Thanks!
Wenjun

Google Ads API Forum Advisor

unread,
Feb 22, 2022, 1:16:32 AM2/22/22
to wenju...@webeye.com, adwor...@googlegroups.com

Hi Wenjun,

Thanks for updating us on the issue. However, from our end, our team would need complete request and response logs with the request-id, so that we can investigate further.

For the Python client library, logging can be enabled by navigating to the Client libraries > Your client library (Select Python) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details by referring to this thread directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2WxZ17:ref
Reply all
Reply to author
Forward
0 new messages