agentleFS
adkitadkit/ads-skills/skills/microsoft-ads/SKILL.md

microsoft-ads

Skill40 starsChanged 2 days agoMITView on GitHub

Read and change Microsoft Advertising (Bing Ads) campaigns from an AI agent through the AdKit MCP connector, using the official Microsoft Advertising API v13. Every change is saved as a draft that the user approves before it goes live. Use when the user wants to run, change, or check Microsoft or Bing ads. Not for Microsoft Ads strategy or ad copy advice.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. gomarble-ai/marketing-agent★ 15same name
    2. windsor-ai/claude-windsor-ai-plugin★ 1same 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 repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Claude, ChatGPT, and most AI apps: add a custom connector with the address https://mcp.adkit.so, then sign in.

    line 34
  2. Very specific:

    Project: call adkit_projects and get the projectId.

    line 52
  3. Very specific:

    Account: call adkit_status. If no Microsoft account is connected, call adkit_setup with platform: "microsoft" and give the user the link.

    line 53
  4. Very specific:

    Every request is one adkit_manage call:

    line 63
  5. Distinctive:

    Check every path and field in the Microsoft Advertising API docs.

    line 90
  6. Very specific:

    Only the data part changes.

    line 94
  7. Very specific:

    If the user needs something AdKit blocks, tell them, and report it with adkit_feedback.

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Microsoft Ads with AdKit

This skill tells you how to read and change Microsoft Advertising (Bing Ads) campaigns through AdKit. It covers the steps, not the strategy.

AdKit connects Microsoft Advertising accounts and sends your requests to the official Microsoft Advertising API v13. AdKit has no campaigns, ad-groups, or ads entities for Microsoft yet, so you write Microsoft API requests directly.

Connect AdKit

AdKit is one MCP connector for Meta, Google, TikTok, LinkedIn, Microsoft, Reddit, X, and Pinterest ads.

  • Claude, ChatGPT, and most AI apps: add a custom connector with the address https://mcp.adkit.so, then sign in.
  • Claude Code: claude mcp add --transport http adkit https://mcp.adkit.so

For other AI apps, see how to set up the AdKit MCP server for Microsoft Ads. If the AdKit tools are not available, tell the user how to connect. Then stop.

The user must also turn on Advanced Platform Access in AdKit's Agent Permissions. Without it, the requests below fail.

What AdKit can do on Microsoft Ads

  • Accounts: accounts list, available, connect, disconnect.
  • Campaigns, ad groups, ads, keywords, and reports: through Microsoft Advertising API v13 requests.
  • Reads (POST requests to .../Query... paths) run immediately, with no draft. Writes save a draft.
  • Blocked: billing, audience uploads, and the whole Customer Management service.

Steps

In this skill, accounts connect means an adkit_manage call with entity: "accounts" and action: "connect".

  1. Project: call adkit_projects and get the projectId. Every call needs it.
  2. Account: call adkit_status. If no Microsoft account is connected, call adkit_setup with platform: "microsoft" and give the user the link. After they sign in, use adkit_manage with platform: "microsoft": accounts available, then accounts connect.
  3. Read what exists. The request format is in How to write a request, below.
  4. Change things with the same kind of request. Each write saves a draft.
  5. Review: adkit_manage with entity: "drafts", action: "get", or give the user the link https://app.adkit.so/manage/drafts?open=<draftId>. Show them what will change.
  6. Publish: drafts publish, only after the user says yes.

To build a new campaign, go from the top down: campaign, then ad group, then ads and keywords. Publish each level before you create the next one, and use the ID that Microsoft returns as the parent. A draft ID never works as a parent ID.

How to write a request

Every request is one adkit_manage call:

{
  "projectId": "<projectId>",
  "entity": "platform-api-request",
  "action": "mutate",
  "data": {
    "platform": "microsoft",
    "accountId": "<accountId>",
    "endpoint": "https://campaign.api.bingads.microsoft.com/CampaignManagement/v13/Campaigns/QueryByAccountId",
    "method": "POST",
    "payload": { "AccountId": "<accountId>", "CampaignType": "Search" },
    "description": "List Search campaigns"
  }
}
  • endpoint is the full https URL. Microsoft spreads its API across several hosts (campaign, reporting, bulk, and others under .api.bingads.microsoft.com), so there is no short path.
  • The HTTP method sets the operation:
    • POST to .../Campaigns adds.
    • PUT updates.
    • DELETE with a JSON body of IDs deletes.
    • Reads are POST requests to .../Query... paths.
  • In the list request above, CampaignType is optional. Without it, Microsoft returns Search campaigns only.
  • action is always mutate, also for reads.
  • description is required. The user sees it when they review the draft.
  • Check every path and field in the Microsoft Advertising API docs. Do not use AdKit field names here.

Examples

Only the data part changes. These follow the Microsoft Advertising API v13 reference.

Pause a campaign. Status is Active or Paused.

{
  "platform": "microsoft",
  "accountId": "<accountId>",
  "endpoint": "https://campaign.api.bingads.microsoft.com/CampaignManagement/v13/Campaigns",
  "method": "PUT",
  "payload": {
    "AccountId": "<accountId>",
    "Campaigns": [{ "Id": "<campaignId>", "Status": "Paused" }]
  },
  "description": "Pause campaign <campaignId>"
}

Microsoft Ads rules

  • New campaigns start paused unless you set Status. Microsoft also pauses a campaign when its budget runs out.
  • Reports and bulk downloads run as jobs. A successful response only means the job started. Check the job status as the Microsoft docs describe. Report results only when the job is done.
  • If the user needs something AdKit blocks, tell them, and report it with adkit_feedback.

Other platforms

The same AdKit connector runs Meta Ads, Google Ads, TikTok Ads, LinkedIn Ads, Reddit Ads, X Ads, and Pinterest Ads ads. Each platform has its own skill in this repo, for example meta-ads and google-ads.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.