Calling AssetService with large files

15 views
Skip to first unread message

Clint Yang

unread,
Apr 2, 2019, 5:26:48 PM4/2/19
to AdWords API and Google Ads API Forum
The publicly available example 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 and it does not use stream. How does it handle files that might be too large for the service to handle?

googleadsapi...@google.com

unread,
Apr 3, 2019, 10:54:56 PM4/3/19
to adwor...@googlegroups.com
Hi Clint,

Apologies for the delay. We currently have no documentation available that discusses what the actual file size upload limits are and how they are managed by the MediaService. However, once they indeed reach the said limit, the FILE_TOO_LARGE error should be returned in the response.

Thanks and regards,
Peter
Google Ads API Team

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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.
Reply all
Reply to author
Forward
0 new messages