run_gaql
Run raw read-only GAQL SELECT queries against the Google Ads API to fetch custom reports beyond standard tools, such as campaign, ad group, or keyword data.
Instructions
Run a raw read-only GAQL SELECT query against the Google Ads API.
Use this for reporting needs not covered by the other tools. GAQL only supports SELECT statements, so this cannot modify any Google Ads data.
Args: customer_id: The Google Ads customer ID (10 digits, dashes optional). query: A GAQL SELECT query, e.g. "SELECT campaign.id, campaign.name FROM campaign WHERE campaign.status = 'ENABLED'".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |