SKAdImpression
A class that defines an ad impression for a view-through ad.
Declaration
class SKAdImpressionMentioned in
Overview
Create a SKAdImpression instance when you’re preparing to present a view-through ad. In the instance, you set:
Values known to you, including your ad network ID, the App Store IDs of the source app and the advertised app, and the version.
A value you determine – the campaign ID.
Values you generate, including the timestamp, a nonce (ad-impression identifier), and the cryptographic signature.
For information about generating the cryptographic signature, see Generating the signature to validate view-through ads.
Use your SKAdImpression instance when you call startImpression(_:completionHandler:) to begin presenting your view-through ad. Use the same instance when you call endImpression(_:completionHandler:) to end the ad presentation.
Topics
Providing a signature
Creating a signature
init(sourceAppStoreItemIdentifier:advertisedAppStoreItemIdentifier:adNetworkIdentifier:adCampaignIdentifier:adImpressionIdentifier:timestamp:signature:version:)versionadNetworkIdentifiersourceIdentifieradCampaignIdentifieradvertisedAppStoreItemIdentifieradImpressionIdentifiersourceAppStoreItemIdentifiertimestamp