The publicly available example 
<https://developers.google.com/adwords/api/docs/samples/java/miscellaneous#upload-an-html5-zip-file-as-a-mediabundle>
 
in AssetService suggests this code:

    byte[] zipFileBytes = ... // get the 
    MediaBundle mediaBundle = new MediaBundle();
    mediaBundle.setData(zipFileBytes);
    mediaBundle.setType(MediaMediaType.MEDIA_BUNDLE);

    (MediaBundle) mediaService.upload(new Media[] {mediaBundle})[0];

I checked MediaService#upload 
<https://cs.corp.google.com/piper///depot/google3/java/com/google/ads/simplyapi/api/services/asset_service.proto?l=40>
 
and it does not use stream 
<https://g3doc.corp.google.com/codelab/stubbybidirectionalstreams/g3doc/index.md?cl=head>.
 
How does it handle files that might be too large for the service to handle?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/66f2d2a2-44e9-44e3-abe8-f53ed96debab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Calling... 'Clint Yang' via AdWords API and Google Ads API Forum
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to