Reporting at asset level not bringing asset name for Youtube Videos

60 views
Skip to first unread message

renan....@wildlifestudios.com

unread,
Jul 20, 2020, 2:51:36 PM7/20/20
to AdWords API and Google Ads API Forum
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 name "{asset.name}"')
          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


 

query_example_youtube_videos.py

Google Ads API Forum Advisor Prod

unread,
Jul 20, 2020, 4:30:23 PM7/20/20
to renan....@wildlifestudios.com, adwor...@googlegroups.com
Hello,

Thank you for reaching out. There is currently a bug open for this issue and we are aware that the API does not return the name of YouTube video assets. Please keep in mind that the Google Ads API is still in Beta. Thank you for your patience as we work on getting this resolved!

Regards,
Danica, Google Ads API Team

ref:_00D1U1174p._5004Q22Xdo6:ref

Google Ads API Forum Advisor Prod

unread,
Jul 21, 2020, 8:35:32 AM7/21/20
to renan....@wildlifestudios.com, adwor...@googlegroups.com
Hello,

We're not going to be able to make the name field return the name of the YouTube video. However, the team has committed to providing a new field that will include the name of the YouTube video in the asset in a future API release. Please keep an eye out for new version announcements on our blog .

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5004Q22Xdo6:ref

renan....@wildlifestudios.com

unread,
Jul 21, 2020, 9:24:20 AM7/21/20
to AdWords API and Google Ads API Forum
Hi everyone,

Thank you for the update. Well, this is quite disappointing since I remember being able to retrieve the youtube video name a few weeks ago using this same query.
Anyways, do you have any guess when this new version could be released?

Google Ads API Forum Advisor Prod

unread,
Jul 21, 2020, 9:30:04 AM7/21/20
to renan....@wildlifestudios.com, adwor...@googlegroups.com
Hello,

I know it won't be in the next version of the API, but it may make the one after that. Unfortunately, we aren't able to provide any specific estimates beyond that.
Reply all
Reply to author
Forward
0 new messages