---
title: "init(account:appleItemID:alternativeDistributionPackage:isUpdate:appShareURL:requestAgeException:)"
framework: marketplacekit
role: symbol
role_heading: Initializer
path: "marketplacekit/installmetadata/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.

## Declaration

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

## Mentioned in

Providing age-rating appropriate content

## Discussion

Discussion If the identifier refers to an app that has an age rating beyond the maximum allowed for the device (see 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. Alternatively, if your app fails to set the requestAgeException argument to true when it is needed, the framework throws  MarketplaceKitError.cancelled.

## See Also

### Initializing an install metadata instance

- [init(account:appleItemID:alternativeDistributionPackage:isUpdate:)](marketplacekit/installmetadata/init(account:appleitemid:alternativedistributionpackage:isupdate:).md)
