Method: bidders.pretargetingConfigs.removeTargetedSites
Stay organized with collections
Save and categorize content based on your preferences.
Removes targeted sites from the pretargeting configuration.
HTTP request
POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:removeTargetedSites
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
]
} |
Fields |
sites[] |
string
A list of site URLs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted URLs in PretargetingConfig.webTargeting.values .
|
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-05-07 UTC.
[null,null,["Last updated 2025-05-07 UTC."],[[["\u003cp\u003eThis endpoint removes targeted sites from a specified pretargeting configuration using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a path parameter to identify the pretargeting configuration and a request body containing a list of site URLs to remove.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns the updated pretargeting configuration.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/realtime-bidding\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document outlines the process of removing targeted sites from a pretargeting configuration using a POST request to the Realtime Bidding API. The request URL includes a required `pretargetingConfig` path parameter specifying the configuration. The request body uses JSON to list the site URLs to be removed under the `sites` field. A successful request returns an updated `PretargetingConfig`, and the operation requires the `realtime-bidding` OAuth scope.\n"],null,["# Method: bidders.pretargetingConfigs.removeTargetedSites\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRemoves targeted sites from the pretargeting configuration.\n\n### HTTP request\n\n`POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:removeTargetedSites`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `pretargetingConfig` | `string` Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"sites\": [ string ] } ``` |\n\n| Fields ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sites[]` | `string` A list of site URLs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted URLs in [PretargetingConfig.webTargeting.values](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.web_targeting). |\n\n### Response body\n\nIf successful, the response body contains an instance of [PretargetingConfig](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/realtime-bidding`"]]