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():

JustTrackSDK.ForwardAdImpression(
    new AdImpression("format","sdk_name")
        .setNetwork("network")
        .setPlacement("placement")
        .setTestGroup("test_group")
        .setSegmentName("segment_name")
        .setInstanceName("instance_name")
        .setBundleId("bundle_id")
        .setRevenue(new Money(10.0,"USD")
);

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:

Upon success, .forwardAdImpression() returns true. If a parameter is invalid, false is returned.

Last updated