Error StringLengthError.TOO_LONG when uploading YoutubeVideoAsset to the Google Ads Asset Library

49 views
Skip to first unread message

Cristian Fernandez Moreno

unread,
Jun 6, 2024, 11:49:49 AM6/6/24
to Google Ads API and AdWords API Forum
Hi!
I'm finding this error when trying to upload a Youtube video to the Google Ads Asset Library as a YoutubeVideoAsset:

Caused by: com.google.ads.googleads.v16.errors.GoogleAdsException: errors { error_code { string_length_error: TOO_LONG } message: "Too long." trigger { string_value: "<my_video_name>" } location { field_path_elements { field_name: "operations" index: 0 } field_path_elements { field_name: "create" } field_path_elements { field_name: "name" } } } request_id: "BOHzv0lzFP0Jzojn6JsQqw"

As I understand, the issue is that the name is too long, <my_video_name> is 147 characters long. 
I've checked the system limits documentation but I haven't found anything that would fit this case, especially for Youtube videos. What is the name length limit for uploading YoutubeVideoAsset? Furthermore, where in the docs can I find this information for future cases?

Thanks!
Cristian

Reply all
Reply to author
Forward
0 new messages