Exception GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED when try to upload media bundle

80 views
Skip to first unread message

Inessa M

unread,
Sep 17, 2018, 2:21:13 AM9/17/18
to AdWords API and Google Ads API Forum
Hi all,

I try to upload HTML5 zip via Adwords API (v201802) MediaService according this example https://developers.google.com/adwords/api/docs/samples/php/miscellaneous?hl=ru#upload-an-html5-zip-file-as-a-mediabundle but receive an exception GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED. Here is my code:

$mediaBundle = new \MediaBundle(); var_dump($zipUrl); // $zipUrl - is URL in my local network where my zip file is located
$mediaBundle->setData(file_get_contents($zipUrl))
    ->setType(\MediaMediaType::MEDIA_BUNDLE);
$service = $this->getService("MediaService");
$remoteMediaBundle = $service->upload([$mediaBundle])[0];

What am I doing wrong? Thanks in advance.

Dannison Yao (AdWords API Team)

unread,
Sep 17, 2018, 3:23:38 AM9/17/18
to AdWords API and Google Ads API Forum
Hi Inessa,

It seems that your zip file from Google Web Designer was not published. Kindly try again after making sure that your zip file was published in Google Web Designer (you may follow this guide to publish your zip).

Kindly let me know if you still have further clarifications on this.

Thanks,
Dannison
AdWords API Team

Inessa M

unread,
Sep 17, 2018, 6:21:13 PM9/17/18
to AdWords API and Google Ads API Forum
Hi Dannison,

Thanks for your reply! Does Google Web Designer have API? And if it does, can I publish my zip via API?
Also can I upload HTML5 banners to Google Adwords that wasn't created using Google Web Designer?

Regards,
Inessa M.

понедельник, 17 сентября 2018 г., 17:23:38 UTC+10 пользователь Dannison Yao (AdWords API Team) написал:

Dannison Yao (AdWords API Team)

unread,
Sep 18, 2018, 12:59:16 AM9/18/18
to AdWords API and Google Ads API Forum
Hi Inessa,

My apologies as I'm not aware if there's a Google Web Designer API as our team specializes on AdWords API only. Yes, you may upload HTML5 ads in AdWords API that you have created on your own (as stated in situation 3 in this link). 

If you still have further clarifications, feel free to let me know so I can further investigate.

Thanks,
Dannison
AdWords API Team

Inessa M

unread,
Sep 18, 2018, 3:05:35 AM9/18/18
to AdWords API and Google Ads API Forum
Hi Dannison,

Thanks for the information, I tried to upload HTML5 ad created without using Google Web Designer and I recieved another error while MediaBundle uploading: MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY. Is it because of I didn't set entryPoint field of MediaBundle? I also tried set entryPoint but in this case I recieved ENTRY_POINT_CANNOT_BE_SET_USING_MEDIA_SERVICE error. What is the proper way to set entryPoint?

Regards,
Inessa M.

вторник, 18 сентября 2018 г., 14:59:16 UTC+10 пользователь Dannison Yao (AdWords API Team) написал:

Dannison Yao (AdWords API Team)

unread,
Sep 18, 2018, 6:25:38 AM9/18/18
to AdWords API and Google Ads API Forum
Hi Inessa,

The entry point of your HTML5 is the HTML file. Please make sure it is included in your zip file and that it is a complete HTML document that includes at least one click tag and can load in an iFrame. You may refer to this guide on how to upload and prepare your HTML5 assets.

Thanks,
Dannison
AdWords API Team

Reply all
Reply to author
Forward
0 new messages