When I ran the query, I got 0 results. But when I removed the metrics.clicks field, it returned one row.

Right now, we need two separate queries to fetch assets—one from campaign_asset for campaign-level assets and another from ad_group_asset for ad group-level assets. Is there a way to fetch both in a single query, so we can get all assets at the ad group level along with campaign-level assets?
Thanks in advance!
Upon reviewing your campaign under campaign ID 22148688913, there are two ad groups (174579718038 and 201247689730). Navigating to the Responsive Search Ads under the 'Ads' section reveals that only one sitelink asset is associated with both ad groups.
However, there are no metrics called clicks associated for this asset ID (201247689730). In Google Ads reporting, zero-metric data is excluded when segmenting a report, provided all selected metrics are zero. This explains why including metrics.clicks in the query results in no data being returned if the values are zero. For further details, I recommend you to refer to the Zero Metrics documentation. I have also attached screenshots of both assets for your reference.
Kindly note that campaign and ad_group level assets cannot be fetched from a single query. Asset metrics are made available through a few resources: With these resources, asset metrics can be queried at each respective level. For example, when querying the ad_group_asset resource, the ad_group.id field can be used to segment the results, thereby retrieving metrics for each unique combination of ad_group and asset. I would recommend you to refer to the Asset metrics documentation for more detailed information.![]() |
Google Ads API Team |