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





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/44ed9b6f-6d3f-40cc-88d1-af73761200fen%40googlegroups.com.
  • Ho... Wenjun Yang
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Wenjun Yang

Reply via email to