<!--
{
  "availability" : [
    "iOS: 26.1.0 -",
    "iPadOS: 26.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "marketplacekit",
  "identifier" : "/documentation/MarketplaceKit/InstallMetadata/init(account:appleItemID:alternativeDistributionPackage:isUpdate:appShareURL:requestAgeException:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MarketplaceKit",
      "UIKit"
    ],
    "preciseIdentifier" : "s:21_MarketplaceKit_UIKit15InstallMetadataV7account11appleItemID30alternativeDistributionPackage8isUpdate11appShareURL19requestAgeExceptionACSS_s6UInt64V10Foundation0Q0VSbANSgSbtcfc"
  },
  "title" : "init(account:appleItemID:alternativeDistributionPackage:isUpdate:appShareURL:requestAgeException:)"
}
-->

# init(account:appleItemID:alternativeDistributionPackage:isUpdate:appShareURL:requestAgeException:)

Initializes an install metadata object with the given app information and exception request indicator.

```
init(account: String, appleItemID: AppleItemID, alternativeDistributionPackage: URL, isUpdate: Bool, appShareURL: URL?, requestAgeException: Bool = false)
```

## Discussion

If the identifier refers to an app that has an age rating beyond the maximum allowed for the device (see [`maximumAllowedAgeRating`](/documentation/MarketplaceKit/AppLibrary/maximumAllowedAgeRating)), pass `true` for the `requestAgeException` argument.

If your app sets the `requestAgeException` argument to `true` when it’s not needed, the framework throws [`MarketplaceKitError.ageRatingExceptionNotNeeded`](/documentation/MarketplaceKit/MarketplaceKitError/ageRatingExceptionNotNeeded). Alternatively, if your app fails to set the `requestAgeException` argument to `true` when it is needed, the framework throws  [`MarketplaceKitError.cancelled`](/documentation/MarketplaceKit/MarketplaceKitError/cancelled).

---

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)