Product Dictionary Keys

Keys for identifying products and the tokens for affiliates and campaigns.

Overview

These dictionary keys are used in the parameter for the loadProduct(withParameters:completionBlock:) method.

The SKStoreProductParameterITunesItemIdentifier key represents the product to display, and is always required. Other keys provide optional affiliate or promoted product information.

Learn more about the Affiliate Program at https://apple.com/itunes/affiliates.

Topics

Required Key

let SKStoreProductParameterITunesItemIdentifier: String

The key representing the iTunes identifier for the item you want the store to display when the view controller is presented.

Affiliate and Analytics Keys

let SKStoreProductParameterProductIdentifier: String

The key representing the product identifier for the promoted product you want the store to display at the top of the page.

let SKStoreProductParameterAdvertisingPartnerToken: String

The key representing the advertising partner you wish to use for any purchase made through the view controller.

let SKStoreProductParameterAffiliateToken: String

The key representing the affiliate identifier you wish to use for any purchase made through the view controller.

let SKStoreProductParameterCampaignToken: String

The key representing an App Analytics campaign.

let SKStoreProductParameterProviderToken: String

The key representing the provider token for the developer that created the app specified by the SKStoreProductParameterITunesItemIdentifier key.

See Also

Loading a New Product Screen

Offering Media for Sale in Your App

Allow users to purchase media in the App Store from within your app.