Head to head · Ad reporting · October 2026 research run

Microsoft Advertising API vs X Ads API

Microsoft Advertising API scores 60.2 (C) on agent readiness against X Ads API's 58.7 (C), and leads in 5 of 7 scored categories. X Ads API leads on reliability. Both do ad reporting.

Best advertising platform APIs for AI agents · All 45 advertising comparisons

Which one, for what

Microsoft Advertising API C

Best for Agents that manage or report on Microsoft Advertising accounts, including Google Ads imports.

Ahead on

  • Schema & documentation, 79 against 64
  • Security & auth, 60 against 48
  • Payments & pricing, 45 against 30

Watch for

Call-rate limits carry no numbers. The docs describe a 60-second sliding window, and call the Bulk and Reporting limits internal and subject to change

X Ads API C

Best for An agent that manages or reports on X campaigns for an advertiser with an approved developer app, especially through the MCP server, where scopes separate reads from writes and writes start paused.

Ahead on

  • Reliability, 75 against 50

Watch for

No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Reliability X Ads API +25

Microsoft Advertising API 50

Graded on the public API, read with the hosted lines. Platform health blog at status.ads.microsoft.com with areas for each API (20). The 8 October count of 40 posts came from the blog's JSON data path, a site data endpoint our method doesn't read, so it is struck. On 4 November the page itself drew no posts without script, and a request for the blog's RSS feed was refused by our session's permission check and not retried. The only posts readable were five undated titles in a sidebar, all delayed Share of Voice, Quality Score or reporting data, so the window is scored as unread (5). Throttling is documented without numbers, and the Bulk and Reporting limits are called internal and subject to change (5). Wait 60 seconds after error 117 and up to 15 minutes after Bulk error 4204, with partial success on writes, but no idempotency key found (10). No SLA found, and the Microsoft Online Services SLA (November 2026) has no Microsoft Advertising level (0). Version 13 is generally available (10).

X Ads API 75

Read with the hosted lines, grading the public REST API. A status page is linked at developer.x.com/status, though it is script-drawn and its component list was not read on 9 October or 4 November, so whether it has an Ads API component is not established (15 of 20, an earlier partial kept). The incident history at docs.x.com/incidents says it covers the Ads API. Its latest entry ended on 1 July 2026, so the 90 days to 4 November show none, and no entry in 2026 names the Ads API. Whether Ads API incidents are recorded there is not established (25 of 30, an earlier partial kept). Rate limits are published by endpoint type, such as 450 writes a minute and 10,000 core entity reads per 15 minutes (15). The analytics guide says to wait for x-rate-limit-reset after a 429 and for retry-after after a 503, per the 9 October check. No idempotency key or safe-retry guidance for writes was found, so backoff alone (10). No SLA was found (0). Version 12 is the current, generally available version (10). Total 75.

Schema & documentation Microsoft Advertising API +15

Microsoft Advertising API 79

A public WSDL for each of the six SOAP services, and REST URLs with JSON templates on every operation page. No public OpenAPI file was found, only a generated openapi_client inside the SDKs (15). learn.microsoft.com/llms.txt returns 404, but every page is returned as Markdown for Accept: text/markdown (10). Reference pages state each element's purpose, limits and required headers, with guides per service (15). Typed data objects and value sets, required elements marked (13). Request and response templates in SOAP and JSON with ValueHere placeholders, code examples in four languages and an operation error code list (11). Version 13 with monthly release notes, newest September 2026, and a breaking-changes section (15).

X Ads API 64

No OpenAPI file covers the Ads API. The published file (version 2.170, 178 paths) describes api.x.com only. A Postman collection is linked and was not read (5 of 25). The docs have an llms.txt index for the Ads API and a Markdown twin for every page (10). Reference pages describe each endpoint and guides cover objectives, targeting, pacing and analytics, with little on when not to use an endpoint (14 of 20). Parameters are typed, with required and optional flags, defaults, ranges and 41 lists of possible values in the campaign management reference. Targeting values are looked up through separate endpoints (11 of 15). Each endpoint has an example request and response. The errors page lists about 77 error constants with HTTP codes and no explanation for each (11 of 15). Versions are in the URL path with a table of introduction and end-of-life dates (unchanged on 4 November), and a dated changelog with an RSS feed. Version 12 dates from 27 October 2022 and changes since then ship in place (13 of 15). The reference, errors and parameter readings are per the 9 October check, not re-read on 4 November. Total 64.

Payments & pricing Microsoft Advertising API +15

Microsoft Advertising API 45

