create ImageAd with animated gif

80 views
Skip to first unread message

artem.bik...@gmail.com

unread,
Aug 15, 2016, 3:18:10 AM8/15/16
to AdWords API Forum
Hello.
I try to create ImageAd with animated gif image and get error MediaError.MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE

request params
{
  "ad_group_id":"27708882730",
  "ad": {
    "xsi_type":"ImageAd",
    "image": {
      "xsi_type":"Image",
      "data":"<some_base_64_data>",
      "type":"DYNAMIC_IMAGE"
    },
    "name":"image for partner",
    "final_urls":["http://reenter.ru"],
    "display_url":"reenter.ru",
  },
  "status":"ENABLED"
}

Joyce Lava

unread,
Aug 15, 2016, 6:43:46 AM8/15/16
to AdWords API Forum
Hello,

Apologies for the delayed response. Could you please confirm if you are using MediaService.upload operation in uploading the media file? I ask this because based from the doc, the field Image.type (e.g. DYNAMIC_IMAGE) is required when using the MediaService.upload to upload the new media file. Also, please make sure that the gif file meets the technical requirements specified here.

If you confirmed that you are not using the MediaService.upload and if the gif meets the specified requirements and the issue still persists, could you please send the SOAP request and response by clicking on reply privately to author on this forum thread?

Thanks,
Joyce, AdWords API Team

artem.bik...@gmail.com

unread,
Aug 15, 2016, 6:54:53 AM8/15/16
to AdWords API Forum
Thank you.
I removed field 'type' and had successful response.

понедельник, 15 августа 2016 г., 13:43:46 UTC+3 пользователь Joyce Lava написал:
Reply all
Reply to author
Forward
0 new messages