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
{"publisherIds": [string]}
Fields
publisherIds[]
string
A list of publisher IDs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted publisher IDs in PretargetingConfig.publisherTargeting.values.
[[["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\u003eRemoves specific publishers from a pretargeting configuration, stopping ads from targeting them.\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP POST request to the specified endpoint with required path and request body parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON payload with an array of publisher IDs to be removed.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses return the updated PretargetingConfig object.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/realtime-bidding\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: bidders.pretargetingConfigs.removeTargetedPublishers\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 publishers from the pretargeting config.\n\n### HTTP request\n\n`POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:removeTargetedPublishers`\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| ``` { \"publisherIds\": [ string ] } ``` |\n\n| Fields ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `publisherIds[]` | `string` A list of publisher IDs to stop targeting in the pretargeting configuration. These values will be removed from the list of targeted publisher IDs in [PretargetingConfig.publisherTargeting.values](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.publisher_targeting). Publishers are identified by their publisher ID from ads.txt / app-ads.txt. See \u003chttps://iabtechlab.com/ads-txt/\u003e and \u003chttps://iabtechlab.com/app-ads-txt/\u003e for more details. |\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`"]]