Hi there, I'm trying to upload an *ImageAd *with a .gif file as it's Image. According to the documentation <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService.Image#type>, this seems to be achievable by doing something like this (with Python):
*media = [{* * 'xsi_type': 'Image',* * 'data': image_data,* * 'type': 'DYNAMIC_IMAGE'* *}]* *media = media_service.upload(media)[0]* However, I'm getting the following error: *MediaError.MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE* The SOAP response is the following: *<ns0:ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:ImageAd"> <ns0:displayUrl>https://www.someurl.com</ns0:displayUrl> <ns0:finalUrls>https://www.someurl.com</ns0:finalUrls> <ns0:trackingUrlTemplate></ns0:trackingUrlTemplate> <ns0:image xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:Image"> <ns0:mediaId>849...</ns0:mediaId> <ns0:type>DYNAMIC_IMAGE</ns0:type> <ns0:referenceId>687...</ns0:referenceId> <ns0:dimensions> <ns0:key>FULL</ns0:key> <ns0:value> <ns0:width>300</ns0:width> <ns0:height>600</ns0:height> </ns0:value> </ns0:dimensions> <ns0:urls> <ns0:key>FULL</ns0:key> <ns0:value>https://tpc.googlesyndication.com/simgad/179...</ns0:value> </ns0:urls> <ns0:mimeType>IMAGE_GIF</ns0:mimeType> <ns0:sourceUrl>general_upload</ns0:sourceUrl> <ns0:fileSize>24735</ns0:fileSize> <ns0:Media.Type>Image</ns0:Media.Type> </ns0:image> <ns0:name>Image Ad</ns0:name></ns0:ad>* I've also tried to use a different value for the* xsi_type* field, but none of these worked: 'DynamicImage', 'DYNAMIC_IMAGE' and 'Dynamic Image'. When using them I got an error stating that the type cannot be found in the namespace. Could you please advice, if this is a bug or I am doing something wrong here? Thank you very much, Best regards -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/f025f4dd-a29d-41fc-9755-e4b89a6f256en%40googlegroups.com.