RE: trying to fetch all the assets and asset group information under a campapign

25 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Sep 5, 2024, 11:53:51 AM9/5/24
to dkno...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Kindly note that making a subquery in Google ads query language is not supported. I would recommend that you refer to GAQL Grammar and Query Structure guides for more information.

In order to retrieve the asset group data via the Google Ads API, please refer to the below sample query. 
SELECT asset_group.id, asset_group.name, asset_group.campaign, campaign.id, campaign.name FROM asset_group
Also, you can construct your own customized query using the asset_group query builder. Before that, take a look at the Fields/Segments/Metrics that can be used with the asset group resource. You can use Query Validator to validate your query, then you can try making a request using the Method:customers.googleAds.search or Method:customers.googleAds.searchStream. I hope this helps.

I had to delete your post since sensitive details were attached. You may send the sensitive details via reply privately to the author option.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vFn00:ref" (ADR-00266890)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages