# Hermoso: Apple Ads API Access: Roles, Keys and the Platform API

> Machine-readable twin of https://hermoso.ai/guides/apple-ads-api-access/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

# Apple Ads API access: what Apple requires and where people stop

Apple runs no review for its ads API. It asks for an Advanced account, a user with an API role, a key pair and a JWT you sign yourself, and the old v5 API shuts down on January 26, 2027.

Apple Ads (formerly Apple Search Ads) has no application form, no review and no waiting period for its API. That surprises people, and so does the reason they still get stuck: the gate is a user role and a key, and the screen Apple's instructions point to does not exist for the person most likely to open it.

## What you are applying for

You are setting up client credentials for the **Apple Ads Platform API** at `https://api.ads.apple.com/v1/`. It authenticates with OAuth2 client credentials at `https://appleid.apple.com/auth/oauth2/token`, using a client secret that is a JWT you sign with your own private key. It covers App Store ads and Apple Maps ads.

It replaces the Campaign Management API v5 at `api.searchads.apple.com/api/v5`. Apple's changelog: the Platform API "supersedes" v5, "which will be sunset on January 26, 2027." Anything you build today belongs on v1.

## Before you apply

- **Apple Ads Advanced, not Basic.** Apple's comparison page is explicit: Basic gets "No keyword data or access to the Apple Ads Platform API." Basic is a separate product with no programmatic surface, capped at "$10,000 (U.S.) per app, per month".
- **An account administrator** who can invite users.
- **A user with an API role.** Two roles can mint API credentials: **API Account Manager**, "read and write access to all campaign groups for API management", and **API Account Read Only**. Account Admin, Account Finance, Account Read Only and Limited Access cannot.
- **A way to make an EC key.** Apple's instructions use OpenSSL with the `prime256v1` curve. On Windows you install it first.

## Step by step

Apple lists six steps. Here they are with the parts that matter.

- **Invite a user with an API role.** Sign in to Advanced as an account administrator, open Account Settings, User Management, Invite Users, and pick an API role. The invitee gets an email with a secure code and activates the account. Invite an address you control, ideally a shared one, so the credential outlives any one person.
- **Generate a private key** on the `prime256v1` curve and keep it secret. If it leaks, you recreate the key and the client secret and upload again.
- **Extract the public key** from the private key.
- **Upload the public key.** Signed in as the API user, open Account Settings, API, paste the key into Public Key and save. Apple then shows `clientId`, `teamId` and `keyId`.
- **Create the client secret.** A JWT with header `alg` `ES256` and `kid` set to your keyId, and claims `iss` (teamId), `sub` (clientId), `aud` (`https://appleid.apple.com`), `iat` and `exp`. Apple: `exp` must be "less than 180 days from the iat timestamp."
- **Request an access token** with the client credentials grant, then call `GET /v1/me` and `GET /v1/acls` to find your ad accounts. Every ad account scoped call needs `X-AP-Context: adAccountId={adAccountId}`.

## Where people get stuck

- **The Public Key field is missing.** Apple says to paste the key under Account Settings, API. Signed in as the account admin, that page shows a list of third-party providers and no key field. The field belongs to a user holding an API role. Invite yourself with one.
- **The secret is too long-lived.** An `exp` more than 180 days after `iat` is rejected. Rotate before it lapses.
- **The context header changed.** v5 used `X-AP-Context: orgId=`. v1 uses `adAccountId=`. What v5 called an org is what v1 calls an ad account, under the same IDs. A filter on `orgId` cannot pick between two ad accounts, because every row a v1 token returns carries the same orgId.
- **The account cannot serve.** App Store ad accounts carry `APPSTORE_APP_MANUAL` and Apple Maps accounts carry `BUSINESS_BRAND_MANUAL`. Each also needs a delegation: `CONTENT_PROVIDER` with the CPID, or `BUSINESS_BRAND` with the Brand ID. Apple: "Both must be in place before campaigns can go live."
- **Arrays replace on update.** A PUT that includes an array replaces it entirely. Read the current array, then send the full desired state.
- **Ads work on one placement.** In our testing `POST /v1/ads` succeeded on `APPSTORE_SEARCH_TAB` and answered `AD_CAMPAIGN_SUPPLY_SOURCES_NOT_SUPPORTED` on the other App Store placements. A Search Results campaign needs no ad at all, because Apple builds it from your product page.
- **Reporting rules moved in v1.** To request a single day you omit `granularity`, and hourly data reaches back 7 days.

## How long it takes

Minutes, once an API-role user exists. The invite email and its secure code are the only wait. Plan your v5 migration now if you still run on it: the sunset date is fixed.

## Skip it: connect to Hermoso

Apple offers no third-party sign-in redirect for this API, so even with Hermoso you send the API-role invite once. Hermoso removes everything after it: it generates the EC P-256 key pair, shows you only the public half to paste into Apple, signs the ES256 client secret and keeps the access token fresh. No Apple password reaches Hermoso, and you never run OpenSSL.

- Hermoso runs on the Platform API v1 only, so the v5 sunset does not touch you.
- Campaigns, ad groups and ads are created paused. Enabling spend is a separate, confirmed step.
- An ad on a placement Apple refuses is stopped before the call, naming Apple's code and the placement that works.

The click-by-click connection, including the invite, is in [Connect Apple Search Ads](https://hermoso.ai/apple-search-ads-setup/). See also [Apple Ads on Hermoso](https://hermoso.ai/channels/apple-ads/) and [Apple Search Ads to Google Sheets](https://hermoso.ai/apple-search-ads-to-google-sheets/).

## Sources

- https://developer.apple.com/documentation/apple-ads-platform-api/implementing-oauth-for-the-apple-ads-platform-api
- https://developer.apple.com/documentation/apple-ads-platform-api/access-overview
- https://developer.apple.com/documentation/apple-ads-platform-api/changelog-apple-ads-platform-api
- https://ads.apple.com/app-store/help/apple-ads-basic/0001-compare-apple-ads-solutions

## Frequently asked questions

### Do I need approval from Apple to use the Apple Ads API?

No. There is no review. You need an Apple Ads Advanced account, a user with an API role, and a public key uploaded under Account Settings, API.

### Why is there no Public Key field in Apple Ads Account Settings?

The field only appears for a user with an API role. Invite a user with API Account Manager or API Account Read Only, accept the invite, and sign in as that user.

### Can Apple Ads Basic use the API?

No. Apple's comparison page states Basic has no keyword data and no access to the Apple Ads Platform API. You need Apple Ads Advanced.

### When is the Apple Search Ads Campaign Management API v5 sunset?

January 26, 2027. Apple states the Apple Ads Platform API v1 supersedes it.

### How long can an Apple Ads client secret last?

The JWT exp claim must be less than 180 days after its iat timestamp. Generate a new client secret before it expires.

Skip the app reviews: connect your accounts free, no card.

[Start free →](https://app.hermoso.ai/?src=site-guides-apple-ads-api-access&intent=create)

[See pricing](https://hermoso.ai/pricing)
