How to get text asset group by type

60 views
Skip to first unread message

Evgeniy Lepikov

unread,
Apr 26, 2022, 11:30:39 AM4/26/22
to Google Ads API and AdWords API Forum
Hi there!
I'm looking for a way to get text type  from  asset: Headline or Description
Now I can get both type of text asset using this query
SELECT
   asset.text_asset.text
FROM asset 
.....

And it return this data

results {
asset {
resource_name: "customers/2309565764/assets/17999745303"
text_asset {
text: "Unleash your potential"
}
}
}

How to get extra information about type of text . I need to understand for examle  that 
text: "Unleash your potential"  is Description or Headline as in UI interface
https://ibb.co/1JyQYDc

Google Ads API Forum Advisor

unread,
Apr 27, 2022, 10:33:30 AM4/27/22
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

For App ads you can use ad_group_ad_asset_view, the asset table is available and the field 'ad_group_ad_asset_view.field_type' will get you the text type for this context. The same asset can be used for description in one context and for headline in another context, so the main asset report cannot determine this information.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


 

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