<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKAdTestError/invalidCampaignId",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "s:SC17SKAdTestErrorCodeLeV17invalidCampaignIdSoAAVvpZ"
  },
  "title" : "invalidCampaignId"
}
-->

# invalidCampaignId

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

```
static var invalidCampaignId: SKAdTestError.Code { get }
```

## Discussion

A campaign ID is an integer that is greater than or equal to one and less than or equal to one hundred.

---

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)