AdCopilot docsby Atromx
Connect your assistant

Microsoft Advertising in your AI assistant

What AdCopilot's Microsoft connector reads from Microsoft Advertising and Microsoft Clarity, the changes it makes, and what to do if sign-in fails.

View as Markdown
Open inClaudePerplexity

AdCopilot's Microsoft connector lets the AI assistant you already use read your own Microsoft Advertising accounts: campaigns, ad groups, keywords, ads, search terms, conversion tracking, Microsoft's recommendations and performance reports, and the Microsoft Clarity projects you add. It is made by Atromx Intelligence, not by Microsoft. It also makes the Microsoft Advertising changes you approve: pause or resume, budgets, bids, negative keywords, targeting, extensions, a Google Ads import, and new campaigns, ad groups, ads and conversion goals, always created paused. It never deletes anything. In ChatGPT and Codex it only reads for now. In Clarity it only reads.

It is a connector of its own, with its own address, beside the AdCopilot connector for Google Ads. Adding it changes nothing in that connector:

https://mcp.adcopilot.cloud/microsoft/mcp

Add it to your assistant as a custom connector (a remote MCP server, by its address), the way Any MCP client says, with the address above. Your assistant then starts with msads_get_context, which says whether you are connected, which accounts are switched on, and what to do next.

How it works

You connect, then your assistant asks. You sign in with your Microsoft account on Microsoft's own page and allow AdCopilot to use Microsoft Advertising for you. Accounts are switched on when you connect, up to your plan's ad-account limit; the workspace owner can switch others on in AdCopilot. From then on, when you or your assistant ask, AdCopilot reads Microsoft Advertising for that answer, hands the result to your assistant, and keeps none of it.

Your assistant is another company's product. Claude, ChatGPT and the other assistants AdCopilot works with are made by other companies, not by AdCopilot. The assistant writes the answer from AdCopilot's results; its company's terms and your settings there decide how long it keeps the results and whether it trains on them. AdCopilot cannot see or delete what your assistant keeps.

What each tool reads.

ToolReads
msads_get_contextAdCopilot's own records: whether you are connected, the accounts switched on, the next step.
msads_accountsThe accounts your Microsoft login can open: name, number, currency, time zone, status, mode (Expert or Smart) and your role on each.
msads_campaignsEach campaign's type, status, budget and bidding, and for a Search campaign whether AI Max is on and which of its features are; with figures, its impressions, clicks, spend, conversions and revenue. Also, for one campaign, each ad group's status, type, language, network and bid; for one ad group, each keyword's text, match type, bid, status and review status (with figures, its quality score too), or each responsive search ad's headlines, descriptions, paths, final URLs, status and review status (with figures, its ad strength too).
msads_tracking_healthYour UET tags' and conversion goals' status and settings, with AdCopilot's checks; when you ask, also how many offline conversion uploads of the last few days Microsoft matched to a click, and its reasons for the rest. Never a tag's script or key, and never the uploaded rows.
msads_recommendationsMicrosoft's own recommendations, with Microsoft's estimates. It applies none of them.
msads_account_overviewOne account's impressions, clicks, spend, conversions and revenue for a range, an earlier period to compare, and Microsoft's own Performance Insights.
msads_search_termsThe search terms that triggered your ads, with the keyword each matched and its results.
msads_report_resultThe rest of a report or an analysis that was still on the way (see below).
msads_keyword_ideasMicrosoft's keyword ideas for the words or the page you give, with Microsoft's estimates of monthly searches, competition and a suggested bid. Nothing is added to the account.
msads_auction_insightsHow often your ads showed beside other advertisers' in the same auctions, for the account, a campaign, an ad group or a keyword, over the last 180 days at most. Other advertisers are named only by the display domain Microsoft shows.
msads_product_issuesThe products in a Microsoft Merchant Center store of your account's that are expiring, expired or missing a brand or product identifier, with AdCopilot's checks. Never prices, links, images or descriptions.

