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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/470245d1-a5f3-4710-bc2a-5e2413cdcaad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Inessa M
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Inessa M
        • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... Inessa M
            • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to