Forward Ad Impressions
Our SDK can forward ad impression data to the justtrack platform so you can track your app's ad revenue.
We can automatically forward impressions for the following popular ad networks:
IronSource
Adjoe
Unity
Applovin
Adcolony
Chartboost
For IronSource, refer to our setup guide for combining our SDK with the IronSource SDK first.
However, if your ad network isn't in this list, you can manually forward impression data using .ForwardAdImpression()
:
This method accepts an AdImpression
whose parameters are:
adFormat: The format of the ad.
adSdkName: The name of the SDK which provided the event, for example "ironsource" or "admob".
The SDK name must be lowercase. So, for example, you would use "ironsource", not "Ironsource".
Additionally, you can use the following methods to set more dimensions:
Method | Argument | Acceptable values |
---|---|---|
| The name of the ad network that provided the ad. | String value or null. |
| The placement of the ad. | String value or null. |
| The test group of the user, if you are A/B testing. | String value or null. |
| The name of the segment of the ad. | String value or null. |
| The name of the instance of the ad. | String value or null. |
| The app's bundleId. | String value or null. |
| The amount of revenue this ad generated. | Money object with a non-negative amount. The currency must be a three-letter uppercase ISO 4217 string. |
Upon success, .forwardAdImpression()
returns true. If a parameter is invalid, false is returned.
Last updated