StaticcreateCreates a new NativeAd instance.
import { NativeAd, AdEventType, TestIds } from 'react-native-google-mobile-ads';
const nativeAd = await NativeAd.createForAdRequest(TestIds.NATIVE, {
requestAgent: 'CoolAds',
});
The Ad Unit ID for the Native Ad. You can find this on your Google Mobile Ads dashboard.
OptionalrequestOptions: NativeAdRequestOptions
Optional RequestOptions used to load the ad.
StaticfromHydrate a NativeAd from an already-loaded native payload (multi-format path). Does not issue a second network request. Package-internal.
ReadonlyadReadonlyadvertiserReadonlybodyReadonlycallReadonlyextrasReadonlyheadlineReadonlyiconReadonlyimagesReadonlymediaReadonlypriceReadonlyresponseReadonlyresponseSnapshot of the loaded ad's response info, or null before load / after destroy.
Additive; top-level responseId remains the registry key.
ReadonlystarReadonlystore
A class for loading Native Ads.