Method: bidders.pretargetingConfigs.create
Stay organized with collections
Save and categorize content based on your preferences.
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
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 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eCreates a pretargeting configuration that affects traffic shortly after activation and requires a specific HTTP request using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eA maximum of 10 pretargeting configurations are allowed per bidder, exceeding this limit results in a 400 bad request error.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs to contain a PretargetingConfig instance, and a successful response will return a newly created PretargetingConfig instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/realtime-bidding\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: bidders.pretargetingConfigs.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a pretargeting configuration. A pretargeting configuration's state ([PretargetingConfig.state](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.state)) is active upon creation, and it will start to affect traffic shortly after.\n\nA bidder may create a maximum of 10 pretargeting configurations. Attempts to exceed this maximum results in a 400 bad request error.\n\n### HTTP request\n\n`POST https://realtimebidding.googleapis.com/v1/{parent=bidders/*}/pretargetingConfigs`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Name of the bidder to create the pretargeting configuration for. Format: bidders/{bidderAccountId} |\n\n### Request body\n\nThe request body contains an instance of [PretargetingConfig](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig).\n\n### Response body\n\nIf successful, the response body contains a newly created 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`"]]