MultiAssetResponsiveDisplayAd does not like my images.
responsive_search_ad = {
'xsi_type': 'AdGroupAd',
'adGroupId': ad_group_id,
'ad': {
'xsi_type': 'MultiAssetResponsiveDisplayAd',
'finalUrls': [final_url],
'headlines': [shortHeadline],
'longHeadline' : longHeadline,
'marketingImages' : [marketing_image],
'logoImages' : [logo_image],
'descriptions' : [description],
'businessName' : businessName,
},
# Optional fields.
'status': status
}
Returns: GoogleAdsServerFault: Unmarshalling Error: cvc-elt.4.3: Type 'ns0:Image' is not validly derived from the type definition, 'AssetLink', of element 'ns0:marketingImages'.
I used the media service to create an image. Now it appears I should use Asset Link.
Something like
asset_link = {'ImageAsset': {'imageData' : marketing_image}}
ad_group_ads = ad_group_ad_service.mutate({ 'operator': 'ADD', 'operand': asset_link})
Does anyone happen to have an example of how this works?