From be48e0acd501ecb763c54db25bf5407bc2dbda47 Mon Sep 17 00:00:00 2001 From: Mattia Tommasone Date: Fri, 27 Feb 2026 10:39:20 +0100 Subject: [PATCH] Fix a small bug in setting the video upload resource name --- examples/advanced_operations/upload_video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/advanced_operations/upload_video.py b/examples/advanced_operations/upload_video.py index 02ea87391..f2125ad2c 100644 --- a/examples/advanced_operations/upload_video.py +++ b/examples/advanced_operations/upload_video.py @@ -87,7 +87,8 @@ def main(client: GoogleAdsClient, customer_id: str, video_file_path: str) -> Non retry=None, ) ) - print(f"Created YouTube video upload: {response.resource_name}") + video_upload_resource_name = response.resource_name + print(f"Created YouTube video upload: {video_upload_resource_name}") # [END upload_video_1] # [START upload_video_3]