Console logs

SDK logging allows you to check SDK integration and activity, including information about waterfalls with ad units, ads requesting, loading, and some other. We recommend always enabling logs and use the debug log level to get full SDK information. 

Enable logging using the code below before SDK initialization:


Should be called before the SDK initialization.

Available parameters:

  • APDLogLeveloff - logs off;
  • APDLogFlagError - only error messages;
  • APDLogLevelWarning - warning and error messages;
  • APDLogLevelDebug - debug messages;
  • APDLogLevelInfo - error, warning and information messages;
  • APDLogLevelVerbose - all SDK and ad network messages.

Connect a device with the app installed, open the Xcode console, run the app and check SDK logs by the "Appodeal" tag. 
For more information about the console please visit Debugging with Xcode.


Activity logs

Appodeal SDK provides API to log some mediation activity events. Implement `APDActivityDelegate` protocol and set it instance to Appodeal. This logs are not dependent on log level.

final class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?
    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
    ) -> Bool {
        return true

extension AppDelegate: APDActivityDelegate {
    func didReceive(_ activityLog: APDActivityLog) {
		// TODO:

APDActivityLog contains info about activity type, ad type, ad network and optional event specific custom message.

Available activity types are:

  • APDActivityTypeMediationStart - mediation start for ad unit;

  • APDActivityTypeMediationFinish - mediation finish for ad unit;

  • APDActivityTypeImpressionStart impression start for ad unit;

  • APDActivityTypeImpressionFinish - impression finish for ad unit;

  • APDActivityTypeClick - user interact with impression;