Analyses. These work out answers from Microsoft's figures. Each counts once toward your daily use, asks Microsoft for one to three reports, and says how many are ready when they are still on the way. Their findings are AdCopilot's checks, worked out from Microsoft's figures; nothing is changed.

ToolAnswers
msads_analyze_wasteKeywords and search terms that spent with no conversion, and each campaign's share.
msads_analyze_termsYour search terms sorted into converting, spending without converting and costing nothing; the match types; keywords a negative keyword blocks; and, where AI Max is on, its search terms with the pages they reached.
msads_budget_pacingThis month's spend so far against each campaign's daily budget, with a projection for the month.
msads_quality_scoreHow many keywords have each quality score, which parts are below average, and the weakest keywords by spend.
msads_auditQuick: conversion tracking, campaign settings, bid strategies, Microsoft's rules for ads in Copilot, and Microsoft's own Performance Insights. Deep: also the range's campaign, keyword and ad figures.
msads_changesWhat changed in the account, when, how and with which tool, for up to six months. Who made a change, and changes to users, billing and phone numbers, are left out.
msads_day_hourResults by day of the week and by hour of the day.
msads_rsa_assetsHow each headline and description of your responsive search ads did over the last 30 days at most, Microsoft's own label for each in one ad group, and each ad's strength.

It never reads or returns billing or payment details, your profile's contact details, call details, click ids, customer lists or audience demographics.

Figures come from Microsoft's reports. Microsoft Advertising makes spend, clicks, conversions, quality scores and ad strength as reports, which can take minutes. AdCopilot waits for a report for about half a minute. If it is not ready, your assistant tells you the figures are on the way and asks for them again a minute later with msads_report_result; that follow-up does not count toward your daily use. At most three reports can be on the way for one connection at a time.

How the figures are worked out. Microsoft's figures are passed on as Microsoft reports them, in the account's own currency. Under computed, AdCopilot adds its own arithmetic, labelled as such: CTR (clicks ÷ impressions × 100), CPC (spend ÷ clicks) and ROAS (revenue ÷ spend). Date ranges are judged by the account's own "today", and data_note says which day Microsoft's figures are complete to. Microsoft lists only the search terms with a significant number of clicks.

Microsoft's own words. Performance Insights (what happened, why, and what you can do) and Microsoft's recommendations are Microsoft's, not AdCopilot's, and your assistant is told to say so. Performance Insights cover at most the last 30 days of the range you ask for.

Changes

AdCopilot tells your assistant to propose each change to you first and makes the changes you approve; it cannot see your answer itself, and it refuses changes in the scheduled tasks it can detect. You stay responsible for the changes you approve. For a hard stop, set your AI client to ask before AdCopilot's write tools: Needs approval in Claude; in Cursor, set the run mode to Allowlist and keep them off the allowlist (Cursor's cloud agents never ask).

In Microsoft Advertising it can pause or resume a campaign, ad group, ad or keyword; change a budget, bids or a bid strategy; add or remove negative keywords; change a campaign's locations, ad schedule and device bid adjustments; add sitelink and callout extensions; create a campaign, an ad group, a responsive search ad or a conversion goal; and start a one-time import of your Google Ads campaigns, which Microsoft Advertising carries out.

  • Created paused. New campaigns, ad groups, ads and conversion goals start paused, and so do the new campaigns an import brings in, for you to switch on in Microsoft Advertising. On a running campaign, a new sitelink or callout extension can show with its ads at once, and an import can add targets, negative keywords and extensions to campaigns it brought in before from the same Google Ads account.
  • Nothing deleted. The only things it takes out are a negative keyword you ask it to remove and a campaign's old ad schedule when you replace it. To stop something, it pauses it.
  • Your role counts. A Viewer role reads only: AdCopilot refuses a change on an account where your role is Viewer.
  • Amounts in the account's currency. A bigger spending change, such as a budget or bid raised by more than 20% on something running, or switching something back on that starts spending, needs the amount confirmed first.

