---
title: SKAdTestPostback
framework: storekittest
role: symbol
role_heading: Class
path: storekittest/skadtestpostback
---

# SKAdTestPostback

A test postback that contains ad conversion information in the testing environment.

## Declaration

```swift
class SKAdTestPostback
```

## Overview

Overview Use this class to create test postbacks to use for unit testing. In the production environment, the system creates a postback after a user installs an advertised app. The advertised app is responsible for registering the installation and may update the conversion value. The system sends the postback after a timer expires. In the testing environment, you can mimic a postback by creating it directly. You control the property values within the postback. Use it to test your app’s ability to register the app installation and update conversion values, and to test your server’s ability to receive postbacks.

## Topics

### Creating test postbacks

- [init(version:adNetworkIdentifier:sourceIdentifier:appStoreItemIdentifier:sourceAppStoreItemIdentifier:sourceDomain:fidelityType:isRedownload:didWin:postbackURL:)](storekittest/skadtestpostback/init(version:adnetworkidentifier:sourceidentifier:appstoreitemidentifier:sourceappstoreitemidentifier:sourcedomain:fidelitytype:isredownload:didwin:postbackurl:).md)
- [winningPostbacks(withVersion:adNetworkIdentifier:sourceIdentifier:appStoreItemIdentifier:sourceAppStoreItemIdentifier:sourceDomain:fidelityType:isRedownload:postbackURL:)](storekittest/skadtestpostback/winningpostbacks(withversion:adnetworkidentifier:sourceidentifier:appstoreitemidentifier:sourceappstoreitemidentifier:sourcedomain:fidelitytype:isredownload:postbackurl:).md)
- [init(version:adNetworkIdentifier:adCampaignIdentifier:appStoreItemIdentifier:sourceAppStoreItemIdentifier:conversionValue:fidelityType:isRedownload:didWin:postbackURL:)](storekittest/skadtestpostback/init(version:adnetworkidentifier:adcampaignidentifier:appstoreitemidentifier:sourceappstoreitemidentifier:conversionvalue:fidelitytype:isredownload:didwin:postbackurl:).md)

### Getting the Postback Destination

- [postbackURL](storekittest/skadtestpostback/postbackurl.md)

### Getting general information

- [version](storekittest/skadtestpostback/version.md)
- [transactionIdentifier](storekittest/skadtestpostback/transactionidentifier.md)
- [postbackSequenceIndex](storekittest/skadtestpostback/postbacksequenceindex.md)
- [isRegistered](storekittest/skadtestpostback/isregistered.md)
- [isRedownload](storekittest/skadtestpostback/isredownload.md)

### Getting advertisement information

- [adNetworkIdentifier](storekittest/skadtestpostback/adnetworkidentifier.md)
- [appStoreItemIdentifier](storekittest/skadtestpostback/appstoreitemidentifier.md)
- [sourceAppStoreItemIdentifier](storekittest/skadtestpostback/sourceappstoreitemidentifier.md)
- [sourceDomain](storekittest/skadtestpostback/sourcedomain.md)
- [sourceIdentifier](storekittest/skadtestpostback/sourceidentifier.md)

### Getting conversion information

- [fidelityType](storekittest/skadtestpostback/fidelitytype.md)
- [fineConversionValue](storekittest/skadtestpostback/fineconversionvalue.md)
- [coarseConversionValue](storekittest/skadtestpostback/coarseconversionvalue.md)
- [didWin](storekittest/skadtestpostback/didwin.md)

### Getting information in earlier versions

- [adCampaignIdentifier](storekittest/skadtestpostback/adcampaignidentifier.md)
- [conversionValue](storekittest/skadtestpostback/conversionvalue.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Ad impression and postback testing

- [Testing and validating ad impression signatures and postbacks for SKAdNetwork](storekittest/testing-and-validating-ad-impression-signatures-and-postbacks-for-skadnetwork.md)
- [SKAdTestSession](storekittest/skadtestsession.md)
- [SKAdTestPostbackResponse](storekittest/skadtestpostbackresponse.md)
- [SKAdTestPostbackVersion](storekittest/skadtestpostbackversion.md)
