google-ads
यह क्या करती है
यह स्किल treg कनेक्टर के ज़रिए Google Ads अभियानों का विश्लेषण या बदलाव करते समय बचने वाले जाल बताती है। यह उन मार्केटर्स और एजेंट्स के लिए है जो विज्ञापन प्रदर्शन, खर्च, बिड और बजट पर काम करते हैं।
कब इस्तेमाल करें
- ✓जब आपसे Google Ads में विज्ञापन प्रदर्शन का विश्लेषण या खर्च का ऑडिट करने को कहा जाए।
- ✓जब आपको Google Ads में अभियान, बजट या बिड बनाने या बदलने हों।
- ✓जब आप मीडिया खरीद कर रहे हों और महँगी API गलतियों से बचना हो।
Skill का लिंक
https://github.com/superdesigndev/treg/blob/main/.agents/skills/google-ads/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप जाँच सकते हैं कि पिछले महीने मेरे Google Ads अभियान कैसे चले, और बताएँ कि मेरा खर्च कहाँ गया?”
हर हफ़्ते 5 नई skills, 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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
code-quality
7.0kयह आपके एजेंट को साफ़ कोड के नियम सिखाती है: टूल से नियम लागू करना, टिप्पणियाँ कम रखना, टेस्ट को विफल होने योग्य बनाना, और दस्तावेज़ छोटे रखना।
google-analytics
7.0kयह आपके एजेंट को Google Analytics 4 से सही ट्रैफ़िक, कन्वर्ज़न और राजस्व के आँकड़े देने में मदद करती है, अधूरे दिनों और झूठे शून्य से बचते हुए।
google-search-console
7.0kयह आपके एजेंट को Search Console से ऑर्गेनिक सर्च क्लिक, इंप्रेशन और रैंकिंग की रिपोर्ट करने में मदद करती है, हाल के अधूरे दिनों को गिरावट न मानते हुए।
portrait-clone
7.0kयह आपके एजेंट को किसी व्यक्ति की संदर्भ तस्वीरों से एक विस्तृत JSON इमेज प्रॉम्प्ट बनाने में मदद करती है, जिसमें हर दृश्य चुनाव तय रहता है।
मिलती-जुलती skills
xurl
394kयह आपके एजेंट को प्रमाणित xurl टूल से X पर पोस्ट करने, जवाब देने, खोजने और पढ़ने, सीधे संदेश भेजने और मीडिया अपलोड करने में मदद करती है।
connections-optimizer
280kयह आपके social network connections बेहतर बनाता है। यह बताता है किसे follow या unfollow करना है और अपने network को बढ़ाने के लिए personalized messages लिखने में मदद करता है।
content-engine
280kयह अलग-अलग platforms के लिए content बनाता है। X, LinkedIn और YouTube जैसे networks पर अच्छे काम करने वाले posts, scripts और content calendars तैयार करने में मदद करता है।