realtimeBidding
import { realtimeBidding } from "https://googleapis.deno.dev/v1/realtimebidding:v1.ts";
Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive via pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status.
§Methods
Lists creatives as they are at the time of the initial request. This call
may take multiple hours to complete. For large, paginated requests, this
method returns a snapshot of creatives at the time of request for the first
page. lastStatusUpdate
and creativeServingDecision
may be outdated for
creatives on sequential pages. We recommend Google Cloud
Pub/Sub to view the latest
status.
Required. Name of the parent buyer that owns the creatives. The pattern for this resource is either buyers/{buyerAccountId}
or bidders/{bidderAccountId}
. For buyers/{buyerAccountId}
, the buyerAccountId
can be one of the following: 1. The ID of the buyer that is accessing their own creatives. 2. The ID of the child seat buyer under a bidder account. So for listing creatives pertaining to the child seat buyer (456
) under bidder account (123
), you would use the pattern: buyers/456
. 3. The ID of the bidder itself. So for listing creatives pertaining to bidder (123
), you would use buyers/123
. If you want to access all creatives pertaining to both the bidder and all of its child seat accounts, you would use bidders/{bidderAccountId}
, for example, for all creatives pertaining to bidder (123
), use bidders/123
.
Watches all creatives pertaining to a bidder. It is sufficient to invoke this endpoint once per bidder. A Pub/Sub topic will be created and notifications will be pushed to the topic when any of the bidder's creatives change status. All of the bidder's service accounts will have access to read from the topic. Subsequent invocations of this method will return the existing Pub/Sub configuration.
Required. To watch all creatives pertaining to the bidder and all its child seat accounts, the bidder must follow the pattern bidders/{bidderAccountId}
.
Lists all the bidder's endpoints.
Required. Name of the bidder whose endpoints will be listed. Format: bidders/{bidderAccountId}
Updates a bidder's endpoint.
Output only. Name of the endpoint resource that must follow the pattern bidders/{bidderAccountId}/endpoints/{endpointId}
, where {bidderAccountId} is the account ID of the bidder who operates this endpoint, and {endpointId} is a unique ID assigned by the server.
Lists all the bidder accounts that belong to the caller.
Activates a pretargeting configuration.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Adds targeted apps to the pretargeting configuration.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Adds targeted publishers to the pretargeting config.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Adds targeted sites to the pretargeting configuration.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
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.
Required. Name of the bidder to create the pretargeting configuration for. Format: bidders/{bidderAccountId}
Gets a pretargeting configuration.
Required. Name of the pretargeting configuration to get. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Lists all pretargeting configurations for a single bidder.
Required. Name of the bidder whose pretargeting configurations will be listed. Format: bidders/{bidderAccountId}
Updates a pretargeting configuration.
Output only. Name of the pretargeting configuration that must follow the pattern bidders/{bidder_account_id}/pretargetingConfigs/{config_id}
Removes targeted apps from the pretargeting configuration.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Removes targeted publishers from the pretargeting config.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Removes targeted sites from the pretargeting configuration.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Suspends a pretargeting configuration.
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Batch approves multiple publisher connections.
Required. The bidder for whom publisher connections will be approved. Format: bidders/{bidder}
where {bidder}
is the account ID of the bidder.
Batch rejects multiple publisher connections.
Required. The bidder for whom publisher connections will be rejected. Format: bidders/{bidder}
where {bidder}
is the account ID of the bidder.
Gets a publisher connection.
Required. Name of the publisher whose connection information is to be retrieved. 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. See publisherConnection.name.
Lists publisher connections for a given bidder.
Required. Name of the bidder for which publishers have initiated connections. The pattern for this resource is bidders/{bidder}
where {bidder}
represents the account ID of the bidder.
Creates a creative.
Required. The name of the parent buyer that the new creative belongs to that must follow the pattern buyers/{buyerAccountId}
, where {buyerAccountId}
represents the account ID of the buyer who owns a creative. For a bidder accessing creatives on behalf of a child seat buyer, {buyerAccountId}
should represent the account ID of the child seat buyer.
Lists creatives as they are at the time of the initial request. This call
may take multiple hours to complete. For large, paginated requests, this
method returns a snapshot of creatives at the time of request for the first
page. lastStatusUpdate
and creativeServingDecision
may be outdated for
creatives on sequential pages. We recommend Google Cloud
Pub/Sub to view the latest
status.
Required. Name of the parent buyer that owns the creatives. The pattern for this resource is either buyers/{buyerAccountId}
or bidders/{bidderAccountId}
. For buyers/{buyerAccountId}
, the buyerAccountId
can be one of the following: 1. The ID of the buyer that is accessing their own creatives. 2. The ID of the child seat buyer under a bidder account. So for listing creatives pertaining to the child seat buyer (456
) under bidder account (123
), you would use the pattern: buyers/456
. 3. The ID of the bidder itself. So for listing creatives pertaining to bidder (123
), you would use buyers/123
. If you want to access all creatives pertaining to both the bidder and all of its child seat accounts, you would use bidders/{bidderAccountId}
, for example, for all creatives pertaining to bidder (123
), use bidders/123
.
Updates a creative.
Output only. Name of the creative. Follows the pattern buyers/{buyer}/creatives/{creative}
, where {buyer}
represents the account ID of the buyer who owns the creative, and {creative}
is the buyer-specific creative ID that references this creative in the bid response.
This has been sunset as of October 2023, and will return an error response if called. For more information, see the release notes: https://developers.google.com/authorized-buyers/apis/relnotes#real-time-bidding-api Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript code that can be placed on a web page. When a user visits a page containing a remarketing tag, Google adds the user to a user list.
Required. To fetch the remarketing tag for an account, the name must follow the pattern buyers/{accountId}
, where {accountId}
represents the ID of the buyer that owns the remarketing tag. For a bidder accessing the remarketing tag on behalf of a child seat buyer, {accountId}
should represent the ID of the child seat buyer. To fetch the remarketing tag for a specific user list, the name must follow the pattern buyers/{accountId}/userLists/{userListId}
. See UserList.name.
Lists all buyer account information the calling buyer user or service account is permissioned to manage.
Changes the status of a user list to CLOSED. This prevents new users from being added to the user list.
Required. The name of the user list to close. See UserList.name
Creates a new user list.
Required. The name of the parent buyer of the user list to be retrieved, which must follow the pattern buyers/{buyerAccountId}
, where {buyerAccountId}
represents the account ID of the buyer who owns the user list. For a bidder accessing user lists on behalf of a child seat buyer, {buyerAccountId}
should represent the account ID of the child seat buyer.
This has been sunset as of October 2023, and will return an error response if called. For more information, see the release notes: https://developers.google.com/authorized-buyers/apis/relnotes#real-time-bidding-api Gets remarketing tag for a buyer. A remarketing tag is a piece of JavaScript code that can be placed on a web page. When a user visits a page containing a remarketing tag, Google adds the user to a user list.
Required. To fetch the remarketing tag for an account, the name must follow the pattern buyers/{accountId}
, where {accountId}
represents the ID of the buyer that owns the remarketing tag. For a bidder accessing the remarketing tag on behalf of a child seat buyer, {accountId}
should represent the ID of the child seat buyer. To fetch the remarketing tag for a specific user list, the name must follow the pattern buyers/{accountId}/userLists/{userListId}
. See UserList.name.
Lists the user lists visible to the current user.
Required. The name of the parent buyer for the user lists to be returned that must follow the pattern buyers/{buyerAccountId}
, where {buyerAccountId}
represents the account ID of the buyer who owns user lists. For a bidder accessing user lists on behalf of a child seat buyer , {buyerAccountId}
should represent the account ID of the child seat buyer.
Changes the status of a user list to OPEN. This allows new users to be added to the user list.
Required. The name of the user list to open. See UserList.name
Updates the given user list. Only user lists with URLRestrictions can be updated.
Output only. Name of the user list that must follow the pattern buyers/{buyer}/userLists/{user_list}
, where {buyer}
represents the account ID of the buyer who owns the user list. For a bidder accessing user lists on behalf of a child seat buyer, {buyer}
represents the account ID of the child seat buyer. {user_list}
is an int64 identifier assigned by Google to uniquely identify a user list.