Method: bidders.pretargetingConfigs.create

  • This method creates a pretargeting configuration, which is active upon creation and affects traffic shortly after.

  • A bidder can create a maximum of 10 pretargeting configurations.

  • The request uses a POST method to https://realtimebidding.googleapis.com/v1/{parent=bidders/*}/pretargetingConfigs with a required parent parameter specifying the bidder.

  • The request body contains an instance of PretargetingConfig, and the successful response body also contains a newly created PretargetingConfig instance.

  • The method requires the https://www.googleapis.com/auth/realtime-bidding OAuth scope for authorization.

Creates a pretargeting configuration. A pretargeting configuration's state (PretargetingConfig.state) is active upon creation, and it will start to affect traffic shortly after.

A bidder may create a maximum of 10 pretargeting configurations. Attempts to exceed this maximum results in a 400 bad request error.

HTTP request

POST https://realtimebidding.googleapis.com/v1/{parent=bidders/*}/pretargetingConfigs

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the bidder to create the pretargeting configuration for. Format: bidders/{bidderAccountId}

Request body

The request body contains an instance of PretargetingConfig.

Response body

If successful, the response body contains a newly created instance of PretargetingConfig.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/realtime-bidding