<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: 16.1.0 -",
    "tvOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKStoreProductParameterAdNetworkSourceIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:@SKStoreProductParameterAdNetworkSourceIdentifier"
  },
  "title" : "SKStoreProductParameterAdNetworkSourceIdentifier"
}
-->

# SKStoreProductParameterAdNetworkSourceIdentifier

A four-digit integer that ad networks define to represent the ad campaign.

```
let SKStoreProductParameterAdNetworkSourceIdentifier: String
```

## Discussion

This key is available for ad impressions that use SKAdNetwork 4 and later. The [`SKStoreProductParameterAdNetworkSourceIdentifier`](/documentation/StoreKit/SKStoreProductParameterAdNetworkSourceIdentifier), also known as the *hierarchical source identifier*, replaces and extends the campaign identifier value, [`SKStoreProductParameterAdNetworkCampaignIdentifier`](/documentation/StoreKit/SKStoreProductParameterAdNetworkCampaignIdentifier).

Ad networks and developers define the meaning of the hierarchical source identifier. This string represents an integer of up to four digits. You can encode information about your advertisement in each set of digits; you may receive two, three, or all four digits of the [`sourceIdentifier`](/documentation/StoreKit/SKAdImpression/sourceIdentifier) in the first winning postback, depending on the ad impression’s postback data tier. For more information about the value you may get in the postback, see [Receiving postbacks in multiple conversion windows](/documentation/StoreKit/receiving-postbacks-in-multiple-conversion-windows).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)