AATKit iOS Integration
Release Notes
  • Start
    • Setup
      • Minimum iOS Version
      • Cocoapods
      • Swift Package Manager
      • AATKit Reporting
      • App Transport Security (ATS)
      • SKAdNetwork
    • Initialization
    • Consent
      • General Handling
      • Managed Consent
        • Google CMP
        • Sourcepoint CMP
        • SFBX (AppConsent) CMP
      • Vendor Consent
      • Simple Consent
    • Plugins documentation
    • Additional Information
  • Formats
    • Introduction
    • Banner
      • Auto Load Banner
      • Multi-Size Auto Load Banner
      • Banner Cache
      • Infeed Banner
      • Asynchronous Infeed Banner
      • Sticky Banner
      • Multi-Size Banner
    • Fullscreen (Interstitial)
    • AppOpen (Google)
    • Rewarded Video
      • Server-Side Verification (SSV)
    • Native Ad
      • Basic Integration
      • Asynchronous Basic Integration
      • Network Specifics
        • Native Ads: Google
        • Native Ads: Applovin
  • Ad Networks
    • Customize Ad Networks
    • Privacy Requirements
    • Google Mobile Ads SDK
    • AppNexus Custom Interstitial Auto Dismiss Delay
    • FeedAd Banner Options
    • AmazonHB
  • Advanced
    • Targeting
      • Key-Value Targeting
      • User Targeting
      • Content Targeting URL
    • Frequency Capping
    • Advanced Delegates
      • Reports Delegate
      • Impression Delegate (ILRD)
      • Statistics Delegate
    • AATKit's Size
    • Ad Space and Fill Rate
    • Shake Debug
    • Publisher Provided ID
    • Child-directed Support
    • Disabling Ad Networks
    • Geo Tracking
    • Ad Quality
    • Creatives History
  • Other
    • AdMob Custom Events
    • Datonomy
    • Reference
      • Classes
        • AATConfiguration
        • AATRuntimeConfiguration
        • AATManagedConsent
        • AATVendorConsent
        • AATSimpleConsent
        • AATAdInfo
        • AATBannerConfiguration
        • AATBannerRequest
        • AATBannerCacheConfiguration
        • AATBannerAlign
        • AATPlacementHistoryInfo
        • AATReward
        • AATRewardedAdSSVInfo
        • AATNativeAdRating
        • AATImpression
        • AATPriceInfo
        • AATAdNetworksOptions
          • AATAppNexusOptions
          • AATFeedAdOptions
          • AATAdMobOptions
          • AATDFPOptions
          • AATDatonomyOptions
        • AATDebugInfo
        • AATDebugScreenConfiguration
        • AATUserTargeting
        • AATCollapsibleBannerOptions
      • Protocols
        • AATDelegate
        • AATManagedConsentDelegate
        • AATVendorConsentDelegate
        • AATPlacement
        • AATStickyBannerPlacement
        • AATStickyBannerPlacementDelegate
        • AATMultiSizeBannerPlacement
        • AATMultiSizeBannerPlacementDelegate
        • AATInfeedBannerPlacement
        • AATInfeedBannerPlacementDelegate
        • AATAsyncInfeedBannerPlacement
        • AATBannerRequestDelegate
        • AATBannerCache
        • AATBannerCacheDelegate
        • AATBannerCacheStatusDelegate
        • AATAutoLoadBannerPlacement
        • AATAutoLoadBannerPlacementDelegate
        • AATAutoLoadMultiSizeBannerPlacement
        • AATAutoLoadMultiSizeBannerPlacementDelegate
        • AATFullscreenPlacement
        • AATFullscreenPlacementDelegate
        • AATAppOpenAdPlacement
        • AATAppOpenPlacementDelegate
        • AATRewardedVideoPlacement
        • AATRewardedVideoPlacementDelegate
        • AATNativeAdPlacement
        • AATNativePlacementDelegate
        • AATAsyncNativeAdPlacement
        • AATNativeAdData
        • AATReportsDelegate
        • AATImpressionDelegate
        • AATStatisticsDelegate
      • Enumerations
        • AATAdNetwork
        • AATGender
        • AATLogLevel
        • AATManagedConsentState
        • NonIABConsent
        • AATBannerPlacementSize
        • AATBannerSize
        • HorizontalAlign
        • VerticalAlign
        • AATMediationType
        • AATImpressionPricePrecisionType
  • Samples
