Wiki
Clone wikiAATKit iOS / AATKit2 / Statistics Delegate
Statistics Delegate
Index:
- Project Setup
- AATKit Initialisation
- Banner Integration
- Fullscreen Integration
- APP Open Integration
- Native Ads Integration
- Native Ads Integration - special ad network characteristics
- Promo Screen
- Sample
- Disable App Transport Security (ATS)
- Advanced Features
- Targeting
- Rewarded Video
- Frequency Capping
- Header documentation
- Important Remarks
- AATKit's Size within your app
- What is an AdSpace?
- Network-specific Information
- Statistics Delegate
- Reports Delegate
- Listen to impression level information
- AATKit AdMob custom events adapter (>= 2.77.x)
AATKitStatisticsDelegate
AATKitStatisticsDelegate notifies you of all placements reporting events:
/** Will notify the AATKitStatisticsDelegate with every ad space counting event */ - (void)AATKitCountedAdSpace; /** Will notify the AATKitStatisticsDelegate with every ad request event @param network the Ad Network that performed the reported request */ - (void)AATKitCountedRequestForNetwork:(AATKitAdNetwork)network; /** Will notify the AATKitStatisticsDelegate with every ad response event @param network the Ad Network that returned the reported response */ - (void)AATKitCountedResponseForNetwork:(AATKitAdNetwork)network; /** Will notify the AATKitStatisticsDelegate with every impression counting event @param network the Ad Network that returned the adv for this impression */ - (void)AATKitCountedImpressionForNetwork:(AATKitAdNetwork)network; /** Will notify the AATKitStatisticsDelegate with every viewable impression counting event @param network the Ad Network that returned the adv for this viewable impression */ - (void)AATKitCountedVImpressionForNetwork:(AATKitAdNetwork)network; /** Will notify the AATKitStatisticsDelegate with every click event @param network the Ad Network that returned the adv for this click */ - (void)AATKitCountedClickForNetwork:(AATKitAdNetwork)network;
Usage:
you need to implement AATKitStatisticsDelegate
and pass it to AATKit while initializing your placements:
Swift:
AATKit.createPlacement(withName: "placement", andType: .fullscreen, andStatisticsDelegate: self)
Objective-C:
[AATKit createPlacementWithName:@"placement" andType:AATKitFullscreen andStatisticsDelegate:self];
Updating statistics delegate instance
You can pass a new statistics delegate instance to the placement by using the following method in AATKitPlacement:
- (void)updateStatisticsDelegate:(nonnull NSObject <AATKitStatisticsDelegate> *)statisticsDelegate;
back (Home)
Updated