Get only active asset from adgroup

81 views
Skip to first unread message

Evgeniy Lepikov

unread,
Nov 18, 2021, 10:45:29 AM11/18/21
to AdWords API and Google Ads API Forum
Hi there,

The addgroup shows both active and deleted assets. When I make a request for assets in the group
query = f"""
SELECT
  asset.type,
  asset.resource_name,
  asset.text_asset.text
FROM ad_group_ad_asset_view
WHERE ad_group.id = '{ad_group_id}'
"""
then I get all the Assets, regardless of whether they are deleted or active. Is it possible to get only active Assets? Didn't find such a way here https://developers.google.com/google-ads/api/fields/v8/asset

Google Ads API Forum Advisor

unread,
Nov 18, 2021, 4:53:57 PM11/18/21
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

Assets can't be removed. To stop an asset from serving, remove the link to the campaign, ad group, and so on.

There is also no global quota on the number of assets allowed per account, though we are planning to add limits in the near future. For optimal performance, edit an existing asset rather than adding a new one.

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Regards,
 

Google Logo
Aryeh Baker
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2RAC6Y:ref

Evgeniy Lepikov

unread,
Nov 18, 2021, 5:31:26 PM11/18/21
to AdWords API and Google Ads API Forum
Hi Aryeh,

I mean, when I use the Edit Ad button in the GA user interface and delete some assets, it looks like this
https://ibb.co/NrCf7CC
and then query for a list of Assets within the group, I will get all the Assets as in the image, i.e. active and deleted. Is there a way to filter out only the active assets in this group in the query?

четверг, 18 ноября 2021 г. в 21:53:57 UTC, adsapi:

Google Ads API Forum Advisor

unread,
Nov 19, 2021, 3:00:29 AM11/19/21
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

Thank you for getting back to us.

With regard to your concern, you may utilize the ad_group_ad_asset_view, then filter your report using ad_group_ad_asset_view.enabled

Regards,


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Teejay Wennie Pimentel
Google Ads API Team
 


ref:_00D1U1174p._5004Q2RAC6Y:ref

Evgeniy Lepikov

unread,
Nov 19, 2021, 3:34:33 AM11/19/21
to AdWords API and Google Ads API Forum
Great advice, it all worked out. Thank you!

пятница, 19 ноября 2021 г. в 08:00:29 UTC, adsapi:
Reply all
Reply to author
Forward
0 new messages