YandexNativeProvider
Yandex Ads implementation of NativeAdProvider.
Renders different layouts based on NativeAdSize:
NativeAdSize.LARGE: Uses NativeBannerView template (full layout with media)
NativeAdSize.MEDIUM: Custom layout with icon + title + body + CTA (no media)
NativeAdSize.SMALL: Custom compact layout with icon + title + CTA (no body, no media)
Colors are resolved from the app's Material Design 3 theme attributes (colorSurface, colorOnSurface, colorPrimary, etc.), falling back to standard Android theme attrs, then hardcoded defaults.
Functions
Link copied to clipboard
open override fun loadNativeAd(context: Context, adUnitId: String, callback: NativeAdProvider.NativeAdCallback, sizeHint: NativeAdSize)