SKAdNetwork Source Identifier
Key takeaways
- The
source-identifieris SKAdNetwork 4's replacement for the old 2-digitcampaign-id: a hierarchical number with up to 4 digits (0–9999). - The postback data tier decides how many digits you get: 2 digits at Tier 0 and 1, and 2–4 digits at Tier 2 and 3.
- The second and third postbacks always carry only 2 digits.
- Put your most important dimension, usually campaign, in the first two digits.
The source identifier (source-identifier) is the number an ad network attaches to a signed ad to say which campaign it came from. It arrived in SKAdNetwork 4, replacing the old campaign-id, which only allowed 100 values (0–99), with a hierarchical identifier of up to four digits, so up to 10,000 values.
How the hierarchy works
The ad network signs every ad with a full four-digit value, for example 5739. Apple then decides how much of it to return, from the right-hand side:
| Digits returned | Example | Typical meaning |
|---|---|---|
| 2 | 39 |
Campaign |
| 3 | 739 |
Campaign + ad group / geo / placement |
| 4 | 5739 |
Campaign + ad group + creative |
Because the two-digit value is always the last two digits, put your most important dimension in the last two digits. That’s the part you’re guaranteed to get. Most networks use those two digits for the campaign, the third digit for a sub-dimension such as geo or placement, and the fourth for creative.
Which tier gets how many digits
Apple calculates the crowd anonymity tier for the 2-, 3- and 4-digit versions of the identifier and picks the one with the highest tier. If several share it, it picks the longest.
| Postback data tier | First postback | Second and third postbacks |
|---|---|---|
| Tier 3 | 2, 3 or 4 digits | 2 digits |
| Tier 2 | 2, 3 or 4 digits | 2 digits |
| Tier 1 | 2 digits | 2 digits |
| Tier 0 | 2 digits | No postback |
Designing your source ID scheme
- Keep campaign in the last two digits so it survives at every tier.
- Don’t over-split. Every extra combination shrinks the crowd behind each value, which pushes conversions into lower tiers and costs you digits and conversion values.
- Keep a mapping table between source IDs and your campaign names. The postback only contains the number.
- Reuse IDs carefully. If you recycle a value for a new campaign, separate the two by date in reporting.
In AdAttributionKit
AdAttributionKit uses the same hierarchical source-identifier with the same tier rules, so an existing scheme carries over unchanged. See AdAttributionKit vs SKAdNetwork.
Frequently asked questions
What is the SKAdNetwork source identifier?
The source-identifier is a hierarchical number of up to four digits that an ad network sets when signing an ad, introduced in SKAdNetwork 4 to replace the two-digit campaign-id. Depending on the crowd anonymity tier, the postback returns its last two, three or four digits.
How many digits of the source identifier will I receive?
Tier 0 and Tier 1 conversions return two digits. Tier 2 and Tier 3 can return two, three or four digits; the system chooses the length with the highest tier, preferring more digits on ties. Second and third postbacks always return two digits.
Does AdAttributionKit use the same source identifier?
Yes. AdAttributionKit uses the same hierarchical 2–4 digit source-identifier and the same tier rules.