Brajmohan Papneja
Brajmohan Papneja

Reputation: 379

How to find SKStoreProductParameterCampaignToken and SKStoreProductParameterAffiliateToken of specific iTunes App?

this is code, i am using

SKStoreProductViewController *storeProductViewController = [[SKStoreProductViewControlleralloc] init];
// Configure View Controller
[storeProductViewController setDelegate:self];
NSDictionary *parameters;
parameters = @{SKStoreProductParameterITunesItemIdentifier:kPlaylistID, SKStoreProductParameterAffiliateToken:kAffiliateID, 
SKStoreProductParameterCampaignToken:kCampaignID};

Upvotes: 3

Views: 1373

Answers (1)

DenVog
DenVog

Reputation: 4286

The keys you reference are part of StoreKit. The affiliate and campaign tokens you reference are SKStoreProductParameter that became available with iOS 8.

In order to get those two tokens, you need to join the iTunes App Store Affiliate Program.

  • SKStoreProductParameterAffiliateToken: This is auto generated for you by the program. It will appear top right of screen once you're logged in.
  • SKStoreProductParameterCampaignToken: This is optional and user defined. You can add this in the iTunes Link Maker tool. There is a popup you can display by clicking Add Campaign Token, after you've selected a product to link to.

enter image description here

Both of these tokens should be represented as NSString.

Note that the current iTunes App Store Affiliate Program is different than the LinkShare program of a few years ago.

Upvotes: 3

Related Questions