Apple Ads spend by campaign, read by itself
Add a read-only API user in Apple Ads, give it the key Sumly makes for you, and give each ad account to a project. Every night Sumly reads what each campaign spent, so ROI shows what the App Store ads cost next to what the app earned.
The demo runs on our own apps, with example numbers.
What you get
What each Apple Ads campaign spent in the App Store, read every night, next to what your app's users paid.
Four steps
Sumly only asks Apple's Ads Platform API for campaign reports: it never changes a campaign, a budget or a bid.
-
1
In Apple Ads, open Account Settings › User Management and invite a user with the role API Account Read Only. Apple shows the key field only to API users, not to an admin, so use an address not yet in the account: your own with a plus, such as [email protected], lands in your inbox.
-
2
On Costs › Ad spend, press Connect Apple Ads and copy the public key Sumly made for your workspace.
-
3
Signed in to Apple Ads as the API user, paste the key under Account Settings › API, then copy the client id, team id and key id back to Sumly.
-
4
Pick the project each ad account is for and how far back the first read goes, up to two years.
Or let your coding assistant do it
Paste this into Claude Code, Cursor or Codex in your project. It fits the code to how your project is built, asks you for the dashboard steps and leaves the keys to you.
See what it says
Set up Apple Ads for Sumly in this project. Sumly (https://sumly.dev) shows revenue next to the visits and app users it came from. The full guide is https://sumly.dev/integrations/apple-ads; read it if anything below is unclear. Steps: 1. In Apple Ads, open Account Settings › User Management and invite a user with the role API Account Read Only. Apple shows the key field only to API users, not to an admin, so use an address not yet in the account: your own with a plus, such as [email protected], lands in your inbox. 2. On Costs › Ad spend, press Connect Apple Ads and copy the public key Sumly made for your workspace. 3. Signed in to Apple Ads as the API user, paste the key under Account Settings › API, then copy the client id, team id and key id back to Sumly. 4. Pick the project each ad account is for and how far back the first read goes, up to two years. So each payment shows which visit it came from: Apple Ads sends people to the App Store, not to a website, so no link carries a campaign. With RevenueCat's Apple Search Ads attribution on (one line in the app and a switch in RevenueCat), each person Apple says an ad brought comes from the Apple Ads source, with what they paid. This works with Apple Ads Basic too, which has no reporting API. Keep in mind: Not open yet: Sumly is still checking its Apple Ads reading against real accounts. Until then, import Apple Ads exports on Costs or send spend through the costs API. Campaigns only, not ad groups or keywords. Days are the ad account's own, from midnight in its time zone. How to work: - Look at how this project is built first, and fit the code to its framework and its way of doing things; the examples above are a starting point, not something to paste as is. - Steps that happen in a dashboard (Sumly, or Apple Ads's own) are mine: tell me exactly what to click, then wait for me. - Keys the code needs belong in environment variables, never in the code or the repository. Never ask me to paste a secret key into this chat; tell me which variable to set. - Change only what this needs, show me the changes before you commit, and tell me how to check that it works.
What you see after connecting
Apple Ads next to every other project and provider, on the same pages.
Costs
One line per campaign, with the days read from Apple Ads.
ROI
What each campaign spent next to what the people it brought paid.
Home
Profit with the ad spend taken off.
Which campaign brought them
Apple Ads sends people to the App Store, not to a website, so no link carries a campaign. With RevenueCat's Apple Search Ads attribution on (one line in the app and a switch in RevenueCat), each person Apple says an ad brought comes from the Apple Ads source, with what they paid.
This works with Apple Ads Basic too, which has no reporting API.
How attribution works →Counts toward your plan
Nothing: costs never count toward your plan. Plans →
What you don't get
No installs or conversions from Apple's attribution and no changes to campaigns: Sumly counts the payments itself, from App Store, RevenueCat or your payment provider.
The details
What is read
- Each campaign's spend, taps and impressions by day, from the campaign reports
- The ad account's name and currency
When
- Every night, the last seven days again, as Apple settles recent days.
- Read now on the Ad spend page, at any time.
- Costs stay in the ad account's currency and turn into euros at the European Central Bank's rate of each day.
- Each campaign and day is one cost, known by Apple's ids: read again it is updated, never added twice, and a line imported from an Apple Ads export for the same campaign and day is replaced.
Good to know
- Not open yet: Sumly is still checking its Apple Ads reading against real accounts. Until then, import Apple Ads exports on Costs or send spend through the costs API.
- Campaigns only, not ad groups or keywords.
- Days are the ad account's own, from midnight in its time zone.
Apple Ads questions
Why an API user and not my own sign-in?
Apple Ads gives other apps no sign-in page, and an account admin cannot add a key. A read-only API user with its own key is how Apple lets a tool read reports. It can be your own address with a plus, so nobody new needs an Apple Account.
Where is the private key?
Sumly makes the key pair and keeps the private half encrypted on its server. You only ever copy the public half, which cannot sign anything.
I imported Apple Ads exports before. Will they double?
No. The day and campaign read from the account replace the imported line for the same campaign and day.
Does the connection run out?
No. It lasts until you disconnect here or remove the API user in Apple Ads.
Other integrations
Try it with your own projects
Sign in with Google or a code by e-mail and connect your first project. The first 14 days of a paid plan are free, with no card.
Start freeOr look around first: open the live demo.