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