ads-microsoft
Skill1 starsChanged 4 days agoMITView on GitHub
Use when setting up Microsoft Advertising or Bing Ads signup, UET tags, conversion goals, the UET Conversions API, MSCLKID attribution, offline conversions, enhanced conversions, or Microsoft Ads event debugging.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- oivanfelipe/claude-skillstheir own version, first seen Nov 8, 2026
- pooriaarab/skillsword for word, first seen Nov 7, 2026
- AgriciDaniel/claude-adstheir own version, first seen Oct 25, 2026
- hackjpn/claude-skillstheir own version, first seen Oct 11, 2026
- chriswestt/claude-skillstheir own version, first seen Oct 9, 2026
- Biznomad/claude-skillstheir own version, first seen Jul 14, 2026
Other versions10 projects use a version of this.
Word for word · 1
- pooriaarab/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 9
- AgriciDaniel/claude-ads★ 10ksame name
- coopersimson96/ai-content-system★ 17same name
- megastep/codex-skills★ 4same name
- Maxymize/maxym-ai-ads★ 2same name
- get-proofpilot/claude-skills-catalog★ 1same name
- Biznomad/claude-skills★ 0same name
- chriswestt/claude-skills★ 0same name
- hackjpn/claude-skills★ 0same name
- oivanfelipe/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository325 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accept-x402-paymentsSkill
- ad-auto-optimizerSkill
- ad-conversion-hubSkill
- ad-creative-generationSkill
- ad-creative-templatesSkill
- ad-experimentsSkill
- ad-image-prompt-librarySkill
- adobe-express-addonSkill
- ad-platform-credentialsSkill
- ads-amazonSkill
- ads-apple-searchSkill
- ads-baiduSkill
- ads-bilibiliSkill
- ads-chatgptSkill
- ads-copilotSkill
- ads-criteoSkill
- ads-discordSkill
- ads-douyinSkill
- ads-googleSkill
- ads-hotstarSkill
- ads-kakaoSkill
- ads-kuaishouSkill
- ads-lgSkill
- ads-lineSkill
- ads-linkedinSkill
- ads-mercadolibreSkill
- ads-meta-aiSkill
- ads-metaSkill
- ads-mojSkill
- ads-naverSkill
- ads-nextdoorSkill
- ads-outbrainSkill
- ads-perplexitySkill
- ads-pinterestSkill
- ads-quoraSkill
- ads-redditSkill
- ads-rokuSkill
- ads-samsungSkill
- ads-sharechatSkill
- ads-shopeeSkill
- ads-snapchatSkill
- ads-spotifySkill
- ads-stackadaptSkill
- ads-stravaSkill
- ads-taboolaSkill
- ads-tencentSkill
- ads-tiktokSkill
- ads-trade-deskSkill
- ads-twitchSkill
- ads-vkSkill
- ads-wazeSkill
- ads-weiboSkill
- ads-xiaohongshuSkill
- ads-xSkill
- ads-yahoo-japanSkill
- ads-yandex-directSkill
- ads-yelpSkill
- agent-avatar-systemSkill
- agent-browser-consolesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use self-serve signup. Go to Microsoft Advertising, sign in with a Microsoft account, and create an advertiser account.
- Distinctive: line 27
Create a UET tag and a matching conversion goal for each action.
- Distinctive: line 42
Use these adapter names. They are not Microsoft-defined environment variables:
- Distinctive: line 148
Never send a raw email, phone number, or real user ID.
- Distinctive: line 157
Create goals that use these event actions.
- Very specific: line 184
When auto-tagging is enabled, Microsoft appends lowercase msclkid to the landing-page URL.
- Distinctive: line 213
Check the matching conversion goal after the reporting delay.
- Very specific: line 223
Use BACID_<customer-id> for Red3, not the UET tag ID.
- Very specific: line 224
Do not send event_id to CAPI or change the ID between client and server.
- Very specific: line 226
Do not gate server events on msclkid.
- Distinctive: line 227
Do not double-hash identifiers or skip Microsoft's extra email rules.
- Distinctive: line 229
Do not treat HTTP 200 as complete success when warnings are present.
- Distinctive: line 230
Do not run both automatic and manual SPA page-load tracking.
- Distinctive: line 231
Do not install the same UET tag twice on the confirmation page.
- Distinctive: line 235
Keep CAPI tokens, OAuth secrets, refresh tokens, and Developer Tokens in the server secret store.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Microsoft Advertising
Microsoft Advertising has a public server-side UET Conversions API. Its bearer
token belongs to a UET tag. It is not the normal Microsoft Advertising OAuth
token. Use UET and CAPI together with the same eventId and compatible
eventName values for one conversion. CAPI guide
This skill maps ad-conversion-hub. The hub owns canonical events, consent,
identity, retries, and the payment record. This file owns Microsoft syntax.
Account and access
Use self-serve signup. Go to Microsoft Advertising, sign in with a Microsoft account, and create an advertiser account. Set up billing before campaigns can run. Payment options depend on market and account type. New advertiser FAQ Billing setup
For campaign-management API access, register an application, get user consent
for https://ads.microsoft.com/msads.manage, and keep the OAuth access and
refresh tokens. Request a production Developer Token. Give the OAuth user
access to the customer and advertiser account. API getting started OAuth tokens
The Bing Ads API uses AuthenticationToken and DeveloperToken headers, plus
CustomerId and CustomerAccountId where required. A Developer Token does not
grant account permissions. API credentials
Create a UET tag and a matching conversion goal for each action. UET is required for conversion tracking and remarketing. UET overview
CAPI token gate
The CAPI token is a separate UET tag authorization token. In the UI, edit the UET tag, select Save and next, select Use Conversions API, then select Copy Token. Microsoft labels this UI token program as a pilot. If the option is absent, contact the account manager. Do not use the OAuth token at the CAPI endpoint. Token setup and pilot note
An owner can create or retrieve the token through
POST /CampaignManagement/v13/UetTagAuthKey/Query. Send OAuth authentication,
the Developer Token, customer ID, and { "TagId": <id> }. A shared-tag user
can retrieve an existing token but cannot create one. Tag auth-key operation
Use these adapter names. They are not Microsoft-defined environment variables:
MICROSOFT_ADS_UET_TAG_ID public UET tag ID
MICROSOFT_ADS_CAPI_TOKEN server-only UET CAPI bearer token
MICROSOFT_ADS_DEVELOPER_TOKEN server-only Bing Ads API developer token
MICROSOFT_ADS_CLIENT_ID OAuth application ID
MICROSOFT_ADS_CLIENT_SECRET OAuth secret for a server web app
MICROSOFT_ADS_REFRESH_TOKEN server-only OAuth refresh token
MICROSOFT_ADS_CUSTOMER_ID Microsoft customer ID
MICROSOFT_ADS_ACCOUNT_ID Microsoft advertiser account IDClient-side UET tag
Copy the generated tag code. Load it on every page in the head or body.
A site-wide layout is the safest location. UET installation
<script>
(function(w,d,t,r,u){
var f,n,i;
w[u]=w[u]||[];
f=function(){var o={ti:"<MICROSOFT_ADS_UET_TAG_ID>"};o.q=w[u];w[u]=new UET(o);w[u].push("pageLoad")};
n=d.createElement(t);n.src=r;n.async=1;
n.onload=n.onreadystatechange=function(){var s=this.readyState;if(s&&s!=="loaded"&&s!=="complete")return;f();n.onload=n.onreadystatechange=null};
i=d.getElementsByTagName(t)[0];i.parentNode.insertBefore(n,i);
})(window,document,"script","https://bat.bing.com/bat.js","uetq");
</script>For a client conversion, put the shared hub ID in UET's event_id property:
window.uetq = window.uetq || [];
window.uetq.push("event", "purchase", {
event_id: canonicalEvent.event_id,
revenue_value: canonicalEvent.value,
currency: canonicalEvent.currency
});The client field is event_id. The CAPI field is eventId. Keep the value
identical. Send the event only after the hub consent gate allows measurement.
UET custom events and deduplication
For a single-page app, use enableAutoSpaTracking: true in the generated
snippet, or disable auto tracking and send page loads manually. Do not do both.
A custom event sent before its SPA page load can attach to the previous page.
SPA UET behavior
For cross-context attribution and dynamic remarketing, send ID Sync from the browser at least once per session:
<img src="https://c.bing.com/c.gif?vid=<VID>&Red3=BACID_<CUSTOMER_ID>&uid=<UID>" alt="">Red3 is the Microsoft customer ID, not the UET tag ID. uid is optional and
must be anonymized. CAPI anonymousId must equal ID Sync vid. ID Sync
Server-side UET Conversions API
Send a custom event after the payment provider confirms the charge:
POST https://capi.uet.microsoft.com/v1/<MICROSOFT_ADS_UET_TAG_ID>/events
Authorization: Bearer <MICROSOFT_ADS_CAPI_TOKEN>
Content-Type: application/json{
"data": [{
"eventType": "custom",
"eventId": "<canonical-event-id>",
"eventName": "purchase",
"eventTime": 1744430084,
"userData": {
"anonymousId": "<stable-anonymous-id>",
"msclkid": "<msclkid-if-present>",
"em": "<microsoft-normalized-email-sha256>",
"clientUserAgent": "<end-user-agent>",
"clientIpAddress": "<end-user-ip>"
},
"customData": {
"transactionId": "<payment-provider-transaction-id>",
"value": 25.0,
"currency": "USD",
"pageType": "purchase"
},
"adStorageConsent": "G"
}]
}data is required. eventType is custom or pageLoad. eventTime is Unix
UTC seconds and must be within the last seven days. Every event needs
userData with at least one supported identifier. A page load also needs
eventSourceUrl and should use a v4 UUID pageLoadId. Batches support 1,000
events. CAPI payload reference
Apply identity rules after the hub consent gate:
- For email, trim whitespace, remove dots from the user part, remove a trailing
+aliasfrom the user part, lowercase the full address, then SHA-256 hash it. - Convert phone numbers to E.164 with country code, then SHA-256 hash them.
- Send hashes in
userData.emanduserData.ph. - Never send a raw email, phone number, or real user ID.
- Send the hub's hashed stable user ID as
externalIdwhen available. - Send end-user agent and IP when available and legally permitted.
Microsoft can remove an invalid optional hash and still return HTTP 200. Treat that response as partial data loss. Hashed identifier rules
Canonical event mapping
Create goals that use these event actions. Keep one exact spelling in the adapter. The UET guide lists the standard ecommerce action names. UET event actions
| Hub event | CAPI eventType | Microsoft event name or action |
page_view | pageLoad | No custom name; send eventSourceUrl and pageLoadId |
view_content | custom | view_item |
lead | custom | generate_lead |
signup | custom | sign_up |
begin_checkout | custom | begin_checkout |
purchase | custom | purchase |
subscription_start | custom | subscription_start |
refund | custom | refund |
subscription_start is an adapter convention for a custom goal. Create the
goal with the same action name. Microsoft custom action matching is
case-insensitive. Conversion goal behavior
Deduplication
Microsoft reconciles a UET event and its CAPI twin with eventId. Put the same
hub ID in both places: browser UET event_id, and server CAPI eventId. Keep
the same UET tag ID and a compatible eventName. Preserve the ID on retries.
CAPI deduplication
MSCLKID and attribution
When auto-tagging is enabled, Microsoft appends lowercase msclkid to the
landing-page URL. Capture it on first landing. Store the latest value in a
first-party cookie, local storage, or a server record tied to the user. Replace
it when a newer click arrives. Microsoft suggests 90 days of retention. Do not
gate a server purchase on this ID. Use hashed identity or anonymousId when it
is absent. MSCLKID in CAPI
Offline imports are separate from CAPI. They need an offline conversion goal, click ID, goal name, conversion time, and value when used. Microsoft will not import a conversion more than 90 days after the last click. Offline conversions
Tracking quirks that bite
- The CAPI token UI is a pilot. Contact the account manager if the option is missing.
- CAPI accepts only events from the last seven days. Use a timely queue for payment webhooks.
- Omitted
adStorageConsentdefaults to granted. SendGonly after the hub allows measurement.Dblocks advertising use, including attribution and retargeting. Consent signals - Microsoft needs a prior ad view or click to attribute a conversion. An organic purchase can be accepted but will not appear as an ad conversion.
- The conversion window ranges from one minute to 90 days. The default is 30 days. Counting can be
AllorUnique. Include the goal in the Conversions column for bidding. Attribution settings - Reports can take two hours for UET conversions and five hours for non-UET conversions. Reporting timing
- A UET tag marked active proves only that some UET activity arrived. It does not prove custom-event or revenue delivery. UET status limits
- A
HealthWellnessUET tag can filter events from audience targeting. Use separate tags for health and non-health traffic. UET industry filtering
Verification
Prove delivery from the server response before checking attribution:
- Require HTTP 200 from
capi.uet.microsoft.com. - Record
eventsReceived,ValidationError, andValidationWarningdetails. - Require zero validation errors. Treat warnings as data loss when they remove identity, value, or currency.
- Check the matching conversion goal after the reporting delay.
- Reconcile the result with payment-provider succeeded charges.
A 200 proves accepted processing, not attribution. A 401 means the token is
missing, wrong, or unauthorized for the tag. A 400 identifies an invalid
field. eventsReceived is the server-side landing proof. CAPI validation and errors
Common pitfalls
- Send the UET CAPI token to CAPI, not the OAuth
AuthenticationToken. - Use
BACID_<customer-id>forRed3, not the UET tag ID. - Do not send
event_idto CAPI or change the ID between client and server. - Send
eventTimein seconds and within seven days. - Do not gate server events on
msclkid. - Do not double-hash identifiers or skip Microsoft's extra email rules.
- Match the goal, event action, and Include in Conversions setting.
- Do not treat HTTP 200 as complete success when warnings are present.
- Do not run both automatic and manual SPA page-load tracking.
- Do not install the same UET tag twice on the confirmation page.
Security
Keep CAPI tokens, OAuth secrets, refresh tokens, and Developer Tokens in the server secret store. Never put them in browser code, URLs, logs, analytics events, screenshots, or commits. Load UET and ID Sync only from official HTTPS Microsoft origins. Hash identifiers only after consent permits ad-user data. Limit raw identity access and delete temporary normalized values after dispatch. Microsoft privacy and consent
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

