Objective-C Client Reference
Class PIOAdTrack
Language: Objective-C
The Player.IO AdTrack service.
To use the AdTrack service successfully, you need to do the following:
Implement PlayLinks by completing the necessary setup in the Control Panel, and adding your custom url scheme to the "URL Types" of your app or your app's Info.plist file.
Call the "- startWithUrl:gameId:playerInsightSegments:options:" method from within your UIAppDelegate's "- application:didFinishLaunchingWithOptions:"
Call the "- startWithLaunchOptions:gameId:playerInsightSegments:options:"; method from within your your UIAppDelegate's "- application:openURL:sourceApplication:annotation:"
Track the payments made from within your app by calling "- trackExternalPaymentWithCurrency:amount:"
Methods | |||
---|---|---|---|
- (InstallSourceType) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
installSource
Returns a value indicating the campaign from which this app was installed from. The possible values are: kYGN_INSTALL_SOURCE_UNDETERMINED, kYGN_INSTALL_SOURCE_YAHOO, and kYGN_INSTALL_SOURCE_UNKNOWN
Return Value
InstallSourceType | |
startWithLaunchOptions:gameId:playerInsightSegments:options:
Starts the AdTrack service. Should be called from within the "- application:didFinishLaunchingWithOptions:" method.
Arguments
NSDictionary* | launchOptions |
NSString* | gameId |
NSArray* | segments |
NSDictionary* | options |
startWithUrl:gameId:playerInsightSegments:options:
Starts the AdTrack service. This method should be called from within the "- application:openURL:sourceApplication:annotation:" method.
Arguments
NSURL* | url |
NSString* | gameId |
NSArray* | segments |
NSDictionary* | options |
trackExternalPaymentWithCurrency:amount:
Track a completed payment in AdTrack from an external non-PayVault payment method.
Arguments
NSString* | currency |
int | amount |