Method: bidders.pretargetingConfigs.addTargetedSites
Adds targeted sites to the pretargeting configuration.
HTTP request
POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:addTargetedSites
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
pretargetingConfig |
string
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"sites": [
string
],
"targetingMode": enum (TargetingMode )
} |
Fields |
sites[] |
string
A list of site URLs to target in the pretargeting configuration. These values will be added to the list of targeted URLs in PretargetingConfig.webTargeting.values .
|
targetingMode |
enum (TargetingMode )
Required. The targeting mode that should be applied to the list of site URLs. If there are existing targeted sites, must be equal to the existing PretargetingConfig.webTargeting.targetingMode or a 400 bad request error will be returned.
|
Response body
If successful, the response body contains an instance of PretargetingConfig
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/realtime-bidding
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 2025-01-31 UTC.
[null,null,["Last updated 2025-01-31 UTC."],[[["Adds specified site URLs to a pretargeting configuration's list of targeted sites."],["Requires a POST request to the specified endpoint with necessary path and request body parameters."],["The request body must contain a list of site URLs and the desired targeting mode."],["A successful response returns the updated PretargetingConfig object."],["Authorization requires the `https://www.googleapis.com/auth/realtime-bidding` scope."]]],["This outlines adding sites to a pretargeting configuration via a `POST` request to a specific URL. The request requires the pretargeting configuration name as a path parameter. The request body includes a list of site URLs (`sites`) and a required `targetingMode` enum. Successful requests return a `PretargetingConfig` instance. The process requires `realtime-bidding` authorization scope. It will update existing `webTargeting` in the configurations.\n"]]