Receive and verify an install validation message to confirm an ad conversion.
When a user installs and launches an app as a result of your ad, you receive a postback request that validates the installation. The request is sent to the ad network URL you provided in registration.
The following JSON shows an example of an install validation postback request:
The parameters are:
Your ad network identifier.
A unique value for this validation; useful for deduplicating install validation messages.
The campaign ID you provided when displaying the ad.
The item identifier of the advertised product.
Verify the Ad Conversion Message
To verify that the request is from Apple, verify Apple's signature as follows:
Create a UTF-8 string by combining the parameter values in the following order, with an invisible separator (
'\u2063') between them: ad network ID, campaign ID, app ID, transaction ID.
Decode Apple's public key, which Apple provides as a Base64-encoded string. The result is a byte array.
Create an X.509 standard public key from the byte array.
Using Apple's public key, verify Apple's signed value from the
attribution-signatureparameter against the UTF-8 string you created in step 1.
An example of the UTF-8 string is: