Impression Level Data
CAS.AI enables you to access detailed information for each impression through the impressions callback APIs. The information includes, for example, which demand source served the ad, the expected or exact revenue associated with it. In addition, it contains granular details to allow you to analyze and, ultimately, optimize user acquisition strategies.
Ad Impression
FCASImpressionInfo
is an struct for getting detailed information about the current ad impression, such as revenue and ad creative details.
UCASMobileAds::OnAdsImpression.AddLambda([=](const FCASImpressionInfo& info){
// Get ad details using info parameter
});

Ad creative
You can also retrieve information about the current ad (such as its mediated network and creative ID), and you will be able to report creative issues for that ad to our Ad review team.
FString PlacementType = info.PlacementType;
FString CreativeId = info.CreativeID;
FString NetworkName = info.Network;
FString NetworkUnitId = info.UnitID;
User ad summary
CAS count the number of ad impressions and the total revenue of all formats at the time of a new impression.
int totalImpressions = info.TotalImpressions;
float totalRevenue = info.LifetimeRevenue;
Progress is saved between sessions until the user clears your app's data.
Automatic collect ad revenue
The CAS SDK have features to automatically collect ad revenue to Google Analytics and Tenjin Analytics. Contact your account manager for details of enabling automatic events.
Google Analytics
If you haven't already, make sure to complete the following tasks:
- Set up your project and app as described in Get Started with Analytics.
- Make sure that you've linked your Firebase project to a Google Analytics account.
- Ensure that you've included in your app the CAS SDK 3.5.0+.
To measure ad revenue, CAS SDK log ad_impression
events whenever your user sees an advertisement in your app. These events contain details such as the ad platform, source, currency, and value. Optionally, the alternative event name can be CAS_Impression
.
Tenjin
If you haven't already, make sure to complete the following tasks:
- Set up your project and app as described in Get Started with Analytics.
- Make sure that you've initialize tenjin session.
- Ensure that you've included in your app the CAS SDK 3.7.2+.