Owns the NativeAd lifecycle so callers do not leak inventory when a
component unmounts before createForAdRequest resolves, or when the ad unit
/ request identity changes. Late resolutions after cleanup destroy the
returned ad and never publish it.
Loads as soon as it can, unless autoLoad is false. Read status for the
request's current position; nativeAd is non-null only when status is
'loaded'.
React Hook for Native Ads.
Owns the
NativeAdlifecycle so callers do not leak inventory when a component unmounts beforecreateForAdRequestresolves, or when the ad unit / request identity changes. Late resolutions after cleanup destroy the returned ad and never publish it.Loads as soon as it can, unless
autoLoadisfalse. Readstatusfor the request's current position;nativeAdis non-null only whenstatusis'loaded'.Example