GfpAdDebugger

Utility class to show and track debug information for ad views.

Activation modes:

  • Code-level: call setEnabled to enable directly. In release builds, a warning dialog is shown.

  • Server-based: automatically activated via server API whitelist check during SDK initialization.

To open the debugger, hold three fingers on an ad view for 2 seconds, or call show programmatically.

Functions

Link copied to clipboard
fun captureAdView(view: View, adCallId: String, cacheDir: File, adType: String): Runnable?

Captures the ad view hierarchy for the debugger Ad View tab. Intended for use by mediation modules that cannot access ViewHierarchyCapturer directly. Does nothing if the debugger is not enabled.

Link copied to clipboard

checks if debugger is enabled.

Link copied to clipboard

sets whether to enable debugger.

Link copied to clipboard
fun show(context: Context, adCallId: String?)

Shows the debugger screen. If adCallId is provided, selects that ad call log; otherwise, the latest event is selected.