Skip to content

Commit

Permalink
Docs - Add note about mediation partner
Browse files Browse the repository at this point in the history
  • Loading branch information
liaz-af committed Apr 21, 2024
1 parent 725845c commit bfd3159
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/ad_revenue_unity_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ hidden: false

## Overview

**Ad revenue reporting options**
### Ad revenue reporting options

Ad revenue is reported to AppsFlyer by either aggregate granularity (via API) or impression-level granularity (via SDK). Impression-level data via SDK has better data freshness and earlier availability in AppsFlyer.

**SDK principles of operation**
### SDK principles of operation

The ad revenue SDK connector sends impression revenue data to the AppsFlyer SDK. An ad revenue event, `af_ad_revenue`, is generated and sent to the platform. These impression events are collected and processed in AppsFlyer, and the revenue is attributed to the original UA source.

> 📘 **Note**
>
> The marketer also needs to configure the integration for each mediation partner in AppsFlyer, either impression-level (via SDK) or impression-level (via SDK) with device-level (via S2S API). [Learn more](https://support.appsflyer.com/hc/en-us/articles/217490046#connect-to-ad-revenue-integrated-partners)
## Install the connector

**Prerequisite:** Before installing the connector [update your SDK](https://dev.appsflyer.com/hc/docs/sdk-installation) and the [AppsFlyer Unity plugin](https://dev.appsflyer.com/hc/docs/installation) to their latest versions.
Expand Down Expand Up @@ -76,7 +80,6 @@ using AppsFlyerSDK;

### `setIsDebug`


`public static void setIsDebug(bool isDebug)`

Set to true to view debug logs. (development only!)
Expand All @@ -94,10 +97,8 @@ Set to true to view debug logs. (development only!)
**Note:** This API will only set the debug logs for iOS. For Android the debug logs are controlled by the native SDK.
To turn on the debug logs on Android call `AppsFlyer.setIsDebug(true);`


### `logAdRevenue`


`public static void logAdRevenue(string monetizationNetwork, AppsFlyerAdRevenueMediationNetworkType mediationNetwork, double eventRevenue, string revenueCurrency, Dictionary<string, string> additionalParameters)`

Send ad revenue data from the impression payload to AppsFlyer regardless of the mediation network you use.
Expand Down

0 comments on commit bfd3159

Please sign in to comment.