Getting X Ads API access is quick on paper. The time goes into everything around the form: an ads account X will let you use, an auth scheme the rest of the X API stopped using, and an error ladder that looks the same whether you made a mistake or X has not said yes yet.
What you are applying for
An app-level grant to call ads-api.x.com. It is separate from the pay-per-usage X API v2 covered in our X API pricing guide, and X says basic X API access "doesn't include Ads API functionality". There are two tiers:
| Tier | Endpoints |
|---|---|
| Conversion Only | Mobile and web conversion endpoints, read and write |
| Standard Access | Analytics, campaign management, creatives, custom audiences and conversions, read and write |
Ask for Standard. Conversion Only cannot build a campaign. Access is granted per developer app, so advertisers who authorize your app use your tier and apply for nothing themselves.
Before you apply
- A developer account and an app at console.x.com. Keys and tokens display once, so store them as soon as you see them.
- App permission set to Read and write before you generate tokens, or every write is refused.
- An ads account with a funding source at ads.x.com. In our case Ads Manager would not open until the account subscribed to X Premium or Premium+. Premium did not grant any API access by itself.
- OAuth 1.0a. X: "All HTTP calls to the Ads API must include an Authorization request header (using OAuth 1.0a)". An OAuth 2.0 bearer token from the v2 API does not work here.
Step by step
- Create the developer app and save its consumer key and secret.
- Submit the Ads API Access Form for each developer app that needs access, and choose Standard Access.
- Wait for the decision. X states review can take "up to 3 business days". Ours came back within minutes.
- Regenerate your user access tokens after approval. X says to do this so Ads API requests are properly authenticated, and skipping it is the classic post-approval 401.
- Test with
GET accounts, which returns the ad accounts the authorized user can reach. - For customers, run 3-legged OAuth 1.0a. Register your callback URL exactly in the app's user authentication settings. X matches callbacks exactly, including trailing slashes, and refuses a mismatch with code 415. X is firm on one rule: "Ads API developers should never request that our X advertisers share their login credentials."
What reviewers check, and the errors that tell you where you are
X publishes little about its review, so read the API's answers instead. This ladder separated "my code is wrong" from "my app is not approved" for us:
| You send | X answers | Meaning |
|---|---|---|
| An OAuth 2.0 bearer token | 401 UNAUTHORIZED_ACCESS | Wrong auth scheme entirely |
| No credentials | 400 code 215, Bad Authentication data | The host is live and checking auth |
| A valid OAuth 1.0a signature from an unapproved app | 403 UNAUTHORIZED_CLIENT_APPLICATION | Signing works. The app lacks Ads API access. |
The 403 reads: "The client application making this request does not have access to Twitter Ads API". It gates the sandbox too, so there is no building against the sandbox before approval. Other traps we measured:
- Sign the bytes you send. A timestamp sent with literal colons but signed with encoded ones returns 401. Encode
:and,before building the signature base string, and send that exact URL. - The sandbox hostname in the docs does not resolve.
ads-api-sandbox.x.comhas no DNS record.ads-api-sandbox.twitter.comanswers. - A wrong
objectivereturns 500INTERNAL_ERROR, not a 400 listing valid values, so validate it yourself. - Hidden required fields.
start_timeis required on a line item, andoperator_typeis required on every targeting write. - Stats refuse partial hours with "Time cannot be fractional hours", and an unknown parameter is silently dropped.
- A made-up entity ID returns 200 with every metric null, identical to a real zero.
How long it takes
The form itself is up to 3 business days by X's own estimate. The longer parts sit before it: a usable ads account, a funding source and, for some accounts, a Premium subscription.
Skip it: connect to Hermoso
Hermoso's X app holds Standard Ads API access. You authorize your own X login through X's 3-legged OAuth 1.0a flow, choose which ad accounts this brand can use, and build campaigns, line items, targeting and promoted posts, then read reports, from the web app, the CLI or any agent over MCP. You never apply, never touch a signature, and never share a password.
- Campaigns are created paused, and activating spend is a separate, confirmed step.
- Objectives are checked before the call, so a wrong word never comes back as an X outage.
- Report windows default to whole hours, and an all-null stats response is flagged instead of shown as zero performance.
Posting organic X content is a separate X connection. See X Ads on Hermoso and X on Hermoso. Related: X API pricing, LinkedIn Advertising API access.
Sources
- https://docs.x.com/x-ads-api/introduction
- https://docs.x.com/x-ads-api/getting-started
- https://docs.x.com/x-ads-api/fundamentals/accessing-ads-accounts
- https://docs.x.com/x-ads-api/fundamentals/making-authenticated-requests
Frequently asked questions
How do I apply for X Ads API access?
Create a developer app at console.x.com, then submit the Ads API Access Form for each developer app. Choose Standard Access if you need campaign management.
What is the difference between Conversion Only and Standard Access on the X Ads API?
Conversion Only covers mobile and web conversion endpoints. Standard Access adds analytics, campaign management, creatives and custom audiences.
How long does X Ads API approval take?
X states the review can take up to 3 business days.
What does UNAUTHORIZED_CLIENT_APPLICATION mean?
Your OAuth 1.0a request was signed correctly, but the app does not have Ads API access yet. Submit the Ads API Access Form, then regenerate user tokens after approval.
Can I use OAuth 2.0 with the X Ads API?
No. X requires OAuth 1.0a on every Ads API request. An OAuth 2.0 bearer token returns 401 UNAUTHORIZED_ACCESS.