If you added the connector before it could make changes, remove it in your assistant and add it again to get the change tools. You do not sign in at Microsoft again: Microsoft's sign-in already covers changes. In ChatGPT and Codex the connector only reads for now: they get the tools above and none of the changes.

Microsoft Clarity

The same connector reads the Microsoft Clarity projects you add. Clarity has no sign-in: a project admin makes a Data Export API token in Clarity (Settings, Data Export, Generate new API token), and you paste it, with the project's ID (the code after /projects/view/ in the project's Clarity address), on AdCopilot's own page. Each connect adds one project, up to 10. A Clarity project does not count as an ad account toward your plan's limit.

clarity_insights reads one project's dashboard figures for the last 1, 2 or 3 days: traffic, scroll depth, engagement time, popular pages, referrers, and signals such as dead clicks, rage clicks, quick backs, excessive scrolling and script errors, broken down by up to three of browser, device, country or region, operating system, source, medium, campaign, channel and page address. Clarity sends totals only, never a session, a recording or a single visitor's details.

Clarity allows 10 requests per project a day. AdCopilot keeps each finished answer, encrypted, until midnight UTC, so the same question again that day does not use another request: ask once with every breakdown you need. When a project's requests for the day are used, your assistant says so, and nothing more is sent for that project that day. Your assistant is told to report Clarity's figures on their own, never added to Google Analytics or Google Ads figures.

Connect help

When connecting doesn't finish

Connecting ends on one of these when Microsoft refuses the sign-in:

  • "Microsoft Advertising's answer didn't check out": Microsoft didn't confirm the sign-in after you allowed AdCopilot. If trying again a minute later ends the same way, one of the cases below is the usual reason.
  • The connect shows as cancelled, or "You didn't finish connecting Microsoft Advertising", although you didn't cancel: Microsoft's own sign-in page stopped it. That page often shows a code, such as AADSTS650052.

If the same refusal happens later, after you connected, your assistant says it in the words quoted under each case.

A login that signs in with a Google account (Error 126)

If connecting keeps ending on "Microsoft Advertising's answer didn't check out", your Microsoft Advertising login may sign in with a Google account. Microsoft calls this Error 126. If it happens later, your assistant says:

This Microsoft Advertising login signs in with a Google account, which AdCopilot can't use yet. Connect a Microsoft account that has access to the ad account instead. Nothing changed.

Some people sign in to Microsoft Advertising with a Google account. AdCopilot's Microsoft Advertising sign-in uses Microsoft accounts only. To connect:

  1. In Microsoft Advertising, have someone who manages users on the account invite a Microsoft account (a personal Microsoft account, or a work or school account) with a role on the ad account.
  2. Accept the invitation with that Microsoft account.
  3. Connect AdCopilot again and sign in with that Microsoft account.

A login that expects another kind of sign-in (Errors 122 to 125)

If connecting keeps ending on "Microsoft Advertising's answer didn't check out", Microsoft Advertising may expect another kind of sign-in for your login: also Error 126, or Errors 122 to 125. If it happens later, your assistant says:

Microsoft Advertising expects another kind of sign-in for this login (a personal Microsoft account, or a work or school account). Connect again with the account type your Microsoft Advertising login uses. Nothing changed.

The same email can be both a personal Microsoft account and a work or school account. On Microsoft's sign-in page, choose the one your Microsoft Advertising login uses, then connect again.

Your organisation's Microsoft directory hasn't added Microsoft Advertising (AADSTS650052)

If Microsoft's sign-in page shows AADSTS650052, or connecting with a work or school account ends on "Microsoft Advertising's answer didn't check out" or shows as cancelled although you didn't cancel, your organisation's Microsoft directory may not have added Microsoft Advertising yet. If it happens later, your assistant says:

Your organization's Microsoft directory hasn't added Microsoft Advertising yet (Microsoft error AADSTS650052). Ask your organization's Microsoft administrator to add Microsoft Advertising and approve AdCopilot, then connect again. Nothing changed.

