From d4f16789b02e30346a92a8eb6b0b78ff0de3d1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uglje=C5=A1a=20Erceg?= Date: Wed, 15 May 2019 11:32:42 +0200 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 881906b67..2a305bafd 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Read this in other languages: [English][en-readme], [中文][zh-readme], [日本 * [Session partner parameters](#session-partner-parameters) * [Delay start](#delay-start) * [Attribution callback](#attribution-callback) + * [Ad revenue tracking](#af-ad-revenue) * [Event and session callbacks](#event-session-callbacks) * [Disable tracking](#disable-tracking) * [Offline mode](#offline-mode) @@ -499,6 +500,23 @@ The delegate function will be called after the SDK receives the final attributio If any value is unavailable, it will default to `nil`. +### Ad revenue tracking + +You can track ad revenue information with Adjust SDK by ivoking following method: + +```objc +[Adjust trackAdRevenue:source payload:payload]; +``` + +Parameters of the method which you need to pass are: + +- `source` - `NSString` parameter which indicates the source of ad revenue info. +- `payload` - `NSData` object which contains ad revenue JSON. + +Currently supported ad revenue sources: + + - MoPub (use `ADJAdRevenueSourceMopub` constant as `source` parameter value). + ### Event and session callbacks You can register a delegate callback to be notified of successful and failed tracked events and/or sessions. The same optional protocol `AdjustDelegate` used for the [attribution callback](#attribution-callback) is used.