Wiki

Clone wiki

AATKit iOS / AATKit / Statistics Delegate

Statistics Delegate

Index:

  1. Project Setup
  2. AATKit Initialisation
  3. Banner Integration
  4. Fullscreen Integration
  5. Rewarded Video
  6. APP Open Integration
  7. Native Ads Integration
  8. Native Ads Integration - special ad network characteristics
  9. Disable App Transport Security (ATS)
  10. Advanced Features
  11. Targeting
  12. Frequency Capping
  13. Important Remarks
  14. AATKit's Size within your app
  15. What is an AdSpace?
  16. Network-specific Information
  17. Statistics Delegate
  18. Reports Delegate
  19. Listen to impression level information
  20. AATKit AdMob custom events adapter (>= 2.77.x)

AATStatisticsDelegate

AATStatisticsDelegate notifies you of all placements statistics events:

Swift:

#!swift
public protocol AATStatisticsDelegate: AnyObject {
    /**
     * Notifies that an adspace has been counted.
     */
    func AATKitCountedAdSpace()

    /**
     * Notifies that an request has been counted for a given network.
     *
     * - Parameter network: Network for which the request has been counted.
     */

    func AATKitCountedRequest(for network: AATAdNetwork)

    /**
     * Notifies that an response has been counted for a given network.
     *
     * - Parameter network: Network for which the response has been counted.
     */

    func AATKitCountedResponse(for network: AATAdNetwork)

    /**
     * Notifies that an impression has been counted for a given network.
     *
     * - Parameter network: Network for which the impression has been counted.
     */
    func AATKitCountedImpression(for network: AATAdNetwork)

    /**
     * Notifies that an viewable impression has been counted for a given network.
     *
     * - Parameter network: Network for which the viewable impression has been counted.
     */

    func AATKitCountedVImpression(for network: AATAdNetwork)
    /**
     * Notifies that an click has been counted for a given network.
     *
     * - Parameter network: Network for which the click has been counted.
     */

    func AATKitCountedClick(for network: AATAdNetwork)

    /**
     * Notifies that an direct deal impression has been counted for a given network.
     *
     * - Parameter network: Network for which the direct deal impression has been counted.
     */

    func AATKitCountedDirectDealImpression(for network: AATAdNetwork)

    /**
     * Notifies than an mediation cycle has been counted.
     */
    func AATKitCountedMediationCycle()
}

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 AATStatisticsDelegate and pass it to the placement (All placements types have the statisticsDelegate property):

Swift:

placement.statisticsDelegate = self

Objective-C:

self.placement.statisticsDelegate = self;

back (Home)

Updated