Skip to main content

Native Ad Format

  • Ads rendered inside your app UI.
  • Attach DaroNativeAdView to a Unity UI prefab and wire slots, or read DaroNativeAd.Info directly into custom UI.

Integrating Ads

1

Prepare Native Ad View

Add DaroNativeAdView to the Unity UI prefab root. Wire TitleText, BodyText, IconImage, CtaButton, and MediaContainer.MediaContainer is optional. When the bound ad has no media asset, DaroNativeAdView hides MediaContainer automatically.Bind(ad) also connects CtaButton taps to the native click flow on Android and iOS.
2

Create Ad Instance

3

Register Event Handlers

4

Load Ad

5

Dispose Ad

When rendering DaroNativeAd.Info in custom UI instead of using DaroNativeAdView, call ad.NotifyClicked() from the CTA button handler.
Info.Icon and Info.MediaImage textures are owned by DaroNativeAd and are released when the ad reloads or is disposed. Do not retain or reuse those textures after Unbind() and Dispose().

Example