Method: bidders.pretargetingConfigs.removeTargetedSites

  • This endpoint removes targeted sites from a specified pretargeting configuration using an HTTP POST request.

  • The request requires a path parameter to identify the pretargeting configuration and a request body containing a list of site URLs to remove.

  • A successful request returns the updated pretargeting configuration.

  • Authorization requires the https://www.googleapis.com/auth/realtime-bidding scope.

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