The Tenjin SDK can listen to CAS impression level revenue data and send revenue events to Tenjin. This integration will send revenue related for each ad impression served from CAS. Here are the steps to integrate:
- Add the latest version of CAS SDK to your podfile: https://github.com/cleveradssolutions/CAS-iOS/wiki
Please ensure you have the latest CAS iOS SDK installed. - Also add the Ad Networks, which you will support (e.g. pod ‘CleverAdsSolutions-SDK/GoogleAds’, etc.
- Integrate CAS SDK in your app. You can use the method
(void)casImpressionFromJSON:(NSString *)jsonStringwhere you can send each impression with the fields in the below table.
Here is an example impression level revenue data entry from CAS:
| Parameter | Required? | Example |
| network_name | いいえ | Network |
| ad_unit_id | いいえ | id-69082 |
| creative_id | いいえ | id-41203 |
| 収益 | はい | 2 |
| revenue_precision | いいえ | floor |
| format | いいえ | インタースティシャル広告 |