<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKAdTestError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:@E@SKAdTestErrorCode"
  },
  "title" : "SKAdTestError.Code"
}
-->

# SKAdTestError.Code

Enumerated error codes related to ad network testing in the testing environment.

```
enum Code
```

## Topics

### Signature Errors

[`case missingSignature`](/documentation/StoreKitTest/SKAdTestError/Code/missingSignature)

The signature for the ad is missing, in the testing environment.

[`case signatureInvalidKey`](/documentation/StoreKitTest/SKAdTestError/Code/signatureInvalidKey)

The public key isn’t a valid cryptographic key, in the testing environment.

[`case signatureInvalidOrder`](/documentation/StoreKitTest/SKAdTestError/Code/signatureInvalidOrder)

The order of the parameters in the signature is invalid, in the testing environment.

[`case signatureMissingAdNetworkId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingAdNetworkId)

The signature is missing an ad network identifier, in the testing environment.

[`case signatureMissingAppAdamId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingAppAdamId)

The signature is missing the app item identifier for the advertised app, in the testing environment.

[`case signatureMissingFidelityType`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingFidelityType)

The signature is missing the fidelity type, in the testing environment.

[`case signatureMissingNonce`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingNonce)

The signature is missing the nonce, in the testing environment.

[`case signatureMissingSourceAppAdamId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingSourceAppAdamId)

The signature is missing the source app item identifier, in the testing environment.

[`case signatureMissingSourceDomain`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingSourceDomain)

The signature is missing the source domain, in the testing environment.

[`case signatureMissingSourceIdentifier`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingSourceIdentifier)

The signature is missing the source identifier, in the testing environment.

[`case signatureMissingTimestamp`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingTimestamp)

The signature is missing a timestamp, in the testing environment.

[`case signatureUnknownError`](/documentation/StoreKitTest/SKAdTestError/Code/signatureUnknownError)

An unknown error occurred with the signature in the testing environment.

[`case signatureVerificationFailed`](/documentation/StoreKitTest/SKAdTestError/Code/signatureVerificationFailed)

The signature verification failed in the testing environment.

[`case missingSignature`](/documentation/StoreKitTest/SKAdTestError/Code/missingSignature)

The signature for the ad is missing, in the testing environment.

[`case signatureInvalidKey`](/documentation/StoreKitTest/SKAdTestError/Code/signatureInvalidKey)

The public key isn’t a valid cryptographic key, in the testing environment.

[`case signatureInvalidOrder`](/documentation/StoreKitTest/SKAdTestError/Code/signatureInvalidOrder)

The order of the parameters in the signature is invalid, in the testing environment.

[`case signatureMissingAdNetworkId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingAdNetworkId)

The signature is missing an ad network identifier, in the testing environment.

[`case signatureMissingAppAdamId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingAppAdamId)

The signature is missing the app item identifier for the advertised app, in the testing environment.

[`case signatureMissingFidelityType`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingFidelityType)

The signature is missing the fidelity type, in the testing environment.

[`case signatureMissingNonce`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingNonce)

The signature is missing the nonce, in the testing environment.

[`case signatureMissingSourceAppAdamId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingSourceAppAdamId)

The signature is missing the source app item identifier, in the testing environment.

[`case signatureMissingSourceDomain`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingSourceDomain)

The signature is missing the source domain, in the testing environment.

[`case signatureMissingSourceIdentifier`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingSourceIdentifier)

The signature is missing the source identifier, in the testing environment.

[`case signatureMissingTimestamp`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingTimestamp)

The signature is missing a timestamp, in the testing environment.

[`case signatureUnknownError`](/documentation/StoreKitTest/SKAdTestError/Code/signatureUnknownError)

An unknown error occurred with the signature in the testing environment.

[`case signatureVerificationFailed`](/documentation/StoreKitTest/SKAdTestError/Code/signatureVerificationFailed)

The signature verification failed in the testing environment.

### Postback Errors

[`case excessivePostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/excessivePostbacks)

Too many postbacks submitted to the test session.

[`case invalidConversionValue`](/documentation/StoreKitTest/SKAdTestError/Code/invalidConversionValue)

The conversion value isn’t valid, in the testing environment.

[`case invalidPostbackURL`](/documentation/StoreKitTest/SKAdTestError/Code/invalidPostbackURL)

The URL for the postback isn’t valid, in the testing environment.

[`case invalidRunnerUpPostback`](/documentation/StoreKitTest/SKAdTestError/Code/invalidRunnerUpPostback)

A non-winning postback is defined with a version prior to version 3, in the testing environment.

[`case invalidWinningPostbackCount`](/documentation/StoreKitTest/SKAdTestError/Code/invalidWinningPostbackCount)

The number of winning postbacks isn’t valid, in the testing environment.

[`case malformedPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/malformedPostbacks)

The postback in the testing environment is malformed.

