Skip to main content
  • Ads fixed to the top or bottom of the screen.
  • Places a native banner view over the Unity screen.

Integrating Ads

1

Create Ad Instance

2

Register Event Handlers

3

Load Ad

The banner is displayed automatically when loading succeeds. Call Show() only to display it again after Hide().
4

Hide, Redisplay, or Dispose Ad


Check Banner Display Area

Use DaroBannerAd.GetScreenRect() to read the native banner view’s actual on-screen area. The return value is Rect? in Unity screen pixels. It uses the same bottom-left origin convention as Screen.safeArea.
Native banner layout completes a few frames after the automatic display following Load() or after a later Show(). GetScreenRect() can return null immediately after display or inside OnAdShown, so poll for a few frames when you need the measured area.
GetScreenRect() returns null when the banner has not been shown yet, is hidden, or has been disposed. Re-check after rotation or resize because the value can change.

Example