react-native-google-mobile-ads
    Preparing search index...

    Type Alias UseNativeAdOptions

    Options object accepted by useNativeAd.

    Options-form only: there is no positional overload.

    type UseNativeAdOptions = {
        adUnitId: string | null;
        autoLoad?: boolean;
        requestOptions?: NativeAdRequestOptions;
    }
    Index
    adUnitId: string | null

    The ad unit to load.

    null means there is no ad unit yet, so no request is issued and status stays 'idle'. Useful when the unit arrives from remote config. Changing this value, including to or from null, destroys any owned NativeAd.

    autoLoad?: boolean

    Controls automatic loading. Defaults to true.

    Set it to false to wait for something the load depends on, such as consent or SDK initialization; the hook loads as soon as it flips true. Turning it back off stops future automatic loads. It does not destroy the ad and does not cancel a load already in flight, because neither platform exposes load cancellation.

    An explicit retry() still works while autoLoad is false.

    requestOptions?: NativeAdRequestOptions

    Request options forwarded to NativeAd.createForAdRequest. Changing them destroys any owned NativeAd and, when autoLoad is true, loads again.