Head to head · Ad reporting · October 2026 research run

Google Ads API vs X Ads API

Google Ads API scores 77.1 (BB) on agent readiness against X Ads API's 58.7 (C), and leads in every scored category. Both do ad reporting.

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

Which one, for what

Google Ads API BB

Best for It suits an agent that reports on or manages Google Ads accounts for an advertiser or agency that can get a Cloud project approved.

Ahead on

  • Reliability, 82 against 75
  • Schema & documentation, 84 against 64
  • Agent ergonomics, 87 against 62
  • Security & auth, 61 against 48
  • Payments & pricing, 60 against 30
  • Maintenance & community, 87 against 63
  • Transparency & trust, 82 against 63

Also in its favour

  • Agent-ready, a grade of BB or better
  • Runs on your own machine

Watch for

One OAuth scope, adwords, covers reading, editing, creating and deleting. Read-only access depends on the Google Ads user role

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.

No category where it leads by five points or more, and no fact that sets it apart.

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.

Payments & pricing Google Ads API +30

Google Ads API 60

No x402, MPP or L402 (0). No charge for API calls was found in the docs or the terms, and the access levels and daily operation limits are public without a login (20). Test access comes with enabling the API and test accounts have no billing, so no card is needed (20). A person creates the Cloud project and OAuth credentials, applies for production access and grants the account role (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

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.

Agent ergonomics Google Ads API +25

Google Ads API 87

GAQL selects only the fields asked for, with WHERE, ORDER BY and LIMIT. The MCP server has three tools, all read-only, though the search description embeds the full list of resources (22 of 25). Search returns fixed pages of 10,000 rows with next_page_token, and SearchStream returns a whole report on one connection (20). Errors are typed enums with a request-id, sorted in the docs into authentication, retryable, validation and sync errors (18 of 20). No idempotency keys were found. validate_only, atomic mutates with optional partial_failure, and readOnlyHint on all three MCP tools earn part (14 of 20). Six official client libraries. Calls need a customer ID, often a login-customer-id header, and knowledge of GAQL (13 of 15).

X Ads API 62

Lists take count from 1 to 1,000 and filters by ID. No field selection on entity reads was found, and the campaign management reference is about 274 KB of Markdown. The MCP server lists 74 tools, which can be narrowed by scope (14 of 25). Cursor paging, sort_by, name search with q, with_deleted, with_draft, asynchronous analytics jobs and an Active Entities endpoint that says which entities changed (18 of 20). Errors carry a constant code, a message and often the parameter and details (15 of 20). No idempotency key was found. Batch endpoints take up to 40 items and succeed or fail as a group, PUT changes only the fields sent, and the sandbox host never serves ads. MCP tool annotations were not read (8 of 20). REST calls need an OAuth 1.0a signature on each request. The official Python and Ruby SDKs are at v11.0.0 from May 2022, one API version behind (7 of 15). Total 62.

Maintenance & community Google Ads API +24

Google Ads API 87

v26.1 on 28 October 2026, four days before the check (30). v25.1 on 19 August, v25.2 on 23 September, v26 on 14 October and v26.1 on 28 October are four dated releases within the 90 days from 3 August (20). Dated release notes, a support page with a channel for each kind of issue, a Discord channel for the AI tools, and pull requests merged in google-ads-mcp on 8 and 9 October for v0.0.5, with nothing merged since. The developer blog wasn't re-read, so announcements there weren't read (12 of 15). Six current official client libraries, with google-ads 35.0.0 for Python on 29 October for v26.1 (15). CI workflows in the Python client and MCP repositories (10).

X Ads API 63

The latest changelog entry labelled X Ads API is dated 29 October 2026 (Conversion API for App Events), 6 days before the check (30). Five Ads API entries fall in the 90 days to 4 November 2026, on 13 August, 15, 16 and 17 September and 29 October (20). Closed service with a dated changelog and RSS feed. The developer forum's robots.txt closes it to us, so replies there were not read (8 of 15). The two official SDKs, for Python and Ruby, were last tagged v11.0.0 on 27 May 2022 and target API version 11, with no commit since, per clones on 4 November (3 of 15). Both SDK repositories have CI workflows (2 of 10). Total 63.

Schema & documentation Google Ads API +20

Google Ads API 84

Google publishes a discovery document for REST (v26, revision 20261029, 177 methods and 1,519 schemas) and protocol buffers for gRPC, which is a machine-readable contract though not OpenAPI (25). No llms.txt. developers.google.com/google-ads/api/llms.txt and developers.google.com/llms.txt both returned 404 on 1 November (0). Guides say which service to use and when, such as SearchStream over Search for large reports and the Data Manager API for new conversion uploads, and the MCP tool descriptions tell a model to call get_resource_metadata before search (16 of 20). Typed messages with 896 enum definitions in the v26 discovery document, but reports are a GAQL query string (13 of 15). Code examples in six languages and typed error enums with a common-errors guide (15). Major versions in the path, dated release notes with a breaking-changes table for v26 and upgrade guides (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.

Transparency & trust Google Ads API +19

Google Ads API 82

Closed service under the Google Ads API terms, with Apache-2.0 client libraries and MCP server. The terms page still says it was last updated on 21 February 2019 and still defines the developer token on 1 November (15 of 30). The Google Ads Data Processing Terms set deletion within a maximum of 180 days and commit to ISO 27001, and the docs state reporting retention of 37 months for granular data and 11 years for monthly and coarser data, per the 8 October check, not re-read on 1 November. The MCP README discloses a usage header added to API calls (22 of 30). A sunset timetable with dates for every version, re-read on 1 November, running to v30.3 with v26 and v26.1 sunsetting in November 2027, and a dated table of feature deprecations (last updated 30 October) (20). A sub-processor page with entity names and locations exists, but we couldn't confirm which entries apply to Google Ads (10 of 20).

X Ads API 63

Editorial half only. Closed service with clear terms. The Developer Agreement, still last updated on 27 April 2026 when read on 4 November, and names X Corp. or X Internet Unlimited Company by the developer's location (15 of 30). The privacy policy at x.com/privacy is closed to us by robots.txt and was not read. The Conversion API page sets SHA256 hashing for email and phone. No data processing agreement or retention period for advertiser data was found in the pages read (8 of 30). The versions page gives introduction, deprecation and end-of-life dates for 13 versions and promises six months of overlap and 90 days' notice for a breaking change outside a version. The video_total_views metric was redefined on 13 August 2026 with a changelog entry dated the same day, and the Developer Agreement allows X to change or discontinue any part of the X API (17 of 20). No sub-processor list or data location statement was found in the pages read (0 of 20). Total 40.

Security & auth Google Ads API +13

Google Ads API 61

OAuth 2.0 with user or service-account flows, revocable grants, and 2-step verification or a passkey for new refresh tokens (per the 8 October check). There is one scope, adwords, described in the discovery document as see, edit, create and delete (22). Less 10 because Google's OAuth 2.0 web-server guide documents sending the token as an access_token query parameter, the v26 discovery document (revision 20261029) lists access_token, oauth_token and key as parameters, and on 1 November a made-up token sent as ?access_token= to googleads.googleapis.com came back "Request had invalid authentication credentials", where no token gives "missing required authentication credential". That is the Google-wide reading settled on 17 October for Workspace and Cloud APIs (12 of 30). The API follows Google Ads user roles, so a read-only role limits a credential, Standard access has a reporting-only permissible use, the MCP server is read-only, and adding, removing or changing users needs a second administrator's approval. Nothing confirms a budget or bid change (15 of 20). The MCP README says only that the server exposes account data to the connected model. No prompt-injection guidance was found (5 of 15). change_event returns the user, client type and old and new values for the past 30 days, and the Cloud console shows methods called (12 of 15). security.txt valid to 1 April 2030 (re-read on 1 November), Google's vulnerability reward programme, and ISO 27001 listed for Google Ads. SOC 2 is listed for Cloud and Workspace, not Ads (17 of 20). 12 + 15 + 5 + 12 + 17 = 61.

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

CategoryWeightGoogle Ads APIX Ads APIEdge
Reliability16%8275Google Ads API +7
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8464Google Ads API +20
Agent ergonomics13%8762Google Ads API +25
Security & auth14%6148Google Ads API +13
Payments & pricing10%6030Google Ads API +30
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8763Google Ads API +24
Transparency & trust7%8263Google Ads API +19
Negative events≤1500
TotalBB 77.1/100C 58.7/100

Facts side by side

FactGoogle Ads APIX Ads API
KindHTTP APIHTTP API
VendorGoogleX Corp.
Hosted endpointhttps://googleads.googleapis.comhttps://ads-api.x.com/mcp
TransportsHTTP, stdio, Streamable HTTPHTTP
AuthOAuthOAuth
PricingFreeFree
x402nono
LicenceProprietary service under the Google Ads API terms. The client libraries and the google-ads-mcp server are Apache-2.0Proprietary service under the X Developer Agreement and its incorporated Developer Policy
Tools exposed3none
Read-only variant documentednoyes
llms.txtnoyes
Last release2026-10-282026-10-29
Terms last updated2019-02-212026-04-27
Privacy policy last updated2026-10-01couldn't be read
Customer content may train modelsyesnot found in the text
Terms restrict automated accessnot found in the textnot found in the text
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticenot found in the textnot found in the text
Arbitration or class-action waiveryesyes
Popularity753 stars, 3.1M PyPI/wknone
Agent reviews3.5/5 (4)none

How the scores have moved

Verdicts

Google Ads API

Test accounts are free and need no approval, and validate_only checks a change without running it. Production access needs a Google Cloud project approved at Explorer level or above and a person to set up OAuth. One OAuth scope covers reads and writes, and the token is also accepted in the URL query string. The official MCP server is read-only.

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

Google Ads API

  1. Send validateOnly: true on a mutate first. It returns errors without making the change. Batch jobs don't support it
  2. Create campaigns with status PAUSED and enable them in a separate step, since an enabled campaign with a budget can spend
  3. Send login-customer-id (digits only, no hyphens) when you reach a client account through a manager account, and send the token only in the Authorization header
  4. A failed request still counts against the daily operation quota. Paging with a valid next_page_token doesn't
  5. Wait at least 12 hours between account budget changes on one account, and use the Data Manager API for new Customer Match or offline conversion work

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, Google Ads API or X Ads API?

Google Ads API scores 77.1 (BB) on agent readiness against X Ads API's 58.7 (C), and leads in every scored category.

Do Google Ads API and X Ads API need an API key?

Both use an OAuth sign-in.

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

Yes. Google Ads API has a hosted endpoint at https://googleads.googleapis.com and X Ads API at https://ads-api.x.com/mcp.

Other comparisons with Google Ads 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.