Hi everyone,
I was wondering why when I try to extract the asset name of Youtube videos using the query attached to the email, what I receive is the following output:
Query preview:
query = ('SELECT
asset.name, asset.youtube_video_asset.youtube_video_id FROM asset '
'WHERE asset.type = \'YOUTUBE_VIDEO\' ')
results = ga_service.search(customer_id, query=query, page_size=page_size)
try:
count = 0
for row in results:
asset = row.asset
count += 1
print(f'Video with ID "{asset.youtube_video_asset.youtube_video_id}"')
print(f'Total of {count} videos(s) found.')
Output: Video with name ""
Video with ID value: "8XXXXXXXXX8
Video with name ""
Video with ID "value: "ZXXXXXXXXXY"
Video with name ""
Video with ID "value: "BXXXXXXXXXo"
Video with name ""
Video with ID "value: "JXXXXXXXXXY"
You can observe that only the video ID is returned and the name of the video returns empty always. In the case of changing the where filter from :
asset.type = \'YOUTUBE_VIDEO\' to asset.type = \'IMAGE\' or even asset.type = \'MEDIA_BUNDLE\'the name field name always returns the correct name of the asset.
So my question is: Why is this happening only with videos? Is there a problem in the API or it's programmed to not return the name of youtube video asset? And finally, how can I retrieve the name of my youtube videos that are currently running in my App Campaigns?
Best