<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKAdTestPostbackVersion",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:@T@SKAdTestPostbackVersion"
  },
  "title" : "SKAdTestPostbackVersion"
}
-->

# SKAdTestPostbackVersion

A constant that indicates the postback version.

```
struct SKAdTestPostbackVersion
```

## Overview

This postback version number corresponds to a version of SKAdNetwork. All versions of <doc://com.apple.documentation/documentation/StoreKit/SKAdNetwork> have specific instructions for signing ads and validating postbacks. The testing environment supports testing the versions indicated by the constants listed in the Getting SKAdNetwork Versions section below.

For more information about versions, see <doc://com.apple.documentation/documentation/StoreKit/skadnetwork-release-notes>.

## Topics

### Getting SKAdNetwork Versions

[`static let version4_0: SKAdTestPostbackVersion`](/documentation/StoreKitTest/SKAdTestPostbackVersion/version4_0)

A constant that represents SKAdNetwork version 4.0.

[`static let version3_0: SKAdTestPostbackVersion`](/documentation/StoreKitTest/SKAdTestPostbackVersion/version3_0)

A constant that represents SKAdNetwork version 3.0.

[`static let version2_2: SKAdTestPostbackVersion`](/documentation/StoreKitTest/SKAdTestPostbackVersion/version2_2)

A constant that represents SKAdNetwork version 2.2.

[`static let version2_1: SKAdTestPostbackVersion`](/documentation/StoreKitTest/SKAdTestPostbackVersion/version2_1)

A constant that represents SKAdNetwork version 2.1.

### Initializing the Postback Version

[`init(rawValue: String)`](/documentation/StoreKitTest/SKAdTestPostbackVersion/init(rawValue:))

Initialize a version object with the supplied raw value.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)