Ad attribution

From rshankras/claude-code-apple-skills · View interactive version

Ad attribution is an AI agent skill from the GitHub repository rshankras/claude-code-apple-skills. Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution, conversion-value strategy under crowd anonymity, and end-to-end postback testing. Use when running paid acquisition beyond Apple Ads, measuring re-engagement campaigns, designin

How to use this skill

Skill file

Ad Attribution (AdAttributionKit)

You can't optimize paid traffic you can't measure. AdAttributionKit is Apple's

privacy-preserving attribution framework — interoperable with SKAdNetwork, and the go-forward

path (it also works in alternative marketplaces). This skill covers the advertised-app side:

what an indie running paid campaigns must implement and how to design conversion signals that

survive privacy thresholds.

Note the seam: Apple Ads attribution uses the AdServices framework, not AdAttributionKit —

campaigns there are measured in the Apple Ads console (see app-store/apple-search-ads). This

skill is for every other paid channel (ad networks, social, publishers).

When This Skill Activates

How it works (the 60-second model)

Ad network signs an ad (compact JWS impression) → publisher app shows it → user installs (or

re-engages) → after a privacy-delayed measurement window, a postback with your conversion

info goes to the ad network (and optionally to you). Attribution requires no user tracking;

the price is coarser data, governed by crowd anonymity.

Conversion-value strategy (the part that's actually yours)

downgrade fine → coarse and can trim the 4-digit campaign source-identifier to as few as

its first 2 digits — so encode what matters most (campaign family, geo tier) in the

first two digits, detail in the rest.

purchase), not vanity events. 64 slots go fast; reserve ranges (e.g. 0–15 activation,

16–47 monetization ladder, 48–63 reserved).

is final to schedule transmission (still privacy-delayed, never instant).

conversionTypes (.install / .reengagement); the **first re-engagement update must land

within 48 hours**.

tag from the re-engagement URL's query items, store it, and pass it in PostbackUpdate —

without a tag, updates hit only the most recent conversion.

Publisher-side mechanics (if your app also *shows* ads)

within 15 minutes of creating the impression.

count; one open view-through per network per advertised app.

present, click on tap.

Attribution windows & cooldowns (iOS 18.4+ configurability)

(AdAttributionKitConfigurations → AttributionWindows); you can ignore "view" or "click"

(not both) per network.

re-engagement tap minutes after an install isn't double-attributed.

crowd-anonymity tier — a bonus signal when volume allows, never guaranteed.

EligibleForAdAttributionKitOverlappingConversions = YES in Info.plist.

Testing — never ship blind

randomization, shortens all conversion windows, sends postbacks on demand — full end-to-end

rehearsal in minutes instead of days.

with a different key (kid), the network ID is always development.adattributionkit, and

the advertised item ID may be 0 from Xcode.

a live campaign burns budget on unmeasurable installs.

Checklist

attribution tells you which ad, App Analytics tells you what they did after

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.