Powered by GitBook
On this page
  • Enable Shake Debug
  • Disable Shake Debug
  • Customize Shake Debug
  • Retrieve Debug Info
  1. Advanced

Shake Debug

By default, AATKit will display a popup box with information about AATKit’s version and the currently visible ads whenever the user has heavily shaken the device. You can disable or enable this behaviour after initializing AATKit.

Debug screen will not be presented on top of fullscreen ads. Instead, once the ad is closed, the debug screen will have information about last presented fullscreen ad.

We encourage you to keep the shake debug enabled to track down possible bad-quality ads.

Enable Shake Debug

// [IMPORTANT] AATKit must be initialised first
let configuration = AATConfiguration()
AATSDK.initAATKit(with: configuration)
AATSDK.enableDebugScreen()
// [IMPORTANT] AATKit must be initialised first
AATConfiguration *configuration = [[AATConfiguration alloc] init];
[AATSDK initAATKitWith:configuration];
[AATSDK enableDebugScreen];

Disable Shake Debug

// [IMPORTANT] AATKit must be initialised first
let configuration = AATConfiguration()
AATSDK.initAATKit(with: configuration)
AATSDK.disableDebugScreen()
// [IMPORTANT] AATKit must be initialised first
AATConfiguration *configuration = [[AATConfiguration alloc] init];
[AATSDK initAATKitWith:configuration];
[AATSDK disableDebugScreen];

Customize Shake Debug

You can control which data should be displayed in the shake debug screen by the following:

let debugScreenConfiguration = AATDebugScreenConfiguration(appLogo: <LOGO_IMAGE>,
                                                           title: <TITLE>,
                                                           showBundleId: true,
                                                           showTestMode: true,
                                                           showLoadedAndLoadingAds: true,
                                                           showDisabledNetworks: true,
                                                           showRemovedNetworkSDKs: true,
                                                           showDeviceType: true,
                                                           showExtraSDKs: true,
                                                           showConsent: true,
                                                           showIDFA: true)
debugScreenConfiguration.shareEmail = "<YOUR_SUPPORT_EMAIL_ADDRESS>" // Optional
AATSDK.configureDebugScreen(configuration: debugScreenConfiguration)
AATDebugScreenConfiguration *debugScreenConfiguration = [[AATDebugScreenConfiguration alloc] initWithAppLogo:<LOGO_IMAGE>
                                                                                                    title:<TITLE>
                                                                                             showBundleId:YES
                                                                                             showTestMode:YES
                                                                                  showLoadedAndLoadingAds:YES
                                                                                     showDisabledNetworks:YES
                                                                                   showRemovedNetworkSDKs:YES
                                                                                           showDeviceType:YES
                                                                                            showExtraSDKs:YES
                                                                                              showConsent:YES
                                                                                                 showIDFA:YES];
debugScreenConfiguration.shareEmail = @"<YOUR_SUPPORT_EMAIL_ADDRESS>"; // Optional
[AATSDK configureDebugScreenWithConfiguration:debugScreenConfiguration];

The shareEmail field is the one used in the shake debug screen for sharing current session's debug info.

Retrieve Debug Info

You can retrieve the debug info that will be displayed on the shake debug screen by using the following API:

// Retrieve debug info as an AATDebugInfo instance
let debugInfo = AATSDK.getDebugInfoObject()
// Retrieve debug info as a string
let debugInfoString = AATSDK.getDebugInfo()
// Retrieve debug info as an AATDebugInfo instance
AATDebugInfo *debugInfo = [AATSDK getDebugInfoObject];
// Retrieve debug info as a string
NSString *debugInfoString = [AATSDK getDebugInfo];

Last updated 7 months ago