Hi,
Thank you for reaching out to Google Ads API Forum.
But I can not see any documentation for the part of uploading video to youtube to use it as an Asset (YOUTUBE_VIDEO). So my first question is how to achieve that.
>> As per this guide (https://developers.google.com/google-ads/api/docs/performance-max/assets#ensure_minimum_asset_requirements_are_met) about asset requirements in Performance Max campaigns, YOUTUBE_VIDEO is a supported asset type that can be added in Performance Max campaigns. You may try following the code example shown in the guide, but replace the setTextAsset in the code example to setYoutubeVideoAsset and let us know how it goes.
How to allow my customers to fetch the videos from their accounts that were previously used in other campaigns or just exist on their accounts?
>> Can you confirm if this feature is available in Google Ads UI? If yes, can you share to us the Google Ads UI screenshot (without cropping) of the data you are trying to retrieve via Google Ads API? This is so we can check better and provide more appropriate answers accordingly. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
![]() |
Google Ads API Team |
Hi,
Thank you for reaching out to Google Ads API Forum.
But I can not see any documentation for the part of uploading video to youtube to use it as an Asset (YOUTUBE_VIDEO). So my first question is how to achieve that.
>> As per this guide (https://developers.google.com/google-ads/api/docs/performance-max/assets#ensure_minimum_asset_requirements_are_met) about asset requirements in Performance Max campaigns, YOUTUBE_VIDEO is a supported asset type that can be added in Performance Max campaigns. You may try following the code example shown in the guide, but replace the setTextAsset in the code example to setYoutubeVideoAsset and let us know how it goes.
Hi Krishna,
Thanks for posting your query on this forum thread.
You may use AssetService.MutateAssets request and use the asset_data with YoutubeVideoAsset fields. Please be noted that the this asset type does not support uploading youtube video. You need youtube_video_title
and youtube_video_id
only. For client library example, you may check this sample code example but this sample is for image assets. For the REST, you may refer to this API explorer.
I hope this helps.
Hi Krishna,
Kindly note that to upload a video to YouTube, you may need to use the YouTube Data API v3 and not a Google Ads API. For further information on uploading a video to YouTube, you may also reach YouTube Data API support team via this link.
Feel free to get back to us with any questions related to the Google Ads API.
Hi Krishna,
Thank you for the reply.
If you have additional questions that are specific to the Google Ads API (https://developers.google.com/google-ads/api/docs/start), feel free to send those over to our team in a new thread, and we would be happy to assist you further.