Method: bidders.publisherConnections.batchApprove
Stay organized with collections
Save and categorize content based on your preferences.
Batch approves multiple publisher connections.
HTTP request
POST https://realtimebidding.googleapis.com/v1/{parent=bidders/*}/publisherConnections:batchApprove
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The bidder for whom publisher connections will be approved. Format: bidders/{bidder} where {bidder} is the account ID of the bidder.
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"names": [
string
]
} |
Fields |
names[] |
string
Required. The names of the publishers with which connections will be approved. In the pattern bidders/{bidder}/publisherConnections/{publisher} where {bidder} is the account ID of the bidder, and {publisher} is the ads.txt/app-ads.txt publisher ID.
|
Response body
A response for the request to approve a batch of publisher connections.
If successful, the response body contains data with the following structure:
Fields |
publisherConnections[] |
object (PublisherConnection )
The publisher connections that have been approved.
|
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 2025-05-07 UTC.
[null,null,["Last updated 2025-05-07 UTC."],[[["\u003cp\u003eBatch approves multiple publisher connections for a specified bidder using the provided publisher IDs.\u003c/p\u003e\n"],["\u003cp\u003eRequires a POST request to the specified endpoint with the bidder ID in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a JSON array of publisher connection names to be approved.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will include a list of approved publisher connections.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/realtime-bidding\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: bidders.publisherConnections.batchApprove\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 - [JSON representation](#body.BatchApprovePublisherConnectionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nBatch approves multiple publisher connections.\n\n### HTTP request\n\n`POST https://realtimebidding.googleapis.com/v1/{parent=bidders/*}/publisherConnections:batchApprove`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The bidder for whom publisher connections will be approved. Format: `bidders/{bidder}` where `{bidder}` is the account ID of the bidder. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"names\": [ string ] } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `names[]` | `string` Required. The names of the publishers with which connections will be approved. In the pattern `bidders/{bidder}/publisherConnections/{publisher}` where `{bidder}` is the account ID of the bidder, and `{publisher}` is the ads.txt/app-ads.txt publisher ID. |\n\n### Response body\n\nA response for the request to approve a batch of publisher connections.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"publisherConnections\": [ { object (/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.publisherConnections#PublisherConnection) } ] } ``` |\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `publisherConnections[]` | `object (`[PublisherConnection](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.publisherConnections#PublisherConnection)`)` The publisher connections that have been approved. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/realtime-bidding`"]]