Skip to main content

Ad Debugger

Starting from NAM SDK 8.14.0, Ad Debugger is officially supported. Ad Debugger is a debugging tool that allows you to check ad requests, responses, mediation, and device information in real time. It is useful for diagnosing issues during ad integration or checking ad loading status.


Enabling

There are two ways to enable Ad Debugger.

1. Enable from Code

GfpAdDebugger.setEnabled(true)
caution

A warning dialog is displayed when Ad Debugger is enabled in release builds. It is recommended not to enable Ad Debugger in production environments.

2. Server-based Enabling

By registering the Advertising Identifier (ADID) of a test device through a GFP/NAM administrator, Ad Debugger will be automatically enabled when the SDK is initialized on that device. This is useful for debugging in QA environments or release builds without any code changes.

info

Server-based enabling only works for registered ADIDs and is automatically deactivated after a certain period. The enabled state is cached on the device so it does not request the server every time.


Opening

There are two ways to open Ad Debugger.

1. Open with Gesture

Press and hold with three fingers for 2 seconds on an ad view to open Ad Debugger. The log for the corresponding ad is automatically selected and displayed.

2. Open from Code

Call GfpAdDebugger.show() to open it programmatically.

// Open the debugger (shows the latest ad log)
GfpAdDebugger.show(context, null)

Screen Layout

Ad Debugger consists of 4 tabs: Ad Logs, SDK, Device, and Cached Ads.

Ad Debugger Main

Ad Logs Tab

Displays a list of logs for requested ads. Each item shows the ad unit ID, ad status, request time, and more.

Ad statuses are displayed as follows:

StatusDescription
ViewedAd was successfully displayed
FilledAd was loaded but not yet displayed
CachedAd was cached to disk
EmptyNo ad response (No-Fill)
ErrorError occurred during ad loading

Ad Log Details

Select an item from the list to view detailed information about the ad. The detail screen consists of the following tabs.

Overview

Shows overall summary information for the ad load.

Ad Logs Overview

  • State: Current state of the ad

  • Summary: Key information about the ad request and response

    ItemDescription
    Ad Unit IDAd unit identifier
    Ad ProviderNetwork name that served the ad
    Request IDUnique identifier for the ad request
    Connection TypeNetwork connection type
    Render TypeAd rendering method
    Creative TypeAd creative type
    Viewable ThresholdViewability threshold (e.g., 50% / 1s)
  • Latency: Visualizes the time taken from request to response to load

  • Errors: List of errors that occurred (error code, message, timestamp)

Events

Shows events during the ad loading process in chronological order.

Ad Logs Events

  • Event Timeline: Timeline of each stage such as ad request, response received, adapter load, impression, etc.

  • Event Checklist: Checks whether key events occurred by category

    CategoryKey Events
    Ad LifecycleLoaded, View Attached, Rendered, Viewable Impression
    Viewability1px Impression, 100% Impression, 100%+1s Impression
    User ActionsClicked, Ad Opt-Out, Privacy Info, Bounce Back
    Rewarded / InterstitialReward Complete, Closed
    Cache EventsCache Hit, Cache Miss, Prefetch Success/Failed
    ErrorsLoad Error, Start Error, Lazy Render Failed
Mediation

Shows information about ad networks that participated in mediation.

Mediation

  • Summary: 3 latency metrics
    • Ad Call Latency: Time taken from ad server request to response
    • Adapter Load Latency: Time taken to load the ad in the adapter
    • Total Load Latency: Total time taken to load the ad
  • Latency Chart: Visualizes the time taken per adapter as horizontal bar charts, with errors shown in red
  • Mediation Logs: Detailed logs per adapter (adapter name, time taken, error code and message)
  • Timeout: Displays timeout occurrence and timing
Params

Shows parameter information used in the ad request. You can check items such as Ad Params, Custom Params, timeout settings, test mode, SDK settings, user settings, and privacy settings.

Params

Ad View

Captures and displays the view hierarchy of the ad view. A screenshot of the ad view is shown with each view's area distinguished by color, and for native ads, binding verification results can also be checked.

Ad View

SDK Tab

The SDK tab consists of 3 sub-tabs: SDK, Privacy, and Mediation Networks.

SDK Tab

SDK Sub-tab

Shows SDK basic information and initialization status.

ItemDescription
App InfoPublisher CD, Service CD, app version, SDK version
InitializationSDK initialization status (success/failure), cache usage
Init EventsInitialization event history for current and previous sessions

Privacy Sub-tab

Shows advertising identifier and privacy-related settings.

ItemDescription
Advertising IdentifierAd ID, Limit Ad Tracking, Disable Ad ID, App Set ID
GDPRGDPR applicability, TC String
CCPAUS Privacy String
GPPGPP String, GPP SID
COPPAChild Directed Treatment, Under Age of Consent

Mediation Networks Sub-tab

Shows adapter versions and status of integrated mediation networks.

Mediation network statuses are displayed as follows:

StatusDescription
Not InstalledAdapter not installed
InstalledAdapter installed
ReadyInitialization complete, ready for ad requests
ErrorInitialization failed
BlockedDeactivated by server configuration

Device Tab

Shows device information that may affect ad requests.

Device Tab

Network

ItemDescription
Network TypeNetwork type (Wi-Fi, Cellular, etc.)
WiFi ConnectedWi-Fi connection status
VPN ActiveVPN usage status
Network CarrierCarrier
Proxy/VPN DetailProxy and VPN detail settings

Permissions

Checks the grant status of permissions related to ad SDK operations.

PermissionDescription
INTERNETInternet access
ACCESS_NETWORK_STATENetwork state check
AD_IDAdvertising identifier access
ACCESS_FINE_LOCATIONFine location
ACCESS_COARSE_LOCATIONCoarse location
ACCESS_WIFI_STATEWi-Fi state check

Hardware

ItemDescription
ManufacturerManufacturer
ModelDevice model
OS VersionAndroid version
API LevelAPI level
Screen ResolutionScreen resolution (px)
Screen DensityScreen density (ldpi/mdpi/hdpi, etc.)
LocaleDevice language/region
EmulatorWhether running on an emulator
RootedWhether device is rooted

App

ItemDescription
Package NamePackage name
App VersionApp version
Installer PackageInstallation source (Play Store, etc.)
User AgentUser Agent string
Target SDKTarget SDK version
Min SDKMinimum SDK version

Cached Ads Tab

Shows a list of disk-cached ads grouped by ad unit ID.

Cached Ads Tab

Each cached ad can be selected to view detailed information.

ItemDescription
File NameCache file name
File SizeCache file size
Creation TimeTime of caching
Expiration TimeCache expiration time
Total Asset SizeTotal size of assets such as images/videos
Raw JSONRaw cached ad response
Native AssetsNative ad asset list (URL, size)

Individual cache files can also be selectively deleted.

info

For more details about the ad caching feature, refer to the Ad Caching guide.


Export / Import Logs

Export

You can export collected logs as a .zip file through the share button at the top right of Ad Debugger. You can individually select which ad logs to export, and the exported file can be useful when reporting ad-related issues.

Import

You can reload a previously exported .zip file to reproduce logs. In import mode, the top of the screen indicates that it is imported data, and you can return to live log mode through the reset button.