google-ads
What it does
This skill lists traps to avoid when analyzing or changing Google Ads campaigns through the treg connector. It is for marketers and agents who work with ad performance, spend, bids, and budgets.
When to use it
- βWhen you are asked to analyze ad performance or audit spend in Google Ads.
- βWhen you need to create or change campaigns, budgets, or bids in Google Ads.
- βWhen you are doing media buying and need to avoid costly API mistakes.
Skill link
https://github.com/superdesigndev/treg/blob/main/.agents/skills/google-ads/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check how my Google Ads campaigns performed last month and tell me where my spend went?β
5 new skills a week. 1 minute to read.
How it works
The agent reads the trap list first, picks the account from the connection list, and pins the right API version. It then reads campaign data and reports results while watching for errors that look like valid answers.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Google Ads via treg β the traps
Verified live on 2026-07-22 against a live account, via treg call google-ads.
Each trap is tagged with how many independent agents hit it when working without this file, so
you know which are real and which are here for insurance.
Account id: treg connections ls β the google-ads row; treg connections resources <id> to list.
Never guess an account id β you may be spending someone else's money.
1. Pin the API version β there is no discovery β οΈ 2/2 agents hit this
Paths are versioned and a wrong guess returns a Google HTML 404, not JSON. Nothing in the API
or in treg tool ls reports the current version β one agent burned five calls walking v14βv18
before recovering the answer from the treg calls audit log.
Use v25 (released 2026-07-22, live-verified through the proxy 2026-08-17; sunsets ~Aug 2027).
Do not guess downward.
Two different failures, two different fixes:
- HTML 404 β the version never existed (you guessed too high, or typo'd the path).
- JSON 400
UNSUPPORTED_VERSIONβ the version existed and has been sunset. Google ships a major roughly quarterly and each lives ~12 months, so a pin that worked for months dies on a date, not on a deploy. v21 died this way on 2026-08-05. Always jump to the newest GA version, not the next one up β the next one up may be months from its own sunset.
Release notes and sunset dates: https://developers.google.com/google-ads/api/docs/sunset-dates
2. contains_eu_political_advertising is required on campaign create β οΈ 3/3 hit this
Absent from essentially every code sample. Campaign create fails REQUIRED without it:
"containsEuPoliticalAdvertising": "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING"
3. Bidding strategy must be the sub-message, not the enum β οΈ 1/2 hit this
"biddingStrategyType":"TARGET_SPEND" alone fails REQUIRED on campaign_bidding_strategy. It's
a protobuf oneof β send the field itself: "targetSpend":{}, "manualCpc":{},
"maximizeConversions":{}. The enum is output-only.
4. Removing a parent orphans children β and their status lies β οΈ 2/2 confused by this
Remove a campaign and its ad groups/criteria/ads become immutable but keep reporting their old
status β a removed campaign's ad group still reads ENABLED. Mutating one returns
OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE.
Verify teardown on campaign.status, never on a child's. Checking the child looks like cleanup
silently failed. Remove campaign first, then its budget β the budget is not removed for you, and an
orphaned budget is easy to leave behind.
Nothing is ever hard-deleted: REMOVED is terminal. Filter with WHERE campaign.status != 'REMOVED'
or your campaign list fills with corpses.
5. Money is in micros β 0/2 got this wrong β kept for asymmetry
amountMicros: 3000000 = $3.00/day. Both agents handled this correctly, so it is not a common
failure β but a 10βΆ slip creates a $3,000/day budget that the API accepts without any error, and
it is the only mistake here that spends money silently. Compute dollars * 1_000_000 explicitly and
re-read it before sending.
Currency is not always USD β the account may bill in a non-USD currency (e.g. AUD):
SELECT customer.currency_code, customer.time_zone FROM customer
6. updateMask controls what changes
{"operations":[{"updateMask":"amount_micros",
"update":{"resourceName":"customers/<CID>/campaignBudgets/<BID>","amountMicros":3000000}}]}
Only listed fields change; a field you set but don't list is ignored, one you list but don't set is
cleared. Both amount_micros and amountMicros are accepted (verified).
7. login-customer-id failures look like auth failures
Acting on a client account under a manager needs the header:
treg call google-ads "<path>" --method POST --header 'login-customer-id: 9876543210' --data '...'
A wrong or unauthorised value returns 401 UNAUTHENTICATED, not a targeting error. Check the
header before debugging OAuth.
validateOnly β free insurance on any mutation
{"validateOnly":true,"operations":[...]} // returns {} on success, changes nothing
Verified: a validateOnly budget change returned {} and left the value untouched. Neither
unskilled agent used it and neither needed it β their mistakes were rejected by the API anyway. Its
real value is the case they never hit: a mutation that is **val
FAQ
Why guess the account ID carefully?
The skill warns that a wrong account could mean spending someone else's money.
Which API version does it use?
The skill names version v25 as the current version to pin, and it warns against guessing older versions.
What if the version is sunset?
The skill says a sunset version returns a specific error, so the agent should move to the newest stable version.
Details
Original description by the author
Traps when running Google Ads through treg β the API requirements and cleanup semantics that cost round-trips or money. Use whenever asked to analyse ad performance, audit spend, create or change campaigns, adjust budgets or bids, or do media buying.
repo: superdesigndev/treg
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13697
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
code-quality
7.0kTeaches your agent clear code standards: enforce rules with tools, keep comments rare, make tests able to fail, and keep docs short.
google-analytics
7.0kHelps your agent get accurate traffic, conversion and revenue numbers from Google Analytics 4, avoiding partial days and false zeros.
google-search-console
7.0kHelps your agent report organic search clicks, impressions and rankings from Search Console without mistaking incomplete recent days for a drop.
portrait-clone
7.0kHelps your agent turn reference photos of a person into one detailed JSON image prompt, with every visual choice pinned for consistent results.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.