[`case missingPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/missingPostbacks)

The testing environment doesn’t have any postbacks.

[`case misplacedWinnerPostback`](/documentation/StoreKitTest/SKAdTestError/Code/misplacedWinnerPostback)

A winning postback wasn’t found in the first position, in the testing environment.

[`case missingWinningPostback`](/documentation/StoreKitTest/SKAdTestError/Code/missingWinningPostback)

The testing environment is missing a winning postback.

[`case noPendingPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/noPendingPostbacks)

The test session doesn’t have any pending postbacks to send.

[`case unlinkedWinningPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/unlinkedWinningPostbacks)

The postbacks aren’t correctly related to one another.

[`case excessivePostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/excessivePostbacks)

Too many postbacks submitted to the test session.

[`case invalidConversionValue`](/documentation/StoreKitTest/SKAdTestError/Code/invalidConversionValue)

The conversion value isn’t valid, in the testing environment.

[`case invalidPostbackURL`](/documentation/StoreKitTest/SKAdTestError/Code/invalidPostbackURL)

The URL for the postback isn’t valid, in the testing environment.

[`case invalidRunnerUpPostback`](/documentation/StoreKitTest/SKAdTestError/Code/invalidRunnerUpPostback)

A non-winning postback is defined with a version prior to version 3, in the testing environment.

[`case invalidWinningPostbackCount`](/documentation/StoreKitTest/SKAdTestError/Code/invalidWinningPostbackCount)

The number of winning postbacks isn’t valid, in the testing environment.

[`case malformedPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/malformedPostbacks)

The postback in the testing environment is malformed.

[`case missingPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/missingPostbacks)

The testing environment doesn’t have any postbacks.

[`case misplacedWinnerPostback`](/documentation/StoreKitTest/SKAdTestError/Code/misplacedWinnerPostback)

A winning postback wasn’t found in the first position, in the testing environment.

[`case missingWinningPostback`](/documentation/StoreKitTest/SKAdTestError/Code/missingWinningPostback)

The testing environment is missing a winning postback.

[`case noPendingPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/noPendingPostbacks)

The test session doesn’t have any pending postbacks to send.

[`case unlinkedWinningPostbacks`](/documentation/StoreKitTest/SKAdTestError/Code/unlinkedWinningPostbacks)

The postbacks aren’t correctly related to one another.

### Other Errors

[`case invalidVersion`](/documentation/StoreKitTest/SKAdTestError/Code/invalidVersion)

A postback contains an incorrect version number.

[`case invalidImpressionId`](/documentation/StoreKitTest/SKAdTestError/Code/invalidImpressionId)

The impression ID isn’t a valid UUID string.

[`case invalidSourceAppAdamId`](/documentation/StoreKitTest/SKAdTestError/Code/invalidSourceAppAdamId)

The app ID is less than zero.

[`case invalidSourceDomain`](/documentation/StoreKitTest/SKAdTestError/Code/invalidSourceDomain)

The source domain isn’t in the correct format.

[`case invalidSourceIdentifier`](/documentation/StoreKitTest/SKAdTestError/Code/invalidSourceIdentifier)

The postback’s identifier isn’t two, three, or four digits.

[`case unknownError`](/documentation/StoreKitTest/SKAdTestError/Code/unknownError)

An unknown error occurred in the testing environment.

[`case invalidVersion`](/documentation/StoreKitTest/SKAdTestError/Code/invalidVersion)

A postback contains an incorrect version number.

[`case invalidImpressionId`](/documentation/StoreKitTest/SKAdTestError/Code/invalidImpressionId)

The impression ID isn’t a valid UUID string.

[`case invalidSourceAppAdamId`](/documentation/StoreKitTest/SKAdTestError/Code/invalidSourceAppAdamId)

The app ID is less than zero.

[`case invalidSourceDomain`](/documentation/StoreKitTest/SKAdTestError/Code/invalidSourceDomain)

The source domain isn’t in the correct format.

[`case invalidSourceIdentifier`](/documentation/StoreKitTest/SKAdTestError/Code/invalidSourceIdentifier)

The postback’s identifier isn’t two, three, or four digits.

[`case unknownError`](/documentation/StoreKitTest/SKAdTestError/Code/unknownError)

An unknown error occurred in the testing environment.

### Older Errors

[`case invalidCampaignId`](/documentation/StoreKitTest/SKAdTestError/Code/invalidCampaignId)

The campaign ID isn’t an integer between one and one hundred.

[`case signatureMissingCampaignId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingCampaignId)

The signature is missing the campaign identifier, in the testing environment.

[`case conflictingSource`](/documentation/StoreKitTest/SKAdTestError/Code/conflictingSource)

This error code is unused.

[`case invalidCampaignId`](/documentation/StoreKitTest/SKAdTestError/Code/invalidCampaignId)

The campaign ID isn’t an integer between one and one hundred.

[`case signatureMissingCampaignId`](/documentation/StoreKitTest/SKAdTestError/Code/signatureMissingCampaignId)

The signature is missing the campaign identifier, in the testing environment.

[`case conflictingSource`](/documentation/StoreKitTest/SKAdTestError/Code/conflictingSource)

This error code is unused.

### Initializers

[`init?(rawValue: Int)`](/documentation/StoreKitTest/SKAdTestError/Code/init(rawValue:))

## Relationships

### Conforms To

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

[`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)