google-ads
하는 일
이 스킬은 treg 커넥터로 Google Ads 캠페인을 분석하거나 바꿀 때 피해야 할 함정을 나열합니다. 광고 성과, 지출, 입찰, 예산을 다루는 마케터와 에이전트를 위한 스킬입니다.
사용하는 경우
- ✓Google Ads의 광고 성과를 분석하거나 지출을 감사해야 할 때.
- ✓Google Ads에서 캠페인, 예산, 입찰을 만들거나 바꿔야 할 때.
- ✓비용이 많이 드는 API 실수를 피하며 미디어 바잉을 할 때.
스킬 링크
https://github.com/superdesigndev/treg/blob/main/.agents/skills/google-ads/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난달 제 Google Ads 캠페인의 성과를 확인하고, 지출이 어디로 갔는지 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 함정 목록을 읽고, 연결 목록에서 계정을 고르며, 맞는 API 버전을 고정합니다. 그다음 캠페인 데이터를 읽고, 정상 응답처럼 보이는 오류를 주의하며 결과를 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
계정 ID를 왜 신중하게 골라야 하나요?
잘못된 계정이면 다른 사람의 돈을 쓸 수도 있다고 스킬은 경고합니다.
어떤 API 버전을 쓰나요?
현재 고정할 버전으로 v25를 나열하며, 이전 버전을 추측하지 말라고 경고합니다.
버전이 지원 종료되었다면 어떻게 하나요?
지원 종료된 버전은 특정 오류를 반환하므로, 에이전트는 최신 안정 버전으로 옮겨야 한다고 스킬은 말합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 7.0k
- 순위
- #13697
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
code-quality
7.0k에이전트가 도구로 규칙을 강제하고 주석은 줄이며, 실패할 수 있는 테스트와 짧은 문서를 쓰도록 돕습니다.
google-analytics
7.0k에이전트가 GA4에서 부분 집계일과 잘못된 0을 피하고 정확한 트래픽, 전환, 매출 수치를 가져오도록 돕습니다.
google-search-console
7.0k에이전트가 Search Console 데이터를 보고하며, 최근의 불완전한 날짜를 하락으로 오해하지 않도록 돕습니다.
portrait-clone
7.0k에이전트가 인물 참고 사진을 모든 시각 요소를 고정한 상세 JSON 이미지 프롬프트로 바꾸도록 돕습니다.