Jump to top

RequestOptions

interface

The RequestOptions interface. Used when passing additional request options before an advert is loaded.

Properties

contentUrl

</>

Sets a content URL for targeting purposes.

contentUrl: undefined | string;

keywords

</>

An array of keywords to be sent when loading the ad.

keywords: string[];

location

</>

The latitude and longitude location of the user.

location: ;

locationAccuracy

</>

Sets the location accuracy if the location is set, in meters.

locationAccuracy: undefined | number;

networkExtras

</>

Attaches additional properties to an ad request for direct campaign delivery.

networkExtras: undefined | { [key: string]: string };

requestAgent

</>

Sets the request agent string to identify the ad request's origin. Third party libraries that reference the Mobile Ads SDK should call this method to denote the platform from which the ad request originated. For example, if a third party ad network called "CoolAds network" mediates requests to the Mobile Ads SDK, it should call this method with "CoolAds".

requestAgent: undefined | string;

requestNonPersonalizedAdsOnly

</>

If true only non-personalized ads will be loaded.

requestNonPersonalizedAdsOnly: undefined | false | true;

serverSideVerificationOptions

</>

Server Side Verification(SSV) Options See Google Mobile SDK Docs for more information.

serverSideVerificationOptions: ServerSideVerificationOptions;

testDevices

</>

An array of test device IDs to whitelist.

testDevices: string[];