Wiki

Clone wiki

AATKit iOS / AATKit2 / Statistics Delegate

Statistics Delegate

Index:

  1. Project Setup
  2. AATKit Initialisation
  3. Banner Integration
  4. Fullscreen Integration
  5. APP Open Integration
  6. Native Ads Integration
  7. Native Ads Integration - special ad network characteristics
  8. Promo Screen
  9. Sample
  10. Disable App Transport Security (ATS)
  11. Advanced Features
  12. Targeting
  13. Rewarded Video
  14. Frequency Capping
  15. Header documentation
  16. Important Remarks
  17. AATKit's Size within your app
  18. What is an AdSpace?
  19. Network-specific Information
  20. Statistics Delegate
  21. Reports Delegate
  22. Listen to impression level information
  23. 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;
all of the above methods are optional so you can implement any method you want to get notified with the corresponding event.

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