Hello,
I`m new here.
I need upload media bundle package to Google Ads,
I found how to send text ads in Google Ads Examples, but not how to send
zip files, no documentation.
In the code below the package upload is done but dont found how to create
the ad.
Anybody can help me?
Thanks
ad_group_ad_service = self.g_ads_client.get_service('AdGroupAdService',
version='v3')
ad_group_service = self.g_ads_client.get_service('AdGroupService', version=
'v3')
uploads = []
ad_group_ad_operations = []
messages = []
for resource in mutate_media_files_response.results:
messages.append(
f'Uploaded file with resource name "{resource.resource_name}"'
)
uploads.append(resource.resource_name)
# Create ad group ad.
ad_group_ad_operation = self.g_ads_client.get_type('AdGroupAdOperation',
version='v3')
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group.value = ad_group_service.ad_group_path(
customer_id, ad_group_id)
ad_group_ad.status = self.g_ads_client.get_type('AdGroupAdStatusEnum',
version='v3').PAUSED
# Set expanded display upload ad info
ad_group_ad.ad.display_upload_ad.display_upload_product_type = (
self.g_ads_client.get_type(
'DisplayUploadProductTypeEnum',
version='v3'
).HTML5_UPLOAD_AD
)
# here the problem
# ad_group_ad.ad.display_upload_ad.media_bundle.message = ???????
# one try
#ad_group_ad.ad.display_upload_ad.media_bundle.asset = (
# MediaBundleAsset(mutate_media_files_response)
#)
ad_group_ad_operations.append(ad_group_ad_operation)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/9846c909-7bfc-4a7a-ac7c-6f7e44ab9d06%40googlegroups.com.