---
title: sourceID
framework: adattributionkit
role: symbol
role_heading: Instance Property
path: adattributionkit/appimpression/sourceid
---

# sourceID

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

## Declaration

```swift
var sourceID: Int { get }
```

## Discussion

Discussion The sourceID is also known as the hierarchical source identifier. Ad networks and developers define its meaning. This integer can have up to four digits. You might receive two, three, or all four digits of the sourceID in the first winning postback, based on the data tier of the postback. You can use the different digits of the source identifier to represent different aspects of your ad, such as campaign information, placement, locale, and so on. For more information about the values you might get in the postback, see Identifying the parameters in a postback. note: A postback report represents this integer as a string in the source-identifier parameter in the payload of the JSON Web Signature (JWS). For more details about the parameters of a postback, see Identifying the parameters in a postback.

## See Also

### Accessing ad impression properties

- [adNetworkID](adattributionkit/appimpression/adnetworkid.md)
- [advertisedItemID](adattributionkit/appimpression/advertiseditemid.md)
- [compactJWSRepresentation](adattributionkit/appimpression/compactjwsrepresentation.md)
- [eligibleForReengagement](adattributionkit/appimpression/eligibleforreengagement.md)
- [id](adattributionkit/appimpression/id.md)
- [keyID](adattributionkit/appimpression/keyid.md)
- [publisherItemID](adattributionkit/appimpression/publisheritemid.md)
- [timestamp](adattributionkit/appimpression/timestamp.md)