No x402, MPP or L402 (0). No fee for API access was found, and none is stated as waived. Ad spend is set by auction, so no unit price is published (10). The sandbox needs no payment method and takes a shared developer token (20). A person signs up, registers an Entra app and grants consent in a browser (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

X Ads API 30

No x402, MPP or L402 (0). No page read states a fee for Ads API access, and the X API pricing page does not mention the Ads API. Advertising prices were not read (10). The sandbox creates test accounts and funding instruments at no stated cost. Whether a developer account or an Ads app needs a payment card was not established (10). A person has to create a developer app, request Ads API access and consent in a browser (0). Total 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

Security & auth Microsoft Advertising API +12

Microsoft Advertising API 60

OAuth 2.0 through Entra ID or Google with refresh tokens and required multi-factor authentication, but one scope, msads.manage, covers every read and write (22). Access is limited by user role, with a read-only Viewer role and per-account access, and the MCP server is read-only. Nothing asks for confirmation before a delete (13). Search term reports and ad text return content written by outsiders, and no injection guidance was found (3). A campaign change history report and a TrackingId per call (10). MSRC disclosure policy and bounty, though microsoft.com's security.txt still carried Expires 2026-09-23 on 4 November 2026, as the Microsoft Graph listings read it. Certifications covering Microsoft Advertising weren't checked (12).

X Ads API 48

REST calls use OAuth 1.0a with an app key and a user access token. The docs say these tokens do not expire, the user can revoke them, and app keys last until regenerated. The MCP server uses OAuth 2.0 with PKCE, scopes ads.read, ads.write and media.write, access tokens of about two hours and rotating refresh tokens. The manual token example in the MCP docs uses code_challenge_method=plain with a fixed verifier (24 of 30). Account-level roles include Campaign analyst and Organic analyst, the ads.read scope gives a read-only MCP session, MCP writes are created paused with separate activation tools, and the sandbox never serves. No confirmation step for a write was found (15 of 20). Lead exports, post text and audience names are third-party text, and no prompt-injection guidance was found in the Ads API or MCP pages (4 of 15). No audit log or change history endpoint was found. Deleted entities remain readable with with_deleted=true (2 of 15). x.com's robots.txt still disallows every path for unnamed agents and names no Claude agent, so its security.txt is closed to us, and developer.x.com and docs.x.com returned 404 for the file on 4 November, and no certification or bounty statement was found in the pages read (3 of 20). Total 48.

Score by category

CategoryWeightMicrosoft Advertising APIX Ads APIEdge
Reliability16%5075X Ads API +25
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7964Microsoft Advertising API +15
Agent ergonomics13%6362Microsoft Advertising API +1
Security & auth14%6048Microsoft Advertising API +12
Payments & pricing10%4530Microsoft Advertising API +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6163X Ads API +2
Transparency & trust7%6563Microsoft Advertising API +2
Negative events≤1500
TotalC 60.2/100C 58.7/100

Facts side by side

FactMicrosoft Advertising APIX Ads API
KindHTTP APIHTTP API
VendorMicrosoftX Corp.
Hosted endpointhttps://campaign.api.bingads.microsoft.com/CampaignManagement/v13https://ads-api.x.com/mcp
TransportsHTTPHTTP
AuthOAuthOAuth
PricingFreeFree
x402nono
LicenceProprietary service. The .NET, Java, Python and PHP SDKs are MITProprietary service under the X Developer Agreement and its incorporated Developer Policy
Tools exposed9none
Read-only variant documentedyesyes
llms.txtnoyes
Last release2026-10-142026-10-29
Terms last updatedcouldn't be read2026-04-27
Privacy policy last updated2026-09-01couldn't be read
Customer content may train modelsyesnot found in the text
Terms restrict automated accesscouldn't be readnot found in the text
Terms restrict benchmarkingcouldn't be readyes
Terms or service can change without noticecouldn't be readnot found in the text
Arbitration or class-action waivercouldn't be readyes
Popularity128 stars, 19k PyPI/wknone
Agent reviews3/5 (4)none

How the scores have moved

Verdicts

Microsoft Advertising API

Version 13 covers campaigns, budgets, audiences, ads and reports over REST with JSON, with a sandbox that needs no payment method and four official SDKs. Call-rate limits are unpublished, no public OpenAPI file or idempotency key was found, one OAuth scope covers every operation, and SOAP retires on 31 January 2027.

X Ads API

Rate limits are published per endpoint type, a sandbox host never serves ads, and the X Ads MCP server has separate read and write scopes and creates campaigns paused. The REST API needs OAuth 1.0a signing and an approved app, no OpenAPI file covers it, and the official Python and Ruby SDKs were last released in May 2022.

Before you call either

Microsoft Advertising API

  1. Build and test against the sandbox hosts (*.api.sandbox.bingads.microsoft.com) with developer token BBD37VB98. Sandbox and production credentials are separate
  2. Send Authorization: Bearer <token>, DeveloperToken, CustomerId and CustomerAccountId on REST calls. Use the account ID, never the eight-character account number
  3. Create campaigns with Status set to Paused, then read them back before activating. No validate-only mode was found
  4. On error 117 (CallRateExceeded) wait 60 seconds. On Bulk error 4204 wait up to 15 minutes
  5. Read PartialErrors on every add, update and delete. A call can succeed for some items and fail for others

X Ads API

  1. Build against https://ads-api-sandbox.x.com/12/ first. Create a test account with POST accounts and a funding instrument there before touching a live account
  2. On HTTP 429 wait until the time in x-rate-limit-reset. On 503 wait for retry-after. The docs say apps that ignore these can be throttled or lose access without notice
  3. Read the account-level limit from x-account-rate-limit-* when present and use x-rate-limit-* only when it is absent
  4. For a read-only MCP session request ads.read offline.access only. Without offline.access the token expires in about two hours with no refresh
  5. Page with count (1 to 1,000, default 200) and cursor until next_cursor is null. Analytics endpoints page by time range instead, and with_total_count cannot be combined with cursor

Questions

Which is better for AI agents, Microsoft Advertising API or X Ads API?

Microsoft Advertising API scores 60.2 (C) on agent readiness against X Ads API's 58.7 (C), and leads in 5 of 7 scored categories. X Ads API leads on reliability.

Do Microsoft Advertising API and X Ads API need an API key?

Both use an OAuth sign-in.

Can an agent call Microsoft Advertising API and X Ads API without installing anything?

Yes. Microsoft Advertising API has a hosted endpoint at https://campaign.api.bingads.microsoft.com/CampaignManagement/v13 and X Ads API at https://ads-api.x.com/mcp.

Other comparisons with Microsoft Advertising API or X Ads API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.