authorizedbuyersmarketplace

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package authorizedbuyersmarketplace provides access to the Authorized Buyers Marketplace API.

For product documentation, see: https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/authorizedbuyersmarketplace/v1"
...
ctx := context.Background()
authorizedbuyersmarketplaceService, err := authorizedbuyersmarketplace.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

authorizedbuyersmarketplaceService, err := authorizedbuyersmarketplace.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
authorizedbuyersmarketplaceService, err := authorizedbuyersmarketplace.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// See, create, edit, and delete your Authorized Buyers Marketplace
	// entities.
	AuthorizedBuyersMarketplaceScope = "https://www.googleapis.com/auth/authorized-buyers-marketplace"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptProposalRequest

type AcceptProposalRequest struct {
	// ProposalRevision: The last known client revision number of the
	// proposal.
	ProposalRevision int64 `json:"proposalRevision,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "ProposalRevision") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ProposalRevision") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

AcceptProposalRequest: Request to accept a proposal. Accepting a proposal implies acceptance of the publisher terms_and_conditions, if any.

func (*AcceptProposalRequest) MarshalJSON

func (s *AcceptProposalRequest) MarshalJSON() ([]byte, error)

type ActivateClientRequest

type ActivateClientRequest struct {
}

ActivateClientRequest: Request message for activating a client.

type ActivateClientUserRequest

type ActivateClientUserRequest struct {
}

ActivateClientUserRequest: Request message for activating a client user.

type AdSize

type AdSize struct {
	// Height: The height of the ad slot in pixels. This field will be
	// present only when size type is `PIXEL`.
	Height int64 `json:"height,omitempty,string"`

	// Type: The type of the ad slot size.
	//
	// Possible values:
	//   "TYPE_UNSPECIFIED" - A placeholder for an undefined size type.
	//   "PIXEL" - Ad slot with size specified by height and width in
	// pixels.
	//   "INTERSTITIAL" - Special size to describe an interstitial ad slot.
	//   "NATIVE" - Native (mobile) ads rendered by the publisher.
	//   "FLUID" - Fluid size (responsive size) can be resized automatically
	// with the change of outside environment.
	Type string `json:"type,omitempty"`

	// Width: The width of the ad slot in pixels. This field will be present
	// only when size type is `PIXEL`.
	Width int64 `json:"width,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "Height") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Height") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

AdSize: Represents size of a single ad slot, or a creative.

func (*AdSize) MarshalJSON

func (s *AdSize) MarshalJSON() ([]byte, error)

type AddCreativeRequest

type AddCreativeRequest struct {
	// Creative: Name of the creative to add to the finalized deal, in the
	// format `buyers/{buyerAccountId}/creatives/{creativeId}`. See
	// creative.name.
	Creative string `json:"creative,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Creative") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Creative") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

AddCreativeRequest: Request message for adding creative to be used in the bidding process for the finalized deal.

func (*AddCreativeRequest) MarshalJSON

func (s *AddCreativeRequest) MarshalJSON() ([]byte, error)

type AddNoteRequest

type AddNoteRequest struct {
	// Note: The note to add.
	Note *Note `json:"note,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Note") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Note") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

AddNoteRequest: Request to add a note.

func (*AddNoteRequest) MarshalJSON

func (s *AddNoteRequest) MarshalJSON() ([]byte, error)

type AuctionPackage

type AuctionPackage struct {
	// CreateTime: Output only. Time the auction package was created.
	CreateTime string `json:"createTime,omitempty"`

	// Creator: Output only. The buyer that created this auction package.
	// Format: `buyers/{buyerAccountId}`
	Creator string `json:"creator,omitempty"`

	// Description: Output only. A description of the auction package.
	Description string `json:"description,omitempty"`

	// DisplayName: The display_name assigned to the auction package.
	DisplayName string `json:"displayName,omitempty"`

	// Name: Immutable. The unique identifier for the auction package.
	// Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}` The
	// auction_package_id part of name is sent in the BidRequest to all RTB
	// bidders and is returned as deal_id by the bidder in the BidResponse.
	Name string `json:"name,omitempty"`

	// SubscribedClients: Output only. The list of clients of the current
	// buyer that are subscribed to the AuctionPackage. Format:
	// `buyers/{buyerAccountId}/clients/{clientAccountId}`
	SubscribedClients []string `json:"subscribedClients,omitempty"`

	// UpdateTime: Output only. Time the auction package was last updated.
	// This value is only increased when this auction package is updated but
	// never when a buyer subscribed.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CreateTime") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

AuctionPackage: Defines a segment of inventory that buyer wants to buy. It's created by buyer and could be shared with multiple buyers.

func (*AuctionPackage) MarshalJSON

func (s *AuctionPackage) MarshalJSON() ([]byte, error)

type BatchUpdateDealsRequest

type BatchUpdateDealsRequest struct {
	// Requests: Required. List of request messages to update deals.
	Requests []*UpdateDealRequest `json:"requests,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Requests") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Requests") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

BatchUpdateDealsRequest: Request message for batch updating deals.

func (*BatchUpdateDealsRequest) MarshalJSON

func (s *BatchUpdateDealsRequest) MarshalJSON() ([]byte, error)

type BatchUpdateDealsResponse

type BatchUpdateDealsResponse struct {
	// Deals: Deals updated.
	Deals []*Deal `json:"deals,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Deals") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Deals") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

BatchUpdateDealsResponse: Response message for batch updating deals.

func (*BatchUpdateDealsResponse) MarshalJSON

func (s *BatchUpdateDealsResponse) MarshalJSON() ([]byte, error)

type BiddersFinalizedDealsListCall

type BiddersFinalizedDealsListCall struct {
	// contains filtered or unexported fields
}

func (*BiddersFinalizedDealsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BiddersFinalizedDealsListCall) Do

Do executes the "authorizedbuyersmarketplace.bidders.finalizedDeals.list" call. Exactly one of *ListFinalizedDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListFinalizedDealsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BiddersFinalizedDealsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BiddersFinalizedDealsListCall) Filter

Filter sets the optional parameter "filter": Optional query string using the Cloud API list filtering syntax (https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus

func (*BiddersFinalizedDealsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BiddersFinalizedDealsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BiddersFinalizedDealsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": An optional query string to sort finalized deals using the Cloud API sorting syntax (https://cloud.google.com/apis/design/design_patterns#sorting_order). If no sort order is specified, results will be returned in an arbitrary order. Supported columns for sorting are: * deal.displayName * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * rtbMetrics.bidRequests7Days * rtbMetrics.bids7Days * rtbMetrics.adImpressions7Days * rtbMetrics.bidRate7Days * rtbMetrics.filteredBidRate7Days * rtbMetrics.mustBidRateCurrentMonth Example: 'deal.displayName, deal.updateTime desc'

func (*BiddersFinalizedDealsListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer results than requested. If requested more than 500, the server will return 500 results per page. If unspecified, the server will pick a default page size of 100.

func (*BiddersFinalizedDealsListCall) PageToken

PageToken sets the optional parameter "pageToken": The page token as returned from ListFinalizedDealsResponse.

func (*BiddersFinalizedDealsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BiddersFinalizedDealsService

type BiddersFinalizedDealsService struct {
	// contains filtered or unexported fields
}

func NewBiddersFinalizedDealsService

func NewBiddersFinalizedDealsService(s *Service) *BiddersFinalizedDealsService

func (*BiddersFinalizedDealsService) List

List: 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.

  • parent: 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}`.

type BiddersService

type BiddersService struct {
	FinalizedDeals *BiddersFinalizedDealsService
	// contains filtered or unexported fields
}

func NewBiddersService

func NewBiddersService(s *Service) *BiddersService

type BuyersAuctionPackagesGetCall

type BuyersAuctionPackagesGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersAuctionPackagesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersAuctionPackagesGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.get" call. Exactly one of *AuctionPackage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuctionPackage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersAuctionPackagesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersAuctionPackagesGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersAuctionPackagesGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersAuctionPackagesListCall

type BuyersAuctionPackagesListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersAuctionPackagesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersAuctionPackagesListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.list" call. Exactly one of *ListAuctionPackagesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAuctionPackagesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersAuctionPackagesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersAuctionPackagesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersAuctionPackagesListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersAuctionPackagesListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer results than requested. Max allowed page size is 500.

func (*BuyersAuctionPackagesListCall) PageToken

PageToken sets the optional parameter "pageToken": The page token as returned. ListAuctionPackagesResponse.nextPageToken

func (*BuyersAuctionPackagesListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersAuctionPackagesService

type BuyersAuctionPackagesService struct {
	// contains filtered or unexported fields
}

func NewBuyersAuctionPackagesService

func NewBuyersAuctionPackagesService(s *Service) *BuyersAuctionPackagesService

func (*BuyersAuctionPackagesService) Get

Get: Gets an auction package given its name.

  • name: Name of auction package to get. Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}`.

func (*BuyersAuctionPackagesService) List

List: List the auction packages subscribed by a buyer and its clients.

  • parent: Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`.

func (*BuyersAuctionPackagesService) Subscribe

Subscribe: 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.

  • name: Name of the auction package. Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}`.

func (*BuyersAuctionPackagesService) SubscribeClients

func (r *BuyersAuctionPackagesService) SubscribeClients(auctionPackage string, subscribeclientsrequest *SubscribeClientsRequest) *BuyersAuctionPackagesSubscribeClientsCall

SubscribeClients: 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.

  • auctionPackage: Name of the auction package. Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}`.

func (*BuyersAuctionPackagesService) Unsubscribe

func (r *BuyersAuctionPackagesService) Unsubscribe(name string, unsubscribeauctionpackagerequest *UnsubscribeAuctionPackageRequest) *BuyersAuctionPackagesUnsubscribeCall

Unsubscribe: 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.

  • name: Name of the auction package. Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}`.

func (*BuyersAuctionPackagesService) UnsubscribeClients

func (r *BuyersAuctionPackagesService) UnsubscribeClients(auctionPackage string, unsubscribeclientsrequest *UnsubscribeClientsRequest) *BuyersAuctionPackagesUnsubscribeClientsCall

UnsubscribeClients: Unsubscribe from the auction package for the specified clients of the buyer. Unsubscribing a client that is not subscribed will have no effect.

  • auctionPackage: Name of the auction package. Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}`.

type BuyersAuctionPackagesSubscribeCall

type BuyersAuctionPackagesSubscribeCall struct {
	// contains filtered or unexported fields
}

func (*BuyersAuctionPackagesSubscribeCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersAuctionPackagesSubscribeCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.subscribe" call. Exactly one of *AuctionPackage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuctionPackage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersAuctionPackagesSubscribeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersAuctionPackagesSubscribeCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersAuctionPackagesSubscribeClientsCall

type BuyersAuctionPackagesSubscribeClientsCall struct {
	// contains filtered or unexported fields
}

func (*BuyersAuctionPackagesSubscribeClientsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersAuctionPackagesSubscribeClientsCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.subscribeClients" call. Exactly one of *AuctionPackage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuctionPackage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersAuctionPackagesSubscribeClientsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersAuctionPackagesSubscribeClientsCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersAuctionPackagesUnsubscribeCall

type BuyersAuctionPackagesUnsubscribeCall struct {
	// contains filtered or unexported fields
}

func (*BuyersAuctionPackagesUnsubscribeCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersAuctionPackagesUnsubscribeCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.unsubscribe" call. Exactly one of *AuctionPackage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuctionPackage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersAuctionPackagesUnsubscribeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersAuctionPackagesUnsubscribeCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersAuctionPackagesUnsubscribeClientsCall

type BuyersAuctionPackagesUnsubscribeClientsCall struct {
	// contains filtered or unexported fields
}

func (*BuyersAuctionPackagesUnsubscribeClientsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersAuctionPackagesUnsubscribeClientsCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.unsubscribeClients" call. Exactly one of *AuctionPackage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuctionPackage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersAuctionPackagesUnsubscribeClientsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersAuctionPackagesUnsubscribeClientsCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsActivateCall

type BuyersClientsActivateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsActivateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsActivateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.activate" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsActivateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsActivateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsCreateCall

type BuyersClientsCreateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsCreateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.create" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsCreateCall) Header

func (c *BuyersClientsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsDeactivateCall

type BuyersClientsDeactivateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsDeactivateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsDeactivateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.deactivate" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsDeactivateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsDeactivateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsGetCall

type BuyersClientsGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.get" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsGetCall) Header

func (c *BuyersClientsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersClientsGetCall) IfNoneMatch

func (c *BuyersClientsGetCall) IfNoneMatch(entityTag string) *BuyersClientsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersClientsListCall

type BuyersClientsListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.list" call. Exactly one of *ListClientsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClientsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsListCall) Filter

Filter sets the optional parameter "filter": Query string using the Filtering Syntax (https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is "1234", the value of this field should be `partnerClientId = "1234", in order to get only the client whose partnerClientId is "1234" in the response.

func (*BuyersClientsListCall) Header

func (c *BuyersClientsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersClientsListCall) IfNoneMatch

func (c *BuyersClientsListCall) IfNoneMatch(entityTag string) *BuyersClientsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersClientsListCall) PageSize

