Skip to content

AdRequest

AdRequest #

Targeting info per the AdMob API.

This class's properties mirror the native AdRequest API. See for example: AdRequest.Builder for Android.

content_url #

content_url: str | None = None

URL string for a webpage whose content matches the app’s primary content.

This webpage content is used for targeting and brand safety purposes.

extras #

extras: dict[str, str] | None = None

Extras to pass to the AdMob adapter.

http_timeout #

http_timeout: int | None = None

A custom timeout (in milliseconds) for HTTPS calls during an ad request.

Note

This is only supported in Android. (ignored on iOS)

keywords #

keywords: list[str] | None = None

Words or phrases describing the current user activity.

neighboring_content_urls #

neighboring_content_urls: list[str] | None = None

URLs representing web content near an ad.

non_personalized_ads #

non_personalized_ads: bool | None = None

Non-personalized ads are ads that are not based on a user’s past behavior.

For more information: https://support.google.com/admob/answer/7676680?hl=en