...

Source file src/google.golang.org/api/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go

Documentation: google.golang.org/api/adexchangebuyer2/v2beta1

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package adexchangebuyer2 provides access to the Ad Exchange Buyer API II.
     8  //
     9  // For product documentation, see: https://developers.google.com/authorized-buyers/apis/reference/rest/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/adexchangebuyer2/v2beta1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	adexchangebuyer2Service, err := adexchangebuyer2.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	adexchangebuyer2Service, err := adexchangebuyer2.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	adexchangebuyer2Service, err := adexchangebuyer2.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package adexchangebuyer2 // import "google.golang.org/api/adexchangebuyer2/v2beta1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "adexchangebuyer2:v2beta1"
    90  const apiName = "adexchangebuyer2"
    91  const apiVersion = "v2beta1"
    92  const basePath = "https://adexchangebuyer.googleapis.com/"
    93  const basePathTemplate = "https://adexchangebuyer.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://adexchangebuyer.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// Manage your Ad Exchange buyer account configuration
    99  	AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchange.buyer"
   100  )
   101  
   102  // NewService creates a new Service.
   103  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   104  	scopesOption := internaloption.WithDefaultScopes(
   105  		"https://www.googleapis.com/auth/adexchange.buyer",
   106  	)
   107  	// NOTE: prepend, so we don't override user-specified scopes.
   108  	opts = append([]option.ClientOption{scopesOption}, opts...)
   109  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   110  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   111  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   112  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   113  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	s, err := New(client)
   118  	if err != nil {
   119  		return nil, err
   120  	}
   121  	if endpoint != "" {
   122  		s.BasePath = endpoint
   123  	}
   124  	return s, nil
   125  }
   126  
   127  // New creates a new Service. It uses the provided http.Client for requests.
   128  //
   129  // Deprecated: please use NewService instead.
   130  // To provide a custom HTTP client, use option.WithHTTPClient.
   131  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   132  func New(client *http.Client) (*Service, error) {
   133  	if client == nil {
   134  		return nil, errors.New("client is nil")
   135  	}
   136  	s := &Service{client: client, BasePath: basePath}
   137  	s.Accounts = NewAccountsService(s)
   138  	s.Bidders = NewBiddersService(s)
   139  	s.Buyers = NewBuyersService(s)
   140  	return s, nil
   141  }
   142  
   143  type Service struct {
   144  	client    *http.Client
   145  	BasePath  string // API endpoint base URL
   146  	UserAgent string // optional additional User-Agent fragment
   147  
   148  	Accounts *AccountsService
   149  
   150  	Bidders *BiddersService
   151  
   152  	Buyers *BuyersService
   153  }
   154  
   155  func (s *Service) userAgent() string {
   156  	if s.UserAgent == "" {
   157  		return googleapi.UserAgent
   158  	}
   159  	return googleapi.UserAgent + " " + s.UserAgent
   160  }
   161  
   162  func NewAccountsService(s *Service) *AccountsService {
   163  	rs := &AccountsService{s: s}
   164  	rs.Clients = NewAccountsClientsService(s)
   165  	rs.Creatives = NewAccountsCreativesService(s)
   166  	rs.FinalizedProposals = NewAccountsFinalizedProposalsService(s)
   167  	rs.Products = NewAccountsProductsService(s)
   168  	rs.Proposals = NewAccountsProposalsService(s)
   169  	rs.PublisherProfiles = NewAccountsPublisherProfilesService(s)
   170  	return rs
   171  }
   172  
   173  type AccountsService struct {
   174  	s *Service
   175  
   176  	Clients *AccountsClientsService
   177  
   178  	Creatives *AccountsCreativesService
   179  
   180  	FinalizedProposals *AccountsFinalizedProposalsService
   181  
   182  	Products *AccountsProductsService
   183  
   184  	Proposals *AccountsProposalsService
   185  
   186  	PublisherProfiles *AccountsPublisherProfilesService
   187  }
   188  
   189  func NewAccountsClientsService(s *Service) *AccountsClientsService {
   190  	rs := &AccountsClientsService{s: s}
   191  	rs.Invitations = NewAccountsClientsInvitationsService(s)
   192  	rs.Users = NewAccountsClientsUsersService(s)
   193  	return rs
   194  }
   195  
   196  type AccountsClientsService struct {
   197  	s *Service
   198  
   199  	Invitations *AccountsClientsInvitationsService
   200  
   201  	Users *AccountsClientsUsersService
   202  }
   203  
   204  func NewAccountsClientsInvitationsService(s *Service) *AccountsClientsInvitationsService {
   205  	rs := &AccountsClientsInvitationsService{s: s}
   206  	return rs
   207  }
   208  
   209  type AccountsClientsInvitationsService struct {
   210  	s *Service
   211  }
   212  
   213  func NewAccountsClientsUsersService(s *Service) *AccountsClientsUsersService {
   214  	rs := &AccountsClientsUsersService{s: s}
   215  	return rs
   216  }
   217  
   218  type AccountsClientsUsersService struct {
   219  	s *Service
   220  }
   221  
   222  func NewAccountsCreativesService(s *Service) *AccountsCreativesService {
   223  	rs := &AccountsCreativesService{s: s}
   224  	rs.DealAssociations = NewAccountsCreativesDealAssociationsService(s)
   225  	return rs
   226  }
   227  
   228  type AccountsCreativesService struct {
   229  	s *Service
   230  
   231  	DealAssociations *AccountsCreativesDealAssociationsService
   232  }
   233  
   234  func NewAccountsCreativesDealAssociationsService(s *Service) *AccountsCreativesDealAssociationsService {
   235  	rs := &AccountsCreativesDealAssociationsService{s: s}
   236  	return rs
   237  }
   238  
   239  type AccountsCreativesDealAssociationsService struct {
   240  	s *Service
   241  }
   242  
   243  func NewAccountsFinalizedProposalsService(s *Service) *AccountsFinalizedProposalsService {
   244  	rs := &AccountsFinalizedProposalsService{s: s}
   245  	return rs
   246  }
   247  
   248  type AccountsFinalizedProposalsService struct {
   249  	s *Service
   250  }
   251  
   252  func NewAccountsProductsService(s *Service) *AccountsProductsService {
   253  	rs := &AccountsProductsService{s: s}
   254  	return rs
   255  }
   256  
   257  type AccountsProductsService struct {
   258  	s *Service
   259  }
   260  
   261  func NewAccountsProposalsService(s *Service) *AccountsProposalsService {
   262  	rs := &AccountsProposalsService{s: s}
   263  	return rs
   264  }
   265  
   266  type AccountsProposalsService struct {
   267  	s *Service
   268  }
   269  
   270  func NewAccountsPublisherProfilesService(s *Service) *AccountsPublisherProfilesService {
   271  	rs := &AccountsPublisherProfilesService{s: s}
   272  	return rs
   273  }
   274  
   275  type AccountsPublisherProfilesService struct {
   276  	s *Service
   277  }
   278  
   279  func NewBiddersService(s *Service) *BiddersService {
   280  	rs := &BiddersService{s: s}
   281  	rs.Accounts = NewBiddersAccountsService(s)
   282  	rs.FilterSets = NewBiddersFilterSetsService(s)
   283  	return rs
   284  }
   285  
   286  type BiddersService struct {
   287  	s *Service
   288  
   289  	Accounts *BiddersAccountsService
   290  
   291  	FilterSets *BiddersFilterSetsService
   292  }
   293  
   294  func NewBiddersAccountsService(s *Service) *BiddersAccountsService {
   295  	rs := &BiddersAccountsService{s: s}
   296  	rs.FilterSets = NewBiddersAccountsFilterSetsService(s)
   297  	return rs
   298  }
   299  
   300  type BiddersAccountsService struct {
   301  	s *Service
   302  
   303  	FilterSets *BiddersAccountsFilterSetsService
   304  }
   305  
   306  func NewBiddersAccountsFilterSetsService(s *Service) *BiddersAccountsFilterSetsService {
   307  	rs := &BiddersAccountsFilterSetsService{s: s}
   308  	rs.BidMetrics = NewBiddersAccountsFilterSetsBidMetricsService(s)
   309  	rs.BidResponseErrors = NewBiddersAccountsFilterSetsBidResponseErrorsService(s)
   310  	rs.BidResponsesWithoutBids = NewBiddersAccountsFilterSetsBidResponsesWithoutBidsService(s)
   311  	rs.FilteredBidRequests = NewBiddersAccountsFilterSetsFilteredBidRequestsService(s)
   312  	rs.FilteredBids = NewBiddersAccountsFilterSetsFilteredBidsService(s)
   313  	rs.ImpressionMetrics = NewBiddersAccountsFilterSetsImpressionMetricsService(s)
   314  	rs.LosingBids = NewBiddersAccountsFilterSetsLosingBidsService(s)
   315  	rs.NonBillableWinningBids = NewBiddersAccountsFilterSetsNonBillableWinningBidsService(s)
   316  	return rs
   317  }
   318  
   319  type BiddersAccountsFilterSetsService struct {
   320  	s *Service
   321  
   322  	BidMetrics *BiddersAccountsFilterSetsBidMetricsService
   323  
   324  	BidResponseErrors *BiddersAccountsFilterSetsBidResponseErrorsService
   325  
   326  	BidResponsesWithoutBids *BiddersAccountsFilterSetsBidResponsesWithoutBidsService
   327  
   328  	FilteredBidRequests *BiddersAccountsFilterSetsFilteredBidRequestsService
   329  
   330  	FilteredBids *BiddersAccountsFilterSetsFilteredBidsService
   331  
   332  	ImpressionMetrics *BiddersAccountsFilterSetsImpressionMetricsService
   333  
   334  	LosingBids *BiddersAccountsFilterSetsLosingBidsService
   335  
   336  	NonBillableWinningBids *BiddersAccountsFilterSetsNonBillableWinningBidsService
   337  }
   338  
   339  func NewBiddersAccountsFilterSetsBidMetricsService(s *Service) *BiddersAccountsFilterSetsBidMetricsService {
   340  	rs := &BiddersAccountsFilterSetsBidMetricsService{s: s}
   341  	return rs
   342  }
   343  
   344  type BiddersAccountsFilterSetsBidMetricsService struct {
   345  	s *Service
   346  }
   347  
   348  func NewBiddersAccountsFilterSetsBidResponseErrorsService(s *Service) *BiddersAccountsFilterSetsBidResponseErrorsService {
   349  	rs := &BiddersAccountsFilterSetsBidResponseErrorsService{s: s}
   350  	return rs
   351  }
   352  
   353  type BiddersAccountsFilterSetsBidResponseErrorsService struct {
   354  	s *Service
   355  }
   356  
   357  func NewBiddersAccountsFilterSetsBidResponsesWithoutBidsService(s *Service) *BiddersAccountsFilterSetsBidResponsesWithoutBidsService {
   358  	rs := &BiddersAccountsFilterSetsBidResponsesWithoutBidsService{s: s}
   359  	return rs
   360  }
   361  
   362  type BiddersAccountsFilterSetsBidResponsesWithoutBidsService struct {
   363  	s *Service
   364  }
   365  
   366  func NewBiddersAccountsFilterSetsFilteredBidRequestsService(s *Service) *BiddersAccountsFilterSetsFilteredBidRequestsService {
   367  	rs := &BiddersAccountsFilterSetsFilteredBidRequestsService{s: s}
   368  	return rs
   369  }
   370  
   371  type BiddersAccountsFilterSetsFilteredBidRequestsService struct {
   372  	s *Service
   373  }
   374  
   375  func NewBiddersAccountsFilterSetsFilteredBidsService(s *Service) *BiddersAccountsFilterSetsFilteredBidsService {
   376  	rs := &BiddersAccountsFilterSetsFilteredBidsService{s: s}
   377  	rs.Creatives = NewBiddersAccountsFilterSetsFilteredBidsCreativesService(s)
   378  	rs.Details = NewBiddersAccountsFilterSetsFilteredBidsDetailsService(s)
   379  	return rs
   380  }
   381  
   382  type BiddersAccountsFilterSetsFilteredBidsService struct {
   383  	s *Service
   384  
   385  	Creatives *BiddersAccountsFilterSetsFilteredBidsCreativesService
   386  
   387  	Details *BiddersAccountsFilterSetsFilteredBidsDetailsService
   388  }
   389  
   390  func NewBiddersAccountsFilterSetsFilteredBidsCreativesService(s *Service) *BiddersAccountsFilterSetsFilteredBidsCreativesService {
   391  	rs := &BiddersAccountsFilterSetsFilteredBidsCreativesService{s: s}
   392  	return rs
   393  }
   394  
   395  type BiddersAccountsFilterSetsFilteredBidsCreativesService struct {
   396  	s *Service
   397  }
   398  
   399  func NewBiddersAccountsFilterSetsFilteredBidsDetailsService(s *Service) *BiddersAccountsFilterSetsFilteredBidsDetailsService {
   400  	rs := &BiddersAccountsFilterSetsFilteredBidsDetailsService{s: s}
   401  	return rs
   402  }
   403  
   404  type BiddersAccountsFilterSetsFilteredBidsDetailsService struct {
   405  	s *Service
   406  }
   407  
   408  func NewBiddersAccountsFilterSetsImpressionMetricsService(s *Service) *BiddersAccountsFilterSetsImpressionMetricsService {
   409  	rs := &BiddersAccountsFilterSetsImpressionMetricsService{s: s}
   410  	return rs
   411  }
   412  
   413  type BiddersAccountsFilterSetsImpressionMetricsService struct {
   414  	s *Service
   415  }
   416  
   417  func NewBiddersAccountsFilterSetsLosingBidsService(s *Service) *BiddersAccountsFilterSetsLosingBidsService {
   418  	rs := &BiddersAccountsFilterSetsLosingBidsService{s: s}
   419  	return rs
   420  }
   421  
   422  type BiddersAccountsFilterSetsLosingBidsService struct {
   423  	s *Service
   424  }
   425  
   426  func NewBiddersAccountsFilterSetsNonBillableWinningBidsService(s *Service) *BiddersAccountsFilterSetsNonBillableWinningBidsService {
   427  	rs := &BiddersAccountsFilterSetsNonBillableWinningBidsService{s: s}
   428  	return rs
   429  }
   430  
   431  type BiddersAccountsFilterSetsNonBillableWinningBidsService struct {
   432  	s *Service
   433  }
   434  
   435  func NewBiddersFilterSetsService(s *Service) *BiddersFilterSetsService {
   436  	rs := &BiddersFilterSetsService{s: s}
   437  	rs.BidMetrics = NewBiddersFilterSetsBidMetricsService(s)
   438  	rs.BidResponseErrors = NewBiddersFilterSetsBidResponseErrorsService(s)
   439  	rs.BidResponsesWithoutBids = NewBiddersFilterSetsBidResponsesWithoutBidsService(s)
   440  	rs.FilteredBidRequests = NewBiddersFilterSetsFilteredBidRequestsService(s)
   441  	rs.FilteredBids = NewBiddersFilterSetsFilteredBidsService(s)
   442  	rs.ImpressionMetrics = NewBiddersFilterSetsImpressionMetricsService(s)
   443  	rs.LosingBids = NewBiddersFilterSetsLosingBidsService(s)
   444  	rs.NonBillableWinningBids = NewBiddersFilterSetsNonBillableWinningBidsService(s)
   445  	return rs
   446  }
   447  
   448  type BiddersFilterSetsService struct {
   449  	s *Service
   450  
   451  	BidMetrics *BiddersFilterSetsBidMetricsService
   452  
   453  	BidResponseErrors *BiddersFilterSetsBidResponseErrorsService
   454  
   455  	BidResponsesWithoutBids *BiddersFilterSetsBidResponsesWithoutBidsService
   456  
   457  	FilteredBidRequests *BiddersFilterSetsFilteredBidRequestsService
   458  
   459  	FilteredBids *BiddersFilterSetsFilteredBidsService
   460  
   461  	ImpressionMetrics *BiddersFilterSetsImpressionMetricsService
   462  
   463  	LosingBids *BiddersFilterSetsLosingBidsService
   464  
   465  	NonBillableWinningBids *BiddersFilterSetsNonBillableWinningBidsService
   466  }
   467  
   468  func NewBiddersFilterSetsBidMetricsService(s *Service) *BiddersFilterSetsBidMetricsService {
   469  	rs := &BiddersFilterSetsBidMetricsService{s: s}
   470  	return rs
   471  }
   472  
   473  type BiddersFilterSetsBidMetricsService struct {
   474  	s *Service
   475  }
   476  
   477  func NewBiddersFilterSetsBidResponseErrorsService(s *Service) *BiddersFilterSetsBidResponseErrorsService {
   478  	rs := &BiddersFilterSetsBidResponseErrorsService{s: s}
   479  	return rs
   480  }
   481  
   482  type BiddersFilterSetsBidResponseErrorsService struct {
   483  	s *Service
   484  }
   485  
   486  func NewBiddersFilterSetsBidResponsesWithoutBidsService(s *Service) *BiddersFilterSetsBidResponsesWithoutBidsService {
   487  	rs := &BiddersFilterSetsBidResponsesWithoutBidsService{s: s}
   488  	return rs
   489  }
   490  
   491  type BiddersFilterSetsBidResponsesWithoutBidsService struct {
   492  	s *Service
   493  }
   494  
   495  func NewBiddersFilterSetsFilteredBidRequestsService(s *Service) *BiddersFilterSetsFilteredBidRequestsService {
   496  	rs := &BiddersFilterSetsFilteredBidRequestsService{s: s}
   497  	return rs
   498  }
   499  
   500  type BiddersFilterSetsFilteredBidRequestsService struct {
   501  	s *Service
   502  }
   503  
   504  func NewBiddersFilterSetsFilteredBidsService(s *Service) *BiddersFilterSetsFilteredBidsService {
   505  	rs := &BiddersFilterSetsFilteredBidsService{s: s}
   506  	rs.Creatives = NewBiddersFilterSetsFilteredBidsCreativesService(s)
   507  	rs.Details = NewBiddersFilterSetsFilteredBidsDetailsService(s)
   508  	return rs
   509  }
   510  
   511  type BiddersFilterSetsFilteredBidsService struct {
   512  	s *Service
   513  
   514  	Creatives *BiddersFilterSetsFilteredBidsCreativesService
   515  
   516  	Details *BiddersFilterSetsFilteredBidsDetailsService
   517  }
   518  
   519  func NewBiddersFilterSetsFilteredBidsCreativesService(s *Service) *BiddersFilterSetsFilteredBidsCreativesService {
   520  	rs := &BiddersFilterSetsFilteredBidsCreativesService{s: s}
   521  	return rs
   522  }
   523  
   524  type BiddersFilterSetsFilteredBidsCreativesService struct {
   525  	s *Service
   526  }
   527  
   528  func NewBiddersFilterSetsFilteredBidsDetailsService(s *Service) *BiddersFilterSetsFilteredBidsDetailsService {
   529  	rs := &BiddersFilterSetsFilteredBidsDetailsService{s: s}
   530  	return rs
   531  }
   532  
   533  type BiddersFilterSetsFilteredBidsDetailsService struct {
   534  	s *Service
   535  }
   536  
   537  func NewBiddersFilterSetsImpressionMetricsService(s *Service) *BiddersFilterSetsImpressionMetricsService {
   538  	rs := &BiddersFilterSetsImpressionMetricsService{s: s}
   539  	return rs
   540  }
   541  
   542  type BiddersFilterSetsImpressionMetricsService struct {
   543  	s *Service
   544  }
   545  
   546  func NewBiddersFilterSetsLosingBidsService(s *Service) *BiddersFilterSetsLosingBidsService {
   547  	rs := &BiddersFilterSetsLosingBidsService{s: s}
   548  	return rs
   549  }
   550  
   551  type BiddersFilterSetsLosingBidsService struct {
   552  	s *Service
   553  }
   554  
   555  func NewBiddersFilterSetsNonBillableWinningBidsService(s *Service) *BiddersFilterSetsNonBillableWinningBidsService {
   556  	rs := &BiddersFilterSetsNonBillableWinningBidsService{s: s}
   557  	return rs
   558  }
   559  
   560  type BiddersFilterSetsNonBillableWinningBidsService struct {
   561  	s *Service
   562  }
   563  
   564  func NewBuyersService(s *Service) *BuyersService {
   565  	rs := &BuyersService{s: s}
   566  	rs.FilterSets = NewBuyersFilterSetsService(s)
   567  	return rs
   568  }
   569  
   570  type BuyersService struct {
   571  	s *Service
   572  
   573  	FilterSets *BuyersFilterSetsService
   574  }
   575  
   576  func NewBuyersFilterSetsService(s *Service) *BuyersFilterSetsService {
   577  	rs := &BuyersFilterSetsService{s: s}
   578  	rs.BidMetrics = NewBuyersFilterSetsBidMetricsService(s)
   579  	rs.BidResponseErrors = NewBuyersFilterSetsBidResponseErrorsService(s)
   580  	rs.BidResponsesWithoutBids = NewBuyersFilterSetsBidResponsesWithoutBidsService(s)
   581  	rs.FilteredBidRequests = NewBuyersFilterSetsFilteredBidRequestsService(s)
   582  	rs.FilteredBids = NewBuyersFilterSetsFilteredBidsService(s)
   583  	rs.ImpressionMetrics = NewBuyersFilterSetsImpressionMetricsService(s)
   584  	rs.LosingBids = NewBuyersFilterSetsLosingBidsService(s)
   585  	rs.NonBillableWinningBids = NewBuyersFilterSetsNonBillableWinningBidsService(s)
   586  	return rs
   587  }
   588  
   589  type BuyersFilterSetsService struct {
   590  	s *Service
   591  
   592  	BidMetrics *BuyersFilterSetsBidMetricsService
   593  
   594  	BidResponseErrors *BuyersFilterSetsBidResponseErrorsService
   595  
   596  	BidResponsesWithoutBids *BuyersFilterSetsBidResponsesWithoutBidsService
   597  
   598  	FilteredBidRequests *BuyersFilterSetsFilteredBidRequestsService
   599  
   600  	FilteredBids *BuyersFilterSetsFilteredBidsService
   601  
   602  	ImpressionMetrics *BuyersFilterSetsImpressionMetricsService
   603  
   604  	LosingBids *BuyersFilterSetsLosingBidsService
   605  
   606  	NonBillableWinningBids *BuyersFilterSetsNonBillableWinningBidsService
   607  }
   608  
   609  func NewBuyersFilterSetsBidMetricsService(s *Service) *BuyersFilterSetsBidMetricsService {
   610  	rs := &BuyersFilterSetsBidMetricsService{s: s}
   611  	return rs
   612  }
   613  
   614  type BuyersFilterSetsBidMetricsService struct {
   615  	s *Service
   616  }
   617  
   618  func NewBuyersFilterSetsBidResponseErrorsService(s *Service) *BuyersFilterSetsBidResponseErrorsService {
   619  	rs := &BuyersFilterSetsBidResponseErrorsService{s: s}
   620  	return rs
   621  }
   622  
   623  type BuyersFilterSetsBidResponseErrorsService struct {
   624  	s *Service
   625  }
   626  
   627  func NewBuyersFilterSetsBidResponsesWithoutBidsService(s *Service) *BuyersFilterSetsBidResponsesWithoutBidsService {
   628  	rs := &BuyersFilterSetsBidResponsesWithoutBidsService{s: s}
   629  	return rs
   630  }
   631  
   632  type BuyersFilterSetsBidResponsesWithoutBidsService struct {
   633  	s *Service
   634  }
   635  
   636  func NewBuyersFilterSetsFilteredBidRequestsService(s *Service) *BuyersFilterSetsFilteredBidRequestsService {
   637  	rs := &BuyersFilterSetsFilteredBidRequestsService{s: s}
   638  	return rs
   639  }
   640  
   641  type BuyersFilterSetsFilteredBidRequestsService struct {
   642  	s *Service
   643  }
   644  
   645  func NewBuyersFilterSetsFilteredBidsService(s *Service) *BuyersFilterSetsFilteredBidsService {
   646  	rs := &BuyersFilterSetsFilteredBidsService{s: s}
   647  	rs.Creatives = NewBuyersFilterSetsFilteredBidsCreativesService(s)
   648  	rs.Details = NewBuyersFilterSetsFilteredBidsDetailsService(s)
   649  	return rs
   650  }
   651  
   652  type BuyersFilterSetsFilteredBidsService struct {
   653  	s *Service
   654  
   655  	Creatives *BuyersFilterSetsFilteredBidsCreativesService
   656  
   657  	Details *BuyersFilterSetsFilteredBidsDetailsService
   658  }
   659  
   660  func NewBuyersFilterSetsFilteredBidsCreativesService(s *Service) *BuyersFilterSetsFilteredBidsCreativesService {
   661  	rs := &BuyersFilterSetsFilteredBidsCreativesService{s: s}
   662  	return rs
   663  }
   664  
   665  type BuyersFilterSetsFilteredBidsCreativesService struct {
   666  	s *Service
   667  }
   668  
   669  func NewBuyersFilterSetsFilteredBidsDetailsService(s *Service) *BuyersFilterSetsFilteredBidsDetailsService {
   670  	rs := &BuyersFilterSetsFilteredBidsDetailsService{s: s}
   671  	return rs
   672  }
   673  
   674  type BuyersFilterSetsFilteredBidsDetailsService struct {
   675  	s *Service
   676  }
   677  
   678  func NewBuyersFilterSetsImpressionMetricsService(s *Service) *BuyersFilterSetsImpressionMetricsService {
   679  	rs := &BuyersFilterSetsImpressionMetricsService{s: s}
   680  	return rs
   681  }
   682  
   683  type BuyersFilterSetsImpressionMetricsService struct {
   684  	s *Service
   685  }
   686  
   687  func NewBuyersFilterSetsLosingBidsService(s *Service) *BuyersFilterSetsLosingBidsService {
   688  	rs := &BuyersFilterSetsLosingBidsService{s: s}
   689  	return rs
   690  }
   691  
   692  type BuyersFilterSetsLosingBidsService struct {
   693  	s *Service
   694  }
   695  
   696  func NewBuyersFilterSetsNonBillableWinningBidsService(s *Service) *BuyersFilterSetsNonBillableWinningBidsService {
   697  	rs := &BuyersFilterSetsNonBillableWinningBidsService{s: s}
   698  	return rs
   699  }
   700  
   701  type BuyersFilterSetsNonBillableWinningBidsService struct {
   702  	s *Service
   703  }
   704  
   705  // AbsoluteDateRange: An absolute date range, specified by its start date and
   706  // end date. The supported range of dates begins 30 days before today and ends
   707  // today. Validity checked upon filter set creation. If a filter set with an
   708  // absolute date range is run at a later date more than 30 days after
   709  // start_date, it will fail.
   710  type AbsoluteDateRange struct {
   711  	// EndDate: The end date of the range (inclusive). Must be within the 30 days
   712  	// leading up to current date, and must be equal to or after start_date.
   713  	EndDate *Date `json:"endDate,omitempty"`
   714  	// StartDate: The start date of the range (inclusive). Must be within the 30
   715  	// days leading up to current date, and must be equal to or before end_date.
   716  	StartDate *Date `json:"startDate,omitempty"`
   717  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
   718  	// include in API requests. By default, fields with empty or default values are
   719  	// omitted from API requests. See
   720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   721  	// details.
   722  	ForceSendFields []string `json:"-"`
   723  	// NullFields is a list of field names (e.g. "EndDate") to include in API
   724  	// requests with the JSON null value. By default, fields with empty values are
   725  	// omitted from API requests. See
   726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   727  	NullFields []string `json:"-"`
   728  }
   729  
   730  func (s *AbsoluteDateRange) MarshalJSON() ([]byte, error) {
   731  	type NoMethod AbsoluteDateRange
   732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   733  }
   734  
   735  // AcceptProposalRequest: Request to accept a proposal.
   736  type AcceptProposalRequest struct {
   737  	// ProposalRevision: The last known client revision number of the proposal.
   738  	ProposalRevision int64 `json:"proposalRevision,omitempty,string"`
   739  	// ForceSendFields is a list of field names (e.g. "ProposalRevision") to
   740  	// unconditionally include in API requests. By default, fields with empty or
   741  	// default values are omitted from API requests. See
   742  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   743  	// details.
   744  	ForceSendFields []string `json:"-"`
   745  	// NullFields is a list of field names (e.g. "ProposalRevision") to include in
   746  	// API requests with the JSON null value. By default, fields with empty values
   747  	// are omitted from API requests. See
   748  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   749  	NullFields []string `json:"-"`
   750  }
   751  
   752  func (s *AcceptProposalRequest) MarshalJSON() ([]byte, error) {
   753  	type NoMethod AcceptProposalRequest
   754  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   755  }
   756  
   757  // AdSize: Represents size of a single ad slot, or a creative.
   758  type AdSize struct {
   759  	// Height: The height of the ad slot in pixels. This field will be present only
   760  	// when size type is `PIXEL`.
   761  	Height int64 `json:"height,omitempty,string"`
   762  	// SizeType: The size type of the ad slot.
   763  	//
   764  	// Possible values:
   765  	//   "SIZE_TYPE_UNSPECIFIED" - A placeholder for an undefined size type.
   766  	//   "PIXEL" - Ad slot with size specified by height and width in pixels.
   767  	//   "INTERSTITIAL" - Special size to describe an interstitial ad slot.
   768  	//   "NATIVE" - Native (mobile) ads rendered by the publisher.
   769  	//   "FLUID" - Fluid size (for example, responsive size) can be resized
   770  	// automatically with the change of outside environment.
   771  	SizeType string `json:"sizeType,omitempty"`
   772  	// Width: The width of the ad slot in pixels. This field will be present only
   773  	// when size type is `PIXEL`.
   774  	Width int64 `json:"width,omitempty,string"`
   775  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
   776  	// include in API requests. By default, fields with empty or default values are
   777  	// omitted from API requests. See
   778  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   779  	// details.
   780  	ForceSendFields []string `json:"-"`
   781  	// NullFields is a list of field names (e.g. "Height") to include in API
   782  	// requests with the JSON null value. By default, fields with empty values are
   783  	// omitted from API requests. See
   784  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   785  	NullFields []string `json:"-"`
   786  }
   787  
   788  func (s *AdSize) MarshalJSON() ([]byte, error) {
   789  	type NoMethod AdSize
   790  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   791  }
   792  
   793  // AdTechnologyProviders: Detected ad technology provider information.
   794  type AdTechnologyProviders struct {
   795  	// DetectedProviderIds: The detected ad technology provider IDs for this
   796  	// creative. See
   797  	// https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
   798  	// mapping of provider ID to provided name, a privacy policy URL, and a list of
   799  	// domains which can be attributed to the provider. If the creative contains
   800  	// provider IDs that are outside of those listed in the
   801  	// `BidRequest.adslot.consented_providers_settings.consented_providers` field
   802  	// on the (Google bid
   803  	// protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realt
   804  	// ime-bidding-proto] and the
   805  	// `BidRequest.user.ext.consented_providers_settings.consented_providers` field
   806  	// on the (OpenRTB
   807  	// protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openr
   808  	// tb-adx-proto], and a bid is submitted with that creative for an impression
   809  	// that will serve to an EEA user, the bid will be filtered before the auction.
   810  	DetectedProviderIds googleapi.Int64s `json:"detectedProviderIds,omitempty"`
   811  	// HasUnidentifiedProvider: Whether the creative contains an unidentified ad
   812  	// technology provider. If true for a given creative, any bid submitted with
   813  	// that creative for an impression that will serve to an EEA user will be
   814  	// filtered before the auction.
   815  	HasUnidentifiedProvider bool `json:"hasUnidentifiedProvider,omitempty"`
   816  	// ForceSendFields is a list of field names (e.g. "DetectedProviderIds") to
   817  	// unconditionally include in API requests. By default, fields with empty or
   818  	// default values are omitted from API requests. See
   819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   820  	// details.
   821  	ForceSendFields []string `json:"-"`
   822  	// NullFields is a list of field names (e.g. "DetectedProviderIds") to include
   823  	// in API requests with the JSON null value. By default, fields with empty
   824  	// values are omitted from API requests. See
   825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   826  	NullFields []string `json:"-"`
   827  }
   828  
   829  func (s *AdTechnologyProviders) MarshalJSON() ([]byte, error) {
   830  	type NoMethod AdTechnologyProviders
   831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   832  }
   833  
   834  // AddDealAssociationRequest: A request for associating a deal and a creative.
   835  type AddDealAssociationRequest struct {
   836  	// Association: The association between a creative and a deal that should be
   837  	// added.
   838  	Association *CreativeDealAssociation `json:"association,omitempty"`
   839  	// ForceSendFields is a list of field names (e.g. "Association") to
   840  	// unconditionally include in API requests. By default, fields with empty or
   841  	// default values are omitted from API requests. See
   842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   843  	// details.
   844  	ForceSendFields []string `json:"-"`
   845  	// NullFields is a list of field names (e.g. "Association") to include in API
   846  	// requests with the JSON null value. By default, fields with empty values are
   847  	// omitted from API requests. See
   848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   849  	NullFields []string `json:"-"`
   850  }
   851  
   852  func (s *AddDealAssociationRequest) MarshalJSON() ([]byte, error) {
   853  	type NoMethod AddDealAssociationRequest
   854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   855  }
   856  
   857  // AddNoteRequest: Request message for adding a note to a given proposal.
   858  type AddNoteRequest struct {
   859  	// Note: Details of the note to add.
   860  	Note *Note `json:"note,omitempty"`
   861  	// ForceSendFields is a list of field names (e.g. "Note") to unconditionally
   862  	// include in API requests. By default, fields with empty or default values are
   863  	// omitted from API requests. See
   864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   865  	// details.
   866  	ForceSendFields []string `json:"-"`
   867  	// NullFields is a list of field names (e.g. "Note") to include in API requests
   868  	// with the JSON null value. By default, fields with empty values are omitted
   869  	// from API requests. See
   870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   871  	NullFields []string `json:"-"`
   872  }
   873  
   874  func (s *AddNoteRequest) MarshalJSON() ([]byte, error) {
   875  	type NoMethod AddNoteRequest
   876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   877  }
   878  
   879  // AppContext: Output only. The app type the restriction applies to for mobile
   880  // device.
   881  type AppContext struct {
   882  	// AppTypes: The app types this restriction applies to.
   883  	//
   884  	// Possible values:
   885  	//   "NATIVE" - Native app context.
   886  	//   "WEB" - Mobile web app context.
   887  	AppTypes []string `json:"appTypes,omitempty"`
   888  	// ForceSendFields is a list of field names (e.g. "AppTypes") to
   889  	// unconditionally include in API requests. By default, fields with empty or
   890  	// default values are omitted from API requests. See
   891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   892  	// details.
   893  	ForceSendFields []string `json:"-"`
   894  	// NullFields is a list of field names (e.g. "AppTypes") to include in API
   895  	// requests with the JSON null value. By default, fields with empty values are
   896  	// omitted from API requests. See
   897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   898  	NullFields []string `json:"-"`
   899  }
   900  
   901  func (s *AppContext) MarshalJSON() ([]byte, error) {
   902  	type NoMethod AppContext
   903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   904  }
   905  
   906  // AuctionContext: Output only. The auction type the restriction applies to.
   907  type AuctionContext struct {
   908  	// AuctionTypes: The auction types this restriction applies to.
   909  	//
   910  	// Possible values:
   911  	//   "OPEN_AUCTION" - The restriction applies to open auction.
   912  	//   "DIRECT_DEALS" - The restriction applies to direct deals.
   913  	AuctionTypes []string `json:"auctionTypes,omitempty"`
   914  	// ForceSendFields is a list of field names (e.g. "AuctionTypes") to
   915  	// unconditionally include in API requests. By default, fields with empty or
   916  	// default values are omitted from API requests. See
   917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   918  	// details.
   919  	ForceSendFields []string `json:"-"`
   920  	// NullFields is a list of field names (e.g. "AuctionTypes") to include in API
   921  	// requests with the JSON null value. By default, fields with empty values are
   922  	// omitted from API requests. See
   923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   924  	NullFields []string `json:"-"`
   925  }
   926  
   927  func (s *AuctionContext) MarshalJSON() ([]byte, error) {
   928  	type NoMethod AuctionContext
   929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   930  }
   931  
   932  // BidMetricsRow: The set of metrics that are measured in numbers of bids,
   933  // representing how many bids with the specified dimension values were
   934  // considered eligible at each stage of the bidding funnel;
   935  type BidMetricsRow struct {
   936  	// Bids: The number of bids that Ad Exchange received from the buyer.
   937  	Bids *MetricValue `json:"bids,omitempty"`
   938  	// BidsInAuction: The number of bids that were permitted to compete in the
   939  	// auction.
   940  	BidsInAuction *MetricValue `json:"bidsInAuction,omitempty"`
   941  	// BilledImpressions: The number of bids for which the buyer was billed. Also
   942  	// called valid impressions as invalid impressions are not billed.
   943  	BilledImpressions *MetricValue `json:"billedImpressions,omitempty"`
   944  	// ImpressionsWon: The number of bids that won the auction.
   945  	ImpressionsWon *MetricValue `json:"impressionsWon,omitempty"`
   946  	// MeasurableImpressions: The number of bids for which the corresponding
   947  	// impression was measurable for viewability (as defined by Active View).
   948  	MeasurableImpressions *MetricValue `json:"measurableImpressions,omitempty"`
   949  	// ReachedQueries: The number of bids that won the auction and also won the
   950  	// mediation waterfall (if any).
   951  	ReachedQueries *MetricValue `json:"reachedQueries,omitempty"`
   952  	// RowDimensions: The values of all dimensions associated with metric values in
   953  	// this row.
   954  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
   955  	// ViewableImpressions: The number of bids for which the corresponding
   956  	// impression was viewable (as defined by Active View).
   957  	ViewableImpressions *MetricValue `json:"viewableImpressions,omitempty"`
   958  	// ForceSendFields is a list of field names (e.g. "Bids") to unconditionally
   959  	// include in API requests. By default, fields with empty or default values are
   960  	// omitted from API requests. See
   961  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   962  	// details.
   963  	ForceSendFields []string `json:"-"`
   964  	// NullFields is a list of field names (e.g. "Bids") to include in API requests
   965  	// with the JSON null value. By default, fields with empty values are omitted
   966  	// from API requests. See
   967  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   968  	NullFields []string `json:"-"`
   969  }
   970  
   971  func (s *BidMetricsRow) MarshalJSON() ([]byte, error) {
   972  	type NoMethod BidMetricsRow
   973  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   974  }
   975  
   976  // BidResponseWithoutBidsStatusRow: The number of impressions with the
   977  // specified dimension values that were considered to have no applicable bids,
   978  // as described by the specified status.
   979  type BidResponseWithoutBidsStatusRow struct {
   980  	// ImpressionCount: The number of impressions for which there was a bid
   981  	// response with the specified status.
   982  	ImpressionCount *MetricValue `json:"impressionCount,omitempty"`
   983  	// RowDimensions: The values of all dimensions associated with metric values in
   984  	// this row.
   985  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
   986  	// Status: The status specifying why the bid responses were considered to have
   987  	// no applicable bids.
   988  	//
   989  	// Possible values:
   990  	//   "STATUS_UNSPECIFIED" - A placeholder for an undefined status. This value
   991  	// will never be returned in responses.
   992  	//   "RESPONSES_WITHOUT_BIDS" - The response had no bids.
   993  	//   "RESPONSES_WITHOUT_BIDS_FOR_ACCOUNT" - The response had no bids for the
   994  	// specified account, though it may have included bids on behalf of other
   995  	// accounts. Applies if: 1. Request is on behalf of a bidder and an account
   996  	// filter is present. 2. Request is on behalf of a child seat.
   997  	//   "RESPONSES_WITHOUT_BIDS_FOR_DEAL" - The response had no bids for the
   998  	// specified deal, though it may have included bids on other deals on behalf of
   999  	// the account to which the deal belongs. If request is on behalf of a bidder
  1000  	// and an account filter is not present, this also includes responses that have
  1001  	// bids on behalf of accounts other than the account to which the deal belongs.
  1002  	Status string `json:"status,omitempty"`
  1003  	// ForceSendFields is a list of field names (e.g. "ImpressionCount") to
  1004  	// unconditionally include in API requests. By default, fields with empty or
  1005  	// default values are omitted from API requests. See
  1006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1007  	// details.
  1008  	ForceSendFields []string `json:"-"`
  1009  	// NullFields is a list of field names (e.g. "ImpressionCount") to include in
  1010  	// API requests with the JSON null value. By default, fields with empty values
  1011  	// are omitted from API requests. See
  1012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1013  	NullFields []string `json:"-"`
  1014  }
  1015  
  1016  func (s *BidResponseWithoutBidsStatusRow) MarshalJSON() ([]byte, error) {
  1017  	type NoMethod BidResponseWithoutBidsStatusRow
  1018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1019  }
  1020  
  1021  // Buyer: Represents a buyer of inventory. Each buyer is identified by a unique
  1022  // Authorized Buyers account ID.
  1023  type Buyer struct {
  1024  	// AccountId: Authorized Buyers account ID of the buyer.
  1025  	AccountId string `json:"accountId,omitempty"`
  1026  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  1027  	// unconditionally include in API requests. By default, fields with empty or
  1028  	// default values are omitted from API requests. See
  1029  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1030  	// details.
  1031  	ForceSendFields []string `json:"-"`
  1032  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  1033  	// requests with the JSON null value. By default, fields with empty values are
  1034  	// omitted from API requests. See
  1035  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1036  	NullFields []string `json:"-"`
  1037  }
  1038  
  1039  func (s *Buyer) MarshalJSON() ([]byte, error) {
  1040  	type NoMethod Buyer
  1041  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1042  }
  1043  
  1044  // CalloutStatusRow: The number of impressions with the specified dimension
  1045  // values where the corresponding bid request or bid response was not
  1046  // successful, as described by the specified callout status.
  1047  type CalloutStatusRow struct {
  1048  	// CalloutStatusId: The ID of the callout status. See callout-status-codes
  1049  	// (https://developers.google.com/authorized-buyers/rtb/downloads/callout-status-codes).
  1050  	CalloutStatusId int64 `json:"calloutStatusId,omitempty"`
  1051  	// ImpressionCount: The number of impressions for which there was a bid request
  1052  	// or bid response with the specified callout status.
  1053  	ImpressionCount *MetricValue `json:"impressionCount,omitempty"`
  1054  	// RowDimensions: The values of all dimensions associated with metric values in
  1055  	// this row.
  1056  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
  1057  	// ForceSendFields is a list of field names (e.g. "CalloutStatusId") to
  1058  	// unconditionally include in API requests. By default, fields with empty or
  1059  	// default values are omitted from API requests. See
  1060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1061  	// details.
  1062  	ForceSendFields []string `json:"-"`
  1063  	// NullFields is a list of field names (e.g. "CalloutStatusId") to include in
  1064  	// API requests with the JSON null value. By default, fields with empty values
  1065  	// are omitted from API requests. See
  1066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1067  	NullFields []string `json:"-"`
  1068  }
  1069  
  1070  func (s *CalloutStatusRow) MarshalJSON() ([]byte, error) {
  1071  	type NoMethod CalloutStatusRow
  1072  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1073  }
  1074  
  1075  // CancelNegotiationRequest: Request to cancel an ongoing negotiation.
  1076  type CancelNegotiationRequest struct {
  1077  }
  1078  
  1079  // Client: A client resource represents a client buyer—an agency, a brand, or
  1080  // an advertiser customer of the sponsor buyer. Users associated with the
  1081  // client buyer have restricted access to the Marketplace and certain other
  1082  // sections of the Authorized Buyers UI based on the role granted to the client
  1083  // buyer. All fields are required unless otherwise specified.
  1084  type Client struct {
  1085  	// ClientAccountId: The globally-unique numerical ID of the client. The value
  1086  	// of this field is ignored in create and update operations.
  1087  	ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
  1088  	// ClientName: Name used to represent this client to publishers. You may have
  1089  	// multiple clients that map to the same entity, but for each client the
  1090  	// combination of `clientName` and entity must be unique. You can specify this
  1091  	// field as empty. Maximum length of 255 characters is allowed.
  1092  	ClientName string `json:"clientName,omitempty"`
  1093  	// EntityId: Numerical identifier of the client entity. The entity can be an
  1094  	// advertiser, a brand, or an agency. This identifier is unique among all the
  1095  	// entities with the same type. The value of this field is ignored if the
  1096  	// entity type is not provided. A list of all known advertisers with their
  1097  	// identifiers is available in the advertisers.txt
  1098  	// (https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt) file.
  1099  	// A list of all known brands with their identifiers is available in the
  1100  	// brands.txt (https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt)
  1101  	// file. A list of all known agencies with their identifiers is available in
  1102  	// the agencies.txt
  1103  	// (https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) file.
  1104  	EntityId int64 `json:"entityId,omitempty,string"`
  1105  	// EntityName: The name of the entity. This field is automatically fetched
  1106  	// based on the type and ID. The value of this field is ignored in create and
  1107  	// update operations.
  1108  	EntityName string `json:"entityName,omitempty"`
  1109  	// EntityType: An optional field for specifying the type of the client entity:
  1110  	// `ADVERTISER`, `BRAND`, or `AGENCY`.
  1111  	//
  1112  	// Possible values:
  1113  	//   "ENTITY_TYPE_UNSPECIFIED" - A placeholder for an undefined client entity
  1114  	// type. Should not be used.
  1115  	//   "ADVERTISER" - An advertiser.
  1116  	//   "BRAND" - A brand.
  1117  	//   "AGENCY" - An advertising agency.
  1118  	//   "ENTITY_TYPE_UNCLASSIFIED" - An explicit value for a client that was not
  1119  	// yet classified as any particular entity.
  1120  	EntityType string `json:"entityType,omitempty"`
  1121  	// PartnerClientId: Optional arbitrary unique identifier of this client buyer
  1122  	// from the standpoint of its Ad Exchange sponsor buyer. This field can be used
  1123  	// to associate a client buyer with the identifier in the namespace of its
  1124  	// sponsor buyer, lookup client buyers by that identifier and verify whether an
  1125  	// Ad Exchange counterpart of a given client buyer already exists. If present,
  1126  	// must be unique among all the client buyers for its Ad Exchange sponsor
  1127  	// buyer.
  1128  	PartnerClientId string `json:"partnerClientId,omitempty"`
  1129  	// Role: The role which is assigned to the client buyer. Each role implies a
  1130  	// set of permissions granted to the client. Must be one of
  1131  	// `CLIENT_DEAL_VIEWER`, `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
  1132  	//
  1133  	// Possible values:
  1134  	//   "CLIENT_ROLE_UNSPECIFIED" - A placeholder for an undefined client role.
  1135  	//   "CLIENT_DEAL_VIEWER" - Users associated with this client can see publisher
  1136  	// deal offers in the Marketplace. They can neither negotiate proposals nor
  1137  	// approve deals. If this client is visible to publishers, they can send deal
  1138  	// proposals to this client.
  1139  	//   "CLIENT_DEAL_NEGOTIATOR" - Users associated with this client can respond
  1140  	// to deal proposals sent to them by publishers. They can also initiate deal
  1141  	// proposals of their own.
  1142  	//   "CLIENT_DEAL_APPROVER" - Users associated with this client can approve
  1143  	// eligible deals on your behalf. Some deals may still explicitly require
  1144  	// publisher finalization. If this role is not selected, the sponsor buyer will
  1145  	// need to manually approve each of their deals.
  1146  	Role string `json:"role,omitempty"`
  1147  	// Status: The status of the client buyer.
  1148  	//
  1149  	// Possible values:
  1150  	//   "CLIENT_STATUS_UNSPECIFIED" - A placeholder for an undefined client
  1151  	// status.
  1152  	//   "DISABLED" - A client that is currently disabled.
  1153  	//   "ACTIVE" - A client that is currently active.
  1154  	Status string `json:"status,omitempty"`
  1155  	// VisibleToSeller: Whether the client buyer will be visible to sellers.
  1156  	VisibleToSeller bool `json:"visibleToSeller,omitempty"`
  1157  
  1158  	// ServerResponse contains the HTTP response code and headers from the server.
  1159  	googleapi.ServerResponse `json:"-"`
  1160  	// ForceSendFields is a list of field names (e.g. "ClientAccountId") to
  1161  	// unconditionally include in API requests. By default, fields with empty or
  1162  	// default values are omitted from API requests. See
  1163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1164  	// details.
  1165  	ForceSendFields []string `json:"-"`
  1166  	// NullFields is a list of field names (e.g. "ClientAccountId") to include in
  1167  	// API requests with the JSON null value. By default, fields with empty values
  1168  	// are omitted from API requests. See
  1169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1170  	NullFields []string `json:"-"`
  1171  }
  1172  
  1173  func (s *Client) MarshalJSON() ([]byte, error) {
  1174  	type NoMethod Client
  1175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1176  }
  1177  
  1178  // ClientUser: A client user is created under a client buyer and has restricted
  1179  // access to the Marketplace and certain other sections of the Authorized
  1180  // Buyers UI based on the role granted to the associated client buyer. The only
  1181  // way a new client user can be created is through accepting an email
  1182  // invitation (see the accounts.clients.invitations.create method). All fields
  1183  // are required unless otherwise specified.
  1184  type ClientUser struct {
  1185  	// ClientAccountId: Numerical account ID of the client buyer with which the
  1186  	// user is associated; the buyer must be a client of the current sponsor buyer.
  1187  	// The value of this field is ignored in an update operation.
  1188  	ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
  1189  	// Email: User's email address. The value of this field is ignored in an update
  1190  	// operation.
  1191  	Email string `json:"email,omitempty"`
  1192  	// Status: The status of the client user.
  1193  	//
  1194  	// Possible values:
  1195  	//   "USER_STATUS_UNSPECIFIED" - A placeholder for an undefined user status.
  1196  	//   "PENDING" - A user who was already created but hasn't accepted the
  1197  	// invitation yet.
  1198  	//   "ACTIVE" - A user that is currently active.
  1199  	//   "DISABLED" - A user that is currently disabled.
  1200  	Status string `json:"status,omitempty"`
  1201  	// UserId: The unique numerical ID of the client user that has accepted an
  1202  	// invitation. The value of this field is ignored in an update operation.
  1203  	UserId int64 `json:"userId,omitempty,string"`
  1204  
  1205  	// ServerResponse contains the HTTP response code and headers from the server.
  1206  	googleapi.ServerResponse `json:"-"`
  1207  	// ForceSendFields is a list of field names (e.g. "ClientAccountId") to
  1208  	// unconditionally include in API requests. By default, fields with empty or
  1209  	// default values are omitted from API requests. See
  1210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1211  	// details.
  1212  	ForceSendFields []string `json:"-"`
  1213  	// NullFields is a list of field names (e.g. "ClientAccountId") to include in
  1214  	// API requests with the JSON null value. By default, fields with empty values
  1215  	// are omitted from API requests. See
  1216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1217  	NullFields []string `json:"-"`
  1218  }
  1219  
  1220  func (s *ClientUser) MarshalJSON() ([]byte, error) {
  1221  	type NoMethod ClientUser
  1222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1223  }
  1224  
  1225  // ClientUserInvitation: An invitation for a new client user to get access to
  1226  // the Authorized Buyers UI. All fields are required unless otherwise
  1227  // specified.
  1228  type ClientUserInvitation struct {
  1229  	// ClientAccountId: Numerical account ID of the client buyer that the invited
  1230  	// user is associated with. The value of this field is ignored in create
  1231  	// operations.
  1232  	ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
  1233  	// Email: The email address to which the invitation is sent. Email addresses
  1234  	// should be unique among all client users under each sponsor buyer.
  1235  	Email string `json:"email,omitempty"`
  1236  	// InvitationId: The unique numerical ID of the invitation that is sent to the
  1237  	// user. The value of this field is ignored in create operations.
  1238  	InvitationId int64 `json:"invitationId,omitempty,string"`
  1239  
  1240  	// ServerResponse contains the HTTP response code and headers from the server.
  1241  	googleapi.ServerResponse `json:"-"`
  1242  	// ForceSendFields is a list of field names (e.g. "ClientAccountId") to
  1243  	// unconditionally include in API requests. By default, fields with empty or
  1244  	// default values are omitted from API requests. See
  1245  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1246  	// details.
  1247  	ForceSendFields []string `json:"-"`
  1248  	// NullFields is a list of field names (e.g. "ClientAccountId") to include in
  1249  	// API requests with the JSON null value. By default, fields with empty values
  1250  	// are omitted from API requests. See
  1251  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1252  	NullFields []string `json:"-"`
  1253  }
  1254  
  1255  func (s *ClientUserInvitation) MarshalJSON() ([]byte, error) {
  1256  	type NoMethod ClientUserInvitation
  1257  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1258  }
  1259  
  1260  // CompleteSetupRequest: Request message for indicating that the proposal's
  1261  // setup step is complete.
  1262  type CompleteSetupRequest struct {
  1263  }
  1264  
  1265  // ContactInformation: Contains information on how a buyer or seller can be
  1266  // reached.
  1267  type ContactInformation struct {
  1268  	// Email: Email address for the contact.
  1269  	Email string `json:"email,omitempty"`
  1270  	// Name: The name of the contact.
  1271  	Name string `json:"name,omitempty"`
  1272  	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
  1273  	// include in API requests. By default, fields with empty or default values are
  1274  	// omitted from API requests. See
  1275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1276  	// details.
  1277  	ForceSendFields []string `json:"-"`
  1278  	// NullFields is a list of field names (e.g. "Email") to include in API
  1279  	// requests with the JSON null value. By default, fields with empty values are
  1280  	// omitted from API requests. See
  1281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1282  	NullFields []string `json:"-"`
  1283  }
  1284  
  1285  func (s *ContactInformation) MarshalJSON() ([]byte, error) {
  1286  	type NoMethod ContactInformation
  1287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1288  }
  1289  
  1290  // Correction: Output only. Shows any corrections that were applied to this
  1291  // creative.
  1292  type Correction struct {
  1293  	// Contexts: The contexts for the correction.
  1294  	Contexts []*ServingContext `json:"contexts,omitempty"`
  1295  	// Details: Additional details about what was corrected.
  1296  	Details []string `json:"details,omitempty"`
  1297  	// Type: The type of correction that was applied to the creative.
  1298  	//
  1299  	// Possible values:
  1300  	//   "CORRECTION_TYPE_UNSPECIFIED" - The correction type is unknown. Refer to
  1301  	// the details for more information.
  1302  	//   "VENDOR_IDS_ADDED" - The ad's declared vendors did not match the vendors
  1303  	// that were detected. The detected vendors were added.
  1304  	//   "SSL_ATTRIBUTE_REMOVED" - The ad had the SSL attribute declared but was
  1305  	// not SSL-compliant. The SSL attribute was removed.
  1306  	//   "FLASH_FREE_ATTRIBUTE_REMOVED" - The ad was declared as Flash-free but
  1307  	// contained Flash, so the Flash-free attribute was removed.
  1308  	//   "FLASH_FREE_ATTRIBUTE_ADDED" - The ad was not declared as Flash-free but
  1309  	// it did not reference any flash content, so the Flash-free attribute was
  1310  	// added.
  1311  	//   "REQUIRED_ATTRIBUTE_ADDED" - The ad did not declare a required creative
  1312  	// attribute. The attribute was added.
  1313  	//   "REQUIRED_VENDOR_ADDED" - The ad did not declare a required technology
  1314  	// vendor. The technology vendor was added.
  1315  	//   "SSL_ATTRIBUTE_ADDED" - The ad did not declare the SSL attribute but was
  1316  	// SSL-compliant, so the SSL attribute was added.
  1317  	//   "IN_BANNER_VIDEO_ATTRIBUTE_ADDED" - Properties consistent with In-banner
  1318  	// video were found, so an In-Banner Video attribute was added.
  1319  	//   "MRAID_ATTRIBUTE_ADDED" - The ad makes calls to the MRAID API so the MRAID
  1320  	// attribute was added.
  1321  	//   "FLASH_ATTRIBUTE_REMOVED" - The ad unnecessarily declared the Flash
  1322  	// attribute, so the Flash attribute was removed.
  1323  	//   "VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED" - The ad contains video content.
  1324  	Type string `json:"type,omitempty"`
  1325  	// ForceSendFields is a list of field names (e.g. "Contexts") to
  1326  	// unconditionally include in API requests. By default, fields with empty or
  1327  	// default values are omitted from API requests. See
  1328  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1329  	// details.
  1330  	ForceSendFields []string `json:"-"`
  1331  	// NullFields is a list of field names (e.g. "Contexts") to include in API
  1332  	// requests with the JSON null value. By default, fields with empty values are
  1333  	// omitted from API requests. See
  1334  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1335  	NullFields []string `json:"-"`
  1336  }
  1337  
  1338  func (s *Correction) MarshalJSON() ([]byte, error) {
  1339  	type NoMethod Correction
  1340  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1341  }
  1342  
  1343  // Creative: A creative and its classification data.
  1344  type Creative struct {
  1345  	// AccountId: The account that this creative belongs to. Can be used to filter
  1346  	// the response of the creatives.list method.
  1347  	AccountId string `json:"accountId,omitempty"`
  1348  	// AdChoicesDestinationUrl: The link to AdChoices destination page.
  1349  	AdChoicesDestinationUrl string `json:"adChoicesDestinationUrl,omitempty"`
  1350  	// AdTechnologyProviders: Output only. The detected ad technology providers.
  1351  	AdTechnologyProviders *AdTechnologyProviders `json:"adTechnologyProviders,omitempty"`
  1352  	// AdvertiserName: The name of the company being advertised in the creative.
  1353  	AdvertiserName string `json:"advertiserName,omitempty"`
  1354  	// AgencyId: The agency ID for this creative.
  1355  	AgencyId int64 `json:"agencyId,omitempty,string"`
  1356  	// ApiUpdateTime: Output only. The last update timestamp of the creative
  1357  	// through the API.
  1358  	ApiUpdateTime string `json:"apiUpdateTime,omitempty"`
  1359  	// Attributes: All attributes for the ads that may be shown from this creative.
  1360  	// Can be used to filter the response of the creatives.list method.
  1361  	//
  1362  	// Possible values:
  1363  	//   "ATTRIBUTE_UNSPECIFIED" - Do not use. This is a placeholder value only.
  1364  	//   "IMAGE_RICH_MEDIA" - The creative is of type image/rich media. For
  1365  	// pretargeting.
  1366  	//   "ADOBE_FLASH_FLV" - The creative is of video type Adobe Flash FLV. For
  1367  	// pretargeting.
  1368  	//   "IS_TAGGED" - The creative is tagged.
  1369  	//   "IS_COOKIE_TARGETED" - The creative is cookie targeted.
  1370  	//   "IS_USER_INTEREST_TARGETED" - The creative is user interest targeted.
  1371  	//   "EXPANDING_DIRECTION_NONE" - The creative does not expand.
  1372  	//   "EXPANDING_DIRECTION_UP" - The creative expands up.
  1373  	//   "EXPANDING_DIRECTION_DOWN" - The creative expands down.
  1374  	//   "EXPANDING_DIRECTION_LEFT" - The creative expands left.
  1375  	//   "EXPANDING_DIRECTION_RIGHT" - The creative expands right.
  1376  	//   "EXPANDING_DIRECTION_UP_LEFT" - The creative expands up and left.
  1377  	//   "EXPANDING_DIRECTION_UP_RIGHT" - The creative expands up and right.
  1378  	//   "EXPANDING_DIRECTION_DOWN_LEFT" - The creative expands down and left.
  1379  	//   "EXPANDING_DIRECTION_DOWN_RIGHT" - The creative expands down and right.
  1380  	//   "CREATIVE_TYPE_HTML" - The creative type is HTML.
  1381  	//   "CREATIVE_TYPE_VAST_VIDEO" - The creative type is VAST video.
  1382  	//   "EXPANDING_DIRECTION_UP_OR_DOWN" - The creative expands up or down.
  1383  	//   "EXPANDING_DIRECTION_LEFT_OR_RIGHT" - The creative expands left or right.
  1384  	//   "EXPANDING_DIRECTION_ANY_DIAGONAL" - The creative expands on any diagonal.
  1385  	//   "EXPANDING_ACTION_ROLLOVER_TO_EXPAND" - The creative expands when rolled
  1386  	// over.
  1387  	//   "INSTREAM_VAST_VIDEO_TYPE_VPAID_FLASH" - The instream vast video type is
  1388  	// vpaid flash.
  1389  	//   "RICH_MEDIA_CAPABILITY_TYPE_MRAID" - The creative is MRAID.
  1390  	//   "RICH_MEDIA_CAPABILITY_TYPE_FLASH" - The creative is Flash.
  1391  	//   "RICH_MEDIA_CAPABILITY_TYPE_HTML5" - The creative is HTML5.
  1392  	//   "SKIPPABLE_INSTREAM_VIDEO" - The creative has an instream VAST video type
  1393  	// of skippable instream video. For pretargeting.
  1394  	//   "RICH_MEDIA_CAPABILITY_TYPE_SSL" - The creative is SSL.
  1395  	//   "RICH_MEDIA_CAPABILITY_TYPE_NON_SSL" - The creative is non-SSL.
  1396  	//   "RICH_MEDIA_CAPABILITY_TYPE_INTERSTITIAL" - The creative is an
  1397  	// interstitial.
  1398  	//   "NON_SKIPPABLE_INSTREAM_VIDEO" - The creative has an instream VAST video
  1399  	// type of non-skippable instream video. For pretargeting.
  1400  	//   "NATIVE_ELIGIBILITY_ELIGIBLE" - The creative is eligible for native.
  1401  	//   "NON_VPAID" - The creative has an instream VAST video type of non-VPAID.
  1402  	// For pretargeting.
  1403  	//   "NATIVE_ELIGIBILITY_NOT_ELIGIBLE" - The creative is not eligible for
  1404  	// native.
  1405  	//   "ANY_INTERSTITIAL" - The creative has an interstitial size of any
  1406  	// interstitial. For pretargeting.
  1407  	//   "NON_INTERSTITIAL" - The creative has an interstitial size of non
  1408  	// interstitial. For pretargeting.
  1409  	//   "IN_BANNER_VIDEO" - The video type is in-banner video.
  1410  	//   "RENDERING_SIZELESS_ADX" - The creative can dynamically resize to fill a
  1411  	// variety of slot sizes.
  1412  	//   "OMSDK_1_0" - The open measurement SDK is supported.
  1413  	//   "RENDERING_PLAYABLE" - The creative is considered a playable display
  1414  	// creative.
  1415  	Attributes []string `json:"attributes,omitempty"`
  1416  	// ClickThroughUrls: The set of destination URLs for the creative.
  1417  	ClickThroughUrls []string `json:"clickThroughUrls,omitempty"`
  1418  	// Corrections: Output only. Shows any corrections that were applied to this
  1419  	// creative.
  1420  	Corrections []*Correction `json:"corrections,omitempty"`
  1421  	// CreativeId: The buyer-defined creative ID of this creative. Can be used to
  1422  	// filter the response of the creatives.list method.
  1423  	CreativeId string `json:"creativeId,omitempty"`
  1424  	// DealsStatus: Output only. The top-level deals status of this creative. If
  1425  	// disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
  1426  	// serving_restrictions will also exist. Note that this may be nuanced with
  1427  	// other contextual restrictions, in which case, it may be preferable to read
  1428  	// from serving_restrictions directly. Can be used to filter the response of
  1429  	// the creatives.list method.
  1430  	//
  1431  	// Possible values:
  1432  	//   "STATUS_UNSPECIFIED" - The status is unknown.
  1433  	//   "NOT_CHECKED" - The creative has not been checked.
  1434  	//   "CONDITIONALLY_APPROVED" - The creative has been conditionally approved.
  1435  	// See serving_restrictions for details.
  1436  	//   "APPROVED" - The creative has been approved.
  1437  	//   "DISAPPROVED" - The creative has been disapproved.
  1438  	//   "PENDING_REVIEW" - Placeholder for transition to v1beta1. Currently not
  1439  	// used.
  1440  	//   "STATUS_TYPE_UNSPECIFIED" - Placeholder for transition to v1beta1.
  1441  	// Currently not used.
  1442  	DealsStatus string `json:"dealsStatus,omitempty"`
  1443  	// DeclaredClickThroughUrls: The set of declared destination URLs for the
  1444  	// creative.
  1445  	DeclaredClickThroughUrls []string `json:"declaredClickThroughUrls,omitempty"`
  1446  	// DetectedAdvertiserIds: Output only. Detected advertiser IDs, if any.
  1447  	DetectedAdvertiserIds googleapi.Int64s `json:"detectedAdvertiserIds,omitempty"`
  1448  	// DetectedDomains: Output only. The detected domains for this creative.
  1449  	DetectedDomains []string `json:"detectedDomains,omitempty"`
  1450  	// DetectedLanguages: Output only. The detected languages for this creative.
  1451  	// The order is arbitrary. The codes are 2 or 5 characters and are documented
  1452  	// at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
  1453  	DetectedLanguages []string `json:"detectedLanguages,omitempty"`
  1454  	// DetectedProductCategories: Output only. Detected product categories, if any.
  1455  	// See the ad-product-categories.txt file in the technical documentation for a
  1456  	// list of IDs.
  1457  	DetectedProductCategories []int64 `json:"detectedProductCategories,omitempty"`
  1458  	// DetectedSensitiveCategories: Output only. Detected sensitive categories, if
  1459  	// any. See the ad-sensitive-categories.txt file in the technical documentation
  1460  	// for a list of IDs. You should use these IDs along with the
  1461  	// excluded-sensitive-category field in the bid request to filter your bids.
  1462  	DetectedSensitiveCategories []int64 `json:"detectedSensitiveCategories,omitempty"`
  1463  	// Html: An HTML creative.
  1464  	Html *HtmlContent `json:"html,omitempty"`
  1465  	// ImpressionTrackingUrls: The set of URLs to be called to record an
  1466  	// impression.
  1467  	ImpressionTrackingUrls []string `json:"impressionTrackingUrls,omitempty"`
  1468  	// Native: A native creative.
  1469  	Native *NativeContent `json:"native,omitempty"`
  1470  	// OpenAuctionStatus: Output only. The top-level open auction status of this
  1471  	// creative. If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or
  1472  	// 'ALL') in serving_restrictions will also exist. Note that this may be
  1473  	// nuanced with other contextual restrictions, in which case, it may be
  1474  	// preferable to read from serving_restrictions directly. Can be used to filter
  1475  	// the response of the creatives.list method.
  1476  	//
  1477  	// Possible values:
  1478  	//   "STATUS_UNSPECIFIED" - The status is unknown.
  1479  	//   "NOT_CHECKED" - The creative has not been checked.
  1480  	//   "CONDITIONALLY_APPROVED" - The creative has been conditionally approved.
  1481  	// See serving_restrictions for details.
  1482  	//   "APPROVED" - The creative has been approved.
  1483  	//   "DISAPPROVED" - The creative has been disapproved.
  1484  	//   "PENDING_REVIEW" - Placeholder for transition to v1beta1. Currently not
  1485  	// used.
  1486  	//   "STATUS_TYPE_UNSPECIFIED" - Placeholder for transition to v1beta1.
  1487  	// Currently not used.
  1488  	OpenAuctionStatus string `json:"openAuctionStatus,omitempty"`
  1489  	// RestrictedCategories: All restricted categories for the ads that may be
  1490  	// shown from this creative.
  1491  	//
  1492  	// Possible values:
  1493  	//   "NO_RESTRICTED_CATEGORIES" - The ad has no restricted categories
  1494  	//   "ALCOHOL" - The alcohol restricted category.
  1495  	RestrictedCategories []string `json:"restrictedCategories,omitempty"`
  1496  	// ServingRestrictions: Output only. The granular status of this ad in specific
  1497  	// contexts. A context here relates to where something ultimately serves (for
  1498  	// example, a physical location, a platform, an HTTPS versus HTTP request, or
  1499  	// the type of auction).
  1500  	ServingRestrictions []*ServingRestriction `json:"servingRestrictions,omitempty"`
  1501  	// VendorIds: All vendor IDs for the ads that may be shown from this creative.
  1502  	// See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
  1503  	// possible values.
  1504  	VendorIds []int64 `json:"vendorIds,omitempty"`
  1505  	// Version: Output only. The version of this creative.
  1506  	Version int64 `json:"version,omitempty"`
  1507  	// Video: A video creative.
  1508  	Video *VideoContent `json:"video,omitempty"`
  1509  
  1510  	// ServerResponse contains the HTTP response code and headers from the server.
  1511  	googleapi.ServerResponse `json:"-"`
  1512  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  1513  	// unconditionally include in API requests. By default, fields with empty or
  1514  	// default values are omitted from API requests. See
  1515  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1516  	// details.
  1517  	ForceSendFields []string `json:"-"`
  1518  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  1519  	// requests with the JSON null value. By default, fields with empty values are
  1520  	// omitted from API requests. See
  1521  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1522  	NullFields []string `json:"-"`
  1523  }
  1524  
  1525  func (s *Creative) MarshalJSON() ([]byte, error) {
  1526  	type NoMethod Creative
  1527  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1528  }
  1529  
  1530  // CreativeDealAssociation: The association between a creative and a deal.
  1531  type CreativeDealAssociation struct {
  1532  	// AccountId: The account the creative belongs to.
  1533  	AccountId string `json:"accountId,omitempty"`
  1534  	// CreativeId: The ID of the creative associated with the deal.
  1535  	CreativeId string `json:"creativeId,omitempty"`
  1536  	// DealsId: The externalDealId for the deal associated with the creative.
  1537  	DealsId string `json:"dealsId,omitempty"`
  1538  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  1539  	// unconditionally include in API requests. By default, fields with empty or
  1540  	// default values are omitted from API requests. See
  1541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1542  	// details.
  1543  	ForceSendFields []string `json:"-"`
  1544  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  1545  	// requests with the JSON null value. By default, fields with empty values are
  1546  	// omitted from API requests. See
  1547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1548  	NullFields []string `json:"-"`
  1549  }
  1550  
  1551  func (s *CreativeDealAssociation) MarshalJSON() ([]byte, error) {
  1552  	type NoMethod CreativeDealAssociation
  1553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1554  }
  1555  
  1556  // CreativeRestrictions: Represents creative restrictions associated to
  1557  // Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn't apply to
  1558  // Private Auction and AdX Preferred Deals.
  1559  type CreativeRestrictions struct {
  1560  	// CreativeFormat: The format of the environment that the creatives will be
  1561  	// displayed in.
  1562  	//
  1563  	// Possible values:
  1564  	//   "CREATIVE_FORMAT_UNSPECIFIED" - A placeholder for an undefined creative
  1565  	// format.
  1566  	//   "DISPLAY" - A creative that will be displayed in environments such as a
  1567  	// browser.
  1568  	//   "VIDEO" - A video creative that will be displayed in environments such as
  1569  	// a video player.
  1570  	CreativeFormat         string                   `json:"creativeFormat,omitempty"`
  1571  	CreativeSpecifications []*CreativeSpecification `json:"creativeSpecifications,omitempty"`
  1572  	// SkippableAdType: Skippable video ads allow viewers to skip ads after 5
  1573  	// seconds.
  1574  	//
  1575  	// Possible values:
  1576  	//   "SKIPPABLE_AD_TYPE_UNSPECIFIED" - A placeholder for an undefined skippable
  1577  	// ad type.
  1578  	//   "SKIPPABLE" - This video ad can be skipped after 5 seconds.
  1579  	//   "INSTREAM_SELECT" - This video ad can be skipped after 5 seconds, and is
  1580  	// counted as engaged view after 30 seconds. The creative is hosted on YouTube
  1581  	// only, and viewcount of the YouTube video increments after the engaged view.
  1582  	//   "NOT_SKIPPABLE" - This video ad is not skippable.
  1583  	SkippableAdType string `json:"skippableAdType,omitempty"`
  1584  	// ForceSendFields is a list of field names (e.g. "CreativeFormat") to
  1585  	// unconditionally include in API requests. By default, fields with empty or
  1586  	// default values are omitted from API requests. See
  1587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1588  	// details.
  1589  	ForceSendFields []string `json:"-"`
  1590  	// NullFields is a list of field names (e.g. "CreativeFormat") to include in
  1591  	// API requests with the JSON null value. By default, fields with empty values
  1592  	// are omitted from API requests. See
  1593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1594  	NullFields []string `json:"-"`
  1595  }
  1596  
  1597  func (s *CreativeRestrictions) MarshalJSON() ([]byte, error) {
  1598  	type NoMethod CreativeRestrictions
  1599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1600  }
  1601  
  1602  // CreativeSize: Specifies the size of the creative.
  1603  type CreativeSize struct {
  1604  	// AllowedFormats: What formats are allowed by the publisher. If this repeated
  1605  	// field is empty then all formats are allowed. For example, if this field
  1606  	// contains AllowedFormatType.AUDIO then the publisher only allows an audio ad
  1607  	// (without any video).
  1608  	//
  1609  	// Possible values:
  1610  	//   "UNKNOWN" - A placeholder for an undefined allowed format.
  1611  	//   "AUDIO" - An audio-only ad (without any video).
  1612  	AllowedFormats []string `json:"allowedFormats,omitempty"`
  1613  	// CompanionSizes: For video creatives specifies the sizes of companion ads (if
  1614  	// present). Companion sizes may be filled in only when creative_size_type =
  1615  	// VIDEO
  1616  	CompanionSizes []*Size `json:"companionSizes,omitempty"`
  1617  	// CreativeSizeType: The creative size type.
  1618  	//
  1619  	// Possible values:
  1620  	//   "CREATIVE_SIZE_TYPE_UNSPECIFIED" - A placeholder for an undefined creative
  1621  	// size type.
  1622  	//   "REGULAR" - The creative is a regular desktop creative.
  1623  	//   "INTERSTITIAL" - The creative is an interstitial creative.
  1624  	//   "VIDEO" - The creative is a video creative.
  1625  	//   "NATIVE" - The creative is a native (mobile) creative.
  1626  	CreativeSizeType string `json:"creativeSizeType,omitempty"`
  1627  	// NativeTemplate: Output only. The native template for this creative. It will
  1628  	// have a value only if creative_size_type = CreativeSizeType.NATIVE.
  1629  	//
  1630  	// Possible values:
  1631  	//   "UNKNOWN_NATIVE_TEMPLATE" - A placeholder for an undefined native
  1632  	// template.
  1633  	//   "NATIVE_CONTENT_AD" - The creative is linked to native content ad.
  1634  	//   "NATIVE_APP_INSTALL_AD" - The creative is linked to native app install ad.
  1635  	//   "NATIVE_VIDEO_CONTENT_AD" - The creative is linked to native video content
  1636  	// ad.
  1637  	//   "NATIVE_VIDEO_APP_INSTALL_AD" - The creative is linked to native video app
  1638  	// install ad.
  1639  	NativeTemplate string `json:"nativeTemplate,omitempty"`
  1640  	// Size: For regular or video creative size type, specifies the size of the
  1641  	// creative
  1642  	Size *Size `json:"size,omitempty"`
  1643  	// SkippableAdType: The type of skippable ad for this creative. It will have a
  1644  	// value only if creative_size_type = CreativeSizeType.VIDEO.
  1645  	//
  1646  	// Possible values:
  1647  	//   "SKIPPABLE_AD_TYPE_UNSPECIFIED" - A placeholder for an undefined skippable
  1648  	// ad type.
  1649  	//   "GENERIC" - This video ad can be skipped after 5 seconds.
  1650  	//   "INSTREAM_SELECT" - This video ad can be skipped after 5 seconds, and
  1651  	// count as engaged view after 30 seconds. The creative is hosted on YouTube
  1652  	// only, and viewcount of the YouTube video increments after the engaged view.
  1653  	//   "NOT_SKIPPABLE" - This video ad is not skippable.
  1654  	SkippableAdType string `json:"skippableAdType,omitempty"`
  1655  	// ForceSendFields is a list of field names (e.g. "AllowedFormats") to
  1656  	// unconditionally include in API requests. By default, fields with empty or
  1657  	// default values are omitted from API requests. See
  1658  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1659  	// details.
  1660  	ForceSendFields []string `json:"-"`
  1661  	// NullFields is a list of field names (e.g. "AllowedFormats") to include in
  1662  	// API requests with the JSON null value. By default, fields with empty values
  1663  	// are omitted from API requests. See
  1664  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1665  	NullFields []string `json:"-"`
  1666  }
  1667  
  1668  func (s *CreativeSize) MarshalJSON() ([]byte, error) {
  1669  	type NoMethod CreativeSize
  1670  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1671  }
  1672  
  1673  // CreativeSpecification: Represents information for a creative that is
  1674  // associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
  1675  type CreativeSpecification struct {
  1676  	// CreativeCompanionSizes: Companion sizes may be filled in only when this is a
  1677  	// video creative.
  1678  	CreativeCompanionSizes []*AdSize `json:"creativeCompanionSizes,omitempty"`
  1679  	// CreativeSize: The size of the creative.
  1680  	CreativeSize *AdSize `json:"creativeSize,omitempty"`
  1681  	// ForceSendFields is a list of field names (e.g. "CreativeCompanionSizes") to
  1682  	// unconditionally include in API requests. By default, fields with empty or
  1683  	// default values are omitted from API requests. See
  1684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1685  	// details.
  1686  	ForceSendFields []string `json:"-"`
  1687  	// NullFields is a list of field names (e.g. "CreativeCompanionSizes") to
  1688  	// include in API requests with the JSON null value. By default, fields with
  1689  	// empty values are omitted from API requests. See
  1690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1691  	NullFields []string `json:"-"`
  1692  }
  1693  
  1694  func (s *CreativeSpecification) MarshalJSON() ([]byte, error) {
  1695  	type NoMethod CreativeSpecification
  1696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1697  }
  1698  
  1699  // CreativeStatusRow: The number of bids with the specified dimension values
  1700  // that did not win the auction (either were filtered pre-auction or lost the
  1701  // auction), as described by the specified creative status.
  1702  type CreativeStatusRow struct {
  1703  	// BidCount: The number of bids with the specified status.
  1704  	BidCount *MetricValue `json:"bidCount,omitempty"`
  1705  	// CreativeStatusId: The ID of the creative status. See creative-status-codes
  1706  	// (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
  1707  	CreativeStatusId int64 `json:"creativeStatusId,omitempty"`
  1708  	// RowDimensions: The values of all dimensions associated with metric values in
  1709  	// this row.
  1710  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
  1711  	// ForceSendFields is a list of field names (e.g. "BidCount") to
  1712  	// unconditionally include in API requests. By default, fields with empty or
  1713  	// default values are omitted from API requests. See
  1714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1715  	// details.
  1716  	ForceSendFields []string `json:"-"`
  1717  	// NullFields is a list of field names (e.g. "BidCount") to include in API
  1718  	// requests with the JSON null value. By default, fields with empty values are
  1719  	// omitted from API requests. See
  1720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1721  	NullFields []string `json:"-"`
  1722  }
  1723  
  1724  func (s *CreativeStatusRow) MarshalJSON() ([]byte, error) {
  1725  	type NoMethod CreativeStatusRow
  1726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1727  }
  1728  
  1729  // CriteriaTargeting: Generic targeting used for targeting dimensions that
  1730  // contains a list of included and excluded numeric IDs.
  1731  type CriteriaTargeting struct {
  1732  	// ExcludedCriteriaIds: A list of numeric IDs to be excluded.
  1733  	ExcludedCriteriaIds googleapi.Int64s `json:"excludedCriteriaIds,omitempty"`
  1734  	// TargetedCriteriaIds: A list of numeric IDs to be included.
  1735  	TargetedCriteriaIds googleapi.Int64s `json:"targetedCriteriaIds,omitempty"`
  1736  	// ForceSendFields is a list of field names (e.g. "ExcludedCriteriaIds") to
  1737  	// unconditionally include in API requests. By default, fields with empty or
  1738  	// default values are omitted from API requests. See
  1739  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1740  	// details.
  1741  	ForceSendFields []string `json:"-"`
  1742  	// NullFields is a list of field names (e.g. "ExcludedCriteriaIds") to include
  1743  	// in API requests with the JSON null value. By default, fields with empty
  1744  	// values are omitted from API requests. See
  1745  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1746  	NullFields []string `json:"-"`
  1747  }
  1748  
  1749  func (s *CriteriaTargeting) MarshalJSON() ([]byte, error) {
  1750  	type NoMethod CriteriaTargeting
  1751  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1752  }
  1753  
  1754  // Date: Represents a whole or partial calendar date, such as a birthday. The
  1755  // time of day and time zone are either specified elsewhere or are
  1756  // insignificant. The date is relative to the Gregorian Calendar. This can
  1757  // represent one of the following: * A full date, with non-zero year, month,
  1758  // and day values. * A month and day, with a zero year (for example, an
  1759  // anniversary). * A year on its own, with a zero month and a zero day. * A
  1760  // year and month, with a zero day (for example, a credit card expiration
  1761  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  1762  // google.protobuf.Timestamp
  1763  type Date struct {
  1764  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  1765  	// or 0 to specify a year by itself or a year and month where the day isn't
  1766  	// significant.
  1767  	Day int64 `json:"day,omitempty"`
  1768  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  1769  	// a month and day.
  1770  	Month int64 `json:"month,omitempty"`
  1771  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  1772  	// without a year.
  1773  	Year int64 `json:"year,omitempty"`
  1774  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  1775  	// include in API requests. By default, fields with empty or default values are
  1776  	// omitted from API requests. See
  1777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1778  	// details.
  1779  	ForceSendFields []string `json:"-"`
  1780  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  1781  	// with the JSON null value. By default, fields with empty values are omitted
  1782  	// from API requests. See
  1783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1784  	NullFields []string `json:"-"`
  1785  }
  1786  
  1787  func (s *Date) MarshalJSON() ([]byte, error) {
  1788  	type NoMethod Date
  1789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1790  }
  1791  
  1792  // DayPart: Daypart targeting message that specifies if the ad can be shown
  1793  // only during certain parts of a day/week.
  1794  type DayPart struct {
  1795  	// DayOfWeek: The day of the week to target. If unspecified, applicable to all
  1796  	// days.
  1797  	//
  1798  	// Possible values:
  1799  	//   "DAY_OF_WEEK_UNSPECIFIED" - A placeholder for when the day of the week is
  1800  	// not specified.
  1801  	//   "MONDAY" - Monday
  1802  	//   "TUESDAY" - Tuesday
  1803  	//   "WEDNESDAY" - Wednesday
  1804  	//   "THURSDAY" - Thursday
  1805  	//   "FRIDAY" - Friday
  1806  	//   "SATURDAY" - Saturday
  1807  	//   "SUNDAY" - Sunday
  1808  	DayOfWeek string `json:"dayOfWeek,omitempty"`
  1809  	// EndTime: The ending time of the day for the ad to show (minute level
  1810  	// granularity). The end time is exclusive. This field is not available for
  1811  	// filtering in PQL queries.
  1812  	EndTime *TimeOfDay `json:"endTime,omitempty"`
  1813  	// StartTime: The starting time of day for the ad to show (minute level
  1814  	// granularity). The start time is inclusive. This field is not available for
  1815  	// filtering in PQL queries.
  1816  	StartTime *TimeOfDay `json:"startTime,omitempty"`
  1817  	// ForceSendFields is a list of field names (e.g. "DayOfWeek") to
  1818  	// unconditionally include in API requests. By default, fields with empty or
  1819  	// default values are omitted from API requests. See
  1820  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1821  	// details.
  1822  	ForceSendFields []string `json:"-"`
  1823  	// NullFields is a list of field names (e.g. "DayOfWeek") to include in API
  1824  	// requests with the JSON null value. By default, fields with empty values are
  1825  	// omitted from API requests. See
  1826  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1827  	NullFields []string `json:"-"`
  1828  }
  1829  
  1830  func (s *DayPart) MarshalJSON() ([]byte, error) {
  1831  	type NoMethod DayPart
  1832  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1833  }
  1834  
  1835  // DayPartTargeting: Specifies the day part targeting criteria.
  1836  type DayPartTargeting struct {
  1837  	// DayParts: A list of day part targeting criterion.
  1838  	DayParts []*DayPart `json:"dayParts,omitempty"`
  1839  	// TimeZoneType: The timezone to use for interpreting the day part targeting.
  1840  	//
  1841  	// Possible values:
  1842  	//   "TIME_ZONE_SOURCE_UNSPECIFIED" - A placeholder for an undefined time zone
  1843  	// source.
  1844  	//   "PUBLISHER" - Use publisher's time zone setting.
  1845  	//   "USER" - Use the user's time zone setting.
  1846  	TimeZoneType string `json:"timeZoneType,omitempty"`
  1847  	// ForceSendFields is a list of field names (e.g. "DayParts") to
  1848  	// unconditionally include in API requests. By default, fields with empty or
  1849  	// default values are omitted from API requests. See
  1850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1851  	// details.
  1852  	ForceSendFields []string `json:"-"`
  1853  	// NullFields is a list of field names (e.g. "DayParts") to include in API
  1854  	// requests with the JSON null value. By default, fields with empty values are
  1855  	// omitted from API requests. See
  1856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1857  	NullFields []string `json:"-"`
  1858  }
  1859  
  1860  func (s *DayPartTargeting) MarshalJSON() ([]byte, error) {
  1861  	type NoMethod DayPartTargeting
  1862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1863  }
  1864  
  1865  // Deal: A deal represents a segment of inventory for displaying ads on. A
  1866  // proposal can contain multiple deals. A deal contains the terms and targeting
  1867  // information that is used for serving.
  1868  type Deal struct {
  1869  	// AvailableEndTime: Proposed flight end time of the deal. This will generally
  1870  	// be stored in a granularity of a second. A value is not required for Private
  1871  	// Auction deals or Preferred Deals.
  1872  	AvailableEndTime string `json:"availableEndTime,omitempty"`
  1873  	// AvailableStartTime: Optional. Proposed flight start time of the deal. This
  1874  	// will generally be stored in the granularity of one second since deal serving
  1875  	// starts at seconds boundary. Any time specified with more granularity (for
  1876  	// example, in milliseconds) will be truncated towards the start of time in
  1877  	// seconds.
  1878  	AvailableStartTime string `json:"availableStartTime,omitempty"`
  1879  	// BuyerPrivateData: Buyer private data (hidden from seller).
  1880  	BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"`
  1881  	// CreateProductId: The product ID from which this deal was created. Note: This
  1882  	// field may be set only when creating the resource. Modifying this field while
  1883  	// updating the resource will result in an error.
  1884  	CreateProductId string `json:"createProductId,omitempty"`
  1885  	// CreateProductRevision: Optional. Revision number of the product that the
  1886  	// deal was created from. If present on create, and the server
  1887  	// `product_revision` has advanced since the passed-in
  1888  	// `create_product_revision`, an `ABORTED` error will be returned. Note: This
  1889  	// field may be set only when creating the resource. Modifying this field while
  1890  	// updating the resource will result in an error.
  1891  	CreateProductRevision int64 `json:"createProductRevision,omitempty,string"`
  1892  	// CreateTime: Output only. The time of the deal creation.
  1893  	CreateTime string `json:"createTime,omitempty"`
  1894  	// CreativePreApprovalPolicy: Output only. Specifies the creative pre-approval
  1895  	// policy.
  1896  	//
  1897  	// Possible values:
  1898  	//   "CREATIVE_PRE_APPROVAL_POLICY_UNSPECIFIED" - A placeholder for an
  1899  	// undefined creative pre-approval policy.
  1900  	//   "SELLER_PRE_APPROVAL_REQUIRED" - The seller needs to approve each creative
  1901  	// before it can serve.
  1902  	//   "SELLER_PRE_APPROVAL_NOT_REQUIRED" - The seller does not need to approve
  1903  	// each creative before it can serve.
  1904  	CreativePreApprovalPolicy string `json:"creativePreApprovalPolicy,omitempty"`
  1905  	// CreativeRestrictions: Output only. Restricitions about the creatives
  1906  	// associated with the deal (for example, size) This is available for
  1907  	// Programmatic Guaranteed/Preferred Deals in Ad Manager.
  1908  	CreativeRestrictions *CreativeRestrictions `json:"creativeRestrictions,omitempty"`
  1909  	// CreativeSafeFrameCompatibility: Output only. Specifies whether the creative
  1910  	// is safeFrame compatible.
  1911  	//
  1912  	// Possible values:
  1913  	//   "CREATIVE_SAFE_FRAME_COMPATIBILITY_UNSPECIFIED" - A placeholder for an
  1914  	// undefined creative safe-frame compatibility.
  1915  	//   "COMPATIBLE" - The creatives need to be compatible with the safe frame
  1916  	// option.
  1917  	//   "INCOMPATIBLE" - The creatives can be incompatible with the safe frame
  1918  	// option.
  1919  	CreativeSafeFrameCompatibility string `json:"creativeSafeFrameCompatibility,omitempty"`
  1920  	// DealId: Output only. A unique deal ID for the deal (server-assigned).
  1921  	DealId string `json:"dealId,omitempty"`
  1922  	// DealServingMetadata: Output only. Metadata about the serving status of this
  1923  	// deal.
  1924  	DealServingMetadata *DealServingMetadata `json:"dealServingMetadata,omitempty"`
  1925  	// DealTerms: The negotiable terms of the deal.
  1926  	DealTerms *DealTerms `json:"dealTerms,omitempty"`
  1927  	// DeliveryControl: The set of fields around delivery control that are
  1928  	// interesting for a buyer to see but are non-negotiable. These are set by the
  1929  	// publisher.
  1930  	DeliveryControl *DeliveryControl `json:"deliveryControl,omitempty"`
  1931  	// Description: Description for the deal terms.
  1932  	Description string `json:"description,omitempty"`
  1933  	// DisplayName: The name of the deal.
  1934  	DisplayName string `json:"displayName,omitempty"`
  1935  	// ExternalDealId: Output only. The external deal ID assigned to this deal once
  1936  	// the deal is finalized. This is the deal ID that shows up in
  1937  	// serving/reporting etc.
  1938  	ExternalDealId string `json:"externalDealId,omitempty"`
  1939  	// IsSetupComplete: Output only. True, if the buyside inventory setup is
  1940  	// complete for this deal.
  1941  	IsSetupComplete bool `json:"isSetupComplete,omitempty"`
  1942  	// ProgrammaticCreativeSource: Output only. Specifies the creative source for
  1943  	// programmatic deals. PUBLISHER means creative is provided by seller and
  1944  	// ADVERTISER means creative is provided by buyer.
  1945  	//
  1946  	// Possible values:
  1947  	//   "PROGRAMMATIC_CREATIVE_SOURCE_UNSPECIFIED" - A placeholder for an
  1948  	// undefined programmatic creative source.
  1949  	//   "ADVERTISER" - The advertiser provides the creatives.
  1950  	//   "PUBLISHER" - The publisher provides the creatives to be served.
  1951  	ProgrammaticCreativeSource string `json:"programmaticCreativeSource,omitempty"`
  1952  	// ProposalId: Output only. ID of the proposal that this deal is part of.
  1953  	ProposalId string `json:"proposalId,omitempty"`
  1954  	// SellerContacts: Output only. Seller contact information for the deal.
  1955  	SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"`
  1956  	// SyndicationProduct: The syndication product associated with the deal. Note:
  1957  	// This field may be set only when creating the resource. Modifying this field
  1958  	// while updating the resource will result in an error.
  1959  	//
  1960  	// Possible values:
  1961  	//   "SYNDICATION_PRODUCT_UNSPECIFIED" - A placeholder for an undefined
  1962  	// syndication product.
  1963  	//   "CONTENT" - This typically represents a web page.
  1964  	//   "MOBILE" - This represents a mobile property.
  1965  	//   "VIDEO" - This represents video ad formats.
  1966  	//   "GAMES" - This represents ads shown within games.
  1967  	SyndicationProduct string `json:"syndicationProduct,omitempty"`
  1968  	// Targeting: Output only. Specifies the subset of inventory targeted by the
  1969  	// deal.
  1970  	Targeting *MarketplaceTargeting `json:"targeting,omitempty"`
  1971  	// TargetingCriterion: The shared targeting visible to buyers and sellers. Each
  1972  	// shared targeting entity is AND'd together.
  1973  	TargetingCriterion []*TargetingCriteria `json:"targetingCriterion,omitempty"`
  1974  	// UpdateTime: Output only. The time when the deal was last updated.
  1975  	UpdateTime string `json:"updateTime,omitempty"`
  1976  	// WebPropertyCode: The web property code for the seller copied over from the
  1977  	// product.
  1978  	WebPropertyCode string `json:"webPropertyCode,omitempty"`
  1979  	// ForceSendFields is a list of field names (e.g. "AvailableEndTime") to
  1980  	// unconditionally include in API requests. By default, fields with empty or
  1981  	// default values are omitted from API requests. See
  1982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1983  	// details.
  1984  	ForceSendFields []string `json:"-"`
  1985  	// NullFields is a list of field names (e.g. "AvailableEndTime") to include in
  1986  	// API requests with the JSON null value. By default, fields with empty values
  1987  	// are omitted from API requests. See
  1988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1989  	NullFields []string `json:"-"`
  1990  }
  1991  
  1992  func (s *Deal) MarshalJSON() ([]byte, error) {
  1993  	type NoMethod Deal
  1994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1995  }
  1996  
  1997  // DealPauseStatus: Tracks which parties (if any) have paused a deal. The deal
  1998  // is considered paused if either hasBuyerPaused or hasSellPaused is true.
  1999  type DealPauseStatus struct {
  2000  	// BuyerPauseReason: The buyer's reason for pausing, if the buyer paused the
  2001  	// deal.
  2002  	BuyerPauseReason string `json:"buyerPauseReason,omitempty"`
  2003  	// FirstPausedBy: The role of the person who first paused this deal.
  2004  	//
  2005  	// Possible values:
  2006  	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
  2007  	// buyer/seller role.
  2008  	//   "BUYER" - Specifies the role as buyer.
  2009  	//   "SELLER" - Specifies the role as seller.
  2010  	FirstPausedBy string `json:"firstPausedBy,omitempty"`
  2011  	// HasBuyerPaused: True, if the buyer has paused the deal unilaterally.
  2012  	HasBuyerPaused bool `json:"hasBuyerPaused,omitempty"`
  2013  	// HasSellerPaused: True, if the seller has paused the deal unilaterally.
  2014  	HasSellerPaused bool `json:"hasSellerPaused,omitempty"`
  2015  	// SellerPauseReason: The seller's reason for pausing, if the seller paused the
  2016  	// deal.
  2017  	SellerPauseReason string `json:"sellerPauseReason,omitempty"`
  2018  	// ForceSendFields is a list of field names (e.g. "BuyerPauseReason") to
  2019  	// unconditionally include in API requests. By default, fields with empty or
  2020  	// default values are omitted from API requests. See
  2021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2022  	// details.
  2023  	ForceSendFields []string `json:"-"`
  2024  	// NullFields is a list of field names (e.g. "BuyerPauseReason") to include in
  2025  	// API requests with the JSON null value. By default, fields with empty values
  2026  	// are omitted from API requests. See
  2027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2028  	NullFields []string `json:"-"`
  2029  }
  2030  
  2031  func (s *DealPauseStatus) MarshalJSON() ([]byte, error) {
  2032  	type NoMethod DealPauseStatus
  2033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2034  }
  2035  
  2036  // DealServingMetadata: Message captures metadata about the serving status of a
  2037  // deal.
  2038  type DealServingMetadata struct {
  2039  	// DealPauseStatus: Output only. Tracks which parties (if any) have paused a
  2040  	// deal.
  2041  	DealPauseStatus *DealPauseStatus `json:"dealPauseStatus,omitempty"`
  2042  	// ForceSendFields is a list of field names (e.g. "DealPauseStatus") to
  2043  	// unconditionally include in API requests. By default, fields with empty or
  2044  	// default values are omitted from API requests. See
  2045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2046  	// details.
  2047  	ForceSendFields []string `json:"-"`
  2048  	// NullFields is a list of field names (e.g. "DealPauseStatus") to include in
  2049  	// API requests with the JSON null value. By default, fields with empty values
  2050  	// are omitted from API requests. See
  2051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2052  	NullFields []string `json:"-"`
  2053  }
  2054  
  2055  func (s *DealServingMetadata) MarshalJSON() ([]byte, error) {
  2056  	type NoMethod DealServingMetadata
  2057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2058  }
  2059  
  2060  // DealTerms: The deal terms specify the details of a Product/deal. They
  2061  // specify things like price per buyer, the type of pricing model (for example,
  2062  // fixed price, auction) and expected impressions from the publisher.
  2063  type DealTerms struct {
  2064  	// BrandingType: Visibility of the URL in bid requests. (default: BRANDED)
  2065  	//
  2066  	// Possible values:
  2067  	//   "BRANDING_TYPE_UNSPECIFIED" - A placeholder for an undefined branding
  2068  	// type.
  2069  	//   "BRANDED" - Full URL is included in bid requests.
  2070  	//   "SEMI_TRANSPARENT" - A TopLevelDomain or masked URL is sent in bid
  2071  	// requests rather than the full one.
  2072  	BrandingType string `json:"brandingType,omitempty"`
  2073  	// Description: Publisher provided description for the terms.
  2074  	Description string `json:"description,omitempty"`
  2075  	// EstimatedGrossSpend: Non-binding estimate of the estimated gross spend for
  2076  	// this deal. Can be set by buyer or seller.
  2077  	EstimatedGrossSpend *Price `json:"estimatedGrossSpend,omitempty"`
  2078  	// EstimatedImpressionsPerDay: Non-binding estimate of the impressions served
  2079  	// per day. Can be set by buyer or seller.
  2080  	EstimatedImpressionsPerDay int64 `json:"estimatedImpressionsPerDay,omitempty,string"`
  2081  	// GuaranteedFixedPriceTerms: The terms for guaranteed fixed price deals.
  2082  	GuaranteedFixedPriceTerms *GuaranteedFixedPriceTerms `json:"guaranteedFixedPriceTerms,omitempty"`
  2083  	// NonGuaranteedAuctionTerms: The terms for non-guaranteed auction deals.
  2084  	NonGuaranteedAuctionTerms *NonGuaranteedAuctionTerms `json:"nonGuaranteedAuctionTerms,omitempty"`
  2085  	// NonGuaranteedFixedPriceTerms: The terms for non-guaranteed fixed price
  2086  	// deals.
  2087  	NonGuaranteedFixedPriceTerms *NonGuaranteedFixedPriceTerms `json:"nonGuaranteedFixedPriceTerms,omitempty"`
  2088  	// SellerTimeZone: The time zone name. For deals with Cost Per Day billing,
  2089  	// defines the time zone used to mark the boundaries of a day. It should be an
  2090  	// IANA TZ name, such as "America/Los_Angeles". For more information, see
  2091  	// https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
  2092  	SellerTimeZone string `json:"sellerTimeZone,omitempty"`
  2093  	// ForceSendFields is a list of field names (e.g. "BrandingType") to
  2094  	// unconditionally include in API requests. By default, fields with empty or
  2095  	// default values are omitted from API requests. See
  2096  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2097  	// details.
  2098  	ForceSendFields []string `json:"-"`
  2099  	// NullFields is a list of field names (e.g. "BrandingType") to include in API
  2100  	// requests with the JSON null value. By default, fields with empty values are
  2101  	// omitted from API requests. See
  2102  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2103  	NullFields []string `json:"-"`
  2104  }
  2105  
  2106  func (s *DealTerms) MarshalJSON() ([]byte, error) {
  2107  	type NoMethod DealTerms
  2108  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2109  }
  2110  
  2111  // DeliveryControl: Message contains details about how the deals will be paced.
  2112  type DeliveryControl struct {
  2113  	// CreativeBlockingLevel: Output only. Specified the creative blocking levels
  2114  	// to be applied.
  2115  	//
  2116  	// Possible values:
  2117  	//   "CREATIVE_BLOCKING_LEVEL_UNSPECIFIED" - A placeholder for an undefined
  2118  	// creative blocking level.
  2119  	//   "PUBLISHER_BLOCKING_RULES" - Publisher blocking rules will be applied.
  2120  	//   "ADX_POLICY_BLOCKING_ONLY" - The Ad Exchange policy blocking rules will be
  2121  	// applied.
  2122  	CreativeBlockingLevel string `json:"creativeBlockingLevel,omitempty"`
  2123  	// DeliveryRateType: Output only. Specifies how the impression delivery will be
  2124  	// paced.
  2125  	//
  2126  	// Possible values:
  2127  	//   "DELIVERY_RATE_TYPE_UNSPECIFIED" - A placeholder for an undefined delivery
  2128  	// rate type.
  2129  	//   "EVENLY" - Impressions are served uniformly over the life of the deal.
  2130  	//   "FRONT_LOADED" - Impressions are served front-loaded.
  2131  	//   "AS_FAST_AS_POSSIBLE" - Impressions are served as fast as possible.
  2132  	DeliveryRateType string `json:"deliveryRateType,omitempty"`
  2133  	// FrequencyCaps: Output only. Specifies any frequency caps.
  2134  	FrequencyCaps []*FrequencyCap `json:"frequencyCaps,omitempty"`
  2135  	// ForceSendFields is a list of field names (e.g. "CreativeBlockingLevel") to
  2136  	// unconditionally include in API requests. By default, fields with empty or
  2137  	// default values are omitted from API requests. See
  2138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2139  	// details.
  2140  	ForceSendFields []string `json:"-"`
  2141  	// NullFields is a list of field names (e.g. "CreativeBlockingLevel") to
  2142  	// include in API requests with the JSON null value. By default, fields with
  2143  	// empty values are omitted from API requests. See
  2144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2145  	NullFields []string `json:"-"`
  2146  }
  2147  
  2148  func (s *DeliveryControl) MarshalJSON() ([]byte, error) {
  2149  	type NoMethod DeliveryControl
  2150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2151  }
  2152  
  2153  // Disapproval: Output only. The reason and details for a disapproval.
  2154  type Disapproval struct {
  2155  	// Details: Additional details about the reason for disapproval.
  2156  	Details []string `json:"details,omitempty"`
  2157  	// Reason: The categorized reason for disapproval.
  2158  	//
  2159  	// Possible values:
  2160  	//   "LENGTH_OF_IMAGE_ANIMATION" - The length of the image animation is longer
  2161  	// than allowed.
  2162  	//   "BROKEN_URL" - The click through URL doesn't work properly.
  2163  	//   "MEDIA_NOT_FUNCTIONAL" - Something is wrong with the creative itself.
  2164  	//   "INVALID_FOURTH_PARTY_CALL" - The ad makes a fourth party call to an
  2165  	// unapproved vendor.
  2166  	//   "INCORRECT_REMARKETING_DECLARATION" - The ad targets consumers using
  2167  	// remarketing lists and/or collects data for subsequent use in retargeting,
  2168  	// but does not correctly declare that use.
  2169  	//   "LANDING_PAGE_ERROR" - Clicking on the ad leads to an error page.
  2170  	//   "AD_SIZE_DOES_NOT_MATCH_AD_SLOT" - The ad size when rendered does not
  2171  	// match the declaration.
  2172  	//   "NO_BORDER" - Ads with a white background require a border, which was
  2173  	// missing.
  2174  	//   "FOURTH_PARTY_BROWSER_COOKIES" - The creative attempts to set cookies from
  2175  	// a fourth party that is not certified.
  2176  	//   "LSO_OBJECTS" - The creative sets an LSO object.
  2177  	//   "BLANK_CREATIVE" - The ad serves a blank.
  2178  	//   "DESTINATION_URLS_UNDECLARED" - The ad uses rotation, but not all
  2179  	// destination URLs were declared.
  2180  	//   "PROBLEM_WITH_CLICK_MACRO" - There is a problem with the way the click
  2181  	// macro is used.
  2182  	//   "INCORRECT_AD_TECHNOLOGY_DECLARATION" - The ad technology declaration is
  2183  	// not accurate.
  2184  	//   "INCORRECT_DESTINATION_URL_DECLARATION" - The actual destination URL does
  2185  	// not match the declared destination URL.
  2186  	//   "EXPANDABLE_INCORRECT_DIRECTION" - The declared expanding direction does
  2187  	// not match the actual direction.
  2188  	//   "EXPANDABLE_DIRECTION_NOT_SUPPORTED" - The ad does not expand in a
  2189  	// supported direction.
  2190  	//   "EXPANDABLE_INVALID_VENDOR" - The ad uses an expandable vendor that is not
  2191  	// supported.
  2192  	//   "EXPANDABLE_FUNCTIONALITY" - There was an issue with the expandable ad.
  2193  	//   "VIDEO_INVALID_VENDOR" - The ad uses a video vendor that is not supported.
  2194  	//   "VIDEO_UNSUPPORTED_LENGTH" - The length of the video ad is not supported.
  2195  	//   "VIDEO_UNSUPPORTED_FORMAT" - The format of the video ad is not supported.
  2196  	//   "VIDEO_FUNCTIONALITY" - There was an issue with the video ad.
  2197  	//   "LANDING_PAGE_DISABLED" - The landing page does not conform to Ad Exchange
  2198  	// policy.
  2199  	//   "MALWARE_SUSPECTED" - The ad or the landing page may contain malware.
  2200  	//   "ADULT_IMAGE_OR_VIDEO" - The ad contains adult images or video content.
  2201  	//   "INACCURATE_AD_TEXT" - The ad contains text that is unclear or inaccurate.
  2202  	//   "COUNTERFEIT_DESIGNER_GOODS" - The ad promotes counterfeit designer goods.
  2203  	//   "POP_UP" - The ad causes a popup window to appear.
  2204  	//   "INVALID_RTB_PROTOCOL_USAGE" - The creative does not follow policies set
  2205  	// for the RTB protocol.
  2206  	//   "RAW_IP_ADDRESS_IN_SNIPPET" - The ad contains a URL that uses a numeric IP
  2207  	// address for the domain.
  2208  	//   "UNACCEPTABLE_CONTENT_SOFTWARE" - The ad or landing page contains
  2209  	// unacceptable content because it initiated a software or executable download.
  2210  	//   "UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN" - The ad set an unauthorized cookie
  2211  	// on a Google domain.
  2212  	//   "UNDECLARED_FLASH_OBJECTS" - Flash content found when no flash was
  2213  	// declared.
  2214  	//   "INVALID_SSL_DECLARATION" - SSL support declared but not working
  2215  	// correctly.
  2216  	//   "DIRECT_DOWNLOAD_IN_AD" - Rich Media - Direct Download in Ad (ex. PDF
  2217  	// download).
  2218  	//   "MAXIMUM_DOWNLOAD_SIZE_EXCEEDED" - Maximum download size exceeded.
  2219  	//   "DESTINATION_URL_SITE_NOT_CRAWLABLE" - Bad Destination URL: Site Not
  2220  	// Crawlable.
  2221  	//   "BAD_URL_LEGAL_DISAPPROVAL" - Bad URL: Legal disapproval.
  2222  	//   "PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED" - Pharmaceuticals, Gambling, Alcohol
  2223  	// not allowed and at least one was detected.
  2224  	//   "DYNAMIC_DNS_AT_DESTINATION_URL" - Dynamic DNS at Destination URL.
  2225  	//   "POOR_IMAGE_OR_VIDEO_QUALITY" - Poor Image / Video Quality.
  2226  	//   "UNACCEPTABLE_IMAGE_CONTENT" - For example, Image Trick to Click.
  2227  	//   "INCORRECT_IMAGE_LAYOUT" - Incorrect Image Layout.
  2228  	//   "IRRELEVANT_IMAGE_OR_VIDEO" - Irrelevant Image / Video.
  2229  	//   "DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK" - Broken back button.
  2230  	//   "MISLEADING_CLAIMS_IN_AD" - Misleading/Inaccurate claims in ads.
  2231  	//   "RESTRICTED_PRODUCTS" - Restricted Products.
  2232  	//   "UNACCEPTABLE_CONTENT" - Unacceptable content. For example, malware.
  2233  	//   "AUTOMATED_AD_CLICKING" - The ad automatically redirects to the
  2234  	// destination site without a click, or reports a click when none were made.
  2235  	//   "INVALID_URL_PROTOCOL" - The ad uses URL protocols that do not exist or
  2236  	// are not allowed on AdX.
  2237  	//   "UNDECLARED_RESTRICTED_CONTENT" - Restricted content (for example,
  2238  	// alcohol) was found in the ad but not declared.
  2239  	//   "INVALID_REMARKETING_LIST_USAGE" - Violation of the remarketing list
  2240  	// policy.
  2241  	//   "DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT" - The destination site's
  2242  	// robot.txt file prevents it from being crawled.
  2243  	//   "CLICK_TO_DOWNLOAD_NOT_AN_APP" - Click to download must link to an app.
  2244  	//   "INACCURATE_REVIEW_EXTENSION" - A review extension must be an accurate
  2245  	// review.
  2246  	//   "SEXUALLY_EXPLICIT_CONTENT" - Sexually explicit content.
  2247  	//   "GAINING_AN_UNFAIR_ADVANTAGE" - The ad tries to gain an unfair traffic
  2248  	// advantage.
  2249  	//   "GAMING_THE_GOOGLE_NETWORK" - The ad tries to circumvent Google's
  2250  	// advertising systems.
  2251  	//   "DANGEROUS_PRODUCTS_KNIVES" - The ad promotes dangerous knives.
  2252  	//   "DANGEROUS_PRODUCTS_EXPLOSIVES" - The ad promotes explosives.
  2253  	//   "DANGEROUS_PRODUCTS_GUNS" - The ad promotes guns & parts.
  2254  	//   "DANGEROUS_PRODUCTS_DRUGS" - The ad promotes recreational drugs/services &
  2255  	// related equipment.
  2256  	//   "DANGEROUS_PRODUCTS_TOBACCO" - The ad promotes tobacco products/services &
  2257  	// related equipment.
  2258  	//   "DANGEROUS_PRODUCTS_WEAPONS" - The ad promotes weapons.
  2259  	//   "UNCLEAR_OR_IRRELEVANT_AD" - The ad is unclear or irrelevant to the
  2260  	// destination site.
  2261  	//   "PROFESSIONAL_STANDARDS" - The ad does not meet professional standards.
  2262  	//   "DYSFUNCTIONAL_PROMOTION" - The promotion is unnecessarily difficult to
  2263  	// navigate.
  2264  	//   "INVALID_INTEREST_BASED_AD" - Violation of Google's policy for
  2265  	// interest-based ads.
  2266  	//   "MISUSE_OF_PERSONAL_INFORMATION" - Misuse of personal information.
  2267  	//   "OMISSION_OF_RELEVANT_INFORMATION" - Omission of relevant information.
  2268  	//   "UNAVAILABLE_PROMOTIONS" - Unavailable promotions.
  2269  	//   "MISLEADING_PROMOTIONS" - Misleading or unrealistic promotions.
  2270  	//   "INAPPROPRIATE_CONTENT" - Offensive or inappropriate content.
  2271  	//   "SENSITIVE_EVENTS" - Capitalizing on sensitive events.
  2272  	//   "SHOCKING_CONTENT" - Shocking content.
  2273  	//   "ENABLING_DISHONEST_BEHAVIOR" - Products & Services that enable dishonest
  2274  	// behavior.
  2275  	//   "TECHNICAL_REQUIREMENTS" - The ad does not meet technical requirements.
  2276  	//   "RESTRICTED_POLITICAL_CONTENT" - Restricted political content.
  2277  	//   "UNSUPPORTED_CONTENT" - Unsupported content.
  2278  	//   "INVALID_BIDDING_METHOD" - Invalid bidding method.
  2279  	//   "VIDEO_TOO_LONG" - Video length exceeds limits.
  2280  	//   "VIOLATES_JAPANESE_PHARMACY_LAW" - Unacceptable content: Japanese
  2281  	// healthcare.
  2282  	//   "UNACCREDITED_PET_PHARMACY" - Online pharmacy ID required.
  2283  	//   "ABORTION" - Unacceptable content: Abortion.
  2284  	//   "CONTRACEPTIVES" - Unacceptable content: Birth control.
  2285  	//   "NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA" - Restricted in China.
  2286  	//   "KCDSP_REGISTRATION" - Unacceptable content: Korean healthcare.
  2287  	//   "NOT_FAMILY_SAFE" - Non-family safe or adult content.
  2288  	//   "CLINICAL_TRIAL_RECRUITMENT" - Clinical trial recruitment.
  2289  	//   "MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED" - Maximum number of HTTP calls
  2290  	// exceeded.
  2291  	//   "MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED" - Maximum number of cookies exceeded.
  2292  	//   "PERSONAL_LOANS" - Financial service ad does not adhere to specifications.
  2293  	//   "UNSUPPORTED_FLASH_CONTENT" - Flash content was found in an unsupported
  2294  	// context.
  2295  	//   "MISUSE_BY_OMID_SCRIPT" - Misuse by an Open Measurement SDK script.
  2296  	//   "NON_WHITELISTED_OMID_VENDOR" - Use of an Open Measurement SDK vendor not
  2297  	// on approved vendor list.
  2298  	//   "DESTINATION_EXPERIENCE" - Unacceptable landing page.
  2299  	//   "UNSUPPORTED_LANGUAGE" - Unsupported language.
  2300  	//   "NON_SSL_COMPLIANT" - Non-SSL compliant.
  2301  	//   "TEMPORARY_PAUSE" - Temporary pausing of creative.
  2302  	//   "BAIL_BONDS" - Promotes services related to bail bonds.
  2303  	//   "EXPERIMENTAL_MEDICAL_TREATMENT" - Promotes speculative and/or
  2304  	// experimental medical treatments.
  2305  	Reason string `json:"reason,omitempty"`
  2306  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  2307  	// include in API requests. By default, fields with empty or default values are
  2308  	// omitted from API requests. See
  2309  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2310  	// details.
  2311  	ForceSendFields []string `json:"-"`
  2312  	// NullFields is a list of field names (e.g. "Details") to include in API
  2313  	// requests with the JSON null value. By default, fields with empty values are
  2314  	// omitted from API requests. See
  2315  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2316  	NullFields []string `json:"-"`
  2317  }
  2318  
  2319  func (s *Disapproval) MarshalJSON() ([]byte, error) {
  2320  	type NoMethod Disapproval
  2321  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2322  }
  2323  
  2324  // Empty: A generic empty message that you can re-use to avoid defining
  2325  // duplicated empty messages in your APIs. A typical example is to use it as
  2326  // the request or the response type of an API method. For instance: service Foo
  2327  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  2328  type Empty struct {
  2329  	// ServerResponse contains the HTTP response code and headers from the server.
  2330  	googleapi.ServerResponse `json:"-"`
  2331  }
  2332  
  2333  // FilterSet: A set of filters that is applied to a request for data. Within a
  2334  // filter set, an AND operation is performed across the filters represented by
  2335  // each field. An OR operation is performed across the filters represented by
  2336  // the multiple values of a repeated field, for example, "format=VIDEO AND
  2337  // deal_id=12 AND (seller_network_id=34 OR seller_network_id=56)".
  2338  type FilterSet struct {
  2339  	// AbsoluteDateRange: An absolute date range, defined by a start date and an
  2340  	// end date. Interpreted relative to Pacific time zone.
  2341  	AbsoluteDateRange *AbsoluteDateRange `json:"absoluteDateRange,omitempty"`
  2342  	// BreakdownDimensions: The set of dimensions along which to break down the
  2343  	// response; may be empty. If multiple dimensions are requested, the breakdown
  2344  	// is along the Cartesian product of the requested dimensions.
  2345  	//
  2346  	// Possible values:
  2347  	//   "BREAKDOWN_DIMENSION_UNSPECIFIED" - A placeholder for an unspecified
  2348  	// dimension; should not be used.
  2349  	//   "PUBLISHER_IDENTIFIER" - The response should be broken down by publisher
  2350  	// identifier. This option is available only for Open Bidding buyers.
  2351  	BreakdownDimensions []string `json:"breakdownDimensions,omitempty"`
  2352  	// CreativeId: The ID of the creative on which to filter; optional. This field
  2353  	// may be set only for a filter set that accesses account-level troubleshooting
  2354  	// data, for example, one whose name matches the
  2355  	// `bidders/*/accounts/*/filterSets/*` pattern.
  2356  	CreativeId string `json:"creativeId,omitempty"`
  2357  	// DealId: The ID of the deal on which to filter; optional. This field may be
  2358  	// set only for a filter set that accesses account-level troubleshooting data,
  2359  	// for example, one whose name matches the `bidders/*/accounts/*/filterSets/*`
  2360  	// pattern.
  2361  	DealId int64 `json:"dealId,omitempty,string"`
  2362  	// Environment: The environment on which to filter; optional.
  2363  	//
  2364  	// Possible values:
  2365  	//   "ENVIRONMENT_UNSPECIFIED" - A placeholder for an undefined environment;
  2366  	// indicates that no environment filter will be applied.
  2367  	//   "WEB" - The ad impression appears on the web.
  2368  	//   "APP" - The ad impression appears in an app.
  2369  	Environment string `json:"environment,omitempty"`
  2370  	// Format: Creative format bidded on or allowed to bid on, can be empty.
  2371  	//
  2372  	// Possible values:
  2373  	//   "FORMAT_UNSPECIFIED" - A placeholder for an undefined format; indicates
  2374  	// that no format filter will be applied.
  2375  	//   "NATIVE_DISPLAY" - The ad impression is a native ad, and display (for
  2376  	// example, image) format.
  2377  	//   "NATIVE_VIDEO" - The ad impression is a native ad, and video format.
  2378  	//   "NON_NATIVE_DISPLAY" - The ad impression is not a native ad, and display
  2379  	// (for example, image) format.
  2380  	//   "NON_NATIVE_VIDEO" - The ad impression is not a native ad, and video
  2381  	// format.
  2382  	Format string `json:"format,omitempty"`
  2383  	// Formats: Creative formats bidded on or allowed to bid on, can be empty.
  2384  	// Although this field is a list, it can only be populated with a single item.
  2385  	// A HTTP 400 bad request error will be returned in the response if you specify
  2386  	// multiple items.
  2387  	//
  2388  	// Possible values:
  2389  	//   "FORMAT_UNSPECIFIED" - A placeholder for an undefined format; indicates
  2390  	// that no format filter will be applied.
  2391  	//   "NATIVE_DISPLAY" - The ad impression is a native ad, and display (for
  2392  	// example, image) format.
  2393  	//   "NATIVE_VIDEO" - The ad impression is a native ad, and video format.
  2394  	//   "NON_NATIVE_DISPLAY" - The ad impression is not a native ad, and display
  2395  	// (for example, image) format.
  2396  	//   "NON_NATIVE_VIDEO" - The ad impression is not a native ad, and video
  2397  	// format.
  2398  	Formats []string `json:"formats,omitempty"`
  2399  	// Name: A user-defined name of the filter set. Filter set names must be unique
  2400  	// globally and match one of the patterns: - `bidders/*/filterSets/*` (for
  2401  	// accessing bidder-level troubleshooting data) -
  2402  	// `bidders/*/accounts/*/filterSets/*` (for accessing account-level
  2403  	// troubleshooting data) This field is required in create operations.
  2404  	Name string `json:"name,omitempty"`
  2405  	// Platforms: The list of platforms on which to filter; may be empty. The
  2406  	// filters represented by multiple platforms are ORed together (for example, if
  2407  	// non-empty, results must match any one of the platforms).
  2408  	//
  2409  	// Possible values:
  2410  	//   "PLATFORM_UNSPECIFIED" - A placeholder for an undefined platform;
  2411  	// indicates that no platform filter will be applied.
  2412  	//   "DESKTOP" - The ad impression appears on a desktop.
  2413  	//   "TABLET" - The ad impression appears on a tablet.
  2414  	//   "MOBILE" - The ad impression appears on a mobile device.
  2415  	Platforms []string `json:"platforms,omitempty"`
  2416  	// PublisherIdentifiers: For Open Bidding partners only. The list of publisher
  2417  	// identifiers on which to filter; may be empty. The filters represented by
  2418  	// multiple publisher identifiers are ORed together.
  2419  	PublisherIdentifiers []string `json:"publisherIdentifiers,omitempty"`
  2420  	// RealtimeTimeRange: An open-ended realtime time range, defined by the
  2421  	// aggregation start timestamp.
  2422  	RealtimeTimeRange *RealtimeTimeRange `json:"realtimeTimeRange,omitempty"`
  2423  	// RelativeDateRange: A relative date range, defined by an offset from today
  2424  	// and a duration. Interpreted relative to Pacific time zone.
  2425  	RelativeDateRange *RelativeDateRange `json:"relativeDateRange,omitempty"`
  2426  	// SellerNetworkIds: For Authorized Buyers only. The list of IDs of the seller
  2427  	// (publisher) networks on which to filter; may be empty. The filters
  2428  	// represented by multiple seller network IDs are ORed together (for example,
  2429  	// if non-empty, results must match any one of the publisher networks). See
  2430  	// seller-network-ids
  2431  	// (https://developers.google.com/authorized-buyers/rtb/downloads/seller-network-ids)
  2432  	// file for the set of existing seller network IDs.
  2433  	SellerNetworkIds []int64 `json:"sellerNetworkIds,omitempty"`
  2434  	// TimeSeriesGranularity: The granularity of time intervals if a time series
  2435  	// breakdown is preferred; optional.
  2436  	//
  2437  	// Possible values:
  2438  	//   "TIME_SERIES_GRANULARITY_UNSPECIFIED" - A placeholder for an unspecified
  2439  	// interval; no time series is applied. All rows in response will contain data
  2440  	// for the entire requested time range.
  2441  	//   "HOURLY" - Indicates that data will be broken down by the hour.
  2442  	//   "DAILY" - Indicates that data will be broken down by the day.
  2443  	TimeSeriesGranularity string `json:"timeSeriesGranularity,omitempty"`
  2444  
  2445  	// ServerResponse contains the HTTP response code and headers from the server.
  2446  	googleapi.ServerResponse `json:"-"`
  2447  	// ForceSendFields is a list of field names (e.g. "AbsoluteDateRange") to
  2448  	// unconditionally include in API requests. By default, fields with empty or
  2449  	// default values are omitted from API requests. See
  2450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2451  	// details.
  2452  	ForceSendFields []string `json:"-"`
  2453  	// NullFields is a list of field names (e.g. "AbsoluteDateRange") to include in
  2454  	// API requests with the JSON null value. By default, fields with empty values
  2455  	// are omitted from API requests. See
  2456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2457  	NullFields []string `json:"-"`
  2458  }
  2459  
  2460  func (s *FilterSet) MarshalJSON() ([]byte, error) {
  2461  	type NoMethod FilterSet
  2462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2463  }
  2464  
  2465  // FilteredBidCreativeRow: The number of filtered bids with the specified
  2466  // dimension values that have the specified creative.
  2467  type FilteredBidCreativeRow struct {
  2468  	// BidCount: The number of bids with the specified creative.
  2469  	BidCount *MetricValue `json:"bidCount,omitempty"`
  2470  	// CreativeId: The ID of the creative.
  2471  	CreativeId string `json:"creativeId,omitempty"`
  2472  	// RowDimensions: The values of all dimensions associated with metric values in
  2473  	// this row.
  2474  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
  2475  	// ForceSendFields is a list of field names (e.g. "BidCount") to
  2476  	// unconditionally include in API requests. By default, fields with empty or
  2477  	// default values are omitted from API requests. See
  2478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2479  	// details.
  2480  	ForceSendFields []string `json:"-"`
  2481  	// NullFields is a list of field names (e.g. "BidCount") to include in API
  2482  	// requests with the JSON null value. By default, fields with empty values are
  2483  	// omitted from API requests. See
  2484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2485  	NullFields []string `json:"-"`
  2486  }
  2487  
  2488  func (s *FilteredBidCreativeRow) MarshalJSON() ([]byte, error) {
  2489  	type NoMethod FilteredBidCreativeRow
  2490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2491  }
  2492  
  2493  // FilteredBidDetailRow: The number of filtered bids with the specified
  2494  // dimension values, among those filtered due to the requested filtering reason
  2495  // (for example, creative status), that have the specified detail.
  2496  type FilteredBidDetailRow struct {
  2497  	// BidCount: The number of bids with the specified detail.
  2498  	BidCount *MetricValue `json:"bidCount,omitempty"`
  2499  	// Detail: The ID of the detail, can be numeric or text. The associated value
  2500  	// can be looked up in the dictionary file corresponding to the DetailType in
  2501  	// the response message.
  2502  	Detail string `json:"detail,omitempty"`
  2503  	// DetailId: Note: this field will be deprecated, use "detail" field instead.
  2504  	// When "detail" field represents an integer value, this field is populated as
  2505  	// the same integer value "detail" field represents, otherwise this field will
  2506  	// be 0. The ID of the detail. The associated value can be looked up in the
  2507  	// dictionary file corresponding to the DetailType in the response message.
  2508  	DetailId int64 `json:"detailId,omitempty"`
  2509  	// RowDimensions: The values of all dimensions associated with metric values in
  2510  	// this row.
  2511  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
  2512  	// ForceSendFields is a list of field names (e.g. "BidCount") to
  2513  	// unconditionally include in API requests. By default, fields with empty or
  2514  	// default values are omitted from API requests. See
  2515  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2516  	// details.
  2517  	ForceSendFields []string `json:"-"`
  2518  	// NullFields is a list of field names (e.g. "BidCount") to include in API
  2519  	// requests with the JSON null value. By default, fields with empty values are
  2520  	// omitted from API requests. See
  2521  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2522  	NullFields []string `json:"-"`
  2523  }
  2524  
  2525  func (s *FilteredBidDetailRow) MarshalJSON() ([]byte, error) {
  2526  	type NoMethod FilteredBidDetailRow
  2527  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2528  }
  2529  
  2530  // FirstPartyMobileApplicationTargeting: Represents a list of targeted and
  2531  // excluded mobile application IDs that publishers own. Mobile application IDs
  2532  // are from App Store and Google Play Store. Android App ID, for example,
  2533  // com.google.android.apps.maps, can be found in Google Play Store URL. iOS App
  2534  // ID (which is a number) can be found at the end of iTunes store URL. First
  2535  // party mobile applications is either included or excluded.
  2536  type FirstPartyMobileApplicationTargeting struct {
  2537  	// ExcludedAppIds: A list of application IDs to be excluded.
  2538  	ExcludedAppIds []string `json:"excludedAppIds,omitempty"`
  2539  	// TargetedAppIds: A list of application IDs to be included.
  2540  	TargetedAppIds []string `json:"targetedAppIds,omitempty"`
  2541  	// ForceSendFields is a list of field names (e.g. "ExcludedAppIds") to
  2542  	// unconditionally include in API requests. By default, fields with empty or
  2543  	// default values are omitted from API requests. See
  2544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2545  	// details.
  2546  	ForceSendFields []string `json:"-"`
  2547  	// NullFields is a list of field names (e.g. "ExcludedAppIds") to include in
  2548  	// API requests with the JSON null value. By default, fields with empty values
  2549  	// are omitted from API requests. See
  2550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2551  	NullFields []string `json:"-"`
  2552  }
  2553  
  2554  func (s *FirstPartyMobileApplicationTargeting) MarshalJSON() ([]byte, error) {
  2555  	type NoMethod FirstPartyMobileApplicationTargeting
  2556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2557  }
  2558  
  2559  // FrequencyCap: Frequency cap.
  2560  type FrequencyCap struct {
  2561  	// MaxImpressions: The maximum number of impressions that can be served to a
  2562  	// user within the specified time period.
  2563  	MaxImpressions int64 `json:"maxImpressions,omitempty"`
  2564  	// NumTimeUnits: The amount of time, in the units specified by time_unit_type.
  2565  	// Defines the amount of time over which impressions per user are counted and
  2566  	// capped.
  2567  	NumTimeUnits int64 `json:"numTimeUnits,omitempty"`
  2568  	// TimeUnitType: The time unit. Along with num_time_units defines the amount of
  2569  	// time over which impressions per user are counted and capped.
  2570  	//
  2571  	// Possible values:
  2572  	//   "TIME_UNIT_TYPE_UNSPECIFIED" - A placeholder for an undefined time unit
  2573  	// type. This just indicates the variable with this value hasn't been
  2574  	// initialized.
  2575  	//   "MINUTE" - Minute
  2576  	//   "HOUR" - Hour
  2577  	//   "DAY" - Day
  2578  	//   "WEEK" - Week
  2579  	//   "MONTH" - Month
  2580  	//   "LIFETIME" - Lifetime
  2581  	//   "POD" - Pod
  2582  	//   "STREAM" - Stream
  2583  	TimeUnitType string `json:"timeUnitType,omitempty"`
  2584  	// ForceSendFields is a list of field names (e.g. "MaxImpressions") to
  2585  	// unconditionally include in API requests. By default, fields with empty or
  2586  	// default values are omitted from API requests. See
  2587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2588  	// details.
  2589  	ForceSendFields []string `json:"-"`
  2590  	// NullFields is a list of field names (e.g. "MaxImpressions") to include in
  2591  	// API requests with the JSON null value. By default, fields with empty values
  2592  	// are omitted from API requests. See
  2593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2594  	NullFields []string `json:"-"`
  2595  }
  2596  
  2597  func (s *FrequencyCap) MarshalJSON() ([]byte, error) {
  2598  	type NoMethod FrequencyCap
  2599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2600  }
  2601  
  2602  // GuaranteedFixedPriceTerms: Terms for Programmatic Guaranteed Deals.
  2603  type GuaranteedFixedPriceTerms struct {
  2604  	// FixedPrices: Fixed price for the specified buyer.
  2605  	FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"`
  2606  	// GuaranteedImpressions: Guaranteed impressions as a percentage. This is the
  2607  	// percentage of guaranteed looks that the buyer is guaranteeing to buy.
  2608  	GuaranteedImpressions int64 `json:"guaranteedImpressions,omitempty,string"`
  2609  	// GuaranteedLooks: Count of guaranteed looks. Required for deal, optional for
  2610  	// product. For CPD deals, buyer changes to guaranteed_looks will be ignored.
  2611  	GuaranteedLooks int64 `json:"guaranteedLooks,omitempty,string"`
  2612  	// ImpressionCap: The lifetime impression cap for CPM sponsorship deals. The
  2613  	// deal will stop serving when the cap is reached.
  2614  	ImpressionCap int64 `json:"impressionCap,omitempty,string"`
  2615  	// MinimumDailyLooks: Daily minimum looks for CPD deal types. For CPD deals,
  2616  	// buyer should negotiate on this field instead of guaranteed_looks.
  2617  	MinimumDailyLooks int64 `json:"minimumDailyLooks,omitempty,string"`
  2618  	// PercentShareOfVoice: For sponsorship deals, this is the percentage of the
  2619  	// seller's eligible impressions that the deal will serve until the cap is
  2620  	// reached.
  2621  	PercentShareOfVoice int64 `json:"percentShareOfVoice,omitempty,string"`
  2622  	// ReservationType: The reservation type for a Programmatic Guaranteed deal.
  2623  	// This indicates whether the number of impressions is fixed, or a percent of
  2624  	// available impressions. If not specified, the default reservation type is
  2625  	// STANDARD.
  2626  	//
  2627  	// Possible values:
  2628  	//   "RESERVATION_TYPE_UNSPECIFIED" - An unspecified reservation type.
  2629  	//   "STANDARD" - Non-sponsorship deal.
  2630  	//   "SPONSORSHIP" - Sponsorship deals don't have impression goal
  2631  	// (guaranteed_looks) and they are served based on the flight dates. For CPM
  2632  	// Sponsorship deals, impression_cap is the lifetime impression limit.
  2633  	ReservationType string `json:"reservationType,omitempty"`
  2634  	// ForceSendFields is a list of field names (e.g. "FixedPrices") to
  2635  	// unconditionally include in API requests. By default, fields with empty or
  2636  	// default values are omitted from API requests. See
  2637  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2638  	// details.
  2639  	ForceSendFields []string `json:"-"`
  2640  	// NullFields is a list of field names (e.g. "FixedPrices") to include in API
  2641  	// requests with the JSON null value. By default, fields with empty values are
  2642  	// omitted from API requests. See
  2643  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2644  	NullFields []string `json:"-"`
  2645  }
  2646  
  2647  func (s *GuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error) {
  2648  	type NoMethod GuaranteedFixedPriceTerms
  2649  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2650  }
  2651  
  2652  // HtmlContent: HTML content for a creative.
  2653  type HtmlContent struct {
  2654  	// Height: The height of the HTML snippet in pixels.
  2655  	Height int64 `json:"height,omitempty"`
  2656  	// Snippet: The HTML snippet that displays the ad when inserted in the web
  2657  	// page.
  2658  	Snippet string `json:"snippet,omitempty"`
  2659  	// Width: The width of the HTML snippet in pixels.
  2660  	Width int64 `json:"width,omitempty"`
  2661  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  2662  	// include in API requests. By default, fields with empty or default values are
  2663  	// omitted from API requests. See
  2664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2665  	// details.
  2666  	ForceSendFields []string `json:"-"`
  2667  	// NullFields is a list of field names (e.g. "Height") to include in API
  2668  	// requests with the JSON null value. By default, fields with empty values are
  2669  	// omitted from API requests. See
  2670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2671  	NullFields []string `json:"-"`
  2672  }
  2673  
  2674  func (s *HtmlContent) MarshalJSON() ([]byte, error) {
  2675  	type NoMethod HtmlContent
  2676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2677  }
  2678  
  2679  // Image: An image resource. You may provide a larger image than was requested,
  2680  // so long as the aspect ratio is preserved.
  2681  type Image struct {
  2682  	// Height: Image height in pixels.
  2683  	Height int64 `json:"height,omitempty"`
  2684  	// Url: The URL of the image.
  2685  	Url string `json:"url,omitempty"`
  2686  	// Width: Image width in pixels.
  2687  	Width int64 `json:"width,omitempty"`
  2688  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  2689  	// include in API requests. By default, fields with empty or default values are
  2690  	// omitted from API requests. See
  2691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2692  	// details.
  2693  	ForceSendFields []string `json:"-"`
  2694  	// NullFields is a list of field names (e.g. "Height") to include in API
  2695  	// requests with the JSON null value. By default, fields with empty values are
  2696  	// omitted from API requests. See
  2697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2698  	NullFields []string `json:"-"`
  2699  }
  2700  
  2701  func (s *Image) MarshalJSON() ([]byte, error) {
  2702  	type NoMethod Image
  2703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2704  }
  2705  
  2706  // ImpressionMetricsRow: The set of metrics that are measured in numbers of
  2707  // impressions, representing how many impressions with the specified dimension
  2708  // values were considered eligible at each stage of the bidding funnel.
  2709  type ImpressionMetricsRow struct {
  2710  	// AvailableImpressions: The number of impressions available to the buyer on Ad
  2711  	// Exchange. In some cases this value may be unavailable.
  2712  	AvailableImpressions *MetricValue `json:"availableImpressions,omitempty"`
  2713  	// BidRequests: The number of impressions for which Ad Exchange sent the buyer
  2714  	// a bid request.
  2715  	BidRequests *MetricValue `json:"bidRequests,omitempty"`
  2716  	// InventoryMatches: The number of impressions that match the buyer's inventory
  2717  	// pretargeting.
  2718  	InventoryMatches *MetricValue `json:"inventoryMatches,omitempty"`
  2719  	// ResponsesWithBids: The number of impressions for which Ad Exchange received
  2720  	// a response from the buyer that contained at least one applicable bid.
  2721  	ResponsesWithBids *MetricValue `json:"responsesWithBids,omitempty"`
  2722  	// RowDimensions: The values of all dimensions associated with metric values in
  2723  	// this row.
  2724  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
  2725  	// SuccessfulResponses: The number of impressions for which the buyer
  2726  	// successfully sent a response to Ad Exchange.
  2727  	SuccessfulResponses *MetricValue `json:"successfulResponses,omitempty"`
  2728  	// ForceSendFields is a list of field names (e.g. "AvailableImpressions") to
  2729  	// unconditionally include in API requests. By default, fields with empty or
  2730  	// default values are omitted from API requests. See
  2731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2732  	// details.
  2733  	ForceSendFields []string `json:"-"`
  2734  	// NullFields is a list of field names (e.g. "AvailableImpressions") to include
  2735  	// in API requests with the JSON null value. By default, fields with empty
  2736  	// values are omitted from API requests. See
  2737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2738  	NullFields []string `json:"-"`
  2739  }
  2740  
  2741  func (s *ImpressionMetricsRow) MarshalJSON() ([]byte, error) {
  2742  	type NoMethod ImpressionMetricsRow
  2743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2744  }
  2745  
  2746  // InventorySizeTargeting: Represents the size of an ad unit that can be
  2747  // targeted on an ad request. It only applies to Private Auction, AdX Preferred
  2748  // Deals and Auction Packages. This targeting does not apply to Programmatic
  2749  // Guaranteed and Preferred Deals in Ad Manager.
  2750  type InventorySizeTargeting struct {
  2751  	// ExcludedInventorySizes: A list of inventory sizes to be excluded.
  2752  	ExcludedInventorySizes []*AdSize `json:"excludedInventorySizes,omitempty"`
  2753  	// TargetedInventorySizes: A list of inventory sizes to be included.
  2754  	TargetedInventorySizes []*AdSize `json:"targetedInventorySizes,omitempty"`
  2755  	// ForceSendFields is a list of field names (e.g. "ExcludedInventorySizes") to
  2756  	// unconditionally include in API requests. By default, fields with empty or
  2757  	// default values are omitted from API requests. See
  2758  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2759  	// details.
  2760  	ForceSendFields []string `json:"-"`
  2761  	// NullFields is a list of field names (e.g. "ExcludedInventorySizes") to
  2762  	// include in API requests with the JSON null value. By default, fields with
  2763  	// empty values are omitted from API requests. See
  2764  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2765  	NullFields []string `json:"-"`
  2766  }
  2767  
  2768  func (s *InventorySizeTargeting) MarshalJSON() ([]byte, error) {
  2769  	type NoMethod InventorySizeTargeting
  2770  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2771  }
  2772  
  2773  // ListBidMetricsResponse: Response message for listing the metrics that are
  2774  // measured in number of bids.
  2775  type ListBidMetricsResponse struct {
  2776  	// BidMetricsRows: List of rows, each containing a set of bid metrics.
  2777  	BidMetricsRows []*BidMetricsRow `json:"bidMetricsRows,omitempty"`
  2778  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2779  	// in the ListBidMetricsRequest.pageToken field in the subsequent call to the
  2780  	// bidMetrics.list method to retrieve the next page of results.
  2781  	NextPageToken string `json:"nextPageToken,omitempty"`
  2782  
  2783  	// ServerResponse contains the HTTP response code and headers from the server.
  2784  	googleapi.ServerResponse `json:"-"`
  2785  	// ForceSendFields is a list of field names (e.g. "BidMetricsRows") to
  2786  	// unconditionally include in API requests. By default, fields with empty or
  2787  	// default values are omitted from API requests. See
  2788  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2789  	// details.
  2790  	ForceSendFields []string `json:"-"`
  2791  	// NullFields is a list of field names (e.g. "BidMetricsRows") to include in
  2792  	// API requests with the JSON null value. By default, fields with empty values
  2793  	// are omitted from API requests. See
  2794  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2795  	NullFields []string `json:"-"`
  2796  }
  2797  
  2798  func (s *ListBidMetricsResponse) MarshalJSON() ([]byte, error) {
  2799  	type NoMethod ListBidMetricsResponse
  2800  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2801  }
  2802  
  2803  // ListBidResponseErrorsResponse: Response message for listing all reasons that
  2804  // bid responses resulted in an error.
  2805  type ListBidResponseErrorsResponse struct {
  2806  	// CalloutStatusRows: List of rows, with counts of bid responses aggregated by
  2807  	// callout status.
  2808  	CalloutStatusRows []*CalloutStatusRow `json:"calloutStatusRows,omitempty"`
  2809  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2810  	// in the ListBidResponseErrorsRequest.pageToken field in the subsequent call
  2811  	// to the bidResponseErrors.list method to retrieve the next page of results.
  2812  	NextPageToken string `json:"nextPageToken,omitempty"`
  2813  
  2814  	// ServerResponse contains the HTTP response code and headers from the server.
  2815  	googleapi.ServerResponse `json:"-"`
  2816  	// ForceSendFields is a list of field names (e.g. "CalloutStatusRows") to
  2817  	// unconditionally include in API requests. By default, fields with empty or
  2818  	// default values are omitted from API requests. See
  2819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2820  	// details.
  2821  	ForceSendFields []string `json:"-"`
  2822  	// NullFields is a list of field names (e.g. "CalloutStatusRows") to include in
  2823  	// API requests with the JSON null value. By default, fields with empty values
  2824  	// are omitted from API requests. See
  2825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2826  	NullFields []string `json:"-"`
  2827  }
  2828  
  2829  func (s *ListBidResponseErrorsResponse) MarshalJSON() ([]byte, error) {
  2830  	type NoMethod ListBidResponseErrorsResponse
  2831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2832  }
  2833  
  2834  // ListBidResponsesWithoutBidsResponse: Response message for listing all
  2835  // reasons that bid responses were considered to have no applicable bids.
  2836  type ListBidResponsesWithoutBidsResponse struct {
  2837  	// BidResponseWithoutBidsStatusRows: List of rows, with counts of bid responses
  2838  	// without bids aggregated by status.
  2839  	BidResponseWithoutBidsStatusRows []*BidResponseWithoutBidsStatusRow `json:"bidResponseWithoutBidsStatusRows,omitempty"`
  2840  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2841  	// in the ListBidResponsesWithoutBidsRequest.pageToken field in the subsequent
  2842  	// call to the bidResponsesWithoutBids.list method to retrieve the next page of
  2843  	// results.
  2844  	NextPageToken string `json:"nextPageToken,omitempty"`
  2845  
  2846  	// ServerResponse contains the HTTP response code and headers from the server.
  2847  	googleapi.ServerResponse `json:"-"`
  2848  	// ForceSendFields is a list of field names (e.g.
  2849  	// "BidResponseWithoutBidsStatusRows") to unconditionally include in API
  2850  	// requests. By default, fields with empty or default values are omitted from
  2851  	// API requests. See
  2852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2853  	// details.
  2854  	ForceSendFields []string `json:"-"`
  2855  	// NullFields is a list of field names (e.g.
  2856  	// "BidResponseWithoutBidsStatusRows") to include in API requests with the JSON
  2857  	// null value. By default, fields with empty values are omitted from API
  2858  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  2859  	// more details.
  2860  	NullFields []string `json:"-"`
  2861  }
  2862  
  2863  func (s *ListBidResponsesWithoutBidsResponse) MarshalJSON() ([]byte, error) {
  2864  	type NoMethod ListBidResponsesWithoutBidsResponse
  2865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2866  }
  2867  
  2868  type ListClientUserInvitationsResponse struct {
  2869  	// Invitations: The returned list of client users.
  2870  	Invitations []*ClientUserInvitation `json:"invitations,omitempty"`
  2871  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2872  	// in the ListClientUserInvitationsRequest.pageToken field in the subsequent
  2873  	// call to the clients.invitations.list method to retrieve the next page of
  2874  	// results.
  2875  	NextPageToken string `json:"nextPageToken,omitempty"`
  2876  
  2877  	// ServerResponse contains the HTTP response code and headers from the server.
  2878  	googleapi.ServerResponse `json:"-"`
  2879  	// ForceSendFields is a list of field names (e.g. "Invitations") to
  2880  	// unconditionally include in API requests. By default, fields with empty or
  2881  	// default values are omitted from API requests. See
  2882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2883  	// details.
  2884  	ForceSendFields []string `json:"-"`
  2885  	// NullFields is a list of field names (e.g. "Invitations") to include in API
  2886  	// requests with the JSON null value. By default, fields with empty values are
  2887  	// omitted from API requests. See
  2888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2889  	NullFields []string `json:"-"`
  2890  }
  2891  
  2892  func (s *ListClientUserInvitationsResponse) MarshalJSON() ([]byte, error) {
  2893  	type NoMethod ListClientUserInvitationsResponse
  2894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2895  }
  2896  
  2897  type ListClientUsersResponse struct {
  2898  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2899  	// in the ListClientUsersRequest.pageToken field in the subsequent call to the
  2900  	// clients.invitations.list method to retrieve the next page of results.
  2901  	NextPageToken string `json:"nextPageToken,omitempty"`
  2902  	// Users: The returned list of client users.
  2903  	Users []*ClientUser `json:"users,omitempty"`
  2904  
  2905  	// ServerResponse contains the HTTP response code and headers from the server.
  2906  	googleapi.ServerResponse `json:"-"`
  2907  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2908  	// unconditionally include in API requests. By default, fields with empty or
  2909  	// default values are omitted from API requests. See
  2910  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2911  	// details.
  2912  	ForceSendFields []string `json:"-"`
  2913  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2914  	// requests with the JSON null value. By default, fields with empty values are
  2915  	// omitted from API requests. See
  2916  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2917  	NullFields []string `json:"-"`
  2918  }
  2919  
  2920  func (s *ListClientUsersResponse) MarshalJSON() ([]byte, error) {
  2921  	type NoMethod ListClientUsersResponse
  2922  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2923  }
  2924  
  2925  type ListClientsResponse struct {
  2926  	// Clients: The returned list of clients.
  2927  	Clients []*Client `json:"clients,omitempty"`
  2928  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2929  	// in the ListClientsRequest.pageToken field in the subsequent call to the
  2930  	// accounts.clients.list method to retrieve the next page of results.
  2931  	NextPageToken string `json:"nextPageToken,omitempty"`
  2932  
  2933  	// ServerResponse contains the HTTP response code and headers from the server.
  2934  	googleapi.ServerResponse `json:"-"`
  2935  	// ForceSendFields is a list of field names (e.g. "Clients") to unconditionally
  2936  	// include in API requests. By default, fields with empty or default values are
  2937  	// omitted from API requests. See
  2938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2939  	// details.
  2940  	ForceSendFields []string `json:"-"`
  2941  	// NullFields is a list of field names (e.g. "Clients") to include in API
  2942  	// requests with the JSON null value. By default, fields with empty values are
  2943  	// omitted from API requests. See
  2944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2945  	NullFields []string `json:"-"`
  2946  }
  2947  
  2948  func (s *ListClientsResponse) MarshalJSON() ([]byte, error) {
  2949  	type NoMethod ListClientsResponse
  2950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2951  }
  2952  
  2953  // ListCreativeStatusBreakdownByCreativeResponse: Response message for listing
  2954  // all creatives associated with a given filtered bid reason.
  2955  type ListCreativeStatusBreakdownByCreativeResponse struct {
  2956  	// FilteredBidCreativeRows: List of rows, with counts of bids with a given
  2957  	// creative status aggregated by creative.
  2958  	FilteredBidCreativeRows []*FilteredBidCreativeRow `json:"filteredBidCreativeRows,omitempty"`
  2959  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  2960  	// in the ListCreativeStatusBreakdownByCreativeRequest.pageToken field in the
  2961  	// subsequent call to the filteredBids.creatives.list method to retrieve the
  2962  	// next page of results.
  2963  	NextPageToken string `json:"nextPageToken,omitempty"`
  2964  
  2965  	// ServerResponse contains the HTTP response code and headers from the server.
  2966  	googleapi.ServerResponse `json:"-"`
  2967  	// ForceSendFields is a list of field names (e.g. "FilteredBidCreativeRows") to
  2968  	// unconditionally include in API requests. By default, fields with empty or
  2969  	// default values are omitted from API requests. See
  2970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2971  	// details.
  2972  	ForceSendFields []string `json:"-"`
  2973  	// NullFields is a list of field names (e.g. "FilteredBidCreativeRows") to
  2974  	// include in API requests with the JSON null value. By default, fields with
  2975  	// empty values are omitted from API requests. See
  2976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2977  	NullFields []string `json:"-"`
  2978  }
  2979  
  2980  func (s *ListCreativeStatusBreakdownByCreativeResponse) MarshalJSON() ([]byte, error) {
  2981  	type NoMethod ListCreativeStatusBreakdownByCreativeResponse
  2982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2983  }
  2984  
  2985  // ListCreativeStatusBreakdownByDetailResponse: Response message for listing
  2986  // all details associated with a given filtered bid reason.
  2987  type ListCreativeStatusBreakdownByDetailResponse struct {
  2988  	// DetailType: The type of detail that the detail IDs represent.
  2989  	//
  2990  	// Possible values:
  2991  	//   "DETAIL_TYPE_UNSPECIFIED" - A placeholder for an undefined status. This
  2992  	// value will never be returned in responses.
  2993  	//   "CREATIVE_ATTRIBUTE" - Indicates that the detail ID refers to a creative
  2994  	// attribute; see
  2995  	// [publisher-excludable-creative-attributes](https://developers.google.com/auth
  2996  	// orized-buyers/rtb/downloads/publisher-excludable-creative-attributes).
  2997  	//   "VENDOR" - Indicates that the detail ID refers to a vendor; see
  2998  	// [vendors](https://developers.google.com/authorized-buyers/rtb/downloads/vendo
  2999  	// rs). This namespace is different from that of the `ATP_VENDOR` detail type.
  3000  	//   "SENSITIVE_CATEGORY" - Indicates that the detail ID refers to a sensitive
  3001  	// category; see
  3002  	// [ad-sensitive-categories](https://developers.google.com/authorized-buyers/rtb
  3003  	// /downloads/ad-sensitive-categories).
  3004  	//   "PRODUCT_CATEGORY" - Indicates that the detail ID refers to a product
  3005  	// category; see
  3006  	// [ad-product-categories](https://developers.google.com/authorized-buyers/rtb/d
  3007  	// ownloads/ad-product-categories).
  3008  	//   "DISAPPROVAL_REASON" - Indicates that the detail ID refers to a
  3009  	// disapproval reason; see DisapprovalReason enum in
  3010  	// [snippet-status-report-proto](https://developers.google.com/authorized-buyers
  3011  	// /rtb/downloads/snippet-status-report-proto).
  3012  	//   "POLICY_TOPIC" - Indicates that the detail ID refers to a policy topic.
  3013  	//   "ATP_VENDOR" - Indicates that the detail ID refers to an ad technology
  3014  	// provider (ATP); see [providers]
  3015  	// (https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv). This
  3016  	// namespace is different from the `VENDOR` detail type; see [ad technology
  3017  	// providers](https://support.google.com/admanager/answer/9012903) for more
  3018  	// information.
  3019  	//   "VENDOR_DOMAIN" - Indicates that the detail string refers the domain of an
  3020  	// unknown vendor.
  3021  	//   "GVL_ID" - Indicates that the detail ID refers an IAB GVL ID which Google
  3022  	// did not detect in the latest TCF Vendor List. See [Global Vendor List]
  3023  	// (https://vendor-list.consensu.org/v2/vendor-list.json)
  3024  	DetailType string `json:"detailType,omitempty"`
  3025  	// FilteredBidDetailRows: List of rows, with counts of bids with a given
  3026  	// creative status aggregated by detail.
  3027  	FilteredBidDetailRows []*FilteredBidDetailRow `json:"filteredBidDetailRows,omitempty"`
  3028  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3029  	// in the ListCreativeStatusBreakdownByDetailRequest.pageToken field in the
  3030  	// subsequent call to the filteredBids.details.list method to retrieve the next
  3031  	// page of results.
  3032  	NextPageToken string `json:"nextPageToken,omitempty"`
  3033  
  3034  	// ServerResponse contains the HTTP response code and headers from the server.
  3035  	googleapi.ServerResponse `json:"-"`
  3036  	// ForceSendFields is a list of field names (e.g. "DetailType") to
  3037  	// unconditionally include in API requests. By default, fields with empty or
  3038  	// default values are omitted from API requests. See
  3039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3040  	// details.
  3041  	ForceSendFields []string `json:"-"`
  3042  	// NullFields is a list of field names (e.g. "DetailType") to include in API
  3043  	// requests with the JSON null value. By default, fields with empty values are
  3044  	// omitted from API requests. See
  3045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3046  	NullFields []string `json:"-"`
  3047  }
  3048  
  3049  func (s *ListCreativeStatusBreakdownByDetailResponse) MarshalJSON() ([]byte, error) {
  3050  	type NoMethod ListCreativeStatusBreakdownByDetailResponse
  3051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3052  }
  3053  
  3054  // ListCreativesResponse: A response for listing creatives.
  3055  type ListCreativesResponse struct {
  3056  	// Creatives: The list of creatives.
  3057  	Creatives []*Creative `json:"creatives,omitempty"`
  3058  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3059  	// in the ListCreativesRequest.page_token field in the subsequent call to
  3060  	// `ListCreatives` method to retrieve the next page of results.
  3061  	NextPageToken string `json:"nextPageToken,omitempty"`
  3062  
  3063  	// ServerResponse contains the HTTP response code and headers from the server.
  3064  	googleapi.ServerResponse `json:"-"`
  3065  	// ForceSendFields is a list of field names (e.g. "Creatives") to
  3066  	// unconditionally include in API requests. By default, fields with empty or
  3067  	// default values are omitted from API requests. See
  3068  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3069  	// details.
  3070  	ForceSendFields []string `json:"-"`
  3071  	// NullFields is a list of field names (e.g. "Creatives") to include in API
  3072  	// requests with the JSON null value. By default, fields with empty values are
  3073  	// omitted from API requests. See
  3074  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3075  	NullFields []string `json:"-"`
  3076  }
  3077  
  3078  func (s *ListCreativesResponse) MarshalJSON() ([]byte, error) {
  3079  	type NoMethod ListCreativesResponse
  3080  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3081  }
  3082  
  3083  // ListDealAssociationsResponse: A response for listing creative and deal
  3084  // associations
  3085  type ListDealAssociationsResponse struct {
  3086  	// Associations: The list of associations.
  3087  	Associations []*CreativeDealAssociation `json:"associations,omitempty"`
  3088  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3089  	// in the ListDealAssociationsRequest.page_token field in the subsequent call
  3090  	// to 'ListDealAssociation' method to retrieve the next page of results.
  3091  	NextPageToken string `json:"nextPageToken,omitempty"`
  3092  
  3093  	// ServerResponse contains the HTTP response code and headers from the server.
  3094  	googleapi.ServerResponse `json:"-"`
  3095  	// ForceSendFields is a list of field names (e.g. "Associations") to
  3096  	// unconditionally include in API requests. By default, fields with empty or
  3097  	// default values are omitted from API requests. See
  3098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3099  	// details.
  3100  	ForceSendFields []string `json:"-"`
  3101  	// NullFields is a list of field names (e.g. "Associations") to include in API
  3102  	// requests with the JSON null value. By default, fields with empty values are
  3103  	// omitted from API requests. See
  3104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3105  	NullFields []string `json:"-"`
  3106  }
  3107  
  3108  func (s *ListDealAssociationsResponse) MarshalJSON() ([]byte, error) {
  3109  	type NoMethod ListDealAssociationsResponse
  3110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3111  }
  3112  
  3113  // ListFilterSetsResponse: Response message for listing filter sets.
  3114  type ListFilterSetsResponse struct {
  3115  	// FilterSets: The filter sets belonging to the buyer.
  3116  	FilterSets []*FilterSet `json:"filterSets,omitempty"`
  3117  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3118  	// in the ListFilterSetsRequest.pageToken field in the subsequent call to the
  3119  	// accounts.filterSets.list method to retrieve the next page of results.
  3120  	NextPageToken string `json:"nextPageToken,omitempty"`
  3121  
  3122  	// ServerResponse contains the HTTP response code and headers from the server.
  3123  	googleapi.ServerResponse `json:"-"`
  3124  	// ForceSendFields is a list of field names (e.g. "FilterSets") to
  3125  	// unconditionally include in API requests. By default, fields with empty or
  3126  	// default values are omitted from API requests. See
  3127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3128  	// details.
  3129  	ForceSendFields []string `json:"-"`
  3130  	// NullFields is a list of field names (e.g. "FilterSets") to include in API
  3131  	// requests with the JSON null value. By default, fields with empty values are
  3132  	// omitted from API requests. See
  3133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3134  	NullFields []string `json:"-"`
  3135  }
  3136  
  3137  func (s *ListFilterSetsResponse) MarshalJSON() ([]byte, error) {
  3138  	type NoMethod ListFilterSetsResponse
  3139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3140  }
  3141  
  3142  // ListFilteredBidRequestsResponse: Response message for listing all reasons
  3143  // that bid requests were filtered and not sent to the buyer.
  3144  type ListFilteredBidRequestsResponse struct {
  3145  	// CalloutStatusRows: List of rows, with counts of filtered bid requests
  3146  	// aggregated by callout status.
  3147  	CalloutStatusRows []*CalloutStatusRow `json:"calloutStatusRows,omitempty"`
  3148  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3149  	// in the ListFilteredBidRequestsRequest.pageToken field in the subsequent call
  3150  	// to the filteredBidRequests.list method to retrieve the next page of results.
  3151  	NextPageToken string `json:"nextPageToken,omitempty"`
  3152  
  3153  	// ServerResponse contains the HTTP response code and headers from the server.
  3154  	googleapi.ServerResponse `json:"-"`
  3155  	// ForceSendFields is a list of field names (e.g. "CalloutStatusRows") to
  3156  	// unconditionally include in API requests. By default, fields with empty or
  3157  	// default values are omitted from API requests. See
  3158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3159  	// details.
  3160  	ForceSendFields []string `json:"-"`
  3161  	// NullFields is a list of field names (e.g. "CalloutStatusRows") to include in
  3162  	// API requests with the JSON null value. By default, fields with empty values
  3163  	// are omitted from API requests. See
  3164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3165  	NullFields []string `json:"-"`
  3166  }
  3167  
  3168  func (s *ListFilteredBidRequestsResponse) MarshalJSON() ([]byte, error) {
  3169  	type NoMethod ListFilteredBidRequestsResponse
  3170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3171  }
  3172  
  3173  // ListFilteredBidsResponse: Response message for listing all reasons that bids
  3174  // were filtered from the auction.
  3175  type ListFilteredBidsResponse struct {
  3176  	// CreativeStatusRows: List of rows, with counts of filtered bids aggregated by
  3177  	// filtering reason (for example, creative status).
  3178  	CreativeStatusRows []*CreativeStatusRow `json:"creativeStatusRows,omitempty"`
  3179  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3180  	// in the ListFilteredBidsRequest.pageToken field in the subsequent call to the
  3181  	// filteredBids.list method to retrieve the next page of results.
  3182  	NextPageToken string `json:"nextPageToken,omitempty"`
  3183  
  3184  	// ServerResponse contains the HTTP response code and headers from the server.
  3185  	googleapi.ServerResponse `json:"-"`
  3186  	// ForceSendFields is a list of field names (e.g. "CreativeStatusRows") to
  3187  	// unconditionally include in API requests. By default, fields with empty or
  3188  	// default values are omitted from API requests. See
  3189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3190  	// details.
  3191  	ForceSendFields []string `json:"-"`
  3192  	// NullFields is a list of field names (e.g. "CreativeStatusRows") to include
  3193  	// in API requests with the JSON null value. By default, fields with empty
  3194  	// values are omitted from API requests. See
  3195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3196  	NullFields []string `json:"-"`
  3197  }
  3198  
  3199  func (s *ListFilteredBidsResponse) MarshalJSON() ([]byte, error) {
  3200  	type NoMethod ListFilteredBidsResponse
  3201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3202  }
  3203  
  3204  // ListImpressionMetricsResponse: Response message for listing the metrics that
  3205  // are measured in number of impressions.
  3206  type ListImpressionMetricsResponse struct {
  3207  	// ImpressionMetricsRows: List of rows, each containing a set of impression
  3208  	// metrics.
  3209  	ImpressionMetricsRows []*ImpressionMetricsRow `json:"impressionMetricsRows,omitempty"`
  3210  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3211  	// in the ListImpressionMetricsRequest.pageToken field in the subsequent call
  3212  	// to the impressionMetrics.list method to retrieve the next page of results.
  3213  	NextPageToken string `json:"nextPageToken,omitempty"`
  3214  
  3215  	// ServerResponse contains the HTTP response code and headers from the server.
  3216  	googleapi.ServerResponse `json:"-"`
  3217  	// ForceSendFields is a list of field names (e.g. "ImpressionMetricsRows") to
  3218  	// unconditionally include in API requests. By default, fields with empty or
  3219  	// default values are omitted from API requests. See
  3220  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3221  	// details.
  3222  	ForceSendFields []string `json:"-"`
  3223  	// NullFields is a list of field names (e.g. "ImpressionMetricsRows") to
  3224  	// include in API requests with the JSON null value. By default, fields with
  3225  	// empty values are omitted from API requests. See
  3226  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3227  	NullFields []string `json:"-"`
  3228  }
  3229  
  3230  func (s *ListImpressionMetricsResponse) MarshalJSON() ([]byte, error) {
  3231  	type NoMethod ListImpressionMetricsResponse
  3232  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3233  }
  3234  
  3235  // ListLosingBidsResponse: Response message for listing all reasons that bids
  3236  // lost in the auction.
  3237  type ListLosingBidsResponse struct {
  3238  	// CreativeStatusRows: List of rows, with counts of losing bids aggregated by
  3239  	// loss reason (for example, creative status).
  3240  	CreativeStatusRows []*CreativeStatusRow `json:"creativeStatusRows,omitempty"`
  3241  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3242  	// in the ListLosingBidsRequest.pageToken field in the subsequent call to the
  3243  	// losingBids.list method to retrieve the next page of results.
  3244  	NextPageToken string `json:"nextPageToken,omitempty"`
  3245  
  3246  	// ServerResponse contains the HTTP response code and headers from the server.
  3247  	googleapi.ServerResponse `json:"-"`
  3248  	// ForceSendFields is a list of field names (e.g. "CreativeStatusRows") to
  3249  	// unconditionally include in API requests. By default, fields with empty or
  3250  	// default values are omitted from API requests. See
  3251  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3252  	// details.
  3253  	ForceSendFields []string `json:"-"`
  3254  	// NullFields is a list of field names (e.g. "CreativeStatusRows") to include
  3255  	// in API requests with the JSON null value. By default, fields with empty
  3256  	// values are omitted from API requests. See
  3257  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3258  	NullFields []string `json:"-"`
  3259  }
  3260  
  3261  func (s *ListLosingBidsResponse) MarshalJSON() ([]byte, error) {
  3262  	type NoMethod ListLosingBidsResponse
  3263  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3264  }
  3265  
  3266  // ListNonBillableWinningBidsResponse: Response message for listing all reasons
  3267  // for which a buyer was not billed for a winning bid.
  3268  type ListNonBillableWinningBidsResponse struct {
  3269  	// NextPageToken: A token to retrieve the next page of results. Pass this value
  3270  	// in the ListNonBillableWinningBidsRequest.pageToken field in the subsequent
  3271  	// call to the nonBillableWinningBids.list method to retrieve the next page of
  3272  	// results.
  3273  	NextPageToken string `json:"nextPageToken,omitempty"`
  3274  	// NonBillableWinningBidStatusRows: List of rows, with counts of bids not
  3275  	// billed aggregated by reason.
  3276  	NonBillableWinningBidStatusRows []*NonBillableWinningBidStatusRow `json:"nonBillableWinningBidStatusRows,omitempty"`
  3277  
  3278  	// ServerResponse contains the HTTP response code and headers from the server.
  3279  	googleapi.ServerResponse `json:"-"`
  3280  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3281  	// unconditionally include in API requests. By default, fields with empty or
  3282  	// default values are omitted from API requests. See
  3283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3284  	// details.
  3285  	ForceSendFields []string `json:"-"`
  3286  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3287  	// requests with the JSON null value. By default, fields with empty values are
  3288  	// omitted from API requests. See
  3289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3290  	NullFields []string `json:"-"`
  3291  }
  3292  
  3293  func (s *ListNonBillableWinningBidsResponse) MarshalJSON() ([]byte, error) {
  3294  	type NoMethod ListNonBillableWinningBidsResponse
  3295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3296  }
  3297  
  3298  // ListProductsResponse: Response message for listing products visible to the
  3299  // buyer.
  3300  type ListProductsResponse struct {
  3301  	// NextPageToken: List pagination support.
  3302  	NextPageToken string `json:"nextPageToken,omitempty"`
  3303  	// Products: The list of matching products at their head revision number.
  3304  	Products []*Product `json:"products,omitempty"`
  3305  
  3306  	// ServerResponse contains the HTTP response code and headers from the server.
  3307  	googleapi.ServerResponse `json:"-"`
  3308  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3309  	// unconditionally include in API requests. By default, fields with empty or
  3310  	// default values are omitted from API requests. See
  3311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3312  	// details.
  3313  	ForceSendFields []string `json:"-"`
  3314  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3315  	// requests with the JSON null value. By default, fields with empty values are
  3316  	// omitted from API requests. See
  3317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3318  	NullFields []string `json:"-"`
  3319  }
  3320  
  3321  func (s *ListProductsResponse) MarshalJSON() ([]byte, error) {
  3322  	type NoMethod ListProductsResponse
  3323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3324  }
  3325  
  3326  // ListProposalsResponse: Response message for listing proposals.
  3327  type ListProposalsResponse struct {
  3328  	// NextPageToken: Continuation token for fetching the next page of results.
  3329  	NextPageToken string `json:"nextPageToken,omitempty"`
  3330  	// Proposals: The list of proposals.
  3331  	Proposals []*Proposal `json:"proposals,omitempty"`
  3332  
  3333  	// ServerResponse contains the HTTP response code and headers from the server.
  3334  	googleapi.ServerResponse `json:"-"`
  3335  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3336  	// unconditionally include in API requests. By default, fields with empty or
  3337  	// default values are omitted from API requests. See
  3338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3339  	// details.
  3340  	ForceSendFields []string `json:"-"`
  3341  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3342  	// requests with the JSON null value. By default, fields with empty values are
  3343  	// omitted from API requests. See
  3344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3345  	NullFields []string `json:"-"`
  3346  }
  3347  
  3348  func (s *ListProposalsResponse) MarshalJSON() ([]byte, error) {
  3349  	type NoMethod ListProposalsResponse
  3350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3351  }
  3352  
  3353  // ListPublisherProfilesResponse: Response message for profiles visible to the
  3354  // buyer.
  3355  type ListPublisherProfilesResponse struct {
  3356  	// NextPageToken: List pagination support
  3357  	NextPageToken string `json:"nextPageToken,omitempty"`
  3358  	// PublisherProfiles: The list of matching publisher profiles.
  3359  	PublisherProfiles []*PublisherProfile `json:"publisherProfiles,omitempty"`
  3360  
  3361  	// ServerResponse contains the HTTP response code and headers from the server.
  3362  	googleapi.ServerResponse `json:"-"`
  3363  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3364  	// unconditionally include in API requests. By default, fields with empty or
  3365  	// default values are omitted from API requests. See
  3366  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3367  	// details.
  3368  	ForceSendFields []string `json:"-"`
  3369  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3370  	// requests with the JSON null value. By default, fields with empty values are
  3371  	// omitted from API requests. See
  3372  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3373  	NullFields []string `json:"-"`
  3374  }
  3375  
  3376  func (s *ListPublisherProfilesResponse) MarshalJSON() ([]byte, error) {
  3377  	type NoMethod ListPublisherProfilesResponse
  3378  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3379  }
  3380  
  3381  // LocationContext: Output only. The Geo criteria the restriction applies to.
  3382  type LocationContext struct {
  3383  	// GeoCriteriaIds: IDs representing the geo location for this context. Refer to
  3384  	// the geo-table.csv
  3385  	// (https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for
  3386  	// different geo criteria IDs.
  3387  	GeoCriteriaIds []int64 `json:"geoCriteriaIds,omitempty"`
  3388  	// ForceSendFields is a list of field names (e.g. "GeoCriteriaIds") to
  3389  	// unconditionally include in API requests. By default, fields with empty or
  3390  	// default values are omitted from API requests. See
  3391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3392  	// details.
  3393  	ForceSendFields []string `json:"-"`
  3394  	// NullFields is a list of field names (e.g. "GeoCriteriaIds") to include in
  3395  	// API requests with the JSON null value. By default, fields with empty values
  3396  	// are omitted from API requests. See
  3397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3398  	NullFields []string `json:"-"`
  3399  }
  3400  
  3401  func (s *LocationContext) MarshalJSON() ([]byte, error) {
  3402  	type NoMethod LocationContext
  3403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3404  }
  3405  
  3406  // MarketplaceTargeting: Targeting represents different criteria that can be
  3407  // used by advertisers to target ad inventory. For example, they can choose to
  3408  // target ad requests only if the user is in the US. Multiple types of
  3409  // targeting are always applied as a logical AND, unless noted otherwise.
  3410  type MarketplaceTargeting struct {
  3411  	// GeoTargeting: Geo criteria IDs to be included/excluded.
  3412  	GeoTargeting *CriteriaTargeting `json:"geoTargeting,omitempty"`
  3413  	// InventorySizeTargeting: Inventory sizes to be included/excluded.
  3414  	InventorySizeTargeting *InventorySizeTargeting `json:"inventorySizeTargeting,omitempty"`
  3415  	// PlacementTargeting: Placement targeting information, for example, URL,
  3416  	// mobile applications.
  3417  	PlacementTargeting *PlacementTargeting `json:"placementTargeting,omitempty"`
  3418  	// TechnologyTargeting: Technology targeting information, for example,
  3419  	// operating system, device category.
  3420  	TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
  3421  	// VideoTargeting: Video targeting information.
  3422  	VideoTargeting *VideoTargeting `json:"videoTargeting,omitempty"`
  3423  	// ForceSendFields is a list of field names (e.g. "GeoTargeting") to
  3424  	// unconditionally include in API requests. By default, fields with empty or
  3425  	// default values are omitted from API requests. See
  3426  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3427  	// details.
  3428  	ForceSendFields []string `json:"-"`
  3429  	// NullFields is a list of field names (e.g. "GeoTargeting") to include in API
  3430  	// requests with the JSON null value. By default, fields with empty values are
  3431  	// omitted from API requests. See
  3432  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3433  	NullFields []string `json:"-"`
  3434  }
  3435  
  3436  func (s *MarketplaceTargeting) MarshalJSON() ([]byte, error) {
  3437  	type NoMethod MarketplaceTargeting
  3438  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3439  }
  3440  
  3441  // MetricValue: A metric value, with an expected value and a variance;
  3442  // represents a count that may be either exact or estimated (for example, when
  3443  // sampled).
  3444  type MetricValue struct {
  3445  	// Value: The expected value of the metric.
  3446  	Value int64 `json:"value,omitempty,string"`
  3447  	// Variance: The variance (for example, square of the standard deviation) of
  3448  	// the metric value. If value is exact, variance is 0. Can be used to calculate
  3449  	// margin of error as a percentage of value, using the following formula, where
  3450  	// Z is the standard constant that depends on the preferred size of the
  3451  	// confidence interval (for example, for 90% confidence interval, use Z =
  3452  	// 1.645): marginOfError = 100 * Z * sqrt(variance) / value
  3453  	Variance int64 `json:"variance,omitempty,string"`
  3454  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
  3455  	// include in API requests. By default, fields with empty or default values are
  3456  	// omitted from API requests. See
  3457  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3458  	// details.
  3459  	ForceSendFields []string `json:"-"`
  3460  	// NullFields is a list of field names (e.g. "Value") to include in API
  3461  	// requests with the JSON null value. By default, fields with empty values are
  3462  	// omitted from API requests. See
  3463  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3464  	NullFields []string `json:"-"`
  3465  }
  3466  
  3467  func (s *MetricValue) MarshalJSON() ([]byte, error) {
  3468  	type NoMethod MetricValue
  3469  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3470  }
  3471  
  3472  // MobileApplicationTargeting: Mobile application targeting settings.
  3473  type MobileApplicationTargeting struct {
  3474  	// FirstPartyTargeting: Publisher owned apps to be targeted or excluded by the
  3475  	// publisher to display the ads in.
  3476  	FirstPartyTargeting *FirstPartyMobileApplicationTargeting `json:"firstPartyTargeting,omitempty"`
  3477  	// ForceSendFields is a list of field names (e.g. "FirstPartyTargeting") to
  3478  	// unconditionally include in API requests. By default, fields with empty or
  3479  	// default values are omitted from API requests. See
  3480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3481  	// details.
  3482  	ForceSendFields []string `json:"-"`
  3483  	// NullFields is a list of field names (e.g. "FirstPartyTargeting") to include
  3484  	// in API requests with the JSON null value. By default, fields with empty
  3485  	// values are omitted from API requests. See
  3486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3487  	NullFields []string `json:"-"`
  3488  }
  3489  
  3490  func (s *MobileApplicationTargeting) MarshalJSON() ([]byte, error) {
  3491  	type NoMethod MobileApplicationTargeting
  3492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3493  }
  3494  
  3495  // Money: Represents an amount of money with its currency type.
  3496  type Money struct {
  3497  	// CurrencyCode: The three-letter currency code defined in ISO 4217.
  3498  	CurrencyCode string `json:"currencyCode,omitempty"`
  3499  	// Nanos: Number of nano (10^-9) units of the amount. The value must be between
  3500  	// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
  3501  	// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,
  3502  	// or negative. If `units` is negative, `nanos` must be negative or zero. For
  3503  	// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
  3504  	Nanos int64 `json:"nanos,omitempty"`
  3505  	// Units: The whole units of the amount. For example if `currencyCode` is
  3506  	// "USD", then 1 unit is one US dollar.
  3507  	Units int64 `json:"units,omitempty,string"`
  3508  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
  3509  	// unconditionally include in API requests. By default, fields with empty or
  3510  	// default values are omitted from API requests. See
  3511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3512  	// details.
  3513  	ForceSendFields []string `json:"-"`
  3514  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
  3515  	// requests with the JSON null value. By default, fields with empty values are
  3516  	// omitted from API requests. See
  3517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3518  	NullFields []string `json:"-"`
  3519  }
  3520  
  3521  func (s *Money) MarshalJSON() ([]byte, error) {
  3522  	type NoMethod Money
  3523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3524  }
  3525  
  3526  // NativeContent: Native content for a creative.
  3527  type NativeContent struct {
  3528  	// AdvertiserName: The name of the advertiser or sponsor, to be displayed in
  3529  	// the ad creative.
  3530  	AdvertiserName string `json:"advertiserName,omitempty"`
  3531  	// AppIcon: The app icon, for app download ads.
  3532  	AppIcon *Image `json:"appIcon,omitempty"`
  3533  	// Body: A long description of the ad.
  3534  	Body string `json:"body,omitempty"`
  3535  	// CallToAction: A label for the button that the user is supposed to click.
  3536  	CallToAction string `json:"callToAction,omitempty"`
  3537  	// ClickLinkUrl: The URL that the browser/SDK will load when the user clicks
  3538  	// the ad.
  3539  	ClickLinkUrl string `json:"clickLinkUrl,omitempty"`
  3540  	// ClickTrackingUrl: The URL to use for click tracking.
  3541  	ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"`
  3542  	// Headline: A short title for the ad.
  3543  	Headline string `json:"headline,omitempty"`
  3544  	// Image: A large image.
  3545  	Image *Image `json:"image,omitempty"`
  3546  	// Logo: A smaller image, for the advertiser's logo.
  3547  	Logo *Image `json:"logo,omitempty"`
  3548  	// PriceDisplayText: The price of the promoted app including currency info.
  3549  	PriceDisplayText string `json:"priceDisplayText,omitempty"`
  3550  	// StarRating: The app rating in the app store. Must be in the range [0-5].
  3551  	StarRating float64 `json:"starRating,omitempty"`
  3552  	// StoreUrl: The URL to the app store to purchase/download the promoted app.
  3553  	StoreUrl string `json:"storeUrl,omitempty"`
  3554  	// VideoUrl: The URL to fetch a native video ad.
  3555  	VideoUrl string `json:"videoUrl,omitempty"`
  3556  	// ForceSendFields is a list of field names (e.g. "AdvertiserName") to
  3557  	// unconditionally include in API requests. By default, fields with empty or
  3558  	// default values are omitted from API requests. See
  3559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3560  	// details.
  3561  	ForceSendFields []string `json:"-"`
  3562  	// NullFields is a list of field names (e.g. "AdvertiserName") to include in
  3563  	// API requests with the JSON null value. By default, fields with empty values
  3564  	// are omitted from API requests. See
  3565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3566  	NullFields []string `json:"-"`
  3567  }
  3568  
  3569  func (s *NativeContent) MarshalJSON() ([]byte, error) {
  3570  	type NoMethod NativeContent
  3571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3572  }
  3573  
  3574  func (s *NativeContent) UnmarshalJSON(data []byte) error {
  3575  	type NoMethod NativeContent
  3576  	var s1 struct {
  3577  		StarRating gensupport.JSONFloat64 `json:"starRating"`
  3578  		*NoMethod
  3579  	}
  3580  	s1.NoMethod = (*NoMethod)(s)
  3581  	if err := json.Unmarshal(data, &s1); err != nil {
  3582  		return err
  3583  	}
  3584  	s.StarRating = float64(s1.StarRating)
  3585  	return nil
  3586  }
  3587  
  3588  // NonBillableWinningBidStatusRow: The number of winning bids with the
  3589  // specified dimension values for which the buyer was not billed, as described
  3590  // by the specified status.
  3591  type NonBillableWinningBidStatusRow struct {
  3592  	// BidCount: The number of bids with the specified status.
  3593  	BidCount *MetricValue `json:"bidCount,omitempty"`
  3594  	// RowDimensions: The values of all dimensions associated with metric values in
  3595  	// this row.
  3596  	RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
  3597  	// Status: The status specifying why the winning bids were not billed.
  3598  	//
  3599  	// Possible values:
  3600  	//   "STATUS_UNSPECIFIED" - A placeholder for an undefined status. This value
  3601  	// will never be returned in responses.
  3602  	//   "AD_NOT_RENDERED" - The buyer was not billed because the ad was not
  3603  	// rendered by the publisher.
  3604  	//   "INVALID_IMPRESSION" - The buyer was not billed because the impression won
  3605  	// by the bid was determined to be invalid.
  3606  	//   "FATAL_VAST_ERROR" - A video impression was served but a fatal error was
  3607  	// reported from the client during playback.
  3608  	//   "LOST_IN_MEDIATION" - The buyer was not billed because the ad was
  3609  	// outplaced in the mediation waterfall.
  3610  	Status string `json:"status,omitempty"`
  3611  	// ForceSendFields is a list of field names (e.g. "BidCount") to
  3612  	// unconditionally include in API requests. By default, fields with empty or
  3613  	// default values are omitted from API requests. See
  3614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3615  	// details.
  3616  	ForceSendFields []string `json:"-"`
  3617  	// NullFields is a list of field names (e.g. "BidCount") to include in API
  3618  	// requests with the JSON null value. By default, fields with empty values are
  3619  	// omitted from API requests. See
  3620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3621  	NullFields []string `json:"-"`
  3622  }
  3623  
  3624  func (s *NonBillableWinningBidStatusRow) MarshalJSON() ([]byte, error) {
  3625  	type NoMethod NonBillableWinningBidStatusRow
  3626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3627  }
  3628  
  3629  // NonGuaranteedAuctionTerms: Terms for Private Auctions. Note that Private
  3630  // Auctions can be created only by the seller, but they can be returned in a
  3631  // get or list request.
  3632  type NonGuaranteedAuctionTerms struct {
  3633  	// AutoOptimizePrivateAuction: True if open auction buyers are allowed to
  3634  	// compete with invited buyers in this private auction.
  3635  	AutoOptimizePrivateAuction bool `json:"autoOptimizePrivateAuction,omitempty"`
  3636  	// ReservePricesPerBuyer: Reserve price for the specified buyer.
  3637  	ReservePricesPerBuyer []*PricePerBuyer `json:"reservePricesPerBuyer,omitempty"`
  3638  	// ForceSendFields is a list of field names (e.g. "AutoOptimizePrivateAuction")
  3639  	// to unconditionally include in API requests. By default, fields with empty or
  3640  	// default values are omitted from API requests. See
  3641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3642  	// details.
  3643  	ForceSendFields []string `json:"-"`
  3644  	// NullFields is a list of field names (e.g. "AutoOptimizePrivateAuction") to
  3645  	// include in API requests with the JSON null value. By default, fields with
  3646  	// empty values are omitted from API requests. See
  3647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3648  	NullFields []string `json:"-"`
  3649  }
  3650  
  3651  func (s *NonGuaranteedAuctionTerms) MarshalJSON() ([]byte, error) {
  3652  	type NoMethod NonGuaranteedAuctionTerms
  3653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3654  }
  3655  
  3656  // NonGuaranteedFixedPriceTerms: Terms for Preferred Deals.
  3657  type NonGuaranteedFixedPriceTerms struct {
  3658  	// FixedPrices: Fixed price for the specified buyer.
  3659  	FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"`
  3660  	// ForceSendFields is a list of field names (e.g. "FixedPrices") to
  3661  	// unconditionally include in API requests. By default, fields with empty or
  3662  	// default values are omitted from API requests. See
  3663  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3664  	// details.
  3665  	ForceSendFields []string `json:"-"`
  3666  	// NullFields is a list of field names (e.g. "FixedPrices") to include in API
  3667  	// requests with the JSON null value. By default, fields with empty values are
  3668  	// omitted from API requests. See
  3669  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3670  	NullFields []string `json:"-"`
  3671  }
  3672  
  3673  func (s *NonGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error) {
  3674  	type NoMethod NonGuaranteedFixedPriceTerms
  3675  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3676  }
  3677  
  3678  // Note: A proposal may be associated to several notes.
  3679  type Note struct {
  3680  	// CreateTime: Output only. The timestamp for when this note was created.
  3681  	CreateTime string `json:"createTime,omitempty"`
  3682  	// CreatorRole: Output only. The role of the person (buyer/seller) creating the
  3683  	// note.
  3684  	//
  3685  	// Possible values:
  3686  	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
  3687  	// buyer/seller role.
  3688  	//   "BUYER" - Specifies the role as buyer.
  3689  	//   "SELLER" - Specifies the role as seller.
  3690  	CreatorRole string `json:"creatorRole,omitempty"`
  3691  	// Note: The actual note to attach. (max-length: 1024 unicode code units) Note:
  3692  	// This field may be set only when creating the resource. Modifying this field
  3693  	// while updating the resource will result in an error.
  3694  	Note string `json:"note,omitempty"`
  3695  	// NoteId: Output only. The unique ID for the note.
  3696  	NoteId string `json:"noteId,omitempty"`
  3697  	// ProposalRevision: Output only. The revision number of the proposal when the
  3698  	// note is created.
  3699  	ProposalRevision int64 `json:"proposalRevision,omitempty,string"`
  3700  
  3701  	// ServerResponse contains the HTTP response code and headers from the server.
  3702  	googleapi.ServerResponse `json:"-"`
  3703  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3704  	// unconditionally include in API requests. By default, fields with empty or
  3705  	// default values are omitted from API requests. See
  3706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3707  	// details.
  3708  	ForceSendFields []string `json:"-"`
  3709  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3710  	// requests with the JSON null value. By default, fields with empty values are
  3711  	// omitted from API requests. See
  3712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3713  	NullFields []string `json:"-"`
  3714  }
  3715  
  3716  func (s *Note) MarshalJSON() ([]byte, error) {
  3717  	type NoMethod Note
  3718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3719  }
  3720  
  3721  // OperatingSystemTargeting: Represents targeting information for operating
  3722  // systems.
  3723  type OperatingSystemTargeting struct {
  3724  	// OperatingSystemCriteria: IDs of operating systems to be included/excluded.
  3725  	OperatingSystemCriteria *CriteriaTargeting `json:"operatingSystemCriteria,omitempty"`
  3726  	// OperatingSystemVersionCriteria: IDs of operating system versions to be
  3727  	// included/excluded.
  3728  	OperatingSystemVersionCriteria *CriteriaTargeting `json:"operatingSystemVersionCriteria,omitempty"`
  3729  	// ForceSendFields is a list of field names (e.g. "OperatingSystemCriteria") to
  3730  	// unconditionally include in API requests. By default, fields with empty or
  3731  	// default values are omitted from API requests. See
  3732  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3733  	// details.
  3734  	ForceSendFields []string `json:"-"`
  3735  	// NullFields is a list of field names (e.g. "OperatingSystemCriteria") to
  3736  	// include in API requests with the JSON null value. By default, fields with
  3737  	// empty values are omitted from API requests. See
  3738  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3739  	NullFields []string `json:"-"`
  3740  }
  3741  
  3742  func (s *OperatingSystemTargeting) MarshalJSON() ([]byte, error) {
  3743  	type NoMethod OperatingSystemTargeting
  3744  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3745  }
  3746  
  3747  // PauseProposalDealsRequest: Request message to pause serving for finalized
  3748  // deals.
  3749  type PauseProposalDealsRequest struct {
  3750  	// ExternalDealIds: The external_deal_id's of the deals to be paused. If empty,
  3751  	// all the deals in the proposal will be paused.
  3752  	ExternalDealIds []string `json:"externalDealIds,omitempty"`
  3753  	// Reason: The reason why the deals are being paused. This human readable
  3754  	// message will be displayed in the seller's UI. (Max length: 1000 unicode code
  3755  	// units.)
  3756  	Reason string `json:"reason,omitempty"`
  3757  	// ForceSendFields is a list of field names (e.g. "ExternalDealIds") to
  3758  	// unconditionally include in API requests. By default, fields with empty or
  3759  	// default values are omitted from API requests. See
  3760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3761  	// details.
  3762  	ForceSendFields []string `json:"-"`
  3763  	// NullFields is a list of field names (e.g. "ExternalDealIds") to include in
  3764  	// API requests with the JSON null value. By default, fields with empty values
  3765  	// are omitted from API requests. See
  3766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3767  	NullFields []string `json:"-"`
  3768  }
  3769  
  3770  func (s *PauseProposalDealsRequest) MarshalJSON() ([]byte, error) {
  3771  	type NoMethod PauseProposalDealsRequest
  3772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3773  }
  3774  
  3775  // PauseProposalRequest: Request message to pause serving for an
  3776  // already-finalized proposal.
  3777  type PauseProposalRequest struct {
  3778  	// Reason: The reason why the proposal is being paused. This human readable
  3779  	// message will be displayed in the seller's UI. (Max length: 1000 unicode code
  3780  	// units.)
  3781  	Reason string `json:"reason,omitempty"`
  3782  	// ForceSendFields is a list of field names (e.g. "Reason") to unconditionally
  3783  	// include in API requests. By default, fields with empty or default values are
  3784  	// omitted from API requests. See
  3785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3786  	// details.
  3787  	ForceSendFields []string `json:"-"`
  3788  	// NullFields is a list of field names (e.g. "Reason") to include in API
  3789  	// requests with the JSON null value. By default, fields with empty values are
  3790  	// omitted from API requests. See
  3791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3792  	NullFields []string `json:"-"`
  3793  }
  3794  
  3795  func (s *PauseProposalRequest) MarshalJSON() ([]byte, error) {
  3796  	type NoMethod PauseProposalRequest
  3797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3798  }
  3799  
  3800  // PlacementTargeting: Represents targeting about where the ads can appear, for
  3801  // example, certain sites or mobile applications. Different placement targeting
  3802  // types will be logically OR'ed.
  3803  type PlacementTargeting struct {
  3804  	// MobileApplicationTargeting: Mobile application targeting information in a
  3805  	// deal. This doesn't apply to Auction Packages.
  3806  	MobileApplicationTargeting *MobileApplicationTargeting `json:"mobileApplicationTargeting,omitempty"`
  3807  	// UrlTargeting: URLs to be included/excluded.
  3808  	UrlTargeting *UrlTargeting `json:"urlTargeting,omitempty"`
  3809  	// ForceSendFields is a list of field names (e.g. "MobileApplicationTargeting")
  3810  	// to unconditionally include in API requests. By default, fields with empty or
  3811  	// default values are omitted from API requests. See
  3812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3813  	// details.
  3814  	ForceSendFields []string `json:"-"`
  3815  	// NullFields is a list of field names (e.g. "MobileApplicationTargeting") to
  3816  	// include in API requests with the JSON null value. By default, fields with
  3817  	// empty values are omitted from API requests. See
  3818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3819  	NullFields []string `json:"-"`
  3820  }
  3821  
  3822  func (s *PlacementTargeting) MarshalJSON() ([]byte, error) {
  3823  	type NoMethod PlacementTargeting
  3824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3825  }
  3826  
  3827  // PlatformContext: Output only. The type of platform the restriction applies
  3828  // to.
  3829  type PlatformContext struct {
  3830  	// Platforms: The platforms this restriction applies to.
  3831  	//
  3832  	// Possible values:
  3833  	//   "DESKTOP" - Desktop platform.
  3834  	//   "ANDROID" - Android platform.
  3835  	//   "IOS" - iOS platform.
  3836  	Platforms []string `json:"platforms,omitempty"`
  3837  	// ForceSendFields is a list of field names (e.g. "Platforms") to
  3838  	// unconditionally include in API requests. By default, fields with empty or
  3839  	// default values are omitted from API requests. See
  3840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3841  	// details.
  3842  	ForceSendFields []string `json:"-"`
  3843  	// NullFields is a list of field names (e.g. "Platforms") to include in API
  3844  	// requests with the JSON null value. By default, fields with empty values are
  3845  	// omitted from API requests. See
  3846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3847  	NullFields []string `json:"-"`
  3848  }
  3849  
  3850  func (s *PlatformContext) MarshalJSON() ([]byte, error) {
  3851  	type NoMethod PlatformContext
  3852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3853  }
  3854  
  3855  // Price: Represents a price and a pricing type for a product / deal.
  3856  type Price struct {
  3857  	// Amount: The actual price with currency specified.
  3858  	Amount *Money `json:"amount,omitempty"`
  3859  	// PricingType: The pricing type for the deal/product. (default: CPM)
  3860  	//
  3861  	// Possible values:
  3862  	//   "PRICING_TYPE_UNSPECIFIED" - A placeholder for an undefined pricing type.
  3863  	// If the pricing type is unpsecified, `COST_PER_MILLE` will be used instead.
  3864  	//   "COST_PER_MILLE" - Cost per thousand impressions.
  3865  	//   "COST_PER_DAY" - Cost per day
  3866  	PricingType string `json:"pricingType,omitempty"`
  3867  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
  3868  	// include in API requests. By default, fields with empty or default values are
  3869  	// omitted from API requests. See
  3870  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3871  	// details.
  3872  	ForceSendFields []string `json:"-"`
  3873  	// NullFields is a list of field names (e.g. "Amount") to include in API
  3874  	// requests with the JSON null value. By default, fields with empty values are
  3875  	// omitted from API requests. See
  3876  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3877  	NullFields []string `json:"-"`
  3878  }
  3879  
  3880  func (s *Price) MarshalJSON() ([]byte, error) {
  3881  	type NoMethod Price
  3882  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3883  }
  3884  
  3885  // PricePerBuyer: Used to specify pricing rules for buyers/advertisers. Each
  3886  // PricePerBuyer in a product can become 0 or 1 deals. To check if there is a
  3887  // PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for
  3888  // the most specific matching rule - we first look for a rule matching the
  3889  // buyer and advertiser, next a rule with the buyer but an empty advertiser
  3890  // list, and otherwise look for a matching rule where no buyer is set.
  3891  type PricePerBuyer struct {
  3892  	// AdvertiserIds: The list of advertisers for this price when associated with
  3893  	// this buyer. If empty, all advertisers with this buyer pay this price.
  3894  	AdvertiserIds []string `json:"advertiserIds,omitempty"`
  3895  	// Buyer: The buyer who will pay this price. If unset, all buyers can pay this
  3896  	// price (if the advertisers match, and there's no more specific rule matching
  3897  	// the buyer).
  3898  	Buyer *Buyer `json:"buyer,omitempty"`
  3899  	// Price: The specified price.
  3900  	Price *Price `json:"price,omitempty"`
  3901  	// ForceSendFields is a list of field names (e.g. "AdvertiserIds") to
  3902  	// unconditionally include in API requests. By default, fields with empty or
  3903  	// default values are omitted from API requests. See
  3904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3905  	// details.
  3906  	ForceSendFields []string `json:"-"`
  3907  	// NullFields is a list of field names (e.g. "AdvertiserIds") to include in API
  3908  	// requests with the JSON null value. By default, fields with empty values are
  3909  	// omitted from API requests. See
  3910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3911  	NullFields []string `json:"-"`
  3912  }
  3913  
  3914  func (s *PricePerBuyer) MarshalJSON() ([]byte, error) {
  3915  	type NoMethod PricePerBuyer
  3916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3917  }
  3918  
  3919  // PrivateData: Buyers are allowed to store certain types of private data in a
  3920  // proposal/deal.
  3921  type PrivateData struct {
  3922  	// ReferenceId: A buyer or seller specified reference ID. This can be queried
  3923  	// in the list operations (max-length: 1024 unicode code units).
  3924  	ReferenceId string `json:"referenceId,omitempty"`
  3925  	// ForceSendFields is a list of field names (e.g. "ReferenceId") to
  3926  	// unconditionally include in API requests. By default, fields with empty or
  3927  	// default values are omitted from API requests. See
  3928  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3929  	// details.
  3930  	ForceSendFields []string `json:"-"`
  3931  	// NullFields is a list of field names (e.g. "ReferenceId") to include in API
  3932  	// requests with the JSON null value. By default, fields with empty values are
  3933  	// omitted from API requests. See
  3934  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3935  	NullFields []string `json:"-"`
  3936  }
  3937  
  3938  func (s *PrivateData) MarshalJSON() ([]byte, error) {
  3939  	type NoMethod PrivateData
  3940  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3941  }
  3942  
  3943  // Product: A product is a segment of inventory that a seller wants to sell. It
  3944  // is associated with certain terms and targeting information which helps the
  3945  // buyer know more about the inventory.
  3946  type Product struct {
  3947  	// AvailableEndTime: The proposed end time for the deal. The field will be
  3948  	// truncated to the order of seconds during serving.
  3949  	AvailableEndTime string `json:"availableEndTime,omitempty"`
  3950  	// AvailableStartTime: Inventory availability dates. The start time will be
  3951  	// truncated to seconds during serving. Thus, a field specified as 3:23:34.456
  3952  	// (HH:mm:ss.SSS) will be truncated to 3:23:34 when serving.
  3953  	AvailableStartTime string `json:"availableStartTime,omitempty"`
  3954  	// CreateTime: Creation time.
  3955  	CreateTime string `json:"createTime,omitempty"`
  3956  	// CreatorContacts: Optional contact information for the creator of this
  3957  	// product.
  3958  	CreatorContacts []*ContactInformation `json:"creatorContacts,omitempty"`
  3959  	// DisplayName: The display name for this product as set by the seller.
  3960  	DisplayName string `json:"displayName,omitempty"`
  3961  	// HasCreatorSignedOff: If the creator has already signed off on the product,
  3962  	// then the buyer can finalize the deal by accepting the product as is. When
  3963  	// copying to a proposal, if any of the terms are changed, then auto_finalize
  3964  	// is automatically set to false.
  3965  	HasCreatorSignedOff bool `json:"hasCreatorSignedOff,omitempty"`
  3966  	// ProductId: The unique ID for the product.
  3967  	ProductId string `json:"productId,omitempty"`
  3968  	// ProductRevision: The revision number of the product (auto-assigned by
  3969  	// Marketplace).
  3970  	ProductRevision int64 `json:"productRevision,omitempty,string"`
  3971  	// PublisherProfileId: An ID which can be used by the Publisher Profile API to
  3972  	// get more information about the seller that created this product.
  3973  	PublisherProfileId string `json:"publisherProfileId,omitempty"`
  3974  	// Seller: Information about the seller that created this product.
  3975  	Seller *Seller `json:"seller,omitempty"`
  3976  	// SyndicationProduct: The syndication product associated with the deal.
  3977  	//
  3978  	// Possible values:
  3979  	//   "SYNDICATION_PRODUCT_UNSPECIFIED" - A placeholder for an undefined
  3980  	// syndication product.
  3981  	//   "CONTENT" - This typically represents a web page.
  3982  	//   "MOBILE" - This represents a mobile property.
  3983  	//   "VIDEO" - This represents video ad formats.
  3984  	//   "GAMES" - This represents ads shown within games.
  3985  	SyndicationProduct string `json:"syndicationProduct,omitempty"`
  3986  	// TargetingCriterion: Targeting that is shared between the buyer and the
  3987  	// seller. Each targeting criterion has a specified key and for each key there
  3988  	// is a list of inclusion value or exclusion values.
  3989  	TargetingCriterion []*TargetingCriteria `json:"targetingCriterion,omitempty"`
  3990  	// Terms: The negotiable terms of the deal.
  3991  	Terms *DealTerms `json:"terms,omitempty"`
  3992  	// UpdateTime: Time of last update.
  3993  	UpdateTime string `json:"updateTime,omitempty"`
  3994  	// WebPropertyCode: The web-property code for the seller. This needs to be
  3995  	// copied as is when adding a new deal to a proposal.
  3996  	WebPropertyCode string `json:"webPropertyCode,omitempty"`
  3997  
  3998  	// ServerResponse contains the HTTP response code and headers from the server.
  3999  	googleapi.ServerResponse `json:"-"`
  4000  	// ForceSendFields is a list of field names (e.g. "AvailableEndTime") to
  4001  	// unconditionally include in API requests. By default, fields with empty or
  4002  	// default values are omitted from API requests. See
  4003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4004  	// details.
  4005  	ForceSendFields []string `json:"-"`
  4006  	// NullFields is a list of field names (e.g. "AvailableEndTime") to include in
  4007  	// API requests with the JSON null value. By default, fields with empty values
  4008  	// are omitted from API requests. See
  4009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4010  	NullFields []string `json:"-"`
  4011  }
  4012  
  4013  func (s *Product) MarshalJSON() ([]byte, error) {
  4014  	type NoMethod Product
  4015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4016  }
  4017  
  4018  // Proposal: Represents a proposal in the Marketplace. A proposal is the unit
  4019  // of negotiation between a seller and a buyer and contains deals which are
  4020  // served. Note: You can't update, create, or otherwise modify Private Auction
  4021  // deals through the API. Fields are updatable unless noted otherwise.
  4022  type Proposal struct {
  4023  	// BilledBuyer: Output only. Reference to the buyer that will get billed for
  4024  	// this proposal.
  4025  	BilledBuyer *Buyer `json:"billedBuyer,omitempty"`
  4026  	// Buyer: Reference to the buyer on the proposal. Note: This field may be set
  4027  	// only when creating the resource. Modifying this field while updating the
  4028  	// resource will result in an error.
  4029  	Buyer *Buyer `json:"buyer,omitempty"`
  4030  	// BuyerContacts: Contact information for the buyer.
  4031  	BuyerContacts []*ContactInformation `json:"buyerContacts,omitempty"`
  4032  	// BuyerPrivateData: Private data for buyer. (hidden from seller).
  4033  	BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"`
  4034  	// Deals: The deals associated with this proposal. For Private Auction
  4035  	// proposals (whose deals have NonGuaranteedAuctionTerms), there will only be
  4036  	// one deal.
  4037  	Deals []*Deal `json:"deals,omitempty"`
  4038  	// DisplayName: The name for the proposal.
  4039  	DisplayName string `json:"displayName,omitempty"`
  4040  	// IsRenegotiating: Output only. True if the proposal is being renegotiated.
  4041  	IsRenegotiating bool `json:"isRenegotiating,omitempty"`
  4042  	// IsSetupComplete: Output only. True, if the buyside inventory setup is
  4043  	// complete for this proposal.
  4044  	IsSetupComplete bool `json:"isSetupComplete,omitempty"`
  4045  	// LastUpdaterOrCommentorRole: Output only. The role of the last user that
  4046  	// either updated the proposal or left a comment.
  4047  	//
  4048  	// Possible values:
  4049  	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
  4050  	// buyer/seller role.
  4051  	//   "BUYER" - Specifies the role as buyer.
  4052  	//   "SELLER" - Specifies the role as seller.
  4053  	LastUpdaterOrCommentorRole string `json:"lastUpdaterOrCommentorRole,omitempty"`
  4054  	// Notes: Output only. The notes associated with this proposal.
  4055  	Notes []*Note `json:"notes,omitempty"`
  4056  	// OriginatorRole: Output only. Indicates whether the buyer/seller created the
  4057  	// proposal.
  4058  	//
  4059  	// Possible values:
  4060  	//   "BUYER_SELLER_ROLE_UNSPECIFIED" - A placeholder for an undefined
  4061  	// buyer/seller role.
  4062  	//   "BUYER" - Specifies the role as buyer.
  4063  	//   "SELLER" - Specifies the role as seller.
  4064  	OriginatorRole string `json:"originatorRole,omitempty"`
  4065  	// PrivateAuctionId: Output only. Private auction ID if this proposal is a
  4066  	// private auction proposal.
  4067  	PrivateAuctionId string `json:"privateAuctionId,omitempty"`
  4068  	// ProposalId: Output only. The unique ID of the proposal.
  4069  	ProposalId string `json:"proposalId,omitempty"`
  4070  	// ProposalRevision: Output only. The revision number for the proposal. Each
  4071  	// update to the proposal or the deal causes the proposal revision number to
  4072  	// auto-increment. The buyer keeps track of the last revision number they know
  4073  	// of and pass it in when making an update. If the head revision number on the
  4074  	// server has since incremented, then an ABORTED error is returned during the
  4075  	// update operation to let the buyer know that a subsequent update was made.
  4076  	ProposalRevision int64 `json:"proposalRevision,omitempty,string"`
  4077  	// ProposalState: Output only. The current state of the proposal.
  4078  	//
  4079  	// Possible values:
  4080  	//   "PROPOSAL_STATE_UNSPECIFIED" - A placeholder for an undefined proposal
  4081  	// state.
  4082  	//   "PROPOSED" - The proposal is under negotiation or renegotiation.
  4083  	//   "BUYER_ACCEPTED" - The proposal has been accepted by the buyer.
  4084  	//   "SELLER_ACCEPTED" - The proposal has been accepted by the seller.
  4085  	//   "CANCELED" - The negotiations on the proposal were canceled and the
  4086  	// proposal was never finalized.
  4087  	//   "FINALIZED" - The proposal is finalized. During renegotiation, the
  4088  	// proposal may not be in this state.
  4089  	ProposalState string `json:"proposalState,omitempty"`
  4090  	// Seller: Reference to the seller on the proposal. Note: This field may be set
  4091  	// only when creating the resource. Modifying this field while updating the
  4092  	// resource will result in an error.
  4093  	Seller *Seller `json:"seller,omitempty"`
  4094  	// SellerContacts: Output only. Contact information for the seller.
  4095  	SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"`
  4096  	// TermsAndConditions: Output only. The terms and conditions set by the
  4097  	// publisher for this proposal.
  4098  	TermsAndConditions string `json:"termsAndConditions,omitempty"`
  4099  	// UpdateTime: Output only. The time when the proposal was last revised.
  4100  	UpdateTime string `json:"updateTime,omitempty"`
  4101  
  4102  	// ServerResponse contains the HTTP response code and headers from the server.
  4103  	googleapi.ServerResponse `json:"-"`
  4104  	// ForceSendFields is a list of field names (e.g. "BilledBuyer") to
  4105  	// unconditionally include in API requests. By default, fields with empty or
  4106  	// default values are omitted from API requests. See
  4107  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4108  	// details.
  4109  	ForceSendFields []string `json:"-"`
  4110  	// NullFields is a list of field names (e.g. "BilledBuyer") to include in API
  4111  	// requests with the JSON null value. By default, fields with empty values are
  4112  	// omitted from API requests. See
  4113  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4114  	NullFields []string `json:"-"`
  4115  }
  4116  
  4117  func (s *Proposal) MarshalJSON() ([]byte, error) {
  4118  	type NoMethod Proposal
  4119  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4120  }
  4121  
  4122  // PublisherProfile: Represents a publisher profile
  4123  // (https://support.google.com/admanager/answer/6035806) in Marketplace. All
  4124  // fields are read only. All string fields are free-form text entered by the
  4125  // publisher unless noted otherwise.
  4126  type PublisherProfile struct {
  4127  	// AudienceDescription: Description on the publisher's audience.
  4128  	AudienceDescription string `json:"audienceDescription,omitempty"`
  4129  	// BuyerPitchStatement: Statement explaining what's unique about publisher's
  4130  	// business, and why buyers should partner with the publisher.
  4131  	BuyerPitchStatement string `json:"buyerPitchStatement,omitempty"`
  4132  	// DirectDealsContact: Contact information for direct reservation deals. This
  4133  	// is free text entered by the publisher and may include information like
  4134  	// names, phone numbers and email addresses.
  4135  	DirectDealsContact string `json:"directDealsContact,omitempty"`
  4136  	// DisplayName: Name of the publisher profile.
  4137  	DisplayName string `json:"displayName,omitempty"`
  4138  	// Domains: The list of domains represented in this publisher profile. Empty if
  4139  	// this is a parent profile. These are top private domains, meaning that these
  4140  	// will not contain a string like "photos.google.co.uk/123", but will instead
  4141  	// contain "google.co.uk".
  4142  	Domains []string `json:"domains,omitempty"`
  4143  	// GooglePlusUrl: URL to publisher's Google+ page.
  4144  	GooglePlusUrl string `json:"googlePlusUrl,omitempty"`
  4145  	// IsParent: Indicates if this profile is the parent profile of the seller. A
  4146  	// parent profile represents all the inventory from the seller, as opposed to
  4147  	// child profile that is created to brand a portion of inventory. One seller
  4148  	// should have only one parent publisher profile, and can have multiple child
  4149  	// profiles. Publisher profiles for the same seller will have same value of
  4150  	// field google.ads.adexchange.buyer.v2beta1.PublisherProfile.seller. See
  4151  	// https://support.google.com/admanager/answer/6035806 for details.
  4152  	IsParent bool `json:"isParent,omitempty"`
  4153  	// LogoUrl: A Google public URL to the logo for this publisher profile. The
  4154  	// logo is stored as a PNG, JPG, or GIF image.
  4155  	LogoUrl string `json:"logoUrl,omitempty"`
  4156  	// MediaKitUrl: URL to additional marketing and sales materials.
  4157  	MediaKitUrl string `json:"mediaKitUrl,omitempty"`
  4158  	// MobileApps: The list of apps represented in this publisher profile. Empty if
  4159  	// this is a parent profile.
  4160  	MobileApps []*PublisherProfileMobileApplication `json:"mobileApps,omitempty"`
  4161  	// Overview: Overview of the publisher.
  4162  	Overview string `json:"overview,omitempty"`
  4163  	// ProgrammaticDealsContact: Contact information for programmatic deals. This
  4164  	// is free text entered by the publisher and may include information like
  4165  	// names, phone numbers and email addresses.
  4166  	ProgrammaticDealsContact string `json:"programmaticDealsContact,omitempty"`
  4167  	// PublisherProfileId: Unique ID for publisher profile.
  4168  	PublisherProfileId string `json:"publisherProfileId,omitempty"`
  4169  	// RateCardInfoUrl: URL to a publisher rate card.
  4170  	RateCardInfoUrl string `json:"rateCardInfoUrl,omitempty"`
  4171  	// SamplePageUrl: URL to a sample content page.
  4172  	SamplePageUrl string `json:"samplePageUrl,omitempty"`
  4173  	// Seller: Seller of the publisher profile.
  4174  	Seller *Seller `json:"seller,omitempty"`
  4175  	// TopHeadlines: Up to three key metrics and rankings. Max 100 characters each.
  4176  	// For example "#1 Mobile News Site for 20 Straight Months".
  4177  	TopHeadlines []string `json:"topHeadlines,omitempty"`
  4178  
  4179  	// ServerResponse contains the HTTP response code and headers from the server.
  4180  	googleapi.ServerResponse `json:"-"`
  4181  	// ForceSendFields is a list of field names (e.g. "AudienceDescription") to
  4182  	// unconditionally include in API requests. By default, fields with empty or
  4183  	// default values are omitted from API requests. See
  4184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4185  	// details.
  4186  	ForceSendFields []string `json:"-"`
  4187  	// NullFields is a list of field names (e.g. "AudienceDescription") to include
  4188  	// in API requests with the JSON null value. By default, fields with empty
  4189  	// values are omitted from API requests. See
  4190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4191  	NullFields []string `json:"-"`
  4192  }
  4193  
  4194  func (s *PublisherProfile) MarshalJSON() ([]byte, error) {
  4195  	type NoMethod PublisherProfile
  4196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4197  }
  4198  
  4199  // PublisherProfileMobileApplication: A mobile application that contains a
  4200  // external app ID, name, and app store.
  4201  type PublisherProfileMobileApplication struct {
  4202  	// AppStore: The app store the app belongs to.
  4203  	//
  4204  	// Possible values:
  4205  	//   "APP_STORE_TYPE_UNSPECIFIED" - A placeholder for an unknown app store.
  4206  	//   "APPLE_ITUNES" - Apple iTunes
  4207  	//   "GOOGLE_PLAY" - Google Play
  4208  	//   "ROKU" - Roku
  4209  	//   "AMAZON_FIRETV" - Amazon Fire TV
  4210  	//   "PLAYSTATION" - Playstation
  4211  	//   "XBOX" - Xbox
  4212  	//   "SAMSUNG_TV" - Samsung TV
  4213  	//   "AMAZON" - Amazon Appstore
  4214  	//   "OPPO" - OPPO App Market
  4215  	//   "SAMSUNG" - Samsung Galaxy Store
  4216  	//   "VIVO" - VIVO App Store
  4217  	//   "XIAOMI" - Xiaomi GetApps
  4218  	//   "LG_TV" - LG TV
  4219  	AppStore string `json:"appStore,omitempty"`
  4220  	// ExternalAppId: The external ID for the app from its app store.
  4221  	ExternalAppId string `json:"externalAppId,omitempty"`
  4222  	// Name: The name of the app.
  4223  	Name string `json:"name,omitempty"`
  4224  	// ForceSendFields is a list of field names (e.g. "AppStore") to
  4225  	// unconditionally include in API requests. By default, fields with empty or
  4226  	// default values are omitted from API requests. See
  4227  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4228  	// details.
  4229  	ForceSendFields []string `json:"-"`
  4230  	// NullFields is a list of field names (e.g. "AppStore") to include in API
  4231  	// requests with the JSON null value. By default, fields with empty values are
  4232  	// omitted from API requests. See
  4233  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4234  	NullFields []string `json:"-"`
  4235  }
  4236  
  4237  func (s *PublisherProfileMobileApplication) MarshalJSON() ([]byte, error) {
  4238  	type NoMethod PublisherProfileMobileApplication
  4239  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4240  }
  4241  
  4242  // RealtimeTimeRange: An open-ended realtime time range specified by the start
  4243  // timestamp. For filter sets that specify a realtime time range RTB metrics
  4244  // continue to be aggregated throughout the lifetime of the filter set.
  4245  type RealtimeTimeRange struct {
  4246  	// StartTimestamp: The start timestamp of the real-time RTB metrics
  4247  	// aggregation.
  4248  	StartTimestamp string `json:"startTimestamp,omitempty"`
  4249  	// ForceSendFields is a list of field names (e.g. "StartTimestamp") to
  4250  	// unconditionally include in API requests. By default, fields with empty or
  4251  	// default values are omitted from API requests. See
  4252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4253  	// details.
  4254  	ForceSendFields []string `json:"-"`
  4255  	// NullFields is a list of field names (e.g. "StartTimestamp") to include in
  4256  	// API requests with the JSON null value. By default, fields with empty values
  4257  	// are omitted from API requests. See
  4258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4259  	NullFields []string `json:"-"`
  4260  }
  4261  
  4262  func (s *RealtimeTimeRange) MarshalJSON() ([]byte, error) {
  4263  	type NoMethod RealtimeTimeRange
  4264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4265  }
  4266  
  4267  // RelativeDateRange: A relative date range, specified by an offset and a
  4268  // duration. The supported range of dates begins 30 days before today and ends
  4269  // today, for example, the limits for these values are: offset_days >= 0
  4270  // duration_days >= 1 offset_days + duration_days <= 30
  4271  type RelativeDateRange struct {
  4272  	// DurationDays: The number of days in the requested date range, for example,
  4273  	// for a range spanning today: 1. For a range spanning the last 7 days: 7.
  4274  	DurationDays int64 `json:"durationDays,omitempty"`
  4275  	// OffsetDays: The end date of the filter set, specified as the number of days
  4276  	// before today, for example, for a range where the last date is today: 0.
  4277  	OffsetDays int64 `json:"offsetDays,omitempty"`
  4278  	// ForceSendFields is a list of field names (e.g. "DurationDays") to
  4279  	// unconditionally include in API requests. By default, fields with empty or
  4280  	// default values are omitted from API requests. See
  4281  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4282  	// details.
  4283  	ForceSendFields []string `json:"-"`
  4284  	// NullFields is a list of field names (e.g. "DurationDays") to include in API
  4285  	// requests with the JSON null value. By default, fields with empty values are
  4286  	// omitted from API requests. See
  4287  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4288  	NullFields []string `json:"-"`
  4289  }
  4290  
  4291  func (s *RelativeDateRange) MarshalJSON() ([]byte, error) {
  4292  	type NoMethod RelativeDateRange
  4293  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4294  }
  4295  
  4296  // RemoveDealAssociationRequest: A request for removing the association between
  4297  // a deal and a creative.
  4298  type RemoveDealAssociationRequest struct {
  4299  	// Association: The association between a creative and a deal that should be
  4300  	// removed.
  4301  	Association *CreativeDealAssociation `json:"association,omitempty"`
  4302  	// ForceSendFields is a list of field names (e.g. "Association") to
  4303  	// unconditionally include in API requests. By default, fields with empty or
  4304  	// default values are omitted from API requests. See
  4305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4306  	// details.
  4307  	ForceSendFields []string `json:"-"`
  4308  	// NullFields is a list of field names (e.g. "Association") to include in API
  4309  	// requests with the JSON null value. By default, fields with empty values are
  4310  	// omitted from API requests. See
  4311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4312  	NullFields []string `json:"-"`
  4313  }
  4314  
  4315  func (s *RemoveDealAssociationRequest) MarshalJSON() ([]byte, error) {
  4316  	type NoMethod RemoveDealAssociationRequest
  4317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4318  }
  4319  
  4320  // ResumeProposalDealsRequest: Request message to resume (unpause) serving for
  4321  // already-finalized deals.
  4322  type ResumeProposalDealsRequest struct {
  4323  	// ExternalDealIds: The external_deal_id's of the deals to resume. If empty,
  4324  	// all the deals in the proposal will be resumed.
  4325  	ExternalDealIds []string `json:"externalDealIds,omitempty"`
  4326  	// ForceSendFields is a list of field names (e.g. "ExternalDealIds") to
  4327  	// unconditionally include in API requests. By default, fields with empty or
  4328  	// default values are omitted from API requests. See
  4329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4330  	// details.
  4331  	ForceSendFields []string `json:"-"`
  4332  	// NullFields is a list of field names (e.g. "ExternalDealIds") to include in
  4333  	// API requests with the JSON null value. By default, fields with empty values
  4334  	// are omitted from API requests. See
  4335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4336  	NullFields []string `json:"-"`
  4337  }
  4338  
  4339  func (s *ResumeProposalDealsRequest) MarshalJSON() ([]byte, error) {
  4340  	type NoMethod ResumeProposalDealsRequest
  4341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4342  }
  4343  
  4344  // ResumeProposalRequest: Request message to resume (unpause) serving for an
  4345  // already-finalized proposal.
  4346  type ResumeProposalRequest struct {
  4347  }
  4348  
  4349  // RowDimensions: A response may include multiple rows, breaking down along
  4350  // various dimensions. Encapsulates the values of all dimensions for a given
  4351  // row.
  4352  type RowDimensions struct {
  4353  	// PublisherIdentifier: The publisher identifier for this row, if a breakdown
  4354  	// by BreakdownDimension.PUBLISHER_IDENTIFIER
  4355  	// (https://developers.google.com/authorized-buyers/apis/reference/rest/v2beta1/bidders.accounts.filterSets#FilterSet.BreakdownDimension)
  4356  	// was requested.
  4357  	PublisherIdentifier string `json:"publisherIdentifier,omitempty"`
  4358  	// TimeInterval: The time interval that this row represents.
  4359  	TimeInterval *TimeInterval `json:"timeInterval,omitempty"`
  4360  	// ForceSendFields is a list of field names (e.g. "PublisherIdentifier") to
  4361  	// unconditionally include in API requests. By default, fields with empty or
  4362  	// default values are omitted from API requests. See
  4363  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4364  	// details.
  4365  	ForceSendFields []string `json:"-"`
  4366  	// NullFields is a list of field names (e.g. "PublisherIdentifier") to include
  4367  	// in API requests with the JSON null value. By default, fields with empty
  4368  	// values are omitted from API requests. See
  4369  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4370  	NullFields []string `json:"-"`
  4371  }
  4372  
  4373  func (s *RowDimensions) MarshalJSON() ([]byte, error) {
  4374  	type NoMethod RowDimensions
  4375  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4376  }
  4377  
  4378  // SecurityContext: Output only. A security context.
  4379  type SecurityContext struct {
  4380  	// Securities: The security types in this context.
  4381  	//
  4382  	// Possible values:
  4383  	//   "INSECURE" - Matches impressions that require insecure compatibility.
  4384  	//   "SSL" - Matches impressions that require SSL compatibility.
  4385  	Securities []string `json:"securities,omitempty"`
  4386  	// ForceSendFields is a list of field names (e.g. "Securities") to
  4387  	// unconditionally include in API requests. By default, fields with empty or
  4388  	// default values are omitted from API requests. See
  4389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4390  	// details.
  4391  	ForceSendFields []string `json:"-"`
  4392  	// NullFields is a list of field names (e.g. "Securities") to include in API
  4393  	// requests with the JSON null value. By default, fields with empty values are
  4394  	// omitted from API requests. See
  4395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4396  	NullFields []string `json:"-"`
  4397  }
  4398  
  4399  func (s *SecurityContext) MarshalJSON() ([]byte, error) {
  4400  	type NoMethod SecurityContext
  4401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4402  }
  4403  
  4404  // Seller: Represents a seller of inventory. Each seller is identified by a
  4405  // unique Ad Manager account ID.
  4406  type Seller struct {
  4407  	// AccountId: The unique ID for the seller. The seller fills in this field. The
  4408  	// seller account ID is then available to buyer in the product.
  4409  	AccountId string `json:"accountId,omitempty"`
  4410  	// SubAccountId: Output only. Ad manager network code for the seller.
  4411  	SubAccountId string `json:"subAccountId,omitempty"`
  4412  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  4413  	// unconditionally include in API requests. By default, fields with empty or
  4414  	// default values are omitted from API requests. See
  4415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4416  	// details.
  4417  	ForceSendFields []string `json:"-"`
  4418  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  4419  	// requests with the JSON null value. By default, fields with empty values are
  4420  	// omitted from API requests. See
  4421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4422  	NullFields []string `json:"-"`
  4423  }
  4424  
  4425  func (s *Seller) MarshalJSON() ([]byte, error) {
  4426  	type NoMethod Seller
  4427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4428  }
  4429  
  4430  // ServingContext: The serving context for this restriction.
  4431  type ServingContext struct {
  4432  	// All: Matches all contexts.
  4433  	//
  4434  	// Possible values:
  4435  	//   "SIMPLE_CONTEXT" - A simple context.
  4436  	All string `json:"all,omitempty"`
  4437  	// AppType: Matches impressions for a particular app type.
  4438  	AppType *AppContext `json:"appType,omitempty"`
  4439  	// AuctionType: Matches impressions for a particular auction type.
  4440  	AuctionType *AuctionContext `json:"auctionType,omitempty"`
  4441  	// Location: Matches impressions coming from users *or* publishers in a
  4442  	// specific location.
  4443  	Location *LocationContext `json:"location,omitempty"`
  4444  	// Platform: Matches impressions coming from a particular platform.
  4445  	Platform *PlatformContext `json:"platform,omitempty"`
  4446  	// SecurityType: Matches impressions for a particular security type.
  4447  	SecurityType *SecurityContext `json:"securityType,omitempty"`
  4448  	// ForceSendFields is a list of field names (e.g. "All") to unconditionally
  4449  	// include in API requests. By default, fields with empty or default values are
  4450  	// omitted from API requests. See
  4451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4452  	// details.
  4453  	ForceSendFields []string `json:"-"`
  4454  	// NullFields is a list of field names (e.g. "All") to include in API requests
  4455  	// with the JSON null value. By default, fields with empty values are omitted
  4456  	// from API requests. See
  4457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4458  	NullFields []string `json:"-"`
  4459  }
  4460  
  4461  func (s *ServingContext) MarshalJSON() ([]byte, error) {
  4462  	type NoMethod ServingContext
  4463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4464  }
  4465  
  4466  // ServingRestriction: Output only. A representation of the status of an ad in
  4467  // a specific context. A context here relates to where something ultimately
  4468  // serves (for example, a user or publisher geo, a platform, an HTTPS versus
  4469  // HTTP request, or the type of auction).
  4470  type ServingRestriction struct {
  4471  	// Contexts: The contexts for the restriction.
  4472  	Contexts []*ServingContext `json:"contexts,omitempty"`
  4473  	// Disapproval: Disapproval bound to this restriction. Only present if
  4474  	// status=DISAPPROVED. Can be used to filter the response of the creatives.list
  4475  	// method.
  4476  	Disapproval *Disapproval `json:"disapproval,omitempty"`
  4477  	// DisapprovalReasons: Any disapprovals bound to this restriction. Only present
  4478  	// if status=DISAPPROVED. Can be used to filter the response of the
  4479  	// creatives.list method. Deprecated; use disapproval field instead.
  4480  	DisapprovalReasons []*Disapproval `json:"disapprovalReasons,omitempty"`
  4481  	// Status: The status of the creative in this context (for example, it has been
  4482  	// explicitly disapproved or is pending review).
  4483  	//
  4484  	// Possible values:
  4485  	//   "STATUS_UNSPECIFIED" - The status is not known.
  4486  	//   "DISAPPROVAL" - The ad was disapproved in this context.
  4487  	//   "PENDING_REVIEW" - The ad is pending review in this context.
  4488  	Status string `json:"status,omitempty"`
  4489  	// ForceSendFields is a list of field names (e.g. "Contexts") to
  4490  	// unconditionally include in API requests. By default, fields with empty or
  4491  	// default values are omitted from API requests. See
  4492  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4493  	// details.
  4494  	ForceSendFields []string `json:"-"`
  4495  	// NullFields is a list of field names (e.g. "Contexts") to include in API
  4496  	// requests with the JSON null value. By default, fields with empty values are
  4497  	// omitted from API requests. See
  4498  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4499  	NullFields []string `json:"-"`
  4500  }
  4501  
  4502  func (s *ServingRestriction) MarshalJSON() ([]byte, error) {
  4503  	type NoMethod ServingRestriction
  4504  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4505  }
  4506  
  4507  // Size: Message depicting the size of the creative. The units of width and
  4508  // height depend on the type of the targeting.
  4509  type Size struct {
  4510  	// Height: The height of the creative.
  4511  	Height int64 `json:"height,omitempty"`
  4512  	// Width: The width of the creative
  4513  	Width int64 `json:"width,omitempty"`
  4514  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  4515  	// include in API requests. By default, fields with empty or default values are
  4516  	// omitted from API requests. See
  4517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4518  	// details.
  4519  	ForceSendFields []string `json:"-"`
  4520  	// NullFields is a list of field names (e.g. "Height") to include in API
  4521  	// requests with the JSON null value. By default, fields with empty values are
  4522  	// omitted from API requests. See
  4523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4524  	NullFields []string `json:"-"`
  4525  }
  4526  
  4527  func (s *Size) MarshalJSON() ([]byte, error) {
  4528  	type NoMethod Size
  4529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4530  }
  4531  
  4532  // StopWatchingCreativeRequest: A request for stopping notifications for
  4533  // changes to creative Status.
  4534  type StopWatchingCreativeRequest struct {
  4535  }
  4536  
  4537  // TargetingCriteria: Advertisers can target different attributes of an ad
  4538  // slot. For example, they can choose to show ads only if the user is in the
  4539  // U.S. Such targeting criteria can be specified as part of Shared Targeting.
  4540  type TargetingCriteria struct {
  4541  	// Exclusions: The list of values to exclude from targeting. Each value is
  4542  	// AND'd together.
  4543  	Exclusions []*TargetingValue `json:"exclusions,omitempty"`
  4544  	// Inclusions: The list of value to include as part of the targeting. Each
  4545  	// value is OR'd together.
  4546  	Inclusions []*TargetingValue `json:"inclusions,omitempty"`
  4547  	// Key: The key representing the shared targeting criterion. Targeting criteria
  4548  	// defined by Google ad servers will begin with GOOG_. Third parties may define
  4549  	// their own keys. A list of permissible keys along with the acceptable values
  4550  	// will be provided as part of the external documentation.
  4551  	Key string `json:"key,omitempty"`
  4552  	// ForceSendFields is a list of field names (e.g. "Exclusions") to
  4553  	// unconditionally include in API requests. By default, fields with empty or
  4554  	// default values are omitted from API requests. See
  4555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4556  	// details.
  4557  	ForceSendFields []string `json:"-"`
  4558  	// NullFields is a list of field names (e.g. "Exclusions") to include in API
  4559  	// requests with the JSON null value. By default, fields with empty values are
  4560  	// omitted from API requests. See
  4561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4562  	NullFields []string `json:"-"`
  4563  }
  4564  
  4565  func (s *TargetingCriteria) MarshalJSON() ([]byte, error) {
  4566  	type NoMethod TargetingCriteria
  4567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4568  }
  4569  
  4570  // TargetingValue: A polymorphic targeting value used as part of Shared
  4571  // Targeting.
  4572  type TargetingValue struct {
  4573  	// CreativeSizeValue: The creative size value to include/exclude. Filled in
  4574  	// when key = GOOG_CREATIVE_SIZE
  4575  	CreativeSizeValue *CreativeSize `json:"creativeSizeValue,omitempty"`
  4576  	// DayPartTargetingValue: The daypart targeting to include / exclude. Filled in
  4577  	// when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is
  4578  	// derived from the structure used by Ad Manager.
  4579  	DayPartTargetingValue *DayPartTargeting `json:"dayPartTargetingValue,omitempty"`
  4580  	// LongValue: The long value to include/exclude.
  4581  	LongValue int64 `json:"longValue,omitempty,string"`
  4582  	// StringValue: The string value to include/exclude.
  4583  	StringValue string `json:"stringValue,omitempty"`
  4584  	// ForceSendFields is a list of field names (e.g. "CreativeSizeValue") to
  4585  	// unconditionally include in API requests. By default, fields with empty or
  4586  	// default values are omitted from API requests. See
  4587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4588  	// details.
  4589  	ForceSendFields []string `json:"-"`
  4590  	// NullFields is a list of field names (e.g. "CreativeSizeValue") to include in
  4591  	// API requests with the JSON null value. By default, fields with empty values
  4592  	// are omitted from API requests. See
  4593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4594  	NullFields []string `json:"-"`
  4595  }
  4596  
  4597  func (s *TargetingValue) MarshalJSON() ([]byte, error) {
  4598  	type NoMethod TargetingValue
  4599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4600  }
  4601  
  4602  // TechnologyTargeting: Represents targeting about various types of technology.
  4603  type TechnologyTargeting struct {
  4604  	// DeviceCapabilityTargeting: IDs of device capabilities to be
  4605  	// included/excluded.
  4606  	DeviceCapabilityTargeting *CriteriaTargeting `json:"deviceCapabilityTargeting,omitempty"`
  4607  	// DeviceCategoryTargeting: IDs of device categories to be included/excluded.
  4608  	DeviceCategoryTargeting *CriteriaTargeting `json:"deviceCategoryTargeting,omitempty"`
  4609  	// OperatingSystemTargeting: Operating system related targeting information.
  4610  	OperatingSystemTargeting *OperatingSystemTargeting `json:"operatingSystemTargeting,omitempty"`
  4611  	// ForceSendFields is a list of field names (e.g. "DeviceCapabilityTargeting")
  4612  	// to unconditionally include in API requests. By default, fields with empty or
  4613  	// default values are omitted from API requests. See
  4614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4615  	// details.
  4616  	ForceSendFields []string `json:"-"`
  4617  	// NullFields is a list of field names (e.g. "DeviceCapabilityTargeting") to
  4618  	// include in API requests with the JSON null value. By default, fields with
  4619  	// empty values are omitted from API requests. See
  4620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4621  	NullFields []string `json:"-"`
  4622  }
  4623  
  4624  func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) {
  4625  	type NoMethod TechnologyTargeting
  4626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4627  }
  4628  
  4629  // TimeInterval: An interval of time, with an absolute start and end.
  4630  type TimeInterval struct {
  4631  	// EndTime: The timestamp marking the end of the range (exclusive) for which
  4632  	// data is included.
  4633  	EndTime string `json:"endTime,omitempty"`
  4634  	// StartTime: The timestamp marking the start of the range (inclusive) for
  4635  	// which data is included.
  4636  	StartTime string `json:"startTime,omitempty"`
  4637  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  4638  	// include in API requests. By default, fields with empty or default values are
  4639  	// omitted from API requests. See
  4640  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4641  	// details.
  4642  	ForceSendFields []string `json:"-"`
  4643  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  4644  	// requests with the JSON null value. By default, fields with empty values are
  4645  	// omitted from API requests. See
  4646  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4647  	NullFields []string `json:"-"`
  4648  }
  4649  
  4650  func (s *TimeInterval) MarshalJSON() ([]byte, error) {
  4651  	type NoMethod TimeInterval
  4652  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4653  }
  4654  
  4655  // TimeOfDay: Represents a time of day. The date and time zone are either not
  4656  // significant or are specified elsewhere. An API may choose to allow leap
  4657  // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
  4658  type TimeOfDay struct {
  4659  	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may
  4660  	// choose to allow the value "24:00:00" for scenarios like business closing
  4661  	// time.
  4662  	Hours int64 `json:"hours,omitempty"`
  4663  	// Minutes: Minutes of hour of day. Must be from 0 to 59.
  4664  	Minutes int64 `json:"minutes,omitempty"`
  4665  	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
  4666  	Nanos int64 `json:"nanos,omitempty"`
  4667  	// Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An
  4668  	// API may allow the value 60 if it allows leap-seconds.
  4669  	Seconds int64 `json:"seconds,omitempty"`
  4670  	// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
  4671  	// include in API requests. By default, fields with empty or default values are
  4672  	// omitted from API requests. See
  4673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4674  	// details.
  4675  	ForceSendFields []string `json:"-"`
  4676  	// NullFields is a list of field names (e.g. "Hours") to include in API
  4677  	// requests with the JSON null value. By default, fields with empty values are
  4678  	// omitted from API requests. See
  4679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4680  	NullFields []string `json:"-"`
  4681  }
  4682  
  4683  func (s *TimeOfDay) MarshalJSON() ([]byte, error) {
  4684  	type NoMethod TimeOfDay
  4685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4686  }
  4687  
  4688  // UrlTargeting: Represents a list of targeted and excluded URLs (for example,
  4689  // google.com). For Private Auction and AdX Preferred Deals, URLs are either
  4690  // included or excluded. For Programmatic Guaranteed and Preferred Deals, this
  4691  // doesn't apply.
  4692  type UrlTargeting struct {
  4693  	// ExcludedUrls: A list of URLs to be excluded.
  4694  	ExcludedUrls []string `json:"excludedUrls,omitempty"`
  4695  	// TargetedUrls: A list of URLs to be included.
  4696  	TargetedUrls []string `json:"targetedUrls,omitempty"`
  4697  	// ForceSendFields is a list of field names (e.g. "ExcludedUrls") to
  4698  	// unconditionally include in API requests. By default, fields with empty or
  4699  	// default values are omitted from API requests. See
  4700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4701  	// details.
  4702  	ForceSendFields []string `json:"-"`
  4703  	// NullFields is a list of field names (e.g. "ExcludedUrls") to include in API
  4704  	// requests with the JSON null value. By default, fields with empty values are
  4705  	// omitted from API requests. See
  4706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4707  	NullFields []string `json:"-"`
  4708  }
  4709  
  4710  func (s *UrlTargeting) MarshalJSON() ([]byte, error) {
  4711  	type NoMethod UrlTargeting
  4712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4713  }
  4714  
  4715  // VideoContent: Video content for a creative.
  4716  type VideoContent struct {
  4717  	// VideoUrl: The URL to fetch a video ad.
  4718  	VideoUrl string `json:"videoUrl,omitempty"`
  4719  	// VideoVastXml: The contents of a VAST document for a video ad. This document
  4720  	// should conform to the VAST 2.0 or 3.0 standard.
  4721  	VideoVastXml string `json:"videoVastXml,omitempty"`
  4722  	// ForceSendFields is a list of field names (e.g. "VideoUrl") to
  4723  	// unconditionally include in API requests. By default, fields with empty or
  4724  	// default values are omitted from API requests. See
  4725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4726  	// details.
  4727  	ForceSendFields []string `json:"-"`
  4728  	// NullFields is a list of field names (e.g. "VideoUrl") to include in API
  4729  	// requests with the JSON null value. By default, fields with empty values are
  4730  	// omitted from API requests. See
  4731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4732  	NullFields []string `json:"-"`
  4733  }
  4734  
  4735  func (s *VideoContent) MarshalJSON() ([]byte, error) {
  4736  	type NoMethod VideoContent
  4737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4738  }
  4739  
  4740  // VideoTargeting: Represents targeting information about video.
  4741  type VideoTargeting struct {
  4742  	// ExcludedPositionTypes: A list of video positions to be excluded. Position
  4743  	// types can either be included or excluded (XOR).
  4744  	//
  4745  	// Possible values:
  4746  	//   "POSITION_TYPE_UNSPECIFIED" - A placeholder for an undefined video
  4747  	// position.
  4748  	//   "PREROLL" - Ad is played before the video.
  4749  	//   "MIDROLL" - Ad is played during the video.
  4750  	//   "POSTROLL" - Ad is played after the video.
  4751  	ExcludedPositionTypes []string `json:"excludedPositionTypes,omitempty"`
  4752  	// TargetedPositionTypes: A list of video positions to be included. When the
  4753  	// included list is present, the excluded list must be empty. When the excluded
  4754  	// list is present, the included list must be empty.
  4755  	//
  4756  	// Possible values:
  4757  	//   "POSITION_TYPE_UNSPECIFIED" - A placeholder for an undefined video
  4758  	// position.
  4759  	//   "PREROLL" - Ad is played before the video.
  4760  	//   "MIDROLL" - Ad is played during the video.
  4761  	//   "POSTROLL" - Ad is played after the video.
  4762  	TargetedPositionTypes []string `json:"targetedPositionTypes,omitempty"`
  4763  	// ForceSendFields is a list of field names (e.g. "ExcludedPositionTypes") to
  4764  	// unconditionally include in API requests. By default, fields with empty or
  4765  	// default values are omitted from API requests. See
  4766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4767  	// details.
  4768  	ForceSendFields []string `json:"-"`
  4769  	// NullFields is a list of field names (e.g. "ExcludedPositionTypes") to
  4770  	// include in API requests with the JSON null value. By default, fields with
  4771  	// empty values are omitted from API requests. See
  4772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4773  	NullFields []string `json:"-"`
  4774  }
  4775  
  4776  func (s *VideoTargeting) MarshalJSON() ([]byte, error) {
  4777  	type NoMethod VideoTargeting
  4778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4779  }
  4780  
  4781  // WatchCreativeRequest: A request for watching changes to creative Status.
  4782  type WatchCreativeRequest struct {
  4783  	// Topic: The Pub/Sub topic to publish notifications to. This topic must
  4784  	// already exist and must give permission to
  4785  	// ad-exchange-buyside-reports@google.com to write to the topic. This should be
  4786  	// the full resource name in "projects/{project_id}/topics/{topic_id}" format.
  4787  	Topic string `json:"topic,omitempty"`
  4788  	// ForceSendFields is a list of field names (e.g. "Topic") to unconditionally
  4789  	// include in API requests. By default, fields with empty or default values are
  4790  	// omitted from API requests. See
  4791  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4792  	// details.
  4793  	ForceSendFields []string `json:"-"`
  4794  	// NullFields is a list of field names (e.g. "Topic") to include in API
  4795  	// requests with the JSON null value. By default, fields with empty values are
  4796  	// omitted from API requests. See
  4797  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4798  	NullFields []string `json:"-"`
  4799  }
  4800  
  4801  func (s *WatchCreativeRequest) MarshalJSON() ([]byte, error) {
  4802  	type NoMethod WatchCreativeRequest
  4803  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4804  }
  4805  
  4806  type AccountsClientsCreateCall struct {
  4807  	s          *Service
  4808  	accountId  int64
  4809  	client     *Client
  4810  	urlParams_ gensupport.URLParams
  4811  	ctx_       context.Context
  4812  	header_    http.Header
  4813  }
  4814  
  4815  // Create: Creates a new client buyer.
  4816  //
  4817  //   - accountId: Unique numerical account ID for the buyer of which the client
  4818  //     buyer is a customer; the sponsor buyer to create a client for. (required).
  4819  func (r *AccountsClientsService) Create(accountId int64, client *Client) *AccountsClientsCreateCall {
  4820  	c := &AccountsClientsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4821  	c.accountId = accountId
  4822  	c.client = client
  4823  	return c
  4824  }
  4825  
  4826  // Fields allows partial responses to be retrieved. See
  4827  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4828  // details.
  4829  func (c *AccountsClientsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsCreateCall {
  4830  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4831  	return c
  4832  }
  4833  
  4834  // Context sets the context to be used in this call's Do method.
  4835  func (c *AccountsClientsCreateCall) Context(ctx context.Context) *AccountsClientsCreateCall {
  4836  	c.ctx_ = ctx
  4837  	return c
  4838  }
  4839  
  4840  // Header returns a http.Header that can be modified by the caller to add
  4841  // headers to the request.
  4842  func (c *AccountsClientsCreateCall) Header() http.Header {
  4843  	if c.header_ == nil {
  4844  		c.header_ = make(http.Header)
  4845  	}
  4846  	return c.header_
  4847  }
  4848  
  4849  func (c *AccountsClientsCreateCall) doRequest(alt string) (*http.Response, error) {
  4850  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4851  	var body io.Reader = nil
  4852  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.client)
  4853  	if err != nil {
  4854  		return nil, err
  4855  	}
  4856  	c.urlParams_.Set("alt", alt)
  4857  	c.urlParams_.Set("prettyPrint", "false")
  4858  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients")
  4859  	urls += "?" + c.urlParams_.Encode()
  4860  	req, err := http.NewRequest("POST", urls, body)
  4861  	if err != nil {
  4862  		return nil, err
  4863  	}
  4864  	req.Header = reqHeaders
  4865  	googleapi.Expand(req.URL, map[string]string{
  4866  		"accountId": strconv.FormatInt(c.accountId, 10),
  4867  	})
  4868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4869  }
  4870  
  4871  // Do executes the "adexchangebuyer2.accounts.clients.create" call.
  4872  // Any non-2xx status code is an error. Response headers are in either
  4873  // *Client.ServerResponse.Header or (if a response was returned at all) in
  4874  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4875  // whether the returned error was because http.StatusNotModified was returned.
  4876  func (c *AccountsClientsCreateCall) Do(opts ...googleapi.CallOption) (*Client, error) {
  4877  	gensupport.SetOptions(c.urlParams_, opts...)
  4878  	res, err := c.doRequest("json")
  4879  	if res != nil && res.StatusCode == http.StatusNotModified {
  4880  		if res.Body != nil {
  4881  			res.Body.Close()
  4882  		}
  4883  		return nil, gensupport.WrapError(&googleapi.Error{
  4884  			Code:   res.StatusCode,
  4885  			Header: res.Header,
  4886  		})
  4887  	}
  4888  	if err != nil {
  4889  		return nil, err
  4890  	}
  4891  	defer googleapi.CloseBody(res)
  4892  	if err := googleapi.CheckResponse(res); err != nil {
  4893  		return nil, gensupport.WrapError(err)
  4894  	}
  4895  	ret := &Client{
  4896  		ServerResponse: googleapi.ServerResponse{
  4897  			Header:         res.Header,
  4898  			HTTPStatusCode: res.StatusCode,
  4899  		},
  4900  	}
  4901  	target := &ret
  4902  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4903  		return nil, err
  4904  	}
  4905  	return ret, nil
  4906  }
  4907  
  4908  type AccountsClientsGetCall struct {
  4909  	s               *Service
  4910  	accountId       int64
  4911  	clientAccountId int64
  4912  	urlParams_      gensupport.URLParams
  4913  	ifNoneMatch_    string
  4914  	ctx_            context.Context
  4915  	header_         http.Header
  4916  }
  4917  
  4918  // Get: Gets a client buyer with a given client account ID.
  4919  //
  4920  //   - accountId: Numerical account ID of the client's sponsor buyer. (required).
  4921  //   - clientAccountId: Numerical account ID of the client buyer to retrieve.
  4922  //     (required).
  4923  func (r *AccountsClientsService) Get(accountId int64, clientAccountId int64) *AccountsClientsGetCall {
  4924  	c := &AccountsClientsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4925  	c.accountId = accountId
  4926  	c.clientAccountId = clientAccountId
  4927  	return c
  4928  }
  4929  
  4930  // Fields allows partial responses to be retrieved. See
  4931  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4932  // details.
  4933  func (c *AccountsClientsGetCall) Fields(s ...googleapi.Field) *AccountsClientsGetCall {
  4934  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4935  	return c
  4936  }
  4937  
  4938  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4939  // object's ETag matches the given value. This is useful for getting updates
  4940  // only after the object has changed since the last request.
  4941  func (c *AccountsClientsGetCall) IfNoneMatch(entityTag string) *AccountsClientsGetCall {
  4942  	c.ifNoneMatch_ = entityTag
  4943  	return c
  4944  }
  4945  
  4946  // Context sets the context to be used in this call's Do method.
  4947  func (c *AccountsClientsGetCall) Context(ctx context.Context) *AccountsClientsGetCall {
  4948  	c.ctx_ = ctx
  4949  	return c
  4950  }
  4951  
  4952  // Header returns a http.Header that can be modified by the caller to add
  4953  // headers to the request.
  4954  func (c *AccountsClientsGetCall) Header() http.Header {
  4955  	if c.header_ == nil {
  4956  		c.header_ = make(http.Header)
  4957  	}
  4958  	return c.header_
  4959  }
  4960  
  4961  func (c *AccountsClientsGetCall) doRequest(alt string) (*http.Response, error) {
  4962  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4963  	if c.ifNoneMatch_ != "" {
  4964  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4965  	}
  4966  	var body io.Reader = nil
  4967  	c.urlParams_.Set("alt", alt)
  4968  	c.urlParams_.Set("prettyPrint", "false")
  4969  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}")
  4970  	urls += "?" + c.urlParams_.Encode()
  4971  	req, err := http.NewRequest("GET", urls, body)
  4972  	if err != nil {
  4973  		return nil, err
  4974  	}
  4975  	req.Header = reqHeaders
  4976  	googleapi.Expand(req.URL, map[string]string{
  4977  		"accountId":       strconv.FormatInt(c.accountId, 10),
  4978  		"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
  4979  	})
  4980  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4981  }
  4982  
  4983  // Do executes the "adexchangebuyer2.accounts.clients.get" call.
  4984  // Any non-2xx status code is an error. Response headers are in either
  4985  // *Client.ServerResponse.Header or (if a response was returned at all) in
  4986  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4987  // whether the returned error was because http.StatusNotModified was returned.
  4988  func (c *AccountsClientsGetCall) Do(opts ...googleapi.CallOption) (*Client, error) {
  4989  	gensupport.SetOptions(c.urlParams_, opts...)
  4990  	res, err := c.doRequest("json")
  4991  	if res != nil && res.StatusCode == http.StatusNotModified {
  4992  		if res.Body != nil {
  4993  			res.Body.Close()
  4994  		}
  4995  		return nil, gensupport.WrapError(&googleapi.Error{
  4996  			Code:   res.StatusCode,
  4997  			Header: res.Header,
  4998  		})
  4999  	}
  5000  	if err != nil {
  5001  		return nil, err
  5002  	}
  5003  	defer googleapi.CloseBody(res)
  5004  	if err := googleapi.CheckResponse(res); err != nil {
  5005  		return nil, gensupport.WrapError(err)
  5006  	}
  5007  	ret := &Client{
  5008  		ServerResponse: googleapi.ServerResponse{
  5009  			Header:         res.Header,
  5010  			HTTPStatusCode: res.StatusCode,
  5011  		},
  5012  	}
  5013  	target := &ret
  5014  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5015  		return nil, err
  5016  	}
  5017  	return ret, nil
  5018  }
  5019  
  5020  type AccountsClientsListCall struct {
  5021  	s            *Service
  5022  	accountId    int64
  5023  	urlParams_   gensupport.URLParams
  5024  	ifNoneMatch_ string
  5025  	ctx_         context.Context
  5026  	header_      http.Header
  5027  }
  5028  
  5029  // List: Lists all the clients for the current sponsor buyer.
  5030  //
  5031  //   - accountId: Unique numerical account ID of the sponsor buyer to list the
  5032  //     clients for.
  5033  func (r *AccountsClientsService) List(accountId int64) *AccountsClientsListCall {
  5034  	c := &AccountsClientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5035  	c.accountId = accountId
  5036  	return c
  5037  }
  5038  
  5039  // PageSize sets the optional parameter "pageSize": Requested page size. The
  5040  // server may return fewer clients than requested. If unspecified, the server
  5041  // will pick an appropriate default.
  5042  func (c *AccountsClientsListCall) PageSize(pageSize int64) *AccountsClientsListCall {
  5043  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5044  	return c
  5045  }
  5046  
  5047  // PageToken sets the optional parameter "pageToken": A token identifying a
  5048  // page of results the server should return. Typically, this is the value of
  5049  // ListClientsResponse.nextPageToken returned from the previous call to the
  5050  // accounts.clients.list method.
  5051  func (c *AccountsClientsListCall) PageToken(pageToken string) *AccountsClientsListCall {
  5052  	c.urlParams_.Set("pageToken", pageToken)
  5053  	return c
  5054  }
  5055  
  5056  // PartnerClientId sets the optional parameter "partnerClientId": Optional
  5057  // unique identifier (from the standpoint of an Ad Exchange sponsor buyer
  5058  // partner) of the client to return. If specified, at most one client will be
  5059  // returned in the response.
  5060  func (c *AccountsClientsListCall) PartnerClientId(partnerClientId string) *AccountsClientsListCall {
  5061  	c.urlParams_.Set("partnerClientId", partnerClientId)
  5062  	return c
  5063  }
  5064  
  5065  // Fields allows partial responses to be retrieved. See
  5066  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5067  // details.
  5068  func (c *AccountsClientsListCall) Fields(s ...googleapi.Field) *AccountsClientsListCall {
  5069  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5070  	return c
  5071  }
  5072  
  5073  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5074  // object's ETag matches the given value. This is useful for getting updates
  5075  // only after the object has changed since the last request.
  5076  func (c *AccountsClientsListCall) IfNoneMatch(entityTag string) *AccountsClientsListCall {
  5077  	c.ifNoneMatch_ = entityTag
  5078  	return c
  5079  }
  5080  
  5081  // Context sets the context to be used in this call's Do method.
  5082  func (c *AccountsClientsListCall) Context(ctx context.Context) *AccountsClientsListCall {
  5083  	c.ctx_ = ctx
  5084  	return c
  5085  }
  5086  
  5087  // Header returns a http.Header that can be modified by the caller to add
  5088  // headers to the request.
  5089  func (c *AccountsClientsListCall) Header() http.Header {
  5090  	if c.header_ == nil {
  5091  		c.header_ = make(http.Header)
  5092  	}
  5093  	return c.header_
  5094  }
  5095  
  5096  func (c *AccountsClientsListCall) doRequest(alt string) (*http.Response, error) {
  5097  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5098  	if c.ifNoneMatch_ != "" {
  5099  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5100  	}
  5101  	var body io.Reader = nil
  5102  	c.urlParams_.Set("alt", alt)
  5103  	c.urlParams_.Set("prettyPrint", "false")
  5104  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients")
  5105  	urls += "?" + c.urlParams_.Encode()
  5106  	req, err := http.NewRequest("GET", urls, body)
  5107  	if err != nil {
  5108  		return nil, err
  5109  	}
  5110  	req.Header = reqHeaders
  5111  	googleapi.Expand(req.URL, map[string]string{
  5112  		"accountId": strconv.FormatInt(c.accountId, 10),
  5113  	})
  5114  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5115  }
  5116  
  5117  // Do executes the "adexchangebuyer2.accounts.clients.list" call.
  5118  // Any non-2xx status code is an error. Response headers are in either
  5119  // *ListClientsResponse.ServerResponse.Header or (if a response was returned at
  5120  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5121  // check whether the returned error was because http.StatusNotModified was
  5122  // returned.
  5123  func (c *AccountsClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsResponse, error) {
  5124  	gensupport.SetOptions(c.urlParams_, opts...)
  5125  	res, err := c.doRequest("json")
  5126  	if res != nil && res.StatusCode == http.StatusNotModified {
  5127  		if res.Body != nil {
  5128  			res.Body.Close()
  5129  		}
  5130  		return nil, gensupport.WrapError(&googleapi.Error{
  5131  			Code:   res.StatusCode,
  5132  			Header: res.Header,
  5133  		})
  5134  	}
  5135  	if err != nil {
  5136  		return nil, err
  5137  	}
  5138  	defer googleapi.CloseBody(res)
  5139  	if err := googleapi.CheckResponse(res); err != nil {
  5140  		return nil, gensupport.WrapError(err)
  5141  	}
  5142  	ret := &ListClientsResponse{
  5143  		ServerResponse: googleapi.ServerResponse{
  5144  			Header:         res.Header,
  5145  			HTTPStatusCode: res.StatusCode,
  5146  		},
  5147  	}
  5148  	target := &ret
  5149  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5150  		return nil, err
  5151  	}
  5152  	return ret, nil
  5153  }
  5154  
  5155  // Pages invokes f for each page of results.
  5156  // A non-nil error returned from f will halt the iteration.
  5157  // The provided context supersedes any context provided to the Context method.
  5158  func (c *AccountsClientsListCall) Pages(ctx context.Context, f func(*ListClientsResponse) error) error {
  5159  	c.ctx_ = ctx
  5160  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5161  	for {
  5162  		x, err := c.Do()
  5163  		if err != nil {
  5164  			return err
  5165  		}
  5166  		if err := f(x); err != nil {
  5167  			return err
  5168  		}
  5169  		if x.NextPageToken == "" {
  5170  			return nil
  5171  		}
  5172  		c.PageToken(x.NextPageToken)
  5173  	}
  5174  }
  5175  
  5176  type AccountsClientsUpdateCall struct {
  5177  	s               *Service
  5178  	accountId       int64
  5179  	clientAccountId int64
  5180  	client          *Client
  5181  	urlParams_      gensupport.URLParams
  5182  	ctx_            context.Context
  5183  	header_         http.Header
  5184  }
  5185  
  5186  // Update: Updates an existing client buyer.
  5187  //
  5188  //   - accountId: Unique numerical account ID for the buyer of which the client
  5189  //     buyer is a customer; the sponsor buyer to update a client for. (required).
  5190  //   - clientAccountId: Unique numerical account ID of the client to update.
  5191  //     (required).
  5192  func (r *AccountsClientsService) Update(accountId int64, clientAccountId int64, client *Client) *AccountsClientsUpdateCall {
  5193  	c := &AccountsClientsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5194  	c.accountId = accountId
  5195  	c.clientAccountId = clientAccountId
  5196  	c.client = client
  5197  	return c
  5198  }
  5199  
  5200  // Fields allows partial responses to be retrieved. See
  5201  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5202  // details.
  5203  func (c *AccountsClientsUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUpdateCall {
  5204  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5205  	return c
  5206  }
  5207  
  5208  // Context sets the context to be used in this call's Do method.
  5209  func (c *AccountsClientsUpdateCall) Context(ctx context.Context) *AccountsClientsUpdateCall {
  5210  	c.ctx_ = ctx
  5211  	return c
  5212  }
  5213  
  5214  // Header returns a http.Header that can be modified by the caller to add
  5215  // headers to the request.
  5216  func (c *AccountsClientsUpdateCall) Header() http.Header {
  5217  	if c.header_ == nil {
  5218  		c.header_ = make(http.Header)
  5219  	}
  5220  	return c.header_
  5221  }
  5222  
  5223  func (c *AccountsClientsUpdateCall) doRequest(alt string) (*http.Response, error) {
  5224  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5225  	var body io.Reader = nil
  5226  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.client)
  5227  	if err != nil {
  5228  		return nil, err
  5229  	}
  5230  	c.urlParams_.Set("alt", alt)
  5231  	c.urlParams_.Set("prettyPrint", "false")
  5232  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}")
  5233  	urls += "?" + c.urlParams_.Encode()
  5234  	req, err := http.NewRequest("PUT", urls, body)
  5235  	if err != nil {
  5236  		return nil, err
  5237  	}
  5238  	req.Header = reqHeaders
  5239  	googleapi.Expand(req.URL, map[string]string{
  5240  		"accountId":       strconv.FormatInt(c.accountId, 10),
  5241  		"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
  5242  	})
  5243  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5244  }
  5245  
  5246  // Do executes the "adexchangebuyer2.accounts.clients.update" call.
  5247  // Any non-2xx status code is an error. Response headers are in either
  5248  // *Client.ServerResponse.Header or (if a response was returned at all) in
  5249  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5250  // whether the returned error was because http.StatusNotModified was returned.
  5251  func (c *AccountsClientsUpdateCall) Do(opts ...googleapi.CallOption) (*Client, error) {
  5252  	gensupport.SetOptions(c.urlParams_, opts...)
  5253  	res, err := c.doRequest("json")
  5254  	if res != nil && res.StatusCode == http.StatusNotModified {
  5255  		if res.Body != nil {
  5256  			res.Body.Close()
  5257  		}
  5258  		return nil, gensupport.WrapError(&googleapi.Error{
  5259  			Code:   res.StatusCode,
  5260  			Header: res.Header,
  5261  		})
  5262  	}
  5263  	if err != nil {
  5264  		return nil, err
  5265  	}
  5266  	defer googleapi.CloseBody(res)
  5267  	if err := googleapi.CheckResponse(res); err != nil {
  5268  		return nil, gensupport.WrapError(err)
  5269  	}
  5270  	ret := &Client{
  5271  		ServerResponse: googleapi.ServerResponse{
  5272  			Header:         res.Header,
  5273  			HTTPStatusCode: res.StatusCode,
  5274  		},
  5275  	}
  5276  	target := &ret
  5277  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5278  		return nil, err
  5279  	}
  5280  	return ret, nil
  5281  }
  5282  
  5283  type AccountsClientsInvitationsCreateCall struct {
  5284  	s                    *Service
  5285  	accountId            int64
  5286  	clientAccountId      int64
  5287  	clientuserinvitation *ClientUserInvitation
  5288  	urlParams_           gensupport.URLParams
  5289  	ctx_                 context.Context
  5290  	header_              http.Header
  5291  }
  5292  
  5293  // Create: Creates and sends out an email invitation to access an Ad Exchange
  5294  // client buyer account.
  5295  //
  5296  //   - accountId: Numerical account ID of the client's sponsor buyer. (required).
  5297  //   - clientAccountId: Numerical account ID of the client buyer that the user
  5298  //     should be associated with. (required).
  5299  func (r *AccountsClientsInvitationsService) Create(accountId int64, clientAccountId int64, clientuserinvitation *ClientUserInvitation) *AccountsClientsInvitationsCreateCall {
  5300  	c := &AccountsClientsInvitationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5301  	c.accountId = accountId
  5302  	c.clientAccountId = clientAccountId
  5303  	c.clientuserinvitation = clientuserinvitation
  5304  	return c
  5305  }
  5306  
  5307  // Fields allows partial responses to be retrieved. See
  5308  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5309  // details.
  5310  func (c *AccountsClientsInvitationsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsCreateCall {
  5311  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5312  	return c
  5313  }
  5314  
  5315  // Context sets the context to be used in this call's Do method.
  5316  func (c *AccountsClientsInvitationsCreateCall) Context(ctx context.Context) *AccountsClientsInvitationsCreateCall {
  5317  	c.ctx_ = ctx
  5318  	return c
  5319  }
  5320  
  5321  // Header returns a http.Header that can be modified by the caller to add
  5322  // headers to the request.
  5323  func (c *AccountsClientsInvitationsCreateCall) Header() http.Header {
  5324  	if c.header_ == nil {
  5325  		c.header_ = make(http.Header)
  5326  	}
  5327  	return c.header_
  5328  }
  5329  
  5330  func (c *AccountsClientsInvitationsCreateCall) doRequest(alt string) (*http.Response, error) {
  5331  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5332  	var body io.Reader = nil
  5333  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientuserinvitation)
  5334  	if err != nil {
  5335  		return nil, err
  5336  	}
  5337  	c.urlParams_.Set("alt", alt)
  5338  	c.urlParams_.Set("prettyPrint", "false")
  5339  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations")
  5340  	urls += "?" + c.urlParams_.Encode()
  5341  	req, err := http.NewRequest("POST", urls, body)
  5342  	if err != nil {
  5343  		return nil, err
  5344  	}
  5345  	req.Header = reqHeaders
  5346  	googleapi.Expand(req.URL, map[string]string{
  5347  		"accountId":       strconv.FormatInt(c.accountId, 10),
  5348  		"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
  5349  	})
  5350  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5351  }
  5352  
  5353  // Do executes the "adexchangebuyer2.accounts.clients.invitations.create" call.
  5354  // Any non-2xx status code is an error. Response headers are in either
  5355  // *ClientUserInvitation.ServerResponse.Header or (if a response was returned
  5356  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5357  // check whether the returned error was because http.StatusNotModified was
  5358  // returned.
  5359  func (c *AccountsClientsInvitationsCreateCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error) {
  5360  	gensupport.SetOptions(c.urlParams_, opts...)
  5361  	res, err := c.doRequest("json")
  5362  	if res != nil && res.StatusCode == http.StatusNotModified {
  5363  		if res.Body != nil {
  5364  			res.Body.Close()
  5365  		}
  5366  		return nil, gensupport.WrapError(&googleapi.Error{
  5367  			Code:   res.StatusCode,
  5368  			Header: res.Header,
  5369  		})
  5370  	}
  5371  	if err != nil {
  5372  		return nil, err
  5373  	}
  5374  	defer googleapi.CloseBody(res)
  5375  	if err := googleapi.CheckResponse(res); err != nil {
  5376  		return nil, gensupport.WrapError(err)
  5377  	}
  5378  	ret := &ClientUserInvitation{
  5379  		ServerResponse: googleapi.ServerResponse{
  5380  			Header:         res.Header,
  5381  			HTTPStatusCode: res.StatusCode,
  5382  		},
  5383  	}
  5384  	target := &ret
  5385  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5386  		return nil, err
  5387  	}
  5388  	return ret, nil
  5389  }
  5390  
  5391  type AccountsClientsInvitationsGetCall struct {
  5392  	s               *Service
  5393  	accountId       int64
  5394  	clientAccountId int64
  5395  	invitationId    int64
  5396  	urlParams_      gensupport.URLParams
  5397  	ifNoneMatch_    string
  5398  	ctx_            context.Context
  5399  	header_         http.Header
  5400  }
  5401  
  5402  // Get: Retrieves an existing client user invitation.
  5403  //
  5404  //   - accountId: Numerical account ID of the client's sponsor buyer. (required).
  5405  //   - clientAccountId: Numerical account ID of the client buyer that the user
  5406  //     invitation to be retrieved is associated with. (required).
  5407  //   - invitationId: Numerical identifier of the user invitation to retrieve.
  5408  //     (required).
  5409  func (r *AccountsClientsInvitationsService) Get(accountId int64, clientAccountId int64, invitationId int64) *AccountsClientsInvitationsGetCall {
  5410  	c := &AccountsClientsInvitationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5411  	c.accountId = accountId
  5412  	c.clientAccountId = clientAccountId
  5413  	c.invitationId = invitationId
  5414  	return c
  5415  }
  5416  
  5417  // Fields allows partial responses to be retrieved. See
  5418  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5419  // details.
  5420  func (c *AccountsClientsInvitationsGetCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsGetCall {
  5421  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5422  	return c
  5423  }
  5424  
  5425  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5426  // object's ETag matches the given value. This is useful for getting updates
  5427  // only after the object has changed since the last request.
  5428  func (c *AccountsClientsInvitationsGetCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsGetCall {
  5429  	c.ifNoneMatch_ = entityTag
  5430  	return c
  5431  }
  5432  
  5433  // Context sets the context to be used in this call's Do method.
  5434  func (c *AccountsClientsInvitationsGetCall) Context(ctx context.Context) *AccountsClientsInvitationsGetCall {
  5435  	c.ctx_ = ctx
  5436  	return c
  5437  }
  5438  
  5439  // Header returns a http.Header that can be modified by the caller to add
  5440  // headers to the request.
  5441  func (c *AccountsClientsInvitationsGetCall) Header() http.Header {
  5442  	if c.header_ == nil {
  5443  		c.header_ = make(http.Header)
  5444  	}
  5445  	return c.header_
  5446  }
  5447  
  5448  func (c *AccountsClientsInvitationsGetCall) doRequest(alt string) (*http.Response, error) {
  5449  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5450  	if c.ifNoneMatch_ != "" {
  5451  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5452  	}
  5453  	var body io.Reader = nil
  5454  	c.urlParams_.Set("alt", alt)
  5455  	c.urlParams_.Set("prettyPrint", "false")
  5456  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}")
  5457  	urls += "?" + c.urlParams_.Encode()
  5458  	req, err := http.NewRequest("GET", urls, body)
  5459  	if err != nil {
  5460  		return nil, err
  5461  	}
  5462  	req.Header = reqHeaders
  5463  	googleapi.Expand(req.URL, map[string]string{
  5464  		"accountId":       strconv.FormatInt(c.accountId, 10),
  5465  		"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
  5466  		"invitationId":    strconv.FormatInt(c.invitationId, 10),
  5467  	})
  5468  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5469  }
  5470  
  5471  // Do executes the "adexchangebuyer2.accounts.clients.invitations.get" call.
  5472  // Any non-2xx status code is an error. Response headers are in either
  5473  // *ClientUserInvitation.ServerResponse.Header or (if a response was returned
  5474  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5475  // check whether the returned error was because http.StatusNotModified was
  5476  // returned.
  5477  func (c *AccountsClientsInvitationsGetCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error) {
  5478  	gensupport.SetOptions(c.urlParams_, opts...)
  5479  	res, err := c.doRequest("json")
  5480  	if res != nil && res.StatusCode == http.StatusNotModified {
  5481  		if res.Body != nil {
  5482  			res.Body.Close()
  5483  		}
  5484  		return nil, gensupport.WrapError(&googleapi.Error{
  5485  			Code:   res.StatusCode,
  5486  			Header: res.Header,
  5487  		})
  5488  	}
  5489  	if err != nil {
  5490  		return nil, err
  5491  	}
  5492  	defer googleapi.CloseBody(res)
  5493  	if err := googleapi.CheckResponse(res); err != nil {
  5494  		return nil, gensupport.WrapError(err)
  5495  	}
  5496  	ret := &ClientUserInvitation{
  5497  		ServerResponse: googleapi.ServerResponse{
  5498  			Header:         res.Header,
  5499  			HTTPStatusCode: res.StatusCode,
  5500  		},
  5501  	}
  5502  	target := &ret
  5503  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5504  		return nil, err
  5505  	}
  5506  	return ret, nil
  5507  }
  5508  
  5509  type AccountsClientsInvitationsListCall struct {
  5510  	s               *Service
  5511  	accountId       int64
  5512  	clientAccountId string
  5513  	urlParams_      gensupport.URLParams
  5514  	ifNoneMatch_    string
  5515  	ctx_            context.Context
  5516  	header_         http.Header
  5517  }
  5518  
  5519  // List: Lists all the client users invitations for a client with a given
  5520  // account ID.
  5521  //
  5522  //   - accountId: Numerical account ID of the client's sponsor buyer. (required).
  5523  //   - clientAccountId: Numerical account ID of the client buyer to list
  5524  //     invitations for. (required) You must either specify a string
  5525  //     representation of a numerical account identifier or the `-` character to
  5526  //     list all the invitations for all the clients of a given sponsor buyer.
  5527  func (r *AccountsClientsInvitationsService) List(accountId int64, clientAccountId string) *AccountsClientsInvitationsListCall {
  5528  	c := &AccountsClientsInvitationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5529  	c.accountId = accountId
  5530  	c.clientAccountId = clientAccountId
  5531  	return c
  5532  }
  5533  
  5534  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  5535  // may return fewer clients than requested. If unspecified, server will pick an
  5536  // appropriate default.
  5537  func (c *AccountsClientsInvitationsListCall) PageSize(pageSize int64) *AccountsClientsInvitationsListCall {
  5538  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5539  	return c
  5540  }
  5541  
  5542  // PageToken sets the optional parameter "pageToken": A token identifying a
  5543  // page of results the server should return. Typically, this is the value of
  5544  // ListClientUserInvitationsResponse.nextPageToken returned from the previous
  5545  // call to the clients.invitations.list method.
  5546  func (c *AccountsClientsInvitationsListCall) PageToken(pageToken string) *AccountsClientsInvitationsListCall {
  5547  	c.urlParams_.Set("pageToken", pageToken)
  5548  	return c
  5549  }
  5550  
  5551  // Fields allows partial responses to be retrieved. See
  5552  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5553  // details.
  5554  func (c *AccountsClientsInvitationsListCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsListCall {
  5555  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5556  	return c
  5557  }
  5558  
  5559  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5560  // object's ETag matches the given value. This is useful for getting updates
  5561  // only after the object has changed since the last request.
  5562  func (c *AccountsClientsInvitationsListCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsListCall {
  5563  	c.ifNoneMatch_ = entityTag
  5564  	return c
  5565  }
  5566  
  5567  // Context sets the context to be used in this call's Do method.
  5568  func (c *AccountsClientsInvitationsListCall) Context(ctx context.Context) *AccountsClientsInvitationsListCall {
  5569  	c.ctx_ = ctx
  5570  	return c
  5571  }
  5572  
  5573  // Header returns a http.Header that can be modified by the caller to add
  5574  // headers to the request.
  5575  func (c *AccountsClientsInvitationsListCall) Header() http.Header {
  5576  	if c.header_ == nil {
  5577  		c.header_ = make(http.Header)
  5578  	}
  5579  	return c.header_
  5580  }
  5581  
  5582  func (c *AccountsClientsInvitationsListCall) doRequest(alt string) (*http.Response, error) {
  5583  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5584  	if c.ifNoneMatch_ != "" {
  5585  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5586  	}
  5587  	var body io.Reader = nil
  5588  	c.urlParams_.Set("alt", alt)
  5589  	c.urlParams_.Set("prettyPrint", "false")
  5590  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations")
  5591  	urls += "?" + c.urlParams_.Encode()
  5592  	req, err := http.NewRequest("GET", urls, body)
  5593  	if err != nil {
  5594  		return nil, err
  5595  	}
  5596  	req.Header = reqHeaders
  5597  	googleapi.Expand(req.URL, map[string]string{
  5598  		"accountId":       strconv.FormatInt(c.accountId, 10),
  5599  		"clientAccountId": c.clientAccountId,
  5600  	})
  5601  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5602  }
  5603  
  5604  // Do executes the "adexchangebuyer2.accounts.clients.invitations.list" call.
  5605  // Any non-2xx status code is an error. Response headers are in either
  5606  // *ListClientUserInvitationsResponse.ServerResponse.Header or (if a response
  5607  // was returned at all) in error.(*googleapi.Error).Header. Use
  5608  // googleapi.IsNotModified to check whether the returned error was because
  5609  // http.StatusNotModified was returned.
  5610  func (c *AccountsClientsInvitationsListCall) Do(opts ...googleapi.CallOption) (*ListClientUserInvitationsResponse, error) {
  5611  	gensupport.SetOptions(c.urlParams_, opts...)
  5612  	res, err := c.doRequest("json")
  5613  	if res != nil && res.StatusCode == http.StatusNotModified {
  5614  		if res.Body != nil {
  5615  			res.Body.Close()
  5616  		}
  5617  		return nil, gensupport.WrapError(&googleapi.Error{
  5618  			Code:   res.StatusCode,
  5619  			Header: res.Header,
  5620  		})
  5621  	}
  5622  	if err != nil {
  5623  		return nil, err
  5624  	}
  5625  	defer googleapi.CloseBody(res)
  5626  	if err := googleapi.CheckResponse(res); err != nil {
  5627  		return nil, gensupport.WrapError(err)
  5628  	}
  5629  	ret := &ListClientUserInvitationsResponse{
  5630  		ServerResponse: googleapi.ServerResponse{
  5631  			Header:         res.Header,
  5632  			HTTPStatusCode: res.StatusCode,
  5633  		},
  5634  	}
  5635  	target := &ret
  5636  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5637  		return nil, err
  5638  	}
  5639  	return ret, nil
  5640  }
  5641  
  5642  // Pages invokes f for each page of results.
  5643  // A non-nil error returned from f will halt the iteration.
  5644  // The provided context supersedes any context provided to the Context method.
  5645  func (c *AccountsClientsInvitationsListCall) Pages(ctx context.Context, f func(*ListClientUserInvitationsResponse) error) error {
  5646  	c.ctx_ = ctx
  5647  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5648  	for {
  5649  		x, err := c.Do()
  5650  		if err != nil {
  5651  			return err
  5652  		}
  5653  		if err := f(x); err != nil {
  5654  			return err
  5655  		}
  5656  		if x.NextPageToken == "" {
  5657  			return nil
  5658  		}
  5659  		c.PageToken(x.NextPageToken)
  5660  	}
  5661  }
  5662  
  5663  type AccountsClientsUsersGetCall struct {
  5664  	s               *Service
  5665  	accountId       int64
  5666  	clientAccountId int64
  5667  	userId          int64
  5668  	urlParams_      gensupport.URLParams
  5669  	ifNoneMatch_    string
  5670  	ctx_            context.Context
  5671  	header_         http.Header
  5672  }
  5673  
  5674  // Get: Retrieves an existing client user.
  5675  //
  5676  //   - accountId: Numerical account ID of the client's sponsor buyer. (required).
  5677  //   - clientAccountId: Numerical account ID of the client buyer that the user to
  5678  //     be retrieved is associated with. (required).
  5679  //   - userId: Numerical identifier of the user to retrieve. (required).
  5680  func (r *AccountsClientsUsersService) Get(accountId int64, clientAccountId int64, userId int64) *AccountsClientsUsersGetCall {
  5681  	c := &AccountsClientsUsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5682  	c.accountId = accountId
  5683  	c.clientAccountId = clientAccountId
  5684  	c.userId = userId
  5685  	return c
  5686  }
  5687  
  5688  // Fields allows partial responses to be retrieved. See
  5689  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5690  // details.
  5691  func (c *AccountsClientsUsersGetCall) Fields(s ...googleapi.Field) *AccountsClientsUsersGetCall {
  5692  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5693  	return c
  5694  }
  5695  
  5696  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5697  // object's ETag matches the given value. This is useful for getting updates
  5698  // only after the object has changed since the last request.
  5699  func (c *AccountsClientsUsersGetCall) IfNoneMatch(entityTag string) *AccountsClientsUsersGetCall {
  5700  	c.ifNoneMatch_ = entityTag
  5701  	return c
  5702  }
  5703  
  5704  // Context sets the context to be used in this call's Do method.
  5705  func (c *AccountsClientsUsersGetCall) Context(ctx context.Context) *AccountsClientsUsersGetCall {
  5706  	c.ctx_ = ctx
  5707  	return c
  5708  }
  5709  
  5710  // Header returns a http.Header that can be modified by the caller to add
  5711  // headers to the request.
  5712  func (c *AccountsClientsUsersGetCall) Header() http.Header {
  5713  	if c.header_ == nil {
  5714  		c.header_ = make(http.Header)
  5715  	}
  5716  	return c.header_
  5717  }
  5718  
  5719  func (c *AccountsClientsUsersGetCall) doRequest(alt string) (*http.Response, error) {
  5720  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5721  	if c.ifNoneMatch_ != "" {
  5722  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5723  	}
  5724  	var body io.Reader = nil
  5725  	c.urlParams_.Set("alt", alt)
  5726  	c.urlParams_.Set("prettyPrint", "false")
  5727  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}")
  5728  	urls += "?" + c.urlParams_.Encode()
  5729  	req, err := http.NewRequest("GET", urls, body)
  5730  	if err != nil {
  5731  		return nil, err
  5732  	}
  5733  	req.Header = reqHeaders
  5734  	googleapi.Expand(req.URL, map[string]string{
  5735  		"accountId":       strconv.FormatInt(c.accountId, 10),
  5736  		"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
  5737  		"userId":          strconv.FormatInt(c.userId, 10),
  5738  	})
  5739  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5740  }
  5741  
  5742  // Do executes the "adexchangebuyer2.accounts.clients.users.get" call.
  5743  // Any non-2xx status code is an error. Response headers are in either
  5744  // *ClientUser.ServerResponse.Header or (if a response was returned at all) in
  5745  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5746  // whether the returned error was because http.StatusNotModified was returned.
  5747  func (c *AccountsClientsUsersGetCall) Do(opts ...googleapi.CallOption) (*ClientUser, error) {
  5748  	gensupport.SetOptions(c.urlParams_, opts...)
  5749  	res, err := c.doRequest("json")
  5750  	if res != nil && res.StatusCode == http.StatusNotModified {
  5751  		if res.Body != nil {
  5752  			res.Body.Close()
  5753  		}
  5754  		return nil, gensupport.WrapError(&googleapi.Error{
  5755  			Code:   res.StatusCode,
  5756  			Header: res.Header,
  5757  		})
  5758  	}
  5759  	if err != nil {
  5760  		return nil, err
  5761  	}
  5762  	defer googleapi.CloseBody(res)
  5763  	if err := googleapi.CheckResponse(res); err != nil {
  5764  		return nil, gensupport.WrapError(err)
  5765  	}
  5766  	ret := &ClientUser{
  5767  		ServerResponse: googleapi.ServerResponse{
  5768  			Header:         res.Header,
  5769  			HTTPStatusCode: res.StatusCode,
  5770  		},
  5771  	}
  5772  	target := &ret
  5773  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5774  		return nil, err
  5775  	}
  5776  	return ret, nil
  5777  }
  5778  
  5779  type AccountsClientsUsersListCall struct {
  5780  	s               *Service
  5781  	accountId       int64
  5782  	clientAccountId string
  5783  	urlParams_      gensupport.URLParams
  5784  	ifNoneMatch_    string
  5785  	ctx_            context.Context
  5786  	header_         http.Header
  5787  }
  5788  
  5789  // List: Lists all the known client users for a specified sponsor buyer account
  5790  // ID.
  5791  //
  5792  //   - accountId: Numerical account ID of the sponsor buyer of the client to list
  5793  //     users for. (required).
  5794  //   - clientAccountId: The account ID of the client buyer to list users for.
  5795  //     (required) You must specify either a string representation of a numerical
  5796  //     account identifier or the `-` character to list all the client users for
  5797  //     all the clients of a given sponsor buyer.
  5798  func (r *AccountsClientsUsersService) List(accountId int64, clientAccountId string) *AccountsClientsUsersListCall {
  5799  	c := &AccountsClientsUsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5800  	c.accountId = accountId
  5801  	c.clientAccountId = clientAccountId
  5802  	return c
  5803  }
  5804  
  5805  // PageSize sets the optional parameter "pageSize": Requested page size. The
  5806  // server may return fewer clients than requested. If unspecified, the server
  5807  // will pick an appropriate default.
  5808  func (c *AccountsClientsUsersListCall) PageSize(pageSize int64) *AccountsClientsUsersListCall {
  5809  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5810  	return c
  5811  }
  5812  
  5813  // PageToken sets the optional parameter "pageToken": A token identifying a
  5814  // page of results the server should return. Typically, this is the value of
  5815  // ListClientUsersResponse.nextPageToken returned from the previous call to the
  5816  // accounts.clients.users.list method.
  5817  func (c *AccountsClientsUsersListCall) PageToken(pageToken string) *AccountsClientsUsersListCall {
  5818  	c.urlParams_.Set("pageToken", pageToken)
  5819  	return c
  5820  }
  5821  
  5822  // Fields allows partial responses to be retrieved. See
  5823  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5824  // details.
  5825  func (c *AccountsClientsUsersListCall) Fields(s ...googleapi.Field) *AccountsClientsUsersListCall {
  5826  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5827  	return c
  5828  }
  5829  
  5830  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5831  // object's ETag matches the given value. This is useful for getting updates
  5832  // only after the object has changed since the last request.
  5833  func (c *AccountsClientsUsersListCall) IfNoneMatch(entityTag string) *AccountsClientsUsersListCall {
  5834  	c.ifNoneMatch_ = entityTag
  5835  	return c
  5836  }
  5837  
  5838  // Context sets the context to be used in this call's Do method.
  5839  func (c *AccountsClientsUsersListCall) Context(ctx context.Context) *AccountsClientsUsersListCall {
  5840  	c.ctx_ = ctx
  5841  	return c
  5842  }
  5843  
  5844  // Header returns a http.Header that can be modified by the caller to add
  5845  // headers to the request.
  5846  func (c *AccountsClientsUsersListCall) Header() http.Header {
  5847  	if c.header_ == nil {
  5848  		c.header_ = make(http.Header)
  5849  	}
  5850  	return c.header_
  5851  }
  5852  
  5853  func (c *AccountsClientsUsersListCall) doRequest(alt string) (*http.Response, error) {
  5854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5855  	if c.ifNoneMatch_ != "" {
  5856  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5857  	}
  5858  	var body io.Reader = nil
  5859  	c.urlParams_.Set("alt", alt)
  5860  	c.urlParams_.Set("prettyPrint", "false")
  5861  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users")
  5862  	urls += "?" + c.urlParams_.Encode()
  5863  	req, err := http.NewRequest("GET", urls, body)
  5864  	if err != nil {
  5865  		return nil, err
  5866  	}
  5867  	req.Header = reqHeaders
  5868  	googleapi.Expand(req.URL, map[string]string{
  5869  		"accountId":       strconv.FormatInt(c.accountId, 10),
  5870  		"clientAccountId": c.clientAccountId,
  5871  	})
  5872  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5873  }
  5874  
  5875  // Do executes the "adexchangebuyer2.accounts.clients.users.list" call.
  5876  // Any non-2xx status code is an error. Response headers are in either
  5877  // *ListClientUsersResponse.ServerResponse.Header or (if a response was
  5878  // returned at all) in error.(*googleapi.Error).Header. Use
  5879  // googleapi.IsNotModified to check whether the returned error was because
  5880  // http.StatusNotModified was returned.
  5881  func (c *AccountsClientsUsersListCall) Do(opts ...googleapi.CallOption) (*ListClientUsersResponse, error) {
  5882  	gensupport.SetOptions(c.urlParams_, opts...)
  5883  	res, err := c.doRequest("json")
  5884  	if res != nil && res.StatusCode == http.StatusNotModified {
  5885  		if res.Body != nil {
  5886  			res.Body.Close()
  5887  		}
  5888  		return nil, gensupport.WrapError(&googleapi.Error{
  5889  			Code:   res.StatusCode,
  5890  			Header: res.Header,
  5891  		})
  5892  	}
  5893  	if err != nil {
  5894  		return nil, err
  5895  	}
  5896  	defer googleapi.CloseBody(res)
  5897  	if err := googleapi.CheckResponse(res); err != nil {
  5898  		return nil, gensupport.WrapError(err)
  5899  	}
  5900  	ret := &ListClientUsersResponse{
  5901  		ServerResponse: googleapi.ServerResponse{
  5902  			Header:         res.Header,
  5903  			HTTPStatusCode: res.StatusCode,
  5904  		},
  5905  	}
  5906  	target := &ret
  5907  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5908  		return nil, err
  5909  	}
  5910  	return ret, nil
  5911  }
  5912  
  5913  // Pages invokes f for each page of results.
  5914  // A non-nil error returned from f will halt the iteration.
  5915  // The provided context supersedes any context provided to the Context method.
  5916  func (c *AccountsClientsUsersListCall) Pages(ctx context.Context, f func(*ListClientUsersResponse) error) error {
  5917  	c.ctx_ = ctx
  5918  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5919  	for {
  5920  		x, err := c.Do()
  5921  		if err != nil {
  5922  			return err
  5923  		}
  5924  		if err := f(x); err != nil {
  5925  			return err
  5926  		}
  5927  		if x.NextPageToken == "" {
  5928  			return nil
  5929  		}
  5930  		c.PageToken(x.NextPageToken)
  5931  	}
  5932  }
  5933  
  5934  type AccountsClientsUsersUpdateCall struct {
  5935  	s               *Service
  5936  	accountId       int64
  5937  	clientAccountId int64
  5938  	userId          int64
  5939  	clientuser      *ClientUser
  5940  	urlParams_      gensupport.URLParams
  5941  	ctx_            context.Context
  5942  	header_         http.Header
  5943  }
  5944  
  5945  // Update: Updates an existing client user. Only the user status can be changed
  5946  // on update.
  5947  //
  5948  //   - accountId: Numerical account ID of the client's sponsor buyer. (required).
  5949  //   - clientAccountId: Numerical account ID of the client buyer that the user to
  5950  //     be retrieved is associated with. (required).
  5951  //   - userId: Numerical identifier of the user to retrieve. (required).
  5952  func (r *AccountsClientsUsersService) Update(accountId int64, clientAccountId int64, userId int64, clientuser *ClientUser) *AccountsClientsUsersUpdateCall {
  5953  	c := &AccountsClientsUsersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5954  	c.accountId = accountId
  5955  	c.clientAccountId = clientAccountId
  5956  	c.userId = userId
  5957  	c.clientuser = clientuser
  5958  	return c
  5959  }
  5960  
  5961  // Fields allows partial responses to be retrieved. See
  5962  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5963  // details.
  5964  func (c *AccountsClientsUsersUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUsersUpdateCall {
  5965  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5966  	return c
  5967  }
  5968  
  5969  // Context sets the context to be used in this call's Do method.
  5970  func (c *AccountsClientsUsersUpdateCall) Context(ctx context.Context) *AccountsClientsUsersUpdateCall {
  5971  	c.ctx_ = ctx
  5972  	return c
  5973  }
  5974  
  5975  // Header returns a http.Header that can be modified by the caller to add
  5976  // headers to the request.
  5977  func (c *AccountsClientsUsersUpdateCall) Header() http.Header {
  5978  	if c.header_ == nil {
  5979  		c.header_ = make(http.Header)
  5980  	}
  5981  	return c.header_
  5982  }
  5983  
  5984  func (c *AccountsClientsUsersUpdateCall) doRequest(alt string) (*http.Response, error) {
  5985  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5986  	var body io.Reader = nil
  5987  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.clientuser)
  5988  	if err != nil {
  5989  		return nil, err
  5990  	}
  5991  	c.urlParams_.Set("alt", alt)
  5992  	c.urlParams_.Set("prettyPrint", "false")
  5993  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}")
  5994  	urls += "?" + c.urlParams_.Encode()
  5995  	req, err := http.NewRequest("PUT", urls, body)
  5996  	if err != nil {
  5997  		return nil, err
  5998  	}
  5999  	req.Header = reqHeaders
  6000  	googleapi.Expand(req.URL, map[string]string{
  6001  		"accountId":       strconv.FormatInt(c.accountId, 10),
  6002  		"clientAccountId": strconv.FormatInt(c.clientAccountId, 10),
  6003  		"userId":          strconv.FormatInt(c.userId, 10),
  6004  	})
  6005  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6006  }
  6007  
  6008  // Do executes the "adexchangebuyer2.accounts.clients.users.update" call.
  6009  // Any non-2xx status code is an error. Response headers are in either
  6010  // *ClientUser.ServerResponse.Header or (if a response was returned at all) in
  6011  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6012  // whether the returned error was because http.StatusNotModified was returned.
  6013  func (c *AccountsClientsUsersUpdateCall) Do(opts ...googleapi.CallOption) (*ClientUser, error) {
  6014  	gensupport.SetOptions(c.urlParams_, opts...)
  6015  	res, err := c.doRequest("json")
  6016  	if res != nil && res.StatusCode == http.StatusNotModified {
  6017  		if res.Body != nil {
  6018  			res.Body.Close()
  6019  		}
  6020  		return nil, gensupport.WrapError(&googleapi.Error{
  6021  			Code:   res.StatusCode,
  6022  			Header: res.Header,
  6023  		})
  6024  	}
  6025  	if err != nil {
  6026  		return nil, err
  6027  	}
  6028  	defer googleapi.CloseBody(res)
  6029  	if err := googleapi.CheckResponse(res); err != nil {
  6030  		return nil, gensupport.WrapError(err)
  6031  	}
  6032  	ret := &ClientUser{
  6033  		ServerResponse: googleapi.ServerResponse{
  6034  			Header:         res.Header,
  6035  			HTTPStatusCode: res.StatusCode,
  6036  		},
  6037  	}
  6038  	target := &ret
  6039  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6040  		return nil, err
  6041  	}
  6042  	return ret, nil
  6043  }
  6044  
  6045  type AccountsCreativesCreateCall struct {
  6046  	s          *Service
  6047  	accountId  string
  6048  	creative   *Creative
  6049  	urlParams_ gensupport.URLParams
  6050  	ctx_       context.Context
  6051  	header_    http.Header
  6052  }
  6053  
  6054  // Create: Creates a creative.
  6055  //
  6056  //   - accountId: The account that this creative belongs to. Can be used to
  6057  //     filter the response of the creatives.list method.
  6058  func (r *AccountsCreativesService) Create(accountId string, creative *Creative) *AccountsCreativesCreateCall {
  6059  	c := &AccountsCreativesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6060  	c.accountId = accountId
  6061  	c.creative = creative
  6062  	return c
  6063  }
  6064  
  6065  // DuplicateIdMode sets the optional parameter "duplicateIdMode": Indicates if
  6066  // multiple creatives can share an ID or not. Default is NO_DUPLICATES (one ID
  6067  // per creative).
  6068  //
  6069  // Possible values:
  6070  //
  6071  //	"NO_DUPLICATES" - Recommended. This means that an ID will be unique to a
  6072  //
  6073  // single creative. Multiple creatives will not share an ID.
  6074  //
  6075  //	"FORCE_ENABLE_DUPLICATE_IDS" - Not recommended. Using this option will
  6076  //
  6077  // allow multiple creatives to share the same ID. Get and Update requests will
  6078  // not be possible for any ID that has more than one creative associated. (List
  6079  // will still function.) This is only intended for backwards compatibility in
  6080  // cases where a single ID is already shared by multiple creatives from
  6081  // previous APIs.
  6082  func (c *AccountsCreativesCreateCall) DuplicateIdMode(duplicateIdMode string) *AccountsCreativesCreateCall {
  6083  	c.urlParams_.Set("duplicateIdMode", duplicateIdMode)
  6084  	return c
  6085  }
  6086  
  6087  // Fields allows partial responses to be retrieved. See
  6088  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6089  // details.
  6090  func (c *AccountsCreativesCreateCall) Fields(s ...googleapi.Field) *AccountsCreativesCreateCall {
  6091  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6092  	return c
  6093  }
  6094  
  6095  // Context sets the context to be used in this call's Do method.
  6096  func (c *AccountsCreativesCreateCall) Context(ctx context.Context) *AccountsCreativesCreateCall {
  6097  	c.ctx_ = ctx
  6098  	return c
  6099  }
  6100  
  6101  // Header returns a http.Header that can be modified by the caller to add
  6102  // headers to the request.
  6103  func (c *AccountsCreativesCreateCall) Header() http.Header {
  6104  	if c.header_ == nil {
  6105  		c.header_ = make(http.Header)
  6106  	}
  6107  	return c.header_
  6108  }
  6109  
  6110  func (c *AccountsCreativesCreateCall) doRequest(alt string) (*http.Response, error) {
  6111  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6112  	var body io.Reader = nil
  6113  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
  6114  	if err != nil {
  6115  		return nil, err
  6116  	}
  6117  	c.urlParams_.Set("alt", alt)
  6118  	c.urlParams_.Set("prettyPrint", "false")
  6119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives")
  6120  	urls += "?" + c.urlParams_.Encode()
  6121  	req, err := http.NewRequest("POST", urls, body)
  6122  	if err != nil {
  6123  		return nil, err
  6124  	}
  6125  	req.Header = reqHeaders
  6126  	googleapi.Expand(req.URL, map[string]string{
  6127  		"accountId": c.accountId,
  6128  	})
  6129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6130  }
  6131  
  6132  // Do executes the "adexchangebuyer2.accounts.creatives.create" call.
  6133  // Any non-2xx status code is an error. Response headers are in either
  6134  // *Creative.ServerResponse.Header or (if a response was returned at all) in
  6135  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6136  // whether the returned error was because http.StatusNotModified was returned.
  6137  func (c *AccountsCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
  6138  	gensupport.SetOptions(c.urlParams_, opts...)
  6139  	res, err := c.doRequest("json")
  6140  	if res != nil && res.StatusCode == http.StatusNotModified {
  6141  		if res.Body != nil {
  6142  			res.Body.Close()
  6143  		}
  6144  		return nil, gensupport.WrapError(&googleapi.Error{
  6145  			Code:   res.StatusCode,
  6146  			Header: res.Header,
  6147  		})
  6148  	}
  6149  	if err != nil {
  6150  		return nil, err
  6151  	}
  6152  	defer googleapi.CloseBody(res)
  6153  	if err := googleapi.CheckResponse(res); err != nil {
  6154  		return nil, gensupport.WrapError(err)
  6155  	}
  6156  	ret := &Creative{
  6157  		ServerResponse: googleapi.ServerResponse{
  6158  			Header:         res.Header,
  6159  			HTTPStatusCode: res.StatusCode,
  6160  		},
  6161  	}
  6162  	target := &ret
  6163  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6164  		return nil, err
  6165  	}
  6166  	return ret, nil
  6167  }
  6168  
  6169  type AccountsCreativesGetCall struct {
  6170  	s            *Service
  6171  	accountId    string
  6172  	creativeId   string
  6173  	urlParams_   gensupport.URLParams
  6174  	ifNoneMatch_ string
  6175  	ctx_         context.Context
  6176  	header_      http.Header
  6177  }
  6178  
  6179  // Get: Gets a creative.
  6180  //
  6181  // - accountId: The account the creative belongs to.
  6182  // - creativeId: The ID of the creative to retrieve.
  6183  func (r *AccountsCreativesService) Get(accountId string, creativeId string) *AccountsCreativesGetCall {
  6184  	c := &AccountsCreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6185  	c.accountId = accountId
  6186  	c.creativeId = creativeId
  6187  	return c
  6188  }
  6189  
  6190  // Fields allows partial responses to be retrieved. See
  6191  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6192  // details.
  6193  func (c *AccountsCreativesGetCall) Fields(s ...googleapi.Field) *AccountsCreativesGetCall {
  6194  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6195  	return c
  6196  }
  6197  
  6198  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6199  // object's ETag matches the given value. This is useful for getting updates
  6200  // only after the object has changed since the last request.
  6201  func (c *AccountsCreativesGetCall) IfNoneMatch(entityTag string) *AccountsCreativesGetCall {
  6202  	c.ifNoneMatch_ = entityTag
  6203  	return c
  6204  }
  6205  
  6206  // Context sets the context to be used in this call's Do method.
  6207  func (c *AccountsCreativesGetCall) Context(ctx context.Context) *AccountsCreativesGetCall {
  6208  	c.ctx_ = ctx
  6209  	return c
  6210  }
  6211  
  6212  // Header returns a http.Header that can be modified by the caller to add
  6213  // headers to the request.
  6214  func (c *AccountsCreativesGetCall) Header() http.Header {
  6215  	if c.header_ == nil {
  6216  		c.header_ = make(http.Header)
  6217  	}
  6218  	return c.header_
  6219  }
  6220  
  6221  func (c *AccountsCreativesGetCall) doRequest(alt string) (*http.Response, error) {
  6222  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6223  	if c.ifNoneMatch_ != "" {
  6224  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6225  	}
  6226  	var body io.Reader = nil
  6227  	c.urlParams_.Set("alt", alt)
  6228  	c.urlParams_.Set("prettyPrint", "false")
  6229  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}")
  6230  	urls += "?" + c.urlParams_.Encode()
  6231  	req, err := http.NewRequest("GET", urls, body)
  6232  	if err != nil {
  6233  		return nil, err
  6234  	}
  6235  	req.Header = reqHeaders
  6236  	googleapi.Expand(req.URL, map[string]string{
  6237  		"accountId":  c.accountId,
  6238  		"creativeId": c.creativeId,
  6239  	})
  6240  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6241  }
  6242  
  6243  // Do executes the "adexchangebuyer2.accounts.creatives.get" call.
  6244  // Any non-2xx status code is an error. Response headers are in either
  6245  // *Creative.ServerResponse.Header or (if a response was returned at all) in
  6246  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6247  // whether the returned error was because http.StatusNotModified was returned.
  6248  func (c *AccountsCreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
  6249  	gensupport.SetOptions(c.urlParams_, opts...)
  6250  	res, err := c.doRequest("json")
  6251  	if res != nil && res.StatusCode == http.StatusNotModified {
  6252  		if res.Body != nil {
  6253  			res.Body.Close()
  6254  		}
  6255  		return nil, gensupport.WrapError(&googleapi.Error{
  6256  			Code:   res.StatusCode,
  6257  			Header: res.Header,
  6258  		})
  6259  	}
  6260  	if err != nil {
  6261  		return nil, err
  6262  	}
  6263  	defer googleapi.CloseBody(res)
  6264  	if err := googleapi.CheckResponse(res); err != nil {
  6265  		return nil, gensupport.WrapError(err)
  6266  	}
  6267  	ret := &Creative{
  6268  		ServerResponse: googleapi.ServerResponse{
  6269  			Header:         res.Header,
  6270  			HTTPStatusCode: res.StatusCode,
  6271  		},
  6272  	}
  6273  	target := &ret
  6274  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6275  		return nil, err
  6276  	}
  6277  	return ret, nil
  6278  }
  6279  
  6280  type AccountsCreativesListCall struct {
  6281  	s            *Service
  6282  	accountId    string
  6283  	urlParams_   gensupport.URLParams
  6284  	ifNoneMatch_ string
  6285  	ctx_         context.Context
  6286  	header_      http.Header
  6287  }
  6288  
  6289  // List: Lists creatives.
  6290  //
  6291  //   - accountId: The account to list the creatives from. Specify "-" to list all
  6292  //     creatives the current user has access to.
  6293  func (r *AccountsCreativesService) List(accountId string) *AccountsCreativesListCall {
  6294  	c := &AccountsCreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6295  	c.accountId = accountId
  6296  	return c
  6297  }
  6298  
  6299  // PageSize sets the optional parameter "pageSize": Requested page size. The
  6300  // server may return fewer creatives than requested (due to timeout constraint)
  6301  // even if more are available through another call. If unspecified, server will
  6302  // pick an appropriate default. Acceptable values are 1 to 1000, inclusive.
  6303  func (c *AccountsCreativesListCall) PageSize(pageSize int64) *AccountsCreativesListCall {
  6304  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6305  	return c
  6306  }
  6307  
  6308  // PageToken sets the optional parameter "pageToken": A token identifying a
  6309  // page of results the server should return. Typically, this is the value of
  6310  // ListCreativesResponse.next_page_token returned from the previous call to
  6311  // 'ListCreatives' method.
  6312  func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativesListCall {
  6313  	c.urlParams_.Set("pageToken", pageToken)
  6314  	return c
  6315  }
  6316  
  6317  // Query sets the optional parameter "query": An optional query string to
  6318  // filter creatives. If no filter is specified, all active creatives will be
  6319  // returned. Supported queries are: - accountId=*account_id_string* -
  6320  // creativeId=*creative_id_string* - dealsStatus: {approved,
  6321  // conditionally_approved, disapproved, not_checked} - openAuctionStatus:
  6322  // {approved, conditionally_approved, disapproved, not_checked} - attribute: {a
  6323  // numeric attribute from the list of attributes} - disapprovalReason: {a
  6324  // reason from DisapprovalReason} Example: 'accountId=12345 AND
  6325  // (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR
  6326  // attribute:47'
  6327  func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall {
  6328  	c.urlParams_.Set("query", query)
  6329  	return c
  6330  }
  6331  
  6332  // Fields allows partial responses to be retrieved. See
  6333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6334  // details.
  6335  func (c *AccountsCreativesListCall) Fields(s ...googleapi.Field) *AccountsCreativesListCall {
  6336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6337  	return c
  6338  }
  6339  
  6340  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6341  // object's ETag matches the given value. This is useful for getting updates
  6342  // only after the object has changed since the last request.
  6343  func (c *AccountsCreativesListCall) IfNoneMatch(entityTag string) *AccountsCreativesListCall {
  6344  	c.ifNoneMatch_ = entityTag
  6345  	return c
  6346  }
  6347  
  6348  // Context sets the context to be used in this call's Do method.
  6349  func (c *AccountsCreativesListCall) Context(ctx context.Context) *AccountsCreativesListCall {
  6350  	c.ctx_ = ctx
  6351  	return c
  6352  }
  6353  
  6354  // Header returns a http.Header that can be modified by the caller to add
  6355  // headers to the request.
  6356  func (c *AccountsCreativesListCall) Header() http.Header {
  6357  	if c.header_ == nil {
  6358  		c.header_ = make(http.Header)
  6359  	}
  6360  	return c.header_
  6361  }
  6362  
  6363  func (c *AccountsCreativesListCall) doRequest(alt string) (*http.Response, error) {
  6364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6365  	if c.ifNoneMatch_ != "" {
  6366  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6367  	}
  6368  	var body io.Reader = nil
  6369  	c.urlParams_.Set("alt", alt)
  6370  	c.urlParams_.Set("prettyPrint", "false")
  6371  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives")
  6372  	urls += "?" + c.urlParams_.Encode()
  6373  	req, err := http.NewRequest("GET", urls, body)
  6374  	if err != nil {
  6375  		return nil, err
  6376  	}
  6377  	req.Header = reqHeaders
  6378  	googleapi.Expand(req.URL, map[string]string{
  6379  		"accountId": c.accountId,
  6380  	})
  6381  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6382  }
  6383  
  6384  // Do executes the "adexchangebuyer2.accounts.creatives.list" call.
  6385  // Any non-2xx status code is an error. Response headers are in either
  6386  // *ListCreativesResponse.ServerResponse.Header or (if a response was returned
  6387  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6388  // check whether the returned error was because http.StatusNotModified was
  6389  // returned.
  6390  func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativesResponse, error) {
  6391  	gensupport.SetOptions(c.urlParams_, opts...)
  6392  	res, err := c.doRequest("json")
  6393  	if res != nil && res.StatusCode == http.StatusNotModified {
  6394  		if res.Body != nil {
  6395  			res.Body.Close()
  6396  		}
  6397  		return nil, gensupport.WrapError(&googleapi.Error{
  6398  			Code:   res.StatusCode,
  6399  			Header: res.Header,
  6400  		})
  6401  	}
  6402  	if err != nil {
  6403  		return nil, err
  6404  	}
  6405  	defer googleapi.CloseBody(res)
  6406  	if err := googleapi.CheckResponse(res); err != nil {
  6407  		return nil, gensupport.WrapError(err)
  6408  	}
  6409  	ret := &ListCreativesResponse{
  6410  		ServerResponse: googleapi.ServerResponse{
  6411  			Header:         res.Header,
  6412  			HTTPStatusCode: res.StatusCode,
  6413  		},
  6414  	}
  6415  	target := &ret
  6416  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6417  		return nil, err
  6418  	}
  6419  	return ret, nil
  6420  }
  6421  
  6422  // Pages invokes f for each page of results.
  6423  // A non-nil error returned from f will halt the iteration.
  6424  // The provided context supersedes any context provided to the Context method.
  6425  func (c *AccountsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativesResponse) error) error {
  6426  	c.ctx_ = ctx
  6427  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6428  	for {
  6429  		x, err := c.Do()
  6430  		if err != nil {
  6431  			return err
  6432  		}
  6433  		if err := f(x); err != nil {
  6434  			return err
  6435  		}
  6436  		if x.NextPageToken == "" {
  6437  			return nil
  6438  		}
  6439  		c.PageToken(x.NextPageToken)
  6440  	}
  6441  }
  6442  
  6443  type AccountsCreativesStopWatchingCall struct {
  6444  	s                           *Service
  6445  	accountId                   string
  6446  	creativeId                  string
  6447  	stopwatchingcreativerequest *StopWatchingCreativeRequest
  6448  	urlParams_                  gensupport.URLParams
  6449  	ctx_                        context.Context
  6450  	header_                     http.Header
  6451  }
  6452  
  6453  // StopWatching: Stops watching a creative. Will stop push notifications being
  6454  // sent to the topics when the creative changes status.
  6455  //
  6456  //   - accountId: The account of the creative to stop notifications for.
  6457  //   - creativeId: The creative ID of the creative to stop notifications for.
  6458  //     Specify "-" to specify stopping account level notifications.
  6459  func (r *AccountsCreativesService) StopWatching(accountId string, creativeId string, stopwatchingcreativerequest *StopWatchingCreativeRequest) *AccountsCreativesStopWatchingCall {
  6460  	c := &AccountsCreativesStopWatchingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6461  	c.accountId = accountId
  6462  	c.creativeId = creativeId
  6463  	c.stopwatchingcreativerequest = stopwatchingcreativerequest
  6464  	return c
  6465  }
  6466  
  6467  // Fields allows partial responses to be retrieved. See
  6468  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6469  // details.
  6470  func (c *AccountsCreativesStopWatchingCall) Fields(s ...googleapi.Field) *AccountsCreativesStopWatchingCall {
  6471  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6472  	return c
  6473  }
  6474  
  6475  // Context sets the context to be used in this call's Do method.
  6476  func (c *AccountsCreativesStopWatchingCall) Context(ctx context.Context) *AccountsCreativesStopWatchingCall {
  6477  	c.ctx_ = ctx
  6478  	return c
  6479  }
  6480  
  6481  // Header returns a http.Header that can be modified by the caller to add
  6482  // headers to the request.
  6483  func (c *AccountsCreativesStopWatchingCall) Header() http.Header {
  6484  	if c.header_ == nil {
  6485  		c.header_ = make(http.Header)
  6486  	}
  6487  	return c.header_
  6488  }
  6489  
  6490  func (c *AccountsCreativesStopWatchingCall) doRequest(alt string) (*http.Response, error) {
  6491  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6492  	var body io.Reader = nil
  6493  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopwatchingcreativerequest)
  6494  	if err != nil {
  6495  		return nil, err
  6496  	}
  6497  	c.urlParams_.Set("alt", alt)
  6498  	c.urlParams_.Set("prettyPrint", "false")
  6499  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching")
  6500  	urls += "?" + c.urlParams_.Encode()
  6501  	req, err := http.NewRequest("POST", urls, body)
  6502  	if err != nil {
  6503  		return nil, err
  6504  	}
  6505  	req.Header = reqHeaders
  6506  	googleapi.Expand(req.URL, map[string]string{
  6507  		"accountId":  c.accountId,
  6508  		"creativeId": c.creativeId,
  6509  	})
  6510  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6511  }
  6512  
  6513  // Do executes the "adexchangebuyer2.accounts.creatives.stopWatching" call.
  6514  // Any non-2xx status code is an error. Response headers are in either
  6515  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6516  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6517  // whether the returned error was because http.StatusNotModified was returned.
  6518  func (c *AccountsCreativesStopWatchingCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6519  	gensupport.SetOptions(c.urlParams_, opts...)
  6520  	res, err := c.doRequest("json")
  6521  	if res != nil && res.StatusCode == http.StatusNotModified {
  6522  		if res.Body != nil {
  6523  			res.Body.Close()
  6524  		}
  6525  		return nil, gensupport.WrapError(&googleapi.Error{
  6526  			Code:   res.StatusCode,
  6527  			Header: res.Header,
  6528  		})
  6529  	}
  6530  	if err != nil {
  6531  		return nil, err
  6532  	}
  6533  	defer googleapi.CloseBody(res)
  6534  	if err := googleapi.CheckResponse(res); err != nil {
  6535  		return nil, gensupport.WrapError(err)
  6536  	}
  6537  	ret := &Empty{
  6538  		ServerResponse: googleapi.ServerResponse{
  6539  			Header:         res.Header,
  6540  			HTTPStatusCode: res.StatusCode,
  6541  		},
  6542  	}
  6543  	target := &ret
  6544  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6545  		return nil, err
  6546  	}
  6547  	return ret, nil
  6548  }
  6549  
  6550  type AccountsCreativesUpdateCall struct {
  6551  	s          *Service
  6552  	accountId  string
  6553  	creativeId string
  6554  	creative   *Creative
  6555  	urlParams_ gensupport.URLParams
  6556  	ctx_       context.Context
  6557  	header_    http.Header
  6558  }
  6559  
  6560  // Update: Updates a creative.
  6561  //
  6562  //   - accountId: The account that this creative belongs to. Can be used to
  6563  //     filter the response of the creatives.list method.
  6564  //   - creativeId: The buyer-defined creative ID of this creative. Can be used to
  6565  //     filter the response of the creatives.list method.
  6566  func (r *AccountsCreativesService) Update(accountId string, creativeId string, creative *Creative) *AccountsCreativesUpdateCall {
  6567  	c := &AccountsCreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6568  	c.accountId = accountId
  6569  	c.creativeId = creativeId
  6570  	c.creative = creative
  6571  	return c
  6572  }
  6573  
  6574  // Fields allows partial responses to be retrieved. See
  6575  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6576  // details.
  6577  func (c *AccountsCreativesUpdateCall) Fields(s ...googleapi.Field) *AccountsCreativesUpdateCall {
  6578  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6579  	return c
  6580  }
  6581  
  6582  // Context sets the context to be used in this call's Do method.
  6583  func (c *AccountsCreativesUpdateCall) Context(ctx context.Context) *AccountsCreativesUpdateCall {
  6584  	c.ctx_ = ctx
  6585  	return c
  6586  }
  6587  
  6588  // Header returns a http.Header that can be modified by the caller to add
  6589  // headers to the request.
  6590  func (c *AccountsCreativesUpdateCall) Header() http.Header {
  6591  	if c.header_ == nil {
  6592  		c.header_ = make(http.Header)
  6593  	}
  6594  	return c.header_
  6595  }
  6596  
  6597  func (c *AccountsCreativesUpdateCall) doRequest(alt string) (*http.Response, error) {
  6598  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6599  	var body io.Reader = nil
  6600  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
  6601  	if err != nil {
  6602  		return nil, err
  6603  	}
  6604  	c.urlParams_.Set("alt", alt)
  6605  	c.urlParams_.Set("prettyPrint", "false")
  6606  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}")
  6607  	urls += "?" + c.urlParams_.Encode()
  6608  	req, err := http.NewRequest("PUT", urls, body)
  6609  	if err != nil {
  6610  		return nil, err
  6611  	}
  6612  	req.Header = reqHeaders
  6613  	googleapi.Expand(req.URL, map[string]string{
  6614  		"accountId":  c.accountId,
  6615  		"creativeId": c.creativeId,
  6616  	})
  6617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6618  }
  6619  
  6620  // Do executes the "adexchangebuyer2.accounts.creatives.update" call.
  6621  // Any non-2xx status code is an error. Response headers are in either
  6622  // *Creative.ServerResponse.Header or (if a response was returned at all) in
  6623  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6624  // whether the returned error was because http.StatusNotModified was returned.
  6625  func (c *AccountsCreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
  6626  	gensupport.SetOptions(c.urlParams_, opts...)
  6627  	res, err := c.doRequest("json")
  6628  	if res != nil && res.StatusCode == http.StatusNotModified {
  6629  		if res.Body != nil {
  6630  			res.Body.Close()
  6631  		}
  6632  		return nil, gensupport.WrapError(&googleapi.Error{
  6633  			Code:   res.StatusCode,
  6634  			Header: res.Header,
  6635  		})
  6636  	}
  6637  	if err != nil {
  6638  		return nil, err
  6639  	}
  6640  	defer googleapi.CloseBody(res)
  6641  	if err := googleapi.CheckResponse(res); err != nil {
  6642  		return nil, gensupport.WrapError(err)
  6643  	}
  6644  	ret := &Creative{
  6645  		ServerResponse: googleapi.ServerResponse{
  6646  			Header:         res.Header,
  6647  			HTTPStatusCode: res.StatusCode,
  6648  		},
  6649  	}
  6650  	target := &ret
  6651  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6652  		return nil, err
  6653  	}
  6654  	return ret, nil
  6655  }
  6656  
  6657  type AccountsCreativesWatchCall struct {
  6658  	s                    *Service
  6659  	accountId            string
  6660  	creativeId           string
  6661  	watchcreativerequest *WatchCreativeRequest
  6662  	urlParams_           gensupport.URLParams
  6663  	ctx_                 context.Context
  6664  	header_              http.Header
  6665  }
  6666  
  6667  // Watch: Watches a creative. Will result in push notifications being sent to
  6668  // the topic when the creative changes status.
  6669  //
  6670  //   - accountId: The account of the creative to watch.
  6671  //   - creativeId: The creative ID to watch for status changes. Specify "-" to
  6672  //     watch all creatives under the above account. If both creative-level and
  6673  //     account-level notifications are sent, only a single notification will be
  6674  //     sent to the creative-level notification topic.
  6675  func (r *AccountsCreativesService) Watch(accountId string, creativeId string, watchcreativerequest *WatchCreativeRequest) *AccountsCreativesWatchCall {
  6676  	c := &AccountsCreativesWatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6677  	c.accountId = accountId
  6678  	c.creativeId = creativeId
  6679  	c.watchcreativerequest = watchcreativerequest
  6680  	return c
  6681  }
  6682  
  6683  // Fields allows partial responses to be retrieved. See
  6684  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6685  // details.
  6686  func (c *AccountsCreativesWatchCall) Fields(s ...googleapi.Field) *AccountsCreativesWatchCall {
  6687  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6688  	return c
  6689  }
  6690  
  6691  // Context sets the context to be used in this call's Do method.
  6692  func (c *AccountsCreativesWatchCall) Context(ctx context.Context) *AccountsCreativesWatchCall {
  6693  	c.ctx_ = ctx
  6694  	return c
  6695  }
  6696  
  6697  // Header returns a http.Header that can be modified by the caller to add
  6698  // headers to the request.
  6699  func (c *AccountsCreativesWatchCall) Header() http.Header {
  6700  	if c.header_ == nil {
  6701  		c.header_ = make(http.Header)
  6702  	}
  6703  	return c.header_
  6704  }
  6705  
  6706  func (c *AccountsCreativesWatchCall) doRequest(alt string) (*http.Response, error) {
  6707  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6708  	var body io.Reader = nil
  6709  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.watchcreativerequest)
  6710  	if err != nil {
  6711  		return nil, err
  6712  	}
  6713  	c.urlParams_.Set("alt", alt)
  6714  	c.urlParams_.Set("prettyPrint", "false")
  6715  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}:watch")
  6716  	urls += "?" + c.urlParams_.Encode()
  6717  	req, err := http.NewRequest("POST", urls, body)
  6718  	if err != nil {
  6719  		return nil, err
  6720  	}
  6721  	req.Header = reqHeaders
  6722  	googleapi.Expand(req.URL, map[string]string{
  6723  		"accountId":  c.accountId,
  6724  		"creativeId": c.creativeId,
  6725  	})
  6726  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6727  }
  6728  
  6729  // Do executes the "adexchangebuyer2.accounts.creatives.watch" call.
  6730  // Any non-2xx status code is an error. Response headers are in either
  6731  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6732  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6733  // whether the returned error was because http.StatusNotModified was returned.
  6734  func (c *AccountsCreativesWatchCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6735  	gensupport.SetOptions(c.urlParams_, opts...)
  6736  	res, err := c.doRequest("json")
  6737  	if res != nil && res.StatusCode == http.StatusNotModified {
  6738  		if res.Body != nil {
  6739  			res.Body.Close()
  6740  		}
  6741  		return nil, gensupport.WrapError(&googleapi.Error{
  6742  			Code:   res.StatusCode,
  6743  			Header: res.Header,
  6744  		})
  6745  	}
  6746  	if err != nil {
  6747  		return nil, err
  6748  	}
  6749  	defer googleapi.CloseBody(res)
  6750  	if err := googleapi.CheckResponse(res); err != nil {
  6751  		return nil, gensupport.WrapError(err)
  6752  	}
  6753  	ret := &Empty{
  6754  		ServerResponse: googleapi.ServerResponse{
  6755  			Header:         res.Header,
  6756  			HTTPStatusCode: res.StatusCode,
  6757  		},
  6758  	}
  6759  	target := &ret
  6760  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6761  		return nil, err
  6762  	}
  6763  	return ret, nil
  6764  }
  6765  
  6766  type AccountsCreativesDealAssociationsAddCall struct {
  6767  	s                         *Service
  6768  	accountId                 string
  6769  	creativeId                string
  6770  	adddealassociationrequest *AddDealAssociationRequest
  6771  	urlParams_                gensupport.URLParams
  6772  	ctx_                      context.Context
  6773  	header_                   http.Header
  6774  }
  6775  
  6776  // Add: Associate an existing deal with a creative.
  6777  //
  6778  // - accountId: The account the creative belongs to.
  6779  // - creativeId: The ID of the creative associated with the deal.
  6780  func (r *AccountsCreativesDealAssociationsService) Add(accountId string, creativeId string, adddealassociationrequest *AddDealAssociationRequest) *AccountsCreativesDealAssociationsAddCall {
  6781  	c := &AccountsCreativesDealAssociationsAddCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6782  	c.accountId = accountId
  6783  	c.creativeId = creativeId
  6784  	c.adddealassociationrequest = adddealassociationrequest
  6785  	return c
  6786  }
  6787  
  6788  // Fields allows partial responses to be retrieved. See
  6789  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6790  // details.
  6791  func (c *AccountsCreativesDealAssociationsAddCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsAddCall {
  6792  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6793  	return c
  6794  }
  6795  
  6796  // Context sets the context to be used in this call's Do method.
  6797  func (c *AccountsCreativesDealAssociationsAddCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsAddCall {
  6798  	c.ctx_ = ctx
  6799  	return c
  6800  }
  6801  
  6802  // Header returns a http.Header that can be modified by the caller to add
  6803  // headers to the request.
  6804  func (c *AccountsCreativesDealAssociationsAddCall) Header() http.Header {
  6805  	if c.header_ == nil {
  6806  		c.header_ = make(http.Header)
  6807  	}
  6808  	return c.header_
  6809  }
  6810  
  6811  func (c *AccountsCreativesDealAssociationsAddCall) doRequest(alt string) (*http.Response, error) {
  6812  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6813  	var body io.Reader = nil
  6814  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.adddealassociationrequest)
  6815  	if err != nil {
  6816  		return nil, err
  6817  	}
  6818  	c.urlParams_.Set("alt", alt)
  6819  	c.urlParams_.Set("prettyPrint", "false")
  6820  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add")
  6821  	urls += "?" + c.urlParams_.Encode()
  6822  	req, err := http.NewRequest("POST", urls, body)
  6823  	if err != nil {
  6824  		return nil, err
  6825  	}
  6826  	req.Header = reqHeaders
  6827  	googleapi.Expand(req.URL, map[string]string{
  6828  		"accountId":  c.accountId,
  6829  		"creativeId": c.creativeId,
  6830  	})
  6831  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6832  }
  6833  
  6834  // Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.add" call.
  6835  // Any non-2xx status code is an error. Response headers are in either
  6836  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6837  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6838  // whether the returned error was because http.StatusNotModified was returned.
  6839  func (c *AccountsCreativesDealAssociationsAddCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6840  	gensupport.SetOptions(c.urlParams_, opts...)
  6841  	res, err := c.doRequest("json")
  6842  	if res != nil && res.StatusCode == http.StatusNotModified {
  6843  		if res.Body != nil {
  6844  			res.Body.Close()
  6845  		}
  6846  		return nil, gensupport.WrapError(&googleapi.Error{
  6847  			Code:   res.StatusCode,
  6848  			Header: res.Header,
  6849  		})
  6850  	}
  6851  	if err != nil {
  6852  		return nil, err
  6853  	}
  6854  	defer googleapi.CloseBody(res)
  6855  	if err := googleapi.CheckResponse(res); err != nil {
  6856  		return nil, gensupport.WrapError(err)
  6857  	}
  6858  	ret := &Empty{
  6859  		ServerResponse: googleapi.ServerResponse{
  6860  			Header:         res.Header,
  6861  			HTTPStatusCode: res.StatusCode,
  6862  		},
  6863  	}
  6864  	target := &ret
  6865  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6866  		return nil, err
  6867  	}
  6868  	return ret, nil
  6869  }
  6870  
  6871  type AccountsCreativesDealAssociationsListCall struct {
  6872  	s            *Service
  6873  	accountId    string
  6874  	creativeId   string
  6875  	urlParams_   gensupport.URLParams
  6876  	ifNoneMatch_ string
  6877  	ctx_         context.Context
  6878  	header_      http.Header
  6879  }
  6880  
  6881  // List: List all creative-deal associations.
  6882  //
  6883  //   - accountId: The account to list the associations from. Specify "-" to list
  6884  //     all creatives the current user has access to.
  6885  //   - creativeId: The creative ID to list the associations from. Specify "-" to
  6886  //     list all creatives under the above account.
  6887  func (r *AccountsCreativesDealAssociationsService) List(accountId string, creativeId string) *AccountsCreativesDealAssociationsListCall {
  6888  	c := &AccountsCreativesDealAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6889  	c.accountId = accountId
  6890  	c.creativeId = creativeId
  6891  	return c
  6892  }
  6893  
  6894  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  6895  // may return fewer associations than requested. If unspecified, server will
  6896  // pick an appropriate default.
  6897  func (c *AccountsCreativesDealAssociationsListCall) PageSize(pageSize int64) *AccountsCreativesDealAssociationsListCall {
  6898  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6899  	return c
  6900  }
  6901  
  6902  // PageToken sets the optional parameter "pageToken": A token identifying a
  6903  // page of results the server should return. Typically, this is the value of
  6904  // ListDealAssociationsResponse.next_page_token returned from the previous call
  6905  // to 'ListDealAssociations' method.
  6906  func (c *AccountsCreativesDealAssociationsListCall) PageToken(pageToken string) *AccountsCreativesDealAssociationsListCall {
  6907  	c.urlParams_.Set("pageToken", pageToken)
  6908  	return c
  6909  }
  6910  
  6911  // Query sets the optional parameter "query": An optional query string to
  6912  // filter deal associations. If no filter is specified, all associations will
  6913  // be returned. Supported queries are: - accountId=*account_id_string* -
  6914  // creativeId=*creative_id_string* - dealsId=*deals_id_string* -
  6915  // dealsStatus:{approved, conditionally_approved, disapproved, not_checked} -
  6916  // openAuctionStatus:{approved, conditionally_approved, disapproved,
  6917  // not_checked} Example: 'dealsId=12345 AND dealsStatus:disapproved'
  6918  func (c *AccountsCreativesDealAssociationsListCall) Query(query string) *AccountsCreativesDealAssociationsListCall {
  6919  	c.urlParams_.Set("query", query)
  6920  	return c
  6921  }
  6922  
  6923  // Fields allows partial responses to be retrieved. See
  6924  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6925  // details.
  6926  func (c *AccountsCreativesDealAssociationsListCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsListCall {
  6927  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6928  	return c
  6929  }
  6930  
  6931  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6932  // object's ETag matches the given value. This is useful for getting updates
  6933  // only after the object has changed since the last request.
  6934  func (c *AccountsCreativesDealAssociationsListCall) IfNoneMatch(entityTag string) *AccountsCreativesDealAssociationsListCall {
  6935  	c.ifNoneMatch_ = entityTag
  6936  	return c
  6937  }
  6938  
  6939  // Context sets the context to be used in this call's Do method.
  6940  func (c *AccountsCreativesDealAssociationsListCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsListCall {
  6941  	c.ctx_ = ctx
  6942  	return c
  6943  }
  6944  
  6945  // Header returns a http.Header that can be modified by the caller to add
  6946  // headers to the request.
  6947  func (c *AccountsCreativesDealAssociationsListCall) Header() http.Header {
  6948  	if c.header_ == nil {
  6949  		c.header_ = make(http.Header)
  6950  	}
  6951  	return c.header_
  6952  }
  6953  
  6954  func (c *AccountsCreativesDealAssociationsListCall) doRequest(alt string) (*http.Response, error) {
  6955  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6956  	if c.ifNoneMatch_ != "" {
  6957  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6958  	}
  6959  	var body io.Reader = nil
  6960  	c.urlParams_.Set("alt", alt)
  6961  	c.urlParams_.Set("prettyPrint", "false")
  6962  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations")
  6963  	urls += "?" + c.urlParams_.Encode()
  6964  	req, err := http.NewRequest("GET", urls, body)
  6965  	if err != nil {
  6966  		return nil, err
  6967  	}
  6968  	req.Header = reqHeaders
  6969  	googleapi.Expand(req.URL, map[string]string{
  6970  		"accountId":  c.accountId,
  6971  		"creativeId": c.creativeId,
  6972  	})
  6973  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6974  }
  6975  
  6976  // Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.list" call.
  6977  // Any non-2xx status code is an error. Response headers are in either
  6978  // *ListDealAssociationsResponse.ServerResponse.Header or (if a response was
  6979  // returned at all) in error.(*googleapi.Error).Header. Use
  6980  // googleapi.IsNotModified to check whether the returned error was because
  6981  // http.StatusNotModified was returned.
  6982  func (c *AccountsCreativesDealAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListDealAssociationsResponse, error) {
  6983  	gensupport.SetOptions(c.urlParams_, opts...)
  6984  	res, err := c.doRequest("json")
  6985  	if res != nil && res.StatusCode == http.StatusNotModified {
  6986  		if res.Body != nil {
  6987  			res.Body.Close()
  6988  		}
  6989  		return nil, gensupport.WrapError(&googleapi.Error{
  6990  			Code:   res.StatusCode,
  6991  			Header: res.Header,
  6992  		})
  6993  	}
  6994  	if err != nil {
  6995  		return nil, err
  6996  	}
  6997  	defer googleapi.CloseBody(res)
  6998  	if err := googleapi.CheckResponse(res); err != nil {
  6999  		return nil, gensupport.WrapError(err)
  7000  	}
  7001  	ret := &ListDealAssociationsResponse{
  7002  		ServerResponse: googleapi.ServerResponse{
  7003  			Header:         res.Header,
  7004  			HTTPStatusCode: res.StatusCode,
  7005  		},
  7006  	}
  7007  	target := &ret
  7008  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7009  		return nil, err
  7010  	}
  7011  	return ret, nil
  7012  }
  7013  
  7014  // Pages invokes f for each page of results.
  7015  // A non-nil error returned from f will halt the iteration.
  7016  // The provided context supersedes any context provided to the Context method.
  7017  func (c *AccountsCreativesDealAssociationsListCall) Pages(ctx context.Context, f func(*ListDealAssociationsResponse) error) error {
  7018  	c.ctx_ = ctx
  7019  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7020  	for {
  7021  		x, err := c.Do()
  7022  		if err != nil {
  7023  			return err
  7024  		}
  7025  		if err := f(x); err != nil {
  7026  			return err
  7027  		}
  7028  		if x.NextPageToken == "" {
  7029  			return nil
  7030  		}
  7031  		c.PageToken(x.NextPageToken)
  7032  	}
  7033  }
  7034  
  7035  type AccountsCreativesDealAssociationsRemoveCall struct {
  7036  	s                            *Service
  7037  	accountId                    string
  7038  	creativeId                   string
  7039  	removedealassociationrequest *RemoveDealAssociationRequest
  7040  	urlParams_                   gensupport.URLParams
  7041  	ctx_                         context.Context
  7042  	header_                      http.Header
  7043  }
  7044  
  7045  // Remove: Remove the association between a deal and a creative.
  7046  //
  7047  // - accountId: The account the creative belongs to.
  7048  // - creativeId: The ID of the creative associated with the deal.
  7049  func (r *AccountsCreativesDealAssociationsService) Remove(accountId string, creativeId string, removedealassociationrequest *RemoveDealAssociationRequest) *AccountsCreativesDealAssociationsRemoveCall {
  7050  	c := &AccountsCreativesDealAssociationsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7051  	c.accountId = accountId
  7052  	c.creativeId = creativeId
  7053  	c.removedealassociationrequest = removedealassociationrequest
  7054  	return c
  7055  }
  7056  
  7057  // Fields allows partial responses to be retrieved. See
  7058  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7059  // details.
  7060  func (c *AccountsCreativesDealAssociationsRemoveCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsRemoveCall {
  7061  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7062  	return c
  7063  }
  7064  
  7065  // Context sets the context to be used in this call's Do method.
  7066  func (c *AccountsCreativesDealAssociationsRemoveCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsRemoveCall {
  7067  	c.ctx_ = ctx
  7068  	return c
  7069  }
  7070  
  7071  // Header returns a http.Header that can be modified by the caller to add
  7072  // headers to the request.
  7073  func (c *AccountsCreativesDealAssociationsRemoveCall) Header() http.Header {
  7074  	if c.header_ == nil {
  7075  		c.header_ = make(http.Header)
  7076  	}
  7077  	return c.header_
  7078  }
  7079  
  7080  func (c *AccountsCreativesDealAssociationsRemoveCall) doRequest(alt string) (*http.Response, error) {
  7081  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7082  	var body io.Reader = nil
  7083  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.removedealassociationrequest)
  7084  	if err != nil {
  7085  		return nil, err
  7086  	}
  7087  	c.urlParams_.Set("alt", alt)
  7088  	c.urlParams_.Set("prettyPrint", "false")
  7089  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove")
  7090  	urls += "?" + c.urlParams_.Encode()
  7091  	req, err := http.NewRequest("POST", urls, body)
  7092  	if err != nil {
  7093  		return nil, err
  7094  	}
  7095  	req.Header = reqHeaders
  7096  	googleapi.Expand(req.URL, map[string]string{
  7097  		"accountId":  c.accountId,
  7098  		"creativeId": c.creativeId,
  7099  	})
  7100  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7101  }
  7102  
  7103  // Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.remove" call.
  7104  // Any non-2xx status code is an error. Response headers are in either
  7105  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  7106  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7107  // whether the returned error was because http.StatusNotModified was returned.
  7108  func (c *AccountsCreativesDealAssociationsRemoveCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7109  	gensupport.SetOptions(c.urlParams_, opts...)
  7110  	res, err := c.doRequest("json")
  7111  	if res != nil && res.StatusCode == http.StatusNotModified {
  7112  		if res.Body != nil {
  7113  			res.Body.Close()
  7114  		}
  7115  		return nil, gensupport.WrapError(&googleapi.Error{
  7116  			Code:   res.StatusCode,
  7117  			Header: res.Header,
  7118  		})
  7119  	}
  7120  	if err != nil {
  7121  		return nil, err
  7122  	}
  7123  	defer googleapi.CloseBody(res)
  7124  	if err := googleapi.CheckResponse(res); err != nil {
  7125  		return nil, gensupport.WrapError(err)
  7126  	}
  7127  	ret := &Empty{
  7128  		ServerResponse: googleapi.ServerResponse{
  7129  			Header:         res.Header,
  7130  			HTTPStatusCode: res.StatusCode,
  7131  		},
  7132  	}
  7133  	target := &ret
  7134  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7135  		return nil, err
  7136  	}
  7137  	return ret, nil
  7138  }
  7139  
  7140  type AccountsFinalizedProposalsListCall struct {
  7141  	s            *Service
  7142  	accountId    string
  7143  	urlParams_   gensupport.URLParams
  7144  	ifNoneMatch_ string
  7145  	ctx_         context.Context
  7146  	header_      http.Header
  7147  }
  7148  
  7149  // List: List finalized proposals, regardless if a proposal is being
  7150  // renegotiated. A filter expression (PQL query) may be specified to filter the
  7151  // results. The notes will not be returned.
  7152  //
  7153  // - accountId: Account ID of the buyer.
  7154  func (r *AccountsFinalizedProposalsService) List(accountId string) *AccountsFinalizedProposalsListCall {
  7155  	c := &AccountsFinalizedProposalsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7156  	c.accountId = accountId
  7157  	return c
  7158  }
  7159  
  7160  // Filter sets the optional parameter "filter": An optional PQL filter query
  7161  // used to query for proposals. Nested repeated fields, such as
  7162  // proposal.deals.targetingCriterion, cannot be filtered.
  7163  func (c *AccountsFinalizedProposalsListCall) Filter(filter string) *AccountsFinalizedProposalsListCall {
  7164  	c.urlParams_.Set("filter", filter)
  7165  	return c
  7166  }
  7167  
  7168  // FilterSyntax sets the optional parameter "filterSyntax": Syntax the filter
  7169  // is written in. Current implementation defaults to PQL but in the future it
  7170  // will be LIST_FILTER.
  7171  //
  7172  // Possible values:
  7173  //
  7174  //	"FILTER_SYNTAX_UNSPECIFIED" - A placeholder for an undefined filter
  7175  //
  7176  // syntax.
  7177  //
  7178  //	"PQL" - PQL query syntax. Visit
  7179  //
  7180  // https://developers.google.com/ad-manager/api/pqlreference for PQL
  7181  // documentation and examples.
  7182  //
  7183  //	"LIST_FILTER" - API list filtering syntax. Read about syntax and usage at
  7184  //
  7185  // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
  7186  func (c *AccountsFinalizedProposalsListCall) FilterSyntax(filterSyntax string) *AccountsFinalizedProposalsListCall {
  7187  	c.urlParams_.Set("filterSyntax", filterSyntax)
  7188  	return c
  7189  }
  7190  
  7191  // PageSize sets the optional parameter "pageSize": Requested page size. The
  7192  // server may return fewer results than requested. If unspecified, the server
  7193  // will pick an appropriate default.
  7194  func (c *AccountsFinalizedProposalsListCall) PageSize(pageSize int64) *AccountsFinalizedProposalsListCall {
  7195  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7196  	return c
  7197  }
  7198  
  7199  // PageToken sets the optional parameter "pageToken": The page token as
  7200  // returned from ListProposalsResponse.
  7201  func (c *AccountsFinalizedProposalsListCall) PageToken(pageToken string) *AccountsFinalizedProposalsListCall {
  7202  	c.urlParams_.Set("pageToken", pageToken)
  7203  	return c
  7204  }
  7205  
  7206  // Fields allows partial responses to be retrieved. See
  7207  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7208  // details.
  7209  func (c *AccountsFinalizedProposalsListCall) Fields(s ...googleapi.Field) *AccountsFinalizedProposalsListCall {
  7210  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7211  	return c
  7212  }
  7213  
  7214  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7215  // object's ETag matches the given value. This is useful for getting updates
  7216  // only after the object has changed since the last request.
  7217  func (c *AccountsFinalizedProposalsListCall) IfNoneMatch(entityTag string) *AccountsFinalizedProposalsListCall {
  7218  	c.ifNoneMatch_ = entityTag
  7219  	return c
  7220  }
  7221  
  7222  // Context sets the context to be used in this call's Do method.
  7223  func (c *AccountsFinalizedProposalsListCall) Context(ctx context.Context) *AccountsFinalizedProposalsListCall {
  7224  	c.ctx_ = ctx
  7225  	return c
  7226  }
  7227  
  7228  // Header returns a http.Header that can be modified by the caller to add
  7229  // headers to the request.
  7230  func (c *AccountsFinalizedProposalsListCall) Header() http.Header {
  7231  	if c.header_ == nil {
  7232  		c.header_ = make(http.Header)
  7233  	}
  7234  	return c.header_
  7235  }
  7236  
  7237  func (c *AccountsFinalizedProposalsListCall) doRequest(alt string) (*http.Response, error) {
  7238  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7239  	if c.ifNoneMatch_ != "" {
  7240  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7241  	}
  7242  	var body io.Reader = nil
  7243  	c.urlParams_.Set("alt", alt)
  7244  	c.urlParams_.Set("prettyPrint", "false")
  7245  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/finalizedProposals")
  7246  	urls += "?" + c.urlParams_.Encode()
  7247  	req, err := http.NewRequest("GET", urls, body)
  7248  	if err != nil {
  7249  		return nil, err
  7250  	}
  7251  	req.Header = reqHeaders
  7252  	googleapi.Expand(req.URL, map[string]string{
  7253  		"accountId": c.accountId,
  7254  	})
  7255  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7256  }
  7257  
  7258  // Do executes the "adexchangebuyer2.accounts.finalizedProposals.list" call.
  7259  // Any non-2xx status code is an error. Response headers are in either
  7260  // *ListProposalsResponse.ServerResponse.Header or (if a response was returned
  7261  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7262  // check whether the returned error was because http.StatusNotModified was
  7263  // returned.
  7264  func (c *AccountsFinalizedProposalsListCall) Do(opts ...googleapi.CallOption) (*ListProposalsResponse, error) {
  7265  	gensupport.SetOptions(c.urlParams_, opts...)
  7266  	res, err := c.doRequest("json")
  7267  	if res != nil && res.StatusCode == http.StatusNotModified {
  7268  		if res.Body != nil {
  7269  			res.Body.Close()
  7270  		}
  7271  		return nil, gensupport.WrapError(&googleapi.Error{
  7272  			Code:   res.StatusCode,
  7273  			Header: res.Header,
  7274  		})
  7275  	}
  7276  	if err != nil {
  7277  		return nil, err
  7278  	}
  7279  	defer googleapi.CloseBody(res)
  7280  	if err := googleapi.CheckResponse(res); err != nil {
  7281  		return nil, gensupport.WrapError(err)
  7282  	}
  7283  	ret := &ListProposalsResponse{
  7284  		ServerResponse: googleapi.ServerResponse{
  7285  			Header:         res.Header,
  7286  			HTTPStatusCode: res.StatusCode,
  7287  		},
  7288  	}
  7289  	target := &ret
  7290  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7291  		return nil, err
  7292  	}
  7293  	return ret, nil
  7294  }
  7295  
  7296  // Pages invokes f for each page of results.
  7297  // A non-nil error returned from f will halt the iteration.
  7298  // The provided context supersedes any context provided to the Context method.
  7299  func (c *AccountsFinalizedProposalsListCall) Pages(ctx context.Context, f func(*ListProposalsResponse) error) error {
  7300  	c.ctx_ = ctx
  7301  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7302  	for {
  7303  		x, err := c.Do()
  7304  		if err != nil {
  7305  			return err
  7306  		}
  7307  		if err := f(x); err != nil {
  7308  			return err
  7309  		}
  7310  		if x.NextPageToken == "" {
  7311  			return nil
  7312  		}
  7313  		c.PageToken(x.NextPageToken)
  7314  	}
  7315  }
  7316  
  7317  type AccountsFinalizedProposalsPauseCall struct {
  7318  	s                         *Service
  7319  	accountId                 string
  7320  	proposalId                string
  7321  	pauseproposaldealsrequest *PauseProposalDealsRequest
  7322  	urlParams_                gensupport.URLParams
  7323  	ctx_                      context.Context
  7324  	header_                   http.Header
  7325  }
  7326  
  7327  // Pause: Update given deals to pause serving. This method will set the
  7328  // `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
  7329  // listed deals in the request. Currently, this method only applies to PG and
  7330  // PD deals. For PA deals, call accounts.proposals.pause endpoint. It is a
  7331  // no-op to pause already-paused deals. It is an error to call
  7332  // PauseProposalDeals for deals which are not part of the proposal of
  7333  // proposal_id or which are not finalized or renegotiating.
  7334  //
  7335  // - accountId: Account ID of the buyer.
  7336  // - proposalId: The proposal_id of the proposal containing the deals.
  7337  func (r *AccountsFinalizedProposalsService) Pause(accountId string, proposalId string, pauseproposaldealsrequest *PauseProposalDealsRequest) *AccountsFinalizedProposalsPauseCall {
  7338  	c := &AccountsFinalizedProposalsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7339  	c.accountId = accountId
  7340  	c.proposalId = proposalId
  7341  	c.pauseproposaldealsrequest = pauseproposaldealsrequest
  7342  	return c
  7343  }
  7344  
  7345  // Fields allows partial responses to be retrieved. See
  7346  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7347  // details.
  7348  func (c *AccountsFinalizedProposalsPauseCall) Fields(s ...googleapi.Field) *AccountsFinalizedProposalsPauseCall {
  7349  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7350  	return c
  7351  }
  7352  
  7353  // Context sets the context to be used in this call's Do method.
  7354  func (c *AccountsFinalizedProposalsPauseCall) Context(ctx context.Context) *AccountsFinalizedProposalsPauseCall {
  7355  	c.ctx_ = ctx
  7356  	return c
  7357  }
  7358  
  7359  // Header returns a http.Header that can be modified by the caller to add
  7360  // headers to the request.
  7361  func (c *AccountsFinalizedProposalsPauseCall) Header() http.Header {
  7362  	if c.header_ == nil {
  7363  		c.header_ = make(http.Header)
  7364  	}
  7365  	return c.header_
  7366  }
  7367  
  7368  func (c *AccountsFinalizedProposalsPauseCall) doRequest(alt string) (*http.Response, error) {
  7369  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7370  	var body io.Reader = nil
  7371  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.pauseproposaldealsrequest)
  7372  	if err != nil {
  7373  		return nil, err
  7374  	}
  7375  	c.urlParams_.Set("alt", alt)
  7376  	c.urlParams_.Set("prettyPrint", "false")
  7377  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause")
  7378  	urls += "?" + c.urlParams_.Encode()
  7379  	req, err := http.NewRequest("POST", urls, body)
  7380  	if err != nil {
  7381  		return nil, err
  7382  	}
  7383  	req.Header = reqHeaders
  7384  	googleapi.Expand(req.URL, map[string]string{
  7385  		"accountId":  c.accountId,
  7386  		"proposalId": c.proposalId,
  7387  	})
  7388  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7389  }
  7390  
  7391  // Do executes the "adexchangebuyer2.accounts.finalizedProposals.pause" call.
  7392  // Any non-2xx status code is an error. Response headers are in either
  7393  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  7394  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7395  // whether the returned error was because http.StatusNotModified was returned.
  7396  func (c *AccountsFinalizedProposalsPauseCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  7397  	gensupport.SetOptions(c.urlParams_, opts...)
  7398  	res, err := c.doRequest("json")
  7399  	if res != nil && res.StatusCode == http.StatusNotModified {
  7400  		if res.Body != nil {
  7401  			res.Body.Close()
  7402  		}
  7403  		return nil, gensupport.WrapError(&googleapi.Error{
  7404  			Code:   res.StatusCode,
  7405  			Header: res.Header,
  7406  		})
  7407  	}
  7408  	if err != nil {
  7409  		return nil, err
  7410  	}
  7411  	defer googleapi.CloseBody(res)
  7412  	if err := googleapi.CheckResponse(res); err != nil {
  7413  		return nil, gensupport.WrapError(err)
  7414  	}
  7415  	ret := &Proposal{
  7416  		ServerResponse: googleapi.ServerResponse{
  7417  			Header:         res.Header,
  7418  			HTTPStatusCode: res.StatusCode,
  7419  		},
  7420  	}
  7421  	target := &ret
  7422  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7423  		return nil, err
  7424  	}
  7425  	return ret, nil
  7426  }
  7427  
  7428  type AccountsFinalizedProposalsResumeCall struct {
  7429  	s                          *Service
  7430  	accountId                  string
  7431  	proposalId                 string
  7432  	resumeproposaldealsrequest *ResumeProposalDealsRequest
  7433  	urlParams_                 gensupport.URLParams
  7434  	ctx_                       context.Context
  7435  	header_                    http.Header
  7436  }
  7437  
  7438  // Resume: Update given deals to resume serving. This method will set the
  7439  // `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
  7440  // listed deals in the request. Currently, this method only applies to PG and
  7441  // PD deals. For PA deals, call accounts.proposals.resume endpoint. It is a
  7442  // no-op to resume running deals or deals paused by the other party. It is an
  7443  // error to call ResumeProposalDeals for deals which are not part of the
  7444  // proposal of proposal_id or which are not finalized or renegotiating.
  7445  //
  7446  // - accountId: Account ID of the buyer.
  7447  // - proposalId: The proposal_id of the proposal containing the deals.
  7448  func (r *AccountsFinalizedProposalsService) Resume(accountId string, proposalId string, resumeproposaldealsrequest *ResumeProposalDealsRequest) *AccountsFinalizedProposalsResumeCall {
  7449  	c := &AccountsFinalizedProposalsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7450  	c.accountId = accountId
  7451  	c.proposalId = proposalId
  7452  	c.resumeproposaldealsrequest = resumeproposaldealsrequest
  7453  	return c
  7454  }
  7455  
  7456  // Fields allows partial responses to be retrieved. See
  7457  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7458  // details.
  7459  func (c *AccountsFinalizedProposalsResumeCall) Fields(s ...googleapi.Field) *AccountsFinalizedProposalsResumeCall {
  7460  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7461  	return c
  7462  }
  7463  
  7464  // Context sets the context to be used in this call's Do method.
  7465  func (c *AccountsFinalizedProposalsResumeCall) Context(ctx context.Context) *AccountsFinalizedProposalsResumeCall {
  7466  	c.ctx_ = ctx
  7467  	return c
  7468  }
  7469  
  7470  // Header returns a http.Header that can be modified by the caller to add
  7471  // headers to the request.
  7472  func (c *AccountsFinalizedProposalsResumeCall) Header() http.Header {
  7473  	if c.header_ == nil {
  7474  		c.header_ = make(http.Header)
  7475  	}
  7476  	return c.header_
  7477  }
  7478  
  7479  func (c *AccountsFinalizedProposalsResumeCall) doRequest(alt string) (*http.Response, error) {
  7480  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7481  	var body io.Reader = nil
  7482  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.resumeproposaldealsrequest)
  7483  	if err != nil {
  7484  		return nil, err
  7485  	}
  7486  	c.urlParams_.Set("alt", alt)
  7487  	c.urlParams_.Set("prettyPrint", "false")
  7488  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:resume")
  7489  	urls += "?" + c.urlParams_.Encode()
  7490  	req, err := http.NewRequest("POST", urls, body)
  7491  	if err != nil {
  7492  		return nil, err
  7493  	}
  7494  	req.Header = reqHeaders
  7495  	googleapi.Expand(req.URL, map[string]string{
  7496  		"accountId":  c.accountId,
  7497  		"proposalId": c.proposalId,
  7498  	})
  7499  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7500  }
  7501  
  7502  // Do executes the "adexchangebuyer2.accounts.finalizedProposals.resume" call.
  7503  // Any non-2xx status code is an error. Response headers are in either
  7504  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  7505  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7506  // whether the returned error was because http.StatusNotModified was returned.
  7507  func (c *AccountsFinalizedProposalsResumeCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  7508  	gensupport.SetOptions(c.urlParams_, opts...)
  7509  	res, err := c.doRequest("json")
  7510  	if res != nil && res.StatusCode == http.StatusNotModified {
  7511  		if res.Body != nil {
  7512  			res.Body.Close()
  7513  		}
  7514  		return nil, gensupport.WrapError(&googleapi.Error{
  7515  			Code:   res.StatusCode,
  7516  			Header: res.Header,
  7517  		})
  7518  	}
  7519  	if err != nil {
  7520  		return nil, err
  7521  	}
  7522  	defer googleapi.CloseBody(res)
  7523  	if err := googleapi.CheckResponse(res); err != nil {
  7524  		return nil, gensupport.WrapError(err)
  7525  	}
  7526  	ret := &Proposal{
  7527  		ServerResponse: googleapi.ServerResponse{
  7528  			Header:         res.Header,
  7529  			HTTPStatusCode: res.StatusCode,
  7530  		},
  7531  	}
  7532  	target := &ret
  7533  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7534  		return nil, err
  7535  	}
  7536  	return ret, nil
  7537  }
  7538  
  7539  type AccountsProductsGetCall struct {
  7540  	s            *Service
  7541  	accountId    string
  7542  	productId    string
  7543  	urlParams_   gensupport.URLParams
  7544  	ifNoneMatch_ string
  7545  	ctx_         context.Context
  7546  	header_      http.Header
  7547  }
  7548  
  7549  // Get: Gets the requested product by ID.
  7550  //
  7551  // - accountId: Account ID of the buyer.
  7552  // - productId: The ID for the product to get the head revision for.
  7553  func (r *AccountsProductsService) Get(accountId string, productId string) *AccountsProductsGetCall {
  7554  	c := &AccountsProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7555  	c.accountId = accountId
  7556  	c.productId = productId
  7557  	return c
  7558  }
  7559  
  7560  // Fields allows partial responses to be retrieved. See
  7561  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7562  // details.
  7563  func (c *AccountsProductsGetCall) Fields(s ...googleapi.Field) *AccountsProductsGetCall {
  7564  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7565  	return c
  7566  }
  7567  
  7568  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7569  // object's ETag matches the given value. This is useful for getting updates
  7570  // only after the object has changed since the last request.
  7571  func (c *AccountsProductsGetCall) IfNoneMatch(entityTag string) *AccountsProductsGetCall {
  7572  	c.ifNoneMatch_ = entityTag
  7573  	return c
  7574  }
  7575  
  7576  // Context sets the context to be used in this call's Do method.
  7577  func (c *AccountsProductsGetCall) Context(ctx context.Context) *AccountsProductsGetCall {
  7578  	c.ctx_ = ctx
  7579  	return c
  7580  }
  7581  
  7582  // Header returns a http.Header that can be modified by the caller to add
  7583  // headers to the request.
  7584  func (c *AccountsProductsGetCall) Header() http.Header {
  7585  	if c.header_ == nil {
  7586  		c.header_ = make(http.Header)
  7587  	}
  7588  	return c.header_
  7589  }
  7590  
  7591  func (c *AccountsProductsGetCall) doRequest(alt string) (*http.Response, error) {
  7592  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7593  	if c.ifNoneMatch_ != "" {
  7594  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7595  	}
  7596  	var body io.Reader = nil
  7597  	c.urlParams_.Set("alt", alt)
  7598  	c.urlParams_.Set("prettyPrint", "false")
  7599  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/products/{productId}")
  7600  	urls += "?" + c.urlParams_.Encode()
  7601  	req, err := http.NewRequest("GET", urls, body)
  7602  	if err != nil {
  7603  		return nil, err
  7604  	}
  7605  	req.Header = reqHeaders
  7606  	googleapi.Expand(req.URL, map[string]string{
  7607  		"accountId": c.accountId,
  7608  		"productId": c.productId,
  7609  	})
  7610  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7611  }
  7612  
  7613  // Do executes the "adexchangebuyer2.accounts.products.get" call.
  7614  // Any non-2xx status code is an error. Response headers are in either
  7615  // *Product.ServerResponse.Header or (if a response was returned at all) in
  7616  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7617  // whether the returned error was because http.StatusNotModified was returned.
  7618  func (c *AccountsProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) {
  7619  	gensupport.SetOptions(c.urlParams_, opts...)
  7620  	res, err := c.doRequest("json")
  7621  	if res != nil && res.StatusCode == http.StatusNotModified {
  7622  		if res.Body != nil {
  7623  			res.Body.Close()
  7624  		}
  7625  		return nil, gensupport.WrapError(&googleapi.Error{
  7626  			Code:   res.StatusCode,
  7627  			Header: res.Header,
  7628  		})
  7629  	}
  7630  	if err != nil {
  7631  		return nil, err
  7632  	}
  7633  	defer googleapi.CloseBody(res)
  7634  	if err := googleapi.CheckResponse(res); err != nil {
  7635  		return nil, gensupport.WrapError(err)
  7636  	}
  7637  	ret := &Product{
  7638  		ServerResponse: googleapi.ServerResponse{
  7639  			Header:         res.Header,
  7640  			HTTPStatusCode: res.StatusCode,
  7641  		},
  7642  	}
  7643  	target := &ret
  7644  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7645  		return nil, err
  7646  	}
  7647  	return ret, nil
  7648  }
  7649  
  7650  type AccountsProductsListCall struct {
  7651  	s            *Service
  7652  	accountId    string
  7653  	urlParams_   gensupport.URLParams
  7654  	ifNoneMatch_ string
  7655  	ctx_         context.Context
  7656  	header_      http.Header
  7657  }
  7658  
  7659  // List: List all products visible to the buyer (optionally filtered by the
  7660  // specified PQL query).
  7661  //
  7662  // - accountId: Account ID of the buyer.
  7663  func (r *AccountsProductsService) List(accountId string) *AccountsProductsListCall {
  7664  	c := &AccountsProductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7665  	c.accountId = accountId
  7666  	return c
  7667  }
  7668  
  7669  // Filter sets the optional parameter "filter": An optional PQL query used to
  7670  // query for products. See
  7671  // https://developers.google.com/ad-manager/docs/pqlreference for documentation
  7672  // about PQL and examples. Nested repeated fields, such as
  7673  // product.targetingCriterion.inclusions, cannot be filtered.
  7674  func (c *AccountsProductsListCall) Filter(filter string) *AccountsProductsListCall {
  7675  	c.urlParams_.Set("filter", filter)
  7676  	return c
  7677  }
  7678  
  7679  // PageSize sets the optional parameter "pageSize": Requested page size. The
  7680  // server may return fewer results than requested. If unspecified, the server
  7681  // will pick an appropriate default.
  7682  func (c *AccountsProductsListCall) PageSize(pageSize int64) *AccountsProductsListCall {
  7683  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7684  	return c
  7685  }
  7686  
  7687  // PageToken sets the optional parameter "pageToken": The page token as
  7688  // returned from ListProductsResponse.
  7689  func (c *AccountsProductsListCall) PageToken(pageToken string) *AccountsProductsListCall {
  7690  	c.urlParams_.Set("pageToken", pageToken)
  7691  	return c
  7692  }
  7693  
  7694  // Fields allows partial responses to be retrieved. See
  7695  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7696  // details.
  7697  func (c *AccountsProductsListCall) Fields(s ...googleapi.Field) *AccountsProductsListCall {
  7698  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7699  	return c
  7700  }
  7701  
  7702  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7703  // object's ETag matches the given value. This is useful for getting updates
  7704  // only after the object has changed since the last request.
  7705  func (c *AccountsProductsListCall) IfNoneMatch(entityTag string) *AccountsProductsListCall {
  7706  	c.ifNoneMatch_ = entityTag
  7707  	return c
  7708  }
  7709  
  7710  // Context sets the context to be used in this call's Do method.
  7711  func (c *AccountsProductsListCall) Context(ctx context.Context) *AccountsProductsListCall {
  7712  	c.ctx_ = ctx
  7713  	return c
  7714  }
  7715  
  7716  // Header returns a http.Header that can be modified by the caller to add
  7717  // headers to the request.
  7718  func (c *AccountsProductsListCall) Header() http.Header {
  7719  	if c.header_ == nil {
  7720  		c.header_ = make(http.Header)
  7721  	}
  7722  	return c.header_
  7723  }
  7724  
  7725  func (c *AccountsProductsListCall) doRequest(alt string) (*http.Response, error) {
  7726  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7727  	if c.ifNoneMatch_ != "" {
  7728  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7729  	}
  7730  	var body io.Reader = nil
  7731  	c.urlParams_.Set("alt", alt)
  7732  	c.urlParams_.Set("prettyPrint", "false")
  7733  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/products")
  7734  	urls += "?" + c.urlParams_.Encode()
  7735  	req, err := http.NewRequest("GET", urls, body)
  7736  	if err != nil {
  7737  		return nil, err
  7738  	}
  7739  	req.Header = reqHeaders
  7740  	googleapi.Expand(req.URL, map[string]string{
  7741  		"accountId": c.accountId,
  7742  	})
  7743  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7744  }
  7745  
  7746  // Do executes the "adexchangebuyer2.accounts.products.list" call.
  7747  // Any non-2xx status code is an error. Response headers are in either
  7748  // *ListProductsResponse.ServerResponse.Header or (if a response was returned
  7749  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7750  // check whether the returned error was because http.StatusNotModified was
  7751  // returned.
  7752  func (c *AccountsProductsListCall) Do(opts ...googleapi.CallOption) (*ListProductsResponse, error) {
  7753  	gensupport.SetOptions(c.urlParams_, opts...)
  7754  	res, err := c.doRequest("json")
  7755  	if res != nil && res.StatusCode == http.StatusNotModified {
  7756  		if res.Body != nil {
  7757  			res.Body.Close()
  7758  		}
  7759  		return nil, gensupport.WrapError(&googleapi.Error{
  7760  			Code:   res.StatusCode,
  7761  			Header: res.Header,
  7762  		})
  7763  	}
  7764  	if err != nil {
  7765  		return nil, err
  7766  	}
  7767  	defer googleapi.CloseBody(res)
  7768  	if err := googleapi.CheckResponse(res); err != nil {
  7769  		return nil, gensupport.WrapError(err)
  7770  	}
  7771  	ret := &ListProductsResponse{
  7772  		ServerResponse: googleapi.ServerResponse{
  7773  			Header:         res.Header,
  7774  			HTTPStatusCode: res.StatusCode,
  7775  		},
  7776  	}
  7777  	target := &ret
  7778  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7779  		return nil, err
  7780  	}
  7781  	return ret, nil
  7782  }
  7783  
  7784  // Pages invokes f for each page of results.
  7785  // A non-nil error returned from f will halt the iteration.
  7786  // The provided context supersedes any context provided to the Context method.
  7787  func (c *AccountsProductsListCall) Pages(ctx context.Context, f func(*ListProductsResponse) error) error {
  7788  	c.ctx_ = ctx
  7789  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7790  	for {
  7791  		x, err := c.Do()
  7792  		if err != nil {
  7793  			return err
  7794  		}
  7795  		if err := f(x); err != nil {
  7796  			return err
  7797  		}
  7798  		if x.NextPageToken == "" {
  7799  			return nil
  7800  		}
  7801  		c.PageToken(x.NextPageToken)
  7802  	}
  7803  }
  7804  
  7805  type AccountsProposalsAcceptCall struct {
  7806  	s                     *Service
  7807  	accountId             string
  7808  	proposalId            string
  7809  	acceptproposalrequest *AcceptProposalRequest
  7810  	urlParams_            gensupport.URLParams
  7811  	ctx_                  context.Context
  7812  	header_               http.Header
  7813  }
  7814  
  7815  // Accept: Mark the proposal as accepted at the given revision number. If the
  7816  // number does not match the server's revision number an `ABORTED` error
  7817  // message will be returned. This call updates the proposal_state from
  7818  // `PROPOSED` to `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.
  7819  // Upon calling this endpoint, the buyer implicitly agrees to the terms and
  7820  // conditions optionally set within the proposal by the publisher.
  7821  //
  7822  // - accountId: Account ID of the buyer.
  7823  // - proposalId: The ID of the proposal to accept.
  7824  func (r *AccountsProposalsService) Accept(accountId string, proposalId string, acceptproposalrequest *AcceptProposalRequest) *AccountsProposalsAcceptCall {
  7825  	c := &AccountsProposalsAcceptCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7826  	c.accountId = accountId
  7827  	c.proposalId = proposalId
  7828  	c.acceptproposalrequest = acceptproposalrequest
  7829  	return c
  7830  }
  7831  
  7832  // Fields allows partial responses to be retrieved. See
  7833  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7834  // details.
  7835  func (c *AccountsProposalsAcceptCall) Fields(s ...googleapi.Field) *AccountsProposalsAcceptCall {
  7836  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7837  	return c
  7838  }
  7839  
  7840  // Context sets the context to be used in this call's Do method.
  7841  func (c *AccountsProposalsAcceptCall) Context(ctx context.Context) *AccountsProposalsAcceptCall {
  7842  	c.ctx_ = ctx
  7843  	return c
  7844  }
  7845  
  7846  // Header returns a http.Header that can be modified by the caller to add
  7847  // headers to the request.
  7848  func (c *AccountsProposalsAcceptCall) Header() http.Header {
  7849  	if c.header_ == nil {
  7850  		c.header_ = make(http.Header)
  7851  	}
  7852  	return c.header_
  7853  }
  7854  
  7855  func (c *AccountsProposalsAcceptCall) doRequest(alt string) (*http.Response, error) {
  7856  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7857  	var body io.Reader = nil
  7858  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.acceptproposalrequest)
  7859  	if err != nil {
  7860  		return nil, err
  7861  	}
  7862  	c.urlParams_.Set("alt", alt)
  7863  	c.urlParams_.Set("prettyPrint", "false")
  7864  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}:accept")
  7865  	urls += "?" + c.urlParams_.Encode()
  7866  	req, err := http.NewRequest("POST", urls, body)
  7867  	if err != nil {
  7868  		return nil, err
  7869  	}
  7870  	req.Header = reqHeaders
  7871  	googleapi.Expand(req.URL, map[string]string{
  7872  		"accountId":  c.accountId,
  7873  		"proposalId": c.proposalId,
  7874  	})
  7875  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7876  }
  7877  
  7878  // Do executes the "adexchangebuyer2.accounts.proposals.accept" call.
  7879  // Any non-2xx status code is an error. Response headers are in either
  7880  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  7881  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7882  // whether the returned error was because http.StatusNotModified was returned.
  7883  func (c *AccountsProposalsAcceptCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  7884  	gensupport.SetOptions(c.urlParams_, opts...)
  7885  	res, err := c.doRequest("json")
  7886  	if res != nil && res.StatusCode == http.StatusNotModified {
  7887  		if res.Body != nil {
  7888  			res.Body.Close()
  7889  		}
  7890  		return nil, gensupport.WrapError(&googleapi.Error{
  7891  			Code:   res.StatusCode,
  7892  			Header: res.Header,
  7893  		})
  7894  	}
  7895  	if err != nil {
  7896  		return nil, err
  7897  	}
  7898  	defer googleapi.CloseBody(res)
  7899  	if err := googleapi.CheckResponse(res); err != nil {
  7900  		return nil, gensupport.WrapError(err)
  7901  	}
  7902  	ret := &Proposal{
  7903  		ServerResponse: googleapi.ServerResponse{
  7904  			Header:         res.Header,
  7905  			HTTPStatusCode: res.StatusCode,
  7906  		},
  7907  	}
  7908  	target := &ret
  7909  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7910  		return nil, err
  7911  	}
  7912  	return ret, nil
  7913  }
  7914  
  7915  type AccountsProposalsAddNoteCall struct {
  7916  	s              *Service
  7917  	accountId      string
  7918  	proposalId     string
  7919  	addnoterequest *AddNoteRequest
  7920  	urlParams_     gensupport.URLParams
  7921  	ctx_           context.Context
  7922  	header_        http.Header
  7923  }
  7924  
  7925  // AddNote: Create a new note and attach it to the proposal. The note is
  7926  // assigned a unique ID by the server. The proposal revision number will not
  7927  // increase when associated with a new note.
  7928  //
  7929  // - accountId: Account ID of the buyer.
  7930  // - proposalId: The ID of the proposal to attach the note to.
  7931  func (r *AccountsProposalsService) AddNote(accountId string, proposalId string, addnoterequest *AddNoteRequest) *AccountsProposalsAddNoteCall {
  7932  	c := &AccountsProposalsAddNoteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7933  	c.accountId = accountId
  7934  	c.proposalId = proposalId
  7935  	c.addnoterequest = addnoterequest
  7936  	return c
  7937  }
  7938  
  7939  // Fields allows partial responses to be retrieved. See
  7940  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7941  // details.
  7942  func (c *AccountsProposalsAddNoteCall) Fields(s ...googleapi.Field) *AccountsProposalsAddNoteCall {
  7943  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7944  	return c
  7945  }
  7946  
  7947  // Context sets the context to be used in this call's Do method.
  7948  func (c *AccountsProposalsAddNoteCall) Context(ctx context.Context) *AccountsProposalsAddNoteCall {
  7949  	c.ctx_ = ctx
  7950  	return c
  7951  }
  7952  
  7953  // Header returns a http.Header that can be modified by the caller to add
  7954  // headers to the request.
  7955  func (c *AccountsProposalsAddNoteCall) Header() http.Header {
  7956  	if c.header_ == nil {
  7957  		c.header_ = make(http.Header)
  7958  	}
  7959  	return c.header_
  7960  }
  7961  
  7962  func (c *AccountsProposalsAddNoteCall) doRequest(alt string) (*http.Response, error) {
  7963  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7964  	var body io.Reader = nil
  7965  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addnoterequest)
  7966  	if err != nil {
  7967  		return nil, err
  7968  	}
  7969  	c.urlParams_.Set("alt", alt)
  7970  	c.urlParams_.Set("prettyPrint", "false")
  7971  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote")
  7972  	urls += "?" + c.urlParams_.Encode()
  7973  	req, err := http.NewRequest("POST", urls, body)
  7974  	if err != nil {
  7975  		return nil, err
  7976  	}
  7977  	req.Header = reqHeaders
  7978  	googleapi.Expand(req.URL, map[string]string{
  7979  		"accountId":  c.accountId,
  7980  		"proposalId": c.proposalId,
  7981  	})
  7982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7983  }
  7984  
  7985  // Do executes the "adexchangebuyer2.accounts.proposals.addNote" call.
  7986  // Any non-2xx status code is an error. Response headers are in either
  7987  // *Note.ServerResponse.Header or (if a response was returned at all) in
  7988  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7989  // whether the returned error was because http.StatusNotModified was returned.
  7990  func (c *AccountsProposalsAddNoteCall) Do(opts ...googleapi.CallOption) (*Note, error) {
  7991  	gensupport.SetOptions(c.urlParams_, opts...)
  7992  	res, err := c.doRequest("json")
  7993  	if res != nil && res.StatusCode == http.StatusNotModified {
  7994  		if res.Body != nil {
  7995  			res.Body.Close()
  7996  		}
  7997  		return nil, gensupport.WrapError(&googleapi.Error{
  7998  			Code:   res.StatusCode,
  7999  			Header: res.Header,
  8000  		})
  8001  	}
  8002  	if err != nil {
  8003  		return nil, err
  8004  	}
  8005  	defer googleapi.CloseBody(res)
  8006  	if err := googleapi.CheckResponse(res); err != nil {
  8007  		return nil, gensupport.WrapError(err)
  8008  	}
  8009  	ret := &Note{
  8010  		ServerResponse: googleapi.ServerResponse{
  8011  			Header:         res.Header,
  8012  			HTTPStatusCode: res.StatusCode,
  8013  		},
  8014  	}
  8015  	target := &ret
  8016  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8017  		return nil, err
  8018  	}
  8019  	return ret, nil
  8020  }
  8021  
  8022  type AccountsProposalsCancelNegotiationCall struct {
  8023  	s                        *Service
  8024  	accountId                string
  8025  	proposalId               string
  8026  	cancelnegotiationrequest *CancelNegotiationRequest
  8027  	urlParams_               gensupport.URLParams
  8028  	ctx_                     context.Context
  8029  	header_                  http.Header
  8030  }
  8031  
  8032  // CancelNegotiation: Cancel an ongoing negotiation on a proposal. This does
  8033  // not cancel or end serving for the deals if the proposal has been finalized,
  8034  // but only cancels a negotiation unilaterally.
  8035  //
  8036  // - accountId: Account ID of the buyer.
  8037  // - proposalId: The ID of the proposal to cancel negotiation for.
  8038  func (r *AccountsProposalsService) CancelNegotiation(accountId string, proposalId string, cancelnegotiationrequest *CancelNegotiationRequest) *AccountsProposalsCancelNegotiationCall {
  8039  	c := &AccountsProposalsCancelNegotiationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8040  	c.accountId = accountId
  8041  	c.proposalId = proposalId
  8042  	c.cancelnegotiationrequest = cancelnegotiationrequest
  8043  	return c
  8044  }
  8045  
  8046  // Fields allows partial responses to be retrieved. See
  8047  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8048  // details.
  8049  func (c *AccountsProposalsCancelNegotiationCall) Fields(s ...googleapi.Field) *AccountsProposalsCancelNegotiationCall {
  8050  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8051  	return c
  8052  }
  8053  
  8054  // Context sets the context to be used in this call's Do method.
  8055  func (c *AccountsProposalsCancelNegotiationCall) Context(ctx context.Context) *AccountsProposalsCancelNegotiationCall {
  8056  	c.ctx_ = ctx
  8057  	return c
  8058  }
  8059  
  8060  // Header returns a http.Header that can be modified by the caller to add
  8061  // headers to the request.
  8062  func (c *AccountsProposalsCancelNegotiationCall) Header() http.Header {
  8063  	if c.header_ == nil {
  8064  		c.header_ = make(http.Header)
  8065  	}
  8066  	return c.header_
  8067  }
  8068  
  8069  func (c *AccountsProposalsCancelNegotiationCall) doRequest(alt string) (*http.Response, error) {
  8070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8071  	var body io.Reader = nil
  8072  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelnegotiationrequest)
  8073  	if err != nil {
  8074  		return nil, err
  8075  	}
  8076  	c.urlParams_.Set("alt", alt)
  8077  	c.urlParams_.Set("prettyPrint", "false")
  8078  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation")
  8079  	urls += "?" + c.urlParams_.Encode()
  8080  	req, err := http.NewRequest("POST", urls, body)
  8081  	if err != nil {
  8082  		return nil, err
  8083  	}
  8084  	req.Header = reqHeaders
  8085  	googleapi.Expand(req.URL, map[string]string{
  8086  		"accountId":  c.accountId,
  8087  		"proposalId": c.proposalId,
  8088  	})
  8089  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8090  }
  8091  
  8092  // Do executes the "adexchangebuyer2.accounts.proposals.cancelNegotiation" call.
  8093  // Any non-2xx status code is an error. Response headers are in either
  8094  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8095  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8096  // whether the returned error was because http.StatusNotModified was returned.
  8097  func (c *AccountsProposalsCancelNegotiationCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8098  	gensupport.SetOptions(c.urlParams_, opts...)
  8099  	res, err := c.doRequest("json")
  8100  	if res != nil && res.StatusCode == http.StatusNotModified {
  8101  		if res.Body != nil {
  8102  			res.Body.Close()
  8103  		}
  8104  		return nil, gensupport.WrapError(&googleapi.Error{
  8105  			Code:   res.StatusCode,
  8106  			Header: res.Header,
  8107  		})
  8108  	}
  8109  	if err != nil {
  8110  		return nil, err
  8111  	}
  8112  	defer googleapi.CloseBody(res)
  8113  	if err := googleapi.CheckResponse(res); err != nil {
  8114  		return nil, gensupport.WrapError(err)
  8115  	}
  8116  	ret := &Proposal{
  8117  		ServerResponse: googleapi.ServerResponse{
  8118  			Header:         res.Header,
  8119  			HTTPStatusCode: res.StatusCode,
  8120  		},
  8121  	}
  8122  	target := &ret
  8123  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8124  		return nil, err
  8125  	}
  8126  	return ret, nil
  8127  }
  8128  
  8129  type AccountsProposalsCompleteSetupCall struct {
  8130  	s                    *Service
  8131  	accountId            string
  8132  	proposalId           string
  8133  	completesetuprequest *CompleteSetupRequest
  8134  	urlParams_           gensupport.URLParams
  8135  	ctx_                 context.Context
  8136  	header_              http.Header
  8137  }
  8138  
  8139  // CompleteSetup: You can opt-in to manually update proposals to indicate that
  8140  // setup is complete. By default, proposal setup is automatically completed
  8141  // after their deals are finalized. Contact your Technical Account Manager to
  8142  // opt in. Buyers can call this method when the proposal has been finalized,
  8143  // and all the required creatives have been uploaded using the Creatives API.
  8144  // This call updates the `is_setup_completed` field on the deals in the
  8145  // proposal, and notifies the seller. The server then advances the revision
  8146  // number of the most recent proposal. To mark an individual deal as ready to
  8147  // serve, call `buyers.finalizedDeals.setReadyToServe` in the Marketplace API.
  8148  //
  8149  // - accountId: Account ID of the buyer.
  8150  // - proposalId: The ID of the proposal to mark as setup completed.
  8151  func (r *AccountsProposalsService) CompleteSetup(accountId string, proposalId string, completesetuprequest *CompleteSetupRequest) *AccountsProposalsCompleteSetupCall {
  8152  	c := &AccountsProposalsCompleteSetupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8153  	c.accountId = accountId
  8154  	c.proposalId = proposalId
  8155  	c.completesetuprequest = completesetuprequest
  8156  	return c
  8157  }
  8158  
  8159  // Fields allows partial responses to be retrieved. See
  8160  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8161  // details.
  8162  func (c *AccountsProposalsCompleteSetupCall) Fields(s ...googleapi.Field) *AccountsProposalsCompleteSetupCall {
  8163  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8164  	return c
  8165  }
  8166  
  8167  // Context sets the context to be used in this call's Do method.
  8168  func (c *AccountsProposalsCompleteSetupCall) Context(ctx context.Context) *AccountsProposalsCompleteSetupCall {
  8169  	c.ctx_ = ctx
  8170  	return c
  8171  }
  8172  
  8173  // Header returns a http.Header that can be modified by the caller to add
  8174  // headers to the request.
  8175  func (c *AccountsProposalsCompleteSetupCall) Header() http.Header {
  8176  	if c.header_ == nil {
  8177  		c.header_ = make(http.Header)
  8178  	}
  8179  	return c.header_
  8180  }
  8181  
  8182  func (c *AccountsProposalsCompleteSetupCall) doRequest(alt string) (*http.Response, error) {
  8183  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8184  	var body io.Reader = nil
  8185  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.completesetuprequest)
  8186  	if err != nil {
  8187  		return nil, err
  8188  	}
  8189  	c.urlParams_.Set("alt", alt)
  8190  	c.urlParams_.Set("prettyPrint", "false")
  8191  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup")
  8192  	urls += "?" + c.urlParams_.Encode()
  8193  	req, err := http.NewRequest("POST", urls, body)
  8194  	if err != nil {
  8195  		return nil, err
  8196  	}
  8197  	req.Header = reqHeaders
  8198  	googleapi.Expand(req.URL, map[string]string{
  8199  		"accountId":  c.accountId,
  8200  		"proposalId": c.proposalId,
  8201  	})
  8202  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8203  }
  8204  
  8205  // Do executes the "adexchangebuyer2.accounts.proposals.completeSetup" call.
  8206  // Any non-2xx status code is an error. Response headers are in either
  8207  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8208  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8209  // whether the returned error was because http.StatusNotModified was returned.
  8210  func (c *AccountsProposalsCompleteSetupCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8211  	gensupport.SetOptions(c.urlParams_, opts...)
  8212  	res, err := c.doRequest("json")
  8213  	if res != nil && res.StatusCode == http.StatusNotModified {
  8214  		if res.Body != nil {
  8215  			res.Body.Close()
  8216  		}
  8217  		return nil, gensupport.WrapError(&googleapi.Error{
  8218  			Code:   res.StatusCode,
  8219  			Header: res.Header,
  8220  		})
  8221  	}
  8222  	if err != nil {
  8223  		return nil, err
  8224  	}
  8225  	defer googleapi.CloseBody(res)
  8226  	if err := googleapi.CheckResponse(res); err != nil {
  8227  		return nil, gensupport.WrapError(err)
  8228  	}
  8229  	ret := &Proposal{
  8230  		ServerResponse: googleapi.ServerResponse{
  8231  			Header:         res.Header,
  8232  			HTTPStatusCode: res.StatusCode,
  8233  		},
  8234  	}
  8235  	target := &ret
  8236  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8237  		return nil, err
  8238  	}
  8239  	return ret, nil
  8240  }
  8241  
  8242  type AccountsProposalsCreateCall struct {
  8243  	s          *Service
  8244  	accountId  string
  8245  	proposal   *Proposal
  8246  	urlParams_ gensupport.URLParams
  8247  	ctx_       context.Context
  8248  	header_    http.Header
  8249  }
  8250  
  8251  // Create: Create the given proposal. Each created proposal and any deals it
  8252  // contains are assigned a unique ID by the server.
  8253  //
  8254  // - accountId: Account ID of the buyer.
  8255  func (r *AccountsProposalsService) Create(accountId string, proposal *Proposal) *AccountsProposalsCreateCall {
  8256  	c := &AccountsProposalsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8257  	c.accountId = accountId
  8258  	c.proposal = proposal
  8259  	return c
  8260  }
  8261  
  8262  // Fields allows partial responses to be retrieved. See
  8263  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8264  // details.
  8265  func (c *AccountsProposalsCreateCall) Fields(s ...googleapi.Field) *AccountsProposalsCreateCall {
  8266  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8267  	return c
  8268  }
  8269  
  8270  // Context sets the context to be used in this call's Do method.
  8271  func (c *AccountsProposalsCreateCall) Context(ctx context.Context) *AccountsProposalsCreateCall {
  8272  	c.ctx_ = ctx
  8273  	return c
  8274  }
  8275  
  8276  // Header returns a http.Header that can be modified by the caller to add
  8277  // headers to the request.
  8278  func (c *AccountsProposalsCreateCall) Header() http.Header {
  8279  	if c.header_ == nil {
  8280  		c.header_ = make(http.Header)
  8281  	}
  8282  	return c.header_
  8283  }
  8284  
  8285  func (c *AccountsProposalsCreateCall) doRequest(alt string) (*http.Response, error) {
  8286  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8287  	var body io.Reader = nil
  8288  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.proposal)
  8289  	if err != nil {
  8290  		return nil, err
  8291  	}
  8292  	c.urlParams_.Set("alt", alt)
  8293  	c.urlParams_.Set("prettyPrint", "false")
  8294  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals")
  8295  	urls += "?" + c.urlParams_.Encode()
  8296  	req, err := http.NewRequest("POST", urls, body)
  8297  	if err != nil {
  8298  		return nil, err
  8299  	}
  8300  	req.Header = reqHeaders
  8301  	googleapi.Expand(req.URL, map[string]string{
  8302  		"accountId": c.accountId,
  8303  	})
  8304  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8305  }
  8306  
  8307  // Do executes the "adexchangebuyer2.accounts.proposals.create" call.
  8308  // Any non-2xx status code is an error. Response headers are in either
  8309  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8310  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8311  // whether the returned error was because http.StatusNotModified was returned.
  8312  func (c *AccountsProposalsCreateCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8313  	gensupport.SetOptions(c.urlParams_, opts...)
  8314  	res, err := c.doRequest("json")
  8315  	if res != nil && res.StatusCode == http.StatusNotModified {
  8316  		if res.Body != nil {
  8317  			res.Body.Close()
  8318  		}
  8319  		return nil, gensupport.WrapError(&googleapi.Error{
  8320  			Code:   res.StatusCode,
  8321  			Header: res.Header,
  8322  		})
  8323  	}
  8324  	if err != nil {
  8325  		return nil, err
  8326  	}
  8327  	defer googleapi.CloseBody(res)
  8328  	if err := googleapi.CheckResponse(res); err != nil {
  8329  		return nil, gensupport.WrapError(err)
  8330  	}
  8331  	ret := &Proposal{
  8332  		ServerResponse: googleapi.ServerResponse{
  8333  			Header:         res.Header,
  8334  			HTTPStatusCode: res.StatusCode,
  8335  		},
  8336  	}
  8337  	target := &ret
  8338  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8339  		return nil, err
  8340  	}
  8341  	return ret, nil
  8342  }
  8343  
  8344  type AccountsProposalsGetCall struct {
  8345  	s            *Service
  8346  	accountId    string
  8347  	proposalId   string
  8348  	urlParams_   gensupport.URLParams
  8349  	ifNoneMatch_ string
  8350  	ctx_         context.Context
  8351  	header_      http.Header
  8352  }
  8353  
  8354  // Get: Gets a proposal given its ID. The proposal is returned at its head
  8355  // revision.
  8356  //
  8357  // - accountId: Account ID of the buyer.
  8358  // - proposalId: The unique ID of the proposal.
  8359  func (r *AccountsProposalsService) Get(accountId string, proposalId string) *AccountsProposalsGetCall {
  8360  	c := &AccountsProposalsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8361  	c.accountId = accountId
  8362  	c.proposalId = proposalId
  8363  	return c
  8364  }
  8365  
  8366  // Fields allows partial responses to be retrieved. See
  8367  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8368  // details.
  8369  func (c *AccountsProposalsGetCall) Fields(s ...googleapi.Field) *AccountsProposalsGetCall {
  8370  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8371  	return c
  8372  }
  8373  
  8374  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8375  // object's ETag matches the given value. This is useful for getting updates
  8376  // only after the object has changed since the last request.
  8377  func (c *AccountsProposalsGetCall) IfNoneMatch(entityTag string) *AccountsProposalsGetCall {
  8378  	c.ifNoneMatch_ = entityTag
  8379  	return c
  8380  }
  8381  
  8382  // Context sets the context to be used in this call's Do method.
  8383  func (c *AccountsProposalsGetCall) Context(ctx context.Context) *AccountsProposalsGetCall {
  8384  	c.ctx_ = ctx
  8385  	return c
  8386  }
  8387  
  8388  // Header returns a http.Header that can be modified by the caller to add
  8389  // headers to the request.
  8390  func (c *AccountsProposalsGetCall) Header() http.Header {
  8391  	if c.header_ == nil {
  8392  		c.header_ = make(http.Header)
  8393  	}
  8394  	return c.header_
  8395  }
  8396  
  8397  func (c *AccountsProposalsGetCall) doRequest(alt string) (*http.Response, error) {
  8398  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8399  	if c.ifNoneMatch_ != "" {
  8400  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8401  	}
  8402  	var body io.Reader = nil
  8403  	c.urlParams_.Set("alt", alt)
  8404  	c.urlParams_.Set("prettyPrint", "false")
  8405  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}")
  8406  	urls += "?" + c.urlParams_.Encode()
  8407  	req, err := http.NewRequest("GET", urls, body)
  8408  	if err != nil {
  8409  		return nil, err
  8410  	}
  8411  	req.Header = reqHeaders
  8412  	googleapi.Expand(req.URL, map[string]string{
  8413  		"accountId":  c.accountId,
  8414  		"proposalId": c.proposalId,
  8415  	})
  8416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8417  }
  8418  
  8419  // Do executes the "adexchangebuyer2.accounts.proposals.get" call.
  8420  // Any non-2xx status code is an error. Response headers are in either
  8421  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8422  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8423  // whether the returned error was because http.StatusNotModified was returned.
  8424  func (c *AccountsProposalsGetCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8425  	gensupport.SetOptions(c.urlParams_, opts...)
  8426  	res, err := c.doRequest("json")
  8427  	if res != nil && res.StatusCode == http.StatusNotModified {
  8428  		if res.Body != nil {
  8429  			res.Body.Close()
  8430  		}
  8431  		return nil, gensupport.WrapError(&googleapi.Error{
  8432  			Code:   res.StatusCode,
  8433  			Header: res.Header,
  8434  		})
  8435  	}
  8436  	if err != nil {
  8437  		return nil, err
  8438  	}
  8439  	defer googleapi.CloseBody(res)
  8440  	if err := googleapi.CheckResponse(res); err != nil {
  8441  		return nil, gensupport.WrapError(err)
  8442  	}
  8443  	ret := &Proposal{
  8444  		ServerResponse: googleapi.ServerResponse{
  8445  			Header:         res.Header,
  8446  			HTTPStatusCode: res.StatusCode,
  8447  		},
  8448  	}
  8449  	target := &ret
  8450  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8451  		return nil, err
  8452  	}
  8453  	return ret, nil
  8454  }
  8455  
  8456  type AccountsProposalsListCall struct {
  8457  	s            *Service
  8458  	accountId    string
  8459  	urlParams_   gensupport.URLParams
  8460  	ifNoneMatch_ string
  8461  	ctx_         context.Context
  8462  	header_      http.Header
  8463  }
  8464  
  8465  // List: List proposals. A filter expression (PQL query) may be specified to
  8466  // filter the results. To retrieve all finalized proposals, regardless if a
  8467  // proposal is being renegotiated, see the FinalizedProposals resource. Note
  8468  // that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder
  8469  // account can only see its child seats' proposals by specifying the
  8470  // ChildSeat's accountId in the request path.
  8471  //
  8472  // - accountId: Account ID of the buyer.
  8473  func (r *AccountsProposalsService) List(accountId string) *AccountsProposalsListCall {
  8474  	c := &AccountsProposalsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8475  	c.accountId = accountId
  8476  	return c
  8477  }
  8478  
  8479  // Filter sets the optional parameter "filter": An optional PQL filter query
  8480  // used to query for proposals. Nested repeated fields, such as
  8481  // proposal.deals.targetingCriterion, cannot be filtered.
  8482  func (c *AccountsProposalsListCall) Filter(filter string) *AccountsProposalsListCall {
  8483  	c.urlParams_.Set("filter", filter)
  8484  	return c
  8485  }
  8486  
  8487  // FilterSyntax sets the optional parameter "filterSyntax": Syntax the filter
  8488  // is written in. Current implementation defaults to PQL but in the future it
  8489  // will be LIST_FILTER.
  8490  //
  8491  // Possible values:
  8492  //
  8493  //	"FILTER_SYNTAX_UNSPECIFIED" - A placeholder for an undefined filter
  8494  //
  8495  // syntax.
  8496  //
  8497  //	"PQL" - PQL query syntax. Visit
  8498  //
  8499  // https://developers.google.com/ad-manager/api/pqlreference for PQL
  8500  // documentation and examples.
  8501  //
  8502  //	"LIST_FILTER" - API list filtering syntax. Read about syntax and usage at
  8503  //
  8504  // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
  8505  func (c *AccountsProposalsListCall) FilterSyntax(filterSyntax string) *AccountsProposalsListCall {
  8506  	c.urlParams_.Set("filterSyntax", filterSyntax)
  8507  	return c
  8508  }
  8509  
  8510  // PageSize sets the optional parameter "pageSize": Requested page size. The
  8511  // server may return fewer results than requested. If unspecified, the server
  8512  // will pick an appropriate default.
  8513  func (c *AccountsProposalsListCall) PageSize(pageSize int64) *AccountsProposalsListCall {
  8514  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8515  	return c
  8516  }
  8517  
  8518  // PageToken sets the optional parameter "pageToken": The page token as
  8519  // returned from ListProposalsResponse.
  8520  func (c *AccountsProposalsListCall) PageToken(pageToken string) *AccountsProposalsListCall {
  8521  	c.urlParams_.Set("pageToken", pageToken)
  8522  	return c
  8523  }
  8524  
  8525  // Fields allows partial responses to be retrieved. See
  8526  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8527  // details.
  8528  func (c *AccountsProposalsListCall) Fields(s ...googleapi.Field) *AccountsProposalsListCall {
  8529  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8530  	return c
  8531  }
  8532  
  8533  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8534  // object's ETag matches the given value. This is useful for getting updates
  8535  // only after the object has changed since the last request.
  8536  func (c *AccountsProposalsListCall) IfNoneMatch(entityTag string) *AccountsProposalsListCall {
  8537  	c.ifNoneMatch_ = entityTag
  8538  	return c
  8539  }
  8540  
  8541  // Context sets the context to be used in this call's Do method.
  8542  func (c *AccountsProposalsListCall) Context(ctx context.Context) *AccountsProposalsListCall {
  8543  	c.ctx_ = ctx
  8544  	return c
  8545  }
  8546  
  8547  // Header returns a http.Header that can be modified by the caller to add
  8548  // headers to the request.
  8549  func (c *AccountsProposalsListCall) Header() http.Header {
  8550  	if c.header_ == nil {
  8551  		c.header_ = make(http.Header)
  8552  	}
  8553  	return c.header_
  8554  }
  8555  
  8556  func (c *AccountsProposalsListCall) doRequest(alt string) (*http.Response, error) {
  8557  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8558  	if c.ifNoneMatch_ != "" {
  8559  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8560  	}
  8561  	var body io.Reader = nil
  8562  	c.urlParams_.Set("alt", alt)
  8563  	c.urlParams_.Set("prettyPrint", "false")
  8564  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals")
  8565  	urls += "?" + c.urlParams_.Encode()
  8566  	req, err := http.NewRequest("GET", urls, body)
  8567  	if err != nil {
  8568  		return nil, err
  8569  	}
  8570  	req.Header = reqHeaders
  8571  	googleapi.Expand(req.URL, map[string]string{
  8572  		"accountId": c.accountId,
  8573  	})
  8574  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8575  }
  8576  
  8577  // Do executes the "adexchangebuyer2.accounts.proposals.list" call.
  8578  // Any non-2xx status code is an error. Response headers are in either
  8579  // *ListProposalsResponse.ServerResponse.Header or (if a response was returned
  8580  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8581  // check whether the returned error was because http.StatusNotModified was
  8582  // returned.
  8583  func (c *AccountsProposalsListCall) Do(opts ...googleapi.CallOption) (*ListProposalsResponse, error) {
  8584  	gensupport.SetOptions(c.urlParams_, opts...)
  8585  	res, err := c.doRequest("json")
  8586  	if res != nil && res.StatusCode == http.StatusNotModified {
  8587  		if res.Body != nil {
  8588  			res.Body.Close()
  8589  		}
  8590  		return nil, gensupport.WrapError(&googleapi.Error{
  8591  			Code:   res.StatusCode,
  8592  			Header: res.Header,
  8593  		})
  8594  	}
  8595  	if err != nil {
  8596  		return nil, err
  8597  	}
  8598  	defer googleapi.CloseBody(res)
  8599  	if err := googleapi.CheckResponse(res); err != nil {
  8600  		return nil, gensupport.WrapError(err)
  8601  	}
  8602  	ret := &ListProposalsResponse{
  8603  		ServerResponse: googleapi.ServerResponse{
  8604  			Header:         res.Header,
  8605  			HTTPStatusCode: res.StatusCode,
  8606  		},
  8607  	}
  8608  	target := &ret
  8609  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8610  		return nil, err
  8611  	}
  8612  	return ret, nil
  8613  }
  8614  
  8615  // Pages invokes f for each page of results.
  8616  // A non-nil error returned from f will halt the iteration.
  8617  // The provided context supersedes any context provided to the Context method.
  8618  func (c *AccountsProposalsListCall) Pages(ctx context.Context, f func(*ListProposalsResponse) error) error {
  8619  	c.ctx_ = ctx
  8620  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8621  	for {
  8622  		x, err := c.Do()
  8623  		if err != nil {
  8624  			return err
  8625  		}
  8626  		if err := f(x); err != nil {
  8627  			return err
  8628  		}
  8629  		if x.NextPageToken == "" {
  8630  			return nil
  8631  		}
  8632  		c.PageToken(x.NextPageToken)
  8633  	}
  8634  }
  8635  
  8636  type AccountsProposalsPauseCall struct {
  8637  	s                    *Service
  8638  	accountId            string
  8639  	proposalId           string
  8640  	pauseproposalrequest *PauseProposalRequest
  8641  	urlParams_           gensupport.URLParams
  8642  	ctx_                 context.Context
  8643  	header_              http.Header
  8644  }
  8645  
  8646  // Pause: Update the given proposal to pause serving. This method will set the
  8647  // `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
  8648  // deals in the proposal. It is a no-op to pause an already-paused proposal. It
  8649  // is an error to call PauseProposal for a proposal that is not finalized or
  8650  // renegotiating.
  8651  //
  8652  // - accountId: Account ID of the buyer.
  8653  // - proposalId: The ID of the proposal to pause.
  8654  func (r *AccountsProposalsService) Pause(accountId string, proposalId string, pauseproposalrequest *PauseProposalRequest) *AccountsProposalsPauseCall {
  8655  	c := &AccountsProposalsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8656  	c.accountId = accountId
  8657  	c.proposalId = proposalId
  8658  	c.pauseproposalrequest = pauseproposalrequest
  8659  	return c
  8660  }
  8661  
  8662  // Fields allows partial responses to be retrieved. See
  8663  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8664  // details.
  8665  func (c *AccountsProposalsPauseCall) Fields(s ...googleapi.Field) *AccountsProposalsPauseCall {
  8666  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8667  	return c
  8668  }
  8669  
  8670  // Context sets the context to be used in this call's Do method.
  8671  func (c *AccountsProposalsPauseCall) Context(ctx context.Context) *AccountsProposalsPauseCall {
  8672  	c.ctx_ = ctx
  8673  	return c
  8674  }
  8675  
  8676  // Header returns a http.Header that can be modified by the caller to add
  8677  // headers to the request.
  8678  func (c *AccountsProposalsPauseCall) Header() http.Header {
  8679  	if c.header_ == nil {
  8680  		c.header_ = make(http.Header)
  8681  	}
  8682  	return c.header_
  8683  }
  8684  
  8685  func (c *AccountsProposalsPauseCall) doRequest(alt string) (*http.Response, error) {
  8686  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8687  	var body io.Reader = nil
  8688  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.pauseproposalrequest)
  8689  	if err != nil {
  8690  		return nil, err
  8691  	}
  8692  	c.urlParams_.Set("alt", alt)
  8693  	c.urlParams_.Set("prettyPrint", "false")
  8694  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}:pause")
  8695  	urls += "?" + c.urlParams_.Encode()
  8696  	req, err := http.NewRequest("POST", urls, body)
  8697  	if err != nil {
  8698  		return nil, err
  8699  	}
  8700  	req.Header = reqHeaders
  8701  	googleapi.Expand(req.URL, map[string]string{
  8702  		"accountId":  c.accountId,
  8703  		"proposalId": c.proposalId,
  8704  	})
  8705  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8706  }
  8707  
  8708  // Do executes the "adexchangebuyer2.accounts.proposals.pause" call.
  8709  // Any non-2xx status code is an error. Response headers are in either
  8710  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8711  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8712  // whether the returned error was because http.StatusNotModified was returned.
  8713  func (c *AccountsProposalsPauseCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8714  	gensupport.SetOptions(c.urlParams_, opts...)
  8715  	res, err := c.doRequest("json")
  8716  	if res != nil && res.StatusCode == http.StatusNotModified {
  8717  		if res.Body != nil {
  8718  			res.Body.Close()
  8719  		}
  8720  		return nil, gensupport.WrapError(&googleapi.Error{
  8721  			Code:   res.StatusCode,
  8722  			Header: res.Header,
  8723  		})
  8724  	}
  8725  	if err != nil {
  8726  		return nil, err
  8727  	}
  8728  	defer googleapi.CloseBody(res)
  8729  	if err := googleapi.CheckResponse(res); err != nil {
  8730  		return nil, gensupport.WrapError(err)
  8731  	}
  8732  	ret := &Proposal{
  8733  		ServerResponse: googleapi.ServerResponse{
  8734  			Header:         res.Header,
  8735  			HTTPStatusCode: res.StatusCode,
  8736  		},
  8737  	}
  8738  	target := &ret
  8739  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8740  		return nil, err
  8741  	}
  8742  	return ret, nil
  8743  }
  8744  
  8745  type AccountsProposalsResumeCall struct {
  8746  	s                     *Service
  8747  	accountId             string
  8748  	proposalId            string
  8749  	resumeproposalrequest *ResumeProposalRequest
  8750  	urlParams_            gensupport.URLParams
  8751  	ctx_                  context.Context
  8752  	header_               http.Header
  8753  }
  8754  
  8755  // Resume: Update the given proposal to resume serving. This method will set
  8756  // the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for
  8757  // all deals in the proposal. Note that if the `has_seller_paused` bit is also
  8758  // set, serving will not resume until the seller also resumes. It is a no-op to
  8759  // resume an already-running proposal. It is an error to call ResumeProposal
  8760  // for a proposal that is not finalized or renegotiating.
  8761  //
  8762  // - accountId: Account ID of the buyer.
  8763  // - proposalId: The ID of the proposal to resume.
  8764  func (r *AccountsProposalsService) Resume(accountId string, proposalId string, resumeproposalrequest *ResumeProposalRequest) *AccountsProposalsResumeCall {
  8765  	c := &AccountsProposalsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8766  	c.accountId = accountId
  8767  	c.proposalId = proposalId
  8768  	c.resumeproposalrequest = resumeproposalrequest
  8769  	return c
  8770  }
  8771  
  8772  // Fields allows partial responses to be retrieved. See
  8773  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8774  // details.
  8775  func (c *AccountsProposalsResumeCall) Fields(s ...googleapi.Field) *AccountsProposalsResumeCall {
  8776  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8777  	return c
  8778  }
  8779  
  8780  // Context sets the context to be used in this call's Do method.
  8781  func (c *AccountsProposalsResumeCall) Context(ctx context.Context) *AccountsProposalsResumeCall {
  8782  	c.ctx_ = ctx
  8783  	return c
  8784  }
  8785  
  8786  // Header returns a http.Header that can be modified by the caller to add
  8787  // headers to the request.
  8788  func (c *AccountsProposalsResumeCall) Header() http.Header {
  8789  	if c.header_ == nil {
  8790  		c.header_ = make(http.Header)
  8791  	}
  8792  	return c.header_
  8793  }
  8794  
  8795  func (c *AccountsProposalsResumeCall) doRequest(alt string) (*http.Response, error) {
  8796  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8797  	var body io.Reader = nil
  8798  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.resumeproposalrequest)
  8799  	if err != nil {
  8800  		return nil, err
  8801  	}
  8802  	c.urlParams_.Set("alt", alt)
  8803  	c.urlParams_.Set("prettyPrint", "false")
  8804  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}:resume")
  8805  	urls += "?" + c.urlParams_.Encode()
  8806  	req, err := http.NewRequest("POST", urls, body)
  8807  	if err != nil {
  8808  		return nil, err
  8809  	}
  8810  	req.Header = reqHeaders
  8811  	googleapi.Expand(req.URL, map[string]string{
  8812  		"accountId":  c.accountId,
  8813  		"proposalId": c.proposalId,
  8814  	})
  8815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8816  }
  8817  
  8818  // Do executes the "adexchangebuyer2.accounts.proposals.resume" call.
  8819  // Any non-2xx status code is an error. Response headers are in either
  8820  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8821  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8822  // whether the returned error was because http.StatusNotModified was returned.
  8823  func (c *AccountsProposalsResumeCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8824  	gensupport.SetOptions(c.urlParams_, opts...)
  8825  	res, err := c.doRequest("json")
  8826  	if res != nil && res.StatusCode == http.StatusNotModified {
  8827  		if res.Body != nil {
  8828  			res.Body.Close()
  8829  		}
  8830  		return nil, gensupport.WrapError(&googleapi.Error{
  8831  			Code:   res.StatusCode,
  8832  			Header: res.Header,
  8833  		})
  8834  	}
  8835  	if err != nil {
  8836  		return nil, err
  8837  	}
  8838  	defer googleapi.CloseBody(res)
  8839  	if err := googleapi.CheckResponse(res); err != nil {
  8840  		return nil, gensupport.WrapError(err)
  8841  	}
  8842  	ret := &Proposal{
  8843  		ServerResponse: googleapi.ServerResponse{
  8844  			Header:         res.Header,
  8845  			HTTPStatusCode: res.StatusCode,
  8846  		},
  8847  	}
  8848  	target := &ret
  8849  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8850  		return nil, err
  8851  	}
  8852  	return ret, nil
  8853  }
  8854  
  8855  type AccountsProposalsUpdateCall struct {
  8856  	s          *Service
  8857  	accountId  string
  8858  	proposalId string
  8859  	proposal   *Proposal
  8860  	urlParams_ gensupport.URLParams
  8861  	ctx_       context.Context
  8862  	header_    http.Header
  8863  }
  8864  
  8865  // Update: Update the given proposal at the client known revision number. If
  8866  // the server revision has advanced since the passed-in
  8867  // `proposal.proposal_revision`, an `ABORTED` error message will be returned.
  8868  // Only the buyer-modifiable fields of the proposal will be updated. Note that
  8869  // the deals in the proposal will be updated to match the passed-in copy. If a
  8870  // passed-in deal does not have a `deal_id`, the server will assign a new
  8871  // unique ID and create the deal. If passed-in deal has a `deal_id`, it will be
  8872  // updated to match the passed-in copy. Any existing deals not present in the
  8873  // passed-in proposal will be deleted. It is an error to pass in a deal with a
  8874  // `deal_id` not present at head.
  8875  //
  8876  // - accountId: Account ID of the buyer.
  8877  // - proposalId: The unique ID of the proposal.
  8878  func (r *AccountsProposalsService) Update(accountId string, proposalId string, proposal *Proposal) *AccountsProposalsUpdateCall {
  8879  	c := &AccountsProposalsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8880  	c.accountId = accountId
  8881  	c.proposalId = proposalId
  8882  	c.proposal = proposal
  8883  	return c
  8884  }
  8885  
  8886  // Fields allows partial responses to be retrieved. See
  8887  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8888  // details.
  8889  func (c *AccountsProposalsUpdateCall) Fields(s ...googleapi.Field) *AccountsProposalsUpdateCall {
  8890  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8891  	return c
  8892  }
  8893  
  8894  // Context sets the context to be used in this call's Do method.
  8895  func (c *AccountsProposalsUpdateCall) Context(ctx context.Context) *AccountsProposalsUpdateCall {
  8896  	c.ctx_ = ctx
  8897  	return c
  8898  }
  8899  
  8900  // Header returns a http.Header that can be modified by the caller to add
  8901  // headers to the request.
  8902  func (c *AccountsProposalsUpdateCall) Header() http.Header {
  8903  	if c.header_ == nil {
  8904  		c.header_ = make(http.Header)
  8905  	}
  8906  	return c.header_
  8907  }
  8908  
  8909  func (c *AccountsProposalsUpdateCall) doRequest(alt string) (*http.Response, error) {
  8910  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8911  	var body io.Reader = nil
  8912  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.proposal)
  8913  	if err != nil {
  8914  		return nil, err
  8915  	}
  8916  	c.urlParams_.Set("alt", alt)
  8917  	c.urlParams_.Set("prettyPrint", "false")
  8918  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/proposals/{proposalId}")
  8919  	urls += "?" + c.urlParams_.Encode()
  8920  	req, err := http.NewRequest("PUT", urls, body)
  8921  	if err != nil {
  8922  		return nil, err
  8923  	}
  8924  	req.Header = reqHeaders
  8925  	googleapi.Expand(req.URL, map[string]string{
  8926  		"accountId":  c.accountId,
  8927  		"proposalId": c.proposalId,
  8928  	})
  8929  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8930  }
  8931  
  8932  // Do executes the "adexchangebuyer2.accounts.proposals.update" call.
  8933  // Any non-2xx status code is an error. Response headers are in either
  8934  // *Proposal.ServerResponse.Header or (if a response was returned at all) in
  8935  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8936  // whether the returned error was because http.StatusNotModified was returned.
  8937  func (c *AccountsProposalsUpdateCall) Do(opts ...googleapi.CallOption) (*Proposal, error) {
  8938  	gensupport.SetOptions(c.urlParams_, opts...)
  8939  	res, err := c.doRequest("json")
  8940  	if res != nil && res.StatusCode == http.StatusNotModified {
  8941  		if res.Body != nil {
  8942  			res.Body.Close()
  8943  		}
  8944  		return nil, gensupport.WrapError(&googleapi.Error{
  8945  			Code:   res.StatusCode,
  8946  			Header: res.Header,
  8947  		})
  8948  	}
  8949  	if err != nil {
  8950  		return nil, err
  8951  	}
  8952  	defer googleapi.CloseBody(res)
  8953  	if err := googleapi.CheckResponse(res); err != nil {
  8954  		return nil, gensupport.WrapError(err)
  8955  	}
  8956  	ret := &Proposal{
  8957  		ServerResponse: googleapi.ServerResponse{
  8958  			Header:         res.Header,
  8959  			HTTPStatusCode: res.StatusCode,
  8960  		},
  8961  	}
  8962  	target := &ret
  8963  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8964  		return nil, err
  8965  	}
  8966  	return ret, nil
  8967  }
  8968  
  8969  type AccountsPublisherProfilesGetCall struct {
  8970  	s                  *Service
  8971  	accountId          string
  8972  	publisherProfileId string
  8973  	urlParams_         gensupport.URLParams
  8974  	ifNoneMatch_       string
  8975  	ctx_               context.Context
  8976  	header_            http.Header
  8977  }
  8978  
  8979  // Get: Gets the requested publisher profile by id.
  8980  //
  8981  // - accountId: Account ID of the buyer.
  8982  // - publisherProfileId: The id for the publisher profile to get.
  8983  func (r *AccountsPublisherProfilesService) Get(accountId string, publisherProfileId string) *AccountsPublisherProfilesGetCall {
  8984  	c := &AccountsPublisherProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8985  	c.accountId = accountId
  8986  	c.publisherProfileId = publisherProfileId
  8987  	return c
  8988  }
  8989  
  8990  // Fields allows partial responses to be retrieved. See
  8991  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8992  // details.
  8993  func (c *AccountsPublisherProfilesGetCall) Fields(s ...googleapi.Field) *AccountsPublisherProfilesGetCall {
  8994  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8995  	return c
  8996  }
  8997  
  8998  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8999  // object's ETag matches the given value. This is useful for getting updates
  9000  // only after the object has changed since the last request.
  9001  func (c *AccountsPublisherProfilesGetCall) IfNoneMatch(entityTag string) *AccountsPublisherProfilesGetCall {
  9002  	c.ifNoneMatch_ = entityTag
  9003  	return c
  9004  }
  9005  
  9006  // Context sets the context to be used in this call's Do method.
  9007  func (c *AccountsPublisherProfilesGetCall) Context(ctx context.Context) *AccountsPublisherProfilesGetCall {
  9008  	c.ctx_ = ctx
  9009  	return c
  9010  }
  9011  
  9012  // Header returns a http.Header that can be modified by the caller to add
  9013  // headers to the request.
  9014  func (c *AccountsPublisherProfilesGetCall) Header() http.Header {
  9015  	if c.header_ == nil {
  9016  		c.header_ = make(http.Header)
  9017  	}
  9018  	return c.header_
  9019  }
  9020  
  9021  func (c *AccountsPublisherProfilesGetCall) doRequest(alt string) (*http.Response, error) {
  9022  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9023  	if c.ifNoneMatch_ != "" {
  9024  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9025  	}
  9026  	var body io.Reader = nil
  9027  	c.urlParams_.Set("alt", alt)
  9028  	c.urlParams_.Set("prettyPrint", "false")
  9029  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}")
  9030  	urls += "?" + c.urlParams_.Encode()
  9031  	req, err := http.NewRequest("GET", urls, body)
  9032  	if err != nil {
  9033  		return nil, err
  9034  	}
  9035  	req.Header = reqHeaders
  9036  	googleapi.Expand(req.URL, map[string]string{
  9037  		"accountId":          c.accountId,
  9038  		"publisherProfileId": c.publisherProfileId,
  9039  	})
  9040  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9041  }
  9042  
  9043  // Do executes the "adexchangebuyer2.accounts.publisherProfiles.get" call.
  9044  // Any non-2xx status code is an error. Response headers are in either
  9045  // *PublisherProfile.ServerResponse.Header or (if a response was returned at
  9046  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9047  // check whether the returned error was because http.StatusNotModified was
  9048  // returned.
  9049  func (c *AccountsPublisherProfilesGetCall) Do(opts ...googleapi.CallOption) (*PublisherProfile, error) {
  9050  	gensupport.SetOptions(c.urlParams_, opts...)
  9051  	res, err := c.doRequest("json")
  9052  	if res != nil && res.StatusCode == http.StatusNotModified {
  9053  		if res.Body != nil {
  9054  			res.Body.Close()
  9055  		}
  9056  		return nil, gensupport.WrapError(&googleapi.Error{
  9057  			Code:   res.StatusCode,
  9058  			Header: res.Header,
  9059  		})
  9060  	}
  9061  	if err != nil {
  9062  		return nil, err
  9063  	}
  9064  	defer googleapi.CloseBody(res)
  9065  	if err := googleapi.CheckResponse(res); err != nil {
  9066  		return nil, gensupport.WrapError(err)
  9067  	}
  9068  	ret := &PublisherProfile{
  9069  		ServerResponse: googleapi.ServerResponse{
  9070  			Header:         res.Header,
  9071  			HTTPStatusCode: res.StatusCode,
  9072  		},
  9073  	}
  9074  	target := &ret
  9075  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9076  		return nil, err
  9077  	}
  9078  	return ret, nil
  9079  }
  9080  
  9081  type AccountsPublisherProfilesListCall struct {
  9082  	s            *Service
  9083  	accountId    string
  9084  	urlParams_   gensupport.URLParams
  9085  	ifNoneMatch_ string
  9086  	ctx_         context.Context
  9087  	header_      http.Header
  9088  }
  9089  
  9090  // List: List all publisher profiles visible to the buyer
  9091  //
  9092  // - accountId: Account ID of the buyer.
  9093  func (r *AccountsPublisherProfilesService) List(accountId string) *AccountsPublisherProfilesListCall {
  9094  	c := &AccountsPublisherProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9095  	c.accountId = accountId
  9096  	return c
  9097  }
  9098  
  9099  // PageSize sets the optional parameter "pageSize": Specify the number of
  9100  // results to include per page.
  9101  func (c *AccountsPublisherProfilesListCall) PageSize(pageSize int64) *AccountsPublisherProfilesListCall {
  9102  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9103  	return c
  9104  }
  9105  
  9106  // PageToken sets the optional parameter "pageToken": The page token as return
  9107  // from ListPublisherProfilesResponse.
  9108  func (c *AccountsPublisherProfilesListCall) PageToken(pageToken string) *AccountsPublisherProfilesListCall {
  9109  	c.urlParams_.Set("pageToken", pageToken)
  9110  	return c
  9111  }
  9112  
  9113  // Fields allows partial responses to be retrieved. See
  9114  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9115  // details.
  9116  func (c *AccountsPublisherProfilesListCall) Fields(s ...googleapi.Field) *AccountsPublisherProfilesListCall {
  9117  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9118  	return c
  9119  }
  9120  
  9121  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9122  // object's ETag matches the given value. This is useful for getting updates
  9123  // only after the object has changed since the last request.
  9124  func (c *AccountsPublisherProfilesListCall) IfNoneMatch(entityTag string) *AccountsPublisherProfilesListCall {
  9125  	c.ifNoneMatch_ = entityTag
  9126  	return c
  9127  }
  9128  
  9129  // Context sets the context to be used in this call's Do method.
  9130  func (c *AccountsPublisherProfilesListCall) Context(ctx context.Context) *AccountsPublisherProfilesListCall {
  9131  	c.ctx_ = ctx
  9132  	return c
  9133  }
  9134  
  9135  // Header returns a http.Header that can be modified by the caller to add
  9136  // headers to the request.
  9137  func (c *AccountsPublisherProfilesListCall) Header() http.Header {
  9138  	if c.header_ == nil {
  9139  		c.header_ = make(http.Header)
  9140  	}
  9141  	return c.header_
  9142  }
  9143  
  9144  func (c *AccountsPublisherProfilesListCall) doRequest(alt string) (*http.Response, error) {
  9145  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9146  	if c.ifNoneMatch_ != "" {
  9147  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9148  	}
  9149  	var body io.Reader = nil
  9150  	c.urlParams_.Set("alt", alt)
  9151  	c.urlParams_.Set("prettyPrint", "false")
  9152  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/publisherProfiles")
  9153  	urls += "?" + c.urlParams_.Encode()
  9154  	req, err := http.NewRequest("GET", urls, body)
  9155  	if err != nil {
  9156  		return nil, err
  9157  	}
  9158  	req.Header = reqHeaders
  9159  	googleapi.Expand(req.URL, map[string]string{
  9160  		"accountId": c.accountId,
  9161  	})
  9162  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9163  }
  9164  
  9165  // Do executes the "adexchangebuyer2.accounts.publisherProfiles.list" call.
  9166  // Any non-2xx status code is an error. Response headers are in either
  9167  // *ListPublisherProfilesResponse.ServerResponse.Header or (if a response was
  9168  // returned at all) in error.(*googleapi.Error).Header. Use
  9169  // googleapi.IsNotModified to check whether the returned error was because
  9170  // http.StatusNotModified was returned.
  9171  func (c *AccountsPublisherProfilesListCall) Do(opts ...googleapi.CallOption) (*ListPublisherProfilesResponse, error) {
  9172  	gensupport.SetOptions(c.urlParams_, opts...)
  9173  	res, err := c.doRequest("json")
  9174  	if res != nil && res.StatusCode == http.StatusNotModified {
  9175  		if res.Body != nil {
  9176  			res.Body.Close()
  9177  		}
  9178  		return nil, gensupport.WrapError(&googleapi.Error{
  9179  			Code:   res.StatusCode,
  9180  			Header: res.Header,
  9181  		})
  9182  	}
  9183  	if err != nil {
  9184  		return nil, err
  9185  	}
  9186  	defer googleapi.CloseBody(res)
  9187  	if err := googleapi.CheckResponse(res); err != nil {
  9188  		return nil, gensupport.WrapError(err)
  9189  	}
  9190  	ret := &ListPublisherProfilesResponse{
  9191  		ServerResponse: googleapi.ServerResponse{
  9192  			Header:         res.Header,
  9193  			HTTPStatusCode: res.StatusCode,
  9194  		},
  9195  	}
  9196  	target := &ret
  9197  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9198  		return nil, err
  9199  	}
  9200  	return ret, nil
  9201  }
  9202  
  9203  // Pages invokes f for each page of results.
  9204  // A non-nil error returned from f will halt the iteration.
  9205  // The provided context supersedes any context provided to the Context method.
  9206  func (c *AccountsPublisherProfilesListCall) Pages(ctx context.Context, f func(*ListPublisherProfilesResponse) error) error {
  9207  	c.ctx_ = ctx
  9208  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9209  	for {
  9210  		x, err := c.Do()
  9211  		if err != nil {
  9212  			return err
  9213  		}
  9214  		if err := f(x); err != nil {
  9215  			return err
  9216  		}
  9217  		if x.NextPageToken == "" {
  9218  			return nil
  9219  		}
  9220  		c.PageToken(x.NextPageToken)
  9221  	}
  9222  }
  9223  
  9224  type BiddersAccountsFilterSetsCreateCall struct {
  9225  	s          *Service
  9226  	ownerName  string
  9227  	filterset  *FilterSet
  9228  	urlParams_ gensupport.URLParams
  9229  	ctx_       context.Context
  9230  	header_    http.Header
  9231  }
  9232  
  9233  // Create: Creates the specified filter set for the account with the given
  9234  // account ID.
  9235  //
  9236  //   - ownerName: Name of the owner (bidder or account) of the filter set to be
  9237  //     created. For example: - For a bidder-level filter set for bidder 123:
  9238  //     `bidders/123` - For an account-level filter set for the buyer account
  9239  //     representing bidder 123: `bidders/123/accounts/123` - For an account-level
  9240  //     filter set for the child seat buyer account 456 whose bidder is 123:
  9241  //     `bidders/123/accounts/456`.
  9242  func (r *BiddersAccountsFilterSetsService) Create(ownerName string, filterset *FilterSet) *BiddersAccountsFilterSetsCreateCall {
  9243  	c := &BiddersAccountsFilterSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9244  	c.ownerName = ownerName
  9245  	c.filterset = filterset
  9246  	return c
  9247  }
  9248  
  9249  // IsTransient sets the optional parameter "isTransient": Whether the filter
  9250  // set is transient, or should be persisted indefinitely. By default, filter
  9251  // sets are not transient. If transient, it will be available for at least 1
  9252  // hour after creation.
  9253  func (c *BiddersAccountsFilterSetsCreateCall) IsTransient(isTransient bool) *BiddersAccountsFilterSetsCreateCall {
  9254  	c.urlParams_.Set("isTransient", fmt.Sprint(isTransient))
  9255  	return c
  9256  }
  9257  
  9258  // Fields allows partial responses to be retrieved. See
  9259  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9260  // details.
  9261  func (c *BiddersAccountsFilterSetsCreateCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsCreateCall {
  9262  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9263  	return c
  9264  }
  9265  
  9266  // Context sets the context to be used in this call's Do method.
  9267  func (c *BiddersAccountsFilterSetsCreateCall) Context(ctx context.Context) *BiddersAccountsFilterSetsCreateCall {
  9268  	c.ctx_ = ctx
  9269  	return c
  9270  }
  9271  
  9272  // Header returns a http.Header that can be modified by the caller to add
  9273  // headers to the request.
  9274  func (c *BiddersAccountsFilterSetsCreateCall) Header() http.Header {
  9275  	if c.header_ == nil {
  9276  		c.header_ = make(http.Header)
  9277  	}
  9278  	return c.header_
  9279  }
  9280  
  9281  func (c *BiddersAccountsFilterSetsCreateCall) doRequest(alt string) (*http.Response, error) {
  9282  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9283  	var body io.Reader = nil
  9284  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.filterset)
  9285  	if err != nil {
  9286  		return nil, err
  9287  	}
  9288  	c.urlParams_.Set("alt", alt)
  9289  	c.urlParams_.Set("prettyPrint", "false")
  9290  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+ownerName}/filterSets")
  9291  	urls += "?" + c.urlParams_.Encode()
  9292  	req, err := http.NewRequest("POST", urls, body)
  9293  	if err != nil {
  9294  		return nil, err
  9295  	}
  9296  	req.Header = reqHeaders
  9297  	googleapi.Expand(req.URL, map[string]string{
  9298  		"ownerName": c.ownerName,
  9299  	})
  9300  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9301  }
  9302  
  9303  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.create" call.
  9304  // Any non-2xx status code is an error. Response headers are in either
  9305  // *FilterSet.ServerResponse.Header or (if a response was returned at all) in
  9306  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9307  // whether the returned error was because http.StatusNotModified was returned.
  9308  func (c *BiddersAccountsFilterSetsCreateCall) Do(opts ...googleapi.CallOption) (*FilterSet, error) {
  9309  	gensupport.SetOptions(c.urlParams_, opts...)
  9310  	res, err := c.doRequest("json")
  9311  	if res != nil && res.StatusCode == http.StatusNotModified {
  9312  		if res.Body != nil {
  9313  			res.Body.Close()
  9314  		}
  9315  		return nil, gensupport.WrapError(&googleapi.Error{
  9316  			Code:   res.StatusCode,
  9317  			Header: res.Header,
  9318  		})
  9319  	}
  9320  	if err != nil {
  9321  		return nil, err
  9322  	}
  9323  	defer googleapi.CloseBody(res)
  9324  	if err := googleapi.CheckResponse(res); err != nil {
  9325  		return nil, gensupport.WrapError(err)
  9326  	}
  9327  	ret := &FilterSet{
  9328  		ServerResponse: googleapi.ServerResponse{
  9329  			Header:         res.Header,
  9330  			HTTPStatusCode: res.StatusCode,
  9331  		},
  9332  	}
  9333  	target := &ret
  9334  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9335  		return nil, err
  9336  	}
  9337  	return ret, nil
  9338  }
  9339  
  9340  type BiddersAccountsFilterSetsDeleteCall struct {
  9341  	s          *Service
  9342  	name       string
  9343  	urlParams_ gensupport.URLParams
  9344  	ctx_       context.Context
  9345  	header_    http.Header
  9346  }
  9347  
  9348  // Delete: Deletes the requested filter set from the account with the given
  9349  // account ID.
  9350  //
  9351  //   - name: Full name of the resource to delete. For example: - For a
  9352  //     bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For
  9353  //     an account-level filter set for the buyer account representing bidder 123:
  9354  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
  9355  //     set for the child seat buyer account 456 whose bidder is 123:
  9356  //     `bidders/123/accounts/456/filterSets/abc`.
  9357  func (r *BiddersAccountsFilterSetsService) Delete(name string) *BiddersAccountsFilterSetsDeleteCall {
  9358  	c := &BiddersAccountsFilterSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9359  	c.name = name
  9360  	return c
  9361  }
  9362  
  9363  // Fields allows partial responses to be retrieved. See
  9364  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9365  // details.
  9366  func (c *BiddersAccountsFilterSetsDeleteCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsDeleteCall {
  9367  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9368  	return c
  9369  }
  9370  
  9371  // Context sets the context to be used in this call's Do method.
  9372  func (c *BiddersAccountsFilterSetsDeleteCall) Context(ctx context.Context) *BiddersAccountsFilterSetsDeleteCall {
  9373  	c.ctx_ = ctx
  9374  	return c
  9375  }
  9376  
  9377  // Header returns a http.Header that can be modified by the caller to add
  9378  // headers to the request.
  9379  func (c *BiddersAccountsFilterSetsDeleteCall) Header() http.Header {
  9380  	if c.header_ == nil {
  9381  		c.header_ = make(http.Header)
  9382  	}
  9383  	return c.header_
  9384  }
  9385  
  9386  func (c *BiddersAccountsFilterSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9387  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9388  	var body io.Reader = nil
  9389  	c.urlParams_.Set("alt", alt)
  9390  	c.urlParams_.Set("prettyPrint", "false")
  9391  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
  9392  	urls += "?" + c.urlParams_.Encode()
  9393  	req, err := http.NewRequest("DELETE", urls, body)
  9394  	if err != nil {
  9395  		return nil, err
  9396  	}
  9397  	req.Header = reqHeaders
  9398  	googleapi.Expand(req.URL, map[string]string{
  9399  		"name": c.name,
  9400  	})
  9401  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9402  }
  9403  
  9404  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.delete" call.
  9405  // Any non-2xx status code is an error. Response headers are in either
  9406  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9407  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9408  // whether the returned error was because http.StatusNotModified was returned.
  9409  func (c *BiddersAccountsFilterSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9410  	gensupport.SetOptions(c.urlParams_, opts...)
  9411  	res, err := c.doRequest("json")
  9412  	if res != nil && res.StatusCode == http.StatusNotModified {
  9413  		if res.Body != nil {
  9414  			res.Body.Close()
  9415  		}
  9416  		return nil, gensupport.WrapError(&googleapi.Error{
  9417  			Code:   res.StatusCode,
  9418  			Header: res.Header,
  9419  		})
  9420  	}
  9421  	if err != nil {
  9422  		return nil, err
  9423  	}
  9424  	defer googleapi.CloseBody(res)
  9425  	if err := googleapi.CheckResponse(res); err != nil {
  9426  		return nil, gensupport.WrapError(err)
  9427  	}
  9428  	ret := &Empty{
  9429  		ServerResponse: googleapi.ServerResponse{
  9430  			Header:         res.Header,
  9431  			HTTPStatusCode: res.StatusCode,
  9432  		},
  9433  	}
  9434  	target := &ret
  9435  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9436  		return nil, err
  9437  	}
  9438  	return ret, nil
  9439  }
  9440  
  9441  type BiddersAccountsFilterSetsGetCall struct {
  9442  	s            *Service
  9443  	name         string
  9444  	urlParams_   gensupport.URLParams
  9445  	ifNoneMatch_ string
  9446  	ctx_         context.Context
  9447  	header_      http.Header
  9448  }
  9449  
  9450  // Get: Retrieves the requested filter set for the account with the given
  9451  // account ID.
  9452  //
  9453  //   - name: Full name of the resource being requested. For example: - For a
  9454  //     bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For
  9455  //     an account-level filter set for the buyer account representing bidder 123:
  9456  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
  9457  //     set for the child seat buyer account 456 whose bidder is 123:
  9458  //     `bidders/123/accounts/456/filterSets/abc`.
  9459  func (r *BiddersAccountsFilterSetsService) Get(name string) *BiddersAccountsFilterSetsGetCall {
  9460  	c := &BiddersAccountsFilterSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9461  	c.name = name
  9462  	return c
  9463  }
  9464  
  9465  // Fields allows partial responses to be retrieved. See
  9466  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9467  // details.
  9468  func (c *BiddersAccountsFilterSetsGetCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsGetCall {
  9469  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9470  	return c
  9471  }
  9472  
  9473  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9474  // object's ETag matches the given value. This is useful for getting updates
  9475  // only after the object has changed since the last request.
  9476  func (c *BiddersAccountsFilterSetsGetCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsGetCall {
  9477  	c.ifNoneMatch_ = entityTag
  9478  	return c
  9479  }
  9480  
  9481  // Context sets the context to be used in this call's Do method.
  9482  func (c *BiddersAccountsFilterSetsGetCall) Context(ctx context.Context) *BiddersAccountsFilterSetsGetCall {
  9483  	c.ctx_ = ctx
  9484  	return c
  9485  }
  9486  
  9487  // Header returns a http.Header that can be modified by the caller to add
  9488  // headers to the request.
  9489  func (c *BiddersAccountsFilterSetsGetCall) Header() http.Header {
  9490  	if c.header_ == nil {
  9491  		c.header_ = make(http.Header)
  9492  	}
  9493  	return c.header_
  9494  }
  9495  
  9496  func (c *BiddersAccountsFilterSetsGetCall) doRequest(alt string) (*http.Response, error) {
  9497  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9498  	if c.ifNoneMatch_ != "" {
  9499  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9500  	}
  9501  	var body io.Reader = nil
  9502  	c.urlParams_.Set("alt", alt)
  9503  	c.urlParams_.Set("prettyPrint", "false")
  9504  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
  9505  	urls += "?" + c.urlParams_.Encode()
  9506  	req, err := http.NewRequest("GET", urls, body)
  9507  	if err != nil {
  9508  		return nil, err
  9509  	}
  9510  	req.Header = reqHeaders
  9511  	googleapi.Expand(req.URL, map[string]string{
  9512  		"name": c.name,
  9513  	})
  9514  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9515  }
  9516  
  9517  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.get" call.
  9518  // Any non-2xx status code is an error. Response headers are in either
  9519  // *FilterSet.ServerResponse.Header or (if a response was returned at all) in
  9520  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9521  // whether the returned error was because http.StatusNotModified was returned.
  9522  func (c *BiddersAccountsFilterSetsGetCall) Do(opts ...googleapi.CallOption) (*FilterSet, error) {
  9523  	gensupport.SetOptions(c.urlParams_, opts...)
  9524  	res, err := c.doRequest("json")
  9525  	if res != nil && res.StatusCode == http.StatusNotModified {
  9526  		if res.Body != nil {
  9527  			res.Body.Close()
  9528  		}
  9529  		return nil, gensupport.WrapError(&googleapi.Error{
  9530  			Code:   res.StatusCode,
  9531  			Header: res.Header,
  9532  		})
  9533  	}
  9534  	if err != nil {
  9535  		return nil, err
  9536  	}
  9537  	defer googleapi.CloseBody(res)
  9538  	if err := googleapi.CheckResponse(res); err != nil {
  9539  		return nil, gensupport.WrapError(err)
  9540  	}
  9541  	ret := &FilterSet{
  9542  		ServerResponse: googleapi.ServerResponse{
  9543  			Header:         res.Header,
  9544  			HTTPStatusCode: res.StatusCode,
  9545  		},
  9546  	}
  9547  	target := &ret
  9548  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9549  		return nil, err
  9550  	}
  9551  	return ret, nil
  9552  }
  9553  
  9554  type BiddersAccountsFilterSetsListCall struct {
  9555  	s            *Service
  9556  	ownerName    string
  9557  	urlParams_   gensupport.URLParams
  9558  	ifNoneMatch_ string
  9559  	ctx_         context.Context
  9560  	header_      http.Header
  9561  }
  9562  
  9563  // List: Lists all filter sets for the account with the given account ID.
  9564  //
  9565  //   - ownerName: Name of the owner (bidder or account) of the filter sets to be
  9566  //     listed. For example: - For a bidder-level filter set for bidder 123:
  9567  //     `bidders/123` - For an account-level filter set for the buyer account
  9568  //     representing bidder 123: `bidders/123/accounts/123` - For an account-level
  9569  //     filter set for the child seat buyer account 456 whose bidder is 123:
  9570  //     `bidders/123/accounts/456`.
  9571  func (r *BiddersAccountsFilterSetsService) List(ownerName string) *BiddersAccountsFilterSetsListCall {
  9572  	c := &BiddersAccountsFilterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9573  	c.ownerName = ownerName
  9574  	return c
  9575  }
  9576  
  9577  // PageSize sets the optional parameter "pageSize": Requested page size. The
  9578  // server may return fewer results than requested. If unspecified, the server
  9579  // will pick an appropriate default.
  9580  func (c *BiddersAccountsFilterSetsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsListCall {
  9581  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9582  	return c
  9583  }
  9584  
  9585  // PageToken sets the optional parameter "pageToken": A token identifying a
  9586  // page of results the server should return. Typically, this is the value of
  9587  // ListFilterSetsResponse.nextPageToken returned from the previous call to the
  9588  // accounts.filterSets.list method.
  9589  func (c *BiddersAccountsFilterSetsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsListCall {
  9590  	c.urlParams_.Set("pageToken", pageToken)
  9591  	return c
  9592  }
  9593  
  9594  // Fields allows partial responses to be retrieved. See
  9595  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9596  // details.
  9597  func (c *BiddersAccountsFilterSetsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsListCall {
  9598  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9599  	return c
  9600  }
  9601  
  9602  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9603  // object's ETag matches the given value. This is useful for getting updates
  9604  // only after the object has changed since the last request.
  9605  func (c *BiddersAccountsFilterSetsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsListCall {
  9606  	c.ifNoneMatch_ = entityTag
  9607  	return c
  9608  }
  9609  
  9610  // Context sets the context to be used in this call's Do method.
  9611  func (c *BiddersAccountsFilterSetsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsListCall {
  9612  	c.ctx_ = ctx
  9613  	return c
  9614  }
  9615  
  9616  // Header returns a http.Header that can be modified by the caller to add
  9617  // headers to the request.
  9618  func (c *BiddersAccountsFilterSetsListCall) Header() http.Header {
  9619  	if c.header_ == nil {
  9620  		c.header_ = make(http.Header)
  9621  	}
  9622  	return c.header_
  9623  }
  9624  
  9625  func (c *BiddersAccountsFilterSetsListCall) doRequest(alt string) (*http.Response, error) {
  9626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9627  	if c.ifNoneMatch_ != "" {
  9628  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9629  	}
  9630  	var body io.Reader = nil
  9631  	c.urlParams_.Set("alt", alt)
  9632  	c.urlParams_.Set("prettyPrint", "false")
  9633  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+ownerName}/filterSets")
  9634  	urls += "?" + c.urlParams_.Encode()
  9635  	req, err := http.NewRequest("GET", urls, body)
  9636  	if err != nil {
  9637  		return nil, err
  9638  	}
  9639  	req.Header = reqHeaders
  9640  	googleapi.Expand(req.URL, map[string]string{
  9641  		"ownerName": c.ownerName,
  9642  	})
  9643  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9644  }
  9645  
  9646  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.list" call.
  9647  // Any non-2xx status code is an error. Response headers are in either
  9648  // *ListFilterSetsResponse.ServerResponse.Header or (if a response was returned
  9649  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9650  // check whether the returned error was because http.StatusNotModified was
  9651  // returned.
  9652  func (c *BiddersAccountsFilterSetsListCall) Do(opts ...googleapi.CallOption) (*ListFilterSetsResponse, error) {
  9653  	gensupport.SetOptions(c.urlParams_, opts...)
  9654  	res, err := c.doRequest("json")
  9655  	if res != nil && res.StatusCode == http.StatusNotModified {
  9656  		if res.Body != nil {
  9657  			res.Body.Close()
  9658  		}
  9659  		return nil, gensupport.WrapError(&googleapi.Error{
  9660  			Code:   res.StatusCode,
  9661  			Header: res.Header,
  9662  		})
  9663  	}
  9664  	if err != nil {
  9665  		return nil, err
  9666  	}
  9667  	defer googleapi.CloseBody(res)
  9668  	if err := googleapi.CheckResponse(res); err != nil {
  9669  		return nil, gensupport.WrapError(err)
  9670  	}
  9671  	ret := &ListFilterSetsResponse{
  9672  		ServerResponse: googleapi.ServerResponse{
  9673  			Header:         res.Header,
  9674  			HTTPStatusCode: res.StatusCode,
  9675  		},
  9676  	}
  9677  	target := &ret
  9678  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9679  		return nil, err
  9680  	}
  9681  	return ret, nil
  9682  }
  9683  
  9684  // Pages invokes f for each page of results.
  9685  // A non-nil error returned from f will halt the iteration.
  9686  // The provided context supersedes any context provided to the Context method.
  9687  func (c *BiddersAccountsFilterSetsListCall) Pages(ctx context.Context, f func(*ListFilterSetsResponse) error) error {
  9688  	c.ctx_ = ctx
  9689  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9690  	for {
  9691  		x, err := c.Do()
  9692  		if err != nil {
  9693  			return err
  9694  		}
  9695  		if err := f(x); err != nil {
  9696  			return err
  9697  		}
  9698  		if x.NextPageToken == "" {
  9699  			return nil
  9700  		}
  9701  		c.PageToken(x.NextPageToken)
  9702  	}
  9703  }
  9704  
  9705  type BiddersAccountsFilterSetsBidMetricsListCall struct {
  9706  	s             *Service
  9707  	filterSetName string
  9708  	urlParams_    gensupport.URLParams
  9709  	ifNoneMatch_  string
  9710  	ctx_          context.Context
  9711  	header_       http.Header
  9712  }
  9713  
  9714  // List: Lists all metrics that are measured in terms of number of bids.
  9715  //
  9716  //   - filterSetName: Name of the filter set that should be applied to the
  9717  //     requested metrics. For example: - For a bidder-level filter set for bidder
  9718  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
  9719  //     the buyer account representing bidder 123:
  9720  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
  9721  //     set for the child seat buyer account 456 whose bidder is 123:
  9722  //     `bidders/123/accounts/456/filterSets/abc`.
  9723  func (r *BiddersAccountsFilterSetsBidMetricsService) List(filterSetName string) *BiddersAccountsFilterSetsBidMetricsListCall {
  9724  	c := &BiddersAccountsFilterSetsBidMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9725  	c.filterSetName = filterSetName
  9726  	return c
  9727  }
  9728  
  9729  // PageSize sets the optional parameter "pageSize": Requested page size. The
  9730  // server may return fewer results than requested. If unspecified, the server
  9731  // will pick an appropriate default.
  9732  func (c *BiddersAccountsFilterSetsBidMetricsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsBidMetricsListCall {
  9733  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9734  	return c
  9735  }
  9736  
  9737  // PageToken sets the optional parameter "pageToken": A token identifying a
  9738  // page of results the server should return. Typically, this is the value of
  9739  // ListBidMetricsResponse.nextPageToken returned from the previous call to the
  9740  // bidMetrics.list method.
  9741  func (c *BiddersAccountsFilterSetsBidMetricsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsBidMetricsListCall {
  9742  	c.urlParams_.Set("pageToken", pageToken)
  9743  	return c
  9744  }
  9745  
  9746  // Fields allows partial responses to be retrieved. See
  9747  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9748  // details.
  9749  func (c *BiddersAccountsFilterSetsBidMetricsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsBidMetricsListCall {
  9750  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9751  	return c
  9752  }
  9753  
  9754  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9755  // object's ETag matches the given value. This is useful for getting updates
  9756  // only after the object has changed since the last request.
  9757  func (c *BiddersAccountsFilterSetsBidMetricsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsBidMetricsListCall {
  9758  	c.ifNoneMatch_ = entityTag
  9759  	return c
  9760  }
  9761  
  9762  // Context sets the context to be used in this call's Do method.
  9763  func (c *BiddersAccountsFilterSetsBidMetricsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsBidMetricsListCall {
  9764  	c.ctx_ = ctx
  9765  	return c
  9766  }
  9767  
  9768  // Header returns a http.Header that can be modified by the caller to add
  9769  // headers to the request.
  9770  func (c *BiddersAccountsFilterSetsBidMetricsListCall) Header() http.Header {
  9771  	if c.header_ == nil {
  9772  		c.header_ = make(http.Header)
  9773  	}
  9774  	return c.header_
  9775  }
  9776  
  9777  func (c *BiddersAccountsFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Response, error) {
  9778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9779  	if c.ifNoneMatch_ != "" {
  9780  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9781  	}
  9782  	var body io.Reader = nil
  9783  	c.urlParams_.Set("alt", alt)
  9784  	c.urlParams_.Set("prettyPrint", "false")
  9785  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidMetrics")
  9786  	urls += "?" + c.urlParams_.Encode()
  9787  	req, err := http.NewRequest("GET", urls, body)
  9788  	if err != nil {
  9789  		return nil, err
  9790  	}
  9791  	req.Header = reqHeaders
  9792  	googleapi.Expand(req.URL, map[string]string{
  9793  		"filterSetName": c.filterSetName,
  9794  	})
  9795  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9796  }
  9797  
  9798  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.bidMetrics.list" call.
  9799  // Any non-2xx status code is an error. Response headers are in either
  9800  // *ListBidMetricsResponse.ServerResponse.Header or (if a response was returned
  9801  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9802  // check whether the returned error was because http.StatusNotModified was
  9803  // returned.
  9804  func (c *BiddersAccountsFilterSetsBidMetricsListCall) Do(opts ...googleapi.CallOption) (*ListBidMetricsResponse, error) {
  9805  	gensupport.SetOptions(c.urlParams_, opts...)
  9806  	res, err := c.doRequest("json")
  9807  	if res != nil && res.StatusCode == http.StatusNotModified {
  9808  		if res.Body != nil {
  9809  			res.Body.Close()
  9810  		}
  9811  		return nil, gensupport.WrapError(&googleapi.Error{
  9812  			Code:   res.StatusCode,
  9813  			Header: res.Header,
  9814  		})
  9815  	}
  9816  	if err != nil {
  9817  		return nil, err
  9818  	}
  9819  	defer googleapi.CloseBody(res)
  9820  	if err := googleapi.CheckResponse(res); err != nil {
  9821  		return nil, gensupport.WrapError(err)
  9822  	}
  9823  	ret := &ListBidMetricsResponse{
  9824  		ServerResponse: googleapi.ServerResponse{
  9825  			Header:         res.Header,
  9826  			HTTPStatusCode: res.StatusCode,
  9827  		},
  9828  	}
  9829  	target := &ret
  9830  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9831  		return nil, err
  9832  	}
  9833  	return ret, nil
  9834  }
  9835  
  9836  // Pages invokes f for each page of results.
  9837  // A non-nil error returned from f will halt the iteration.
  9838  // The provided context supersedes any context provided to the Context method.
  9839  func (c *BiddersAccountsFilterSetsBidMetricsListCall) Pages(ctx context.Context, f func(*ListBidMetricsResponse) error) error {
  9840  	c.ctx_ = ctx
  9841  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9842  	for {
  9843  		x, err := c.Do()
  9844  		if err != nil {
  9845  			return err
  9846  		}
  9847  		if err := f(x); err != nil {
  9848  			return err
  9849  		}
  9850  		if x.NextPageToken == "" {
  9851  			return nil
  9852  		}
  9853  		c.PageToken(x.NextPageToken)
  9854  	}
  9855  }
  9856  
  9857  type BiddersAccountsFilterSetsBidResponseErrorsListCall struct {
  9858  	s             *Service
  9859  	filterSetName string
  9860  	urlParams_    gensupport.URLParams
  9861  	ifNoneMatch_  string
  9862  	ctx_          context.Context
  9863  	header_       http.Header
  9864  }
  9865  
  9866  // List: List all errors that occurred in bid responses, with the number of bid
  9867  // responses affected for each reason.
  9868  //
  9869  //   - filterSetName: Name of the filter set that should be applied to the
  9870  //     requested metrics. For example: - For a bidder-level filter set for bidder
  9871  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
  9872  //     the buyer account representing bidder 123:
  9873  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
  9874  //     set for the child seat buyer account 456 whose bidder is 123:
  9875  //     `bidders/123/accounts/456/filterSets/abc`.
  9876  func (r *BiddersAccountsFilterSetsBidResponseErrorsService) List(filterSetName string) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
  9877  	c := &BiddersAccountsFilterSetsBidResponseErrorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9878  	c.filterSetName = filterSetName
  9879  	return c
  9880  }
  9881  
  9882  // PageSize sets the optional parameter "pageSize": Requested page size. The
  9883  // server may return fewer results than requested. If unspecified, the server
  9884  // will pick an appropriate default.
  9885  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
  9886  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9887  	return c
  9888  }
  9889  
  9890  // PageToken sets the optional parameter "pageToken": A token identifying a
  9891  // page of results the server should return. Typically, this is the value of
  9892  // ListBidResponseErrorsResponse.nextPageToken returned from the previous call
  9893  // to the bidResponseErrors.list method.
  9894  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
  9895  	c.urlParams_.Set("pageToken", pageToken)
  9896  	return c
  9897  }
  9898  
  9899  // Fields allows partial responses to be retrieved. See
  9900  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9901  // details.
  9902  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
  9903  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9904  	return c
  9905  }
  9906  
  9907  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9908  // object's ETag matches the given value. This is useful for getting updates
  9909  // only after the object has changed since the last request.
  9910  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
  9911  	c.ifNoneMatch_ = entityTag
  9912  	return c
  9913  }
  9914  
  9915  // Context sets the context to be used in this call's Do method.
  9916  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
  9917  	c.ctx_ = ctx
  9918  	return c
  9919  }
  9920  
  9921  // Header returns a http.Header that can be modified by the caller to add
  9922  // headers to the request.
  9923  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Header() http.Header {
  9924  	if c.header_ == nil {
  9925  		c.header_ = make(http.Header)
  9926  	}
  9927  	return c.header_
  9928  }
  9929  
  9930  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*http.Response, error) {
  9931  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9932  	if c.ifNoneMatch_ != "" {
  9933  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9934  	}
  9935  	var body io.Reader = nil
  9936  	c.urlParams_.Set("alt", alt)
  9937  	c.urlParams_.Set("prettyPrint", "false")
  9938  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidResponseErrors")
  9939  	urls += "?" + c.urlParams_.Encode()
  9940  	req, err := http.NewRequest("GET", urls, body)
  9941  	if err != nil {
  9942  		return nil, err
  9943  	}
  9944  	req.Header = reqHeaders
  9945  	googleapi.Expand(req.URL, map[string]string{
  9946  		"filterSetName": c.filterSetName,
  9947  	})
  9948  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9949  }
  9950  
  9951  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.bidResponseErrors.list" call.
  9952  // Any non-2xx status code is an error. Response headers are in either
  9953  // *ListBidResponseErrorsResponse.ServerResponse.Header or (if a response was
  9954  // returned at all) in error.(*googleapi.Error).Header. Use
  9955  // googleapi.IsNotModified to check whether the returned error was because
  9956  // http.StatusNotModified was returned.
  9957  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Do(opts ...googleapi.CallOption) (*ListBidResponseErrorsResponse, error) {
  9958  	gensupport.SetOptions(c.urlParams_, opts...)
  9959  	res, err := c.doRequest("json")
  9960  	if res != nil && res.StatusCode == http.StatusNotModified {
  9961  		if res.Body != nil {
  9962  			res.Body.Close()
  9963  		}
  9964  		return nil, gensupport.WrapError(&googleapi.Error{
  9965  			Code:   res.StatusCode,
  9966  			Header: res.Header,
  9967  		})
  9968  	}
  9969  	if err != nil {
  9970  		return nil, err
  9971  	}
  9972  	defer googleapi.CloseBody(res)
  9973  	if err := googleapi.CheckResponse(res); err != nil {
  9974  		return nil, gensupport.WrapError(err)
  9975  	}
  9976  	ret := &ListBidResponseErrorsResponse{
  9977  		ServerResponse: googleapi.ServerResponse{
  9978  			Header:         res.Header,
  9979  			HTTPStatusCode: res.StatusCode,
  9980  		},
  9981  	}
  9982  	target := &ret
  9983  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9984  		return nil, err
  9985  	}
  9986  	return ret, nil
  9987  }
  9988  
  9989  // Pages invokes f for each page of results.
  9990  // A non-nil error returned from f will halt the iteration.
  9991  // The provided context supersedes any context provided to the Context method.
  9992  func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Pages(ctx context.Context, f func(*ListBidResponseErrorsResponse) error) error {
  9993  	c.ctx_ = ctx
  9994  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9995  	for {
  9996  		x, err := c.Do()
  9997  		if err != nil {
  9998  			return err
  9999  		}
 10000  		if err := f(x); err != nil {
 10001  			return err
 10002  		}
 10003  		if x.NextPageToken == "" {
 10004  			return nil
 10005  		}
 10006  		c.PageToken(x.NextPageToken)
 10007  	}
 10008  }
 10009  
 10010  type BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall struct {
 10011  	s             *Service
 10012  	filterSetName string
 10013  	urlParams_    gensupport.URLParams
 10014  	ifNoneMatch_  string
 10015  	ctx_          context.Context
 10016  	header_       http.Header
 10017  }
 10018  
 10019  // List: List all reasons for which bid responses were considered to have no
 10020  // applicable bids, with the number of bid responses affected for each reason.
 10021  //
 10022  //   - filterSetName: Name of the filter set that should be applied to the
 10023  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10024  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10025  //     the buyer account representing bidder 123:
 10026  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10027  //     set for the child seat buyer account 456 whose bidder is 123:
 10028  //     `bidders/123/accounts/456/filterSets/abc`.
 10029  func (r *BiddersAccountsFilterSetsBidResponsesWithoutBidsService) List(filterSetName string) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
 10030  	c := &BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10031  	c.filterSetName = filterSetName
 10032  	return c
 10033  }
 10034  
 10035  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10036  // server may return fewer results than requested. If unspecified, the server
 10037  // will pick an appropriate default.
 10038  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
 10039  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10040  	return c
 10041  }
 10042  
 10043  // PageToken sets the optional parameter "pageToken": A token identifying a
 10044  // page of results the server should return. Typically, this is the value of
 10045  // ListBidResponsesWithoutBidsResponse.nextPageToken returned from the previous
 10046  // call to the bidResponsesWithoutBids.list method.
 10047  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
 10048  	c.urlParams_.Set("pageToken", pageToken)
 10049  	return c
 10050  }
 10051  
 10052  // Fields allows partial responses to be retrieved. See
 10053  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10054  // details.
 10055  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
 10056  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10057  	return c
 10058  }
 10059  
 10060  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10061  // object's ETag matches the given value. This is useful for getting updates
 10062  // only after the object has changed since the last request.
 10063  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
 10064  	c.ifNoneMatch_ = entityTag
 10065  	return c
 10066  }
 10067  
 10068  // Context sets the context to be used in this call's Do method.
 10069  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
 10070  	c.ctx_ = ctx
 10071  	return c
 10072  }
 10073  
 10074  // Header returns a http.Header that can be modified by the caller to add
 10075  // headers to the request.
 10076  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Header() http.Header {
 10077  	if c.header_ == nil {
 10078  		c.header_ = make(http.Header)
 10079  	}
 10080  	return c.header_
 10081  }
 10082  
 10083  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) (*http.Response, error) {
 10084  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10085  	if c.ifNoneMatch_ != "" {
 10086  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10087  	}
 10088  	var body io.Reader = nil
 10089  	c.urlParams_.Set("alt", alt)
 10090  	c.urlParams_.Set("prettyPrint", "false")
 10091  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidResponsesWithoutBids")
 10092  	urls += "?" + c.urlParams_.Encode()
 10093  	req, err := http.NewRequest("GET", urls, body)
 10094  	if err != nil {
 10095  		return nil, err
 10096  	}
 10097  	req.Header = reqHeaders
 10098  	googleapi.Expand(req.URL, map[string]string{
 10099  		"filterSetName": c.filterSetName,
 10100  	})
 10101  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10102  }
 10103  
 10104  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.bidResponsesWithoutBids.list" call.
 10105  // Any non-2xx status code is an error. Response headers are in either
 10106  // *ListBidResponsesWithoutBidsResponse.ServerResponse.Header or (if a response
 10107  // was returned at all) in error.(*googleapi.Error).Header. Use
 10108  // googleapi.IsNotModified to check whether the returned error was because
 10109  // http.StatusNotModified was returned.
 10110  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Do(opts ...googleapi.CallOption) (*ListBidResponsesWithoutBidsResponse, error) {
 10111  	gensupport.SetOptions(c.urlParams_, opts...)
 10112  	res, err := c.doRequest("json")
 10113  	if res != nil && res.StatusCode == http.StatusNotModified {
 10114  		if res.Body != nil {
 10115  			res.Body.Close()
 10116  		}
 10117  		return nil, gensupport.WrapError(&googleapi.Error{
 10118  			Code:   res.StatusCode,
 10119  			Header: res.Header,
 10120  		})
 10121  	}
 10122  	if err != nil {
 10123  		return nil, err
 10124  	}
 10125  	defer googleapi.CloseBody(res)
 10126  	if err := googleapi.CheckResponse(res); err != nil {
 10127  		return nil, gensupport.WrapError(err)
 10128  	}
 10129  	ret := &ListBidResponsesWithoutBidsResponse{
 10130  		ServerResponse: googleapi.ServerResponse{
 10131  			Header:         res.Header,
 10132  			HTTPStatusCode: res.StatusCode,
 10133  		},
 10134  	}
 10135  	target := &ret
 10136  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10137  		return nil, err
 10138  	}
 10139  	return ret, nil
 10140  }
 10141  
 10142  // Pages invokes f for each page of results.
 10143  // A non-nil error returned from f will halt the iteration.
 10144  // The provided context supersedes any context provided to the Context method.
 10145  func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Pages(ctx context.Context, f func(*ListBidResponsesWithoutBidsResponse) error) error {
 10146  	c.ctx_ = ctx
 10147  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10148  	for {
 10149  		x, err := c.Do()
 10150  		if err != nil {
 10151  			return err
 10152  		}
 10153  		if err := f(x); err != nil {
 10154  			return err
 10155  		}
 10156  		if x.NextPageToken == "" {
 10157  			return nil
 10158  		}
 10159  		c.PageToken(x.NextPageToken)
 10160  	}
 10161  }
 10162  
 10163  type BiddersAccountsFilterSetsFilteredBidRequestsListCall struct {
 10164  	s             *Service
 10165  	filterSetName string
 10166  	urlParams_    gensupport.URLParams
 10167  	ifNoneMatch_  string
 10168  	ctx_          context.Context
 10169  	header_       http.Header
 10170  }
 10171  
 10172  // List: List all reasons that caused a bid request not to be sent for an
 10173  // impression, with the number of bid requests not sent for each reason.
 10174  //
 10175  //   - filterSetName: Name of the filter set that should be applied to the
 10176  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10177  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10178  //     the buyer account representing bidder 123:
 10179  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10180  //     set for the child seat buyer account 456 whose bidder is 123:
 10181  //     `bidders/123/accounts/456/filterSets/abc`.
 10182  func (r *BiddersAccountsFilterSetsFilteredBidRequestsService) List(filterSetName string) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
 10183  	c := &BiddersAccountsFilterSetsFilteredBidRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10184  	c.filterSetName = filterSetName
 10185  	return c
 10186  }
 10187  
 10188  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10189  // server may return fewer results than requested. If unspecified, the server
 10190  // will pick an appropriate default.
 10191  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
 10192  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10193  	return c
 10194  }
 10195  
 10196  // PageToken sets the optional parameter "pageToken": A token identifying a
 10197  // page of results the server should return. Typically, this is the value of
 10198  // ListFilteredBidRequestsResponse.nextPageToken returned from the previous
 10199  // call to the filteredBidRequests.list method.
 10200  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
 10201  	c.urlParams_.Set("pageToken", pageToken)
 10202  	return c
 10203  }
 10204  
 10205  // Fields allows partial responses to be retrieved. See
 10206  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10207  // details.
 10208  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
 10209  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10210  	return c
 10211  }
 10212  
 10213  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10214  // object's ETag matches the given value. This is useful for getting updates
 10215  // only after the object has changed since the last request.
 10216  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
 10217  	c.ifNoneMatch_ = entityTag
 10218  	return c
 10219  }
 10220  
 10221  // Context sets the context to be used in this call's Do method.
 10222  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
 10223  	c.ctx_ = ctx
 10224  	return c
 10225  }
 10226  
 10227  // Header returns a http.Header that can be modified by the caller to add
 10228  // headers to the request.
 10229  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Header() http.Header {
 10230  	if c.header_ == nil {
 10231  		c.header_ = make(http.Header)
 10232  	}
 10233  	return c.header_
 10234  }
 10235  
 10236  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*http.Response, error) {
 10237  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10238  	if c.ifNoneMatch_ != "" {
 10239  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10240  	}
 10241  	var body io.Reader = nil
 10242  	c.urlParams_.Set("alt", alt)
 10243  	c.urlParams_.Set("prettyPrint", "false")
 10244  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBidRequests")
 10245  	urls += "?" + c.urlParams_.Encode()
 10246  	req, err := http.NewRequest("GET", urls, body)
 10247  	if err != nil {
 10248  		return nil, err
 10249  	}
 10250  	req.Header = reqHeaders
 10251  	googleapi.Expand(req.URL, map[string]string{
 10252  		"filterSetName": c.filterSetName,
 10253  	})
 10254  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10255  }
 10256  
 10257  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBidRequests.list" call.
 10258  // Any non-2xx status code is an error. Response headers are in either
 10259  // *ListFilteredBidRequestsResponse.ServerResponse.Header or (if a response was
 10260  // returned at all) in error.(*googleapi.Error).Header. Use
 10261  // googleapi.IsNotModified to check whether the returned error was because
 10262  // http.StatusNotModified was returned.
 10263  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Do(opts ...googleapi.CallOption) (*ListFilteredBidRequestsResponse, error) {
 10264  	gensupport.SetOptions(c.urlParams_, opts...)
 10265  	res, err := c.doRequest("json")
 10266  	if res != nil && res.StatusCode == http.StatusNotModified {
 10267  		if res.Body != nil {
 10268  			res.Body.Close()
 10269  		}
 10270  		return nil, gensupport.WrapError(&googleapi.Error{
 10271  			Code:   res.StatusCode,
 10272  			Header: res.Header,
 10273  		})
 10274  	}
 10275  	if err != nil {
 10276  		return nil, err
 10277  	}
 10278  	defer googleapi.CloseBody(res)
 10279  	if err := googleapi.CheckResponse(res); err != nil {
 10280  		return nil, gensupport.WrapError(err)
 10281  	}
 10282  	ret := &ListFilteredBidRequestsResponse{
 10283  		ServerResponse: googleapi.ServerResponse{
 10284  			Header:         res.Header,
 10285  			HTTPStatusCode: res.StatusCode,
 10286  		},
 10287  	}
 10288  	target := &ret
 10289  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10290  		return nil, err
 10291  	}
 10292  	return ret, nil
 10293  }
 10294  
 10295  // Pages invokes f for each page of results.
 10296  // A non-nil error returned from f will halt the iteration.
 10297  // The provided context supersedes any context provided to the Context method.
 10298  func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Pages(ctx context.Context, f func(*ListFilteredBidRequestsResponse) error) error {
 10299  	c.ctx_ = ctx
 10300  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10301  	for {
 10302  		x, err := c.Do()
 10303  		if err != nil {
 10304  			return err
 10305  		}
 10306  		if err := f(x); err != nil {
 10307  			return err
 10308  		}
 10309  		if x.NextPageToken == "" {
 10310  			return nil
 10311  		}
 10312  		c.PageToken(x.NextPageToken)
 10313  	}
 10314  }
 10315  
 10316  type BiddersAccountsFilterSetsFilteredBidsListCall struct {
 10317  	s             *Service
 10318  	filterSetName string
 10319  	urlParams_    gensupport.URLParams
 10320  	ifNoneMatch_  string
 10321  	ctx_          context.Context
 10322  	header_       http.Header
 10323  }
 10324  
 10325  // List: List all reasons for which bids were filtered, with the number of bids
 10326  // filtered for each reason.
 10327  //
 10328  //   - filterSetName: Name of the filter set that should be applied to the
 10329  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10330  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10331  //     the buyer account representing bidder 123:
 10332  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10333  //     set for the child seat buyer account 456 whose bidder is 123:
 10334  //     `bidders/123/accounts/456/filterSets/abc`.
 10335  func (r *BiddersAccountsFilterSetsFilteredBidsService) List(filterSetName string) *BiddersAccountsFilterSetsFilteredBidsListCall {
 10336  	c := &BiddersAccountsFilterSetsFilteredBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10337  	c.filterSetName = filterSetName
 10338  	return c
 10339  }
 10340  
 10341  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10342  // server may return fewer results than requested. If unspecified, the server
 10343  // will pick an appropriate default.
 10344  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidsListCall {
 10345  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10346  	return c
 10347  }
 10348  
 10349  // PageToken sets the optional parameter "pageToken": A token identifying a
 10350  // page of results the server should return. Typically, this is the value of
 10351  // ListFilteredBidsResponse.nextPageToken returned from the previous call to
 10352  // the filteredBids.list method.
 10353  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidsListCall {
 10354  	c.urlParams_.Set("pageToken", pageToken)
 10355  	return c
 10356  }
 10357  
 10358  // Fields allows partial responses to be retrieved. See
 10359  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10360  // details.
 10361  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidsListCall {
 10362  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10363  	return c
 10364  }
 10365  
 10366  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10367  // object's ETag matches the given value. This is useful for getting updates
 10368  // only after the object has changed since the last request.
 10369  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidsListCall {
 10370  	c.ifNoneMatch_ = entityTag
 10371  	return c
 10372  }
 10373  
 10374  // Context sets the context to be used in this call's Do method.
 10375  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidsListCall {
 10376  	c.ctx_ = ctx
 10377  	return c
 10378  }
 10379  
 10380  // Header returns a http.Header that can be modified by the caller to add
 10381  // headers to the request.
 10382  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Header() http.Header {
 10383  	if c.header_ == nil {
 10384  		c.header_ = make(http.Header)
 10385  	}
 10386  	return c.header_
 10387  }
 10388  
 10389  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Response, error) {
 10390  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10391  	if c.ifNoneMatch_ != "" {
 10392  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10393  	}
 10394  	var body io.Reader = nil
 10395  	c.urlParams_.Set("alt", alt)
 10396  	c.urlParams_.Set("prettyPrint", "false")
 10397  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids")
 10398  	urls += "?" + c.urlParams_.Encode()
 10399  	req, err := http.NewRequest("GET", urls, body)
 10400  	if err != nil {
 10401  		return nil, err
 10402  	}
 10403  	req.Header = reqHeaders
 10404  	googleapi.Expand(req.URL, map[string]string{
 10405  		"filterSetName": c.filterSetName,
 10406  	})
 10407  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10408  }
 10409  
 10410  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBids.list" call.
 10411  // Any non-2xx status code is an error. Response headers are in either
 10412  // *ListFilteredBidsResponse.ServerResponse.Header or (if a response was
 10413  // returned at all) in error.(*googleapi.Error).Header. Use
 10414  // googleapi.IsNotModified to check whether the returned error was because
 10415  // http.StatusNotModified was returned.
 10416  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Do(opts ...googleapi.CallOption) (*ListFilteredBidsResponse, error) {
 10417  	gensupport.SetOptions(c.urlParams_, opts...)
 10418  	res, err := c.doRequest("json")
 10419  	if res != nil && res.StatusCode == http.StatusNotModified {
 10420  		if res.Body != nil {
 10421  			res.Body.Close()
 10422  		}
 10423  		return nil, gensupport.WrapError(&googleapi.Error{
 10424  			Code:   res.StatusCode,
 10425  			Header: res.Header,
 10426  		})
 10427  	}
 10428  	if err != nil {
 10429  		return nil, err
 10430  	}
 10431  	defer googleapi.CloseBody(res)
 10432  	if err := googleapi.CheckResponse(res); err != nil {
 10433  		return nil, gensupport.WrapError(err)
 10434  	}
 10435  	ret := &ListFilteredBidsResponse{
 10436  		ServerResponse: googleapi.ServerResponse{
 10437  			Header:         res.Header,
 10438  			HTTPStatusCode: res.StatusCode,
 10439  		},
 10440  	}
 10441  	target := &ret
 10442  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10443  		return nil, err
 10444  	}
 10445  	return ret, nil
 10446  }
 10447  
 10448  // Pages invokes f for each page of results.
 10449  // A non-nil error returned from f will halt the iteration.
 10450  // The provided context supersedes any context provided to the Context method.
 10451  func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Pages(ctx context.Context, f func(*ListFilteredBidsResponse) error) error {
 10452  	c.ctx_ = ctx
 10453  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10454  	for {
 10455  		x, err := c.Do()
 10456  		if err != nil {
 10457  			return err
 10458  		}
 10459  		if err := f(x); err != nil {
 10460  			return err
 10461  		}
 10462  		if x.NextPageToken == "" {
 10463  			return nil
 10464  		}
 10465  		c.PageToken(x.NextPageToken)
 10466  	}
 10467  }
 10468  
 10469  type BiddersAccountsFilterSetsFilteredBidsCreativesListCall struct {
 10470  	s                *Service
 10471  	filterSetName    string
 10472  	creativeStatusId int64
 10473  	urlParams_       gensupport.URLParams
 10474  	ifNoneMatch_     string
 10475  	ctx_             context.Context
 10476  	header_          http.Header
 10477  }
 10478  
 10479  // List: List all creatives associated with a specific reason for which bids
 10480  // were filtered, with the number of bids filtered for each creative.
 10481  //
 10482  //   - creativeStatusId: The ID of the creative status for which to retrieve a
 10483  //     breakdown by creative. See creative-status-codes
 10484  //     (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
 10485  //   - filterSetName: Name of the filter set that should be applied to the
 10486  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10487  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10488  //     the buyer account representing bidder 123:
 10489  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10490  //     set for the child seat buyer account 456 whose bidder is 123:
 10491  //     `bidders/123/accounts/456/filterSets/abc`.
 10492  func (r *BiddersAccountsFilterSetsFilteredBidsCreativesService) List(filterSetName string, creativeStatusId int64) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
 10493  	c := &BiddersAccountsFilterSetsFilteredBidsCreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10494  	c.filterSetName = filterSetName
 10495  	c.creativeStatusId = creativeStatusId
 10496  	return c
 10497  }
 10498  
 10499  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10500  // server may return fewer results than requested. If unspecified, the server
 10501  // will pick an appropriate default.
 10502  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
 10503  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10504  	return c
 10505  }
 10506  
 10507  // PageToken sets the optional parameter "pageToken": A token identifying a
 10508  // page of results the server should return. Typically, this is the value of
 10509  // ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from
 10510  // the previous call to the filteredBids.creatives.list method.
 10511  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
 10512  	c.urlParams_.Set("pageToken", pageToken)
 10513  	return c
 10514  }
 10515  
 10516  // Fields allows partial responses to be retrieved. See
 10517  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10518  // details.
 10519  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
 10520  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10521  	return c
 10522  }
 10523  
 10524  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10525  // object's ETag matches the given value. This is useful for getting updates
 10526  // only after the object has changed since the last request.
 10527  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
 10528  	c.ifNoneMatch_ = entityTag
 10529  	return c
 10530  }
 10531  
 10532  // Context sets the context to be used in this call's Do method.
 10533  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
 10534  	c.ctx_ = ctx
 10535  	return c
 10536  }
 10537  
 10538  // Header returns a http.Header that can be modified by the caller to add
 10539  // headers to the request.
 10540  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Header() http.Header {
 10541  	if c.header_ == nil {
 10542  		c.header_ = make(http.Header)
 10543  	}
 10544  	return c.header_
 10545  }
 10546  
 10547  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) (*http.Response, error) {
 10548  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10549  	if c.ifNoneMatch_ != "" {
 10550  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10551  	}
 10552  	var body io.Reader = nil
 10553  	c.urlParams_.Set("alt", alt)
 10554  	c.urlParams_.Set("prettyPrint", "false")
 10555  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives")
 10556  	urls += "?" + c.urlParams_.Encode()
 10557  	req, err := http.NewRequest("GET", urls, body)
 10558  	if err != nil {
 10559  		return nil, err
 10560  	}
 10561  	req.Header = reqHeaders
 10562  	googleapi.Expand(req.URL, map[string]string{
 10563  		"filterSetName":    c.filterSetName,
 10564  		"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
 10565  	})
 10566  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10567  }
 10568  
 10569  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBids.creatives.list" call.
 10570  // Any non-2xx status code is an error. Response headers are in either
 10571  // *ListCreativeStatusBreakdownByCreativeResponse.ServerResponse.Header or (if
 10572  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 10573  // googleapi.IsNotModified to check whether the returned error was because
 10574  // http.StatusNotModified was returned.
 10575  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusBreakdownByCreativeResponse, error) {
 10576  	gensupport.SetOptions(c.urlParams_, opts...)
 10577  	res, err := c.doRequest("json")
 10578  	if res != nil && res.StatusCode == http.StatusNotModified {
 10579  		if res.Body != nil {
 10580  			res.Body.Close()
 10581  		}
 10582  		return nil, gensupport.WrapError(&googleapi.Error{
 10583  			Code:   res.StatusCode,
 10584  			Header: res.Header,
 10585  		})
 10586  	}
 10587  	if err != nil {
 10588  		return nil, err
 10589  	}
 10590  	defer googleapi.CloseBody(res)
 10591  	if err := googleapi.CheckResponse(res); err != nil {
 10592  		return nil, gensupport.WrapError(err)
 10593  	}
 10594  	ret := &ListCreativeStatusBreakdownByCreativeResponse{
 10595  		ServerResponse: googleapi.ServerResponse{
 10596  			Header:         res.Header,
 10597  			HTTPStatusCode: res.StatusCode,
 10598  		},
 10599  	}
 10600  	target := &ret
 10601  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10602  		return nil, err
 10603  	}
 10604  	return ret, nil
 10605  }
 10606  
 10607  // Pages invokes f for each page of results.
 10608  // A non-nil error returned from f will halt the iteration.
 10609  // The provided context supersedes any context provided to the Context method.
 10610  func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativeStatusBreakdownByCreativeResponse) error) error {
 10611  	c.ctx_ = ctx
 10612  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10613  	for {
 10614  		x, err := c.Do()
 10615  		if err != nil {
 10616  			return err
 10617  		}
 10618  		if err := f(x); err != nil {
 10619  			return err
 10620  		}
 10621  		if x.NextPageToken == "" {
 10622  			return nil
 10623  		}
 10624  		c.PageToken(x.NextPageToken)
 10625  	}
 10626  }
 10627  
 10628  type BiddersAccountsFilterSetsFilteredBidsDetailsListCall struct {
 10629  	s                *Service
 10630  	filterSetName    string
 10631  	creativeStatusId int64
 10632  	urlParams_       gensupport.URLParams
 10633  	ifNoneMatch_     string
 10634  	ctx_             context.Context
 10635  	header_          http.Header
 10636  }
 10637  
 10638  // List: List all details associated with a specific reason for which bids were
 10639  // filtered, with the number of bids filtered for each detail.
 10640  //
 10641  //   - creativeStatusId: The ID of the creative status for which to retrieve a
 10642  //     breakdown by detail. See creative-status-codes
 10643  //     (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
 10644  //     Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and
 10645  //     87.
 10646  //   - filterSetName: Name of the filter set that should be applied to the
 10647  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10648  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10649  //     the buyer account representing bidder 123:
 10650  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10651  //     set for the child seat buyer account 456 whose bidder is 123:
 10652  //     `bidders/123/accounts/456/filterSets/abc`.
 10653  func (r *BiddersAccountsFilterSetsFilteredBidsDetailsService) List(filterSetName string, creativeStatusId int64) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
 10654  	c := &BiddersAccountsFilterSetsFilteredBidsDetailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10655  	c.filterSetName = filterSetName
 10656  	c.creativeStatusId = creativeStatusId
 10657  	return c
 10658  }
 10659  
 10660  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10661  // server may return fewer results than requested. If unspecified, the server
 10662  // will pick an appropriate default.
 10663  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
 10664  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10665  	return c
 10666  }
 10667  
 10668  // PageToken sets the optional parameter "pageToken": A token identifying a
 10669  // page of results the server should return. Typically, this is the value of
 10670  // ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from the
 10671  // previous call to the filteredBids.details.list method.
 10672  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
 10673  	c.urlParams_.Set("pageToken", pageToken)
 10674  	return c
 10675  }
 10676  
 10677  // Fields allows partial responses to be retrieved. See
 10678  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10679  // details.
 10680  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
 10681  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10682  	return c
 10683  }
 10684  
 10685  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10686  // object's ETag matches the given value. This is useful for getting updates
 10687  // only after the object has changed since the last request.
 10688  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
 10689  	c.ifNoneMatch_ = entityTag
 10690  	return c
 10691  }
 10692  
 10693  // Context sets the context to be used in this call's Do method.
 10694  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
 10695  	c.ctx_ = ctx
 10696  	return c
 10697  }
 10698  
 10699  // Header returns a http.Header that can be modified by the caller to add
 10700  // headers to the request.
 10701  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Header() http.Header {
 10702  	if c.header_ == nil {
 10703  		c.header_ = make(http.Header)
 10704  	}
 10705  	return c.header_
 10706  }
 10707  
 10708  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*http.Response, error) {
 10709  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10710  	if c.ifNoneMatch_ != "" {
 10711  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10712  	}
 10713  	var body io.Reader = nil
 10714  	c.urlParams_.Set("alt", alt)
 10715  	c.urlParams_.Set("prettyPrint", "false")
 10716  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details")
 10717  	urls += "?" + c.urlParams_.Encode()
 10718  	req, err := http.NewRequest("GET", urls, body)
 10719  	if err != nil {
 10720  		return nil, err
 10721  	}
 10722  	req.Header = reqHeaders
 10723  	googleapi.Expand(req.URL, map[string]string{
 10724  		"filterSetName":    c.filterSetName,
 10725  		"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
 10726  	})
 10727  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10728  }
 10729  
 10730  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBids.details.list" call.
 10731  // Any non-2xx status code is an error. Response headers are in either
 10732  // *ListCreativeStatusBreakdownByDetailResponse.ServerResponse.Header or (if a
 10733  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10734  // googleapi.IsNotModified to check whether the returned error was because
 10735  // http.StatusNotModified was returned.
 10736  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusBreakdownByDetailResponse, error) {
 10737  	gensupport.SetOptions(c.urlParams_, opts...)
 10738  	res, err := c.doRequest("json")
 10739  	if res != nil && res.StatusCode == http.StatusNotModified {
 10740  		if res.Body != nil {
 10741  			res.Body.Close()
 10742  		}
 10743  		return nil, gensupport.WrapError(&googleapi.Error{
 10744  			Code:   res.StatusCode,
 10745  			Header: res.Header,
 10746  		})
 10747  	}
 10748  	if err != nil {
 10749  		return nil, err
 10750  	}
 10751  	defer googleapi.CloseBody(res)
 10752  	if err := googleapi.CheckResponse(res); err != nil {
 10753  		return nil, gensupport.WrapError(err)
 10754  	}
 10755  	ret := &ListCreativeStatusBreakdownByDetailResponse{
 10756  		ServerResponse: googleapi.ServerResponse{
 10757  			Header:         res.Header,
 10758  			HTTPStatusCode: res.StatusCode,
 10759  		},
 10760  	}
 10761  	target := &ret
 10762  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10763  		return nil, err
 10764  	}
 10765  	return ret, nil
 10766  }
 10767  
 10768  // Pages invokes f for each page of results.
 10769  // A non-nil error returned from f will halt the iteration.
 10770  // The provided context supersedes any context provided to the Context method.
 10771  func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Pages(ctx context.Context, f func(*ListCreativeStatusBreakdownByDetailResponse) error) error {
 10772  	c.ctx_ = ctx
 10773  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10774  	for {
 10775  		x, err := c.Do()
 10776  		if err != nil {
 10777  			return err
 10778  		}
 10779  		if err := f(x); err != nil {
 10780  			return err
 10781  		}
 10782  		if x.NextPageToken == "" {
 10783  			return nil
 10784  		}
 10785  		c.PageToken(x.NextPageToken)
 10786  	}
 10787  }
 10788  
 10789  type BiddersAccountsFilterSetsImpressionMetricsListCall struct {
 10790  	s             *Service
 10791  	filterSetName string
 10792  	urlParams_    gensupport.URLParams
 10793  	ifNoneMatch_  string
 10794  	ctx_          context.Context
 10795  	header_       http.Header
 10796  }
 10797  
 10798  // List: Lists all metrics that are measured in terms of number of impressions.
 10799  //
 10800  //   - filterSetName: Name of the filter set that should be applied to the
 10801  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10802  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10803  //     the buyer account representing bidder 123:
 10804  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10805  //     set for the child seat buyer account 456 whose bidder is 123:
 10806  //     `bidders/123/accounts/456/filterSets/abc`.
 10807  func (r *BiddersAccountsFilterSetsImpressionMetricsService) List(filterSetName string) *BiddersAccountsFilterSetsImpressionMetricsListCall {
 10808  	c := &BiddersAccountsFilterSetsImpressionMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10809  	c.filterSetName = filterSetName
 10810  	return c
 10811  }
 10812  
 10813  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10814  // server may return fewer results than requested. If unspecified, the server
 10815  // will pick an appropriate default.
 10816  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsImpressionMetricsListCall {
 10817  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10818  	return c
 10819  }
 10820  
 10821  // PageToken sets the optional parameter "pageToken": A token identifying a
 10822  // page of results the server should return. Typically, this is the value of
 10823  // ListImpressionMetricsResponse.nextPageToken returned from the previous call
 10824  // to the impressionMetrics.list method.
 10825  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsImpressionMetricsListCall {
 10826  	c.urlParams_.Set("pageToken", pageToken)
 10827  	return c
 10828  }
 10829  
 10830  // Fields allows partial responses to be retrieved. See
 10831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10832  // details.
 10833  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsImpressionMetricsListCall {
 10834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10835  	return c
 10836  }
 10837  
 10838  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10839  // object's ETag matches the given value. This is useful for getting updates
 10840  // only after the object has changed since the last request.
 10841  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsImpressionMetricsListCall {
 10842  	c.ifNoneMatch_ = entityTag
 10843  	return c
 10844  }
 10845  
 10846  // Context sets the context to be used in this call's Do method.
 10847  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsImpressionMetricsListCall {
 10848  	c.ctx_ = ctx
 10849  	return c
 10850  }
 10851  
 10852  // Header returns a http.Header that can be modified by the caller to add
 10853  // headers to the request.
 10854  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Header() http.Header {
 10855  	if c.header_ == nil {
 10856  		c.header_ = make(http.Header)
 10857  	}
 10858  	return c.header_
 10859  }
 10860  
 10861  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) doRequest(alt string) (*http.Response, error) {
 10862  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10863  	if c.ifNoneMatch_ != "" {
 10864  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10865  	}
 10866  	var body io.Reader = nil
 10867  	c.urlParams_.Set("alt", alt)
 10868  	c.urlParams_.Set("prettyPrint", "false")
 10869  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/impressionMetrics")
 10870  	urls += "?" + c.urlParams_.Encode()
 10871  	req, err := http.NewRequest("GET", urls, body)
 10872  	if err != nil {
 10873  		return nil, err
 10874  	}
 10875  	req.Header = reqHeaders
 10876  	googleapi.Expand(req.URL, map[string]string{
 10877  		"filterSetName": c.filterSetName,
 10878  	})
 10879  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10880  }
 10881  
 10882  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.impressionMetrics.list" call.
 10883  // Any non-2xx status code is an error. Response headers are in either
 10884  // *ListImpressionMetricsResponse.ServerResponse.Header or (if a response was
 10885  // returned at all) in error.(*googleapi.Error).Header. Use
 10886  // googleapi.IsNotModified to check whether the returned error was because
 10887  // http.StatusNotModified was returned.
 10888  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Do(opts ...googleapi.CallOption) (*ListImpressionMetricsResponse, error) {
 10889  	gensupport.SetOptions(c.urlParams_, opts...)
 10890  	res, err := c.doRequest("json")
 10891  	if res != nil && res.StatusCode == http.StatusNotModified {
 10892  		if res.Body != nil {
 10893  			res.Body.Close()
 10894  		}
 10895  		return nil, gensupport.WrapError(&googleapi.Error{
 10896  			Code:   res.StatusCode,
 10897  			Header: res.Header,
 10898  		})
 10899  	}
 10900  	if err != nil {
 10901  		return nil, err
 10902  	}
 10903  	defer googleapi.CloseBody(res)
 10904  	if err := googleapi.CheckResponse(res); err != nil {
 10905  		return nil, gensupport.WrapError(err)
 10906  	}
 10907  	ret := &ListImpressionMetricsResponse{
 10908  		ServerResponse: googleapi.ServerResponse{
 10909  			Header:         res.Header,
 10910  			HTTPStatusCode: res.StatusCode,
 10911  		},
 10912  	}
 10913  	target := &ret
 10914  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10915  		return nil, err
 10916  	}
 10917  	return ret, nil
 10918  }
 10919  
 10920  // Pages invokes f for each page of results.
 10921  // A non-nil error returned from f will halt the iteration.
 10922  // The provided context supersedes any context provided to the Context method.
 10923  func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Pages(ctx context.Context, f func(*ListImpressionMetricsResponse) error) error {
 10924  	c.ctx_ = ctx
 10925  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10926  	for {
 10927  		x, err := c.Do()
 10928  		if err != nil {
 10929  			return err
 10930  		}
 10931  		if err := f(x); err != nil {
 10932  			return err
 10933  		}
 10934  		if x.NextPageToken == "" {
 10935  			return nil
 10936  		}
 10937  		c.PageToken(x.NextPageToken)
 10938  	}
 10939  }
 10940  
 10941  type BiddersAccountsFilterSetsLosingBidsListCall struct {
 10942  	s             *Service
 10943  	filterSetName string
 10944  	urlParams_    gensupport.URLParams
 10945  	ifNoneMatch_  string
 10946  	ctx_          context.Context
 10947  	header_       http.Header
 10948  }
 10949  
 10950  // List: List all reasons for which bids lost in the auction, with the number
 10951  // of bids that lost for each reason.
 10952  //
 10953  //   - filterSetName: Name of the filter set that should be applied to the
 10954  //     requested metrics. For example: - For a bidder-level filter set for bidder
 10955  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 10956  //     the buyer account representing bidder 123:
 10957  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 10958  //     set for the child seat buyer account 456 whose bidder is 123:
 10959  //     `bidders/123/accounts/456/filterSets/abc`.
 10960  func (r *BiddersAccountsFilterSetsLosingBidsService) List(filterSetName string) *BiddersAccountsFilterSetsLosingBidsListCall {
 10961  	c := &BiddersAccountsFilterSetsLosingBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10962  	c.filterSetName = filterSetName
 10963  	return c
 10964  }
 10965  
 10966  // PageSize sets the optional parameter "pageSize": Requested page size. The
 10967  // server may return fewer results than requested. If unspecified, the server
 10968  // will pick an appropriate default.
 10969  func (c *BiddersAccountsFilterSetsLosingBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsLosingBidsListCall {
 10970  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10971  	return c
 10972  }
 10973  
 10974  // PageToken sets the optional parameter "pageToken": A token identifying a
 10975  // page of results the server should return. Typically, this is the value of
 10976  // ListLosingBidsResponse.nextPageToken returned from the previous call to the
 10977  // losingBids.list method.
 10978  func (c *BiddersAccountsFilterSetsLosingBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsLosingBidsListCall {
 10979  	c.urlParams_.Set("pageToken", pageToken)
 10980  	return c
 10981  }
 10982  
 10983  // Fields allows partial responses to be retrieved. See
 10984  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10985  // details.
 10986  func (c *BiddersAccountsFilterSetsLosingBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsLosingBidsListCall {
 10987  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10988  	return c
 10989  }
 10990  
 10991  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10992  // object's ETag matches the given value. This is useful for getting updates
 10993  // only after the object has changed since the last request.
 10994  func (c *BiddersAccountsFilterSetsLosingBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsLosingBidsListCall {
 10995  	c.ifNoneMatch_ = entityTag
 10996  	return c
 10997  }
 10998  
 10999  // Context sets the context to be used in this call's Do method.
 11000  func (c *BiddersAccountsFilterSetsLosingBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsLosingBidsListCall {
 11001  	c.ctx_ = ctx
 11002  	return c
 11003  }
 11004  
 11005  // Header returns a http.Header that can be modified by the caller to add
 11006  // headers to the request.
 11007  func (c *BiddersAccountsFilterSetsLosingBidsListCall) Header() http.Header {
 11008  	if c.header_ == nil {
 11009  		c.header_ = make(http.Header)
 11010  	}
 11011  	return c.header_
 11012  }
 11013  
 11014  func (c *BiddersAccountsFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Response, error) {
 11015  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11016  	if c.ifNoneMatch_ != "" {
 11017  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11018  	}
 11019  	var body io.Reader = nil
 11020  	c.urlParams_.Set("alt", alt)
 11021  	c.urlParams_.Set("prettyPrint", "false")
 11022  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/losingBids")
 11023  	urls += "?" + c.urlParams_.Encode()
 11024  	req, err := http.NewRequest("GET", urls, body)
 11025  	if err != nil {
 11026  		return nil, err
 11027  	}
 11028  	req.Header = reqHeaders
 11029  	googleapi.Expand(req.URL, map[string]string{
 11030  		"filterSetName": c.filterSetName,
 11031  	})
 11032  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11033  }
 11034  
 11035  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.losingBids.list" call.
 11036  // Any non-2xx status code is an error. Response headers are in either
 11037  // *ListLosingBidsResponse.ServerResponse.Header or (if a response was returned
 11038  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11039  // check whether the returned error was because http.StatusNotModified was
 11040  // returned.
 11041  func (c *BiddersAccountsFilterSetsLosingBidsListCall) Do(opts ...googleapi.CallOption) (*ListLosingBidsResponse, error) {
 11042  	gensupport.SetOptions(c.urlParams_, opts...)
 11043  	res, err := c.doRequest("json")
 11044  	if res != nil && res.StatusCode == http.StatusNotModified {
 11045  		if res.Body != nil {
 11046  			res.Body.Close()
 11047  		}
 11048  		return nil, gensupport.WrapError(&googleapi.Error{
 11049  			Code:   res.StatusCode,
 11050  			Header: res.Header,
 11051  		})
 11052  	}
 11053  	if err != nil {
 11054  		return nil, err
 11055  	}
 11056  	defer googleapi.CloseBody(res)
 11057  	if err := googleapi.CheckResponse(res); err != nil {
 11058  		return nil, gensupport.WrapError(err)
 11059  	}
 11060  	ret := &ListLosingBidsResponse{
 11061  		ServerResponse: googleapi.ServerResponse{
 11062  			Header:         res.Header,
 11063  			HTTPStatusCode: res.StatusCode,
 11064  		},
 11065  	}
 11066  	target := &ret
 11067  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11068  		return nil, err
 11069  	}
 11070  	return ret, nil
 11071  }
 11072  
 11073  // Pages invokes f for each page of results.
 11074  // A non-nil error returned from f will halt the iteration.
 11075  // The provided context supersedes any context provided to the Context method.
 11076  func (c *BiddersAccountsFilterSetsLosingBidsListCall) Pages(ctx context.Context, f func(*ListLosingBidsResponse) error) error {
 11077  	c.ctx_ = ctx
 11078  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11079  	for {
 11080  		x, err := c.Do()
 11081  		if err != nil {
 11082  			return err
 11083  		}
 11084  		if err := f(x); err != nil {
 11085  			return err
 11086  		}
 11087  		if x.NextPageToken == "" {
 11088  			return nil
 11089  		}
 11090  		c.PageToken(x.NextPageToken)
 11091  	}
 11092  }
 11093  
 11094  type BiddersAccountsFilterSetsNonBillableWinningBidsListCall struct {
 11095  	s             *Service
 11096  	filterSetName string
 11097  	urlParams_    gensupport.URLParams
 11098  	ifNoneMatch_  string
 11099  	ctx_          context.Context
 11100  	header_       http.Header
 11101  }
 11102  
 11103  // List: List all reasons for which winning bids were not billable, with the
 11104  // number of bids not billed for each reason.
 11105  //
 11106  //   - filterSetName: Name of the filter set that should be applied to the
 11107  //     requested metrics. For example: - For a bidder-level filter set for bidder
 11108  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 11109  //     the buyer account representing bidder 123:
 11110  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 11111  //     set for the child seat buyer account 456 whose bidder is 123:
 11112  //     `bidders/123/accounts/456/filterSets/abc`.
 11113  func (r *BiddersAccountsFilterSetsNonBillableWinningBidsService) List(filterSetName string) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
 11114  	c := &BiddersAccountsFilterSetsNonBillableWinningBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11115  	c.filterSetName = filterSetName
 11116  	return c
 11117  }
 11118  
 11119  // PageSize sets the optional parameter "pageSize": Requested page size. The
 11120  // server may return fewer results than requested. If unspecified, the server
 11121  // will pick an appropriate default.
 11122  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
 11123  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11124  	return c
 11125  }
 11126  
 11127  // PageToken sets the optional parameter "pageToken": A token identifying a
 11128  // page of results the server should return. Typically, this is the value of
 11129  // ListNonBillableWinningBidsResponse.nextPageToken returned from the previous
 11130  // call to the nonBillableWinningBids.list method.
 11131  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
 11132  	c.urlParams_.Set("pageToken", pageToken)
 11133  	return c
 11134  }
 11135  
 11136  // Fields allows partial responses to be retrieved. See
 11137  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11138  // details.
 11139  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
 11140  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11141  	return c
 11142  }
 11143  
 11144  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11145  // object's ETag matches the given value. This is useful for getting updates
 11146  // only after the object has changed since the last request.
 11147  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
 11148  	c.ifNoneMatch_ = entityTag
 11149  	return c
 11150  }
 11151  
 11152  // Context sets the context to be used in this call's Do method.
 11153  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
 11154  	c.ctx_ = ctx
 11155  	return c
 11156  }
 11157  
 11158  // Header returns a http.Header that can be modified by the caller to add
 11159  // headers to the request.
 11160  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Header() http.Header {
 11161  	if c.header_ == nil {
 11162  		c.header_ = make(http.Header)
 11163  	}
 11164  	return c.header_
 11165  }
 11166  
 11167  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) (*http.Response, error) {
 11168  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11169  	if c.ifNoneMatch_ != "" {
 11170  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11171  	}
 11172  	var body io.Reader = nil
 11173  	c.urlParams_.Set("alt", alt)
 11174  	c.urlParams_.Set("prettyPrint", "false")
 11175  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/nonBillableWinningBids")
 11176  	urls += "?" + c.urlParams_.Encode()
 11177  	req, err := http.NewRequest("GET", urls, body)
 11178  	if err != nil {
 11179  		return nil, err
 11180  	}
 11181  	req.Header = reqHeaders
 11182  	googleapi.Expand(req.URL, map[string]string{
 11183  		"filterSetName": c.filterSetName,
 11184  	})
 11185  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11186  }
 11187  
 11188  // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.nonBillableWinningBids.list" call.
 11189  // Any non-2xx status code is an error. Response headers are in either
 11190  // *ListNonBillableWinningBidsResponse.ServerResponse.Header or (if a response
 11191  // was returned at all) in error.(*googleapi.Error).Header. Use
 11192  // googleapi.IsNotModified to check whether the returned error was because
 11193  // http.StatusNotModified was returned.
 11194  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Do(opts ...googleapi.CallOption) (*ListNonBillableWinningBidsResponse, error) {
 11195  	gensupport.SetOptions(c.urlParams_, opts...)
 11196  	res, err := c.doRequest("json")
 11197  	if res != nil && res.StatusCode == http.StatusNotModified {
 11198  		if res.Body != nil {
 11199  			res.Body.Close()
 11200  		}
 11201  		return nil, gensupport.WrapError(&googleapi.Error{
 11202  			Code:   res.StatusCode,
 11203  			Header: res.Header,
 11204  		})
 11205  	}
 11206  	if err != nil {
 11207  		return nil, err
 11208  	}
 11209  	defer googleapi.CloseBody(res)
 11210  	if err := googleapi.CheckResponse(res); err != nil {
 11211  		return nil, gensupport.WrapError(err)
 11212  	}
 11213  	ret := &ListNonBillableWinningBidsResponse{
 11214  		ServerResponse: googleapi.ServerResponse{
 11215  			Header:         res.Header,
 11216  			HTTPStatusCode: res.StatusCode,
 11217  		},
 11218  	}
 11219  	target := &ret
 11220  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11221  		return nil, err
 11222  	}
 11223  	return ret, nil
 11224  }
 11225  
 11226  // Pages invokes f for each page of results.
 11227  // A non-nil error returned from f will halt the iteration.
 11228  // The provided context supersedes any context provided to the Context method.
 11229  func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Pages(ctx context.Context, f func(*ListNonBillableWinningBidsResponse) error) error {
 11230  	c.ctx_ = ctx
 11231  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11232  	for {
 11233  		x, err := c.Do()
 11234  		if err != nil {
 11235  			return err
 11236  		}
 11237  		if err := f(x); err != nil {
 11238  			return err
 11239  		}
 11240  		if x.NextPageToken == "" {
 11241  			return nil
 11242  		}
 11243  		c.PageToken(x.NextPageToken)
 11244  	}
 11245  }
 11246  
 11247  type BiddersFilterSetsCreateCall struct {
 11248  	s          *Service
 11249  	ownerName  string
 11250  	filterset  *FilterSet
 11251  	urlParams_ gensupport.URLParams
 11252  	ctx_       context.Context
 11253  	header_    http.Header
 11254  }
 11255  
 11256  // Create: Creates the specified filter set for the account with the given
 11257  // account ID.
 11258  //
 11259  //   - ownerName: Name of the owner (bidder or account) of the filter set to be
 11260  //     created. For example: - For a bidder-level filter set for bidder 123:
 11261  //     `bidders/123` - For an account-level filter set for the buyer account
 11262  //     representing bidder 123: `bidders/123/accounts/123` - For an account-level
 11263  //     filter set for the child seat buyer account 456 whose bidder is 123:
 11264  //     `bidders/123/accounts/456`.
 11265  func (r *BiddersFilterSetsService) Create(ownerName string, filterset *FilterSet) *BiddersFilterSetsCreateCall {
 11266  	c := &BiddersFilterSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11267  	c.ownerName = ownerName
 11268  	c.filterset = filterset
 11269  	return c
 11270  }
 11271  
 11272  // IsTransient sets the optional parameter "isTransient": Whether the filter
 11273  // set is transient, or should be persisted indefinitely. By default, filter
 11274  // sets are not transient. If transient, it will be available for at least 1
 11275  // hour after creation.
 11276  func (c *BiddersFilterSetsCreateCall) IsTransient(isTransient bool) *BiddersFilterSetsCreateCall {
 11277  	c.urlParams_.Set("isTransient", fmt.Sprint(isTransient))
 11278  	return c
 11279  }
 11280  
 11281  // Fields allows partial responses to be retrieved. See
 11282  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11283  // details.
 11284  func (c *BiddersFilterSetsCreateCall) Fields(s ...googleapi.Field) *BiddersFilterSetsCreateCall {
 11285  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11286  	return c
 11287  }
 11288  
 11289  // Context sets the context to be used in this call's Do method.
 11290  func (c *BiddersFilterSetsCreateCall) Context(ctx context.Context) *BiddersFilterSetsCreateCall {
 11291  	c.ctx_ = ctx
 11292  	return c
 11293  }
 11294  
 11295  // Header returns a http.Header that can be modified by the caller to add
 11296  // headers to the request.
 11297  func (c *BiddersFilterSetsCreateCall) Header() http.Header {
 11298  	if c.header_ == nil {
 11299  		c.header_ = make(http.Header)
 11300  	}
 11301  	return c.header_
 11302  }
 11303  
 11304  func (c *BiddersFilterSetsCreateCall) doRequest(alt string) (*http.Response, error) {
 11305  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11306  	var body io.Reader = nil
 11307  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.filterset)
 11308  	if err != nil {
 11309  		return nil, err
 11310  	}
 11311  	c.urlParams_.Set("alt", alt)
 11312  	c.urlParams_.Set("prettyPrint", "false")
 11313  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+ownerName}/filterSets")
 11314  	urls += "?" + c.urlParams_.Encode()
 11315  	req, err := http.NewRequest("POST", urls, body)
 11316  	if err != nil {
 11317  		return nil, err
 11318  	}
 11319  	req.Header = reqHeaders
 11320  	googleapi.Expand(req.URL, map[string]string{
 11321  		"ownerName": c.ownerName,
 11322  	})
 11323  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11324  }
 11325  
 11326  // Do executes the "adexchangebuyer2.bidders.filterSets.create" call.
 11327  // Any non-2xx status code is an error. Response headers are in either
 11328  // *FilterSet.ServerResponse.Header or (if a response was returned at all) in
 11329  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11330  // whether the returned error was because http.StatusNotModified was returned.
 11331  func (c *BiddersFilterSetsCreateCall) Do(opts ...googleapi.CallOption) (*FilterSet, error) {
 11332  	gensupport.SetOptions(c.urlParams_, opts...)
 11333  	res, err := c.doRequest("json")
 11334  	if res != nil && res.StatusCode == http.StatusNotModified {
 11335  		if res.Body != nil {
 11336  			res.Body.Close()
 11337  		}
 11338  		return nil, gensupport.WrapError(&googleapi.Error{
 11339  			Code:   res.StatusCode,
 11340  			Header: res.Header,
 11341  		})
 11342  	}
 11343  	if err != nil {
 11344  		return nil, err
 11345  	}
 11346  	defer googleapi.CloseBody(res)
 11347  	if err := googleapi.CheckResponse(res); err != nil {
 11348  		return nil, gensupport.WrapError(err)
 11349  	}
 11350  	ret := &FilterSet{
 11351  		ServerResponse: googleapi.ServerResponse{
 11352  			Header:         res.Header,
 11353  			HTTPStatusCode: res.StatusCode,
 11354  		},
 11355  	}
 11356  	target := &ret
 11357  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11358  		return nil, err
 11359  	}
 11360  	return ret, nil
 11361  }
 11362  
 11363  type BiddersFilterSetsDeleteCall struct {
 11364  	s          *Service
 11365  	name       string
 11366  	urlParams_ gensupport.URLParams
 11367  	ctx_       context.Context
 11368  	header_    http.Header
 11369  }
 11370  
 11371  // Delete: Deletes the requested filter set from the account with the given
 11372  // account ID.
 11373  //
 11374  //   - name: Full name of the resource to delete. For example: - For a
 11375  //     bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For
 11376  //     an account-level filter set for the buyer account representing bidder 123:
 11377  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 11378  //     set for the child seat buyer account 456 whose bidder is 123:
 11379  //     `bidders/123/accounts/456/filterSets/abc`.
 11380  func (r *BiddersFilterSetsService) Delete(name string) *BiddersFilterSetsDeleteCall {
 11381  	c := &BiddersFilterSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11382  	c.name = name
 11383  	return c
 11384  }
 11385  
 11386  // Fields allows partial responses to be retrieved. See
 11387  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11388  // details.
 11389  func (c *BiddersFilterSetsDeleteCall) Fields(s ...googleapi.Field) *BiddersFilterSetsDeleteCall {
 11390  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11391  	return c
 11392  }
 11393  
 11394  // Context sets the context to be used in this call's Do method.
 11395  func (c *BiddersFilterSetsDeleteCall) Context(ctx context.Context) *BiddersFilterSetsDeleteCall {
 11396  	c.ctx_ = ctx
 11397  	return c
 11398  }
 11399  
 11400  // Header returns a http.Header that can be modified by the caller to add
 11401  // headers to the request.
 11402  func (c *BiddersFilterSetsDeleteCall) Header() http.Header {
 11403  	if c.header_ == nil {
 11404  		c.header_ = make(http.Header)
 11405  	}
 11406  	return c.header_
 11407  }
 11408  
 11409  func (c *BiddersFilterSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11410  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11411  	var body io.Reader = nil
 11412  	c.urlParams_.Set("alt", alt)
 11413  	c.urlParams_.Set("prettyPrint", "false")
 11414  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 11415  	urls += "?" + c.urlParams_.Encode()
 11416  	req, err := http.NewRequest("DELETE", urls, body)
 11417  	if err != nil {
 11418  		return nil, err
 11419  	}
 11420  	req.Header = reqHeaders
 11421  	googleapi.Expand(req.URL, map[string]string{
 11422  		"name": c.name,
 11423  	})
 11424  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11425  }
 11426  
 11427  // Do executes the "adexchangebuyer2.bidders.filterSets.delete" call.
 11428  // Any non-2xx status code is an error. Response headers are in either
 11429  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11430  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11431  // whether the returned error was because http.StatusNotModified was returned.
 11432  func (c *BiddersFilterSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11433  	gensupport.SetOptions(c.urlParams_, opts...)
 11434  	res, err := c.doRequest("json")
 11435  	if res != nil && res.StatusCode == http.StatusNotModified {
 11436  		if res.Body != nil {
 11437  			res.Body.Close()
 11438  		}
 11439  		return nil, gensupport.WrapError(&googleapi.Error{
 11440  			Code:   res.StatusCode,
 11441  			Header: res.Header,
 11442  		})
 11443  	}
 11444  	if err != nil {
 11445  		return nil, err
 11446  	}
 11447  	defer googleapi.CloseBody(res)
 11448  	if err := googleapi.CheckResponse(res); err != nil {
 11449  		return nil, gensupport.WrapError(err)
 11450  	}
 11451  	ret := &Empty{
 11452  		ServerResponse: googleapi.ServerResponse{
 11453  			Header:         res.Header,
 11454  			HTTPStatusCode: res.StatusCode,
 11455  		},
 11456  	}
 11457  	target := &ret
 11458  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11459  		return nil, err
 11460  	}
 11461  	return ret, nil
 11462  }
 11463  
 11464  type BiddersFilterSetsGetCall struct {
 11465  	s            *Service
 11466  	name         string
 11467  	urlParams_   gensupport.URLParams
 11468  	ifNoneMatch_ string
 11469  	ctx_         context.Context
 11470  	header_      http.Header
 11471  }
 11472  
 11473  // Get: Retrieves the requested filter set for the account with the given
 11474  // account ID.
 11475  //
 11476  //   - name: Full name of the resource being requested. For example: - For a
 11477  //     bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For
 11478  //     an account-level filter set for the buyer account representing bidder 123:
 11479  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 11480  //     set for the child seat buyer account 456 whose bidder is 123:
 11481  //     `bidders/123/accounts/456/filterSets/abc`.
 11482  func (r *BiddersFilterSetsService) Get(name string) *BiddersFilterSetsGetCall {
 11483  	c := &BiddersFilterSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11484  	c.name = name
 11485  	return c
 11486  }
 11487  
 11488  // Fields allows partial responses to be retrieved. See
 11489  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11490  // details.
 11491  func (c *BiddersFilterSetsGetCall) Fields(s ...googleapi.Field) *BiddersFilterSetsGetCall {
 11492  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11493  	return c
 11494  }
 11495  
 11496  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11497  // object's ETag matches the given value. This is useful for getting updates
 11498  // only after the object has changed since the last request.
 11499  func (c *BiddersFilterSetsGetCall) IfNoneMatch(entityTag string) *BiddersFilterSetsGetCall {
 11500  	c.ifNoneMatch_ = entityTag
 11501  	return c
 11502  }
 11503  
 11504  // Context sets the context to be used in this call's Do method.
 11505  func (c *BiddersFilterSetsGetCall) Context(ctx context.Context) *BiddersFilterSetsGetCall {
 11506  	c.ctx_ = ctx
 11507  	return c
 11508  }
 11509  
 11510  // Header returns a http.Header that can be modified by the caller to add
 11511  // headers to the request.
 11512  func (c *BiddersFilterSetsGetCall) Header() http.Header {
 11513  	if c.header_ == nil {
 11514  		c.header_ = make(http.Header)
 11515  	}
 11516  	return c.header_
 11517  }
 11518  
 11519  func (c *BiddersFilterSetsGetCall) doRequest(alt string) (*http.Response, error) {
 11520  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11521  	if c.ifNoneMatch_ != "" {
 11522  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11523  	}
 11524  	var body io.Reader = nil
 11525  	c.urlParams_.Set("alt", alt)
 11526  	c.urlParams_.Set("prettyPrint", "false")
 11527  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 11528  	urls += "?" + c.urlParams_.Encode()
 11529  	req, err := http.NewRequest("GET", urls, body)
 11530  	if err != nil {
 11531  		return nil, err
 11532  	}
 11533  	req.Header = reqHeaders
 11534  	googleapi.Expand(req.URL, map[string]string{
 11535  		"name": c.name,
 11536  	})
 11537  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11538  }
 11539  
 11540  // Do executes the "adexchangebuyer2.bidders.filterSets.get" call.
 11541  // Any non-2xx status code is an error. Response headers are in either
 11542  // *FilterSet.ServerResponse.Header or (if a response was returned at all) in
 11543  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11544  // whether the returned error was because http.StatusNotModified was returned.
 11545  func (c *BiddersFilterSetsGetCall) Do(opts ...googleapi.CallOption) (*FilterSet, error) {
 11546  	gensupport.SetOptions(c.urlParams_, opts...)
 11547  	res, err := c.doRequest("json")
 11548  	if res != nil && res.StatusCode == http.StatusNotModified {
 11549  		if res.Body != nil {
 11550  			res.Body.Close()
 11551  		}
 11552  		return nil, gensupport.WrapError(&googleapi.Error{
 11553  			Code:   res.StatusCode,
 11554  			Header: res.Header,
 11555  		})
 11556  	}
 11557  	if err != nil {
 11558  		return nil, err
 11559  	}
 11560  	defer googleapi.CloseBody(res)
 11561  	if err := googleapi.CheckResponse(res); err != nil {
 11562  		return nil, gensupport.WrapError(err)
 11563  	}
 11564  	ret := &FilterSet{
 11565  		ServerResponse: googleapi.ServerResponse{
 11566  			Header:         res.Header,
 11567  			HTTPStatusCode: res.StatusCode,
 11568  		},
 11569  	}
 11570  	target := &ret
 11571  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11572  		return nil, err
 11573  	}
 11574  	return ret, nil
 11575  }
 11576  
 11577  type BiddersFilterSetsListCall struct {
 11578  	s            *Service
 11579  	ownerName    string
 11580  	urlParams_   gensupport.URLParams
 11581  	ifNoneMatch_ string
 11582  	ctx_         context.Context
 11583  	header_      http.Header
 11584  }
 11585  
 11586  // List: Lists all filter sets for the account with the given account ID.
 11587  //
 11588  //   - ownerName: Name of the owner (bidder or account) of the filter sets to be
 11589  //     listed. For example: - For a bidder-level filter set for bidder 123:
 11590  //     `bidders/123` - For an account-level filter set for the buyer account
 11591  //     representing bidder 123: `bidders/123/accounts/123` - For an account-level
 11592  //     filter set for the child seat buyer account 456 whose bidder is 123:
 11593  //     `bidders/123/accounts/456`.
 11594  func (r *BiddersFilterSetsService) List(ownerName string) *BiddersFilterSetsListCall {
 11595  	c := &BiddersFilterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11596  	c.ownerName = ownerName
 11597  	return c
 11598  }
 11599  
 11600  // PageSize sets the optional parameter "pageSize": Requested page size. The
 11601  // server may return fewer results than requested. If unspecified, the server
 11602  // will pick an appropriate default.
 11603  func (c *BiddersFilterSetsListCall) PageSize(pageSize int64) *BiddersFilterSetsListCall {
 11604  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11605  	return c
 11606  }
 11607  
 11608  // PageToken sets the optional parameter "pageToken": A token identifying a
 11609  // page of results the server should return. Typically, this is the value of
 11610  // ListFilterSetsResponse.nextPageToken returned from the previous call to the
 11611  // accounts.filterSets.list method.
 11612  func (c *BiddersFilterSetsListCall) PageToken(pageToken string) *BiddersFilterSetsListCall {
 11613  	c.urlParams_.Set("pageToken", pageToken)
 11614  	return c
 11615  }
 11616  
 11617  // Fields allows partial responses to be retrieved. See
 11618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11619  // details.
 11620  func (c *BiddersFilterSetsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsListCall {
 11621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11622  	return c
 11623  }
 11624  
 11625  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11626  // object's ETag matches the given value. This is useful for getting updates
 11627  // only after the object has changed since the last request.
 11628  func (c *BiddersFilterSetsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsListCall {
 11629  	c.ifNoneMatch_ = entityTag
 11630  	return c
 11631  }
 11632  
 11633  // Context sets the context to be used in this call's Do method.
 11634  func (c *BiddersFilterSetsListCall) Context(ctx context.Context) *BiddersFilterSetsListCall {
 11635  	c.ctx_ = ctx
 11636  	return c
 11637  }
 11638  
 11639  // Header returns a http.Header that can be modified by the caller to add
 11640  // headers to the request.
 11641  func (c *BiddersFilterSetsListCall) Header() http.Header {
 11642  	if c.header_ == nil {
 11643  		c.header_ = make(http.Header)
 11644  	}
 11645  	return c.header_
 11646  }
 11647  
 11648  func (c *BiddersFilterSetsListCall) doRequest(alt string) (*http.Response, error) {
 11649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11650  	if c.ifNoneMatch_ != "" {
 11651  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11652  	}
 11653  	var body io.Reader = nil
 11654  	c.urlParams_.Set("alt", alt)
 11655  	c.urlParams_.Set("prettyPrint", "false")
 11656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+ownerName}/filterSets")
 11657  	urls += "?" + c.urlParams_.Encode()
 11658  	req, err := http.NewRequest("GET", urls, body)
 11659  	if err != nil {
 11660  		return nil, err
 11661  	}
 11662  	req.Header = reqHeaders
 11663  	googleapi.Expand(req.URL, map[string]string{
 11664  		"ownerName": c.ownerName,
 11665  	})
 11666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11667  }
 11668  
 11669  // Do executes the "adexchangebuyer2.bidders.filterSets.list" call.
 11670  // Any non-2xx status code is an error. Response headers are in either
 11671  // *ListFilterSetsResponse.ServerResponse.Header or (if a response was returned
 11672  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11673  // check whether the returned error was because http.StatusNotModified was
 11674  // returned.
 11675  func (c *BiddersFilterSetsListCall) Do(opts ...googleapi.CallOption) (*ListFilterSetsResponse, error) {
 11676  	gensupport.SetOptions(c.urlParams_, opts...)
 11677  	res, err := c.doRequest("json")
 11678  	if res != nil && res.StatusCode == http.StatusNotModified {
 11679  		if res.Body != nil {
 11680  			res.Body.Close()
 11681  		}
 11682  		return nil, gensupport.WrapError(&googleapi.Error{
 11683  			Code:   res.StatusCode,
 11684  			Header: res.Header,
 11685  		})
 11686  	}
 11687  	if err != nil {
 11688  		return nil, err
 11689  	}
 11690  	defer googleapi.CloseBody(res)
 11691  	if err := googleapi.CheckResponse(res); err != nil {
 11692  		return nil, gensupport.WrapError(err)
 11693  	}
 11694  	ret := &ListFilterSetsResponse{
 11695  		ServerResponse: googleapi.ServerResponse{
 11696  			Header:         res.Header,
 11697  			HTTPStatusCode: res.StatusCode,
 11698  		},
 11699  	}
 11700  	target := &ret
 11701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11702  		return nil, err
 11703  	}
 11704  	return ret, nil
 11705  }
 11706  
 11707  // Pages invokes f for each page of results.
 11708  // A non-nil error returned from f will halt the iteration.
 11709  // The provided context supersedes any context provided to the Context method.
 11710  func (c *BiddersFilterSetsListCall) Pages(ctx context.Context, f func(*ListFilterSetsResponse) error) error {
 11711  	c.ctx_ = ctx
 11712  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11713  	for {
 11714  		x, err := c.Do()
 11715  		if err != nil {
 11716  			return err
 11717  		}
 11718  		if err := f(x); err != nil {
 11719  			return err
 11720  		}
 11721  		if x.NextPageToken == "" {
 11722  			return nil
 11723  		}
 11724  		c.PageToken(x.NextPageToken)
 11725  	}
 11726  }
 11727  
 11728  type BiddersFilterSetsBidMetricsListCall struct {
 11729  	s             *Service
 11730  	filterSetName string
 11731  	urlParams_    gensupport.URLParams
 11732  	ifNoneMatch_  string
 11733  	ctx_          context.Context
 11734  	header_       http.Header
 11735  }
 11736  
 11737  // List: Lists all metrics that are measured in terms of number of bids.
 11738  //
 11739  //   - filterSetName: Name of the filter set that should be applied to the
 11740  //     requested metrics. For example: - For a bidder-level filter set for bidder
 11741  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 11742  //     the buyer account representing bidder 123:
 11743  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 11744  //     set for the child seat buyer account 456 whose bidder is 123:
 11745  //     `bidders/123/accounts/456/filterSets/abc`.
 11746  func (r *BiddersFilterSetsBidMetricsService) List(filterSetName string) *BiddersFilterSetsBidMetricsListCall {
 11747  	c := &BiddersFilterSetsBidMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11748  	c.filterSetName = filterSetName
 11749  	return c
 11750  }
 11751  
 11752  // PageSize sets the optional parameter "pageSize": Requested page size. The
 11753  // server may return fewer results than requested. If unspecified, the server
 11754  // will pick an appropriate default.
 11755  func (c *BiddersFilterSetsBidMetricsListCall) PageSize(pageSize int64) *BiddersFilterSetsBidMetricsListCall {
 11756  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11757  	return c
 11758  }
 11759  
 11760  // PageToken sets the optional parameter "pageToken": A token identifying a
 11761  // page of results the server should return. Typically, this is the value of
 11762  // ListBidMetricsResponse.nextPageToken returned from the previous call to the
 11763  // bidMetrics.list method.
 11764  func (c *BiddersFilterSetsBidMetricsListCall) PageToken(pageToken string) *BiddersFilterSetsBidMetricsListCall {
 11765  	c.urlParams_.Set("pageToken", pageToken)
 11766  	return c
 11767  }
 11768  
 11769  // Fields allows partial responses to be retrieved. See
 11770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11771  // details.
 11772  func (c *BiddersFilterSetsBidMetricsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsBidMetricsListCall {
 11773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11774  	return c
 11775  }
 11776  
 11777  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11778  // object's ETag matches the given value. This is useful for getting updates
 11779  // only after the object has changed since the last request.
 11780  func (c *BiddersFilterSetsBidMetricsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsBidMetricsListCall {
 11781  	c.ifNoneMatch_ = entityTag
 11782  	return c
 11783  }
 11784  
 11785  // Context sets the context to be used in this call's Do method.
 11786  func (c *BiddersFilterSetsBidMetricsListCall) Context(ctx context.Context) *BiddersFilterSetsBidMetricsListCall {
 11787  	c.ctx_ = ctx
 11788  	return c
 11789  }
 11790  
 11791  // Header returns a http.Header that can be modified by the caller to add
 11792  // headers to the request.
 11793  func (c *BiddersFilterSetsBidMetricsListCall) Header() http.Header {
 11794  	if c.header_ == nil {
 11795  		c.header_ = make(http.Header)
 11796  	}
 11797  	return c.header_
 11798  }
 11799  
 11800  func (c *BiddersFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Response, error) {
 11801  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11802  	if c.ifNoneMatch_ != "" {
 11803  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11804  	}
 11805  	var body io.Reader = nil
 11806  	c.urlParams_.Set("alt", alt)
 11807  	c.urlParams_.Set("prettyPrint", "false")
 11808  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidMetrics")
 11809  	urls += "?" + c.urlParams_.Encode()
 11810  	req, err := http.NewRequest("GET", urls, body)
 11811  	if err != nil {
 11812  		return nil, err
 11813  	}
 11814  	req.Header = reqHeaders
 11815  	googleapi.Expand(req.URL, map[string]string{
 11816  		"filterSetName": c.filterSetName,
 11817  	})
 11818  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11819  }
 11820  
 11821  // Do executes the "adexchangebuyer2.bidders.filterSets.bidMetrics.list" call.
 11822  // Any non-2xx status code is an error. Response headers are in either
 11823  // *ListBidMetricsResponse.ServerResponse.Header or (if a response was returned
 11824  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11825  // check whether the returned error was because http.StatusNotModified was
 11826  // returned.
 11827  func (c *BiddersFilterSetsBidMetricsListCall) Do(opts ...googleapi.CallOption) (*ListBidMetricsResponse, error) {
 11828  	gensupport.SetOptions(c.urlParams_, opts...)
 11829  	res, err := c.doRequest("json")
 11830  	if res != nil && res.StatusCode == http.StatusNotModified {
 11831  		if res.Body != nil {
 11832  			res.Body.Close()
 11833  		}
 11834  		return nil, gensupport.WrapError(&googleapi.Error{
 11835  			Code:   res.StatusCode,
 11836  			Header: res.Header,
 11837  		})
 11838  	}
 11839  	if err != nil {
 11840  		return nil, err
 11841  	}
 11842  	defer googleapi.CloseBody(res)
 11843  	if err := googleapi.CheckResponse(res); err != nil {
 11844  		return nil, gensupport.WrapError(err)
 11845  	}
 11846  	ret := &ListBidMetricsResponse{
 11847  		ServerResponse: googleapi.ServerResponse{
 11848  			Header:         res.Header,
 11849  			HTTPStatusCode: res.StatusCode,
 11850  		},
 11851  	}
 11852  	target := &ret
 11853  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11854  		return nil, err
 11855  	}
 11856  	return ret, nil
 11857  }
 11858  
 11859  // Pages invokes f for each page of results.
 11860  // A non-nil error returned from f will halt the iteration.
 11861  // The provided context supersedes any context provided to the Context method.
 11862  func (c *BiddersFilterSetsBidMetricsListCall) Pages(ctx context.Context, f func(*ListBidMetricsResponse) error) error {
 11863  	c.ctx_ = ctx
 11864  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11865  	for {
 11866  		x, err := c.Do()
 11867  		if err != nil {
 11868  			return err
 11869  		}
 11870  		if err := f(x); err != nil {
 11871  			return err
 11872  		}
 11873  		if x.NextPageToken == "" {
 11874  			return nil
 11875  		}
 11876  		c.PageToken(x.NextPageToken)
 11877  	}
 11878  }
 11879  
 11880  type BiddersFilterSetsBidResponseErrorsListCall struct {
 11881  	s             *Service
 11882  	filterSetName string
 11883  	urlParams_    gensupport.URLParams
 11884  	ifNoneMatch_  string
 11885  	ctx_          context.Context
 11886  	header_       http.Header
 11887  }
 11888  
 11889  // List: List all errors that occurred in bid responses, with the number of bid
 11890  // responses affected for each reason.
 11891  //
 11892  //   - filterSetName: Name of the filter set that should be applied to the
 11893  //     requested metrics. For example: - For a bidder-level filter set for bidder
 11894  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 11895  //     the buyer account representing bidder 123:
 11896  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 11897  //     set for the child seat buyer account 456 whose bidder is 123:
 11898  //     `bidders/123/accounts/456/filterSets/abc`.
 11899  func (r *BiddersFilterSetsBidResponseErrorsService) List(filterSetName string) *BiddersFilterSetsBidResponseErrorsListCall {
 11900  	c := &BiddersFilterSetsBidResponseErrorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11901  	c.filterSetName = filterSetName
 11902  	return c
 11903  }
 11904  
 11905  // PageSize sets the optional parameter "pageSize": Requested page size. The
 11906  // server may return fewer results than requested. If unspecified, the server
 11907  // will pick an appropriate default.
 11908  func (c *BiddersFilterSetsBidResponseErrorsListCall) PageSize(pageSize int64) *BiddersFilterSetsBidResponseErrorsListCall {
 11909  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11910  	return c
 11911  }
 11912  
 11913  // PageToken sets the optional parameter "pageToken": A token identifying a
 11914  // page of results the server should return. Typically, this is the value of
 11915  // ListBidResponseErrorsResponse.nextPageToken returned from the previous call
 11916  // to the bidResponseErrors.list method.
 11917  func (c *BiddersFilterSetsBidResponseErrorsListCall) PageToken(pageToken string) *BiddersFilterSetsBidResponseErrorsListCall {
 11918  	c.urlParams_.Set("pageToken", pageToken)
 11919  	return c
 11920  }
 11921  
 11922  // Fields allows partial responses to be retrieved. See
 11923  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11924  // details.
 11925  func (c *BiddersFilterSetsBidResponseErrorsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsBidResponseErrorsListCall {
 11926  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11927  	return c
 11928  }
 11929  
 11930  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11931  // object's ETag matches the given value. This is useful for getting updates
 11932  // only after the object has changed since the last request.
 11933  func (c *BiddersFilterSetsBidResponseErrorsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsBidResponseErrorsListCall {
 11934  	c.ifNoneMatch_ = entityTag
 11935  	return c
 11936  }
 11937  
 11938  // Context sets the context to be used in this call's Do method.
 11939  func (c *BiddersFilterSetsBidResponseErrorsListCall) Context(ctx context.Context) *BiddersFilterSetsBidResponseErrorsListCall {
 11940  	c.ctx_ = ctx
 11941  	return c
 11942  }
 11943  
 11944  // Header returns a http.Header that can be modified by the caller to add
 11945  // headers to the request.
 11946  func (c *BiddersFilterSetsBidResponseErrorsListCall) Header() http.Header {
 11947  	if c.header_ == nil {
 11948  		c.header_ = make(http.Header)
 11949  	}
 11950  	return c.header_
 11951  }
 11952  
 11953  func (c *BiddersFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*http.Response, error) {
 11954  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11955  	if c.ifNoneMatch_ != "" {
 11956  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11957  	}
 11958  	var body io.Reader = nil
 11959  	c.urlParams_.Set("alt", alt)
 11960  	c.urlParams_.Set("prettyPrint", "false")
 11961  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidResponseErrors")
 11962  	urls += "?" + c.urlParams_.Encode()
 11963  	req, err := http.NewRequest("GET", urls, body)
 11964  	if err != nil {
 11965  		return nil, err
 11966  	}
 11967  	req.Header = reqHeaders
 11968  	googleapi.Expand(req.URL, map[string]string{
 11969  		"filterSetName": c.filterSetName,
 11970  	})
 11971  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11972  }
 11973  
 11974  // Do executes the "adexchangebuyer2.bidders.filterSets.bidResponseErrors.list" call.
 11975  // Any non-2xx status code is an error. Response headers are in either
 11976  // *ListBidResponseErrorsResponse.ServerResponse.Header or (if a response was
 11977  // returned at all) in error.(*googleapi.Error).Header. Use
 11978  // googleapi.IsNotModified to check whether the returned error was because
 11979  // http.StatusNotModified was returned.
 11980  func (c *BiddersFilterSetsBidResponseErrorsListCall) Do(opts ...googleapi.CallOption) (*ListBidResponseErrorsResponse, error) {
 11981  	gensupport.SetOptions(c.urlParams_, opts...)
 11982  	res, err := c.doRequest("json")
 11983  	if res != nil && res.StatusCode == http.StatusNotModified {
 11984  		if res.Body != nil {
 11985  			res.Body.Close()
 11986  		}
 11987  		return nil, gensupport.WrapError(&googleapi.Error{
 11988  			Code:   res.StatusCode,
 11989  			Header: res.Header,
 11990  		})
 11991  	}
 11992  	if err != nil {
 11993  		return nil, err
 11994  	}
 11995  	defer googleapi.CloseBody(res)
 11996  	if err := googleapi.CheckResponse(res); err != nil {
 11997  		return nil, gensupport.WrapError(err)
 11998  	}
 11999  	ret := &ListBidResponseErrorsResponse{
 12000  		ServerResponse: googleapi.ServerResponse{
 12001  			Header:         res.Header,
 12002  			HTTPStatusCode: res.StatusCode,
 12003  		},
 12004  	}
 12005  	target := &ret
 12006  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12007  		return nil, err
 12008  	}
 12009  	return ret, nil
 12010  }
 12011  
 12012  // Pages invokes f for each page of results.
 12013  // A non-nil error returned from f will halt the iteration.
 12014  // The provided context supersedes any context provided to the Context method.
 12015  func (c *BiddersFilterSetsBidResponseErrorsListCall) Pages(ctx context.Context, f func(*ListBidResponseErrorsResponse) error) error {
 12016  	c.ctx_ = ctx
 12017  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12018  	for {
 12019  		x, err := c.Do()
 12020  		if err != nil {
 12021  			return err
 12022  		}
 12023  		if err := f(x); err != nil {
 12024  			return err
 12025  		}
 12026  		if x.NextPageToken == "" {
 12027  			return nil
 12028  		}
 12029  		c.PageToken(x.NextPageToken)
 12030  	}
 12031  }
 12032  
 12033  type BiddersFilterSetsBidResponsesWithoutBidsListCall struct {
 12034  	s             *Service
 12035  	filterSetName string
 12036  	urlParams_    gensupport.URLParams
 12037  	ifNoneMatch_  string
 12038  	ctx_          context.Context
 12039  	header_       http.Header
 12040  }
 12041  
 12042  // List: List all reasons for which bid responses were considered to have no
 12043  // applicable bids, with the number of bid responses affected for each reason.
 12044  //
 12045  //   - filterSetName: Name of the filter set that should be applied to the
 12046  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12047  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12048  //     the buyer account representing bidder 123:
 12049  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12050  //     set for the child seat buyer account 456 whose bidder is 123:
 12051  //     `bidders/123/accounts/456/filterSets/abc`.
 12052  func (r *BiddersFilterSetsBidResponsesWithoutBidsService) List(filterSetName string) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
 12053  	c := &BiddersFilterSetsBidResponsesWithoutBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12054  	c.filterSetName = filterSetName
 12055  	return c
 12056  }
 12057  
 12058  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12059  // server may return fewer results than requested. If unspecified, the server
 12060  // will pick an appropriate default.
 12061  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
 12062  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12063  	return c
 12064  }
 12065  
 12066  // PageToken sets the optional parameter "pageToken": A token identifying a
 12067  // page of results the server should return. Typically, this is the value of
 12068  // ListBidResponsesWithoutBidsResponse.nextPageToken returned from the previous
 12069  // call to the bidResponsesWithoutBids.list method.
 12070  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) PageToken(pageToken string) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
 12071  	c.urlParams_.Set("pageToken", pageToken)
 12072  	return c
 12073  }
 12074  
 12075  // Fields allows partial responses to be retrieved. See
 12076  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12077  // details.
 12078  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
 12079  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12080  	return c
 12081  }
 12082  
 12083  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12084  // object's ETag matches the given value. This is useful for getting updates
 12085  // only after the object has changed since the last request.
 12086  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
 12087  	c.ifNoneMatch_ = entityTag
 12088  	return c
 12089  }
 12090  
 12091  // Context sets the context to be used in this call's Do method.
 12092  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Context(ctx context.Context) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
 12093  	c.ctx_ = ctx
 12094  	return c
 12095  }
 12096  
 12097  // Header returns a http.Header that can be modified by the caller to add
 12098  // headers to the request.
 12099  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Header() http.Header {
 12100  	if c.header_ == nil {
 12101  		c.header_ = make(http.Header)
 12102  	}
 12103  	return c.header_
 12104  }
 12105  
 12106  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) (*http.Response, error) {
 12107  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12108  	if c.ifNoneMatch_ != "" {
 12109  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12110  	}
 12111  	var body io.Reader = nil
 12112  	c.urlParams_.Set("alt", alt)
 12113  	c.urlParams_.Set("prettyPrint", "false")
 12114  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidResponsesWithoutBids")
 12115  	urls += "?" + c.urlParams_.Encode()
 12116  	req, err := http.NewRequest("GET", urls, body)
 12117  	if err != nil {
 12118  		return nil, err
 12119  	}
 12120  	req.Header = reqHeaders
 12121  	googleapi.Expand(req.URL, map[string]string{
 12122  		"filterSetName": c.filterSetName,
 12123  	})
 12124  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12125  }
 12126  
 12127  // Do executes the "adexchangebuyer2.bidders.filterSets.bidResponsesWithoutBids.list" call.
 12128  // Any non-2xx status code is an error. Response headers are in either
 12129  // *ListBidResponsesWithoutBidsResponse.ServerResponse.Header or (if a response
 12130  // was returned at all) in error.(*googleapi.Error).Header. Use
 12131  // googleapi.IsNotModified to check whether the returned error was because
 12132  // http.StatusNotModified was returned.
 12133  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Do(opts ...googleapi.CallOption) (*ListBidResponsesWithoutBidsResponse, error) {
 12134  	gensupport.SetOptions(c.urlParams_, opts...)
 12135  	res, err := c.doRequest("json")
 12136  	if res != nil && res.StatusCode == http.StatusNotModified {
 12137  		if res.Body != nil {
 12138  			res.Body.Close()
 12139  		}
 12140  		return nil, gensupport.WrapError(&googleapi.Error{
 12141  			Code:   res.StatusCode,
 12142  			Header: res.Header,
 12143  		})
 12144  	}
 12145  	if err != nil {
 12146  		return nil, err
 12147  	}
 12148  	defer googleapi.CloseBody(res)
 12149  	if err := googleapi.CheckResponse(res); err != nil {
 12150  		return nil, gensupport.WrapError(err)
 12151  	}
 12152  	ret := &ListBidResponsesWithoutBidsResponse{
 12153  		ServerResponse: googleapi.ServerResponse{
 12154  			Header:         res.Header,
 12155  			HTTPStatusCode: res.StatusCode,
 12156  		},
 12157  	}
 12158  	target := &ret
 12159  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12160  		return nil, err
 12161  	}
 12162  	return ret, nil
 12163  }
 12164  
 12165  // Pages invokes f for each page of results.
 12166  // A non-nil error returned from f will halt the iteration.
 12167  // The provided context supersedes any context provided to the Context method.
 12168  func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Pages(ctx context.Context, f func(*ListBidResponsesWithoutBidsResponse) error) error {
 12169  	c.ctx_ = ctx
 12170  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12171  	for {
 12172  		x, err := c.Do()
 12173  		if err != nil {
 12174  			return err
 12175  		}
 12176  		if err := f(x); err != nil {
 12177  			return err
 12178  		}
 12179  		if x.NextPageToken == "" {
 12180  			return nil
 12181  		}
 12182  		c.PageToken(x.NextPageToken)
 12183  	}
 12184  }
 12185  
 12186  type BiddersFilterSetsFilteredBidRequestsListCall struct {
 12187  	s             *Service
 12188  	filterSetName string
 12189  	urlParams_    gensupport.URLParams
 12190  	ifNoneMatch_  string
 12191  	ctx_          context.Context
 12192  	header_       http.Header
 12193  }
 12194  
 12195  // List: List all reasons that caused a bid request not to be sent for an
 12196  // impression, with the number of bid requests not sent for each reason.
 12197  //
 12198  //   - filterSetName: Name of the filter set that should be applied to the
 12199  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12200  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12201  //     the buyer account representing bidder 123:
 12202  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12203  //     set for the child seat buyer account 456 whose bidder is 123:
 12204  //     `bidders/123/accounts/456/filterSets/abc`.
 12205  func (r *BiddersFilterSetsFilteredBidRequestsService) List(filterSetName string) *BiddersFilterSetsFilteredBidRequestsListCall {
 12206  	c := &BiddersFilterSetsFilteredBidRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12207  	c.filterSetName = filterSetName
 12208  	return c
 12209  }
 12210  
 12211  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12212  // server may return fewer results than requested. If unspecified, the server
 12213  // will pick an appropriate default.
 12214  func (c *BiddersFilterSetsFilteredBidRequestsListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidRequestsListCall {
 12215  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12216  	return c
 12217  }
 12218  
 12219  // PageToken sets the optional parameter "pageToken": A token identifying a
 12220  // page of results the server should return. Typically, this is the value of
 12221  // ListFilteredBidRequestsResponse.nextPageToken returned from the previous
 12222  // call to the filteredBidRequests.list method.
 12223  func (c *BiddersFilterSetsFilteredBidRequestsListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidRequestsListCall {
 12224  	c.urlParams_.Set("pageToken", pageToken)
 12225  	return c
 12226  }
 12227  
 12228  // Fields allows partial responses to be retrieved. See
 12229  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12230  // details.
 12231  func (c *BiddersFilterSetsFilteredBidRequestsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidRequestsListCall {
 12232  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12233  	return c
 12234  }
 12235  
 12236  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12237  // object's ETag matches the given value. This is useful for getting updates
 12238  // only after the object has changed since the last request.
 12239  func (c *BiddersFilterSetsFilteredBidRequestsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidRequestsListCall {
 12240  	c.ifNoneMatch_ = entityTag
 12241  	return c
 12242  }
 12243  
 12244  // Context sets the context to be used in this call's Do method.
 12245  func (c *BiddersFilterSetsFilteredBidRequestsListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidRequestsListCall {
 12246  	c.ctx_ = ctx
 12247  	return c
 12248  }
 12249  
 12250  // Header returns a http.Header that can be modified by the caller to add
 12251  // headers to the request.
 12252  func (c *BiddersFilterSetsFilteredBidRequestsListCall) Header() http.Header {
 12253  	if c.header_ == nil {
 12254  		c.header_ = make(http.Header)
 12255  	}
 12256  	return c.header_
 12257  }
 12258  
 12259  func (c *BiddersFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*http.Response, error) {
 12260  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12261  	if c.ifNoneMatch_ != "" {
 12262  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12263  	}
 12264  	var body io.Reader = nil
 12265  	c.urlParams_.Set("alt", alt)
 12266  	c.urlParams_.Set("prettyPrint", "false")
 12267  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBidRequests")
 12268  	urls += "?" + c.urlParams_.Encode()
 12269  	req, err := http.NewRequest("GET", urls, body)
 12270  	if err != nil {
 12271  		return nil, err
 12272  	}
 12273  	req.Header = reqHeaders
 12274  	googleapi.Expand(req.URL, map[string]string{
 12275  		"filterSetName": c.filterSetName,
 12276  	})
 12277  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12278  }
 12279  
 12280  // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBidRequests.list" call.
 12281  // Any non-2xx status code is an error. Response headers are in either
 12282  // *ListFilteredBidRequestsResponse.ServerResponse.Header or (if a response was
 12283  // returned at all) in error.(*googleapi.Error).Header. Use
 12284  // googleapi.IsNotModified to check whether the returned error was because
 12285  // http.StatusNotModified was returned.
 12286  func (c *BiddersFilterSetsFilteredBidRequestsListCall) Do(opts ...googleapi.CallOption) (*ListFilteredBidRequestsResponse, error) {
 12287  	gensupport.SetOptions(c.urlParams_, opts...)
 12288  	res, err := c.doRequest("json")
 12289  	if res != nil && res.StatusCode == http.StatusNotModified {
 12290  		if res.Body != nil {
 12291  			res.Body.Close()
 12292  		}
 12293  		return nil, gensupport.WrapError(&googleapi.Error{
 12294  			Code:   res.StatusCode,
 12295  			Header: res.Header,
 12296  		})
 12297  	}
 12298  	if err != nil {
 12299  		return nil, err
 12300  	}
 12301  	defer googleapi.CloseBody(res)
 12302  	if err := googleapi.CheckResponse(res); err != nil {
 12303  		return nil, gensupport.WrapError(err)
 12304  	}
 12305  	ret := &ListFilteredBidRequestsResponse{
 12306  		ServerResponse: googleapi.ServerResponse{
 12307  			Header:         res.Header,
 12308  			HTTPStatusCode: res.StatusCode,
 12309  		},
 12310  	}
 12311  	target := &ret
 12312  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12313  		return nil, err
 12314  	}
 12315  	return ret, nil
 12316  }
 12317  
 12318  // Pages invokes f for each page of results.
 12319  // A non-nil error returned from f will halt the iteration.
 12320  // The provided context supersedes any context provided to the Context method.
 12321  func (c *BiddersFilterSetsFilteredBidRequestsListCall) Pages(ctx context.Context, f func(*ListFilteredBidRequestsResponse) error) error {
 12322  	c.ctx_ = ctx
 12323  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12324  	for {
 12325  		x, err := c.Do()
 12326  		if err != nil {
 12327  			return err
 12328  		}
 12329  		if err := f(x); err != nil {
 12330  			return err
 12331  		}
 12332  		if x.NextPageToken == "" {
 12333  			return nil
 12334  		}
 12335  		c.PageToken(x.NextPageToken)
 12336  	}
 12337  }
 12338  
 12339  type BiddersFilterSetsFilteredBidsListCall struct {
 12340  	s             *Service
 12341  	filterSetName string
 12342  	urlParams_    gensupport.URLParams
 12343  	ifNoneMatch_  string
 12344  	ctx_          context.Context
 12345  	header_       http.Header
 12346  }
 12347  
 12348  // List: List all reasons for which bids were filtered, with the number of bids
 12349  // filtered for each reason.
 12350  //
 12351  //   - filterSetName: Name of the filter set that should be applied to the
 12352  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12353  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12354  //     the buyer account representing bidder 123:
 12355  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12356  //     set for the child seat buyer account 456 whose bidder is 123:
 12357  //     `bidders/123/accounts/456/filterSets/abc`.
 12358  func (r *BiddersFilterSetsFilteredBidsService) List(filterSetName string) *BiddersFilterSetsFilteredBidsListCall {
 12359  	c := &BiddersFilterSetsFilteredBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12360  	c.filterSetName = filterSetName
 12361  	return c
 12362  }
 12363  
 12364  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12365  // server may return fewer results than requested. If unspecified, the server
 12366  // will pick an appropriate default.
 12367  func (c *BiddersFilterSetsFilteredBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidsListCall {
 12368  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12369  	return c
 12370  }
 12371  
 12372  // PageToken sets the optional parameter "pageToken": A token identifying a
 12373  // page of results the server should return. Typically, this is the value of
 12374  // ListFilteredBidsResponse.nextPageToken returned from the previous call to
 12375  // the filteredBids.list method.
 12376  func (c *BiddersFilterSetsFilteredBidsListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidsListCall {
 12377  	c.urlParams_.Set("pageToken", pageToken)
 12378  	return c
 12379  }
 12380  
 12381  // Fields allows partial responses to be retrieved. See
 12382  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12383  // details.
 12384  func (c *BiddersFilterSetsFilteredBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidsListCall {
 12385  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12386  	return c
 12387  }
 12388  
 12389  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12390  // object's ETag matches the given value. This is useful for getting updates
 12391  // only after the object has changed since the last request.
 12392  func (c *BiddersFilterSetsFilteredBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidsListCall {
 12393  	c.ifNoneMatch_ = entityTag
 12394  	return c
 12395  }
 12396  
 12397  // Context sets the context to be used in this call's Do method.
 12398  func (c *BiddersFilterSetsFilteredBidsListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidsListCall {
 12399  	c.ctx_ = ctx
 12400  	return c
 12401  }
 12402  
 12403  // Header returns a http.Header that can be modified by the caller to add
 12404  // headers to the request.
 12405  func (c *BiddersFilterSetsFilteredBidsListCall) Header() http.Header {
 12406  	if c.header_ == nil {
 12407  		c.header_ = make(http.Header)
 12408  	}
 12409  	return c.header_
 12410  }
 12411  
 12412  func (c *BiddersFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Response, error) {
 12413  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12414  	if c.ifNoneMatch_ != "" {
 12415  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12416  	}
 12417  	var body io.Reader = nil
 12418  	c.urlParams_.Set("alt", alt)
 12419  	c.urlParams_.Set("prettyPrint", "false")
 12420  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids")
 12421  	urls += "?" + c.urlParams_.Encode()
 12422  	req, err := http.NewRequest("GET", urls, body)
 12423  	if err != nil {
 12424  		return nil, err
 12425  	}
 12426  	req.Header = reqHeaders
 12427  	googleapi.Expand(req.URL, map[string]string{
 12428  		"filterSetName": c.filterSetName,
 12429  	})
 12430  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12431  }
 12432  
 12433  // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBids.list" call.
 12434  // Any non-2xx status code is an error. Response headers are in either
 12435  // *ListFilteredBidsResponse.ServerResponse.Header or (if a response was
 12436  // returned at all) in error.(*googleapi.Error).Header. Use
 12437  // googleapi.IsNotModified to check whether the returned error was because
 12438  // http.StatusNotModified was returned.
 12439  func (c *BiddersFilterSetsFilteredBidsListCall) Do(opts ...googleapi.CallOption) (*ListFilteredBidsResponse, error) {
 12440  	gensupport.SetOptions(c.urlParams_, opts...)
 12441  	res, err := c.doRequest("json")
 12442  	if res != nil && res.StatusCode == http.StatusNotModified {
 12443  		if res.Body != nil {
 12444  			res.Body.Close()
 12445  		}
 12446  		return nil, gensupport.WrapError(&googleapi.Error{
 12447  			Code:   res.StatusCode,
 12448  			Header: res.Header,
 12449  		})
 12450  	}
 12451  	if err != nil {
 12452  		return nil, err
 12453  	}
 12454  	defer googleapi.CloseBody(res)
 12455  	if err := googleapi.CheckResponse(res); err != nil {
 12456  		return nil, gensupport.WrapError(err)
 12457  	}
 12458  	ret := &ListFilteredBidsResponse{
 12459  		ServerResponse: googleapi.ServerResponse{
 12460  			Header:         res.Header,
 12461  			HTTPStatusCode: res.StatusCode,
 12462  		},
 12463  	}
 12464  	target := &ret
 12465  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12466  		return nil, err
 12467  	}
 12468  	return ret, nil
 12469  }
 12470  
 12471  // Pages invokes f for each page of results.
 12472  // A non-nil error returned from f will halt the iteration.
 12473  // The provided context supersedes any context provided to the Context method.
 12474  func (c *BiddersFilterSetsFilteredBidsListCall) Pages(ctx context.Context, f func(*ListFilteredBidsResponse) error) error {
 12475  	c.ctx_ = ctx
 12476  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12477  	for {
 12478  		x, err := c.Do()
 12479  		if err != nil {
 12480  			return err
 12481  		}
 12482  		if err := f(x); err != nil {
 12483  			return err
 12484  		}
 12485  		if x.NextPageToken == "" {
 12486  			return nil
 12487  		}
 12488  		c.PageToken(x.NextPageToken)
 12489  	}
 12490  }
 12491  
 12492  type BiddersFilterSetsFilteredBidsCreativesListCall struct {
 12493  	s                *Service
 12494  	filterSetName    string
 12495  	creativeStatusId int64
 12496  	urlParams_       gensupport.URLParams
 12497  	ifNoneMatch_     string
 12498  	ctx_             context.Context
 12499  	header_          http.Header
 12500  }
 12501  
 12502  // List: List all creatives associated with a specific reason for which bids
 12503  // were filtered, with the number of bids filtered for each creative.
 12504  //
 12505  //   - creativeStatusId: The ID of the creative status for which to retrieve a
 12506  //     breakdown by creative. See creative-status-codes
 12507  //     (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
 12508  //   - filterSetName: Name of the filter set that should be applied to the
 12509  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12510  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12511  //     the buyer account representing bidder 123:
 12512  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12513  //     set for the child seat buyer account 456 whose bidder is 123:
 12514  //     `bidders/123/accounts/456/filterSets/abc`.
 12515  func (r *BiddersFilterSetsFilteredBidsCreativesService) List(filterSetName string, creativeStatusId int64) *BiddersFilterSetsFilteredBidsCreativesListCall {
 12516  	c := &BiddersFilterSetsFilteredBidsCreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12517  	c.filterSetName = filterSetName
 12518  	c.creativeStatusId = creativeStatusId
 12519  	return c
 12520  }
 12521  
 12522  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12523  // server may return fewer results than requested. If unspecified, the server
 12524  // will pick an appropriate default.
 12525  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidsCreativesListCall {
 12526  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12527  	return c
 12528  }
 12529  
 12530  // PageToken sets the optional parameter "pageToken": A token identifying a
 12531  // page of results the server should return. Typically, this is the value of
 12532  // ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from
 12533  // the previous call to the filteredBids.creatives.list method.
 12534  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidsCreativesListCall {
 12535  	c.urlParams_.Set("pageToken", pageToken)
 12536  	return c
 12537  }
 12538  
 12539  // Fields allows partial responses to be retrieved. See
 12540  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12541  // details.
 12542  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidsCreativesListCall {
 12543  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12544  	return c
 12545  }
 12546  
 12547  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12548  // object's ETag matches the given value. This is useful for getting updates
 12549  // only after the object has changed since the last request.
 12550  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidsCreativesListCall {
 12551  	c.ifNoneMatch_ = entityTag
 12552  	return c
 12553  }
 12554  
 12555  // Context sets the context to be used in this call's Do method.
 12556  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidsCreativesListCall {
 12557  	c.ctx_ = ctx
 12558  	return c
 12559  }
 12560  
 12561  // Header returns a http.Header that can be modified by the caller to add
 12562  // headers to the request.
 12563  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Header() http.Header {
 12564  	if c.header_ == nil {
 12565  		c.header_ = make(http.Header)
 12566  	}
 12567  	return c.header_
 12568  }
 12569  
 12570  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) (*http.Response, error) {
 12571  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12572  	if c.ifNoneMatch_ != "" {
 12573  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12574  	}
 12575  	var body io.Reader = nil
 12576  	c.urlParams_.Set("alt", alt)
 12577  	c.urlParams_.Set("prettyPrint", "false")
 12578  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives")
 12579  	urls += "?" + c.urlParams_.Encode()
 12580  	req, err := http.NewRequest("GET", urls, body)
 12581  	if err != nil {
 12582  		return nil, err
 12583  	}
 12584  	req.Header = reqHeaders
 12585  	googleapi.Expand(req.URL, map[string]string{
 12586  		"filterSetName":    c.filterSetName,
 12587  		"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
 12588  	})
 12589  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12590  }
 12591  
 12592  // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBids.creatives.list" call.
 12593  // Any non-2xx status code is an error. Response headers are in either
 12594  // *ListCreativeStatusBreakdownByCreativeResponse.ServerResponse.Header or (if
 12595  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 12596  // googleapi.IsNotModified to check whether the returned error was because
 12597  // http.StatusNotModified was returned.
 12598  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusBreakdownByCreativeResponse, error) {
 12599  	gensupport.SetOptions(c.urlParams_, opts...)
 12600  	res, err := c.doRequest("json")
 12601  	if res != nil && res.StatusCode == http.StatusNotModified {
 12602  		if res.Body != nil {
 12603  			res.Body.Close()
 12604  		}
 12605  		return nil, gensupport.WrapError(&googleapi.Error{
 12606  			Code:   res.StatusCode,
 12607  			Header: res.Header,
 12608  		})
 12609  	}
 12610  	if err != nil {
 12611  		return nil, err
 12612  	}
 12613  	defer googleapi.CloseBody(res)
 12614  	if err := googleapi.CheckResponse(res); err != nil {
 12615  		return nil, gensupport.WrapError(err)
 12616  	}
 12617  	ret := &ListCreativeStatusBreakdownByCreativeResponse{
 12618  		ServerResponse: googleapi.ServerResponse{
 12619  			Header:         res.Header,
 12620  			HTTPStatusCode: res.StatusCode,
 12621  		},
 12622  	}
 12623  	target := &ret
 12624  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12625  		return nil, err
 12626  	}
 12627  	return ret, nil
 12628  }
 12629  
 12630  // Pages invokes f for each page of results.
 12631  // A non-nil error returned from f will halt the iteration.
 12632  // The provided context supersedes any context provided to the Context method.
 12633  func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativeStatusBreakdownByCreativeResponse) error) error {
 12634  	c.ctx_ = ctx
 12635  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12636  	for {
 12637  		x, err := c.Do()
 12638  		if err != nil {
 12639  			return err
 12640  		}
 12641  		if err := f(x); err != nil {
 12642  			return err
 12643  		}
 12644  		if x.NextPageToken == "" {
 12645  			return nil
 12646  		}
 12647  		c.PageToken(x.NextPageToken)
 12648  	}
 12649  }
 12650  
 12651  type BiddersFilterSetsFilteredBidsDetailsListCall struct {
 12652  	s                *Service
 12653  	filterSetName    string
 12654  	creativeStatusId int64
 12655  	urlParams_       gensupport.URLParams
 12656  	ifNoneMatch_     string
 12657  	ctx_             context.Context
 12658  	header_          http.Header
 12659  }
 12660  
 12661  // List: List all details associated with a specific reason for which bids were
 12662  // filtered, with the number of bids filtered for each detail.
 12663  //
 12664  //   - creativeStatusId: The ID of the creative status for which to retrieve a
 12665  //     breakdown by detail. See creative-status-codes
 12666  //     (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
 12667  //     Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and
 12668  //     87.
 12669  //   - filterSetName: Name of the filter set that should be applied to the
 12670  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12671  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12672  //     the buyer account representing bidder 123:
 12673  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12674  //     set for the child seat buyer account 456 whose bidder is 123:
 12675  //     `bidders/123/accounts/456/filterSets/abc`.
 12676  func (r *BiddersFilterSetsFilteredBidsDetailsService) List(filterSetName string, creativeStatusId int64) *BiddersFilterSetsFilteredBidsDetailsListCall {
 12677  	c := &BiddersFilterSetsFilteredBidsDetailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12678  	c.filterSetName = filterSetName
 12679  	c.creativeStatusId = creativeStatusId
 12680  	return c
 12681  }
 12682  
 12683  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12684  // server may return fewer results than requested. If unspecified, the server
 12685  // will pick an appropriate default.
 12686  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidsDetailsListCall {
 12687  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12688  	return c
 12689  }
 12690  
 12691  // PageToken sets the optional parameter "pageToken": A token identifying a
 12692  // page of results the server should return. Typically, this is the value of
 12693  // ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from the
 12694  // previous call to the filteredBids.details.list method.
 12695  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidsDetailsListCall {
 12696  	c.urlParams_.Set("pageToken", pageToken)
 12697  	return c
 12698  }
 12699  
 12700  // Fields allows partial responses to be retrieved. See
 12701  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12702  // details.
 12703  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidsDetailsListCall {
 12704  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12705  	return c
 12706  }
 12707  
 12708  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12709  // object's ETag matches the given value. This is useful for getting updates
 12710  // only after the object has changed since the last request.
 12711  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidsDetailsListCall {
 12712  	c.ifNoneMatch_ = entityTag
 12713  	return c
 12714  }
 12715  
 12716  // Context sets the context to be used in this call's Do method.
 12717  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidsDetailsListCall {
 12718  	c.ctx_ = ctx
 12719  	return c
 12720  }
 12721  
 12722  // Header returns a http.Header that can be modified by the caller to add
 12723  // headers to the request.
 12724  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Header() http.Header {
 12725  	if c.header_ == nil {
 12726  		c.header_ = make(http.Header)
 12727  	}
 12728  	return c.header_
 12729  }
 12730  
 12731  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*http.Response, error) {
 12732  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12733  	if c.ifNoneMatch_ != "" {
 12734  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12735  	}
 12736  	var body io.Reader = nil
 12737  	c.urlParams_.Set("alt", alt)
 12738  	c.urlParams_.Set("prettyPrint", "false")
 12739  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details")
 12740  	urls += "?" + c.urlParams_.Encode()
 12741  	req, err := http.NewRequest("GET", urls, body)
 12742  	if err != nil {
 12743  		return nil, err
 12744  	}
 12745  	req.Header = reqHeaders
 12746  	googleapi.Expand(req.URL, map[string]string{
 12747  		"filterSetName":    c.filterSetName,
 12748  		"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
 12749  	})
 12750  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12751  }
 12752  
 12753  // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBids.details.list" call.
 12754  // Any non-2xx status code is an error. Response headers are in either
 12755  // *ListCreativeStatusBreakdownByDetailResponse.ServerResponse.Header or (if a
 12756  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12757  // googleapi.IsNotModified to check whether the returned error was because
 12758  // http.StatusNotModified was returned.
 12759  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusBreakdownByDetailResponse, error) {
 12760  	gensupport.SetOptions(c.urlParams_, opts...)
 12761  	res, err := c.doRequest("json")
 12762  	if res != nil && res.StatusCode == http.StatusNotModified {
 12763  		if res.Body != nil {
 12764  			res.Body.Close()
 12765  		}
 12766  		return nil, gensupport.WrapError(&googleapi.Error{
 12767  			Code:   res.StatusCode,
 12768  			Header: res.Header,
 12769  		})
 12770  	}
 12771  	if err != nil {
 12772  		return nil, err
 12773  	}
 12774  	defer googleapi.CloseBody(res)
 12775  	if err := googleapi.CheckResponse(res); err != nil {
 12776  		return nil, gensupport.WrapError(err)
 12777  	}
 12778  	ret := &ListCreativeStatusBreakdownByDetailResponse{
 12779  		ServerResponse: googleapi.ServerResponse{
 12780  			Header:         res.Header,
 12781  			HTTPStatusCode: res.StatusCode,
 12782  		},
 12783  	}
 12784  	target := &ret
 12785  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12786  		return nil, err
 12787  	}
 12788  	return ret, nil
 12789  }
 12790  
 12791  // Pages invokes f for each page of results.
 12792  // A non-nil error returned from f will halt the iteration.
 12793  // The provided context supersedes any context provided to the Context method.
 12794  func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Pages(ctx context.Context, f func(*ListCreativeStatusBreakdownByDetailResponse) error) error {
 12795  	c.ctx_ = ctx
 12796  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12797  	for {
 12798  		x, err := c.Do()
 12799  		if err != nil {
 12800  			return err
 12801  		}
 12802  		if err := f(x); err != nil {
 12803  			return err
 12804  		}
 12805  		if x.NextPageToken == "" {
 12806  			return nil
 12807  		}
 12808  		c.PageToken(x.NextPageToken)
 12809  	}
 12810  }
 12811  
 12812  type BiddersFilterSetsImpressionMetricsListCall struct {
 12813  	s             *Service
 12814  	filterSetName string
 12815  	urlParams_    gensupport.URLParams
 12816  	ifNoneMatch_  string
 12817  	ctx_          context.Context
 12818  	header_       http.Header
 12819  }
 12820  
 12821  // List: Lists all metrics that are measured in terms of number of impressions.
 12822  //
 12823  //   - filterSetName: Name of the filter set that should be applied to the
 12824  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12825  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12826  //     the buyer account representing bidder 123:
 12827  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12828  //     set for the child seat buyer account 456 whose bidder is 123:
 12829  //     `bidders/123/accounts/456/filterSets/abc`.
 12830  func (r *BiddersFilterSetsImpressionMetricsService) List(filterSetName string) *BiddersFilterSetsImpressionMetricsListCall {
 12831  	c := &BiddersFilterSetsImpressionMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12832  	c.filterSetName = filterSetName
 12833  	return c
 12834  }
 12835  
 12836  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12837  // server may return fewer results than requested. If unspecified, the server
 12838  // will pick an appropriate default.
 12839  func (c *BiddersFilterSetsImpressionMetricsListCall) PageSize(pageSize int64) *BiddersFilterSetsImpressionMetricsListCall {
 12840  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12841  	return c
 12842  }
 12843  
 12844  // PageToken sets the optional parameter "pageToken": A token identifying a
 12845  // page of results the server should return. Typically, this is the value of
 12846  // ListImpressionMetricsResponse.nextPageToken returned from the previous call
 12847  // to the impressionMetrics.list method.
 12848  func (c *BiddersFilterSetsImpressionMetricsListCall) PageToken(pageToken string) *BiddersFilterSetsImpressionMetricsListCall {
 12849  	c.urlParams_.Set("pageToken", pageToken)
 12850  	return c
 12851  }
 12852  
 12853  // Fields allows partial responses to be retrieved. See
 12854  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12855  // details.
 12856  func (c *BiddersFilterSetsImpressionMetricsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsImpressionMetricsListCall {
 12857  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12858  	return c
 12859  }
 12860  
 12861  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12862  // object's ETag matches the given value. This is useful for getting updates
 12863  // only after the object has changed since the last request.
 12864  func (c *BiddersFilterSetsImpressionMetricsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsImpressionMetricsListCall {
 12865  	c.ifNoneMatch_ = entityTag
 12866  	return c
 12867  }
 12868  
 12869  // Context sets the context to be used in this call's Do method.
 12870  func (c *BiddersFilterSetsImpressionMetricsListCall) Context(ctx context.Context) *BiddersFilterSetsImpressionMetricsListCall {
 12871  	c.ctx_ = ctx
 12872  	return c
 12873  }
 12874  
 12875  // Header returns a http.Header that can be modified by the caller to add
 12876  // headers to the request.
 12877  func (c *BiddersFilterSetsImpressionMetricsListCall) Header() http.Header {
 12878  	if c.header_ == nil {
 12879  		c.header_ = make(http.Header)
 12880  	}
 12881  	return c.header_
 12882  }
 12883  
 12884  func (c *BiddersFilterSetsImpressionMetricsListCall) doRequest(alt string) (*http.Response, error) {
 12885  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12886  	if c.ifNoneMatch_ != "" {
 12887  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12888  	}
 12889  	var body io.Reader = nil
 12890  	c.urlParams_.Set("alt", alt)
 12891  	c.urlParams_.Set("prettyPrint", "false")
 12892  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/impressionMetrics")
 12893  	urls += "?" + c.urlParams_.Encode()
 12894  	req, err := http.NewRequest("GET", urls, body)
 12895  	if err != nil {
 12896  		return nil, err
 12897  	}
 12898  	req.Header = reqHeaders
 12899  	googleapi.Expand(req.URL, map[string]string{
 12900  		"filterSetName": c.filterSetName,
 12901  	})
 12902  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12903  }
 12904  
 12905  // Do executes the "adexchangebuyer2.bidders.filterSets.impressionMetrics.list" call.
 12906  // Any non-2xx status code is an error. Response headers are in either
 12907  // *ListImpressionMetricsResponse.ServerResponse.Header or (if a response was
 12908  // returned at all) in error.(*googleapi.Error).Header. Use
 12909  // googleapi.IsNotModified to check whether the returned error was because
 12910  // http.StatusNotModified was returned.
 12911  func (c *BiddersFilterSetsImpressionMetricsListCall) Do(opts ...googleapi.CallOption) (*ListImpressionMetricsResponse, error) {
 12912  	gensupport.SetOptions(c.urlParams_, opts...)
 12913  	res, err := c.doRequest("json")
 12914  	if res != nil && res.StatusCode == http.StatusNotModified {
 12915  		if res.Body != nil {
 12916  			res.Body.Close()
 12917  		}
 12918  		return nil, gensupport.WrapError(&googleapi.Error{
 12919  			Code:   res.StatusCode,
 12920  			Header: res.Header,
 12921  		})
 12922  	}
 12923  	if err != nil {
 12924  		return nil, err
 12925  	}
 12926  	defer googleapi.CloseBody(res)
 12927  	if err := googleapi.CheckResponse(res); err != nil {
 12928  		return nil, gensupport.WrapError(err)
 12929  	}
 12930  	ret := &ListImpressionMetricsResponse{
 12931  		ServerResponse: googleapi.ServerResponse{
 12932  			Header:         res.Header,
 12933  			HTTPStatusCode: res.StatusCode,
 12934  		},
 12935  	}
 12936  	target := &ret
 12937  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12938  		return nil, err
 12939  	}
 12940  	return ret, nil
 12941  }
 12942  
 12943  // Pages invokes f for each page of results.
 12944  // A non-nil error returned from f will halt the iteration.
 12945  // The provided context supersedes any context provided to the Context method.
 12946  func (c *BiddersFilterSetsImpressionMetricsListCall) Pages(ctx context.Context, f func(*ListImpressionMetricsResponse) error) error {
 12947  	c.ctx_ = ctx
 12948  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12949  	for {
 12950  		x, err := c.Do()
 12951  		if err != nil {
 12952  			return err
 12953  		}
 12954  		if err := f(x); err != nil {
 12955  			return err
 12956  		}
 12957  		if x.NextPageToken == "" {
 12958  			return nil
 12959  		}
 12960  		c.PageToken(x.NextPageToken)
 12961  	}
 12962  }
 12963  
 12964  type BiddersFilterSetsLosingBidsListCall struct {
 12965  	s             *Service
 12966  	filterSetName string
 12967  	urlParams_    gensupport.URLParams
 12968  	ifNoneMatch_  string
 12969  	ctx_          context.Context
 12970  	header_       http.Header
 12971  }
 12972  
 12973  // List: List all reasons for which bids lost in the auction, with the number
 12974  // of bids that lost for each reason.
 12975  //
 12976  //   - filterSetName: Name of the filter set that should be applied to the
 12977  //     requested metrics. For example: - For a bidder-level filter set for bidder
 12978  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 12979  //     the buyer account representing bidder 123:
 12980  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 12981  //     set for the child seat buyer account 456 whose bidder is 123:
 12982  //     `bidders/123/accounts/456/filterSets/abc`.
 12983  func (r *BiddersFilterSetsLosingBidsService) List(filterSetName string) *BiddersFilterSetsLosingBidsListCall {
 12984  	c := &BiddersFilterSetsLosingBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12985  	c.filterSetName = filterSetName
 12986  	return c
 12987  }
 12988  
 12989  // PageSize sets the optional parameter "pageSize": Requested page size. The
 12990  // server may return fewer results than requested. If unspecified, the server
 12991  // will pick an appropriate default.
 12992  func (c *BiddersFilterSetsLosingBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsLosingBidsListCall {
 12993  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12994  	return c
 12995  }
 12996  
 12997  // PageToken sets the optional parameter "pageToken": A token identifying a
 12998  // page of results the server should return. Typically, this is the value of
 12999  // ListLosingBidsResponse.nextPageToken returned from the previous call to the
 13000  // losingBids.list method.
 13001  func (c *BiddersFilterSetsLosingBidsListCall) PageToken(pageToken string) *BiddersFilterSetsLosingBidsListCall {
 13002  	c.urlParams_.Set("pageToken", pageToken)
 13003  	return c
 13004  }
 13005  
 13006  // Fields allows partial responses to be retrieved. See
 13007  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13008  // details.
 13009  func (c *BiddersFilterSetsLosingBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsLosingBidsListCall {
 13010  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13011  	return c
 13012  }
 13013  
 13014  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13015  // object's ETag matches the given value. This is useful for getting updates
 13016  // only after the object has changed since the last request.
 13017  func (c *BiddersFilterSetsLosingBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsLosingBidsListCall {
 13018  	c.ifNoneMatch_ = entityTag
 13019  	return c
 13020  }
 13021  
 13022  // Context sets the context to be used in this call's Do method.
 13023  func (c *BiddersFilterSetsLosingBidsListCall) Context(ctx context.Context) *BiddersFilterSetsLosingBidsListCall {
 13024  	c.ctx_ = ctx
 13025  	return c
 13026  }
 13027  
 13028  // Header returns a http.Header that can be modified by the caller to add
 13029  // headers to the request.
 13030  func (c *BiddersFilterSetsLosingBidsListCall) Header() http.Header {
 13031  	if c.header_ == nil {
 13032  		c.header_ = make(http.Header)
 13033  	}
 13034  	return c.header_
 13035  }
 13036  
 13037  func (c *BiddersFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Response, error) {
 13038  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13039  	if c.ifNoneMatch_ != "" {
 13040  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13041  	}
 13042  	var body io.Reader = nil
 13043  	c.urlParams_.Set("alt", alt)
 13044  	c.urlParams_.Set("prettyPrint", "false")
 13045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/losingBids")
 13046  	urls += "?" + c.urlParams_.Encode()
 13047  	req, err := http.NewRequest("GET", urls, body)
 13048  	if err != nil {
 13049  		return nil, err
 13050  	}
 13051  	req.Header = reqHeaders
 13052  	googleapi.Expand(req.URL, map[string]string{
 13053  		"filterSetName": c.filterSetName,
 13054  	})
 13055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13056  }
 13057  
 13058  // Do executes the "adexchangebuyer2.bidders.filterSets.losingBids.list" call.
 13059  // Any non-2xx status code is an error. Response headers are in either
 13060  // *ListLosingBidsResponse.ServerResponse.Header or (if a response was returned
 13061  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13062  // check whether the returned error was because http.StatusNotModified was
 13063  // returned.
 13064  func (c *BiddersFilterSetsLosingBidsListCall) Do(opts ...googleapi.CallOption) (*ListLosingBidsResponse, error) {
 13065  	gensupport.SetOptions(c.urlParams_, opts...)
 13066  	res, err := c.doRequest("json")
 13067  	if res != nil && res.StatusCode == http.StatusNotModified {
 13068  		if res.Body != nil {
 13069  			res.Body.Close()
 13070  		}
 13071  		return nil, gensupport.WrapError(&googleapi.Error{
 13072  			Code:   res.StatusCode,
 13073  			Header: res.Header,
 13074  		})
 13075  	}
 13076  	if err != nil {
 13077  		return nil, err
 13078  	}
 13079  	defer googleapi.CloseBody(res)
 13080  	if err := googleapi.CheckResponse(res); err != nil {
 13081  		return nil, gensupport.WrapError(err)
 13082  	}
 13083  	ret := &ListLosingBidsResponse{
 13084  		ServerResponse: googleapi.ServerResponse{
 13085  			Header:         res.Header,
 13086  			HTTPStatusCode: res.StatusCode,
 13087  		},
 13088  	}
 13089  	target := &ret
 13090  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13091  		return nil, err
 13092  	}
 13093  	return ret, nil
 13094  }
 13095  
 13096  // Pages invokes f for each page of results.
 13097  // A non-nil error returned from f will halt the iteration.
 13098  // The provided context supersedes any context provided to the Context method.
 13099  func (c *BiddersFilterSetsLosingBidsListCall) Pages(ctx context.Context, f func(*ListLosingBidsResponse) error) error {
 13100  	c.ctx_ = ctx
 13101  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13102  	for {
 13103  		x, err := c.Do()
 13104  		if err != nil {
 13105  			return err
 13106  		}
 13107  		if err := f(x); err != nil {
 13108  			return err
 13109  		}
 13110  		if x.NextPageToken == "" {
 13111  			return nil
 13112  		}
 13113  		c.PageToken(x.NextPageToken)
 13114  	}
 13115  }
 13116  
 13117  type BiddersFilterSetsNonBillableWinningBidsListCall struct {
 13118  	s             *Service
 13119  	filterSetName string
 13120  	urlParams_    gensupport.URLParams
 13121  	ifNoneMatch_  string
 13122  	ctx_          context.Context
 13123  	header_       http.Header
 13124  }
 13125  
 13126  // List: List all reasons for which winning bids were not billable, with the
 13127  // number of bids not billed for each reason.
 13128  //
 13129  //   - filterSetName: Name of the filter set that should be applied to the
 13130  //     requested metrics. For example: - For a bidder-level filter set for bidder
 13131  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 13132  //     the buyer account representing bidder 123:
 13133  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 13134  //     set for the child seat buyer account 456 whose bidder is 123:
 13135  //     `bidders/123/accounts/456/filterSets/abc`.
 13136  func (r *BiddersFilterSetsNonBillableWinningBidsService) List(filterSetName string) *BiddersFilterSetsNonBillableWinningBidsListCall {
 13137  	c := &BiddersFilterSetsNonBillableWinningBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13138  	c.filterSetName = filterSetName
 13139  	return c
 13140  }
 13141  
 13142  // PageSize sets the optional parameter "pageSize": Requested page size. The
 13143  // server may return fewer results than requested. If unspecified, the server
 13144  // will pick an appropriate default.
 13145  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsNonBillableWinningBidsListCall {
 13146  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13147  	return c
 13148  }
 13149  
 13150  // PageToken sets the optional parameter "pageToken": A token identifying a
 13151  // page of results the server should return. Typically, this is the value of
 13152  // ListNonBillableWinningBidsResponse.nextPageToken returned from the previous
 13153  // call to the nonBillableWinningBids.list method.
 13154  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) PageToken(pageToken string) *BiddersFilterSetsNonBillableWinningBidsListCall {
 13155  	c.urlParams_.Set("pageToken", pageToken)
 13156  	return c
 13157  }
 13158  
 13159  // Fields allows partial responses to be retrieved. See
 13160  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13161  // details.
 13162  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsNonBillableWinningBidsListCall {
 13163  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13164  	return c
 13165  }
 13166  
 13167  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13168  // object's ETag matches the given value. This is useful for getting updates
 13169  // only after the object has changed since the last request.
 13170  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsNonBillableWinningBidsListCall {
 13171  	c.ifNoneMatch_ = entityTag
 13172  	return c
 13173  }
 13174  
 13175  // Context sets the context to be used in this call's Do method.
 13176  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Context(ctx context.Context) *BiddersFilterSetsNonBillableWinningBidsListCall {
 13177  	c.ctx_ = ctx
 13178  	return c
 13179  }
 13180  
 13181  // Header returns a http.Header that can be modified by the caller to add
 13182  // headers to the request.
 13183  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Header() http.Header {
 13184  	if c.header_ == nil {
 13185  		c.header_ = make(http.Header)
 13186  	}
 13187  	return c.header_
 13188  }
 13189  
 13190  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) (*http.Response, error) {
 13191  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13192  	if c.ifNoneMatch_ != "" {
 13193  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13194  	}
 13195  	var body io.Reader = nil
 13196  	c.urlParams_.Set("alt", alt)
 13197  	c.urlParams_.Set("prettyPrint", "false")
 13198  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/nonBillableWinningBids")
 13199  	urls += "?" + c.urlParams_.Encode()
 13200  	req, err := http.NewRequest("GET", urls, body)
 13201  	if err != nil {
 13202  		return nil, err
 13203  	}
 13204  	req.Header = reqHeaders
 13205  	googleapi.Expand(req.URL, map[string]string{
 13206  		"filterSetName": c.filterSetName,
 13207  	})
 13208  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13209  }
 13210  
 13211  // Do executes the "adexchangebuyer2.bidders.filterSets.nonBillableWinningBids.list" call.
 13212  // Any non-2xx status code is an error. Response headers are in either
 13213  // *ListNonBillableWinningBidsResponse.ServerResponse.Header or (if a response
 13214  // was returned at all) in error.(*googleapi.Error).Header. Use
 13215  // googleapi.IsNotModified to check whether the returned error was because
 13216  // http.StatusNotModified was returned.
 13217  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Do(opts ...googleapi.CallOption) (*ListNonBillableWinningBidsResponse, error) {
 13218  	gensupport.SetOptions(c.urlParams_, opts...)
 13219  	res, err := c.doRequest("json")
 13220  	if res != nil && res.StatusCode == http.StatusNotModified {
 13221  		if res.Body != nil {
 13222  			res.Body.Close()
 13223  		}
 13224  		return nil, gensupport.WrapError(&googleapi.Error{
 13225  			Code:   res.StatusCode,
 13226  			Header: res.Header,
 13227  		})
 13228  	}
 13229  	if err != nil {
 13230  		return nil, err
 13231  	}
 13232  	defer googleapi.CloseBody(res)
 13233  	if err := googleapi.CheckResponse(res); err != nil {
 13234  		return nil, gensupport.WrapError(err)
 13235  	}
 13236  	ret := &ListNonBillableWinningBidsResponse{
 13237  		ServerResponse: googleapi.ServerResponse{
 13238  			Header:         res.Header,
 13239  			HTTPStatusCode: res.StatusCode,
 13240  		},
 13241  	}
 13242  	target := &ret
 13243  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13244  		return nil, err
 13245  	}
 13246  	return ret, nil
 13247  }
 13248  
 13249  // Pages invokes f for each page of results.
 13250  // A non-nil error returned from f will halt the iteration.
 13251  // The provided context supersedes any context provided to the Context method.
 13252  func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Pages(ctx context.Context, f func(*ListNonBillableWinningBidsResponse) error) error {
 13253  	c.ctx_ = ctx
 13254  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13255  	for {
 13256  		x, err := c.Do()
 13257  		if err != nil {
 13258  			return err
 13259  		}
 13260  		if err := f(x); err != nil {
 13261  			return err
 13262  		}
 13263  		if x.NextPageToken == "" {
 13264  			return nil
 13265  		}
 13266  		c.PageToken(x.NextPageToken)
 13267  	}
 13268  }
 13269  
 13270  type BuyersFilterSetsCreateCall struct {
 13271  	s          *Service
 13272  	ownerName  string
 13273  	filterset  *FilterSet
 13274  	urlParams_ gensupport.URLParams
 13275  	ctx_       context.Context
 13276  	header_    http.Header
 13277  }
 13278  
 13279  // Create: Creates the specified filter set for the account with the given
 13280  // account ID.
 13281  //
 13282  //   - ownerName: Name of the owner (bidder or account) of the filter set to be
 13283  //     created. For example: - For a bidder-level filter set for bidder 123:
 13284  //     `bidders/123` - For an account-level filter set for the buyer account
 13285  //     representing bidder 123: `bidders/123/accounts/123` - For an account-level
 13286  //     filter set for the child seat buyer account 456 whose bidder is 123:
 13287  //     `bidders/123/accounts/456`.
 13288  func (r *BuyersFilterSetsService) Create(ownerName string, filterset *FilterSet) *BuyersFilterSetsCreateCall {
 13289  	c := &BuyersFilterSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13290  	c.ownerName = ownerName
 13291  	c.filterset = filterset
 13292  	return c
 13293  }
 13294  
 13295  // IsTransient sets the optional parameter "isTransient": Whether the filter
 13296  // set is transient, or should be persisted indefinitely. By default, filter
 13297  // sets are not transient. If transient, it will be available for at least 1
 13298  // hour after creation.
 13299  func (c *BuyersFilterSetsCreateCall) IsTransient(isTransient bool) *BuyersFilterSetsCreateCall {
 13300  	c.urlParams_.Set("isTransient", fmt.Sprint(isTransient))
 13301  	return c
 13302  }
 13303  
 13304  // Fields allows partial responses to be retrieved. See
 13305  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13306  // details.
 13307  func (c *BuyersFilterSetsCreateCall) Fields(s ...googleapi.Field) *BuyersFilterSetsCreateCall {
 13308  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13309  	return c
 13310  }
 13311  
 13312  // Context sets the context to be used in this call's Do method.
 13313  func (c *BuyersFilterSetsCreateCall) Context(ctx context.Context) *BuyersFilterSetsCreateCall {
 13314  	c.ctx_ = ctx
 13315  	return c
 13316  }
 13317  
 13318  // Header returns a http.Header that can be modified by the caller to add
 13319  // headers to the request.
 13320  func (c *BuyersFilterSetsCreateCall) Header() http.Header {
 13321  	if c.header_ == nil {
 13322  		c.header_ = make(http.Header)
 13323  	}
 13324  	return c.header_
 13325  }
 13326  
 13327  func (c *BuyersFilterSetsCreateCall) doRequest(alt string) (*http.Response, error) {
 13328  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13329  	var body io.Reader = nil
 13330  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.filterset)
 13331  	if err != nil {
 13332  		return nil, err
 13333  	}
 13334  	c.urlParams_.Set("alt", alt)
 13335  	c.urlParams_.Set("prettyPrint", "false")
 13336  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+ownerName}/filterSets")
 13337  	urls += "?" + c.urlParams_.Encode()
 13338  	req, err := http.NewRequest("POST", urls, body)
 13339  	if err != nil {
 13340  		return nil, err
 13341  	}
 13342  	req.Header = reqHeaders
 13343  	googleapi.Expand(req.URL, map[string]string{
 13344  		"ownerName": c.ownerName,
 13345  	})
 13346  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13347  }
 13348  
 13349  // Do executes the "adexchangebuyer2.buyers.filterSets.create" call.
 13350  // Any non-2xx status code is an error. Response headers are in either
 13351  // *FilterSet.ServerResponse.Header or (if a response was returned at all) in
 13352  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13353  // whether the returned error was because http.StatusNotModified was returned.
 13354  func (c *BuyersFilterSetsCreateCall) Do(opts ...googleapi.CallOption) (*FilterSet, error) {
 13355  	gensupport.SetOptions(c.urlParams_, opts...)
 13356  	res, err := c.doRequest("json")
 13357  	if res != nil && res.StatusCode == http.StatusNotModified {
 13358  		if res.Body != nil {
 13359  			res.Body.Close()
 13360  		}
 13361  		return nil, gensupport.WrapError(&googleapi.Error{
 13362  			Code:   res.StatusCode,
 13363  			Header: res.Header,
 13364  		})
 13365  	}
 13366  	if err != nil {
 13367  		return nil, err
 13368  	}
 13369  	defer googleapi.CloseBody(res)
 13370  	if err := googleapi.CheckResponse(res); err != nil {
 13371  		return nil, gensupport.WrapError(err)
 13372  	}
 13373  	ret := &FilterSet{
 13374  		ServerResponse: googleapi.ServerResponse{
 13375  			Header:         res.Header,
 13376  			HTTPStatusCode: res.StatusCode,
 13377  		},
 13378  	}
 13379  	target := &ret
 13380  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13381  		return nil, err
 13382  	}
 13383  	return ret, nil
 13384  }
 13385  
 13386  type BuyersFilterSetsDeleteCall struct {
 13387  	s          *Service
 13388  	name       string
 13389  	urlParams_ gensupport.URLParams
 13390  	ctx_       context.Context
 13391  	header_    http.Header
 13392  }
 13393  
 13394  // Delete: Deletes the requested filter set from the account with the given
 13395  // account ID.
 13396  //
 13397  //   - name: Full name of the resource to delete. For example: - For a
 13398  //     bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For
 13399  //     an account-level filter set for the buyer account representing bidder 123:
 13400  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 13401  //     set for the child seat buyer account 456 whose bidder is 123:
 13402  //     `bidders/123/accounts/456/filterSets/abc`.
 13403  func (r *BuyersFilterSetsService) Delete(name string) *BuyersFilterSetsDeleteCall {
 13404  	c := &BuyersFilterSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13405  	c.name = name
 13406  	return c
 13407  }
 13408  
 13409  // Fields allows partial responses to be retrieved. See
 13410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13411  // details.
 13412  func (c *BuyersFilterSetsDeleteCall) Fields(s ...googleapi.Field) *BuyersFilterSetsDeleteCall {
 13413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13414  	return c
 13415  }
 13416  
 13417  // Context sets the context to be used in this call's Do method.
 13418  func (c *BuyersFilterSetsDeleteCall) Context(ctx context.Context) *BuyersFilterSetsDeleteCall {
 13419  	c.ctx_ = ctx
 13420  	return c
 13421  }
 13422  
 13423  // Header returns a http.Header that can be modified by the caller to add
 13424  // headers to the request.
 13425  func (c *BuyersFilterSetsDeleteCall) Header() http.Header {
 13426  	if c.header_ == nil {
 13427  		c.header_ = make(http.Header)
 13428  	}
 13429  	return c.header_
 13430  }
 13431  
 13432  func (c *BuyersFilterSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 13433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13434  	var body io.Reader = nil
 13435  	c.urlParams_.Set("alt", alt)
 13436  	c.urlParams_.Set("prettyPrint", "false")
 13437  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 13438  	urls += "?" + c.urlParams_.Encode()
 13439  	req, err := http.NewRequest("DELETE", urls, body)
 13440  	if err != nil {
 13441  		return nil, err
 13442  	}
 13443  	req.Header = reqHeaders
 13444  	googleapi.Expand(req.URL, map[string]string{
 13445  		"name": c.name,
 13446  	})
 13447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13448  }
 13449  
 13450  // Do executes the "adexchangebuyer2.buyers.filterSets.delete" call.
 13451  // Any non-2xx status code is an error. Response headers are in either
 13452  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 13453  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13454  // whether the returned error was because http.StatusNotModified was returned.
 13455  func (c *BuyersFilterSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 13456  	gensupport.SetOptions(c.urlParams_, opts...)
 13457  	res, err := c.doRequest("json")
 13458  	if res != nil && res.StatusCode == http.StatusNotModified {
 13459  		if res.Body != nil {
 13460  			res.Body.Close()
 13461  		}
 13462  		return nil, gensupport.WrapError(&googleapi.Error{
 13463  			Code:   res.StatusCode,
 13464  			Header: res.Header,
 13465  		})
 13466  	}
 13467  	if err != nil {
 13468  		return nil, err
 13469  	}
 13470  	defer googleapi.CloseBody(res)
 13471  	if err := googleapi.CheckResponse(res); err != nil {
 13472  		return nil, gensupport.WrapError(err)
 13473  	}
 13474  	ret := &Empty{
 13475  		ServerResponse: googleapi.ServerResponse{
 13476  			Header:         res.Header,
 13477  			HTTPStatusCode: res.StatusCode,
 13478  		},
 13479  	}
 13480  	target := &ret
 13481  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13482  		return nil, err
 13483  	}
 13484  	return ret, nil
 13485  }
 13486  
 13487  type BuyersFilterSetsGetCall struct {
 13488  	s            *Service
 13489  	name         string
 13490  	urlParams_   gensupport.URLParams
 13491  	ifNoneMatch_ string
 13492  	ctx_         context.Context
 13493  	header_      http.Header
 13494  }
 13495  
 13496  // Get: Retrieves the requested filter set for the account with the given
 13497  // account ID.
 13498  //
 13499  //   - name: Full name of the resource being requested. For example: - For a
 13500  //     bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For
 13501  //     an account-level filter set for the buyer account representing bidder 123:
 13502  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 13503  //     set for the child seat buyer account 456 whose bidder is 123:
 13504  //     `bidders/123/accounts/456/filterSets/abc`.
 13505  func (r *BuyersFilterSetsService) Get(name string) *BuyersFilterSetsGetCall {
 13506  	c := &BuyersFilterSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13507  	c.name = name
 13508  	return c
 13509  }
 13510  
 13511  // Fields allows partial responses to be retrieved. See
 13512  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13513  // details.
 13514  func (c *BuyersFilterSetsGetCall) Fields(s ...googleapi.Field) *BuyersFilterSetsGetCall {
 13515  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13516  	return c
 13517  }
 13518  
 13519  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13520  // object's ETag matches the given value. This is useful for getting updates
 13521  // only after the object has changed since the last request.
 13522  func (c *BuyersFilterSetsGetCall) IfNoneMatch(entityTag string) *BuyersFilterSetsGetCall {
 13523  	c.ifNoneMatch_ = entityTag
 13524  	return c
 13525  }
 13526  
 13527  // Context sets the context to be used in this call's Do method.
 13528  func (c *BuyersFilterSetsGetCall) Context(ctx context.Context) *BuyersFilterSetsGetCall {
 13529  	c.ctx_ = ctx
 13530  	return c
 13531  }
 13532  
 13533  // Header returns a http.Header that can be modified by the caller to add
 13534  // headers to the request.
 13535  func (c *BuyersFilterSetsGetCall) Header() http.Header {
 13536  	if c.header_ == nil {
 13537  		c.header_ = make(http.Header)
 13538  	}
 13539  	return c.header_
 13540  }
 13541  
 13542  func (c *BuyersFilterSetsGetCall) doRequest(alt string) (*http.Response, error) {
 13543  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13544  	if c.ifNoneMatch_ != "" {
 13545  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13546  	}
 13547  	var body io.Reader = nil
 13548  	c.urlParams_.Set("alt", alt)
 13549  	c.urlParams_.Set("prettyPrint", "false")
 13550  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 13551  	urls += "?" + c.urlParams_.Encode()
 13552  	req, err := http.NewRequest("GET", urls, body)
 13553  	if err != nil {
 13554  		return nil, err
 13555  	}
 13556  	req.Header = reqHeaders
 13557  	googleapi.Expand(req.URL, map[string]string{
 13558  		"name": c.name,
 13559  	})
 13560  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13561  }
 13562  
 13563  // Do executes the "adexchangebuyer2.buyers.filterSets.get" call.
 13564  // Any non-2xx status code is an error. Response headers are in either
 13565  // *FilterSet.ServerResponse.Header or (if a response was returned at all) in
 13566  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13567  // whether the returned error was because http.StatusNotModified was returned.
 13568  func (c *BuyersFilterSetsGetCall) Do(opts ...googleapi.CallOption) (*FilterSet, error) {
 13569  	gensupport.SetOptions(c.urlParams_, opts...)
 13570  	res, err := c.doRequest("json")
 13571  	if res != nil && res.StatusCode == http.StatusNotModified {
 13572  		if res.Body != nil {
 13573  			res.Body.Close()
 13574  		}
 13575  		return nil, gensupport.WrapError(&googleapi.Error{
 13576  			Code:   res.StatusCode,
 13577  			Header: res.Header,
 13578  		})
 13579  	}
 13580  	if err != nil {
 13581  		return nil, err
 13582  	}
 13583  	defer googleapi.CloseBody(res)
 13584  	if err := googleapi.CheckResponse(res); err != nil {
 13585  		return nil, gensupport.WrapError(err)
 13586  	}
 13587  	ret := &FilterSet{
 13588  		ServerResponse: googleapi.ServerResponse{
 13589  			Header:         res.Header,
 13590  			HTTPStatusCode: res.StatusCode,
 13591  		},
 13592  	}
 13593  	target := &ret
 13594  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13595  		return nil, err
 13596  	}
 13597  	return ret, nil
 13598  }
 13599  
 13600  type BuyersFilterSetsListCall struct {
 13601  	s            *Service
 13602  	ownerName    string
 13603  	urlParams_   gensupport.URLParams
 13604  	ifNoneMatch_ string
 13605  	ctx_         context.Context
 13606  	header_      http.Header
 13607  }
 13608  
 13609  // List: Lists all filter sets for the account with the given account ID.
 13610  //
 13611  //   - ownerName: Name of the owner (bidder or account) of the filter sets to be
 13612  //     listed. For example: - For a bidder-level filter set for bidder 123:
 13613  //     `bidders/123` - For an account-level filter set for the buyer account
 13614  //     representing bidder 123: `bidders/123/accounts/123` - For an account-level
 13615  //     filter set for the child seat buyer account 456 whose bidder is 123:
 13616  //     `bidders/123/accounts/456`.
 13617  func (r *BuyersFilterSetsService) List(ownerName string) *BuyersFilterSetsListCall {
 13618  	c := &BuyersFilterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13619  	c.ownerName = ownerName
 13620  	return c
 13621  }
 13622  
 13623  // PageSize sets the optional parameter "pageSize": Requested page size. The
 13624  // server may return fewer results than requested. If unspecified, the server
 13625  // will pick an appropriate default.
 13626  func (c *BuyersFilterSetsListCall) PageSize(pageSize int64) *BuyersFilterSetsListCall {
 13627  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13628  	return c
 13629  }
 13630  
 13631  // PageToken sets the optional parameter "pageToken": A token identifying a
 13632  // page of results the server should return. Typically, this is the value of
 13633  // ListFilterSetsResponse.nextPageToken returned from the previous call to the
 13634  // accounts.filterSets.list method.
 13635  func (c *BuyersFilterSetsListCall) PageToken(pageToken string) *BuyersFilterSetsListCall {
 13636  	c.urlParams_.Set("pageToken", pageToken)
 13637  	return c
 13638  }
 13639  
 13640  // Fields allows partial responses to be retrieved. See
 13641  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13642  // details.
 13643  func (c *BuyersFilterSetsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsListCall {
 13644  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13645  	return c
 13646  }
 13647  
 13648  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13649  // object's ETag matches the given value. This is useful for getting updates
 13650  // only after the object has changed since the last request.
 13651  func (c *BuyersFilterSetsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsListCall {
 13652  	c.ifNoneMatch_ = entityTag
 13653  	return c
 13654  }
 13655  
 13656  // Context sets the context to be used in this call's Do method.
 13657  func (c *BuyersFilterSetsListCall) Context(ctx context.Context) *BuyersFilterSetsListCall {
 13658  	c.ctx_ = ctx
 13659  	return c
 13660  }
 13661  
 13662  // Header returns a http.Header that can be modified by the caller to add
 13663  // headers to the request.
 13664  func (c *BuyersFilterSetsListCall) Header() http.Header {
 13665  	if c.header_ == nil {
 13666  		c.header_ = make(http.Header)
 13667  	}
 13668  	return c.header_
 13669  }
 13670  
 13671  func (c *BuyersFilterSetsListCall) doRequest(alt string) (*http.Response, error) {
 13672  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13673  	if c.ifNoneMatch_ != "" {
 13674  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13675  	}
 13676  	var body io.Reader = nil
 13677  	c.urlParams_.Set("alt", alt)
 13678  	c.urlParams_.Set("prettyPrint", "false")
 13679  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+ownerName}/filterSets")
 13680  	urls += "?" + c.urlParams_.Encode()
 13681  	req, err := http.NewRequest("GET", urls, body)
 13682  	if err != nil {
 13683  		return nil, err
 13684  	}
 13685  	req.Header = reqHeaders
 13686  	googleapi.Expand(req.URL, map[string]string{
 13687  		"ownerName": c.ownerName,
 13688  	})
 13689  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13690  }
 13691  
 13692  // Do executes the "adexchangebuyer2.buyers.filterSets.list" call.
 13693  // Any non-2xx status code is an error. Response headers are in either
 13694  // *ListFilterSetsResponse.ServerResponse.Header or (if a response was returned
 13695  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13696  // check whether the returned error was because http.StatusNotModified was
 13697  // returned.
 13698  func (c *BuyersFilterSetsListCall) Do(opts ...googleapi.CallOption) (*ListFilterSetsResponse, error) {
 13699  	gensupport.SetOptions(c.urlParams_, opts...)
 13700  	res, err := c.doRequest("json")
 13701  	if res != nil && res.StatusCode == http.StatusNotModified {
 13702  		if res.Body != nil {
 13703  			res.Body.Close()
 13704  		}
 13705  		return nil, gensupport.WrapError(&googleapi.Error{
 13706  			Code:   res.StatusCode,
 13707  			Header: res.Header,
 13708  		})
 13709  	}
 13710  	if err != nil {
 13711  		return nil, err
 13712  	}
 13713  	defer googleapi.CloseBody(res)
 13714  	if err := googleapi.CheckResponse(res); err != nil {
 13715  		return nil, gensupport.WrapError(err)
 13716  	}
 13717  	ret := &ListFilterSetsResponse{
 13718  		ServerResponse: googleapi.ServerResponse{
 13719  			Header:         res.Header,
 13720  			HTTPStatusCode: res.StatusCode,
 13721  		},
 13722  	}
 13723  	target := &ret
 13724  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13725  		return nil, err
 13726  	}
 13727  	return ret, nil
 13728  }
 13729  
 13730  // Pages invokes f for each page of results.
 13731  // A non-nil error returned from f will halt the iteration.
 13732  // The provided context supersedes any context provided to the Context method.
 13733  func (c *BuyersFilterSetsListCall) Pages(ctx context.Context, f func(*ListFilterSetsResponse) error) error {
 13734  	c.ctx_ = ctx
 13735  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13736  	for {
 13737  		x, err := c.Do()
 13738  		if err != nil {
 13739  			return err
 13740  		}
 13741  		if err := f(x); err != nil {
 13742  			return err
 13743  		}
 13744  		if x.NextPageToken == "" {
 13745  			return nil
 13746  		}
 13747  		c.PageToken(x.NextPageToken)
 13748  	}
 13749  }
 13750  
 13751  type BuyersFilterSetsBidMetricsListCall struct {
 13752  	s             *Service
 13753  	filterSetName string
 13754  	urlParams_    gensupport.URLParams
 13755  	ifNoneMatch_  string
 13756  	ctx_          context.Context
 13757  	header_       http.Header
 13758  }
 13759  
 13760  // List: Lists all metrics that are measured in terms of number of bids.
 13761  //
 13762  //   - filterSetName: Name of the filter set that should be applied to the
 13763  //     requested metrics. For example: - For a bidder-level filter set for bidder
 13764  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 13765  //     the buyer account representing bidder 123:
 13766  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 13767  //     set for the child seat buyer account 456 whose bidder is 123:
 13768  //     `bidders/123/accounts/456/filterSets/abc`.
 13769  func (r *BuyersFilterSetsBidMetricsService) List(filterSetName string) *BuyersFilterSetsBidMetricsListCall {
 13770  	c := &BuyersFilterSetsBidMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13771  	c.filterSetName = filterSetName
 13772  	return c
 13773  }
 13774  
 13775  // PageSize sets the optional parameter "pageSize": Requested page size. The
 13776  // server may return fewer results than requested. If unspecified, the server
 13777  // will pick an appropriate default.
 13778  func (c *BuyersFilterSetsBidMetricsListCall) PageSize(pageSize int64) *BuyersFilterSetsBidMetricsListCall {
 13779  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13780  	return c
 13781  }
 13782  
 13783  // PageToken sets the optional parameter "pageToken": A token identifying a
 13784  // page of results the server should return. Typically, this is the value of
 13785  // ListBidMetricsResponse.nextPageToken returned from the previous call to the
 13786  // bidMetrics.list method.
 13787  func (c *BuyersFilterSetsBidMetricsListCall) PageToken(pageToken string) *BuyersFilterSetsBidMetricsListCall {
 13788  	c.urlParams_.Set("pageToken", pageToken)
 13789  	return c
 13790  }
 13791  
 13792  // Fields allows partial responses to be retrieved. See
 13793  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13794  // details.
 13795  func (c *BuyersFilterSetsBidMetricsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsBidMetricsListCall {
 13796  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13797  	return c
 13798  }
 13799  
 13800  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13801  // object's ETag matches the given value. This is useful for getting updates
 13802  // only after the object has changed since the last request.
 13803  func (c *BuyersFilterSetsBidMetricsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsBidMetricsListCall {
 13804  	c.ifNoneMatch_ = entityTag
 13805  	return c
 13806  }
 13807  
 13808  // Context sets the context to be used in this call's Do method.
 13809  func (c *BuyersFilterSetsBidMetricsListCall) Context(ctx context.Context) *BuyersFilterSetsBidMetricsListCall {
 13810  	c.ctx_ = ctx
 13811  	return c
 13812  }
 13813  
 13814  // Header returns a http.Header that can be modified by the caller to add
 13815  // headers to the request.
 13816  func (c *BuyersFilterSetsBidMetricsListCall) Header() http.Header {
 13817  	if c.header_ == nil {
 13818  		c.header_ = make(http.Header)
 13819  	}
 13820  	return c.header_
 13821  }
 13822  
 13823  func (c *BuyersFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Response, error) {
 13824  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13825  	if c.ifNoneMatch_ != "" {
 13826  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13827  	}
 13828  	var body io.Reader = nil
 13829  	c.urlParams_.Set("alt", alt)
 13830  	c.urlParams_.Set("prettyPrint", "false")
 13831  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidMetrics")
 13832  	urls += "?" + c.urlParams_.Encode()
 13833  	req, err := http.NewRequest("GET", urls, body)
 13834  	if err != nil {
 13835  		return nil, err
 13836  	}
 13837  	req.Header = reqHeaders
 13838  	googleapi.Expand(req.URL, map[string]string{
 13839  		"filterSetName": c.filterSetName,
 13840  	})
 13841  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13842  }
 13843  
 13844  // Do executes the "adexchangebuyer2.buyers.filterSets.bidMetrics.list" call.
 13845  // Any non-2xx status code is an error. Response headers are in either
 13846  // *ListBidMetricsResponse.ServerResponse.Header or (if a response was returned
 13847  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13848  // check whether the returned error was because http.StatusNotModified was
 13849  // returned.
 13850  func (c *BuyersFilterSetsBidMetricsListCall) Do(opts ...googleapi.CallOption) (*ListBidMetricsResponse, error) {
 13851  	gensupport.SetOptions(c.urlParams_, opts...)
 13852  	res, err := c.doRequest("json")
 13853  	if res != nil && res.StatusCode == http.StatusNotModified {
 13854  		if res.Body != nil {
 13855  			res.Body.Close()
 13856  		}
 13857  		return nil, gensupport.WrapError(&googleapi.Error{
 13858  			Code:   res.StatusCode,
 13859  			Header: res.Header,
 13860  		})
 13861  	}
 13862  	if err != nil {
 13863  		return nil, err
 13864  	}
 13865  	defer googleapi.CloseBody(res)
 13866  	if err := googleapi.CheckResponse(res); err != nil {
 13867  		return nil, gensupport.WrapError(err)
 13868  	}
 13869  	ret := &ListBidMetricsResponse{
 13870  		ServerResponse: googleapi.ServerResponse{
 13871  			Header:         res.Header,
 13872  			HTTPStatusCode: res.StatusCode,
 13873  		},
 13874  	}
 13875  	target := &ret
 13876  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13877  		return nil, err
 13878  	}
 13879  	return ret, nil
 13880  }
 13881  
 13882  // Pages invokes f for each page of results.
 13883  // A non-nil error returned from f will halt the iteration.
 13884  // The provided context supersedes any context provided to the Context method.
 13885  func (c *BuyersFilterSetsBidMetricsListCall) Pages(ctx context.Context, f func(*ListBidMetricsResponse) error) error {
 13886  	c.ctx_ = ctx
 13887  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13888  	for {
 13889  		x, err := c.Do()
 13890  		if err != nil {
 13891  			return err
 13892  		}
 13893  		if err := f(x); err != nil {
 13894  			return err
 13895  		}
 13896  		if x.NextPageToken == "" {
 13897  			return nil
 13898  		}
 13899  		c.PageToken(x.NextPageToken)
 13900  	}
 13901  }
 13902  
 13903  type BuyersFilterSetsBidResponseErrorsListCall struct {
 13904  	s             *Service
 13905  	filterSetName string
 13906  	urlParams_    gensupport.URLParams
 13907  	ifNoneMatch_  string
 13908  	ctx_          context.Context
 13909  	header_       http.Header
 13910  }
 13911  
 13912  // List: List all errors that occurred in bid responses, with the number of bid
 13913  // responses affected for each reason.
 13914  //
 13915  //   - filterSetName: Name of the filter set that should be applied to the
 13916  //     requested metrics. For example: - For a bidder-level filter set for bidder
 13917  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 13918  //     the buyer account representing bidder 123:
 13919  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 13920  //     set for the child seat buyer account 456 whose bidder is 123:
 13921  //     `bidders/123/accounts/456/filterSets/abc`.
 13922  func (r *BuyersFilterSetsBidResponseErrorsService) List(filterSetName string) *BuyersFilterSetsBidResponseErrorsListCall {
 13923  	c := &BuyersFilterSetsBidResponseErrorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13924  	c.filterSetName = filterSetName
 13925  	return c
 13926  }
 13927  
 13928  // PageSize sets the optional parameter "pageSize": Requested page size. The
 13929  // server may return fewer results than requested. If unspecified, the server
 13930  // will pick an appropriate default.
 13931  func (c *BuyersFilterSetsBidResponseErrorsListCall) PageSize(pageSize int64) *BuyersFilterSetsBidResponseErrorsListCall {
 13932  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13933  	return c
 13934  }
 13935  
 13936  // PageToken sets the optional parameter "pageToken": A token identifying a
 13937  // page of results the server should return. Typically, this is the value of
 13938  // ListBidResponseErrorsResponse.nextPageToken returned from the previous call
 13939  // to the bidResponseErrors.list method.
 13940  func (c *BuyersFilterSetsBidResponseErrorsListCall) PageToken(pageToken string) *BuyersFilterSetsBidResponseErrorsListCall {
 13941  	c.urlParams_.Set("pageToken", pageToken)
 13942  	return c
 13943  }
 13944  
 13945  // Fields allows partial responses to be retrieved. See
 13946  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13947  // details.
 13948  func (c *BuyersFilterSetsBidResponseErrorsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsBidResponseErrorsListCall {
 13949  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13950  	return c
 13951  }
 13952  
 13953  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13954  // object's ETag matches the given value. This is useful for getting updates
 13955  // only after the object has changed since the last request.
 13956  func (c *BuyersFilterSetsBidResponseErrorsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsBidResponseErrorsListCall {
 13957  	c.ifNoneMatch_ = entityTag
 13958  	return c
 13959  }
 13960  
 13961  // Context sets the context to be used in this call's Do method.
 13962  func (c *BuyersFilterSetsBidResponseErrorsListCall) Context(ctx context.Context) *BuyersFilterSetsBidResponseErrorsListCall {
 13963  	c.ctx_ = ctx
 13964  	return c
 13965  }
 13966  
 13967  // Header returns a http.Header that can be modified by the caller to add
 13968  // headers to the request.
 13969  func (c *BuyersFilterSetsBidResponseErrorsListCall) Header() http.Header {
 13970  	if c.header_ == nil {
 13971  		c.header_ = make(http.Header)
 13972  	}
 13973  	return c.header_
 13974  }
 13975  
 13976  func (c *BuyersFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*http.Response, error) {
 13977  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13978  	if c.ifNoneMatch_ != "" {
 13979  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13980  	}
 13981  	var body io.Reader = nil
 13982  	c.urlParams_.Set("alt", alt)
 13983  	c.urlParams_.Set("prettyPrint", "false")
 13984  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidResponseErrors")
 13985  	urls += "?" + c.urlParams_.Encode()
 13986  	req, err := http.NewRequest("GET", urls, body)
 13987  	if err != nil {
 13988  		return nil, err
 13989  	}
 13990  	req.Header = reqHeaders
 13991  	googleapi.Expand(req.URL, map[string]string{
 13992  		"filterSetName": c.filterSetName,
 13993  	})
 13994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13995  }
 13996  
 13997  // Do executes the "adexchangebuyer2.buyers.filterSets.bidResponseErrors.list" call.
 13998  // Any non-2xx status code is an error. Response headers are in either
 13999  // *ListBidResponseErrorsResponse.ServerResponse.Header or (if a response was
 14000  // returned at all) in error.(*googleapi.Error).Header. Use
 14001  // googleapi.IsNotModified to check whether the returned error was because
 14002  // http.StatusNotModified was returned.
 14003  func (c *BuyersFilterSetsBidResponseErrorsListCall) Do(opts ...googleapi.CallOption) (*ListBidResponseErrorsResponse, error) {
 14004  	gensupport.SetOptions(c.urlParams_, opts...)
 14005  	res, err := c.doRequest("json")
 14006  	if res != nil && res.StatusCode == http.StatusNotModified {
 14007  		if res.Body != nil {
 14008  			res.Body.Close()
 14009  		}
 14010  		return nil, gensupport.WrapError(&googleapi.Error{
 14011  			Code:   res.StatusCode,
 14012  			Header: res.Header,
 14013  		})
 14014  	}
 14015  	if err != nil {
 14016  		return nil, err
 14017  	}
 14018  	defer googleapi.CloseBody(res)
 14019  	if err := googleapi.CheckResponse(res); err != nil {
 14020  		return nil, gensupport.WrapError(err)
 14021  	}
 14022  	ret := &ListBidResponseErrorsResponse{
 14023  		ServerResponse: googleapi.ServerResponse{
 14024  			Header:         res.Header,
 14025  			HTTPStatusCode: res.StatusCode,
 14026  		},
 14027  	}
 14028  	target := &ret
 14029  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14030  		return nil, err
 14031  	}
 14032  	return ret, nil
 14033  }
 14034  
 14035  // Pages invokes f for each page of results.
 14036  // A non-nil error returned from f will halt the iteration.
 14037  // The provided context supersedes any context provided to the Context method.
 14038  func (c *BuyersFilterSetsBidResponseErrorsListCall) Pages(ctx context.Context, f func(*ListBidResponseErrorsResponse) error) error {
 14039  	c.ctx_ = ctx
 14040  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14041  	for {
 14042  		x, err := c.Do()
 14043  		if err != nil {
 14044  			return err
 14045  		}
 14046  		if err := f(x); err != nil {
 14047  			return err
 14048  		}
 14049  		if x.NextPageToken == "" {
 14050  			return nil
 14051  		}
 14052  		c.PageToken(x.NextPageToken)
 14053  	}
 14054  }
 14055  
 14056  type BuyersFilterSetsBidResponsesWithoutBidsListCall struct {
 14057  	s             *Service
 14058  	filterSetName string
 14059  	urlParams_    gensupport.URLParams
 14060  	ifNoneMatch_  string
 14061  	ctx_          context.Context
 14062  	header_       http.Header
 14063  }
 14064  
 14065  // List: List all reasons for which bid responses were considered to have no
 14066  // applicable bids, with the number of bid responses affected for each reason.
 14067  //
 14068  //   - filterSetName: Name of the filter set that should be applied to the
 14069  //     requested metrics. For example: - For a bidder-level filter set for bidder
 14070  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 14071  //     the buyer account representing bidder 123:
 14072  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 14073  //     set for the child seat buyer account 456 whose bidder is 123:
 14074  //     `bidders/123/accounts/456/filterSets/abc`.
 14075  func (r *BuyersFilterSetsBidResponsesWithoutBidsService) List(filterSetName string) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
 14076  	c := &BuyersFilterSetsBidResponsesWithoutBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14077  	c.filterSetName = filterSetName
 14078  	return c
 14079  }
 14080  
 14081  // PageSize sets the optional parameter "pageSize": Requested page size. The
 14082  // server may return fewer results than requested. If unspecified, the server
 14083  // will pick an appropriate default.
 14084  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
 14085  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14086  	return c
 14087  }
 14088  
 14089  // PageToken sets the optional parameter "pageToken": A token identifying a
 14090  // page of results the server should return. Typically, this is the value of
 14091  // ListBidResponsesWithoutBidsResponse.nextPageToken returned from the previous
 14092  // call to the bidResponsesWithoutBids.list method.
 14093  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) PageToken(pageToken string) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
 14094  	c.urlParams_.Set("pageToken", pageToken)
 14095  	return c
 14096  }
 14097  
 14098  // Fields allows partial responses to be retrieved. See
 14099  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14100  // details.
 14101  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
 14102  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14103  	return c
 14104  }
 14105  
 14106  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14107  // object's ETag matches the given value. This is useful for getting updates
 14108  // only after the object has changed since the last request.
 14109  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
 14110  	c.ifNoneMatch_ = entityTag
 14111  	return c
 14112  }
 14113  
 14114  // Context sets the context to be used in this call's Do method.
 14115  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Context(ctx context.Context) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
 14116  	c.ctx_ = ctx
 14117  	return c
 14118  }
 14119  
 14120  // Header returns a http.Header that can be modified by the caller to add
 14121  // headers to the request.
 14122  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Header() http.Header {
 14123  	if c.header_ == nil {
 14124  		c.header_ = make(http.Header)
 14125  	}
 14126  	return c.header_
 14127  }
 14128  
 14129  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) (*http.Response, error) {
 14130  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14131  	if c.ifNoneMatch_ != "" {
 14132  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14133  	}
 14134  	var body io.Reader = nil
 14135  	c.urlParams_.Set("alt", alt)
 14136  	c.urlParams_.Set("prettyPrint", "false")
 14137  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/bidResponsesWithoutBids")
 14138  	urls += "?" + c.urlParams_.Encode()
 14139  	req, err := http.NewRequest("GET", urls, body)
 14140  	if err != nil {
 14141  		return nil, err
 14142  	}
 14143  	req.Header = reqHeaders
 14144  	googleapi.Expand(req.URL, map[string]string{
 14145  		"filterSetName": c.filterSetName,
 14146  	})
 14147  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14148  }
 14149  
 14150  // Do executes the "adexchangebuyer2.buyers.filterSets.bidResponsesWithoutBids.list" call.
 14151  // Any non-2xx status code is an error. Response headers are in either
 14152  // *ListBidResponsesWithoutBidsResponse.ServerResponse.Header or (if a response
 14153  // was returned at all) in error.(*googleapi.Error).Header. Use
 14154  // googleapi.IsNotModified to check whether the returned error was because
 14155  // http.StatusNotModified was returned.
 14156  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Do(opts ...googleapi.CallOption) (*ListBidResponsesWithoutBidsResponse, error) {
 14157  	gensupport.SetOptions(c.urlParams_, opts...)
 14158  	res, err := c.doRequest("json")
 14159  	if res != nil && res.StatusCode == http.StatusNotModified {
 14160  		if res.Body != nil {
 14161  			res.Body.Close()
 14162  		}
 14163  		return nil, gensupport.WrapError(&googleapi.Error{
 14164  			Code:   res.StatusCode,
 14165  			Header: res.Header,
 14166  		})
 14167  	}
 14168  	if err != nil {
 14169  		return nil, err
 14170  	}
 14171  	defer googleapi.CloseBody(res)
 14172  	if err := googleapi.CheckResponse(res); err != nil {
 14173  		return nil, gensupport.WrapError(err)
 14174  	}
 14175  	ret := &ListBidResponsesWithoutBidsResponse{
 14176  		ServerResponse: googleapi.ServerResponse{
 14177  			Header:         res.Header,
 14178  			HTTPStatusCode: res.StatusCode,
 14179  		},
 14180  	}
 14181  	target := &ret
 14182  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14183  		return nil, err
 14184  	}
 14185  	return ret, nil
 14186  }
 14187  
 14188  // Pages invokes f for each page of results.
 14189  // A non-nil error returned from f will halt the iteration.
 14190  // The provided context supersedes any context provided to the Context method.
 14191  func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Pages(ctx context.Context, f func(*ListBidResponsesWithoutBidsResponse) error) error {
 14192  	c.ctx_ = ctx
 14193  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14194  	for {
 14195  		x, err := c.Do()
 14196  		if err != nil {
 14197  			return err
 14198  		}
 14199  		if err := f(x); err != nil {
 14200  			return err
 14201  		}
 14202  		if x.NextPageToken == "" {
 14203  			return nil
 14204  		}
 14205  		c.PageToken(x.NextPageToken)
 14206  	}
 14207  }
 14208  
 14209  type BuyersFilterSetsFilteredBidRequestsListCall struct {
 14210  	s             *Service
 14211  	filterSetName string
 14212  	urlParams_    gensupport.URLParams
 14213  	ifNoneMatch_  string
 14214  	ctx_          context.Context
 14215  	header_       http.Header
 14216  }
 14217  
 14218  // List: List all reasons that caused a bid request not to be sent for an
 14219  // impression, with the number of bid requests not sent for each reason.
 14220  //
 14221  //   - filterSetName: Name of the filter set that should be applied to the
 14222  //     requested metrics. For example: - For a bidder-level filter set for bidder
 14223  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 14224  //     the buyer account representing bidder 123:
 14225  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 14226  //     set for the child seat buyer account 456 whose bidder is 123:
 14227  //     `bidders/123/accounts/456/filterSets/abc`.
 14228  func (r *BuyersFilterSetsFilteredBidRequestsService) List(filterSetName string) *BuyersFilterSetsFilteredBidRequestsListCall {
 14229  	c := &BuyersFilterSetsFilteredBidRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14230  	c.filterSetName = filterSetName
 14231  	return c
 14232  }
 14233  
 14234  // PageSize sets the optional parameter "pageSize": Requested page size. The
 14235  // server may return fewer results than requested. If unspecified, the server
 14236  // will pick an appropriate default.
 14237  func (c *BuyersFilterSetsFilteredBidRequestsListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidRequestsListCall {
 14238  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14239  	return c
 14240  }
 14241  
 14242  // PageToken sets the optional parameter "pageToken": A token identifying a
 14243  // page of results the server should return. Typically, this is the value of
 14244  // ListFilteredBidRequestsResponse.nextPageToken returned from the previous
 14245  // call to the filteredBidRequests.list method.
 14246  func (c *BuyersFilterSetsFilteredBidRequestsListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidRequestsListCall {
 14247  	c.urlParams_.Set("pageToken", pageToken)
 14248  	return c
 14249  }
 14250  
 14251  // Fields allows partial responses to be retrieved. See
 14252  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14253  // details.
 14254  func (c *BuyersFilterSetsFilteredBidRequestsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidRequestsListCall {
 14255  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14256  	return c
 14257  }
 14258  
 14259  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14260  // object's ETag matches the given value. This is useful for getting updates
 14261  // only after the object has changed since the last request.
 14262  func (c *BuyersFilterSetsFilteredBidRequestsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidRequestsListCall {
 14263  	c.ifNoneMatch_ = entityTag
 14264  	return c
 14265  }
 14266  
 14267  // Context sets the context to be used in this call's Do method.
 14268  func (c *BuyersFilterSetsFilteredBidRequestsListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidRequestsListCall {
 14269  	c.ctx_ = ctx
 14270  	return c
 14271  }
 14272  
 14273  // Header returns a http.Header that can be modified by the caller to add
 14274  // headers to the request.
 14275  func (c *BuyersFilterSetsFilteredBidRequestsListCall) Header() http.Header {
 14276  	if c.header_ == nil {
 14277  		c.header_ = make(http.Header)
 14278  	}
 14279  	return c.header_
 14280  }
 14281  
 14282  func (c *BuyersFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*http.Response, error) {
 14283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14284  	if c.ifNoneMatch_ != "" {
 14285  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14286  	}
 14287  	var body io.Reader = nil
 14288  	c.urlParams_.Set("alt", alt)
 14289  	c.urlParams_.Set("prettyPrint", "false")
 14290  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBidRequests")
 14291  	urls += "?" + c.urlParams_.Encode()
 14292  	req, err := http.NewRequest("GET", urls, body)
 14293  	if err != nil {
 14294  		return nil, err
 14295  	}
 14296  	req.Header = reqHeaders
 14297  	googleapi.Expand(req.URL, map[string]string{
 14298  		"filterSetName": c.filterSetName,
 14299  	})
 14300  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14301  }
 14302  
 14303  // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBidRequests.list" call.
 14304  // Any non-2xx status code is an error. Response headers are in either
 14305  // *ListFilteredBidRequestsResponse.ServerResponse.Header or (if a response was
 14306  // returned at all) in error.(*googleapi.Error).Header. Use
 14307  // googleapi.IsNotModified to check whether the returned error was because
 14308  // http.StatusNotModified was returned.
 14309  func (c *BuyersFilterSetsFilteredBidRequestsListCall) Do(opts ...googleapi.CallOption) (*ListFilteredBidRequestsResponse, error) {
 14310  	gensupport.SetOptions(c.urlParams_, opts...)
 14311  	res, err := c.doRequest("json")
 14312  	if res != nil && res.StatusCode == http.StatusNotModified {
 14313  		if res.Body != nil {
 14314  			res.Body.Close()
 14315  		}
 14316  		return nil, gensupport.WrapError(&googleapi.Error{
 14317  			Code:   res.StatusCode,
 14318  			Header: res.Header,
 14319  		})
 14320  	}
 14321  	if err != nil {
 14322  		return nil, err
 14323  	}
 14324  	defer googleapi.CloseBody(res)
 14325  	if err := googleapi.CheckResponse(res); err != nil {
 14326  		return nil, gensupport.WrapError(err)
 14327  	}
 14328  	ret := &ListFilteredBidRequestsResponse{
 14329  		ServerResponse: googleapi.ServerResponse{
 14330  			Header:         res.Header,
 14331  			HTTPStatusCode: res.StatusCode,
 14332  		},
 14333  	}
 14334  	target := &ret
 14335  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14336  		return nil, err
 14337  	}
 14338  	return ret, nil
 14339  }
 14340  
 14341  // Pages invokes f for each page of results.
 14342  // A non-nil error returned from f will halt the iteration.
 14343  // The provided context supersedes any context provided to the Context method.
 14344  func (c *BuyersFilterSetsFilteredBidRequestsListCall) Pages(ctx context.Context, f func(*ListFilteredBidRequestsResponse) error) error {
 14345  	c.ctx_ = ctx
 14346  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14347  	for {
 14348  		x, err := c.Do()
 14349  		if err != nil {
 14350  			return err
 14351  		}
 14352  		if err := f(x); err != nil {
 14353  			return err
 14354  		}
 14355  		if x.NextPageToken == "" {
 14356  			return nil
 14357  		}
 14358  		c.PageToken(x.NextPageToken)
 14359  	}
 14360  }
 14361  
 14362  type BuyersFilterSetsFilteredBidsListCall struct {
 14363  	s             *Service
 14364  	filterSetName string
 14365  	urlParams_    gensupport.URLParams
 14366  	ifNoneMatch_  string
 14367  	ctx_          context.Context
 14368  	header_       http.Header
 14369  }
 14370  
 14371  // List: List all reasons for which bids were filtered, with the number of bids
 14372  // filtered for each reason.
 14373  //
 14374  //   - filterSetName: Name of the filter set that should be applied to the
 14375  //     requested metrics. For example: - For a bidder-level filter set for bidder
 14376  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 14377  //     the buyer account representing bidder 123:
 14378  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 14379  //     set for the child seat buyer account 456 whose bidder is 123:
 14380  //     `bidders/123/accounts/456/filterSets/abc`.
 14381  func (r *BuyersFilterSetsFilteredBidsService) List(filterSetName string) *BuyersFilterSetsFilteredBidsListCall {
 14382  	c := &BuyersFilterSetsFilteredBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14383  	c.filterSetName = filterSetName
 14384  	return c
 14385  }
 14386  
 14387  // PageSize sets the optional parameter "pageSize": Requested page size. The
 14388  // server may return fewer results than requested. If unspecified, the server
 14389  // will pick an appropriate default.
 14390  func (c *BuyersFilterSetsFilteredBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidsListCall {
 14391  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14392  	return c
 14393  }
 14394  
 14395  // PageToken sets the optional parameter "pageToken": A token identifying a
 14396  // page of results the server should return. Typically, this is the value of
 14397  // ListFilteredBidsResponse.nextPageToken returned from the previous call to
 14398  // the filteredBids.list method.
 14399  func (c *BuyersFilterSetsFilteredBidsListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidsListCall {
 14400  	c.urlParams_.Set("pageToken", pageToken)
 14401  	return c
 14402  }
 14403  
 14404  // Fields allows partial responses to be retrieved. See
 14405  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14406  // details.
 14407  func (c *BuyersFilterSetsFilteredBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidsListCall {
 14408  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14409  	return c
 14410  }
 14411  
 14412  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14413  // object's ETag matches the given value. This is useful for getting updates
 14414  // only after the object has changed since the last request.
 14415  func (c *BuyersFilterSetsFilteredBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidsListCall {
 14416  	c.ifNoneMatch_ = entityTag
 14417  	return c
 14418  }
 14419  
 14420  // Context sets the context to be used in this call's Do method.
 14421  func (c *BuyersFilterSetsFilteredBidsListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidsListCall {
 14422  	c.ctx_ = ctx
 14423  	return c
 14424  }
 14425  
 14426  // Header returns a http.Header that can be modified by the caller to add
 14427  // headers to the request.
 14428  func (c *BuyersFilterSetsFilteredBidsListCall) Header() http.Header {
 14429  	if c.header_ == nil {
 14430  		c.header_ = make(http.Header)
 14431  	}
 14432  	return c.header_
 14433  }
 14434  
 14435  func (c *BuyersFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Response, error) {
 14436  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14437  	if c.ifNoneMatch_ != "" {
 14438  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14439  	}
 14440  	var body io.Reader = nil
 14441  	c.urlParams_.Set("alt", alt)
 14442  	c.urlParams_.Set("prettyPrint", "false")
 14443  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids")
 14444  	urls += "?" + c.urlParams_.Encode()
 14445  	req, err := http.NewRequest("GET", urls, body)
 14446  	if err != nil {
 14447  		return nil, err
 14448  	}
 14449  	req.Header = reqHeaders
 14450  	googleapi.Expand(req.URL, map[string]string{
 14451  		"filterSetName": c.filterSetName,
 14452  	})
 14453  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14454  }
 14455  
 14456  // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBids.list" call.
 14457  // Any non-2xx status code is an error. Response headers are in either
 14458  // *ListFilteredBidsResponse.ServerResponse.Header or (if a response was
 14459  // returned at all) in error.(*googleapi.Error).Header. Use
 14460  // googleapi.IsNotModified to check whether the returned error was because
 14461  // http.StatusNotModified was returned.
 14462  func (c *BuyersFilterSetsFilteredBidsListCall) Do(opts ...googleapi.CallOption) (*ListFilteredBidsResponse, error) {
 14463  	gensupport.SetOptions(c.urlParams_, opts...)
 14464  	res, err := c.doRequest("json")
 14465  	if res != nil && res.StatusCode == http.StatusNotModified {
 14466  		if res.Body != nil {
 14467  			res.Body.Close()
 14468  		}
 14469  		return nil, gensupport.WrapError(&googleapi.Error{
 14470  			Code:   res.StatusCode,
 14471  			Header: res.Header,
 14472  		})
 14473  	}
 14474  	if err != nil {
 14475  		return nil, err
 14476  	}
 14477  	defer googleapi.CloseBody(res)
 14478  	if err := googleapi.CheckResponse(res); err != nil {
 14479  		return nil, gensupport.WrapError(err)
 14480  	}
 14481  	ret := &ListFilteredBidsResponse{
 14482  		ServerResponse: googleapi.ServerResponse{
 14483  			Header:         res.Header,
 14484  			HTTPStatusCode: res.StatusCode,
 14485  		},
 14486  	}
 14487  	target := &ret
 14488  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14489  		return nil, err
 14490  	}
 14491  	return ret, nil
 14492  }
 14493  
 14494  // Pages invokes f for each page of results.
 14495  // A non-nil error returned from f will halt the iteration.
 14496  // The provided context supersedes any context provided to the Context method.
 14497  func (c *BuyersFilterSetsFilteredBidsListCall) Pages(ctx context.Context, f func(*ListFilteredBidsResponse) error) error {
 14498  	c.ctx_ = ctx
 14499  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14500  	for {
 14501  		x, err := c.Do()
 14502  		if err != nil {
 14503  			return err
 14504  		}
 14505  		if err := f(x); err != nil {
 14506  			return err
 14507  		}
 14508  		if x.NextPageToken == "" {
 14509  			return nil
 14510  		}
 14511  		c.PageToken(x.NextPageToken)
 14512  	}
 14513  }
 14514  
 14515  type BuyersFilterSetsFilteredBidsCreativesListCall struct {
 14516  	s                *Service
 14517  	filterSetName    string
 14518  	creativeStatusId int64
 14519  	urlParams_       gensupport.URLParams
 14520  	ifNoneMatch_     string
 14521  	ctx_             context.Context
 14522  	header_          http.Header
 14523  }
 14524  
 14525  // List: List all creatives associated with a specific reason for which bids
 14526  // were filtered, with the number of bids filtered for each creative.
 14527  //
 14528  //   - creativeStatusId: The ID of the creative status for which to retrieve a
 14529  //     breakdown by creative. See creative-status-codes
 14530  //     (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
 14531  //   - filterSetName: Name of the filter set that should be applied to the
 14532  //     requested metrics. For example: - For a bidder-level filter set for bidder
 14533  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 14534  //     the buyer account representing bidder 123:
 14535  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 14536  //     set for the child seat buyer account 456 whose bidder is 123:
 14537  //     `bidders/123/accounts/456/filterSets/abc`.
 14538  func (r *BuyersFilterSetsFilteredBidsCreativesService) List(filterSetName string, creativeStatusId int64) *BuyersFilterSetsFilteredBidsCreativesListCall {
 14539  	c := &BuyersFilterSetsFilteredBidsCreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14540  	c.filterSetName = filterSetName
 14541  	c.creativeStatusId = creativeStatusId
 14542  	return c
 14543  }
 14544  
 14545  // PageSize sets the optional parameter "pageSize": Requested page size. The
 14546  // server may return fewer results than requested. If unspecified, the server
 14547  // will pick an appropriate default.
 14548  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidsCreativesListCall {
 14549  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14550  	return c
 14551  }
 14552  
 14553  // PageToken sets the optional parameter "pageToken": A token identifying a
 14554  // page of results the server should return. Typically, this is the value of
 14555  // ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from
 14556  // the previous call to the filteredBids.creatives.list method.
 14557  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidsCreativesListCall {
 14558  	c.urlParams_.Set("pageToken", pageToken)
 14559  	return c
 14560  }
 14561  
 14562  // Fields allows partial responses to be retrieved. See
 14563  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14564  // details.
 14565  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidsCreativesListCall {
 14566  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14567  	return c
 14568  }
 14569  
 14570  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14571  // object's ETag matches the given value. This is useful for getting updates
 14572  // only after the object has changed since the last request.
 14573  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidsCreativesListCall {
 14574  	c.ifNoneMatch_ = entityTag
 14575  	return c
 14576  }
 14577  
 14578  // Context sets the context to be used in this call's Do method.
 14579  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidsCreativesListCall {
 14580  	c.ctx_ = ctx
 14581  	return c
 14582  }
 14583  
 14584  // Header returns a http.Header that can be modified by the caller to add
 14585  // headers to the request.
 14586  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Header() http.Header {
 14587  	if c.header_ == nil {
 14588  		c.header_ = make(http.Header)
 14589  	}
 14590  	return c.header_
 14591  }
 14592  
 14593  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) (*http.Response, error) {
 14594  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14595  	if c.ifNoneMatch_ != "" {
 14596  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14597  	}
 14598  	var body io.Reader = nil
 14599  	c.urlParams_.Set("alt", alt)
 14600  	c.urlParams_.Set("prettyPrint", "false")
 14601  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives")
 14602  	urls += "?" + c.urlParams_.Encode()
 14603  	req, err := http.NewRequest("GET", urls, body)
 14604  	if err != nil {
 14605  		return nil, err
 14606  	}
 14607  	req.Header = reqHeaders
 14608  	googleapi.Expand(req.URL, map[string]string{
 14609  		"filterSetName":    c.filterSetName,
 14610  		"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
 14611  	})
 14612  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14613  }
 14614  
 14615  // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBids.creatives.list" call.
 14616  // Any non-2xx status code is an error. Response headers are in either
 14617  // *ListCreativeStatusBreakdownByCreativeResponse.ServerResponse.Header or (if
 14618  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 14619  // googleapi.IsNotModified to check whether the returned error was because
 14620  // http.StatusNotModified was returned.
 14621  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusBreakdownByCreativeResponse, error) {
 14622  	gensupport.SetOptions(c.urlParams_, opts...)
 14623  	res, err := c.doRequest("json")
 14624  	if res != nil && res.StatusCode == http.StatusNotModified {
 14625  		if res.Body != nil {
 14626  			res.Body.Close()
 14627  		}
 14628  		return nil, gensupport.WrapError(&googleapi.Error{
 14629  			Code:   res.StatusCode,
 14630  			Header: res.Header,
 14631  		})
 14632  	}
 14633  	if err != nil {
 14634  		return nil, err
 14635  	}
 14636  	defer googleapi.CloseBody(res)
 14637  	if err := googleapi.CheckResponse(res); err != nil {
 14638  		return nil, gensupport.WrapError(err)
 14639  	}
 14640  	ret := &ListCreativeStatusBreakdownByCreativeResponse{
 14641  		ServerResponse: googleapi.ServerResponse{
 14642  			Header:         res.Header,
 14643  			HTTPStatusCode: res.StatusCode,
 14644  		},
 14645  	}
 14646  	target := &ret
 14647  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14648  		return nil, err
 14649  	}
 14650  	return ret, nil
 14651  }
 14652  
 14653  // Pages invokes f for each page of results.
 14654  // A non-nil error returned from f will halt the iteration.
 14655  // The provided context supersedes any context provided to the Context method.
 14656  func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativeStatusBreakdownByCreativeResponse) error) error {
 14657  	c.ctx_ = ctx
 14658  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14659  	for {
 14660  		x, err := c.Do()
 14661  		if err != nil {
 14662  			return err
 14663  		}
 14664  		if err := f(x); err != nil {
 14665  			return err
 14666  		}
 14667  		if x.NextPageToken == "" {
 14668  			return nil
 14669  		}
 14670  		c.PageToken(x.NextPageToken)
 14671  	}
 14672  }
 14673  
 14674  type BuyersFilterSetsFilteredBidsDetailsListCall struct {
 14675  	s                *Service
 14676  	filterSetName    string
 14677  	creativeStatusId int64
 14678  	urlParams_       gensupport.URLParams
 14679  	ifNoneMatch_     string
 14680  	ctx_             context.Context
 14681  	header_          http.Header
 14682  }
 14683  
 14684  // List: List all details associated with a specific reason for which bids were
 14685  // filtered, with the number of bids filtered for each detail.
 14686  //
 14687  //   - creativeStatusId: The ID of the creative status for which to retrieve a
 14688  //     breakdown by detail. See creative-status-codes
 14689  //     (https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
 14690  //     Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and
 14691  //     87.
 14692  //   - filterSetName: Name of the filter set that should be applied to the
 14693  //     requested metrics. For example: - For a bidder-level filter set for bidder
 14694  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 14695  //     the buyer account representing bidder 123:
 14696  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 14697  //     set for the child seat buyer account 456 whose bidder is 123:
 14698  //     `bidders/123/accounts/456/filterSets/abc`.
 14699  func (r *BuyersFilterSetsFilteredBidsDetailsService) List(filterSetName string, creativeStatusId int64) *BuyersFilterSetsFilteredBidsDetailsListCall {
 14700  	c := &BuyersFilterSetsFilteredBidsDetailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14701  	c.filterSetName = filterSetName
 14702  	c.creativeStatusId = creativeStatusId
 14703  	return c
 14704  }
 14705  
 14706  // PageSize sets the optional parameter "pageSize": Requested page size. The
 14707  // server may return fewer results than requested. If unspecified, the server
 14708  // will pick an appropriate default.
 14709  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidsDetailsListCall {
 14710  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14711  	return c
 14712  }
 14713  
 14714  // PageToken sets the optional parameter "pageToken": A token identifying a
 14715  // page of results the server should return. Typically, this is the value of
 14716  // ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from the
 14717  // previous call to the filteredBids.details.list method.
 14718  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidsDetailsListCall {
 14719  	c.urlParams_.Set("pageToken", pageToken)
 14720  	return c
 14721  }
 14722  
 14723  // Fields allows partial responses to be retrieved. See
 14724  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14725  // details.
 14726  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidsDetailsListCall {
 14727  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14728  	return c
 14729  }
 14730  
 14731  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14732  // object's ETag matches the given value. This is useful for getting updates
 14733  // only after the object has changed since the last request.
 14734  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidsDetailsListCall {
 14735  	c.ifNoneMatch_ = entityTag
 14736  	return c
 14737  }
 14738  
 14739  // Context sets the context to be used in this call's Do method.
 14740  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidsDetailsListCall {
 14741  	c.ctx_ = ctx
 14742  	return c
 14743  }
 14744  
 14745  // Header returns a http.Header that can be modified by the caller to add
 14746  // headers to the request.
 14747  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Header() http.Header {
 14748  	if c.header_ == nil {
 14749  		c.header_ = make(http.Header)
 14750  	}
 14751  	return c.header_
 14752  }
 14753  
 14754  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*http.Response, error) {
 14755  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14756  	if c.ifNoneMatch_ != "" {
 14757  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14758  	}
 14759  	var body io.Reader = nil
 14760  	c.urlParams_.Set("alt", alt)
 14761  	c.urlParams_.Set("prettyPrint", "false")
 14762  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details")
 14763  	urls += "?" + c.urlParams_.Encode()
 14764  	req, err := http.NewRequest("GET", urls, body)
 14765  	if err != nil {
 14766  		return nil, err
 14767  	}
 14768  	req.Header = reqHeaders
 14769  	googleapi.Expand(req.URL, map[string]string{
 14770  		"filterSetName":    c.filterSetName,
 14771  		"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
 14772  	})
 14773  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14774  }
 14775  
 14776  // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBids.details.list" call.
 14777  // Any non-2xx status code is an error. Response headers are in either
 14778  // *ListCreativeStatusBreakdownByDetailResponse.ServerResponse.Header or (if a
 14779  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14780  // googleapi.IsNotModified to check whether the returned error was because
 14781  // http.StatusNotModified was returned.
 14782  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusBreakdownByDetailResponse, error) {
 14783  	gensupport.SetOptions(c.urlParams_, opts...)
 14784  	res, err := c.doRequest("json")
 14785  	if res != nil && res.StatusCode == http.StatusNotModified {
 14786  		if res.Body != nil {
 14787  			res.Body.Close()
 14788  		}
 14789  		return nil, gensupport.WrapError(&googleapi.Error{
 14790  			Code:   res.StatusCode,
 14791  			Header: res.Header,
 14792  		})
 14793  	}
 14794  	if err != nil {
 14795  		return nil, err
 14796  	}
 14797  	defer googleapi.CloseBody(res)
 14798  	if err := googleapi.CheckResponse(res); err != nil {
 14799  		return nil, gensupport.WrapError(err)
 14800  	}
 14801  	ret := &ListCreativeStatusBreakdownByDetailResponse{
 14802  		ServerResponse: googleapi.ServerResponse{
 14803  			Header:         res.Header,
 14804  			HTTPStatusCode: res.StatusCode,
 14805  		},
 14806  	}
 14807  	target := &ret
 14808  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14809  		return nil, err
 14810  	}
 14811  	return ret, nil
 14812  }
 14813  
 14814  // Pages invokes f for each page of results.
 14815  // A non-nil error returned from f will halt the iteration.
 14816  // The provided context supersedes any context provided to the Context method.
 14817  func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Pages(ctx context.Context, f func(*ListCreativeStatusBreakdownByDetailResponse) error) error {
 14818  	c.ctx_ = ctx
 14819  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14820  	for {
 14821  		x, err := c.Do()
 14822  		if err != nil {
 14823  			return err
 14824  		}
 14825  		if err := f(x); err != nil {
 14826  			return err
 14827  		}
 14828  		if x.NextPageToken == "" {
 14829  			return nil
 14830  		}
 14831  		c.PageToken(x.NextPageToken)
 14832  	}
 14833  }
 14834  
 14835  type BuyersFilterSetsImpressionMetricsListCall struct {
 14836  	s             *Service
 14837  	filterSetName string
 14838  	urlParams_    gensupport.URLParams
 14839  	ifNoneMatch_  string
 14840  	ctx_          context.Context
 14841  	header_       http.Header
 14842  }
 14843  
 14844  // List: Lists all metrics that are measured in terms of number of impressions.
 14845  //
 14846  //   - filterSetName: Name of the filter set that should be applied to the
 14847  //     requested metrics. For example: - For a bidder-level filter set for bidder
 14848  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 14849  //     the buyer account representing bidder 123:
 14850  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 14851  //     set for the child seat buyer account 456 whose bidder is 123:
 14852  //     `bidders/123/accounts/456/filterSets/abc`.
 14853  func (r *BuyersFilterSetsImpressionMetricsService) List(filterSetName string) *BuyersFilterSetsImpressionMetricsListCall {
 14854  	c := &BuyersFilterSetsImpressionMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14855  	c.filterSetName = filterSetName
 14856  	return c
 14857  }
 14858  
 14859  // PageSize sets the optional parameter "pageSize": Requested page size. The
 14860  // server may return fewer results than requested. If unspecified, the server
 14861  // will pick an appropriate default.
 14862  func (c *BuyersFilterSetsImpressionMetricsListCall) PageSize(pageSize int64) *BuyersFilterSetsImpressionMetricsListCall {
 14863  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14864  	return c
 14865  }
 14866  
 14867  // PageToken sets the optional parameter "pageToken": A token identifying a
 14868  // page of results the server should return. Typically, this is the value of
 14869  // ListImpressionMetricsResponse.nextPageToken returned from the previous call
 14870  // to the impressionMetrics.list method.
 14871  func (c *BuyersFilterSetsImpressionMetricsListCall) PageToken(pageToken string) *BuyersFilterSetsImpressionMetricsListCall {
 14872  	c.urlParams_.Set("pageToken", pageToken)
 14873  	return c
 14874  }
 14875  
 14876  // Fields allows partial responses to be retrieved. See
 14877  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14878  // details.
 14879  func (c *BuyersFilterSetsImpressionMetricsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsImpressionMetricsListCall {
 14880  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14881  	return c
 14882  }
 14883  
 14884  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14885  // object's ETag matches the given value. This is useful for getting updates
 14886  // only after the object has changed since the last request.
 14887  func (c *BuyersFilterSetsImpressionMetricsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsImpressionMetricsListCall {
 14888  	c.ifNoneMatch_ = entityTag
 14889  	return c
 14890  }
 14891  
 14892  // Context sets the context to be used in this call's Do method.
 14893  func (c *BuyersFilterSetsImpressionMetricsListCall) Context(ctx context.Context) *BuyersFilterSetsImpressionMetricsListCall {
 14894  	c.ctx_ = ctx
 14895  	return c
 14896  }
 14897  
 14898  // Header returns a http.Header that can be modified by the caller to add
 14899  // headers to the request.
 14900  func (c *BuyersFilterSetsImpressionMetricsListCall) Header() http.Header {
 14901  	if c.header_ == nil {
 14902  		c.header_ = make(http.Header)
 14903  	}
 14904  	return c.header_
 14905  }
 14906  
 14907  func (c *BuyersFilterSetsImpressionMetricsListCall) doRequest(alt string) (*http.Response, error) {
 14908  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14909  	if c.ifNoneMatch_ != "" {
 14910  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14911  	}
 14912  	var body io.Reader = nil
 14913  	c.urlParams_.Set("alt", alt)
 14914  	c.urlParams_.Set("prettyPrint", "false")
 14915  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/impressionMetrics")
 14916  	urls += "?" + c.urlParams_.Encode()
 14917  	req, err := http.NewRequest("GET", urls, body)
 14918  	if err != nil {
 14919  		return nil, err
 14920  	}
 14921  	req.Header = reqHeaders
 14922  	googleapi.Expand(req.URL, map[string]string{
 14923  		"filterSetName": c.filterSetName,
 14924  	})
 14925  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14926  }
 14927  
 14928  // Do executes the "adexchangebuyer2.buyers.filterSets.impressionMetrics.list" call.
 14929  // Any non-2xx status code is an error. Response headers are in either
 14930  // *ListImpressionMetricsResponse.ServerResponse.Header or (if a response was
 14931  // returned at all) in error.(*googleapi.Error).Header. Use
 14932  // googleapi.IsNotModified to check whether the returned error was because
 14933  // http.StatusNotModified was returned.
 14934  func (c *BuyersFilterSetsImpressionMetricsListCall) Do(opts ...googleapi.CallOption) (*ListImpressionMetricsResponse, error) {
 14935  	gensupport.SetOptions(c.urlParams_, opts...)
 14936  	res, err := c.doRequest("json")
 14937  	if res != nil && res.StatusCode == http.StatusNotModified {
 14938  		if res.Body != nil {
 14939  			res.Body.Close()
 14940  		}
 14941  		return nil, gensupport.WrapError(&googleapi.Error{
 14942  			Code:   res.StatusCode,
 14943  			Header: res.Header,
 14944  		})
 14945  	}
 14946  	if err != nil {
 14947  		return nil, err
 14948  	}
 14949  	defer googleapi.CloseBody(res)
 14950  	if err := googleapi.CheckResponse(res); err != nil {
 14951  		return nil, gensupport.WrapError(err)
 14952  	}
 14953  	ret := &ListImpressionMetricsResponse{
 14954  		ServerResponse: googleapi.ServerResponse{
 14955  			Header:         res.Header,
 14956  			HTTPStatusCode: res.StatusCode,
 14957  		},
 14958  	}
 14959  	target := &ret
 14960  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14961  		return nil, err
 14962  	}
 14963  	return ret, nil
 14964  }
 14965  
 14966  // Pages invokes f for each page of results.
 14967  // A non-nil error returned from f will halt the iteration.
 14968  // The provided context supersedes any context provided to the Context method.
 14969  func (c *BuyersFilterSetsImpressionMetricsListCall) Pages(ctx context.Context, f func(*ListImpressionMetricsResponse) error) error {
 14970  	c.ctx_ = ctx
 14971  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14972  	for {
 14973  		x, err := c.Do()
 14974  		if err != nil {
 14975  			return err
 14976  		}
 14977  		if err := f(x); err != nil {
 14978  			return err
 14979  		}
 14980  		if x.NextPageToken == "" {
 14981  			return nil
 14982  		}
 14983  		c.PageToken(x.NextPageToken)
 14984  	}
 14985  }
 14986  
 14987  type BuyersFilterSetsLosingBidsListCall struct {
 14988  	s             *Service
 14989  	filterSetName string
 14990  	urlParams_    gensupport.URLParams
 14991  	ifNoneMatch_  string
 14992  	ctx_          context.Context
 14993  	header_       http.Header
 14994  }
 14995  
 14996  // List: List all reasons for which bids lost in the auction, with the number
 14997  // of bids that lost for each reason.
 14998  //
 14999  //   - filterSetName: Name of the filter set that should be applied to the
 15000  //     requested metrics. For example: - For a bidder-level filter set for bidder
 15001  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 15002  //     the buyer account representing bidder 123:
 15003  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 15004  //     set for the child seat buyer account 456 whose bidder is 123:
 15005  //     `bidders/123/accounts/456/filterSets/abc`.
 15006  func (r *BuyersFilterSetsLosingBidsService) List(filterSetName string) *BuyersFilterSetsLosingBidsListCall {
 15007  	c := &BuyersFilterSetsLosingBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15008  	c.filterSetName = filterSetName
 15009  	return c
 15010  }
 15011  
 15012  // PageSize sets the optional parameter "pageSize": Requested page size. The
 15013  // server may return fewer results than requested. If unspecified, the server
 15014  // will pick an appropriate default.
 15015  func (c *BuyersFilterSetsLosingBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsLosingBidsListCall {
 15016  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15017  	return c
 15018  }
 15019  
 15020  // PageToken sets the optional parameter "pageToken": A token identifying a
 15021  // page of results the server should return. Typically, this is the value of
 15022  // ListLosingBidsResponse.nextPageToken returned from the previous call to the
 15023  // losingBids.list method.
 15024  func (c *BuyersFilterSetsLosingBidsListCall) PageToken(pageToken string) *BuyersFilterSetsLosingBidsListCall {
 15025  	c.urlParams_.Set("pageToken", pageToken)
 15026  	return c
 15027  }
 15028  
 15029  // Fields allows partial responses to be retrieved. See
 15030  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15031  // details.
 15032  func (c *BuyersFilterSetsLosingBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsLosingBidsListCall {
 15033  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15034  	return c
 15035  }
 15036  
 15037  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15038  // object's ETag matches the given value. This is useful for getting updates
 15039  // only after the object has changed since the last request.
 15040  func (c *BuyersFilterSetsLosingBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsLosingBidsListCall {
 15041  	c.ifNoneMatch_ = entityTag
 15042  	return c
 15043  }
 15044  
 15045  // Context sets the context to be used in this call's Do method.
 15046  func (c *BuyersFilterSetsLosingBidsListCall) Context(ctx context.Context) *BuyersFilterSetsLosingBidsListCall {
 15047  	c.ctx_ = ctx
 15048  	return c
 15049  }
 15050  
 15051  // Header returns a http.Header that can be modified by the caller to add
 15052  // headers to the request.
 15053  func (c *BuyersFilterSetsLosingBidsListCall) Header() http.Header {
 15054  	if c.header_ == nil {
 15055  		c.header_ = make(http.Header)
 15056  	}
 15057  	return c.header_
 15058  }
 15059  
 15060  func (c *BuyersFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Response, error) {
 15061  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15062  	if c.ifNoneMatch_ != "" {
 15063  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15064  	}
 15065  	var body io.Reader = nil
 15066  	c.urlParams_.Set("alt", alt)
 15067  	c.urlParams_.Set("prettyPrint", "false")
 15068  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/losingBids")
 15069  	urls += "?" + c.urlParams_.Encode()
 15070  	req, err := http.NewRequest("GET", urls, body)
 15071  	if err != nil {
 15072  		return nil, err
 15073  	}
 15074  	req.Header = reqHeaders
 15075  	googleapi.Expand(req.URL, map[string]string{
 15076  		"filterSetName": c.filterSetName,
 15077  	})
 15078  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15079  }
 15080  
 15081  // Do executes the "adexchangebuyer2.buyers.filterSets.losingBids.list" call.
 15082  // Any non-2xx status code is an error. Response headers are in either
 15083  // *ListLosingBidsResponse.ServerResponse.Header or (if a response was returned
 15084  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15085  // check whether the returned error was because http.StatusNotModified was
 15086  // returned.
 15087  func (c *BuyersFilterSetsLosingBidsListCall) Do(opts ...googleapi.CallOption) (*ListLosingBidsResponse, error) {
 15088  	gensupport.SetOptions(c.urlParams_, opts...)
 15089  	res, err := c.doRequest("json")
 15090  	if res != nil && res.StatusCode == http.StatusNotModified {
 15091  		if res.Body != nil {
 15092  			res.Body.Close()
 15093  		}
 15094  		return nil, gensupport.WrapError(&googleapi.Error{
 15095  			Code:   res.StatusCode,
 15096  			Header: res.Header,
 15097  		})
 15098  	}
 15099  	if err != nil {
 15100  		return nil, err
 15101  	}
 15102  	defer googleapi.CloseBody(res)
 15103  	if err := googleapi.CheckResponse(res); err != nil {
 15104  		return nil, gensupport.WrapError(err)
 15105  	}
 15106  	ret := &ListLosingBidsResponse{
 15107  		ServerResponse: googleapi.ServerResponse{
 15108  			Header:         res.Header,
 15109  			HTTPStatusCode: res.StatusCode,
 15110  		},
 15111  	}
 15112  	target := &ret
 15113  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15114  		return nil, err
 15115  	}
 15116  	return ret, nil
 15117  }
 15118  
 15119  // Pages invokes f for each page of results.
 15120  // A non-nil error returned from f will halt the iteration.
 15121  // The provided context supersedes any context provided to the Context method.
 15122  func (c *BuyersFilterSetsLosingBidsListCall) Pages(ctx context.Context, f func(*ListLosingBidsResponse) error) error {
 15123  	c.ctx_ = ctx
 15124  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15125  	for {
 15126  		x, err := c.Do()
 15127  		if err != nil {
 15128  			return err
 15129  		}
 15130  		if err := f(x); err != nil {
 15131  			return err
 15132  		}
 15133  		if x.NextPageToken == "" {
 15134  			return nil
 15135  		}
 15136  		c.PageToken(x.NextPageToken)
 15137  	}
 15138  }
 15139  
 15140  type BuyersFilterSetsNonBillableWinningBidsListCall struct {
 15141  	s             *Service
 15142  	filterSetName string
 15143  	urlParams_    gensupport.URLParams
 15144  	ifNoneMatch_  string
 15145  	ctx_          context.Context
 15146  	header_       http.Header
 15147  }
 15148  
 15149  // List: List all reasons for which winning bids were not billable, with the
 15150  // number of bids not billed for each reason.
 15151  //
 15152  //   - filterSetName: Name of the filter set that should be applied to the
 15153  //     requested metrics. For example: - For a bidder-level filter set for bidder
 15154  //     123: `bidders/123/filterSets/abc` - For an account-level filter set for
 15155  //     the buyer account representing bidder 123:
 15156  //     `bidders/123/accounts/123/filterSets/abc` - For an account-level filter
 15157  //     set for the child seat buyer account 456 whose bidder is 123:
 15158  //     `bidders/123/accounts/456/filterSets/abc`.
 15159  func (r *BuyersFilterSetsNonBillableWinningBidsService) List(filterSetName string) *BuyersFilterSetsNonBillableWinningBidsListCall {
 15160  	c := &BuyersFilterSetsNonBillableWinningBidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15161  	c.filterSetName = filterSetName
 15162  	return c
 15163  }
 15164  
 15165  // PageSize sets the optional parameter "pageSize": Requested page size. The
 15166  // server may return fewer results than requested. If unspecified, the server
 15167  // will pick an appropriate default.
 15168  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsNonBillableWinningBidsListCall {
 15169  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15170  	return c
 15171  }
 15172  
 15173  // PageToken sets the optional parameter "pageToken": A token identifying a
 15174  // page of results the server should return. Typically, this is the value of
 15175  // ListNonBillableWinningBidsResponse.nextPageToken returned from the previous
 15176  // call to the nonBillableWinningBids.list method.
 15177  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) PageToken(pageToken string) *BuyersFilterSetsNonBillableWinningBidsListCall {
 15178  	c.urlParams_.Set("pageToken", pageToken)
 15179  	return c
 15180  }
 15181  
 15182  // Fields allows partial responses to be retrieved. See
 15183  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15184  // details.
 15185  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsNonBillableWinningBidsListCall {
 15186  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15187  	return c
 15188  }
 15189  
 15190  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15191  // object's ETag matches the given value. This is useful for getting updates
 15192  // only after the object has changed since the last request.
 15193  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsNonBillableWinningBidsListCall {
 15194  	c.ifNoneMatch_ = entityTag
 15195  	return c
 15196  }
 15197  
 15198  // Context sets the context to be used in this call's Do method.
 15199  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Context(ctx context.Context) *BuyersFilterSetsNonBillableWinningBidsListCall {
 15200  	c.ctx_ = ctx
 15201  	return c
 15202  }
 15203  
 15204  // Header returns a http.Header that can be modified by the caller to add
 15205  // headers to the request.
 15206  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Header() http.Header {
 15207  	if c.header_ == nil {
 15208  		c.header_ = make(http.Header)
 15209  	}
 15210  	return c.header_
 15211  }
 15212  
 15213  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) (*http.Response, error) {
 15214  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15215  	if c.ifNoneMatch_ != "" {
 15216  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15217  	}
 15218  	var body io.Reader = nil
 15219  	c.urlParams_.Set("alt", alt)
 15220  	c.urlParams_.Set("prettyPrint", "false")
 15221  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+filterSetName}/nonBillableWinningBids")
 15222  	urls += "?" + c.urlParams_.Encode()
 15223  	req, err := http.NewRequest("GET", urls, body)
 15224  	if err != nil {
 15225  		return nil, err
 15226  	}
 15227  	req.Header = reqHeaders
 15228  	googleapi.Expand(req.URL, map[string]string{
 15229  		"filterSetName": c.filterSetName,
 15230  	})
 15231  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15232  }
 15233  
 15234  // Do executes the "adexchangebuyer2.buyers.filterSets.nonBillableWinningBids.list" call.
 15235  // Any non-2xx status code is an error. Response headers are in either
 15236  // *ListNonBillableWinningBidsResponse.ServerResponse.Header or (if a response
 15237  // was returned at all) in error.(*googleapi.Error).Header. Use
 15238  // googleapi.IsNotModified to check whether the returned error was because
 15239  // http.StatusNotModified was returned.
 15240  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Do(opts ...googleapi.CallOption) (*ListNonBillableWinningBidsResponse, error) {
 15241  	gensupport.SetOptions(c.urlParams_, opts...)
 15242  	res, err := c.doRequest("json")
 15243  	if res != nil && res.StatusCode == http.StatusNotModified {
 15244  		if res.Body != nil {
 15245  			res.Body.Close()
 15246  		}
 15247  		return nil, gensupport.WrapError(&googleapi.Error{
 15248  			Code:   res.StatusCode,
 15249  			Header: res.Header,
 15250  		})
 15251  	}
 15252  	if err != nil {
 15253  		return nil, err
 15254  	}
 15255  	defer googleapi.CloseBody(res)
 15256  	if err := googleapi.CheckResponse(res); err != nil {
 15257  		return nil, gensupport.WrapError(err)
 15258  	}
 15259  	ret := &ListNonBillableWinningBidsResponse{
 15260  		ServerResponse: googleapi.ServerResponse{
 15261  			Header:         res.Header,
 15262  			HTTPStatusCode: res.StatusCode,
 15263  		},
 15264  	}
 15265  	target := &ret
 15266  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15267  		return nil, err
 15268  	}
 15269  	return ret, nil
 15270  }
 15271  
 15272  // Pages invokes f for each page of results.
 15273  // A non-nil error returned from f will halt the iteration.
 15274  // The provided context supersedes any context provided to the Context method.
 15275  func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Pages(ctx context.Context, f func(*ListNonBillableWinningBidsResponse) error) error {
 15276  	c.ctx_ = ctx
 15277  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15278  	for {
 15279  		x, err := c.Do()
 15280  		if err != nil {
 15281  			return err
 15282  		}
 15283  		if err := f(x); err != nil {
 15284  			return err
 15285  		}
 15286  		if x.NextPageToken == "" {
 15287  			return nil
 15288  		}
 15289  		c.PageToken(x.NextPageToken)
 15290  	}
 15291  }
 15292  

View as plain text