AuthorizedBuyersMarketplace
import { AuthorizedBuyersMarketplace } from "https://googleapis.deno.dev/v1/authorizedbuyersmarketplace:v1.ts";
The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers.
§Methods
List the auction packages. Buyers can use the URL path "/v1/buyers/{accountId}/auctionPackages" to list auction packages for the current buyer and its clients. Bidders can use the URL path "/v1/bidders/{accountId}/auctionPackages" to list auction packages for the bidder, its media planners, its buyers, and all their clients.
Required. Name of the parent buyer that can access the auction package. Format: buyers/{accountId}
. When used with a bidder account, the auction packages that the bidder, its media planners, its buyers and clients are subscribed to will be listed, in the format bidders/{accountId}
.
Lists finalized deals. Use the URL path "/v1/buyers/{accountId}/finalizedDeals" to list finalized deals for the current buyer and its clients. Bidders can use the URL path "/v1/bidders/{accountId}/finalizedDeals" to list finalized deals for the bidder, its buyers and all their clients.
Required. The buyer to list the finalized deals for, in the format: buyers/{accountId}
. When used to list finalized deals for a bidder, its buyers and clients, in the format bidders/{accountId}
.
Gets an auction package given its name.
Required. Name of auction package to get. Format: buyers/{accountId}/auctionPackages/{auctionPackageId}
List the auction packages. Buyers can use the URL path "/v1/buyers/{accountId}/auctionPackages" to list auction packages for the current buyer and its clients. Bidders can use the URL path "/v1/bidders/{accountId}/auctionPackages" to list auction packages for the bidder, its media planners, its buyers, and all their clients.
Required. Name of the parent buyer that can access the auction package. Format: buyers/{accountId}
. When used with a bidder account, the auction packages that the bidder, its media planners, its buyers and clients are subscribed to will be listed, in the format bidders/{accountId}
.
Subscribe to the auction package for the specified buyer. Once subscribed, the bidder will receive a call out for inventory matching the auction package targeting criteria with the auction package deal ID and the specified buyer.
Required. Name of the auction package. Format: buyers/{accountId}/auctionPackages/{auctionPackageId}
Subscribe the specified clients of the buyer to the auction package. If a client in the list does not belong to the buyer, an error response will be returned, and all of the following clients in the list will not be subscribed. Subscribing an already subscribed client will have no effect.
Required. Name of the auction package. Format: buyers/{accountId}/auctionPackages/{auctionPackageId}
Unsubscribe from the auction package for the specified buyer. Once unsubscribed, the bidder will no longer receive a call out for the auction package deal ID and the specified buyer.
Required. Name of the auction package. Format: buyers/{accountId}/auctionPackages/{auctionPackageId}
Unsubscribe from the auction package for the specified clients of the buyer. Unsubscribing a client that is not subscribed will have no effect.
Required. Name of the auction package. Format: buyers/{accountId}/auctionPackages/{auctionPackageId}
Activates an existing client. The state of the client will be updated to "ACTIVE". This method has no effect if the client is already in "ACTIVE" state.
Required. Format: buyers/{buyerAccountId}/clients/{clientAccountId}
Deactivates an existing client. The state of the client will be updated to "INACTIVE". This method has no effect if the client is already in "INACTIVE" state.
Required. Format: buyers/{buyerAccountId}/clients/{clientAccountId}
Lists all the clients for the current buyer.
Required. The name of the buyer. Format: buyers/{accountId}
Updates an existing client.
Output only. The resource name of the client. Format: buyers/{accountId}/clients/{clientAccountId}
Activates an existing client user. The state of the client user will be updated from "INACTIVE" to "ACTIVE". This method has no effect if the client user is already in "ACTIVE" state. An error will be returned if the client user to activate is still in "INVITED" state.
Required. Format: buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{userId}
Creates a new client user in "INVITED" state. An email invitation will be sent to the new user, once accepted the user will become active.
Required. The name of the client. Format: buyers/{accountId}/clients/{clientAccountId}
Deactivates an existing client user. The state of the client user will be updated from "ACTIVE" to "INACTIVE". This method has no effect if the client user is already in "INACTIVE" state. An error will be returned if the client user to deactivate is still in "INVITED" state.
Required. Format: buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{userId}
Deletes an existing client user. The client user will lose access to the Authorized Buyers UI. Note that if a client user is deleted, the user's access to the UI can't be restored unless a new client user is created and activated.
Required. Format: buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{userId}
Retrieves an existing client user.
Required. Format: buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{userId}
Lists all client users for a specified client.
Required. The name of the client. Format: buyers/{buyerAccountId}/clients/{clientAccountId}
Add creative to be used in the bidding process for a finalized deal. For programmatic guaranteed deals, it's recommended that you associate at least one approved creative with the deal before calling SetReadyToServe, to help reduce the number of bid responses filtered because they don't contain approved creatives. Creatives successfully added to a deal can be found in the Realtime-bidding Creatives API creative.deal_ids. This method only applies to programmatic guaranteed deals. Maximum number of 1000 creatives can be added to a finalized deal.
Required. Name of the finalized deal in the format of: buyers/{accountId}/finalizedDeals/{dealId}
Gets a finalized deal given its name.
Required. Format: buyers/{accountId}/finalizedDeals/{dealId}
Lists finalized deals. Use the URL path "/v1/buyers/{accountId}/finalizedDeals" to list finalized deals for the current buyer and its clients. Bidders can use the URL path "/v1/bidders/{accountId}/finalizedDeals" to list finalized deals for the bidder, its buyers and all their clients.
Required. The buyer to list the finalized deals for, in the format: buyers/{accountId}
. When used to list finalized deals for a bidder, its buyers and clients, in the format bidders/{accountId}
.
Pauses serving of the given finalized deal. This call only pauses the serving status, and does not affect other fields of the finalized deal. Calling this method for an already paused deal has no effect. This method only applies to programmatic guaranteed deals.
Required. Format: buyers/{accountId}/finalizedDeals/{dealId}
Resumes serving of the given finalized deal. Calling this method for an running deal has no effect. If a deal is initially paused by the seller, calling this method will not resume serving of the deal until the seller also resumes the deal. This method only applies to programmatic guaranteed deals.
Required. Format: buyers/{accountId}/finalizedDeals/{dealId}
Sets the given finalized deal as ready to serve. By default, deals are set
as ready to serve as soon as they're finalized. If you want to opt out of
the default behavior, and manually indicate that deals are ready to serve,
ask your Technical Account Manager to add you to the allowlist. If you
choose to use this method, finalized deals belonging to the bidder and its
child seats don't start serving until after you call setReadyToServe
, and
after the deals become active. For example, you can use this method to
delay receiving bid requests until your creative is ready. This method only
applies to programmatic guaranteed deals.
Required. Format: buyers/{accountId}/finalizedDeals/{dealId}
Accepts the proposal at the given revision number. If the revision number
in the request is behind the latest from the server, an error message will
be returned. This call updates the Proposal.state from
BUYER_ACCEPTANCE_REQUESTED
to FINALIZED
; it has no side effect if the
Proposal.state is already FINALIZED
and throws exception if the
Proposal.state is not either BUYER_ACCEPTANCE_REQUESTED
or FINALIZED
.
Accepting a proposal means the buyer understands and accepts the
Proposal.terms_and_conditions proposed by the seller.
Name of the proposal. Format: buyers/{accountId}/proposals/{proposalId}
Creates a note for this proposal and sends to the seller.
Name of the proposal. Format: buyers/{accountId}/proposals/{proposalId}
Cancels an ongoing negotiation on a proposal. This does not cancel or end
serving for the deals if the proposal has been finalized. If the proposal
has not been finalized before, calling this method will set the
Proposal.state to TERMINATED
and increment the
Proposal.proposal_revision. If the proposal has been finalized before and
is under renegotiation now, calling this method will reset the
Proposal.state to FINALIZED
and increment the Proposal.proposal_revision.
This method does not support private auction proposals whose
Proposal.deal_type is 'PRIVATE_AUCTION'.
Name of the proposal. Format: buyers/{accountId}/proposals/{proposalId}
Batch updates multiple deals in the same proposal.
Required. The name of the proposal containing the deals to batch update. Format: buyers/{accountId}/proposals/{proposalId}
Lists all deals in a proposal. To retrieve only the finalized revision deals regardless if a deal is being renegotiated, see the FinalizedDeals resource.
Required. The name of the proposal containing the deals to retrieve. Format: buyers/{accountId}/proposals/{proposalId}
Updates the given deal at the buyer known revision number. If the server revision has advanced since the passed-in proposal.proposal_revision an ABORTED error message will be returned. The revision number is incremented by the server whenever the proposal or its constituent deals are updated. Note: The revision number is kept at a proposal level. The buyer of the API is expected to keep track of the revision number after the last update operation and send it in as part of the next update request. This way, if there are further changes on the server (for example, seller making new updates), then the server can detect conflicts and reject the proposed changes.
Immutable. The unique identifier of the deal. Auto-generated by the server when a deal is created. Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId}
Lists proposals. A filter expression using Cloud API list filtering syntax may be specified to filter the results.
Required. Parent that owns the collection of proposals Format: buyers/{accountId}
Updates the proposal at the given revision number. If the revision number in the request is behind the latest one kept in the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.
Immutable. The name of the proposal serving as a unique identifier. Format: buyers/{accountId}/proposals/{proposalId}
Sends a request for proposal (RFP) to a publisher to initiate the
negotiation regarding certain inventory. In the RFP, buyers can specify the
deal type, deal terms, start and end dates, targeting, and a message to the
publisher. Once the RFP is sent, a proposal in SELLER_REVIEW_REQUESTED
state will be created and returned in the response. The publisher may
review your request and respond with detailed deals in the proposal.
Required. The current buyer who is sending the RFP in the format: buyers/{accountId}
.
Gets the requested publisher profile by name.
Required. Name of the publisher profile. Format: buyers/{buyerId}/publisherProfiles/{publisherProfileId}
Lists publisher profiles. The returned publisher profiles aren't in any defined order. The order of the results might change. A new publisher profile can appear in any place in the list of returned results.
Required. Parent that owns the collection of publisher profiles Format: buyers/{buyerId}