StoreKit-Rendered Ad and View-Through Ad Simultaneously ?

https://developer.apple.com/documentation/storekit/skadnetwork/signing_and_providing_ads

You can provide ads using either or both ad presentation options in the same app.

According to the documentation, we can provide both View-Through Ad and StoreKit-Rendered Ad in the same app. However, I am wondering if we can do that in the same ad ?

  1. On the ad network's server,

    • Generating the Signature to Validate View-Through Ads. (View-Through Ad)

    • Generating the Signature to Validate StoreKit-Rendered Ads. (StoreKit-Rendered Ad)

  2. Present the ad

  3. Create an SKAdImpression instance and set its properties to represent the ad impression. (View-Through Ad)

  4. Call startImpression(_:completionHandler:) (View-Through Ad)

  5. ad click

  6. Call endImpression(_:completionHandler:) (View-Through Ad)

  7. Set Ad Network Install Validation Keys with values that represent the ad impression. (StoreKit-Rendered Ad)

  8. Call loadProduct(withParameters:completionBlock:) (StoreKit-Rendered Ad)

  9. Present SKStoreProductViewController

By doing this, even when ad click (step 5) doesn't happen we can receive view-through ad attribution if the user installs the app in the future.

However, if we had reach step 9 (user watch the ad more than 3 seconds and click it)
  1. Would both StoreKit-Rendered and View-Through attribution stored as ad impression and eventually postback to ad server if the user installs the app.

  2. Is this prohibited by apple

@yw21
did you mean passing the same parameters to SKAdImpression and StoreKit controller including signature?
If you pass signature created with “fidelity-type” 0 - most probably it won’t work for StoreKit controller, but StoreKit will record impression and view-through attribution postback may arrive.
If you pass all the same parameters except of 2 different signatures: 1) with “fidelity-type” 0 to SKAdImpression and 2) with “fidelity-type” 1 to StoreKit controller - click attribution have higher priority over view-through attribution (according to Apple’s doc). So postback from click attribution should be sent, I assume.
Does it make sense?

1) Did someone performed tests already to confirm?
2) Is it ok to pass the same parameters to SKAdImpression and StoreKit controller except of signature?
3) Can / should “nonce” and “timestamp” be different?

Thanks in advance!

We are thinking the case of passing 2 different signatures
  • fidelity-type 0 for View-Through

  • fidelity-type 1 for StoreKit-Rendered


So postback from click attribution should be sent, I assume.
Does it make sense

It does. However, the documentation didn't mention the use case for both simultaneously so we are wondering if anyone did this test.
StoreKit-Rendered Ad and View-Through Ad Simultaneously ?
 
 
Q