func (c *BuyersClientsListCall) PageSize(pageSize int64) *BuyersClientsListCall

PageSize sets the optional parameter "pageSize": Requested page size. If left blank, a default page size of 500 will be applied.

func (*BuyersClientsListCall) PageToken

func (c *BuyersClientsListCall) PageToken(pageToken string) *BuyersClientsListCall

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListClientsResponse.nextPageToken returned from the previous call to the list method.

func (*BuyersClientsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersClientsPatchCall

type BuyersClientsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsPatchCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.patch" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsPatchCall) Header

func (c *BuyersClientsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersClientsPatchCall) UpdateMask

func (c *BuyersClientsPatchCall) UpdateMask(updateMask string) *BuyersClientsPatchCall

UpdateMask sets the optional parameter "updateMask": List of fields to be updated. If empty or unspecified, the service will update all fields populated in the update request excluding the output only fields and primitive fields with default value. Note that explicit field mask is required in order to reset a primitive field back to its default value, for example, false for boolean fields, 0 for integer fields. A special field mask consisting of a single path "*" can be used to indicate full replacement(the equivalent of PUT method), updatable fields unset or unspecified in the input will be cleared or set to default value. Output only fields will be ignored regardless of the value of updateMask.

type BuyersClientsService

type BuyersClientsService struct {
	Users *BuyersClientsUsersService
	// contains filtered or unexported fields
}

func NewBuyersClientsService

func NewBuyersClientsService(s *Service) *BuyersClientsService

func (*BuyersClientsService) Activate

func (r *BuyersClientsService) Activate(name string, activateclientrequest *ActivateClientRequest) *BuyersClientsActivateCall

Activate: 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.

- name: Format: `buyers/{buyerAccountId}/clients/{clientAccountId}`.

func (*BuyersClientsService) Create

func (r *BuyersClientsService) Create(parent string, client *Client) *BuyersClientsCreateCall

Create: Creates a new client.

- parent: The name of the buyer. Format: `buyers/{accountId}`.

func (*BuyersClientsService) Deactivate

func (r *BuyersClientsService) Deactivate(name string, deactivateclientrequest *DeactivateClientRequest) *BuyersClientsDeactivateCall

Deactivate: 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.

- name: Format: `buyers/{buyerAccountId}/clients/{clientAccountId}`.

func (*BuyersClientsService) Get

Get: Gets a client with a given resource name.

- name: Format: `buyers/{accountId}/clients/{clientAccountId}`.

func (*BuyersClientsService) List

List: Lists all the clients for the current buyer.

- parent: The name of the buyer. Format: `buyers/{accountId}`.

func (*BuyersClientsService) Patch

func (r *BuyersClientsService) Patch(name string, client *Client) *BuyersClientsPatchCall

Patch: Updates an existing client.

  • name: Output only. The resource name of the client. Format: `buyers/{accountId}/clients/{clientAccountId}`.

type BuyersClientsUsersActivateCall

type BuyersClientsUsersActivateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsUsersActivateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsUsersActivateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.users.activate" call. Exactly one of *ClientUser or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUser.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsUsersActivateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsUsersActivateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsUsersCreateCall

type BuyersClientsUsersCreateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsUsersCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsUsersCreateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.users.create" call. Exactly one of *ClientUser or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUser.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsUsersCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsUsersCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsUsersDeactivateCall

type BuyersClientsUsersDeactivateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsUsersDeactivateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsUsersDeactivateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.users.deactivate" call. Exactly one of *ClientUser or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUser.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsUsersDeactivateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsUsersDeactivateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsUsersDeleteCall

type BuyersClientsUsersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsUsersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsUsersDeleteCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.users.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsUsersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsUsersDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersClientsUsersGetCall

type BuyersClientsUsersGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsUsersGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsUsersGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.users.get" call. Exactly one of *ClientUser or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUser.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsUsersGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsUsersGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersClientsUsersGetCall) IfNoneMatch

func (c *BuyersClientsUsersGetCall) IfNoneMatch(entityTag string) *BuyersClientsUsersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersClientsUsersListCall

type BuyersClientsUsersListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersClientsUsersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersClientsUsersListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.clients.users.list" call. Exactly one of *ListClientUsersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClientUsersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersClientsUsersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersClientsUsersListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersClientsUsersListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersClientsUsersListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. If left blank, a default page size of 500 will be applied.

func (*BuyersClientsUsersListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListClientUsersResponse.nextPageToken returned from the previous call to the list method.

func (*BuyersClientsUsersListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersClientsUsersService

type BuyersClientsUsersService struct {
	// contains filtered or unexported fields
}

func NewBuyersClientsUsersService

func NewBuyersClientsUsersService(s *Service) *BuyersClientsUsersService

func (*BuyersClientsUsersService) Activate

func (r *BuyersClientsUsersService) Activate(name string, activateclientuserrequest *ActivateClientUserRequest) *BuyersClientsUsersActivateCall

Activate: 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.

  • name: Format: `buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{user Id}`.

func (*BuyersClientsUsersService) Create

Create: 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.

  • parent: The name of the client. Format: `buyers/{accountId}/clients/{clientAccountId}`.

func (*BuyersClientsUsersService) Deactivate

func (r *BuyersClientsUsersService) Deactivate(name string, deactivateclientuserrequest *DeactivateClientUserRequest) *BuyersClientsUsersDeactivateCall

Deactivate: 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.

  • name: Format: `buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{user Id}`.

func (*BuyersClientsUsersService) Delete

Delete: 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.

  • name: Format: `buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{user Id}`.

func (*BuyersClientsUsersService) Get

Get: Retrieves an existing client user.

  • name: Format: `buyers/{buyerAccountId}/clients/{clientAccountId}/clientUsers/{user Id}`.

func (*BuyersClientsUsersService) List

List: Lists all client users for a specified client.

  • parent: The name of the client. Format: `buyers/{buyerAccountId}/clients/{clientAccountId}`.

type BuyersFinalizedDealsAddCreativeCall

type BuyersFinalizedDealsAddCreativeCall struct {
	// contains filtered or unexported fields
}

func (*BuyersFinalizedDealsAddCreativeCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersFinalizedDealsAddCreativeCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.addCreative" call. Exactly one of *FinalizedDeal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FinalizedDeal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersFinalizedDealsAddCreativeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersFinalizedDealsAddCreativeCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersFinalizedDealsGetCall

type BuyersFinalizedDealsGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersFinalizedDealsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersFinalizedDealsGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.get" call. Exactly one of *FinalizedDeal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FinalizedDeal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersFinalizedDealsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersFinalizedDealsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersFinalizedDealsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersFinalizedDealsListCall

type BuyersFinalizedDealsListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersFinalizedDealsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersFinalizedDealsListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.list" call. Exactly one of *ListFinalizedDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListFinalizedDealsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersFinalizedDealsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersFinalizedDealsListCall) Filter

Filter sets the optional parameter "filter": Optional query string using the Cloud API list filtering syntax (https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus

func (*BuyersFinalizedDealsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersFinalizedDealsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersFinalizedDealsListCall) OrderBy

OrderBy sets the optional parameter "orderBy": An optional query string to sort finalized deals using the Cloud API sorting syntax (https://cloud.google.com/apis/design/design_patterns#sorting_order). If no sort order is specified, results will be returned in an arbitrary order. Supported columns for sorting are: * deal.displayName * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * rtbMetrics.bidRequests7Days * rtbMetrics.bids7Days * rtbMetrics.adImpressions7Days * rtbMetrics.bidRate7Days * rtbMetrics.filteredBidRate7Days * rtbMetrics.mustBidRateCurrentMonth Example: 'deal.displayName, deal.updateTime desc'

func (*BuyersFinalizedDealsListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer results than requested. If requested more than 500, the server will return 500 results per page. If unspecified, the server will pick a default page size of 100.

func (*BuyersFinalizedDealsListCall) PageToken

PageToken sets the optional parameter "pageToken": The page token as returned from ListFinalizedDealsResponse.

func (*BuyersFinalizedDealsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersFinalizedDealsPauseCall

type BuyersFinalizedDealsPauseCall struct {
	// contains filtered or unexported fields
}

func (*BuyersFinalizedDealsPauseCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersFinalizedDealsPauseCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.pause" call. Exactly one of *FinalizedDeal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FinalizedDeal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersFinalizedDealsPauseCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersFinalizedDealsPauseCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersFinalizedDealsResumeCall

type BuyersFinalizedDealsResumeCall struct {
	// contains filtered or unexported fields
}

func (*BuyersFinalizedDealsResumeCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersFinalizedDealsResumeCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.resume" call. Exactly one of *FinalizedDeal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FinalizedDeal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersFinalizedDealsResumeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersFinalizedDealsResumeCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersFinalizedDealsService

type BuyersFinalizedDealsService struct {
	// contains filtered or unexported fields
}

func NewBuyersFinalizedDealsService

func NewBuyersFinalizedDealsService(s *Service) *BuyersFinalizedDealsService

func (*BuyersFinalizedDealsService) AddCreative

AddCreative: 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.

  • deal: Name of the finalized deal in the format of: `buyers/{accountId}/finalizedDeals/{dealId}`.

func (*BuyersFinalizedDealsService) Get

Get: Gets a finalized deal given its name.

- name: Format: `buyers/{accountId}/finalizedDeals/{dealId}`.

func (*BuyersFinalizedDealsService) List

List: 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.

  • parent: 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}`.

func (*BuyersFinalizedDealsService) Pause

Pause: 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.

- name: Format: `buyers/{accountId}/finalizedDeals/{dealId}`.

func (*BuyersFinalizedDealsService) Resume

Resume: 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.

- name: Format: `buyers/{accountId}/finalizedDeals/{dealId}`.

func (*BuyersFinalizedDealsService) SetReadyToServe

func (r *BuyersFinalizedDealsService) SetReadyToServe(deal string, setreadytoserverequest *SetReadyToServeRequest) *BuyersFinalizedDealsSetReadyToServeCall

SetReadyToServe: 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.

- deal: Format: `buyers/{accountId}/finalizedDeals/{dealId}`.

type BuyersFinalizedDealsSetReadyToServeCall

type BuyersFinalizedDealsSetReadyToServeCall struct {
	// contains filtered or unexported fields
}

func (*BuyersFinalizedDealsSetReadyToServeCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersFinalizedDealsSetReadyToServeCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.setReadyToServe" call. Exactly one of *FinalizedDeal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FinalizedDeal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersFinalizedDealsSetReadyToServeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersFinalizedDealsSetReadyToServeCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersProposalsAcceptCall

type BuyersProposalsAcceptCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsAcceptCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsAcceptCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.accept" call. Exactly one of *Proposal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Proposal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsAcceptCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsAcceptCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersProposalsAddNoteCall

type BuyersProposalsAddNoteCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsAddNoteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsAddNoteCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.addNote" call. Exactly one of *Proposal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Proposal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsAddNoteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsAddNoteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersProposalsCancelNegotiationCall

type BuyersProposalsCancelNegotiationCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsCancelNegotiationCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsCancelNegotiationCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.cancelNegotiation" call. Exactly one of *Proposal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Proposal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsCancelNegotiationCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsCancelNegotiationCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersProposalsDealsBatchUpdateCall

type BuyersProposalsDealsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsDealsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsDealsBatchUpdateCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.batchUpdate" call. Exactly one of *BatchUpdateDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BatchUpdateDealsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsDealsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsDealsBatchUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersProposalsDealsGetCall

type BuyersProposalsDealsGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsDealsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsDealsGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.get" call. Exactly one of *Deal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Deal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsDealsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsDealsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersProposalsDealsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersProposalsDealsListCall

type BuyersProposalsDealsListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsDealsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsDealsListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.list" call. Exactly one of *ListDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListDealsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsDealsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsDealsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersProposalsDealsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersProposalsDealsListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer results than requested. If requested more than 500, the server will return 500 results per page. If unspecified, the server will pick a default page size of 100.

func (*BuyersProposalsDealsListCall) PageToken

PageToken sets the optional parameter "pageToken": The page token as returned from ListDealsResponse.

func (*BuyersProposalsDealsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersProposalsDealsPatchCall

type BuyersProposalsDealsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsDealsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsDealsPatchCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.patch" call. Exactly one of *Deal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Deal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsDealsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsDealsPatchCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersProposalsDealsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": List of fields to be updated. If empty or unspecified, the service will update all fields populated in the update request excluding the output only fields and primitive fields with default value. Note that explicit field mask is required in order to reset a primitive field back to its default value, for example, false for boolean fields, 0 for integer fields. A special field mask consisting of a single path "*" can be used to indicate full replacement(the equivalent of PUT method), updatable fields unset or unspecified in the input will be cleared or set to default value. Output only fields will be ignored regardless of the value of updateMask.

type BuyersProposalsDealsService

type BuyersProposalsDealsService struct {
	// contains filtered or unexported fields
}

func NewBuyersProposalsDealsService

func NewBuyersProposalsDealsService(s *Service) *BuyersProposalsDealsService

func (*BuyersProposalsDealsService) BatchUpdate

func (r *BuyersProposalsDealsService) BatchUpdate(parent string, batchupdatedealsrequest *BatchUpdateDealsRequest) *BuyersProposalsDealsBatchUpdateCall

BatchUpdate: Batch updates multiple deals in the same proposal.

  • parent: The name of the proposal containing the deals to batch update. Format: buyers/{accountId}/proposals/{proposalId}.

func (*BuyersProposalsDealsService) Get

Get: Gets a deal given its name. The deal is returned at its head revision.

  • name: Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId}.

func (*BuyersProposalsDealsService) List

List: Lists all deals in a proposal. To retrieve only the finalized revision deals regardless if a deal is being renegotiated, see the FinalizedDeals resource.

  • parent: The name of the proposal containing the deals to retrieve. Format: buyers/{accountId}/proposals/{proposalId}.

func (*BuyersProposalsDealsService) Patch

Patch: 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.

  • name: Immutable. The unique identifier of the deal. Auto-generated by the server when a deal is created. Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId}.

type BuyersProposalsGetCall

type BuyersProposalsGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.get" call. Exactly one of *Proposal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Proposal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsGetCall) Header

func (c *BuyersProposalsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersProposalsGetCall) IfNoneMatch

func (c *BuyersProposalsGetCall) IfNoneMatch(entityTag string) *BuyersProposalsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersProposalsListCall

type BuyersProposalsListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.list" call. Exactly one of *ListProposalsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListProposalsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsListCall) Filter

Filter sets the optional parameter "filter": Optional query string using the Cloud API list filtering syntax (https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state

func (*BuyersProposalsListCall) Header

func (c *BuyersProposalsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersProposalsListCall) IfNoneMatch

func (c *BuyersProposalsListCall) IfNoneMatch(entityTag string) *BuyersProposalsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersProposalsListCall) PageSize

func (c *BuyersProposalsListCall) PageSize(pageSize int64) *BuyersProposalsListCall

PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer results than requested. If unspecified, the server will put a size of 500.

func (*BuyersProposalsListCall) PageToken

func (c *BuyersProposalsListCall) PageToken(pageToken string) *BuyersProposalsListCall

PageToken sets the optional parameter "pageToken": The page token as returned from ListProposalsResponse.

func (*BuyersProposalsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersProposalsPatchCall

type BuyersProposalsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsPatchCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.patch" call. Exactly one of *Proposal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Proposal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsPatchCall) Header

func (c *BuyersProposalsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersProposalsPatchCall) UpdateMask

func (c *BuyersProposalsPatchCall) UpdateMask(updateMask string) *BuyersProposalsPatchCall

UpdateMask sets the optional parameter "updateMask": List of fields to be updated. If empty or unspecified, the service will update all fields populated in the update request excluding the output only fields and primitive fields with default value. Note that explicit field mask is required in order to reset a primitive field back to its default value, for example, false for boolean fields, 0 for integer fields. A special field mask consisting of a single path "*" can be used to indicate full replacement(the equivalent of PUT method), updatable fields unset or unspecified in the input will be cleared or set to default value. Output only fields will be ignored regardless of the value of updateMask.

type BuyersProposalsSendRfpCall

type BuyersProposalsSendRfpCall struct {
	// contains filtered or unexported fields
}

func (*BuyersProposalsSendRfpCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersProposalsSendRfpCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.proposals.sendRfp" call. Exactly one of *Proposal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Proposal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersProposalsSendRfpCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersProposalsSendRfpCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BuyersProposalsService

type BuyersProposalsService struct {
	Deals *BuyersProposalsDealsService
	// contains filtered or unexported fields
}

func NewBuyersProposalsService

func NewBuyersProposalsService(s *Service) *BuyersProposalsService

func (*BuyersProposalsService) Accept

func (r *BuyersProposalsService) Accept(name string, acceptproposalrequest *AcceptProposalRequest) *BuyersProposalsAcceptCall

Accept: 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: Name of the proposal. Format: `buyers/{accountId}/proposals/{proposalId}`.

func (*BuyersProposalsService) AddNote

func (r *BuyersProposalsService) AddNote(proposal string, addnoterequest *AddNoteRequest) *BuyersProposalsAddNoteCall

AddNote: Creates a note for this proposal and sends to the seller.

  • proposal: Name of the proposal. Format: `buyers/{accountId}/proposals/{proposalId}`.

func (*BuyersProposalsService) CancelNegotiation

func (r *BuyersProposalsService) CancelNegotiation(proposal string, cancelnegotiationrequest *CancelNegotiationRequest) *BuyersProposalsCancelNegotiationCall

CancelNegotiation: 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'.

  • proposal: Name of the proposal. Format: `buyers/{accountId}/proposals/{proposalId}`.

func (*BuyersProposalsService) Get

Get: Gets a proposal using its resource name. The proposal is returned at the latest revision.

  • name: Name of the proposal. Format: `buyers/{accountId}/proposals/{proposalId}`.

func (*BuyersProposalsService) List

List: Lists proposals. A filter expression using Cloud API list filtering syntax (https://developers.google.com/authorized-buyers/apis/guides/list-filters) may be specified to filter the results.

  • parent: Parent that owns the collection of proposals Format: `buyers/{accountId}`.

func (*BuyersProposalsService) Patch

func (r *BuyersProposalsService) Patch(nameid string, proposal *Proposal) *BuyersProposalsPatchCall

Patch: 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.

  • name: Immutable. The name of the proposal serving as a unique identifier. Format: buyers/{accountId}/proposals/{proposalId}.

func (*BuyersProposalsService) SendRfp

func (r *BuyersProposalsService) SendRfp(buyer string, sendrfprequest *SendRfpRequest) *BuyersProposalsSendRfpCall

SendRfp: 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.

  • buyer: The current buyer who is sending the RFP in the format: `buyers/{accountId}`.

type BuyersPublisherProfilesGetCall

type BuyersPublisherProfilesGetCall struct {
	// contains filtered or unexported fields
}

func (*BuyersPublisherProfilesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersPublisherProfilesGetCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.publisherProfiles.get" call. Exactly one of *PublisherProfile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublisherProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersPublisherProfilesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersPublisherProfilesGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersPublisherProfilesGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BuyersPublisherProfilesListCall

type BuyersPublisherProfilesListCall struct {
	// contains filtered or unexported fields
}

func (*BuyersPublisherProfilesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BuyersPublisherProfilesListCall) Do

Do executes the "authorizedbuyersmarketplace.buyers.publisherProfiles.list" call. Exactly one of *ListPublisherProfilesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListPublisherProfilesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BuyersPublisherProfilesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BuyersPublisherProfilesListCall) Filter

Filter sets the optional parameter "filter": Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/list-filters) syntax.

func (*BuyersPublisherProfilesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BuyersPublisherProfilesListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*BuyersPublisherProfilesListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer results than requested. If requested more than 500, the server will return 500 results per page. If unspecified, the server will pick a default page size of 100.

func (*BuyersPublisherProfilesListCall) PageToken

PageToken sets the optional parameter "pageToken": The page token as returned from a previous ListPublisherProfilesResponse.

func (*BuyersPublisherProfilesListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type BuyersPublisherProfilesService

type BuyersPublisherProfilesService struct {
	// contains filtered or unexported fields
}

func NewBuyersPublisherProfilesService

func NewBuyersPublisherProfilesService(s *Service) *BuyersPublisherProfilesService

func (*BuyersPublisherProfilesService) Get

Get: Gets the requested publisher profile by name.

  • name: Name of the publisher profile. Format: `buyers/{buyerId}/publisherProfiles/{publisherProfileId}`.

func (*BuyersPublisherProfilesService) List

List: 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.

  • parent: Parent that owns the collection of publisher profiles Format: `buyers/{buyerId}`.

type BuyersService

type BuyersService struct {
	AuctionPackages *BuyersAuctionPackagesService

	Clients *BuyersClientsService

	FinalizedDeals *BuyersFinalizedDealsService

	Proposals *BuyersProposalsService

	PublisherProfiles *BuyersPublisherProfilesService
	// contains filtered or unexported fields
}

func NewBuyersService

func NewBuyersService(s *Service) *BuyersService

type CancelNegotiationRequest

type CancelNegotiationRequest struct {
}

CancelNegotiationRequest: Request to cancel an ongoing negotiation.

type Client

type Client struct {
	// DisplayName: Required. Display name shown to publishers. Must be
	// unique for clients without partnerClientId specified. Maximum length
	// of 255 characters is allowed.
	DisplayName string `json:"displayName,omitempty"`

	// Name: Output only. The resource name of the client. Format:
	// `buyers/{accountId}/clients/{clientAccountId}`
	Name string `json:"name,omitempty"`

	// PartnerClientId: Arbitrary unique identifier provided by the buyer.
	// This field can be used to associate a client with an identifier in
	// the namespace of the buyer, lookup clients by that identifier and
	// verify whether an Authorized Buyers account of the client already
	// exists. If present, must be unique across all the clients.
	PartnerClientId string `json:"partnerClientId,omitempty"`

	// Role: Required. The role assigned to the client. Each role implies a
	// set of permissions granted to the client.
	//
	// Possible values:
	//   "CLIENT_ROLE_UNSPECIFIED" - A placeholder for an undefined client
	// role. This value should never be specified in user input for create
	// or update method, otherwise an error will be returned.
	//   "CLIENT_DEAL_VIEWER" - Users associated with this client role can
	// only view proposals and deals in the Marketplace UI. They cannot
	// negotiate or approve proposals and deals sent from publishers or send
	// RFP to publishers.
	//   "CLIENT_DEAL_NEGOTIATOR" - Users associated with this client role
	// can view and negotiate on the proposals and deals in the Marketplace
	// UI sent from publishers and send RFP to publishers, but cannot
	// approve the proposals and deals by themselves. The buyer can approve
	// the proposals and deals on behalf of the client.
	//   "CLIENT_DEAL_APPROVER" - Users associated with this client role can
	// view, negotiate and approve proposals and deals in the Marketplace UI
	// and send RFP to publishers.
	Role string `json:"role,omitempty"`

	// SellerVisible: Whether the client will be visible to sellers.
	SellerVisible bool `json:"sellerVisible,omitempty"`

	// State: Output only. The state of the client.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - A placeholder for an undefined client state.
	// Should not be used.
	//   "ACTIVE" - A client that is currently active and allowed to access
	// the Authorized Buyers UI.
	//   "INACTIVE" - A client that is currently inactive and not allowed to
	// access the Authorized Buyers UI.
	State string `json:"state,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DisplayName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Client: A client represents an agency, a brand, or an advertiser customer of the buyer. Based on the client's role, its client users will have varying levels of restricted access to the Marketplace and certain other sections of the Authorized Buyers UI.

func (*Client) MarshalJSON

func (s *Client) MarshalJSON() ([]byte, error)

type ClientUser

type ClientUser struct {
	// Email: Required. The client user's email address that has to be
	// unique across all users for the same client.
	Email string `json:"email,omitempty"`

	// Name: Output only. The resource name of the client user. Format:
	// `buyers/{accountId}/clients/{clientAccountId}/users/{userId}`
	Name string `json:"name,omitempty"`

	// State: Output only. The state of the client user.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - A placeholder for an undefined user state.
	//   "INVITED" - A user who was created but hasn't accepted the
	// invitation yet, not allowed to access the Authorized Buyers UI.
	//   "ACTIVE" - A user that is currently active and allowed to access
	// the Authorized Buyers UI.
	//   "INACTIVE" - A user that is currently inactive and not allowed to
	// access the Authorized Buyers UI.
	State string `json:"state,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Email") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Email") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ClientUser: A user of a client who has restricted access to the Marketplace and certain other sections of the Authorized Buyers UI based on the role granted to the associated client.

func (*ClientUser) MarshalJSON

func (s *ClientUser) MarshalJSON() ([]byte, error)

type Contact

type Contact struct {
	// DisplayName: The display_name of the contact.
	DisplayName string `json:"displayName,omitempty"`

	// Email: Email address for the contact.
	Email string `json:"email,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DisplayName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Contact: Contains information on how a buyer or seller can be reached.

func (*Contact) MarshalJSON

func (s *Contact) MarshalJSON() ([]byte, error)

type CreativeRequirements

type CreativeRequirements struct {
	// CreativeFormat: Output only. The format of the creative, only
	// applicable for programmatic guaranteed and preferred deals.
	//
	// Possible values:
	//   "CREATIVE_FORMAT_UNSPECIFIED" - A placeholder for an unspecified
	// creative format.
	//   "DISPLAY" - Banner creatives such as image or HTML5 assets.
	//   "VIDEO" - Video creatives that can be played in a video player.
	//   "AUDIO" - Audio creatives that can play during audio content or
	// point to a third party ad server.
	CreativeFormat string `json:"creativeFormat,omitempty"`

	// CreativePreApprovalPolicy: Output only. Specifies the creative
	// pre-approval policy.
	//
	// Possible values:
	//   "CREATIVE_PRE_APPROVAL_POLICY_UNSPECIFIED" - A placeholder for an
	// undefined creative pre-approval policy.
	//   "SELLER_PRE_APPROVAL_REQUIRED" - The seller needs to approve each
	// creative before it can serve.
	//   "SELLER_PRE_APPROVAL_NOT_REQUIRED" - The seller does not need to
	// approve each creative before it can serve.
	CreativePreApprovalPolicy string `json:"creativePreApprovalPolicy,omitempty"`

	// CreativeSafeFrameCompatibility: Output only. Specifies whether the
	// creative is safeFrame compatible.
	//
	// Possible values:
	//   "CREATIVE_SAFE_FRAME_COMPATIBILITY_UNSPECIFIED" - A placeholder for
	// an undefined creative safe-frame compatibility.
	//   "COMPATIBLE" - The creatives need to be compatible with the safe
	// frame option.
	//   "INCOMPATIBLE" - The creatives can be incompatible with the safe
	// frame option.
	CreativeSafeFrameCompatibility string `json:"creativeSafeFrameCompatibility,omitempty"`

	// MaxAdDurationMs: Output only. The max duration of the video creative
	// in milliseconds. only applicable for deals with video creatives.
	MaxAdDurationMs int64 `json:"maxAdDurationMs,omitempty,string"`

	// ProgrammaticCreativeSource: Output only. Specifies the creative
	// source for programmatic deals. PUBLISHER means creative is provided
	// by seller and ADVERTISER means creative is provided by the buyer.
	//
	// Possible values:
	//   "PROGRAMMATIC_CREATIVE_SOURCE_UNSPECIFIED" - A placeholder for an
	// undefined programmatic creative source.
	//   "ADVERTISER" - The advertiser provides the creatives.
	//   "PUBLISHER" - The publisher provides the creatives to be served.
	ProgrammaticCreativeSource string `json:"programmaticCreativeSource,omitempty"`

	// SkippableAdType: Output only. Skippable video ads allow viewers to
	// skip ads after 5 seconds. Only applicable for deals with video
	// creatives.
	//
	// Possible values:
	//   "SKIPPABLE_AD_TYPE_UNSPECIFIED" - A placeholder for an unspecified
	// skippable ad type.
	//   "SKIPPABLE" - Video ad that can be skipped after 5 seconds. This
	// value will appear in RTB bid requests as
	// SkippableBidRequestType::REQUIRE_SKIPPABLE.
	//   "INSTREAM_SELECT" - Video ad that can be skipped after 5 seconds,
	// and is counted as engaged view after 30 seconds. The creative is
	// hosted on YouTube only, and viewcount of the YouTube video increments
	// after the engaged view. This value will appear in RTB bid requests as
	// SkippableBidRequestType::REQUIRE_SKIPPABLE.
	//   "NOT_SKIPPABLE" - This video ad is not skippable. This value will
	// appear in RTB bid requests as
	// SkippableBidRequestType::BLOCK_SKIPPABLE.
	//   "ANY" - This video ad can be skipped after 5 seconds or
	// not-skippable. This value will appear in RTB bid requests as
	// SkippableBidRequestType::ALLOW_SKIPPABLE.
	SkippableAdType string `json:"skippableAdType,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CreativeFormat") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CreativeFormat") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

CreativeRequirements: Message captures data about the creatives in the deal.

func (*CreativeRequirements) MarshalJSON

func (s *CreativeRequirements) MarshalJSON() ([]byte, error)

type CriteriaTargeting

type CriteriaTargeting struct {
	// ExcludedCriteriaIds: A list of numeric IDs to be excluded.
	ExcludedCriteriaIds googleapi.Int64s `json:"excludedCriteriaIds,omitempty"`

	// TargetedCriteriaIds: A list of numeric IDs to be included.
	TargetedCriteriaIds googleapi.Int64s `json:"targetedCriteriaIds,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ExcludedCriteriaIds")
	// to unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ExcludedCriteriaIds") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

CriteriaTargeting: Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. This cannot be filtered using list filter syntax.

func (*CriteriaTargeting) MarshalJSON

func (s *CriteriaTargeting) MarshalJSON() ([]byte, error)

type DayPart

type DayPart struct {
	// DayOfWeek: Day of week for the period.
	//
	// Possible values:
	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
	//   "MONDAY" - Monday
	//   "TUESDAY" - Tuesday
	//   "WEDNESDAY" - Wednesday
	//   "THURSDAY" - Thursday
	//   "FRIDAY" - Friday
	//   "SATURDAY" - Saturday
	//   "SUNDAY" - Sunday
	DayOfWeek string `json:"dayOfWeek,omitempty"`

	// EndTime: Hours in 24 hour time between 0 and 24, inclusive. Note: 24
	// is logically equivalent to 0, but is supported since in some cases
	// there may need to be differentiation made between midnight on one day
	// and midnight on the next day. Accepted values for minutes are [0, 15,
	// 30, 45]. 0 is the only acceptable minute value for hour 24. Seconds
	// and nanos are ignored.
	EndTime *TimeOfDay `json:"endTime,omitempty"`

	// StartTime: Hours in 24 hour time between 0 and 24, inclusive. Note:
	// 24 is logically equivalent to 0, but is supported since in some cases
	// there may need to be differentiation made between midnight on one day
	// and midnight on the next day. Accepted values for minutes are [0, 15,
	// 30, 45]. 0 is the only acceptable minute value for hour 24. Seconds
	// and nanos are ignored.
	StartTime *TimeOfDay `json:"startTime,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DayOfWeek") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DayOfWeek") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

DayPart: Defines targeting for a period of time on a specific week day.

func (*DayPart) MarshalJSON

func (s *DayPart) MarshalJSON() ([]byte, error)

type DayPartTargeting

type DayPartTargeting struct {
	// DayParts: The targeted weekdays and times
	DayParts []*DayPart `json:"dayParts,omitempty"`

	// TimeZoneType: The time zone type of the day parts
	//
	// Possible values:
	//   "TIME_ZONE_TYPE_UNSPECIFIED" - Default value. This field is unused.
	//   "SELLER" - The publisher's time zone
	//   "USER" - The user's time zone
	TimeZoneType string `json:"timeZoneType,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DayParts") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DayParts") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

DayPartTargeting: Represents Daypart targeting.

func (*DayPartTargeting) MarshalJSON

func (s *DayPartTargeting) MarshalJSON() ([]byte, error)

type DeactivateClientRequest

type DeactivateClientRequest struct {
}

DeactivateClientRequest: Request message for disabling a client.

type DeactivateClientUserRequest

type DeactivateClientUserRequest struct {
}

DeactivateClientUserRequest: Request message for deactivating a client user.

type Deal

type Deal struct {
	// BilledBuyer: Output only. When the client field is populated, this
	// field refers to the buyer who creates and manages the client buyer
	// and gets billed on behalf of the client buyer; when the buyer field
	// is populated, this field is the same value as buyer. Format :
	// `buyers/{buyerAccountId}`
	BilledBuyer string `json:"billedBuyer,omitempty"`

	// Buyer: Output only. Refers to a buyer in The Realtime-bidding API.
	// Format: `buyers/{buyerAccountId}`
	Buyer string `json:"buyer,omitempty"`

	// Client: Output only. Refers to a Client. Format:
	// `buyers/{buyerAccountId}/clients/{clientAccountid}`
	Client string `json:"client,omitempty"`

	// CreateTime: Output only. The time of the deal creation.
	CreateTime string `json:"createTime,omitempty"`

	// CreativeRequirements: Output only. Metadata about the creatives of
	// this deal.
	CreativeRequirements *CreativeRequirements `json:"creativeRequirements,omitempty"`

	// DealType: Output only. Type of deal.
	//
	// Possible values:
	//   "DEAL_TYPE_UNSPECIFIED" - Default, unspecified deal type.
	//   "PREFERRED_DEAL" - Preferred deals.
	//   "PRIVATE_AUCTION" - Private auction deals.
	//   "PROGRAMMATIC_GUARANTEED" - Programmatic guaranteed deals.
	DealType string `json:"dealType,omitempty"`

	// DeliveryControl: Output only. Specifies the pacing set by the
	// publisher.
	DeliveryControl *DeliveryControl `json:"deliveryControl,omitempty"`

	// Description: Output only. Free text description for the deal terms.
	Description string `json:"description,omitempty"`

	// DisplayName: Output only. The name of the deal. Maximum length of 255
	// unicode characters is allowed. Control characters are not allowed.
	// Buyers cannot update this field. Note: Not to be confused with name,
	// which is a unique identifier of the deal.
	DisplayName string `json:"displayName,omitempty"`

	// EstimatedGrossSpend: Specified by buyers in request for proposal
	// (RFP) to notify publisher the total estimated spend for the proposal.
	// Publishers will receive this information and send back proposed deals
	// accordingly.
	EstimatedGrossSpend *Money `json:"estimatedGrossSpend,omitempty"`

	// FlightEndTime: Proposed flight end time of the deal. This will
	// generally be stored in a granularity of a second. A value is not
	// necessary for Private Auction deals.
	FlightEndTime string `json:"flightEndTime,omitempty"`

	// FlightStartTime: Proposed flight start time of the deal. This will
	// generally be stored in the granularity of one second since deal
	// serving starts at seconds boundary. Any time specified with more
	// granularity (for example, in milliseconds) will be truncated towards
	// the start of time in seconds.
	FlightStartTime string `json:"flightStartTime,omitempty"`

	// Name: Immutable. The unique identifier of the deal. Auto-generated by
	// the server when a deal is created. Format:
	// buyers/{accountId}/proposals/{proposalId}/deals/{dealId}
	Name string `json:"name,omitempty"`

	// PreferredDealTerms: The terms for preferred deals.
	PreferredDealTerms *PreferredDealTerms `json:"preferredDealTerms,omitempty"`

	// PrivateAuctionTerms: The terms for private auction deals.
	PrivateAuctionTerms *PrivateAuctionTerms `json:"privateAuctionTerms,omitempty"`

	// ProgrammaticGuaranteedTerms: The terms for programmatic guaranteed
	// deals.
	ProgrammaticGuaranteedTerms *ProgrammaticGuaranteedTerms `json:"programmaticGuaranteedTerms,omitempty"`

	// ProposalRevision: Output only. The revision number for the proposal
	// and is the same value as proposal.proposal_revision. Each update to
	// deal causes the proposal revision number to auto-increment. The buyer
	// keeps track of the last revision number they know of and pass it in
	// when making an update. If the head revision number on the server has
	// since incremented, then an ABORTED error is returned during the
	// update operation to let the buyer know that a subsequent update was
	// made.
	ProposalRevision int64 `json:"proposalRevision,omitempty,string"`

	// PublisherProfile: Immutable. Reference to the seller on the deal.
	// Format:
	// `buyers/{buyerAccountId}/publisherProfiles/{publisherProfileId}`
	PublisherProfile string `json:"publisherProfile,omitempty"`

	// SellerTimeZone: Output only. Time zone of the seller used to mark the
	// boundaries of a day for daypart targeting and CPD billing.
	SellerTimeZone *TimeZone `json:"sellerTimeZone,omitempty"`

	// Targeting: Specifies the subset of inventory targeted by the deal.
	// Can be updated by the buyer before the deal is finalized.
	Targeting *MarketplaceTargeting `json:"targeting,omitempty"`

	// UpdateTime: Output only. The time when the deal was last updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "BilledBuyer") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "BilledBuyer") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Deal: A deal represents a segment of inventory for displaying ads that contains the terms and targeting information that is used for serving as well as the deal stats and status. Note: A proposal may contain multiple deals.

func (*Deal) MarshalJSON

func (s *Deal) MarshalJSON() ([]byte, error)

type DealPausingInfo

type DealPausingInfo struct {
	// PauseReason: The reason for the pausing of the deal; empty for active
	// deals.
	PauseReason string `json:"pauseReason,omitempty"`

	// PauseRole: The party that first paused the deal; unspecified for
	// active deals.
	//
	// Possible values:
	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
	// buyer/seller role.
	//   "BUYER" - Specifies the role as buyer.
	//   "SELLER" - Specifies the role as seller.
	PauseRole string `json:"pauseRole,omitempty"`

	// PausingConsented: Whether pausing is consented between buyer and
	// seller for the deal.
	PausingConsented bool `json:"pausingConsented,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PauseReason") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "PauseReason") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

DealPausingInfo: Information related to deal pausing.

func (*DealPausingInfo) MarshalJSON

func (s *DealPausingInfo) MarshalJSON() ([]byte, error)

type DeliveryControl

type DeliveryControl struct {
	// CompanionDeliveryType: Output only. Specifies roadblocking in a main
	// companion lineitem.
	//
	// Possible values:
	//   "COMPANION_DELIVERY_TYPE_UNSPECIFIED" - A placeholder for an
	// unspecified companion delivery type.
	//   "DELIVERY_OPTIONAL" - Companions are not required to serve a
	// creative set. The creative set can serve an inventory that has zero
	// or more matching companions.
	//   "DELIVERY_AT_LEAST_ONE" - At least one companion must be served in
	// order for the creative set to be used.
	//   "DELIVERY_ALL" - All companions in the set must be served in order
	// for the creative set to be used. This can still serve to inventory
	// that has more companions than can be filled.
	CompanionDeliveryType string `json:"companionDeliveryType,omitempty"`

	// CreativeRotationType: Output only. Specifies strategy to use for
	// selecting a creative when multiple creatives of the same size are
	// available.
	//
	// Possible values:
	//   "CREATIVE_ROTATION_TYPE_UNSPECIFIED" - Creatives are displayed
	// roughly the same number of times over the duration of the deal.
	//   "ROTATION_EVEN" - Creatives are displayed roughly the same number
	// of times over the duration of the deal.
	//   "ROTATION_OPTIMIZED" - Creatives are served roughly proportionally
	// to their performance.
	//   "ROTATION_MANUAL" - Creatives are served roughly proportionally to
	// their weights.
	//   "ROTATION_SEQUENTIAL" - Creatives are served exactly in sequential
	// order, also known as Storyboarding.
	CreativeRotationType string `json:"creativeRotationType,omitempty"`

	// DeliveryRateType: Output only. Specifies how the impression delivery
	// will be paced.
	//
	// Possible values:
	//   "DELIVERY_RATE_TYPE_UNSPECIFIED" - A placeholder for an undefined
	// delivery rate type.
	//   "EVENLY" - Impressions are served uniformly over the life of the
	// deal.
	//   "FRONT_LOADED" - Impressions are served front-loaded.
	//   "AS_FAST_AS_POSSIBLE" - Impressions are served as fast as possible.
	DeliveryRateType string `json:"deliveryRateType,omitempty"`

	// FrequencyCap: Output only. Specifies any frequency caps. Cannot be
	// filtered within ListDealsRequest.
	FrequencyCap []*FrequencyCap `json:"frequencyCap,omitempty"`

	// RoadblockingType: Output only. Specifies the roadblocking type in
	// display creatives.
	//
	// Possible values:
	//   "ROADBLOCKING_TYPE_UNSPECIFIED" - A placeholder for an unspecified
	// roadblocking type.
	//   "ONLY_ONE" - Only one creative from a deal can serve per ad
	// request. https://support.google.com/admanager/answer/177277.
	//   "ONE_OR_MORE" - Any number of creatives from a deal can serve
	// together per ad request.
	//   "AS_MANY_AS_POSSIBLE" - As many creatives from a deal as can fit on
	// a page will serve. This could mean anywhere from one to all of a
	// deal's creatives given the size constraints of ad slots on a page.
	//   "ALL_ROADBLOCK" - All or none of the creatives from a deal will
	// serve.
	//   "CREATIVE_SET" - A main/companion creative set roadblocking type.
	RoadblockingType string `json:"roadblockingType,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "CompanionDeliveryType") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. However, any non-pointer, non-interface field appearing in
	// ForceSendFields will be sent to the server regardless of whether the
	// field is empty or not. This may be used to include empty fields in
	// Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CompanionDeliveryType") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

DeliveryControl: Message contains details about how the deal will be paced.

func (*DeliveryControl) MarshalJSON

func (s *DeliveryControl) MarshalJSON() ([]byte, error)

type Empty

type Empty struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type FinalizedDeal

type FinalizedDeal struct {
	// Deal: A copy of the Deal made upon finalization. During
	// renegotiation, this will reflect the last finalized deal before
	// renegotiation was initiated.
	Deal *Deal `json:"deal,omitempty"`

	// DealPausingInfo: Information related to deal pausing for the deal.
	DealPausingInfo *DealPausingInfo `json:"dealPausingInfo,omitempty"`

	// DealServingStatus: Serving status of the deal.
	//
	// Possible values:
	//   "DEAL_SERVING_STATUS_UNSPECIFIED" - Unspecified.
	//   "ACTIVE" - The deal is actively serving or ready to serve when the
	// start date is reached.
	//   "ENDED" - The deal serving has ended.
	//   "PAUSED_BY_BUYER" - The deal serving is paused by buyer.
	//   "PAUSED_BY_SELLER" - The deal serving is paused by seller.
	DealServingStatus string `json:"dealServingStatus,omitempty"`

	// Name: The resource name of the finalized deal. Format:
	// `buyers/{accountId}/finalizedDeals/{finalizedDealId}`
	Name string `json:"name,omitempty"`

	// ReadyToServe: Whether the Programmatic Guaranteed deal is ready for
	// serving.
	ReadyToServe bool `json:"readyToServe,omitempty"`

	// RtbMetrics: Real-time bidding metrics for this deal.
	RtbMetrics *RtbMetrics `json:"rtbMetrics,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Deal") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Deal") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

FinalizedDeal: A finalized deal is a snapshot of the deal when both buyer and seller accept the deal. The buyer or seller can update the deal after it's been finalized and renegotiate on the deal targeting, terms and other fields, while at the same time the finalized snapshot of the deal can still be retrieved using this API. The finalized deal contains a copy of the deal as it existed when most recently finalized, as well as fields related to deal serving such as pause/resume status, RTB metrics, and more.

func (*FinalizedDeal) MarshalJSON

func (s *FinalizedDeal) MarshalJSON() ([]byte, error)

type FirstPartyMobileApplicationTargeting

type FirstPartyMobileApplicationTargeting struct {
	// ExcludedAppIds: A list of application IDs to be excluded.
	ExcludedAppIds []string `json:"excludedAppIds,omitempty"`

	// TargetedAppIds: A list of application IDs to be included.
	TargetedAppIds []string `json:"targetedAppIds,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ExcludedAppIds") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ExcludedAppIds") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

FirstPartyMobileApplicationTargeting: Represents a list of targeted and excluded mobile application IDs that publishers own. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded.

func (*FirstPartyMobileApplicationTargeting) MarshalJSON

func (s *FirstPartyMobileApplicationTargeting) MarshalJSON() ([]byte, error)

type FrequencyCap

type FrequencyCap struct {
	// MaxImpressions: The maximum number of impressions that can be served
	// to a user within the specified time period.
	MaxImpressions int64 `json:"maxImpressions,omitempty"`

	// TimeUnitType: The time unit. Along with num_time_units defines the
	// amount of time over which impressions per user are counted and
	// capped.
	//
	// Possible values:
	//   "TIME_UNIT_TYPE_UNSPECIFIED" - A placeholder for an undefined time
	// unit type. This just indicates the variable with this value hasn't
	// been initialized.
	//   "MINUTE" - Minute unit.
	//   "HOUR" - Hour unit.
	//   "DAY" - Day unit.
	//   "WEEK" - Week unit.
	//   "MONTH" - Month unit.
	//   "LIFETIME" - Lifecycle/Lifetime unit.
	//   "POD" - Pod unit.
	//   "STREAM" - Stream unit.
	TimeUnitType string `json:"timeUnitType,omitempty"`

	// TimeUnitsCount: The amount of time, in the units specified by
	// time_unit_type. Defines the amount of time over which impressions per
	// user are counted and capped.
	TimeUnitsCount int64 `json:"timeUnitsCount,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxImpressions") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "MaxImpressions") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

FrequencyCap: Message contains details about publisher-set frequency caps of the delivery.

func (*FrequencyCap) MarshalJSON

func (s *FrequencyCap) MarshalJSON() ([]byte, error)

type InventorySizeTargeting

type InventorySizeTargeting struct {
	// ExcludedInventorySizes: A list of inventory sizes to be excluded.
	ExcludedInventorySizes []*AdSize `json:"excludedInventorySizes,omitempty"`

	// TargetedInventorySizes: A list of inventory sizes to be included.
	TargetedInventorySizes []*AdSize `json:"targetedInventorySizes,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "ExcludedInventorySizes") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. However, any non-pointer, non-interface field appearing in
	// ForceSendFields will be sent to the server regardless of whether the
	// field is empty or not. This may be used to include empty fields in
	// Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ExcludedInventorySizes")
	// to include in API requests with the JSON null value. By default,
	// fields with empty values are omitted from API requests. However, any
	// field with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

InventorySizeTargeting: Represents the size of an ad unit that can be targeted on a bid request.

func (*InventorySizeTargeting) MarshalJSON

func (s *InventorySizeTargeting) MarshalJSON() ([]byte, error)

type InventoryTypeTargeting

type InventoryTypeTargeting struct {
	// InventoryTypes: The list of targeted inventory types for the bid
	// request.
	//
	// Possible values:
	//   "INVENTORY_TYPE_UNSPECIFIED" - Unspecified inventory type
	//   "BROWSER" - Desktop or mobile web browser excluding ads inside a
	// video player
	//   "MOBILE_APP" - Mobile apps other than video players and web
	// browsers
	//   "VIDEO_PLAYER" - Instream video and audio
	InventoryTypes []string `json:"inventoryTypes,omitempty"`

	// ForceSendFields is a list of field names (e.g. "InventoryTypes") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "InventoryTypes") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

InventoryTypeTargeting: Targeting of the inventory types a bid request can originate from.

func (*InventoryTypeTargeting) MarshalJSON

func (s *InventoryTypeTargeting) MarshalJSON() ([]byte, error)

type ListAuctionPackagesResponse

type ListAuctionPackagesResponse struct {
	// AuctionPackages: The list of auction packages.
	AuctionPackages []*AuctionPackage `json:"auctionPackages,omitempty"`

	// NextPageToken: Continuation token for fetching the next page of
	// results. Pass this value in the ListAuctionPackagesRequest.pageToken
	// field in the subsequent call to the `ListAuctionPackages` method to
	// retrieve the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AuctionPackages") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AuctionPackages") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ListAuctionPackagesResponse: Response message for listing auction packages.

func (*ListAuctionPackagesResponse) MarshalJSON

func (s *ListAuctionPackagesResponse) MarshalJSON() ([]byte, error)

type ListClientUsersResponse

type ListClientUsersResponse struct {
	// ClientUsers: The returned list of client users.
	ClientUsers []*ClientUser `json:"clientUsers,omitempty"`

	// NextPageToken: A token to retrieve the next page of results. Pass
	// this value in the ListClientUsersRequest.pageToken field in the
	// subsequent call to the list method to retrieve the next page of
	// results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "ClientUsers") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ClientUsers") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListClientUsersResponse: Response message for the list method.

func (*ListClientUsersResponse) MarshalJSON

func (s *ListClientUsersResponse) MarshalJSON() ([]byte, error)

type ListClientsResponse

type ListClientsResponse struct {
	// Clients: The returned list of clients.
	Clients []*Client `json:"clients,omitempty"`

	// NextPageToken: A token to retrieve the next page of results. Pass
	// this value in the ListClientsRequest.pageToken field in the
	// subsequent call to the list method to retrieve the next page of
	// results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Clients") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Clients") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListClientsResponse: Response message for the list method.

func (*ListClientsResponse) MarshalJSON

func (s *ListClientsResponse) MarshalJSON() ([]byte, error)

type ListDealsResponse

type ListDealsResponse struct {
	// Deals: The list of deals.
	Deals []*Deal `json:"deals,omitempty"`

	// NextPageToken: Token to fetch the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Deals") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Deals") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListDealsResponse: Response message for listing deals in a proposal.

func (*ListDealsResponse) MarshalJSON

func (s *ListDealsResponse) MarshalJSON() ([]byte, error)

type ListFinalizedDealsResponse

type ListFinalizedDealsResponse struct {
	// FinalizedDeals: The list of finalized deals.
	FinalizedDeals []*FinalizedDeal `json:"finalizedDeals,omitempty"`

	// NextPageToken: Token to fetch the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "FinalizedDeals") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "FinalizedDeals") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ListFinalizedDealsResponse: Response message for listing finalized deals.

func (*ListFinalizedDealsResponse) MarshalJSON

func (s *ListFinalizedDealsResponse) MarshalJSON() ([]byte, error)

type ListProposalsResponse

type ListProposalsResponse struct {
	// NextPageToken: Continuation token for fetching the next page of
	// results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Proposals: The list of proposals.
	Proposals []*Proposal `json:"proposals,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "NextPageToken") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListProposalsResponse: Response message for listing proposals.

func (*ListProposalsResponse) MarshalJSON

func (s *ListProposalsResponse) MarshalJSON() ([]byte, error)

type ListPublisherProfilesResponse

type ListPublisherProfilesResponse struct {
	// NextPageToken: Token to fetch the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PublisherProfiles: The list of matching publisher profiles.
	PublisherProfiles []*PublisherProfile `json:"publisherProfiles,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "NextPageToken") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListPublisherProfilesResponse: Response message for profiles visible to the buyer.

func (*ListPublisherProfilesResponse) MarshalJSON

func (s *ListPublisherProfilesResponse) MarshalJSON() ([]byte, error)

type MarketplaceTargeting

type MarketplaceTargeting struct {
	// DaypartTargeting: Daypart targeting information.
	DaypartTargeting *DayPartTargeting `json:"daypartTargeting,omitempty"`

	// GeoTargeting: Output only. Geo criteria IDs to be included/excluded.
	GeoTargeting *CriteriaTargeting `json:"geoTargeting,omitempty"`

	// InventorySizeTargeting: Output only. Inventory sizes to be
	// included/excluded.
	InventorySizeTargeting *InventorySizeTargeting `json:"inventorySizeTargeting,omitempty"`

	// InventoryTypeTargeting: Output only. Inventory type targeting
	// information.
	InventoryTypeTargeting *InventoryTypeTargeting `json:"inventoryTypeTargeting,omitempty"`

	// PlacementTargeting: Output only. Placement targeting information, for
	// example, URL, mobile applications.
	PlacementTargeting *PlacementTargeting `json:"placementTargeting,omitempty"`

	// TechnologyTargeting: Output only. Technology targeting information,
	// for example, operating system, device category.
	TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`

	// UserListTargeting: Buyer user list targeting information. User lists
	// can be uploaded using
	// https://developers.google.com/authorized-buyers/rtb/bulk-uploader.
	UserListTargeting *CriteriaTargeting `json:"userListTargeting,omitempty"`

	// VideoTargeting: Output only. Video targeting information.
	VideoTargeting *VideoTargeting `json:"videoTargeting,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DaypartTargeting") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DaypartTargeting") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

MarketplaceTargeting: Targeting represents different criteria that can be used to target inventory. For example, they can choose to target inventory only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise.

func (*MarketplaceTargeting) MarshalJSON

func (s *MarketplaceTargeting) MarshalJSON() ([]byte, error)

type MobileApplicationTargeting

type MobileApplicationTargeting struct {
	// FirstPartyTargeting: Publisher owned apps to be targeted or excluded
	// by the publisher to display the ads in.
	FirstPartyTargeting *FirstPartyMobileApplicationTargeting `json:"firstPartyTargeting,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FirstPartyTargeting")
	// to unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "FirstPartyTargeting") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

MobileApplicationTargeting: Mobile application targeting settings.

func (*MobileApplicationTargeting) MarshalJSON

func (s *MobileApplicationTargeting) MarshalJSON() ([]byte, error)

type Money

type Money struct {
	// CurrencyCode: The three-letter currency code defined in ISO 4217.
	CurrencyCode string `json:"currencyCode,omitempty"`

	// Nanos: Number of nano (10^-9) units of the amount. The value must be
	// between -999,999,999 and +999,999,999 inclusive. If `units` is
	// positive, `nanos` must be positive or zero. If `units` is zero,
	// `nanos` can be positive, zero, or negative. If `units` is negative,
	// `nanos` must be negative or zero. For example $-1.75 is represented
	// as `units`=-1 and `nanos`=-750,000,000.
	Nanos int64 `json:"nanos,omitempty"`

	// Units: The whole units of the amount. For example if `currencyCode`
	// is "USD", then 1 unit is one US dollar.
	Units int64 `json:"units,omitempty,string"`

	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CurrencyCode") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Money: Represents an amount of money with its currency type.

func (*Money) MarshalJSON

func (s *Money) MarshalJSON() ([]byte, error)

type Note

type Note struct {
	// CreateTime: Output only. When this note was created.
	CreateTime string `json:"createTime,omitempty"`

	// CreatorRole: Output only. The role who created the note.
	//
	// Possible values:
	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
	// buyer/seller role.
	//   "BUYER" - Specifies the role as buyer.
	//   "SELLER" - Specifies the role as seller.
	CreatorRole string `json:"creatorRole,omitempty"`

	// Note: The text of the note. Maximum length is 1024 characters.
	Note string `json:"note,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CreateTime") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Note: A text note attached to the proposal to facilitate the communication between buyers and sellers.

func (*Note) MarshalJSON

func (s *Note) MarshalJSON() ([]byte, error)

type OperatingSystemTargeting

type OperatingSystemTargeting struct {
	// OperatingSystemCriteria: IDs of operating systems to be
	// included/excluded.
	OperatingSystemCriteria *CriteriaTargeting `json:"operatingSystemCriteria,omitempty"`

	// OperatingSystemVersionCriteria: IDs of operating system versions to
	// be included/excluded.
	OperatingSystemVersionCriteria *CriteriaTargeting `json:"operatingSystemVersionCriteria,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "OperatingSystemCriteria") to unconditionally include in API
	// requests. By default, fields with empty or default values are omitted
	// from API requests. However, any non-pointer, non-interface field
	// appearing in ForceSendFields will be sent to the server regardless of
	// whether the field is empty or not. This may be used to include empty
	// fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "OperatingSystemCriteria")
	// to include in API requests with the JSON null value. By default,
	// fields with empty values are omitted from API requests. However, any
	// field with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

OperatingSystemTargeting: Represents targeting information for operating systems.

func (*OperatingSystemTargeting) MarshalJSON

func (s *OperatingSystemTargeting) MarshalJSON() ([]byte, error)

type PauseFinalizedDealRequest

type PauseFinalizedDealRequest struct {
	// Reason: The reason to pause the finalized deal, will be displayed to
	// the seller. Maximum length is 1000 characters.
	Reason string `json:"reason,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Reason") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Reason") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

PauseFinalizedDealRequest: Request message for pausing a finalized deal.

func (*PauseFinalizedDealRequest) MarshalJSON

func (s *PauseFinalizedDealRequest) MarshalJSON() ([]byte, error)

type PlacementTargeting

type PlacementTargeting struct {
	// MobileApplicationTargeting: Mobile application targeting information
	// in a deal. This doesn't apply to Auction Packages.
	MobileApplicationTargeting *MobileApplicationTargeting `json:"mobileApplicationTargeting,omitempty"`

	// UriTargeting: URLs to be included/excluded.
	UriTargeting *UriTargeting `json:"uriTargeting,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "MobileApplicationTargeting") to unconditionally include in API
	// requests. By default, fields with empty or default values are omitted
	// from API requests. However, any non-pointer, non-interface field
	// appearing in ForceSendFields will be sent to the server regardless of
	// whether the field is empty or not. This may be used to include empty
	// fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g.
	// "MobileApplicationTargeting") to include in API requests with the
	// JSON null value. By default, fields with empty values are omitted
	// from API requests. However, any field with an empty value appearing
	// in NullFields will be sent to the server as null. It is an error if a
	// field in this list has a non-empty value. This may be used to include
	// null fields in Patch requests.
	NullFields []string `json:"-"`
}

PlacementTargeting: Represents targeting about where the ads can appear, for example, certain sites or mobile applications. Different placement targeting types will be logically OR'ed.

func (*PlacementTargeting) MarshalJSON

func (s *PlacementTargeting) MarshalJSON() ([]byte, error)

type PreferredDealTerms

type PreferredDealTerms struct {
	// FixedPrice: Fixed price for the deal.
	FixedPrice *Price `json:"fixedPrice,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FixedPrice") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "FixedPrice") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

PreferredDealTerms: Pricing terms for Preferred Deals.

func (*PreferredDealTerms) MarshalJSON

func (s *PreferredDealTerms) MarshalJSON() ([]byte, error)

type Price

type Price struct {
	// Amount: The actual price with currency specified.
	Amount *Money `json:"amount,omitempty"`

	// Type: The pricing type for the deal.
	//
	// Possible values:
	//   "TYPE_UNSPECIFIED" - A placeholder for an undefined pricing type.
	// If the pricing type is unspecified, CPM will be used instead.
	//   "CPM" - Cost per thousand impressions.
	//   "CPD" - Cost per day.
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Amount") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Amount") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Price: Represents a price and a pricing type for a deal.

func (*Price) MarshalJSON

func (s *Price) MarshalJSON() ([]byte, error)

type PrivateAuctionTerms

type PrivateAuctionTerms struct {
	// FloorPrice: The minimum price buyer has to bid to compete in the
	// private auction.
	FloorPrice *Price `json:"floorPrice,omitempty"`

	// OpenAuctionAllowed: Output only. True if open auction buyers are
	// allowed to compete with invited buyers in this private auction.
	OpenAuctionAllowed bool `json:"openAuctionAllowed,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FloorPrice") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "FloorPrice") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

PrivateAuctionTerms: Pricing terms for Private Auctions.

func (*PrivateAuctionTerms) MarshalJSON

func (s *PrivateAuctionTerms) MarshalJSON() ([]byte, error)

type PrivateData

type PrivateData struct {
	// ReferenceId: A buyer specified reference ID. This can be queried in
	// the list operations (max-length: 1024 unicode code units).
	ReferenceId string `json:"referenceId,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ReferenceId") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ReferenceId") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

PrivateData: Buyers are allowed to store certain types of private data in a proposal or deal.

func (*PrivateData) MarshalJSON

func (s *PrivateData) MarshalJSON() ([]byte, error)

type ProgrammaticGuaranteedTerms

type ProgrammaticGuaranteedTerms struct {
	// FixedPrice: Fixed price for the deal.
	FixedPrice *Price `json:"fixedPrice,omitempty"`

	// GuaranteedLooks: Count of guaranteed looks. For CPD deals, buyer
	// changes to guaranteed_looks will be ignored.
	GuaranteedLooks int64 `json:"guaranteedLooks,omitempty,string"`

	// ImpressionCap: The lifetime impression cap for CPM Sponsorship deals.
	// Deal will stop serving when cap is reached.
	ImpressionCap int64 `json:"impressionCap,omitempty,string"`

	// MinimumDailyLooks: Daily minimum looks for CPD deal types. For CPD
	// deals, buyer should negotiate on this field instead of
	// guaranteed_looks.
	MinimumDailyLooks int64 `json:"minimumDailyLooks,omitempty,string"`

	// PercentShareOfVoice: For sponsorship deals, this is the percentage of
	// the seller's eligible impressions that the deal will serve until the
	// cap is reached. Valid value is within range 0~100.
	PercentShareOfVoice int64 `json:"percentShareOfVoice,omitempty,string"`

	// ReservationType: The reservation type for a Programmatic Guaranteed
	// deal. This indicates whether the number of impressions is fixed, or a
	// percent of available impressions. If not specified, the default
	// reservation type is STANDARD.
	//
	// Possible values:
	//   "RESERVATION_TYPE_UNSPECIFIED" - An unspecified reservation type.
	//   "STANDARD" - Non-sponsorship deal.
	//   "SPONSORSHIP" - Sponsorship deals don't have impression goal
	// (guaranteed_looks) and they are served based on the flight dates. For
	// CPM Sponsorship deals, impression_cap is the lifetime impression
	// limit.
	ReservationType string `json:"reservationType,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FixedPrice") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "FixedPrice") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ProgrammaticGuaranteedTerms: Pricing terms for Programmatic Guaranteed Deals.

func (*ProgrammaticGuaranteedTerms) MarshalJSON

func (s *ProgrammaticGuaranteedTerms) MarshalJSON() ([]byte, error)

type Proposal

type Proposal struct {
	// BilledBuyer: Output only. When the client field is populated, this
	// field refers to the buyer who creates and manages the client buyer
	// and gets billed on behalf of the client buyer; when the buyer field
	// is populated, this field is the same value as buyer. Format :
	// `buyers/{buyerAccountId}`
	BilledBuyer string `json:"billedBuyer,omitempty"`

	// Buyer: Output only. Refers to a buyer in The Realtime-bidding API.
	// Format: `buyers/{buyerAccountId}`
	Buyer string `json:"buyer,omitempty"`

	// BuyerContacts: Contact information for the buyer.
	BuyerContacts []*Contact `json:"buyerContacts,omitempty"`

	// BuyerPrivateData: Buyer private data (hidden from seller).
	BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"`

	// Client: Output only. Refers to a Client. Format:
	// `buyers/{buyerAccountId}/clients/{clientAccountid}`
	Client string `json:"client,omitempty"`

	// DealType: Output only. Type of deal the proposal contains.
	//
	// Possible values:
	//   "DEAL_TYPE_UNSPECIFIED" - Default, unspecified deal type.
	//   "PREFERRED_DEAL" - Preferred deals.
	//   "PRIVATE_AUCTION" - Private auction deals.
	//   "PROGRAMMATIC_GUARANTEED" - Programmatic guaranteed deals.
	DealType string `json:"dealType,omitempty"`

	// DisplayName: Output only. The descriptive name for the proposal.
	// Maximum length of 255 unicode characters is allowed. Control
	// characters are not allowed. Buyers cannot update this field. Note:
	// Not to be confused with name, which is a unique identifier of the
	// proposal.
	DisplayName string `json:"displayName,omitempty"`

	// IsRenegotiating: Output only. True if the proposal was previously
	// finalized and is now being renegotiated.
	IsRenegotiating bool `json:"isRenegotiating,omitempty"`

	// LastUpdaterOrCommentorRole: Output only. The role of the last user
	// that either updated the proposal or left a comment.
	//
	// Possible values:
	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
	// buyer/seller role.
	//   "BUYER" - Specifies the role as buyer.
	//   "SELLER" - Specifies the role as seller.
	LastUpdaterOrCommentorRole string `json:"lastUpdaterOrCommentorRole,omitempty"`

	// Name: Immutable. The name of the proposal serving as a unique
	// identifier. Format: buyers/{accountId}/proposals/{proposalId}
	Name string `json:"name,omitempty"`

	// Notes: A list of notes from the buyer and the seller attached to this
	// proposal.
	Notes []*Note `json:"notes,omitempty"`

	// OriginatorRole: Output only. Indicates whether the buyer/seller
	// created the proposal.
	//
	// Possible values:
	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
	// buyer/seller role.
	//   "BUYER" - Specifies the role as buyer.
	//   "SELLER" - Specifies the role as seller.
	OriginatorRole string `json:"originatorRole,omitempty"`

	// PausingConsented: Whether pausing is allowed for the proposal. This
	// is a negotiable term between buyers and publishers.
	PausingConsented bool `json:"pausingConsented,omitempty"`

	// ProposalRevision: Output only. The revision number for the proposal.
	// Each update to the proposal or deal causes the proposal revision
	// number to auto-increment. The buyer keeps track of the last revision
	// number they know of and pass it in when making an update. If the head
	// revision number on the server has since incremented, then an ABORTED
	// error is returned during the update operation to let the buyer know
	// that a subsequent update was made.
	ProposalRevision int64 `json:"proposalRevision,omitempty,string"`

	// PublisherProfile: Immutable. Reference to the seller on the proposal.
	// Format:
	// `buyers/{buyerAccountId}/publisherProfiles/{publisherProfileId}`
	// Note: This field may be set only when creating the resource.
	// Modifying this field while updating the resource will result in an
	// error.
	PublisherProfile string `json:"publisherProfile,omitempty"`

	// SellerContacts: Output only. Contact information for the seller.
	SellerContacts []*Contact `json:"sellerContacts,omitempty"`

	// State: Output only. Indicates the state of the proposal.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Unspecified proposal state
	//   "BUYER_REVIEW_REQUESTED" - When a proposal is waiting for buyer to
	// review.
	//   "SELLER_REVIEW_REQUESTED" - When the proposal is waiting for the
	// seller to review.
	//   "BUYER_ACCEPTANCE_REQUESTED" - When the seller accepted the
	// proposal and sent it to the buyer for review.
	//   "FINALIZED" - When both buyer and seller has accepted the proposal
	//   "TERMINATED" - When either buyer or seller has cancelled the
	// proposal
	State string `json:"state,omitempty"`

	// TermsAndConditions: Output only. The terms and conditions associated
	// with this proposal. Accepting a proposal implies acceptance of this
	// field. This is created by the seller, the buyer can only view it.
	TermsAndConditions string `json:"termsAndConditions,omitempty"`

	// UpdateTime: Output only. The time when the proposal was last revised.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "BilledBuyer") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "BilledBuyer") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Proposal: Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer.

func (*Proposal) MarshalJSON

func (s *Proposal) MarshalJSON() ([]byte, error)

type PublisherProfile

type PublisherProfile struct {
	// AudienceDescription: Description on the publisher's audience.
	AudienceDescription string `json:"audienceDescription,omitempty"`

	// DirectDealsContact: Contact information for direct reservation deals.
	// This is free text entered by the publisher and may include
	// information like names, phone numbers and email addresses.
	DirectDealsContact string `json:"directDealsContact,omitempty"`

	// DisplayName: Display name of the publisher profile. Can be used to
	// filter the response of the publisherProfiles.list method.
	DisplayName string `json:"displayName,omitempty"`

	// Domains: The list of domains represented in this publisher profile.
	// Empty if this is a parent profile. These are top private domains,
	// meaning that these will not contain a string like
	// "photos.google.co.uk/123", but will instead contain "google.co.uk".
	// Can be used to filter the response of the publisherProfiles.list
	// method.
	Domains []string `json:"domains,omitempty"`

	// IsParent: Indicates if this profile is the parent profile of the
	// seller. A parent profile represents all the inventory from the
	// seller, as opposed to child profile that is created to brand a
	// portion of inventory. One seller has only one parent publisher
	// profile, and can have multiple child profiles. See
	// https://support.google.com/admanager/answer/6035806 for details. Can
	// be used to filter the response of the publisherProfiles.list method
	// by setting the filter to "is_parent: true".
	IsParent bool `json:"isParent,omitempty"`

	// LogoUrl: A Google public URL to the logo for this publisher profile.
	// The logo is stored as a PNG, JPG, or GIF image.
	LogoUrl string `json:"logoUrl,omitempty"`

	// MediaKitUrl: URL to additional marketing and sales materials.
	MediaKitUrl string `json:"mediaKitUrl,omitempty"`

	// MobileApps: The list of apps represented in this publisher profile.
	// Empty if this is a parent profile.
	MobileApps []*PublisherProfileMobileApplication `json:"mobileApps,omitempty"`

	// Name: Name of the publisher profile. Format:
	// `buyers/{buyer}/publisherProfiles/{publisher_profile}`
	Name string `json:"name,omitempty"`

	// Overview: Overview of the publisher.
	Overview string `json:"overview,omitempty"`

	// PitchStatement: Statement explaining what's unique about publisher's
	// business, and why buyers should partner with the publisher.
	PitchStatement string `json:"pitchStatement,omitempty"`

	// ProgrammaticDealsContact: Contact information for programmatic deals.
	// This is free text entered by the publisher and may include
	// information like names, phone numbers and email addresses.
	ProgrammaticDealsContact string `json:"programmaticDealsContact,omitempty"`

	// PublisherCode: A unique identifying code for the seller. This value
	// is the same for all of the seller's parent and child publisher
	// profiles. Can be used to filter the response of the
	// publisherProfiles.list method.
	PublisherCode string `json:"publisherCode,omitempty"`

	// SamplePageUrl: URL to a sample content page.
	SamplePageUrl string `json:"samplePageUrl,omitempty"`

	// TopHeadlines: Up to three key metrics and rankings. For example, "#1
	// Mobile News Site for 20 Straight Months".
	TopHeadlines []string `json:"topHeadlines,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AudienceDescription")
	// to unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AudienceDescription") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

PublisherProfile: The values in the publisher profile are supplied by the publisher. All fields are not filterable unless stated otherwise.

func (*PublisherProfile) MarshalJSON

func (s *PublisherProfile) MarshalJSON() ([]byte, error)

type PublisherProfileMobileApplication

type PublisherProfileMobileApplication struct {
	// AppStore: The app store the app belongs to. Can be used to filter the
	// response of the publisherProfiles.list method.
	//
	// Possible values:
	//   "APP_STORE_TYPE_UNSPECIFIED" - A placeholder for an unknown app
	// store.
	//   "APPLE_ITUNES" - Apple iTunes
	//   "GOOGLE_PLAY" - Google Play
	//   "ROKU" - Roku
	//   "AMAZON_FIRE_TV" - Amazon Fire TV
	//   "PLAYSTATION" - PlayStation
	//   "XBOX" - Xbox
	//   "SAMSUNG_TV" - Samsung TV
	//   "AMAZON" - Amazon Appstore
	//   "OPPO" - OPPO App Market
	//   "SAMSUNG" - Samsung Galaxy Store
	//   "VIVO" - VIVO App Store
	//   "XIAOMI" - Xiaomi GetApps
	//   "LG_TV" - LG TV
	AppStore string `json:"appStore,omitempty"`

	// ExternalAppId: The external ID for the app from its app store. Can be
	// used to filter the response of the publisherProfiles.list method.
	ExternalAppId string `json:"externalAppId,omitempty"`

	// Name: The name of the app.
	Name string `json:"name,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AppStore") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AppStore") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

PublisherProfileMobileApplication: A mobile application that contains a external app ID, name, and app store.

func (*PublisherProfileMobileApplication) MarshalJSON

func (s *PublisherProfileMobileApplication) MarshalJSON() ([]byte, error)

type ResumeFinalizedDealRequest

type ResumeFinalizedDealRequest struct {
}

ResumeFinalizedDealRequest: Request message for resuming a finalized deal.

type RtbMetrics

type RtbMetrics struct {
	// AdImpressions7Days: Ad impressions in last 7 days.
	AdImpressions7Days int64 `json:"adImpressions7Days,omitempty,string"`

	// BidRate7Days: Bid rate in last 7 days, calculated by (bids / bid
	// requests).
	BidRate7Days float64 `json:"bidRate7Days,omitempty"`

	// BidRequests7Days: Bid requests in last 7 days.
	BidRequests7Days int64 `json:"bidRequests7Days,omitempty,string"`

	// Bids7Days: Bids in last 7 days.
	Bids7Days int64 `json:"bids7Days,omitempty,string"`

	// FilteredBidRate7Days: Filtered bid rate in last 7 days, calculated by
	// (filtered bids / bids).
	FilteredBidRate7Days float64 `json:"filteredBidRate7Days,omitempty"`

	// MustBidRateCurrentMonth: Must bid rate for current month.
	MustBidRateCurrentMonth float64 `json:"mustBidRateCurrentMonth,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AdImpressions7Days")
	// to unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AdImpressions7Days") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

RtbMetrics: Real-time bidding metrics. For what each metric means refer to Report metrics (https://support.google.com/adxbuyer/answer/6115195#report-metrics)

func (*RtbMetrics) MarshalJSON

func (s *RtbMetrics) MarshalJSON() ([]byte, error)

func (*RtbMetrics) UnmarshalJSON

func (s *RtbMetrics) UnmarshalJSON(data []byte) error

type SendRfpRequest

type SendRfpRequest struct {
	// BuyerContacts: Contact information for the buyer.
	BuyerContacts []*Contact `json:"buyerContacts,omitempty"`

	// Client: If the current buyer is sending the RFP on behalf of its
	// client, use this field to specify the name of the client in the
	// format: `buyers/{accountId}/clients/{clientAccountid}`.
	Client string `json:"client,omitempty"`

	// DisplayName: Required. The display name of the proposal being created
	// by this RFP.
	DisplayName string `json:"displayName,omitempty"`

	// EstimatedGrossSpend: Specified by buyers in request for proposal
	// (RFP) to notify publisher the total estimated spend for the proposal.
	// Publishers will receive this information and send back proposed deals
	// accordingly.
	EstimatedGrossSpend *Money `json:"estimatedGrossSpend,omitempty"`

	// FlightEndTime: Required. Proposed flight end time of the RFP. A
	// timestamp in RFC3339 UTC "Zulu" format. Note that the specified value
	// will be truncated to a granularity of one second.
	FlightEndTime string `json:"flightEndTime,omitempty"`

	// FlightStartTime: Required. Proposed flight start time of the RFP. A
	// timestamp in RFC3339 UTC "Zulu" format. Note that the specified value
	// will be truncated to a granularity of one second.
	FlightStartTime string `json:"flightStartTime,omitempty"`

	// GeoTargeting: Geo criteria IDs to be targeted. Refer to Geo tables.
	GeoTargeting *CriteriaTargeting `json:"geoTargeting,omitempty"`

	// InventorySizeTargeting: Inventory sizes to be targeted.
	InventorySizeTargeting *InventorySizeTargeting `json:"inventorySizeTargeting,omitempty"`

	// Note: A message that is sent to the publisher. Maximum length is 1024
	// characters.
	Note string `json:"note,omitempty"`

	// PreferredDealTerms: The terms for preferred deals.
	PreferredDealTerms *PreferredDealTerms `json:"preferredDealTerms,omitempty"`

	// ProgrammaticGuaranteedTerms: The terms for programmatic guaranteed
	// deals.
	ProgrammaticGuaranteedTerms *ProgrammaticGuaranteedTerms `json:"programmaticGuaranteedTerms,omitempty"`

	// PublisherProfile: Required. The profile of the publisher who will
	// receive this RFP in the format:
	// `buyers/{accountId}/publisherProfiles/{publisherProfileId}`.
	PublisherProfile string `json:"publisherProfile,omitempty"`

	// ForceSendFields is a list of field names (e.g. "BuyerContacts") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "BuyerContacts") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

SendRfpRequest: Request to send an RFP. All fields in this request are proposed to publisher and subject to changes by publisher during later negotiation.

func (*SendRfpRequest) MarshalJSON

func (s *SendRfpRequest) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Bidders *BiddersService

	Buyers *BuyersService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SetReadyToServeRequest

type SetReadyToServeRequest struct {
}

SetReadyToServeRequest: Request message for setting ready to serve for a finalized deal.

type SubscribeAuctionPackageRequest

type SubscribeAuctionPackageRequest struct {
}

SubscribeAuctionPackageRequest: Request message for SubscribeAuctionPackage.

type SubscribeClientsRequest

type SubscribeClientsRequest struct {
	// Clients: Optional. A list of client buyers to subscribe to the
	// auction package, with client buyer in the format
	// `buyers/{accountId}/clients/{clientAccountId}`. The current buyer
	// will be subscribed to the auction package regardless of the list
	// contents if not already.
	Clients []string `json:"clients,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Clients") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Clients") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

SubscribeClientsRequest: Request message for SubscribeAuctionPackageClients.

func (*SubscribeClientsRequest) MarshalJSON

func (s *SubscribeClientsRequest) MarshalJSON() ([]byte, error)

type TechnologyTargeting

type TechnologyTargeting struct {
	// DeviceCapabilityTargeting: IDs of device capabilities to be
	// included/excluded.
	DeviceCapabilityTargeting *CriteriaTargeting `json:"deviceCapabilityTargeting,omitempty"`

	// DeviceCategoryTargeting: IDs of device categories to be
	// included/excluded.
	DeviceCategoryTargeting *CriteriaTargeting `json:"deviceCategoryTargeting,omitempty"`

	// OperatingSystemTargeting: Operating system related targeting
	// information.
	OperatingSystemTargeting *OperatingSystemTargeting `json:"operatingSystemTargeting,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "DeviceCapabilityTargeting") to unconditionally include in API
	// requests. By default, fields with empty or default values are omitted
	// from API requests. However, any non-pointer, non-interface field
	// appearing in ForceSendFields will be sent to the server regardless of
	// whether the field is empty or not. This may be used to include empty
	// fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g.
	// "DeviceCapabilityTargeting") to include in API requests with the JSON
	// null value. By default, fields with empty values are omitted from API
	// requests. However, any field with an empty value appearing in
	// NullFields will be sent to the server as null. It is an error if a
	// field in this list has a non-empty value. This may be used to include
	// null fields in Patch requests.
	NullFields []string `json:"-"`
}

TechnologyTargeting: Represents targeting about various types of technology.

func (*TechnologyTargeting) MarshalJSON

func (s *TechnologyTargeting) MarshalJSON() ([]byte, error)

type TimeOfDay

type TimeOfDay struct {
	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API
	// may choose to allow the value "24:00:00" for scenarios like business
	// closing time.
	Hours int64 `json:"hours,omitempty"`

	// Minutes: Minutes of hour of day. Must be from 0 to 59.
	Minutes int64 `json:"minutes,omitempty"`

	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to
	// 999,999,999.
	Nanos int64 `json:"nanos,omitempty"`

	// Seconds: Seconds of minutes of the time. Must normally be from 0 to
	// 59. An API may allow the value 60 if it allows leap-seconds.
	Seconds int64 `json:"seconds,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Hours") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Hours") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

TimeOfDay: Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.

func (*TimeOfDay) MarshalJSON

func (s *TimeOfDay) MarshalJSON() ([]byte, error)

type TimeZone

type TimeZone struct {
	// Id: IANA Time Zone Database time zone, e.g. "America/New_York".
	Id string `json:"id,omitempty"`

	// Version: Optional. IANA Time Zone Database version number, e.g.
	// "2019a".
	Version string `json:"version,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Id") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Id") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

TimeZone: Represents a time zone from the IANA Time Zone Database (https://www.iana.org/time-zones).

func (*TimeZone) MarshalJSON

func (s *TimeZone) MarshalJSON() ([]byte, error)

type UnsubscribeAuctionPackageRequest

type UnsubscribeAuctionPackageRequest struct {
}

UnsubscribeAuctionPackageRequest: Request message for UnsubscribeAuctionPackage.

type UnsubscribeClientsRequest

type UnsubscribeClientsRequest struct {
	// Clients: Optional. A list of client buyers to unsubscribe from the
	// auction package, with client buyer in the format
	// `buyers/{accountId}/clients/{clientAccountId}`.
	Clients []string `json:"clients,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Clients") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Clients") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

UnsubscribeClientsRequest: Request message for UnsubscribeAuctionPackage.

func (*UnsubscribeClientsRequest) MarshalJSON

func (s *UnsubscribeClientsRequest) MarshalJSON() ([]byte, error)

type UpdateDealRequest

type UpdateDealRequest struct {
	// Deal: Required. The deal to update. The deal's `name` field is used
	// to identify the deal to be updated. Note: proposal_revision will have
	// to be provided within the resource or else an error will be thrown.
	// Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId}
	Deal *Deal `json:"deal,omitempty"`

	// UpdateMask: List of fields to be updated. If empty or unspecified,
	// the service will update all fields populated in the update request
	// excluding the output only fields and primitive fields with default
	// value. Note that explicit field mask is required in order to reset a
	// primitive field back to its default value, for example, false for
	// boolean fields, 0 for integer fields. A special field mask consisting
	// of a single path "*" can be used to indicate full replacement(the
	// equivalent of PUT method), updatable fields unset or unspecified in
	// the input will be cleared or set to default value. Output only fields
	// will be ignored regardless of the value of updateMask.
	UpdateMask string `json:"updateMask,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Deal") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Deal") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

UpdateDealRequest: Request message for updating the deal at the given revision number.

func (*UpdateDealRequest) MarshalJSON

func (s *UpdateDealRequest) MarshalJSON() ([]byte, error)

type UriTargeting

type UriTargeting struct {
	// ExcludedUris: A list of URLs to be excluded.
	ExcludedUris []string `json:"excludedUris,omitempty"`

	// TargetedUris: A list of URLs to be included.
	TargetedUris []string `json:"targetedUris,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ExcludedUris") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ExcludedUris") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

UriTargeting: Represents a list of targeted and excluded URLs (for example, google.com). For Private Auction Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn't apply.

func (*UriTargeting) MarshalJSON

func (s *UriTargeting) MarshalJSON() ([]byte, error)

type VideoTargeting

type VideoTargeting struct {
	// ExcludedPositionTypes: A list of video positions to be excluded. When
	// this field is populated, the targeted_position_types field must be
	// empty.
	//
	// Possible values:
	//   "POSITION_TYPE_UNSPECIFIED" - A placeholder for an undefined video
	// position.
	//   "PREROLL" - Ad is played before the video.
	//   "MIDROLL" - Ad is played during the video.
	//   "POSTROLL" - Ad is played after the video.
	ExcludedPositionTypes []string `json:"excludedPositionTypes,omitempty"`

	// TargetedPositionTypes: A list of video positions to be included. When
	// this field is populated, the excluded_position_types field must be
	// empty.
	//
	// Possible values:
	//   "POSITION_TYPE_UNSPECIFIED" - A placeholder for an undefined video
	// position.
	//   "PREROLL" - Ad is played before the video.
	//   "MIDROLL" - Ad is played during the video.
	//   "POSTROLL" - Ad is played after the video.
	TargetedPositionTypes []string `json:"targetedPositionTypes,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "ExcludedPositionTypes") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. However, any non-pointer, non-interface field appearing in
	// ForceSendFields will be sent to the server regardless of whether the
	// field is empty or not. This may be used to include empty fields in
	// Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ExcludedPositionTypes") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

VideoTargeting: Represents targeting information about video.

func (*VideoTargeting) MarshalJSON

func (s *VideoTargeting) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL