Skip to main content
Attribution tells you where your players came from: which ad, campaign, or channel caused each install. You select a provider under Playtolia → Data & Diagnostics in Project Settings. The SDK then resolves attribution at startup. You can read the result from C#, or save it to the account of the player.

Providers

The System provider has no iOS equivalent, so GetInstallReferrer() returns null on iOS. The Airbridge provider gives cross-platform attribution.

Enable attribution

Go to Edit → Project Settings → Playtolia → Data & Diagnostics. Open the Attribution section. Then select a provider. The changes take effect with the next build. When you select a provider, the SDK shows its settings:
  • Store as Account Attribute (all providers): read the section below.
  • Airbridge App Name / App Token / Sandbox (Airbridge only): your Airbridge credentials.

Reading attribution in Unity

Both methods return null if attribution is not resolved, or if the provider does not apply to the current platform. InstallReferrerInfo AttributionData

Store as account attribute

If Store as Account Attribute is on (the default), the SDK saves the resolved attribution to the account of the player. It uses the install_referrer key, at the first sign-in of that player. The SDK writes this value one time for each player. Thus later logins do not overwrite the acquisition source. Attribution is then available on the server for segmentation and reporting, even if you never read it in the game.
The SDK can save the attribute only after the player authenticates. If attribution resolves before sign-in, the SDK stores it automatically at the next login.

Using Airbridge

To use the Airbridge provider:
  1. Add the Airbridge SDK to your project (Android: io.airbridge:sdk-android, iOS: the Airbridge pod).
  2. Select Airbridge under Playtolia → Data & Diagnostics. Then enter your App Name and App Token.
  3. Enable Sandbox only during tests.
CAUTION: Make sure that the App Name and the App Token are not empty before you ship. If a field is empty, the SDK skips attribution at runtime.

Promotions

Review prompts and engagement

Push Notifications

Cross-platform notifications