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
<aside> 💡
Please ensure you have the latest CAS iOS SDK installed.
</aside>
- Also add the 广告网络, which you will support (e.g. pod ‘CleverAdsSolutions-SDK/GoogleAds’, etc.)
- Make sure to initialize Tenjin on your AppDelegate:
[TenjinSDK initialize:"<SDK_KEY>"];[TenjinSDK connect]; - 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 | 没有 | 插播广告 |