Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.AdRequest.Builder
Constructs a Builder.
Summary
Constructors and Destructors
|
Builder()
|
Public functions
|
AddExtra(string key, string value)
|
Extra parameters to be sent in the ad request.
|
AddKeyword(string keyword)
|
Words or phrase describing the current activity of the user for targeting purposes.
|
AddMediationExtras(MediationExtras extras)
|
Extra parameters to be sent to a specific ad partner in the ad request.
|
Build()
|
Constructs an AdRequest with the specified attributes.
|
Public functions
Builder AddExtra(
string key,
string value
)
Extra parameters to be sent in the ad request.
Details |
Parameters |
key
|
The extra key to add.
|
value
|
The extra value to add.
|
|
AddKeyword
Builder AddKeyword(
string keyword
)
Words or phrase describing the current activity of the user for targeting purposes.
Details |
Parameters |
keyword
|
Word or phrase describing the current activity of the user for targeting purposes.
|
|
Builder AddMediationExtras(
MediationExtras extras
)
Extra parameters to be sent to a specific ad partner in the ad request.
Details |
Parameters |
extras
|
Extra parameters for mediation custom events.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-01-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-01-18 UTC."],[[["The `AdRequest.Builder` class is used to create `AdRequest` objects for requesting ads in Google Mobile Ads."],["It allows you to add extra parameters, keywords, and mediation extras to customize your ad requests."],["The `AddExtra` method lets you include custom key-value pairs in the request for targeting purposes or analytics."],["`AddKeyword` allows you to specify relevant keywords to improve ad targeting based on user context or interests."],["Finally, `Build` method constructs the `AdRequest` object with the specified attributes for use in ad loading."]]],["The `GoogleMobileAds.Api.AdRequest.Builder` class constructs an ad request. Key actions include `AddExtra` to include extra parameters, `AddKeyword` to describe user activity for targeting, and `AddMediationExtras` for specific ad partner parameters. The `Build` function assembles an `AdRequest` with these specified attributes. The constructor `Builder()` initializes the builder object for these actions. All actions return a `Builder` object.\n"]]