It happens with a work or school account when your organisation's directory has never used Microsoft Advertising through another tool. Your organisation's Microsoft administrator fixes it once, for everyone:

  1. Add Microsoft Advertising to the directory. Microsoft's own step (from its Microsoft Advertising API documentation) is this Microsoft Graph call, run by the administrator:

    POST https://graph.microsoft.com/v1.0/servicePrincipals
    {"appId": "d42ffc93-c136-491d-b4fd-6f18168c68fd"}
  2. Approve AdCopilot for the organisation. Write to support@adcopilot.cloud with your organisation's tenant ID. We reply with the approval link for your administrator, who opens it, signs in and accepts.

  3. Connect again. You, and anyone else in your organisation, can now connect with a work or school account.

Some organisations ask an administrator to approve every new app. If Microsoft's sign-in page says you need an administrator's approval, the approval in step 2 is what they need.

Which role you need

A Viewer role is enough to read: Microsoft calls it read only. To make changes, you need a role that can edit the account, such as Super Admin or Standard User; AdCopilot refuses a change where your role is Viewer. msads_accounts shows your role on each account. AdCopilot reads only the accounts your login has a role on and that are switched on in your workspace.

An account in Smart mode

Microsoft's API reads only accounts in Expert mode. msads_accounts lists an account in Smart mode, but the other tools cannot read it. Switching the account to Expert mode in Microsoft Advertising makes it readable.

When figures are still on the way

Nothing is wrong: Microsoft is still making the report. Your assistant asks for it again with msads_report_result a minute later. If it says Microsoft is already preparing as many reports as it allows, ask for the results of the reports on the way first. An analysis that needs more reports than there is room for asks for none of them: finish the reports on the way, then ask for it again.

Remove AdCopilot's access

Disconnect in AdCopilot at any time (see Deletion, below). You can also remove AdCopilot at Microsoft: account.live.com/consent/Manage for a personal Microsoft account, or myapps.microsoft.com for a work or school account. For a Clarity project, also delete its token in Clarity, in the project's Settings, Data Export.

The principles

  • It reads only what the answer needs, and only the accounts you hold a role on and that are switched on in your workspace.
  • Microsoft Advertising on its own. Your assistant is told never to add Microsoft Advertising figures to Google Ads, Analytics or Search Console figures, compare them, or put them in one table or total, and never to pass Microsoft Advertising results to another tool.
  • No people data. No contact details, call details, click ids, customer lists or demographics.
  • No training by us. AdCopilot does not train any AI model on Microsoft Advertising data. Your assistant's company decides its own training.
  • Answers can be wrong. What your assistant says is AI-generated. Every result carries a notice saying so, and your assistant is told to pass it on to you.
  • Names are outside text. Account, campaign, ad group and goal names, keywords, search terms, ad text and Microsoft's insight sentences come from outside AdCopilot; they are cleaned and labelled so your assistant treats them as data, never as instructions.
  • Deletion. Disconnecting deletes your Microsoft sign-in and your roles at once. An account stays only while a teammate's connection in your workspace still reaches it, and the 180-day log keeps only a keyed fingerprint of the account, with no campaign data. Disconnecting Clarity deletes its tokens, and the day's kept answers can no longer be read. The privacy policy's "Your Microsoft data" says what is kept and for how long.

Best practices

  • Check the figures in Microsoft Advertising before you act on them, especially spend and conversions.
  • Keep the chat inside your organisation. Don't share a chat with Microsoft Advertising results outside it.
  • Turn off model training in your assistant's settings, and prefer a business or API plan that does not train on your chats.
  • Delete old chats that hold Microsoft Advertising results when you no longer need them.
  • Report a problem. If an answer is harmful, offensive or wrong, write to support@adcopilot.cloud with what you asked and when.

Microsoft, Bing, Microsoft Advertising and Microsoft Clarity are trademarks of the Microsoft group of companies.

On this page