Publishers · Rewards & security

Testing & debug mode

Test ads without billing, read debug logs and check SDK health in the panel.

Debug mode shows a test ad immediately. It is never billed, does not count in statistics and does not call your Reward URL.

const AdController = window.Adsun.init({
  blockId: "50001",
  debug: true,                       // test ad
  debugConsole: true,                // "ADSUN DEBUG LOG" in console
  debugBannerType: "RewardedVideo",  // or "FullscreenMedia"
});

Checklist before going live

  • ✅ Ad opens and closes correctly on Android, iOS and Telegram Desktop.
  • ✅ Your app continues after .catch() (no ad / skipped).
  • ✅ Reward URL tested with a real request.
  • ✅ debug removed or set to false.

SDK health in the panel

Open your block → SDK health. You see requests, errors, fullscreen vs regular, dark vs light themes and safe-area data from real users. If something is wrong, it shows here first.

WARNING

Testing in a normal browser (not Telegram)? Real ads need Telegram user data. Use debug: true outside Telegram, otherwise you get NoUserData.

Still stuck? Write to support@adsun.io or our Telegram support — we answer fast.