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

# SKAdTestError.Code.misplacedWinnerPostback

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

```
case misplacedWinnerPostback
```

## Discussion

Check that the first postback in the `postbacks` array you provide to [`setPostbacks(_:)`](/documentation/StoreKitTest/SKAdTestSession/setPostbacks(_:)) is marked as a winning postback, with `didWin` set to `true`. Check that the winning postback is in no other position in the array.

---

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)