I want to get asset.name

81 views
Skip to first unread message

王中秋

unread,
Feb 25, 2021, 9:35:48 PM2/25/21
to AdWords API and Google Ads API Forum
Below is my code:

SELECT
asset.id,
asset.name,
asset.resource_name,
asset.youtube_video_asset.youtube_video_id,
asset.youtube_video_asset.youtube_video_title,
asset.text_asset.text
FROM asset

when then asset is a image,I got this:

asset {
  resource_name: "customers/xxxxxxxxxx/assets/xxxxxxxxxx"
  id: 13151166448
  name: "210205_GGjs_yingx2_lxj_en_1200x628.jpg"
}

but when then asset is "YOUTUBE_VIDEO", I got this:

asset {
  resource_name: "customers/xxxxxxxxxx/assets/xxxxxxxxxx"
  youtube_video_asset {
    youtube_video_id: "djKOKzLXsAY"
  }
  id: 13383663873
  name: ""
}

I just can get the name of an image。
How can I get other asset‘s name?

Google Ads API Forum Advisor Prod

unread,
Mar 1, 2021, 12:34:45 AM3/1/21
to zq_...@droidhang.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out.

For your YouTube asset, could you also confirm if the asset.youtube_video_asset.youtube_video_title did not return any values? So our team can investigate further, could you share as well the complete request and response logs, along with the request-id?

You may send the requested logs via the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJB9v:ref

王中秋

unread,
Mar 1, 2021, 1:52:14 AM3/1/21
to AdWords API and Google Ads API Forum
yes,the asset.youtube_video_asset.youtube_video_title did not return any values,

how can I reply privately to you?

Google Ads API Forum Advisor Prod

unread,
Mar 1, 2021, 1:34:05 PM3/1/21
to zq_...@droidhang.com, adwor...@googlegroups.com
Hello,

If you are unable to reply privately, you can email us at googleadsa...@google.com.

Regards,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJB9v:ref
Reply all
Reply to author
Forward
0 new messages