Console Logs

SDK logging allows you to check SDK integration and activity, including information about waterfalls with ad units, ads requests, loading, and some other. We recommend always enabling logs and using the debug logs 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 under the "Appodeal" tag. 
For more information about the console please see Debugging with Xcode.

Activity Logs

Appodeal SDK provides API to log some mediation activity events. Implement `APDActivityDelegate` protocol and set its instance to Appodeal. These 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 information about activity type, ad type, ad network and optional event-specific custom messages.

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;