Install
$ agentstack add skill-fourteenwm-ppc-ai-skills-google-ads-query ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Google Ads Query Skill
Query Google Ads API data, save to CSV, and return minimal output (file path + row count only).
Purpose
This skill implements the CSV-first pattern for context-efficient analysis:
- Query API data
- Save to CSV file (data stays outside context)
- Return only file path + row count
- Use
csv-analyzerskill for analysis (separate step)
CRITICAL: Profile Lock Required
Before ANY query execution, verify profile is locked.
If no profile locked, respond:
Profile lock required. Say "agency_1" or "agency_2" to select profile.
Command Format
Get [resource] for [account] [days]d
Examples:
Get search terms for Example Account→ 30 days (default)Get campaigns for Example Account 60d→ 60 daysGet keywords for Example Account 90d sort:clicks
Defaults:
- Days: 30
- Sort: cost DESC
Process
Step 1: Verify Profile Lock
Check if profile is locked. If not, ask user to lock profile first.
Step 2: Parse Request
Extract:
- Resource - Short name (see
references/resources.md) - Account - Name or alias
- Days - Time period (default 30)
Step 3: Resolve Account
Read credentials/[profile]/accounts.json:
- Match by key, name, or alias (case-insensitive)
- If no match, list similar accounts and ask
Step 4: Execute Query
python scripts/query.py \
--profile [profile] \
--account [account-key] \
--resource [resource] \
--days [days] \
--output ./data/[profile]/[YYYYMMDD]-[account]-[resource].csv
Step 5: Return Minimal Output
Only return:
[PROFILE: agency_1]
Query complete.
File: data/google-ads/agency_1/20260109-example-account-search-terms.csv
Rows: 3,847
Say "analyze it" to run insights, or ask another query.
DO NOT:
- Display raw data in conversation
- Show sample rows
- Auto-analyze (wait for user to request)
Resources
See references/resources.md for resource mappings.
| Short Name | Description | GAQL Template | |------------|-------------|---------------| | search-terms | Search query report | search-terms.gaql | | campaigns | Campaign performance | campaigns.gaql | | keywords | Keyword performance | keywords.gaql | | ad-groups | Ad group performance | ad-groups.gaql | | conversions | Conversion tracking | conversions.gaql | | budgets | Budget utilization | budgets.gaql | | assets | Asset performance (PMAX) | assets.gaql | | geo | Geographic performance | geo.gaql |
File Naming Convention
data/google-ads/[profile]/[YYYYMMDD]-[account-slug]-[resource].csv
Examples:
data/google-ads/agency_1/20260109-example-account-search-terms.csvdata/google-ads/agency_1/20260109-example-campaigns.csvdata/google-ads/agency_2/20260109-example-keywords.csv
Error Handling
Account not found:
Account "example-search" not found.
Similar matches:
- example-account (Example Account) - Portfolio 1
Did you mean example-account?
Query fails:
- Show error message
- Suggest common fixes (invalid date range, permissions)
Integration
After query completes, user can:
- Say "analyze it" → triggers
csv-analyzerskill - Ask for different resource/account
- Re-query with different date range
Files
.claude/skills/google-ads-query/
├── SKILL.md ← This file
├── scripts/
│ └── query.py ← Unified query→CSV script
└── references/
├── resources.md ← Resource mappings
└── *.gaql ← 8 query templates
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: fourteenwm
- Source: fourteenwm/ppc-ai-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.