Skip to content

Commit 8d4285a

Browse files
authored
Merge pull request #1058 from googleads/video-upload-example-bugfix
Fix a small bug in setting the video upload resource name
2 parents 8eef1d0 + be48e0a commit 8d4285a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/advanced_operations/upload_video.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def main(client: GoogleAdsClient, customer_id: str, video_file_path: str) -> Non
8787
retry=None,
8888
)
8989
)
90-
print(f"Created YouTube video upload: {response.resource_name}")
90+
video_upload_resource_name = response.resource_name
91+
print(f"Created YouTube video upload: {video_upload_resource_name}")
9192
# [END upload_video_1]
9293

9394
# [START upload_video_3]

0 commit comments

Comments
 (0)