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

    Type Alias UseMultiFormatAdOptions

    UseMultiFormatAdOptions: MultiFormatAdConfig & { autoLoad?: boolean }

    Arguments to useMultiFormatAd: the shared request config plus its automatic-load policy.

    One object, so the hook can grow new fields without a signature change, and so it accepts exactly what MultiFormatAdRequest.create accepts.

    Type Declaration

    • OptionalautoLoad?: boolean

      Controls automatic loading. Defaults to true.

      Set it to false while something the load depends on is still resolving, such as consent or SDK initialization; the hook loads as soon as it flips true. An explicit load() still works while autoLoad is false, and samples the options current when you call it.

      While true, the hook also loads again when the request itself changes: a new adUnitId, or different requestOptions contents (formats, banner sizes, keywords, and the rest). A freshly allocated but content-equal options object does not reload — including MultiFormatAdPresets.*(...) called in the render body — and property order within an object is ignored while array order is not. If the request changes while a load is in flight, that superseded load's handles are destroyed rather than published, and the latest enabled automatic request loads once after it settles. If autoLoad is turned off before that settlement, the hook returns 'idle' while retaining the last current responseInfo.