Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
uerceg committed Jun 26, 2019
1 parent 3974c73 commit d4f1678
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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`.
### <a id="af-ad-revenue"></a>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).

### <a id="event-session-callbacks"></a>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.
Expand Down

0 comments on commit d4f1678

Please sign in to comment.