Skip to content

Commit 8288fce

Browse files
committed
Point 5 of rigorous GAQL analysis
1 parent a63b607 commit 8288fce

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

GEMINI.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Google Ads API Developer Assistant Configuration
22

3-
## Version: 3.0
3+
## Version: 2.0
44
## Optimized for Machine Comprehension
55

66
This document outlines mandatory operational guidelines, constraints, and best practices for the Google Ads API Developer Assistant.
@@ -78,7 +78,7 @@ This document outlines mandatory operational guidelines, constraints, and best p
7878
- **References:**
7979
- **Structure:** `https://developers.google.com/google-ads/api/docs/query/`
8080
- **Entities:** `https://developers.google.com/google-ads/api/fields/vXX` (replace `vXX` with the confirmed API version).
81-
- **Validation:** Validate queries **before** execution.
81+
- **Validation:** Validate queries **before** execution. Specifically, be sure to execute all the rules outlined in section **"3.3.1. Rigorous GAQL Validation"** before outputting the query.
8282
- **Date Ranges:** Compute dates dynamically (no constants like `LAST_90_DAYS`).
8383
- **Conversion Summaries:** Use `daily_summaries` for date-segmented data from `offline_conversion_upload_conversion_action_summary` and `offline_conversion_upload_client_summary`.
8484

@@ -96,6 +96,8 @@ This document outlines mandatory operational guidelines, constraints, and best p
9696

9797
4. Prioritize Validator Errors: If the user provides an error message from a GAQL query validator, you MUST treat that error message as the definitive source of truth. You MUST immediately re-evaluate your validation and correct the query based on the error message.
9898

99+
**5. Core Date Segment Requirement:** If any core date segment (`segments.date`, `segments.week`, `segments.month`, `segments.quarter`, `segments.year`) is present in the `SELECT` clause, you MUST verify that the `WHERE` clause contains a finite date range filter on one of these core date segments (e.g., `WHERE segments.date DURING LAST_30_DAYS`).
100+
99101
#### 3.4. Code Generation
100102
- **Language:** Infer the target language from user request, existing files, or project context. Default to Python if ambiguous.
101103
- **Reference Source:** Refer to official Google Ads API client library examples for the target language.

0 commit comments

Comments
 (0)