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.
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.
[[["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 2025-05-07 UTC."],[[["\u003cp\u003eAdds specified site URLs to a pretargeting configuration's list of targeted sites.\u003c/p\u003e\n"],["\u003cp\u003eRequires a POST request to the specified endpoint with necessary path and request body parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a list of site URLs and the desired targeting mode.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns the updated PretargetingConfig object.\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 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"],null,["# Method: bidders.pretargetingConfigs.addTargetedSites\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\nAdds targeted sites to the pretargeting configuration.\n\n### HTTP request\n\n`POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:addTargetedSites`\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 ], \"targetingMode\": enum (/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#TargetingMode) } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.web_targeting). |\n| `targetingMode` | `enum (`[TargetingMode](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#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](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.web_targeting) or a 400 bad request error will be returned. |\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`"]]