AppsFlyerCrossPromotionHelper

Overview

AppsFlyer allows you to log and attribute installs originating from cross-promotion campaigns of your own apps. This enables marketers to optimize cross-promotion campaigns for better results.

Go back to the SDK reference index.

Interface declaration

@interface AppsFlyerCrossPromotionHelper

To access AppsFlyerCrossPromotionHelper, import AppsFlyerLib.

Methods

logCrossPromoteImpression

Method signature

(void)logCrossPromoteImpression:(id)appID
                         campaign:(id)campaign
                       parameters:(id)parameters;

Description
logs an impression as part of a cross-promotion campaign. Make sure to use the promoted App ID as it appears within the AppsFlyer dashboard.

Input arguments

TypeNameDescription
NSStringappIDPromoted App ID
NSStringcampaignName of cross-promotion campaign
NSDictionaryparametersAdditional parameters to log

Returns
void.

logAndOpenStore

Method signature

(void)logAndOpenStore:(id)appID
               campaign:(id)campaign
             parameters:(id)parameters
              openStore:(void (^)(int *, int *))openStoreBlock;

Description
You can utilize the StoreKit component to open the App Store while remaining in the context of your app. Learn more in attributing cross-promotion impressions.

Input arguments

TypeNameDescription
NSStringappIDPromoted App ID.
NSStringcampaignName of cross-promotion campaign.
NSDictionaryparametersAdditional parameters to log.
void (^)(int *, int *)openStoreBlockContains promoted clickURL.

Returns
void.


Did this page help you?