1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package adexchangebuyer2
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
74
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
97 const (
98
99 AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchange.buyer"
100 )
101
102
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
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
128
129
130
131
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
146 UserAgent string
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
706
707
708
709
710 type AbsoluteDateRange struct {
711
712
713 EndDate *Date `json:"endDate,omitempty"`
714
715
716 StartDate *Date `json:"startDate,omitempty"`
717
718
719
720
721
722 ForceSendFields []string `json:"-"`
723
724
725
726
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
736 type AcceptProposalRequest struct {
737
738 ProposalRevision int64 `json:"proposalRevision,omitempty,string"`
739
740
741
742
743
744 ForceSendFields []string `json:"-"`
745
746
747
748
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
758 type AdSize struct {
759
760
761 Height int64 `json:"height,omitempty,string"`
762
763
764
765
766
767
768
769
770
771 SizeType string `json:"sizeType,omitempty"`
772
773
774 Width int64 `json:"width,omitempty,string"`
775
776
777
778
779
780 ForceSendFields []string `json:"-"`
781
782
783
784
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
794 type AdTechnologyProviders struct {
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810 DetectedProviderIds googleapi.Int64s `json:"detectedProviderIds,omitempty"`
811
812
813
814
815 HasUnidentifiedProvider bool `json:"hasUnidentifiedProvider,omitempty"`
816
817
818
819
820
821 ForceSendFields []string `json:"-"`
822
823
824
825
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
835 type AddDealAssociationRequest struct {
836
837
838 Association *CreativeDealAssociation `json:"association,omitempty"`
839
840
841
842
843
844 ForceSendFields []string `json:"-"`
845
846
847
848
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
858 type AddNoteRequest struct {
859
860 Note *Note `json:"note,omitempty"`
861
862
863
864
865
866 ForceSendFields []string `json:"-"`
867
868
869
870
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
880
881 type AppContext struct {
882
883
884
885
886
887 AppTypes []string `json:"appTypes,omitempty"`
888
889
890
891
892
893 ForceSendFields []string `json:"-"`
894
895
896
897
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
907 type AuctionContext struct {
908
909
910
911
912
913 AuctionTypes []string `json:"auctionTypes,omitempty"`
914
915
916
917
918
919 ForceSendFields []string `json:"-"`
920
921
922
923
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
933
934
935 type BidMetricsRow struct {
936
937 Bids *MetricValue `json:"bids,omitempty"`
938
939
940 BidsInAuction *MetricValue `json:"bidsInAuction,omitempty"`
941
942
943 BilledImpressions *MetricValue `json:"billedImpressions,omitempty"`
944
945 ImpressionsWon *MetricValue `json:"impressionsWon,omitempty"`
946
947
948 MeasurableImpressions *MetricValue `json:"measurableImpressions,omitempty"`
949
950
951 ReachedQueries *MetricValue `json:"reachedQueries,omitempty"`
952
953
954 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
955
956
957 ViewableImpressions *MetricValue `json:"viewableImpressions,omitempty"`
958
959
960
961
962
963 ForceSendFields []string `json:"-"`
964
965
966
967
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
977
978
979 type BidResponseWithoutBidsStatusRow struct {
980
981
982 ImpressionCount *MetricValue `json:"impressionCount,omitempty"`
983
984
985 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002 Status string `json:"status,omitempty"`
1003
1004
1005
1006
1007
1008 ForceSendFields []string `json:"-"`
1009
1010
1011
1012
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
1022
1023 type Buyer struct {
1024
1025 AccountId string `json:"accountId,omitempty"`
1026
1027
1028
1029
1030
1031 ForceSendFields []string `json:"-"`
1032
1033
1034
1035
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
1045
1046
1047 type CalloutStatusRow struct {
1048
1049
1050 CalloutStatusId int64 `json:"calloutStatusId,omitempty"`
1051
1052
1053 ImpressionCount *MetricValue `json:"impressionCount,omitempty"`
1054
1055
1056 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
1057
1058
1059
1060
1061
1062 ForceSendFields []string `json:"-"`
1063
1064
1065
1066
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
1076 type CancelNegotiationRequest struct {
1077 }
1078
1079
1080
1081
1082
1083
1084 type Client struct {
1085
1086
1087 ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
1088
1089
1090
1091
1092 ClientName string `json:"clientName,omitempty"`
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104 EntityId int64 `json:"entityId,omitempty,string"`
1105
1106
1107
1108 EntityName string `json:"entityName,omitempty"`
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120 EntityType string `json:"entityType,omitempty"`
1121
1122
1123
1124
1125
1126
1127
1128 PartnerClientId string `json:"partnerClientId,omitempty"`
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146 Role string `json:"role,omitempty"`
1147
1148
1149
1150
1151
1152
1153
1154 Status string `json:"status,omitempty"`
1155
1156 VisibleToSeller bool `json:"visibleToSeller,omitempty"`
1157
1158
1159 googleapi.ServerResponse `json:"-"`
1160
1161
1162
1163
1164
1165 ForceSendFields []string `json:"-"`
1166
1167
1168
1169
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
1179
1180
1181
1182
1183
1184 type ClientUser struct {
1185
1186
1187
1188 ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
1189
1190
1191 Email string `json:"email,omitempty"`
1192
1193
1194
1195
1196
1197
1198
1199
1200 Status string `json:"status,omitempty"`
1201
1202
1203 UserId int64 `json:"userId,omitempty,string"`
1204
1205
1206 googleapi.ServerResponse `json:"-"`
1207
1208
1209
1210
1211
1212 ForceSendFields []string `json:"-"`
1213
1214
1215
1216
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
1226
1227
1228 type ClientUserInvitation struct {
1229
1230
1231
1232 ClientAccountId int64 `json:"clientAccountId,omitempty,string"`
1233
1234
1235 Email string `json:"email,omitempty"`
1236
1237
1238 InvitationId int64 `json:"invitationId,omitempty,string"`
1239
1240
1241 googleapi.ServerResponse `json:"-"`
1242
1243
1244
1245
1246
1247 ForceSendFields []string `json:"-"`
1248
1249
1250
1251
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
1261
1262 type CompleteSetupRequest struct {
1263 }
1264
1265
1266
1267 type ContactInformation struct {
1268
1269 Email string `json:"email,omitempty"`
1270
1271 Name string `json:"name,omitempty"`
1272
1273
1274
1275
1276
1277 ForceSendFields []string `json:"-"`
1278
1279
1280
1281
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
1291
1292 type Correction struct {
1293
1294 Contexts []*ServingContext `json:"contexts,omitempty"`
1295
1296 Details []string `json:"details,omitempty"`
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324 Type string `json:"type,omitempty"`
1325
1326
1327
1328
1329
1330 ForceSendFields []string `json:"-"`
1331
1332
1333
1334
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
1344 type Creative struct {
1345
1346
1347 AccountId string `json:"accountId,omitempty"`
1348
1349 AdChoicesDestinationUrl string `json:"adChoicesDestinationUrl,omitempty"`
1350
1351 AdTechnologyProviders *AdTechnologyProviders `json:"adTechnologyProviders,omitempty"`
1352
1353 AdvertiserName string `json:"advertiserName,omitempty"`
1354
1355 AgencyId int64 `json:"agencyId,omitempty,string"`
1356
1357
1358 ApiUpdateTime string `json:"apiUpdateTime,omitempty"`
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415 Attributes []string `json:"attributes,omitempty"`
1416
1417 ClickThroughUrls []string `json:"clickThroughUrls,omitempty"`
1418
1419
1420 Corrections []*Correction `json:"corrections,omitempty"`
1421
1422
1423 CreativeId string `json:"creativeId,omitempty"`
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442 DealsStatus string `json:"dealsStatus,omitempty"`
1443
1444
1445 DeclaredClickThroughUrls []string `json:"declaredClickThroughUrls,omitempty"`
1446
1447 DetectedAdvertiserIds googleapi.Int64s `json:"detectedAdvertiserIds,omitempty"`
1448
1449 DetectedDomains []string `json:"detectedDomains,omitempty"`
1450
1451
1452
1453 DetectedLanguages []string `json:"detectedLanguages,omitempty"`
1454
1455
1456
1457 DetectedProductCategories []int64 `json:"detectedProductCategories,omitempty"`
1458
1459
1460
1461
1462 DetectedSensitiveCategories []int64 `json:"detectedSensitiveCategories,omitempty"`
1463
1464 Html *HtmlContent `json:"html,omitempty"`
1465
1466
1467 ImpressionTrackingUrls []string `json:"impressionTrackingUrls,omitempty"`
1468
1469 Native *NativeContent `json:"native,omitempty"`
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 OpenAuctionStatus string `json:"openAuctionStatus,omitempty"`
1489
1490
1491
1492
1493
1494
1495 RestrictedCategories []string `json:"restrictedCategories,omitempty"`
1496
1497
1498
1499
1500 ServingRestrictions []*ServingRestriction `json:"servingRestrictions,omitempty"`
1501
1502
1503
1504 VendorIds []int64 `json:"vendorIds,omitempty"`
1505
1506 Version int64 `json:"version,omitempty"`
1507
1508 Video *VideoContent `json:"video,omitempty"`
1509
1510
1511 googleapi.ServerResponse `json:"-"`
1512
1513
1514
1515
1516
1517 ForceSendFields []string `json:"-"`
1518
1519
1520
1521
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
1531 type CreativeDealAssociation struct {
1532
1533 AccountId string `json:"accountId,omitempty"`
1534
1535 CreativeId string `json:"creativeId,omitempty"`
1536
1537 DealsId string `json:"dealsId,omitempty"`
1538
1539
1540
1541
1542
1543 ForceSendFields []string `json:"-"`
1544
1545
1546
1547
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
1557
1558
1559 type CreativeRestrictions struct {
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570 CreativeFormat string `json:"creativeFormat,omitempty"`
1571 CreativeSpecifications []*CreativeSpecification `json:"creativeSpecifications,omitempty"`
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583 SkippableAdType string `json:"skippableAdType,omitempty"`
1584
1585
1586
1587
1588
1589 ForceSendFields []string `json:"-"`
1590
1591
1592
1593
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
1603 type CreativeSize struct {
1604
1605
1606
1607
1608
1609
1610
1611
1612 AllowedFormats []string `json:"allowedFormats,omitempty"`
1613
1614
1615
1616 CompanionSizes []*Size `json:"companionSizes,omitempty"`
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626 CreativeSizeType string `json:"creativeSizeType,omitempty"`
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639 NativeTemplate string `json:"nativeTemplate,omitempty"`
1640
1641
1642 Size *Size `json:"size,omitempty"`
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654 SkippableAdType string `json:"skippableAdType,omitempty"`
1655
1656
1657
1658
1659
1660 ForceSendFields []string `json:"-"`
1661
1662
1663
1664
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
1674
1675 type CreativeSpecification struct {
1676
1677
1678 CreativeCompanionSizes []*AdSize `json:"creativeCompanionSizes,omitempty"`
1679
1680 CreativeSize *AdSize `json:"creativeSize,omitempty"`
1681
1682
1683
1684
1685
1686 ForceSendFields []string `json:"-"`
1687
1688
1689
1690
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
1700
1701
1702 type CreativeStatusRow struct {
1703
1704 BidCount *MetricValue `json:"bidCount,omitempty"`
1705
1706
1707 CreativeStatusId int64 `json:"creativeStatusId,omitempty"`
1708
1709
1710 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
1711
1712
1713
1714
1715
1716 ForceSendFields []string `json:"-"`
1717
1718
1719
1720
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
1730
1731 type CriteriaTargeting struct {
1732
1733 ExcludedCriteriaIds googleapi.Int64s `json:"excludedCriteriaIds,omitempty"`
1734
1735 TargetedCriteriaIds googleapi.Int64s `json:"targetedCriteriaIds,omitempty"`
1736
1737
1738
1739
1740
1741 ForceSendFields []string `json:"-"`
1742
1743
1744
1745
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
1755
1756
1757
1758
1759
1760
1761
1762
1763 type Date struct {
1764
1765
1766
1767 Day int64 `json:"day,omitempty"`
1768
1769
1770 Month int64 `json:"month,omitempty"`
1771
1772
1773 Year int64 `json:"year,omitempty"`
1774
1775
1776
1777
1778
1779 ForceSendFields []string `json:"-"`
1780
1781
1782
1783
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
1793
1794 type DayPart struct {
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808 DayOfWeek string `json:"dayOfWeek,omitempty"`
1809
1810
1811
1812 EndTime *TimeOfDay `json:"endTime,omitempty"`
1813
1814
1815
1816 StartTime *TimeOfDay `json:"startTime,omitempty"`
1817
1818
1819
1820
1821
1822 ForceSendFields []string `json:"-"`
1823
1824
1825
1826
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
1836 type DayPartTargeting struct {
1837
1838 DayParts []*DayPart `json:"dayParts,omitempty"`
1839
1840
1841
1842
1843
1844
1845
1846 TimeZoneType string `json:"timeZoneType,omitempty"`
1847
1848
1849
1850
1851
1852 ForceSendFields []string `json:"-"`
1853
1854
1855
1856
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
1866
1867
1868 type Deal struct {
1869
1870
1871
1872 AvailableEndTime string `json:"availableEndTime,omitempty"`
1873
1874
1875
1876
1877
1878 AvailableStartTime string `json:"availableStartTime,omitempty"`
1879
1880 BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"`
1881
1882
1883
1884 CreateProductId string `json:"createProductId,omitempty"`
1885
1886
1887
1888
1889
1890
1891 CreateProductRevision int64 `json:"createProductRevision,omitempty,string"`
1892
1893 CreateTime string `json:"createTime,omitempty"`
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904 CreativePreApprovalPolicy string `json:"creativePreApprovalPolicy,omitempty"`
1905
1906
1907
1908 CreativeRestrictions *CreativeRestrictions `json:"creativeRestrictions,omitempty"`
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919 CreativeSafeFrameCompatibility string `json:"creativeSafeFrameCompatibility,omitempty"`
1920
1921 DealId string `json:"dealId,omitempty"`
1922
1923
1924 DealServingMetadata *DealServingMetadata `json:"dealServingMetadata,omitempty"`
1925
1926 DealTerms *DealTerms `json:"dealTerms,omitempty"`
1927
1928
1929
1930 DeliveryControl *DeliveryControl `json:"deliveryControl,omitempty"`
1931
1932 Description string `json:"description,omitempty"`
1933
1934 DisplayName string `json:"displayName,omitempty"`
1935
1936
1937
1938 ExternalDealId string `json:"externalDealId,omitempty"`
1939
1940
1941 IsSetupComplete bool `json:"isSetupComplete,omitempty"`
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951 ProgrammaticCreativeSource string `json:"programmaticCreativeSource,omitempty"`
1952
1953 ProposalId string `json:"proposalId,omitempty"`
1954
1955 SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"`
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967 SyndicationProduct string `json:"syndicationProduct,omitempty"`
1968
1969
1970 Targeting *MarketplaceTargeting `json:"targeting,omitempty"`
1971
1972
1973 TargetingCriterion []*TargetingCriteria `json:"targetingCriterion,omitempty"`
1974
1975 UpdateTime string `json:"updateTime,omitempty"`
1976
1977
1978 WebPropertyCode string `json:"webPropertyCode,omitempty"`
1979
1980
1981
1982
1983
1984 ForceSendFields []string `json:"-"`
1985
1986
1987
1988
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
1998
1999 type DealPauseStatus struct {
2000
2001
2002 BuyerPauseReason string `json:"buyerPauseReason,omitempty"`
2003
2004
2005
2006
2007
2008
2009
2010 FirstPausedBy string `json:"firstPausedBy,omitempty"`
2011
2012 HasBuyerPaused bool `json:"hasBuyerPaused,omitempty"`
2013
2014 HasSellerPaused bool `json:"hasSellerPaused,omitempty"`
2015
2016
2017 SellerPauseReason string `json:"sellerPauseReason,omitempty"`
2018
2019
2020
2021
2022
2023 ForceSendFields []string `json:"-"`
2024
2025
2026
2027
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
2037
2038 type DealServingMetadata struct {
2039
2040
2041 DealPauseStatus *DealPauseStatus `json:"dealPauseStatus,omitempty"`
2042
2043
2044
2045
2046
2047 ForceSendFields []string `json:"-"`
2048
2049
2050
2051
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
2061
2062
2063 type DealTerms struct {
2064
2065
2066
2067
2068
2069
2070
2071
2072 BrandingType string `json:"brandingType,omitempty"`
2073
2074 Description string `json:"description,omitempty"`
2075
2076
2077 EstimatedGrossSpend *Price `json:"estimatedGrossSpend,omitempty"`
2078
2079
2080 EstimatedImpressionsPerDay int64 `json:"estimatedImpressionsPerDay,omitempty,string"`
2081
2082 GuaranteedFixedPriceTerms *GuaranteedFixedPriceTerms `json:"guaranteedFixedPriceTerms,omitempty"`
2083
2084 NonGuaranteedAuctionTerms *NonGuaranteedAuctionTerms `json:"nonGuaranteedAuctionTerms,omitempty"`
2085
2086
2087 NonGuaranteedFixedPriceTerms *NonGuaranteedFixedPriceTerms `json:"nonGuaranteedFixedPriceTerms,omitempty"`
2088
2089
2090
2091
2092 SellerTimeZone string `json:"sellerTimeZone,omitempty"`
2093
2094
2095
2096
2097
2098 ForceSendFields []string `json:"-"`
2099
2100
2101
2102
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
2112 type DeliveryControl struct {
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122 CreativeBlockingLevel string `json:"creativeBlockingLevel,omitempty"`
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132 DeliveryRateType string `json:"deliveryRateType,omitempty"`
2133
2134 FrequencyCaps []*FrequencyCap `json:"frequencyCaps,omitempty"`
2135
2136
2137
2138
2139
2140 ForceSendFields []string `json:"-"`
2141
2142
2143
2144
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
2154 type Disapproval struct {
2155
2156 Details []string `json:"details,omitempty"`
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305 Reason string `json:"reason,omitempty"`
2306
2307
2308
2309
2310
2311 ForceSendFields []string `json:"-"`
2312
2313
2314
2315
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
2325
2326
2327
2328 type Empty struct {
2329
2330 googleapi.ServerResponse `json:"-"`
2331 }
2332
2333
2334
2335
2336
2337
2338 type FilterSet struct {
2339
2340
2341 AbsoluteDateRange *AbsoluteDateRange `json:"absoluteDateRange,omitempty"`
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351 BreakdownDimensions []string `json:"breakdownDimensions,omitempty"`
2352
2353
2354
2355
2356 CreativeId string `json:"creativeId,omitempty"`
2357
2358
2359
2360
2361 DealId int64 `json:"dealId,omitempty,string"`
2362
2363
2364
2365
2366
2367
2368
2369 Environment string `json:"environment,omitempty"`
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382 Format string `json:"format,omitempty"`
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398 Formats []string `json:"formats,omitempty"`
2399
2400
2401
2402
2403
2404 Name string `json:"name,omitempty"`
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415 Platforms []string `json:"platforms,omitempty"`
2416
2417
2418
2419 PublisherIdentifiers []string `json:"publisherIdentifiers,omitempty"`
2420
2421
2422 RealtimeTimeRange *RealtimeTimeRange `json:"realtimeTimeRange,omitempty"`
2423
2424
2425 RelativeDateRange *RelativeDateRange `json:"relativeDateRange,omitempty"`
2426
2427
2428
2429
2430
2431
2432
2433 SellerNetworkIds []int64 `json:"sellerNetworkIds,omitempty"`
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443 TimeSeriesGranularity string `json:"timeSeriesGranularity,omitempty"`
2444
2445
2446 googleapi.ServerResponse `json:"-"`
2447
2448
2449
2450
2451
2452 ForceSendFields []string `json:"-"`
2453
2454
2455
2456
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
2466
2467 type FilteredBidCreativeRow struct {
2468
2469 BidCount *MetricValue `json:"bidCount,omitempty"`
2470
2471 CreativeId string `json:"creativeId,omitempty"`
2472
2473
2474 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
2475
2476
2477
2478
2479
2480 ForceSendFields []string `json:"-"`
2481
2482
2483
2484
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
2494
2495
2496 type FilteredBidDetailRow struct {
2497
2498 BidCount *MetricValue `json:"bidCount,omitempty"`
2499
2500
2501
2502 Detail string `json:"detail,omitempty"`
2503
2504
2505
2506
2507
2508 DetailId int64 `json:"detailId,omitempty"`
2509
2510
2511 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
2512
2513
2514
2515
2516
2517 ForceSendFields []string `json:"-"`
2518
2519
2520
2521
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
2531
2532
2533
2534
2535
2536 type FirstPartyMobileApplicationTargeting struct {
2537
2538 ExcludedAppIds []string `json:"excludedAppIds,omitempty"`
2539
2540 TargetedAppIds []string `json:"targetedAppIds,omitempty"`
2541
2542
2543
2544
2545
2546 ForceSendFields []string `json:"-"`
2547
2548
2549
2550
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
2560 type FrequencyCap struct {
2561
2562
2563 MaxImpressions int64 `json:"maxImpressions,omitempty"`
2564
2565
2566
2567 NumTimeUnits int64 `json:"numTimeUnits,omitempty"`
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583 TimeUnitType string `json:"timeUnitType,omitempty"`
2584
2585
2586
2587
2588
2589 ForceSendFields []string `json:"-"`
2590
2591
2592
2593
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
2603 type GuaranteedFixedPriceTerms struct {
2604
2605 FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"`
2606
2607
2608 GuaranteedImpressions int64 `json:"guaranteedImpressions,omitempty,string"`
2609
2610
2611 GuaranteedLooks int64 `json:"guaranteedLooks,omitempty,string"`
2612
2613
2614 ImpressionCap int64 `json:"impressionCap,omitempty,string"`
2615
2616
2617 MinimumDailyLooks int64 `json:"minimumDailyLooks,omitempty,string"`
2618
2619
2620
2621 PercentShareOfVoice int64 `json:"percentShareOfVoice,omitempty,string"`
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633 ReservationType string `json:"reservationType,omitempty"`
2634
2635
2636
2637
2638
2639 ForceSendFields []string `json:"-"`
2640
2641
2642
2643
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
2653 type HtmlContent struct {
2654
2655 Height int64 `json:"height,omitempty"`
2656
2657
2658 Snippet string `json:"snippet,omitempty"`
2659
2660 Width int64 `json:"width,omitempty"`
2661
2662
2663
2664
2665
2666 ForceSendFields []string `json:"-"`
2667
2668
2669
2670
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
2680
2681 type Image struct {
2682
2683 Height int64 `json:"height,omitempty"`
2684
2685 Url string `json:"url,omitempty"`
2686
2687 Width int64 `json:"width,omitempty"`
2688
2689
2690
2691
2692
2693 ForceSendFields []string `json:"-"`
2694
2695
2696
2697
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
2707
2708
2709 type ImpressionMetricsRow struct {
2710
2711
2712 AvailableImpressions *MetricValue `json:"availableImpressions,omitempty"`
2713
2714
2715 BidRequests *MetricValue `json:"bidRequests,omitempty"`
2716
2717
2718 InventoryMatches *MetricValue `json:"inventoryMatches,omitempty"`
2719
2720
2721 ResponsesWithBids *MetricValue `json:"responsesWithBids,omitempty"`
2722
2723
2724 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
2725
2726
2727 SuccessfulResponses *MetricValue `json:"successfulResponses,omitempty"`
2728
2729
2730
2731
2732
2733 ForceSendFields []string `json:"-"`
2734
2735
2736
2737
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
2747
2748
2749
2750 type InventorySizeTargeting struct {
2751
2752 ExcludedInventorySizes []*AdSize `json:"excludedInventorySizes,omitempty"`
2753
2754 TargetedInventorySizes []*AdSize `json:"targetedInventorySizes,omitempty"`
2755
2756
2757
2758
2759
2760 ForceSendFields []string `json:"-"`
2761
2762
2763
2764
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
2774
2775 type ListBidMetricsResponse struct {
2776
2777 BidMetricsRows []*BidMetricsRow `json:"bidMetricsRows,omitempty"`
2778
2779
2780
2781 NextPageToken string `json:"nextPageToken,omitempty"`
2782
2783
2784 googleapi.ServerResponse `json:"-"`
2785
2786
2787
2788
2789
2790 ForceSendFields []string `json:"-"`
2791
2792
2793
2794
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
2804
2805 type ListBidResponseErrorsResponse struct {
2806
2807
2808 CalloutStatusRows []*CalloutStatusRow `json:"calloutStatusRows,omitempty"`
2809
2810
2811
2812 NextPageToken string `json:"nextPageToken,omitempty"`
2813
2814
2815 googleapi.ServerResponse `json:"-"`
2816
2817
2818
2819
2820
2821 ForceSendFields []string `json:"-"`
2822
2823
2824
2825
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
2835
2836 type ListBidResponsesWithoutBidsResponse struct {
2837
2838
2839 BidResponseWithoutBidsStatusRows []*BidResponseWithoutBidsStatusRow `json:"bidResponseWithoutBidsStatusRows,omitempty"`
2840
2841
2842
2843
2844 NextPageToken string `json:"nextPageToken,omitempty"`
2845
2846
2847 googleapi.ServerResponse `json:"-"`
2848
2849
2850
2851
2852
2853
2854 ForceSendFields []string `json:"-"`
2855
2856
2857
2858
2859
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
2870 Invitations []*ClientUserInvitation `json:"invitations,omitempty"`
2871
2872
2873
2874
2875 NextPageToken string `json:"nextPageToken,omitempty"`
2876
2877
2878 googleapi.ServerResponse `json:"-"`
2879
2880
2881
2882
2883
2884 ForceSendFields []string `json:"-"`
2885
2886
2887
2888
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
2899
2900
2901 NextPageToken string `json:"nextPageToken,omitempty"`
2902
2903 Users []*ClientUser `json:"users,omitempty"`
2904
2905
2906 googleapi.ServerResponse `json:"-"`
2907
2908
2909
2910
2911
2912 ForceSendFields []string `json:"-"`
2913
2914
2915
2916
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
2927 Clients []*Client `json:"clients,omitempty"`
2928
2929
2930
2931 NextPageToken string `json:"nextPageToken,omitempty"`
2932
2933
2934 googleapi.ServerResponse `json:"-"`
2935
2936
2937
2938
2939
2940 ForceSendFields []string `json:"-"`
2941
2942
2943
2944
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
2954
2955 type ListCreativeStatusBreakdownByCreativeResponse struct {
2956
2957
2958 FilteredBidCreativeRows []*FilteredBidCreativeRow `json:"filteredBidCreativeRows,omitempty"`
2959
2960
2961
2962
2963 NextPageToken string `json:"nextPageToken,omitempty"`
2964
2965
2966 googleapi.ServerResponse `json:"-"`
2967
2968
2969
2970
2971
2972 ForceSendFields []string `json:"-"`
2973
2974
2975
2976
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
2986
2987 type ListCreativeStatusBreakdownByDetailResponse struct {
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024 DetailType string `json:"detailType,omitempty"`
3025
3026
3027 FilteredBidDetailRows []*FilteredBidDetailRow `json:"filteredBidDetailRows,omitempty"`
3028
3029
3030
3031
3032 NextPageToken string `json:"nextPageToken,omitempty"`
3033
3034
3035 googleapi.ServerResponse `json:"-"`
3036
3037
3038
3039
3040
3041 ForceSendFields []string `json:"-"`
3042
3043
3044
3045
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
3055 type ListCreativesResponse struct {
3056
3057 Creatives []*Creative `json:"creatives,omitempty"`
3058
3059
3060
3061 NextPageToken string `json:"nextPageToken,omitempty"`
3062
3063
3064 googleapi.ServerResponse `json:"-"`
3065
3066
3067
3068
3069
3070 ForceSendFields []string `json:"-"`
3071
3072
3073
3074
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
3084
3085 type ListDealAssociationsResponse struct {
3086
3087 Associations []*CreativeDealAssociation `json:"associations,omitempty"`
3088
3089
3090
3091 NextPageToken string `json:"nextPageToken,omitempty"`
3092
3093
3094 googleapi.ServerResponse `json:"-"`
3095
3096
3097
3098
3099
3100 ForceSendFields []string `json:"-"`
3101
3102
3103
3104
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
3114 type ListFilterSetsResponse struct {
3115
3116 FilterSets []*FilterSet `json:"filterSets,omitempty"`
3117
3118
3119
3120 NextPageToken string `json:"nextPageToken,omitempty"`
3121
3122
3123 googleapi.ServerResponse `json:"-"`
3124
3125
3126
3127
3128
3129 ForceSendFields []string `json:"-"`
3130
3131
3132
3133
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
3143
3144 type ListFilteredBidRequestsResponse struct {
3145
3146
3147 CalloutStatusRows []*CalloutStatusRow `json:"calloutStatusRows,omitempty"`
3148
3149
3150
3151 NextPageToken string `json:"nextPageToken,omitempty"`
3152
3153
3154 googleapi.ServerResponse `json:"-"`
3155
3156
3157
3158
3159
3160 ForceSendFields []string `json:"-"`
3161
3162
3163
3164
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
3174
3175 type ListFilteredBidsResponse struct {
3176
3177
3178 CreativeStatusRows []*CreativeStatusRow `json:"creativeStatusRows,omitempty"`
3179
3180
3181
3182 NextPageToken string `json:"nextPageToken,omitempty"`
3183
3184
3185 googleapi.ServerResponse `json:"-"`
3186
3187
3188
3189
3190
3191 ForceSendFields []string `json:"-"`
3192
3193
3194
3195
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
3205
3206 type ListImpressionMetricsResponse struct {
3207
3208
3209 ImpressionMetricsRows []*ImpressionMetricsRow `json:"impressionMetricsRows,omitempty"`
3210
3211
3212
3213 NextPageToken string `json:"nextPageToken,omitempty"`
3214
3215
3216 googleapi.ServerResponse `json:"-"`
3217
3218
3219
3220
3221
3222 ForceSendFields []string `json:"-"`
3223
3224
3225
3226
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
3236
3237 type ListLosingBidsResponse struct {
3238
3239
3240 CreativeStatusRows []*CreativeStatusRow `json:"creativeStatusRows,omitempty"`
3241
3242
3243
3244 NextPageToken string `json:"nextPageToken,omitempty"`
3245
3246
3247 googleapi.ServerResponse `json:"-"`
3248
3249
3250
3251
3252
3253 ForceSendFields []string `json:"-"`
3254
3255
3256
3257
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
3267
3268 type ListNonBillableWinningBidsResponse struct {
3269
3270
3271
3272
3273 NextPageToken string `json:"nextPageToken,omitempty"`
3274
3275
3276 NonBillableWinningBidStatusRows []*NonBillableWinningBidStatusRow `json:"nonBillableWinningBidStatusRows,omitempty"`
3277
3278
3279 googleapi.ServerResponse `json:"-"`
3280
3281
3282
3283
3284
3285 ForceSendFields []string `json:"-"`
3286
3287
3288
3289
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
3299
3300 type ListProductsResponse struct {
3301
3302 NextPageToken string `json:"nextPageToken,omitempty"`
3303
3304 Products []*Product `json:"products,omitempty"`
3305
3306
3307 googleapi.ServerResponse `json:"-"`
3308
3309
3310
3311
3312
3313 ForceSendFields []string `json:"-"`
3314
3315
3316
3317
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
3327 type ListProposalsResponse struct {
3328
3329 NextPageToken string `json:"nextPageToken,omitempty"`
3330
3331 Proposals []*Proposal `json:"proposals,omitempty"`
3332
3333
3334 googleapi.ServerResponse `json:"-"`
3335
3336
3337
3338
3339
3340 ForceSendFields []string `json:"-"`
3341
3342
3343
3344
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
3354
3355 type ListPublisherProfilesResponse struct {
3356
3357 NextPageToken string `json:"nextPageToken,omitempty"`
3358
3359 PublisherProfiles []*PublisherProfile `json:"publisherProfiles,omitempty"`
3360
3361
3362 googleapi.ServerResponse `json:"-"`
3363
3364
3365
3366
3367
3368 ForceSendFields []string `json:"-"`
3369
3370
3371
3372
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
3382 type LocationContext struct {
3383
3384
3385
3386
3387 GeoCriteriaIds []int64 `json:"geoCriteriaIds,omitempty"`
3388
3389
3390
3391
3392
3393 ForceSendFields []string `json:"-"`
3394
3395
3396
3397
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
3407
3408
3409
3410 type MarketplaceTargeting struct {
3411
3412 GeoTargeting *CriteriaTargeting `json:"geoTargeting,omitempty"`
3413
3414 InventorySizeTargeting *InventorySizeTargeting `json:"inventorySizeTargeting,omitempty"`
3415
3416
3417 PlacementTargeting *PlacementTargeting `json:"placementTargeting,omitempty"`
3418
3419
3420 TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
3421
3422 VideoTargeting *VideoTargeting `json:"videoTargeting,omitempty"`
3423
3424
3425
3426
3427
3428 ForceSendFields []string `json:"-"`
3429
3430
3431
3432
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
3442
3443
3444 type MetricValue struct {
3445
3446 Value int64 `json:"value,omitempty,string"`
3447
3448
3449
3450
3451
3452
3453 Variance int64 `json:"variance,omitempty,string"`
3454
3455
3456
3457
3458
3459 ForceSendFields []string `json:"-"`
3460
3461
3462
3463
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
3473 type MobileApplicationTargeting struct {
3474
3475
3476 FirstPartyTargeting *FirstPartyMobileApplicationTargeting `json:"firstPartyTargeting,omitempty"`
3477
3478
3479
3480
3481
3482 ForceSendFields []string `json:"-"`
3483
3484
3485
3486
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
3496 type Money struct {
3497
3498 CurrencyCode string `json:"currencyCode,omitempty"`
3499
3500
3501
3502
3503
3504 Nanos int64 `json:"nanos,omitempty"`
3505
3506
3507 Units int64 `json:"units,omitempty,string"`
3508
3509
3510
3511
3512
3513 ForceSendFields []string `json:"-"`
3514
3515
3516
3517
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
3527 type NativeContent struct {
3528
3529
3530 AdvertiserName string `json:"advertiserName,omitempty"`
3531
3532 AppIcon *Image `json:"appIcon,omitempty"`
3533
3534 Body string `json:"body,omitempty"`
3535
3536 CallToAction string `json:"callToAction,omitempty"`
3537
3538
3539 ClickLinkUrl string `json:"clickLinkUrl,omitempty"`
3540
3541 ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"`
3542
3543 Headline string `json:"headline,omitempty"`
3544
3545 Image *Image `json:"image,omitempty"`
3546
3547 Logo *Image `json:"logo,omitempty"`
3548
3549 PriceDisplayText string `json:"priceDisplayText,omitempty"`
3550
3551 StarRating float64 `json:"starRating,omitempty"`
3552
3553 StoreUrl string `json:"storeUrl,omitempty"`
3554
3555 VideoUrl string `json:"videoUrl,omitempty"`
3556
3557
3558
3559
3560
3561 ForceSendFields []string `json:"-"`
3562
3563
3564
3565
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
3589
3590
3591 type NonBillableWinningBidStatusRow struct {
3592
3593 BidCount *MetricValue `json:"bidCount,omitempty"`
3594
3595
3596 RowDimensions *RowDimensions `json:"rowDimensions,omitempty"`
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610 Status string `json:"status,omitempty"`
3611
3612
3613
3614
3615
3616 ForceSendFields []string `json:"-"`
3617
3618
3619
3620
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
3630
3631
3632 type NonGuaranteedAuctionTerms struct {
3633
3634
3635 AutoOptimizePrivateAuction bool `json:"autoOptimizePrivateAuction,omitempty"`
3636
3637 ReservePricesPerBuyer []*PricePerBuyer `json:"reservePricesPerBuyer,omitempty"`
3638
3639
3640
3641
3642
3643 ForceSendFields []string `json:"-"`
3644
3645
3646
3647
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
3657 type NonGuaranteedFixedPriceTerms struct {
3658
3659 FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"`
3660
3661
3662
3663
3664
3665 ForceSendFields []string `json:"-"`
3666
3667
3668
3669
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
3679 type Note struct {
3680
3681 CreateTime string `json:"createTime,omitempty"`
3682
3683
3684
3685
3686
3687
3688
3689
3690 CreatorRole string `json:"creatorRole,omitempty"`
3691
3692
3693
3694 Note string `json:"note,omitempty"`
3695
3696 NoteId string `json:"noteId,omitempty"`
3697
3698
3699 ProposalRevision int64 `json:"proposalRevision,omitempty,string"`
3700
3701
3702 googleapi.ServerResponse `json:"-"`
3703
3704
3705
3706
3707
3708 ForceSendFields []string `json:"-"`
3709
3710
3711
3712
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
3722
3723 type OperatingSystemTargeting struct {
3724
3725 OperatingSystemCriteria *CriteriaTargeting `json:"operatingSystemCriteria,omitempty"`
3726
3727
3728 OperatingSystemVersionCriteria *CriteriaTargeting `json:"operatingSystemVersionCriteria,omitempty"`
3729
3730
3731
3732
3733
3734 ForceSendFields []string `json:"-"`
3735
3736
3737
3738
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
3748
3749 type PauseProposalDealsRequest struct {
3750
3751
3752 ExternalDealIds []string `json:"externalDealIds,omitempty"`
3753
3754
3755
3756 Reason string `json:"reason,omitempty"`
3757
3758
3759
3760
3761
3762 ForceSendFields []string `json:"-"`
3763
3764
3765
3766
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
3776
3777 type PauseProposalRequest struct {
3778
3779
3780
3781 Reason string `json:"reason,omitempty"`
3782
3783
3784
3785
3786
3787 ForceSendFields []string `json:"-"`
3788
3789
3790
3791
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
3801
3802
3803 type PlacementTargeting struct {
3804
3805
3806 MobileApplicationTargeting *MobileApplicationTargeting `json:"mobileApplicationTargeting,omitempty"`
3807
3808 UrlTargeting *UrlTargeting `json:"urlTargeting,omitempty"`
3809
3810
3811
3812
3813
3814 ForceSendFields []string `json:"-"`
3815
3816
3817
3818
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
3828
3829 type PlatformContext struct {
3830
3831
3832
3833
3834
3835
3836 Platforms []string `json:"platforms,omitempty"`
3837
3838
3839
3840
3841
3842 ForceSendFields []string `json:"-"`
3843
3844
3845
3846
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
3856 type Price struct {
3857
3858 Amount *Money `json:"amount,omitempty"`
3859
3860
3861
3862
3863
3864
3865
3866 PricingType string `json:"pricingType,omitempty"`
3867
3868
3869
3870
3871
3872 ForceSendFields []string `json:"-"`
3873
3874
3875
3876
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
3886
3887
3888
3889
3890
3891 type PricePerBuyer struct {
3892
3893
3894 AdvertiserIds []string `json:"advertiserIds,omitempty"`
3895
3896
3897
3898 Buyer *Buyer `json:"buyer,omitempty"`
3899
3900 Price *Price `json:"price,omitempty"`
3901
3902
3903
3904
3905
3906 ForceSendFields []string `json:"-"`
3907
3908
3909
3910
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
3920
3921 type PrivateData struct {
3922
3923
3924 ReferenceId string `json:"referenceId,omitempty"`
3925
3926
3927
3928
3929
3930 ForceSendFields []string `json:"-"`
3931
3932
3933
3934
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
3944
3945
3946 type Product struct {
3947
3948
3949 AvailableEndTime string `json:"availableEndTime,omitempty"`
3950
3951
3952
3953 AvailableStartTime string `json:"availableStartTime,omitempty"`
3954
3955 CreateTime string `json:"createTime,omitempty"`
3956
3957
3958 CreatorContacts []*ContactInformation `json:"creatorContacts,omitempty"`
3959
3960 DisplayName string `json:"displayName,omitempty"`
3961
3962
3963
3964
3965 HasCreatorSignedOff bool `json:"hasCreatorSignedOff,omitempty"`
3966
3967 ProductId string `json:"productId,omitempty"`
3968
3969
3970 ProductRevision int64 `json:"productRevision,omitempty,string"`
3971
3972
3973 PublisherProfileId string `json:"publisherProfileId,omitempty"`
3974
3975 Seller *Seller `json:"seller,omitempty"`
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985 SyndicationProduct string `json:"syndicationProduct,omitempty"`
3986
3987
3988
3989 TargetingCriterion []*TargetingCriteria `json:"targetingCriterion,omitempty"`
3990
3991 Terms *DealTerms `json:"terms,omitempty"`
3992
3993 UpdateTime string `json:"updateTime,omitempty"`
3994
3995
3996 WebPropertyCode string `json:"webPropertyCode,omitempty"`
3997
3998
3999 googleapi.ServerResponse `json:"-"`
4000
4001
4002
4003
4004
4005 ForceSendFields []string `json:"-"`
4006
4007
4008
4009
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
4019
4020
4021
4022 type Proposal struct {
4023
4024
4025 BilledBuyer *Buyer `json:"billedBuyer,omitempty"`
4026
4027
4028
4029 Buyer *Buyer `json:"buyer,omitempty"`
4030
4031 BuyerContacts []*ContactInformation `json:"buyerContacts,omitempty"`
4032
4033 BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"`
4034
4035
4036
4037 Deals []*Deal `json:"deals,omitempty"`
4038
4039 DisplayName string `json:"displayName,omitempty"`
4040
4041 IsRenegotiating bool `json:"isRenegotiating,omitempty"`
4042
4043
4044 IsSetupComplete bool `json:"isSetupComplete,omitempty"`
4045
4046
4047
4048
4049
4050
4051
4052
4053 LastUpdaterOrCommentorRole string `json:"lastUpdaterOrCommentorRole,omitempty"`
4054
4055 Notes []*Note `json:"notes,omitempty"`
4056
4057
4058
4059
4060
4061
4062
4063
4064 OriginatorRole string `json:"originatorRole,omitempty"`
4065
4066
4067 PrivateAuctionId string `json:"privateAuctionId,omitempty"`
4068
4069 ProposalId string `json:"proposalId,omitempty"`
4070
4071
4072
4073
4074
4075
4076 ProposalRevision int64 `json:"proposalRevision,omitempty,string"`
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089 ProposalState string `json:"proposalState,omitempty"`
4090
4091
4092
4093 Seller *Seller `json:"seller,omitempty"`
4094
4095 SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"`
4096
4097
4098 TermsAndConditions string `json:"termsAndConditions,omitempty"`
4099
4100 UpdateTime string `json:"updateTime,omitempty"`
4101
4102
4103 googleapi.ServerResponse `json:"-"`
4104
4105
4106
4107
4108
4109 ForceSendFields []string `json:"-"`
4110
4111
4112
4113
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
4123
4124
4125
4126 type PublisherProfile struct {
4127
4128 AudienceDescription string `json:"audienceDescription,omitempty"`
4129
4130
4131 BuyerPitchStatement string `json:"buyerPitchStatement,omitempty"`
4132
4133
4134
4135 DirectDealsContact string `json:"directDealsContact,omitempty"`
4136
4137 DisplayName string `json:"displayName,omitempty"`
4138
4139
4140
4141
4142 Domains []string `json:"domains,omitempty"`
4143
4144 GooglePlusUrl string `json:"googlePlusUrl,omitempty"`
4145
4146
4147
4148
4149
4150
4151
4152 IsParent bool `json:"isParent,omitempty"`
4153
4154
4155 LogoUrl string `json:"logoUrl,omitempty"`
4156
4157 MediaKitUrl string `json:"mediaKitUrl,omitempty"`
4158
4159
4160 MobileApps []*PublisherProfileMobileApplication `json:"mobileApps,omitempty"`
4161
4162 Overview string `json:"overview,omitempty"`
4163
4164
4165
4166 ProgrammaticDealsContact string `json:"programmaticDealsContact,omitempty"`
4167
4168 PublisherProfileId string `json:"publisherProfileId,omitempty"`
4169
4170 RateCardInfoUrl string `json:"rateCardInfoUrl,omitempty"`
4171
4172 SamplePageUrl string `json:"samplePageUrl,omitempty"`
4173
4174 Seller *Seller `json:"seller,omitempty"`
4175
4176
4177 TopHeadlines []string `json:"topHeadlines,omitempty"`
4178
4179
4180 googleapi.ServerResponse `json:"-"`
4181
4182
4183
4184
4185
4186 ForceSendFields []string `json:"-"`
4187
4188
4189
4190
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
4200
4201 type PublisherProfileMobileApplication struct {
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219 AppStore string `json:"appStore,omitempty"`
4220
4221 ExternalAppId string `json:"externalAppId,omitempty"`
4222
4223 Name string `json:"name,omitempty"`
4224
4225
4226
4227
4228
4229 ForceSendFields []string `json:"-"`
4230
4231
4232
4233
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
4243
4244
4245 type RealtimeTimeRange struct {
4246
4247
4248 StartTimestamp string `json:"startTimestamp,omitempty"`
4249
4250
4251
4252
4253
4254 ForceSendFields []string `json:"-"`
4255
4256
4257
4258
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
4268
4269
4270
4271 type RelativeDateRange struct {
4272
4273
4274 DurationDays int64 `json:"durationDays,omitempty"`
4275
4276
4277 OffsetDays int64 `json:"offsetDays,omitempty"`
4278
4279
4280
4281
4282
4283 ForceSendFields []string `json:"-"`
4284
4285
4286
4287
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
4297
4298 type RemoveDealAssociationRequest struct {
4299
4300
4301 Association *CreativeDealAssociation `json:"association,omitempty"`
4302
4303
4304
4305
4306
4307 ForceSendFields []string `json:"-"`
4308
4309
4310
4311
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
4321
4322 type ResumeProposalDealsRequest struct {
4323
4324
4325 ExternalDealIds []string `json:"externalDealIds,omitempty"`
4326
4327
4328
4329
4330
4331 ForceSendFields []string `json:"-"`
4332
4333
4334
4335
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
4345
4346 type ResumeProposalRequest struct {
4347 }
4348
4349
4350
4351
4352 type RowDimensions struct {
4353
4354
4355
4356
4357 PublisherIdentifier string `json:"publisherIdentifier,omitempty"`
4358
4359 TimeInterval *TimeInterval `json:"timeInterval,omitempty"`
4360
4361
4362
4363
4364
4365 ForceSendFields []string `json:"-"`
4366
4367
4368
4369
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
4379 type SecurityContext struct {
4380
4381
4382
4383
4384
4385 Securities []string `json:"securities,omitempty"`
4386
4387
4388
4389
4390
4391 ForceSendFields []string `json:"-"`
4392
4393
4394
4395
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
4405
4406 type Seller struct {
4407
4408
4409 AccountId string `json:"accountId,omitempty"`
4410
4411 SubAccountId string `json:"subAccountId,omitempty"`
4412
4413
4414
4415
4416
4417 ForceSendFields []string `json:"-"`
4418
4419
4420
4421
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
4431 type ServingContext struct {
4432
4433
4434
4435
4436 All string `json:"all,omitempty"`
4437
4438 AppType *AppContext `json:"appType,omitempty"`
4439
4440 AuctionType *AuctionContext `json:"auctionType,omitempty"`
4441
4442
4443 Location *LocationContext `json:"location,omitempty"`
4444
4445 Platform *PlatformContext `json:"platform,omitempty"`
4446
4447 SecurityType *SecurityContext `json:"securityType,omitempty"`
4448
4449
4450
4451
4452
4453 ForceSendFields []string `json:"-"`
4454
4455
4456
4457
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
4467
4468
4469
4470 type ServingRestriction struct {
4471
4472 Contexts []*ServingContext `json:"contexts,omitempty"`
4473
4474
4475
4476 Disapproval *Disapproval `json:"disapproval,omitempty"`
4477
4478
4479
4480 DisapprovalReasons []*Disapproval `json:"disapprovalReasons,omitempty"`
4481
4482
4483
4484
4485
4486
4487
4488 Status string `json:"status,omitempty"`
4489
4490
4491
4492
4493
4494 ForceSendFields []string `json:"-"`
4495
4496
4497
4498
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
4508
4509 type Size struct {
4510
4511 Height int64 `json:"height,omitempty"`
4512
4513 Width int64 `json:"width,omitempty"`
4514
4515
4516
4517
4518
4519 ForceSendFields []string `json:"-"`
4520
4521
4522
4523
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
4533
4534 type StopWatchingCreativeRequest struct {
4535 }
4536
4537
4538
4539
4540 type TargetingCriteria struct {
4541
4542
4543 Exclusions []*TargetingValue `json:"exclusions,omitempty"`
4544
4545
4546 Inclusions []*TargetingValue `json:"inclusions,omitempty"`
4547
4548
4549
4550
4551 Key string `json:"key,omitempty"`
4552
4553
4554
4555
4556
4557 ForceSendFields []string `json:"-"`
4558
4559
4560
4561
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
4571
4572 type TargetingValue struct {
4573
4574
4575 CreativeSizeValue *CreativeSize `json:"creativeSizeValue,omitempty"`
4576
4577
4578
4579 DayPartTargetingValue *DayPartTargeting `json:"dayPartTargetingValue,omitempty"`
4580
4581 LongValue int64 `json:"longValue,omitempty,string"`
4582
4583 StringValue string `json:"stringValue,omitempty"`
4584
4585
4586
4587
4588
4589 ForceSendFields []string `json:"-"`
4590
4591
4592
4593
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
4603 type TechnologyTargeting struct {
4604
4605
4606 DeviceCapabilityTargeting *CriteriaTargeting `json:"deviceCapabilityTargeting,omitempty"`
4607
4608 DeviceCategoryTargeting *CriteriaTargeting `json:"deviceCategoryTargeting,omitempty"`
4609
4610 OperatingSystemTargeting *OperatingSystemTargeting `json:"operatingSystemTargeting,omitempty"`
4611
4612
4613
4614
4615
4616 ForceSendFields []string `json:"-"`
4617
4618
4619
4620
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
4630 type TimeInterval struct {
4631
4632
4633 EndTime string `json:"endTime,omitempty"`
4634
4635
4636 StartTime string `json:"startTime,omitempty"`
4637
4638
4639
4640
4641
4642 ForceSendFields []string `json:"-"`
4643
4644
4645
4646
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
4656
4657
4658 type TimeOfDay struct {
4659
4660
4661
4662 Hours int64 `json:"hours,omitempty"`
4663
4664 Minutes int64 `json:"minutes,omitempty"`
4665
4666 Nanos int64 `json:"nanos,omitempty"`
4667
4668
4669 Seconds int64 `json:"seconds,omitempty"`
4670
4671
4672
4673
4674
4675 ForceSendFields []string `json:"-"`
4676
4677
4678
4679
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
4689
4690
4691
4692 type UrlTargeting struct {
4693
4694 ExcludedUrls []string `json:"excludedUrls,omitempty"`
4695
4696 TargetedUrls []string `json:"targetedUrls,omitempty"`
4697
4698
4699
4700
4701
4702 ForceSendFields []string `json:"-"`
4703
4704
4705
4706
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
4716 type VideoContent struct {
4717
4718 VideoUrl string `json:"videoUrl,omitempty"`
4719
4720
4721 VideoVastXml string `json:"videoVastXml,omitempty"`
4722
4723
4724
4725
4726
4727 ForceSendFields []string `json:"-"`
4728
4729
4730
4731
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
4741 type VideoTargeting struct {
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751 ExcludedPositionTypes []string `json:"excludedPositionTypes,omitempty"`
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 TargetedPositionTypes []string `json:"targetedPositionTypes,omitempty"`
4763
4764
4765
4766
4767
4768 ForceSendFields []string `json:"-"`
4769
4770
4771
4772
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
4782 type WatchCreativeRequest struct {
4783
4784
4785
4786
4787 Topic string `json:"topic,omitempty"`
4788
4789
4790
4791
4792
4793 ForceSendFields []string `json:"-"`
4794
4795
4796
4797
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
4816
4817
4818
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
4827
4828
4829 func (c *AccountsClientsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsCreateCall {
4830 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4831 return c
4832 }
4833
4834
4835 func (c *AccountsClientsCreateCall) Context(ctx context.Context) *AccountsClientsCreateCall {
4836 c.ctx_ = ctx
4837 return c
4838 }
4839
4840
4841
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
4872
4873
4874
4875
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
4919
4920
4921
4922
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
4931
4932
4933 func (c *AccountsClientsGetCall) Fields(s ...googleapi.Field) *AccountsClientsGetCall {
4934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4935 return c
4936 }
4937
4938
4939
4940
4941 func (c *AccountsClientsGetCall) IfNoneMatch(entityTag string) *AccountsClientsGetCall {
4942 c.ifNoneMatch_ = entityTag
4943 return c
4944 }
4945
4946
4947 func (c *AccountsClientsGetCall) Context(ctx context.Context) *AccountsClientsGetCall {
4948 c.ctx_ = ctx
4949 return c
4950 }
4951
4952
4953
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
4984
4985
4986
4987
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
5030
5031
5032
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
5040
5041
5042 func (c *AccountsClientsListCall) PageSize(pageSize int64) *AccountsClientsListCall {
5043 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5044 return c
5045 }
5046
5047
5048
5049
5050
5051 func (c *AccountsClientsListCall) PageToken(pageToken string) *AccountsClientsListCall {
5052 c.urlParams_.Set("pageToken", pageToken)
5053 return c
5054 }
5055
5056
5057
5058
5059
5060 func (c *AccountsClientsListCall) PartnerClientId(partnerClientId string) *AccountsClientsListCall {
5061 c.urlParams_.Set("partnerClientId", partnerClientId)
5062 return c
5063 }
5064
5065
5066
5067
5068 func (c *AccountsClientsListCall) Fields(s ...googleapi.Field) *AccountsClientsListCall {
5069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5070 return c
5071 }
5072
5073
5074
5075
5076 func (c *AccountsClientsListCall) IfNoneMatch(entityTag string) *AccountsClientsListCall {
5077 c.ifNoneMatch_ = entityTag
5078 return c
5079 }
5080
5081
5082 func (c *AccountsClientsListCall) Context(ctx context.Context) *AccountsClientsListCall {
5083 c.ctx_ = ctx
5084 return c
5085 }
5086
5087
5088
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
5118
5119
5120
5121
5122
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
5156
5157
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
5187
5188
5189
5190
5191
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
5201
5202
5203 func (c *AccountsClientsUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUpdateCall {
5204 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5205 return c
5206 }
5207
5208
5209 func (c *AccountsClientsUpdateCall) Context(ctx context.Context) *AccountsClientsUpdateCall {
5210 c.ctx_ = ctx
5211 return c
5212 }
5213
5214
5215
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
5247
5248
5249
5250
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
5294
5295
5296
5297
5298
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
5308
5309
5310 func (c *AccountsClientsInvitationsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsCreateCall {
5311 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5312 return c
5313 }
5314
5315
5316 func (c *AccountsClientsInvitationsCreateCall) Context(ctx context.Context) *AccountsClientsInvitationsCreateCall {
5317 c.ctx_ = ctx
5318 return c
5319 }
5320
5321
5322
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
5354
5355
5356
5357
5358
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
5403
5404
5405
5406
5407
5408
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
5418
5419
5420 func (c *AccountsClientsInvitationsGetCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsGetCall {
5421 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5422 return c
5423 }
5424
5425
5426
5427
5428 func (c *AccountsClientsInvitationsGetCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsGetCall {
5429 c.ifNoneMatch_ = entityTag
5430 return c
5431 }
5432
5433
5434 func (c *AccountsClientsInvitationsGetCall) Context(ctx context.Context) *AccountsClientsInvitationsGetCall {
5435 c.ctx_ = ctx
5436 return c
5437 }
5438
5439
5440
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
5472
5473
5474
5475
5476
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
5520
5521
5522
5523
5524
5525
5526
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
5535
5536
5537 func (c *AccountsClientsInvitationsListCall) PageSize(pageSize int64) *AccountsClientsInvitationsListCall {
5538 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5539 return c
5540 }
5541
5542
5543
5544
5545
5546 func (c *AccountsClientsInvitationsListCall) PageToken(pageToken string) *AccountsClientsInvitationsListCall {
5547 c.urlParams_.Set("pageToken", pageToken)
5548 return c
5549 }
5550
5551
5552
5553
5554 func (c *AccountsClientsInvitationsListCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsListCall {
5555 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5556 return c
5557 }
5558
5559
5560
5561
5562 func (c *AccountsClientsInvitationsListCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsListCall {
5563 c.ifNoneMatch_ = entityTag
5564 return c
5565 }
5566
5567
5568 func (c *AccountsClientsInvitationsListCall) Context(ctx context.Context) *AccountsClientsInvitationsListCall {
5569 c.ctx_ = ctx
5570 return c
5571 }
5572
5573
5574
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
5605
5606
5607
5608
5609
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
5643
5644
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
5675
5676
5677
5678
5679
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
5689
5690
5691 func (c *AccountsClientsUsersGetCall) Fields(s ...googleapi.Field) *AccountsClientsUsersGetCall {
5692 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5693 return c
5694 }
5695
5696
5697
5698
5699 func (c *AccountsClientsUsersGetCall) IfNoneMatch(entityTag string) *AccountsClientsUsersGetCall {
5700 c.ifNoneMatch_ = entityTag
5701 return c
5702 }
5703
5704
5705 func (c *AccountsClientsUsersGetCall) Context(ctx context.Context) *AccountsClientsUsersGetCall {
5706 c.ctx_ = ctx
5707 return c
5708 }
5709
5710
5711
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
5743
5744
5745
5746
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
5790
5791
5792
5793
5794
5795
5796
5797
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
5806
5807
5808 func (c *AccountsClientsUsersListCall) PageSize(pageSize int64) *AccountsClientsUsersListCall {
5809 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5810 return c
5811 }
5812
5813
5814
5815
5816
5817 func (c *AccountsClientsUsersListCall) PageToken(pageToken string) *AccountsClientsUsersListCall {
5818 c.urlParams_.Set("pageToken", pageToken)
5819 return c
5820 }
5821
5822
5823
5824
5825 func (c *AccountsClientsUsersListCall) Fields(s ...googleapi.Field) *AccountsClientsUsersListCall {
5826 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5827 return c
5828 }
5829
5830
5831
5832
5833 func (c *AccountsClientsUsersListCall) IfNoneMatch(entityTag string) *AccountsClientsUsersListCall {
5834 c.ifNoneMatch_ = entityTag
5835 return c
5836 }
5837
5838
5839 func (c *AccountsClientsUsersListCall) Context(ctx context.Context) *AccountsClientsUsersListCall {
5840 c.ctx_ = ctx
5841 return c
5842 }
5843
5844
5845
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
5876
5877
5878
5879
5880
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
5914
5915
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
5946
5947
5948
5949
5950
5951
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
5962
5963
5964 func (c *AccountsClientsUsersUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUsersUpdateCall {
5965 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5966 return c
5967 }
5968
5969
5970 func (c *AccountsClientsUsersUpdateCall) Context(ctx context.Context) *AccountsClientsUsersUpdateCall {
5971 c.ctx_ = ctx
5972 return c
5973 }
5974
5975
5976
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
6009
6010
6011
6012
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
6055
6056
6057
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
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 func (c *AccountsCreativesCreateCall) DuplicateIdMode(duplicateIdMode string) *AccountsCreativesCreateCall {
6083 c.urlParams_.Set("duplicateIdMode", duplicateIdMode)
6084 return c
6085 }
6086
6087
6088
6089
6090 func (c *AccountsCreativesCreateCall) Fields(s ...googleapi.Field) *AccountsCreativesCreateCall {
6091 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6092 return c
6093 }
6094
6095
6096 func (c *AccountsCreativesCreateCall) Context(ctx context.Context) *AccountsCreativesCreateCall {
6097 c.ctx_ = ctx
6098 return c
6099 }
6100
6101
6102
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
6133
6134
6135
6136
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
6180
6181
6182
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
6191
6192
6193 func (c *AccountsCreativesGetCall) Fields(s ...googleapi.Field) *AccountsCreativesGetCall {
6194 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6195 return c
6196 }
6197
6198
6199
6200
6201 func (c *AccountsCreativesGetCall) IfNoneMatch(entityTag string) *AccountsCreativesGetCall {
6202 c.ifNoneMatch_ = entityTag
6203 return c
6204 }
6205
6206
6207 func (c *AccountsCreativesGetCall) Context(ctx context.Context) *AccountsCreativesGetCall {
6208 c.ctx_ = ctx
6209 return c
6210 }
6211
6212
6213
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
6244
6245
6246
6247
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
6290
6291
6292
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
6300
6301
6302
6303 func (c *AccountsCreativesListCall) PageSize(pageSize int64) *AccountsCreativesListCall {
6304 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6305 return c
6306 }
6307
6308
6309
6310
6311
6312 func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativesListCall {
6313 c.urlParams_.Set("pageToken", pageToken)
6314 return c
6315 }
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall {
6328 c.urlParams_.Set("query", query)
6329 return c
6330 }
6331
6332
6333
6334
6335 func (c *AccountsCreativesListCall) Fields(s ...googleapi.Field) *AccountsCreativesListCall {
6336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6337 return c
6338 }
6339
6340
6341
6342
6343 func (c *AccountsCreativesListCall) IfNoneMatch(entityTag string) *AccountsCreativesListCall {
6344 c.ifNoneMatch_ = entityTag
6345 return c
6346 }
6347
6348
6349 func (c *AccountsCreativesListCall) Context(ctx context.Context) *AccountsCreativesListCall {
6350 c.ctx_ = ctx
6351 return c
6352 }
6353
6354
6355
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
6385
6386
6387
6388
6389
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
6423
6424
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
6454
6455
6456
6457
6458
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
6468
6469
6470 func (c *AccountsCreativesStopWatchingCall) Fields(s ...googleapi.Field) *AccountsCreativesStopWatchingCall {
6471 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6472 return c
6473 }
6474
6475
6476 func (c *AccountsCreativesStopWatchingCall) Context(ctx context.Context) *AccountsCreativesStopWatchingCall {
6477 c.ctx_ = ctx
6478 return c
6479 }
6480
6481
6482
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
6514
6515
6516
6517
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
6561
6562
6563
6564
6565
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
6575
6576
6577 func (c *AccountsCreativesUpdateCall) Fields(s ...googleapi.Field) *AccountsCreativesUpdateCall {
6578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6579 return c
6580 }
6581
6582
6583 func (c *AccountsCreativesUpdateCall) Context(ctx context.Context) *AccountsCreativesUpdateCall {
6584 c.ctx_ = ctx
6585 return c
6586 }
6587
6588
6589
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
6621
6622
6623
6624
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
6668
6669
6670
6671
6672
6673
6674
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
6684
6685
6686 func (c *AccountsCreativesWatchCall) Fields(s ...googleapi.Field) *AccountsCreativesWatchCall {
6687 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6688 return c
6689 }
6690
6691
6692 func (c *AccountsCreativesWatchCall) Context(ctx context.Context) *AccountsCreativesWatchCall {
6693 c.ctx_ = ctx
6694 return c
6695 }
6696
6697
6698
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
6730
6731
6732
6733
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
6777
6778
6779
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
6789
6790
6791 func (c *AccountsCreativesDealAssociationsAddCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsAddCall {
6792 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6793 return c
6794 }
6795
6796
6797 func (c *AccountsCreativesDealAssociationsAddCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsAddCall {
6798 c.ctx_ = ctx
6799 return c
6800 }
6801
6802
6803
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
6835
6836
6837
6838
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
6882
6883
6884
6885
6886
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
6895
6896
6897 func (c *AccountsCreativesDealAssociationsListCall) PageSize(pageSize int64) *AccountsCreativesDealAssociationsListCall {
6898 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6899 return c
6900 }
6901
6902
6903
6904
6905
6906 func (c *AccountsCreativesDealAssociationsListCall) PageToken(pageToken string) *AccountsCreativesDealAssociationsListCall {
6907 c.urlParams_.Set("pageToken", pageToken)
6908 return c
6909 }
6910
6911
6912
6913
6914
6915
6916
6917
6918 func (c *AccountsCreativesDealAssociationsListCall) Query(query string) *AccountsCreativesDealAssociationsListCall {
6919 c.urlParams_.Set("query", query)
6920 return c
6921 }
6922
6923
6924
6925
6926 func (c *AccountsCreativesDealAssociationsListCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsListCall {
6927 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6928 return c
6929 }
6930
6931
6932
6933
6934 func (c *AccountsCreativesDealAssociationsListCall) IfNoneMatch(entityTag string) *AccountsCreativesDealAssociationsListCall {
6935 c.ifNoneMatch_ = entityTag
6936 return c
6937 }
6938
6939
6940 func (c *AccountsCreativesDealAssociationsListCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsListCall {
6941 c.ctx_ = ctx
6942 return c
6943 }
6944
6945
6946
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
6977
6978
6979
6980
6981
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
7015
7016
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
7046
7047
7048
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
7058
7059
7060 func (c *AccountsCreativesDealAssociationsRemoveCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsRemoveCall {
7061 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7062 return c
7063 }
7064
7065
7066 func (c *AccountsCreativesDealAssociationsRemoveCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsRemoveCall {
7067 c.ctx_ = ctx
7068 return c
7069 }
7070
7071
7072
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
7104
7105
7106
7107
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
7150
7151
7152
7153
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
7161
7162
7163 func (c *AccountsFinalizedProposalsListCall) Filter(filter string) *AccountsFinalizedProposalsListCall {
7164 c.urlParams_.Set("filter", filter)
7165 return c
7166 }
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 func (c *AccountsFinalizedProposalsListCall) FilterSyntax(filterSyntax string) *AccountsFinalizedProposalsListCall {
7187 c.urlParams_.Set("filterSyntax", filterSyntax)
7188 return c
7189 }
7190
7191
7192
7193
7194 func (c *AccountsFinalizedProposalsListCall) PageSize(pageSize int64) *AccountsFinalizedProposalsListCall {
7195 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7196 return c
7197 }
7198
7199
7200
7201 func (c *AccountsFinalizedProposalsListCall) PageToken(pageToken string) *AccountsFinalizedProposalsListCall {
7202 c.urlParams_.Set("pageToken", pageToken)
7203 return c
7204 }
7205
7206
7207
7208
7209 func (c *AccountsFinalizedProposalsListCall) Fields(s ...googleapi.Field) *AccountsFinalizedProposalsListCall {
7210 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7211 return c
7212 }
7213
7214
7215
7216
7217 func (c *AccountsFinalizedProposalsListCall) IfNoneMatch(entityTag string) *AccountsFinalizedProposalsListCall {
7218 c.ifNoneMatch_ = entityTag
7219 return c
7220 }
7221
7222
7223 func (c *AccountsFinalizedProposalsListCall) Context(ctx context.Context) *AccountsFinalizedProposalsListCall {
7224 c.ctx_ = ctx
7225 return c
7226 }
7227
7228
7229
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
7259
7260
7261
7262
7263
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
7297
7298
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
7328
7329
7330
7331
7332
7333
7334
7335
7336
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
7346
7347
7348 func (c *AccountsFinalizedProposalsPauseCall) Fields(s ...googleapi.Field) *AccountsFinalizedProposalsPauseCall {
7349 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7350 return c
7351 }
7352
7353
7354 func (c *AccountsFinalizedProposalsPauseCall) Context(ctx context.Context) *AccountsFinalizedProposalsPauseCall {
7355 c.ctx_ = ctx
7356 return c
7357 }
7358
7359
7360
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
7392
7393
7394
7395
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
7439
7440
7441
7442
7443
7444
7445
7446
7447
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
7457
7458
7459 func (c *AccountsFinalizedProposalsResumeCall) Fields(s ...googleapi.Field) *AccountsFinalizedProposalsResumeCall {
7460 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7461 return c
7462 }
7463
7464
7465 func (c *AccountsFinalizedProposalsResumeCall) Context(ctx context.Context) *AccountsFinalizedProposalsResumeCall {
7466 c.ctx_ = ctx
7467 return c
7468 }
7469
7470
7471
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
7503
7504
7505
7506
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
7550
7551
7552
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
7561
7562
7563 func (c *AccountsProductsGetCall) Fields(s ...googleapi.Field) *AccountsProductsGetCall {
7564 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7565 return c
7566 }
7567
7568
7569
7570
7571 func (c *AccountsProductsGetCall) IfNoneMatch(entityTag string) *AccountsProductsGetCall {
7572 c.ifNoneMatch_ = entityTag
7573 return c
7574 }
7575
7576
7577 func (c *AccountsProductsGetCall) Context(ctx context.Context) *AccountsProductsGetCall {
7578 c.ctx_ = ctx
7579 return c
7580 }
7581
7582
7583
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
7614
7615
7616
7617
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
7660
7661
7662
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
7670
7671
7672
7673
7674 func (c *AccountsProductsListCall) Filter(filter string) *AccountsProductsListCall {
7675 c.urlParams_.Set("filter", filter)
7676 return c
7677 }
7678
7679
7680
7681
7682 func (c *AccountsProductsListCall) PageSize(pageSize int64) *AccountsProductsListCall {
7683 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7684 return c
7685 }
7686
7687
7688
7689 func (c *AccountsProductsListCall) PageToken(pageToken string) *AccountsProductsListCall {
7690 c.urlParams_.Set("pageToken", pageToken)
7691 return c
7692 }
7693
7694
7695
7696
7697 func (c *AccountsProductsListCall) Fields(s ...googleapi.Field) *AccountsProductsListCall {
7698 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7699 return c
7700 }
7701
7702
7703
7704
7705 func (c *AccountsProductsListCall) IfNoneMatch(entityTag string) *AccountsProductsListCall {
7706 c.ifNoneMatch_ = entityTag
7707 return c
7708 }
7709
7710
7711 func (c *AccountsProductsListCall) Context(ctx context.Context) *AccountsProductsListCall {
7712 c.ctx_ = ctx
7713 return c
7714 }
7715
7716
7717
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
7747
7748
7749
7750
7751
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
7785
7786
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
7816
7817
7818
7819
7820
7821
7822
7823
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
7833
7834
7835 func (c *AccountsProposalsAcceptCall) Fields(s ...googleapi.Field) *AccountsProposalsAcceptCall {
7836 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7837 return c
7838 }
7839
7840
7841 func (c *AccountsProposalsAcceptCall) Context(ctx context.Context) *AccountsProposalsAcceptCall {
7842 c.ctx_ = ctx
7843 return c
7844 }
7845
7846
7847
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
7879
7880
7881
7882
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
7926
7927
7928
7929
7930
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
7940
7941
7942 func (c *AccountsProposalsAddNoteCall) Fields(s ...googleapi.Field) *AccountsProposalsAddNoteCall {
7943 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7944 return c
7945 }
7946
7947
7948 func (c *AccountsProposalsAddNoteCall) Context(ctx context.Context) *AccountsProposalsAddNoteCall {
7949 c.ctx_ = ctx
7950 return c
7951 }
7952
7953
7954
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
7986
7987
7988
7989
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
8033
8034
8035
8036
8037
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
8047
8048
8049 func (c *AccountsProposalsCancelNegotiationCall) Fields(s ...googleapi.Field) *AccountsProposalsCancelNegotiationCall {
8050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8051 return c
8052 }
8053
8054
8055 func (c *AccountsProposalsCancelNegotiationCall) Context(ctx context.Context) *AccountsProposalsCancelNegotiationCall {
8056 c.ctx_ = ctx
8057 return c
8058 }
8059
8060
8061
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
8093
8094
8095
8096
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
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
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
8160
8161
8162 func (c *AccountsProposalsCompleteSetupCall) Fields(s ...googleapi.Field) *AccountsProposalsCompleteSetupCall {
8163 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8164 return c
8165 }
8166
8167
8168 func (c *AccountsProposalsCompleteSetupCall) Context(ctx context.Context) *AccountsProposalsCompleteSetupCall {
8169 c.ctx_ = ctx
8170 return c
8171 }
8172
8173
8174
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
8206
8207
8208
8209
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
8252
8253
8254
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
8263
8264
8265 func (c *AccountsProposalsCreateCall) Fields(s ...googleapi.Field) *AccountsProposalsCreateCall {
8266 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8267 return c
8268 }
8269
8270
8271 func (c *AccountsProposalsCreateCall) Context(ctx context.Context) *AccountsProposalsCreateCall {
8272 c.ctx_ = ctx
8273 return c
8274 }
8275
8276
8277
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
8308
8309
8310
8311
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
8355
8356
8357
8358
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
8367
8368
8369 func (c *AccountsProposalsGetCall) Fields(s ...googleapi.Field) *AccountsProposalsGetCall {
8370 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8371 return c
8372 }
8373
8374
8375
8376
8377 func (c *AccountsProposalsGetCall) IfNoneMatch(entityTag string) *AccountsProposalsGetCall {
8378 c.ifNoneMatch_ = entityTag
8379 return c
8380 }
8381
8382
8383 func (c *AccountsProposalsGetCall) Context(ctx context.Context) *AccountsProposalsGetCall {
8384 c.ctx_ = ctx
8385 return c
8386 }
8387
8388
8389
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
8420
8421
8422
8423
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
8466
8467
8468
8469
8470
8471
8472
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
8480
8481
8482 func (c *AccountsProposalsListCall) Filter(filter string) *AccountsProposalsListCall {
8483 c.urlParams_.Set("filter", filter)
8484 return c
8485 }
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 func (c *AccountsProposalsListCall) FilterSyntax(filterSyntax string) *AccountsProposalsListCall {
8506 c.urlParams_.Set("filterSyntax", filterSyntax)
8507 return c
8508 }
8509
8510
8511
8512
8513 func (c *AccountsProposalsListCall) PageSize(pageSize int64) *AccountsProposalsListCall {
8514 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8515 return c
8516 }
8517
8518
8519
8520 func (c *AccountsProposalsListCall) PageToken(pageToken string) *AccountsProposalsListCall {
8521 c.urlParams_.Set("pageToken", pageToken)
8522 return c
8523 }
8524
8525
8526
8527
8528 func (c *AccountsProposalsListCall) Fields(s ...googleapi.Field) *AccountsProposalsListCall {
8529 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8530 return c
8531 }
8532
8533
8534
8535
8536 func (c *AccountsProposalsListCall) IfNoneMatch(entityTag string) *AccountsProposalsListCall {
8537 c.ifNoneMatch_ = entityTag
8538 return c
8539 }
8540
8541
8542 func (c *AccountsProposalsListCall) Context(ctx context.Context) *AccountsProposalsListCall {
8543 c.ctx_ = ctx
8544 return c
8545 }
8546
8547
8548
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
8578
8579
8580
8581
8582
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
8616
8617
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
8647
8648
8649
8650
8651
8652
8653
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
8663
8664
8665 func (c *AccountsProposalsPauseCall) Fields(s ...googleapi.Field) *AccountsProposalsPauseCall {
8666 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8667 return c
8668 }
8669
8670
8671 func (c *AccountsProposalsPauseCall) Context(ctx context.Context) *AccountsProposalsPauseCall {
8672 c.ctx_ = ctx
8673 return c
8674 }
8675
8676
8677
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
8709
8710
8711
8712
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
8756
8757
8758
8759
8760
8761
8762
8763
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
8773
8774
8775 func (c *AccountsProposalsResumeCall) Fields(s ...googleapi.Field) *AccountsProposalsResumeCall {
8776 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8777 return c
8778 }
8779
8780
8781 func (c *AccountsProposalsResumeCall) Context(ctx context.Context) *AccountsProposalsResumeCall {
8782 c.ctx_ = ctx
8783 return c
8784 }
8785
8786
8787
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
8819
8820
8821
8822
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
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
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
8887
8888
8889 func (c *AccountsProposalsUpdateCall) Fields(s ...googleapi.Field) *AccountsProposalsUpdateCall {
8890 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8891 return c
8892 }
8893
8894
8895 func (c *AccountsProposalsUpdateCall) Context(ctx context.Context) *AccountsProposalsUpdateCall {
8896 c.ctx_ = ctx
8897 return c
8898 }
8899
8900
8901
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
8933
8934
8935
8936
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
8980
8981
8982
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
8991
8992
8993 func (c *AccountsPublisherProfilesGetCall) Fields(s ...googleapi.Field) *AccountsPublisherProfilesGetCall {
8994 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8995 return c
8996 }
8997
8998
8999
9000
9001 func (c *AccountsPublisherProfilesGetCall) IfNoneMatch(entityTag string) *AccountsPublisherProfilesGetCall {
9002 c.ifNoneMatch_ = entityTag
9003 return c
9004 }
9005
9006
9007 func (c *AccountsPublisherProfilesGetCall) Context(ctx context.Context) *AccountsPublisherProfilesGetCall {
9008 c.ctx_ = ctx
9009 return c
9010 }
9011
9012
9013
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
9044
9045
9046
9047
9048
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
9091
9092
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
9100
9101 func (c *AccountsPublisherProfilesListCall) PageSize(pageSize int64) *AccountsPublisherProfilesListCall {
9102 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9103 return c
9104 }
9105
9106
9107
9108 func (c *AccountsPublisherProfilesListCall) PageToken(pageToken string) *AccountsPublisherProfilesListCall {
9109 c.urlParams_.Set("pageToken", pageToken)
9110 return c
9111 }
9112
9113
9114
9115
9116 func (c *AccountsPublisherProfilesListCall) Fields(s ...googleapi.Field) *AccountsPublisherProfilesListCall {
9117 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9118 return c
9119 }
9120
9121
9122
9123
9124 func (c *AccountsPublisherProfilesListCall) IfNoneMatch(entityTag string) *AccountsPublisherProfilesListCall {
9125 c.ifNoneMatch_ = entityTag
9126 return c
9127 }
9128
9129
9130 func (c *AccountsPublisherProfilesListCall) Context(ctx context.Context) *AccountsPublisherProfilesListCall {
9131 c.ctx_ = ctx
9132 return c
9133 }
9134
9135
9136
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
9166
9167
9168
9169
9170
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
9204
9205
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
9234
9235
9236
9237
9238
9239
9240
9241
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
9250
9251
9252
9253 func (c *BiddersAccountsFilterSetsCreateCall) IsTransient(isTransient bool) *BiddersAccountsFilterSetsCreateCall {
9254 c.urlParams_.Set("isTransient", fmt.Sprint(isTransient))
9255 return c
9256 }
9257
9258
9259
9260
9261 func (c *BiddersAccountsFilterSetsCreateCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsCreateCall {
9262 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9263 return c
9264 }
9265
9266
9267 func (c *BiddersAccountsFilterSetsCreateCall) Context(ctx context.Context) *BiddersAccountsFilterSetsCreateCall {
9268 c.ctx_ = ctx
9269 return c
9270 }
9271
9272
9273
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
9304
9305
9306
9307
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
9349
9350
9351
9352
9353
9354
9355
9356
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
9364
9365
9366 func (c *BiddersAccountsFilterSetsDeleteCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsDeleteCall {
9367 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9368 return c
9369 }
9370
9371
9372 func (c *BiddersAccountsFilterSetsDeleteCall) Context(ctx context.Context) *BiddersAccountsFilterSetsDeleteCall {
9373 c.ctx_ = ctx
9374 return c
9375 }
9376
9377
9378
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
9405
9406
9407
9408
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
9451
9452
9453
9454
9455
9456
9457
9458
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
9466
9467
9468 func (c *BiddersAccountsFilterSetsGetCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsGetCall {
9469 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9470 return c
9471 }
9472
9473
9474
9475
9476 func (c *BiddersAccountsFilterSetsGetCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsGetCall {
9477 c.ifNoneMatch_ = entityTag
9478 return c
9479 }
9480
9481
9482 func (c *BiddersAccountsFilterSetsGetCall) Context(ctx context.Context) *BiddersAccountsFilterSetsGetCall {
9483 c.ctx_ = ctx
9484 return c
9485 }
9486
9487
9488
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
9518
9519
9520
9521
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
9564
9565
9566
9567
9568
9569
9570
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
9578
9579
9580 func (c *BiddersAccountsFilterSetsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsListCall {
9581 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9582 return c
9583 }
9584
9585
9586
9587
9588
9589 func (c *BiddersAccountsFilterSetsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsListCall {
9590 c.urlParams_.Set("pageToken", pageToken)
9591 return c
9592 }
9593
9594
9595
9596
9597 func (c *BiddersAccountsFilterSetsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsListCall {
9598 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9599 return c
9600 }
9601
9602
9603
9604
9605 func (c *BiddersAccountsFilterSetsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsListCall {
9606 c.ifNoneMatch_ = entityTag
9607 return c
9608 }
9609
9610
9611 func (c *BiddersAccountsFilterSetsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsListCall {
9612 c.ctx_ = ctx
9613 return c
9614 }
9615
9616
9617
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
9647
9648
9649
9650
9651
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
9685
9686
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
9715
9716
9717
9718
9719
9720
9721
9722
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
9730
9731
9732 func (c *BiddersAccountsFilterSetsBidMetricsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsBidMetricsListCall {
9733 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9734 return c
9735 }
9736
9737
9738
9739
9740
9741 func (c *BiddersAccountsFilterSetsBidMetricsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsBidMetricsListCall {
9742 c.urlParams_.Set("pageToken", pageToken)
9743 return c
9744 }
9745
9746
9747
9748
9749 func (c *BiddersAccountsFilterSetsBidMetricsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsBidMetricsListCall {
9750 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9751 return c
9752 }
9753
9754
9755
9756
9757 func (c *BiddersAccountsFilterSetsBidMetricsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsBidMetricsListCall {
9758 c.ifNoneMatch_ = entityTag
9759 return c
9760 }
9761
9762
9763 func (c *BiddersAccountsFilterSetsBidMetricsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsBidMetricsListCall {
9764 c.ctx_ = ctx
9765 return c
9766 }
9767
9768
9769
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
9799
9800
9801
9802
9803
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
9837
9838
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
9867
9868
9869
9870
9871
9872
9873
9874
9875
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
9883
9884
9885 func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
9886 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9887 return c
9888 }
9889
9890
9891
9892
9893
9894 func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
9895 c.urlParams_.Set("pageToken", pageToken)
9896 return c
9897 }
9898
9899
9900
9901
9902 func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
9903 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9904 return c
9905 }
9906
9907
9908
9909
9910 func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
9911 c.ifNoneMatch_ = entityTag
9912 return c
9913 }
9914
9915
9916 func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsBidResponseErrorsListCall {
9917 c.ctx_ = ctx
9918 return c
9919 }
9920
9921
9922
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
9952
9953
9954
9955
9956
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
9990
9991
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
10020
10021
10022
10023
10024
10025
10026
10027
10028
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
10036
10037
10038 func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
10039 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10040 return c
10041 }
10042
10043
10044
10045
10046
10047 func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
10048 c.urlParams_.Set("pageToken", pageToken)
10049 return c
10050 }
10051
10052
10053
10054
10055 func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
10056 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10057 return c
10058 }
10059
10060
10061
10062
10063 func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
10064 c.ifNoneMatch_ = entityTag
10065 return c
10066 }
10067
10068
10069 func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall {
10070 c.ctx_ = ctx
10071 return c
10072 }
10073
10074
10075
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
10105
10106
10107
10108
10109
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
10143
10144
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
10173
10174
10175
10176
10177
10178
10179
10180
10181
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
10189
10190
10191 func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
10192 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10193 return c
10194 }
10195
10196
10197
10198
10199
10200 func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
10201 c.urlParams_.Set("pageToken", pageToken)
10202 return c
10203 }
10204
10205
10206
10207
10208 func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
10209 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10210 return c
10211 }
10212
10213
10214
10215
10216 func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
10217 c.ifNoneMatch_ = entityTag
10218 return c
10219 }
10220
10221
10222 func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidRequestsListCall {
10223 c.ctx_ = ctx
10224 return c
10225 }
10226
10227
10228
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
10258
10259
10260
10261
10262
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
10296
10297
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
10326
10327
10328
10329
10330
10331
10332
10333
10334
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
10342
10343
10344 func (c *BiddersAccountsFilterSetsFilteredBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidsListCall {
10345 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10346 return c
10347 }
10348
10349
10350
10351
10352
10353 func (c *BiddersAccountsFilterSetsFilteredBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidsListCall {
10354 c.urlParams_.Set("pageToken", pageToken)
10355 return c
10356 }
10357
10358
10359
10360
10361 func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidsListCall {
10362 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10363 return c
10364 }
10365
10366
10367
10368
10369 func (c *BiddersAccountsFilterSetsFilteredBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidsListCall {
10370 c.ifNoneMatch_ = entityTag
10371 return c
10372 }
10373
10374
10375 func (c *BiddersAccountsFilterSetsFilteredBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidsListCall {
10376 c.ctx_ = ctx
10377 return c
10378 }
10379
10380
10381
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
10411
10412
10413
10414
10415
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
10449
10450
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
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
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
10500
10501
10502 func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
10503 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10504 return c
10505 }
10506
10507
10508
10509
10510
10511 func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
10512 c.urlParams_.Set("pageToken", pageToken)
10513 return c
10514 }
10515
10516
10517
10518
10519 func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
10520 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10521 return c
10522 }
10523
10524
10525
10526
10527 func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
10528 c.ifNoneMatch_ = entityTag
10529 return c
10530 }
10531
10532
10533 func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidsCreativesListCall {
10534 c.ctx_ = ctx
10535 return c
10536 }
10537
10538
10539
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
10570
10571
10572
10573
10574
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
10608
10609
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
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
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
10661
10662
10663 func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
10664 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10665 return c
10666 }
10667
10668
10669
10670
10671
10672 func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
10673 c.urlParams_.Set("pageToken", pageToken)
10674 return c
10675 }
10676
10677
10678
10679
10680 func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
10681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10682 return c
10683 }
10684
10685
10686
10687
10688 func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
10689 c.ifNoneMatch_ = entityTag
10690 return c
10691 }
10692
10693
10694 func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsFilteredBidsDetailsListCall {
10695 c.ctx_ = ctx
10696 return c
10697 }
10698
10699
10700
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
10731
10732
10733
10734
10735
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
10769
10770
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
10799
10800
10801
10802
10803
10804
10805
10806
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
10814
10815
10816 func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsImpressionMetricsListCall {
10817 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10818 return c
10819 }
10820
10821
10822
10823
10824
10825 func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsImpressionMetricsListCall {
10826 c.urlParams_.Set("pageToken", pageToken)
10827 return c
10828 }
10829
10830
10831
10832
10833 func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsImpressionMetricsListCall {
10834 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10835 return c
10836 }
10837
10838
10839
10840
10841 func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsImpressionMetricsListCall {
10842 c.ifNoneMatch_ = entityTag
10843 return c
10844 }
10845
10846
10847 func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsImpressionMetricsListCall {
10848 c.ctx_ = ctx
10849 return c
10850 }
10851
10852
10853
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
10883
10884
10885
10886
10887
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
10921
10922
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
10951
10952
10953
10954
10955
10956
10957
10958
10959
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
10967
10968
10969 func (c *BiddersAccountsFilterSetsLosingBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsLosingBidsListCall {
10970 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10971 return c
10972 }
10973
10974
10975
10976
10977
10978 func (c *BiddersAccountsFilterSetsLosingBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsLosingBidsListCall {
10979 c.urlParams_.Set("pageToken", pageToken)
10980 return c
10981 }
10982
10983
10984
10985
10986 func (c *BiddersAccountsFilterSetsLosingBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsLosingBidsListCall {
10987 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10988 return c
10989 }
10990
10991
10992
10993
10994 func (c *BiddersAccountsFilterSetsLosingBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsLosingBidsListCall {
10995 c.ifNoneMatch_ = entityTag
10996 return c
10997 }
10998
10999
11000 func (c *BiddersAccountsFilterSetsLosingBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsLosingBidsListCall {
11001 c.ctx_ = ctx
11002 return c
11003 }
11004
11005
11006
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
11036
11037
11038
11039
11040
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
11074
11075
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
11104
11105
11106
11107
11108
11109
11110
11111
11112
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
11120
11121
11122 func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) PageSize(pageSize int64) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
11123 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11124 return c
11125 }
11126
11127
11128
11129
11130
11131 func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) PageToken(pageToken string) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
11132 c.urlParams_.Set("pageToken", pageToken)
11133 return c
11134 }
11135
11136
11137
11138
11139 func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Fields(s ...googleapi.Field) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
11140 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11141 return c
11142 }
11143
11144
11145
11146
11147 func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) IfNoneMatch(entityTag string) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
11148 c.ifNoneMatch_ = entityTag
11149 return c
11150 }
11151
11152
11153 func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) Context(ctx context.Context) *BiddersAccountsFilterSetsNonBillableWinningBidsListCall {
11154 c.ctx_ = ctx
11155 return c
11156 }
11157
11158
11159
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
11189
11190
11191
11192
11193
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
11227
11228
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
11257
11258
11259
11260
11261
11262
11263
11264
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
11273
11274
11275
11276 func (c *BiddersFilterSetsCreateCall) IsTransient(isTransient bool) *BiddersFilterSetsCreateCall {
11277 c.urlParams_.Set("isTransient", fmt.Sprint(isTransient))
11278 return c
11279 }
11280
11281
11282
11283
11284 func (c *BiddersFilterSetsCreateCall) Fields(s ...googleapi.Field) *BiddersFilterSetsCreateCall {
11285 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11286 return c
11287 }
11288
11289
11290 func (c *BiddersFilterSetsCreateCall) Context(ctx context.Context) *BiddersFilterSetsCreateCall {
11291 c.ctx_ = ctx
11292 return c
11293 }
11294
11295
11296
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
11327
11328
11329
11330
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
11372
11373
11374
11375
11376
11377
11378
11379
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
11387
11388
11389 func (c *BiddersFilterSetsDeleteCall) Fields(s ...googleapi.Field) *BiddersFilterSetsDeleteCall {
11390 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11391 return c
11392 }
11393
11394
11395 func (c *BiddersFilterSetsDeleteCall) Context(ctx context.Context) *BiddersFilterSetsDeleteCall {
11396 c.ctx_ = ctx
11397 return c
11398 }
11399
11400
11401
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
11428
11429
11430
11431
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
11474
11475
11476
11477
11478
11479
11480
11481
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
11489
11490
11491 func (c *BiddersFilterSetsGetCall) Fields(s ...googleapi.Field) *BiddersFilterSetsGetCall {
11492 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11493 return c
11494 }
11495
11496
11497
11498
11499 func (c *BiddersFilterSetsGetCall) IfNoneMatch(entityTag string) *BiddersFilterSetsGetCall {
11500 c.ifNoneMatch_ = entityTag
11501 return c
11502 }
11503
11504
11505 func (c *BiddersFilterSetsGetCall) Context(ctx context.Context) *BiddersFilterSetsGetCall {
11506 c.ctx_ = ctx
11507 return c
11508 }
11509
11510
11511
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
11541
11542
11543
11544
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
11587
11588
11589
11590
11591
11592
11593
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
11601
11602
11603 func (c *BiddersFilterSetsListCall) PageSize(pageSize int64) *BiddersFilterSetsListCall {
11604 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11605 return c
11606 }
11607
11608
11609
11610
11611
11612 func (c *BiddersFilterSetsListCall) PageToken(pageToken string) *BiddersFilterSetsListCall {
11613 c.urlParams_.Set("pageToken", pageToken)
11614 return c
11615 }
11616
11617
11618
11619
11620 func (c *BiddersFilterSetsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsListCall {
11621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11622 return c
11623 }
11624
11625
11626
11627
11628 func (c *BiddersFilterSetsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsListCall {
11629 c.ifNoneMatch_ = entityTag
11630 return c
11631 }
11632
11633
11634 func (c *BiddersFilterSetsListCall) Context(ctx context.Context) *BiddersFilterSetsListCall {
11635 c.ctx_ = ctx
11636 return c
11637 }
11638
11639
11640
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
11670
11671
11672
11673
11674
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
11708
11709
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
11738
11739
11740
11741
11742
11743
11744
11745
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
11753
11754
11755 func (c *BiddersFilterSetsBidMetricsListCall) PageSize(pageSize int64) *BiddersFilterSetsBidMetricsListCall {
11756 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11757 return c
11758 }
11759
11760
11761
11762
11763
11764 func (c *BiddersFilterSetsBidMetricsListCall) PageToken(pageToken string) *BiddersFilterSetsBidMetricsListCall {
11765 c.urlParams_.Set("pageToken", pageToken)
11766 return c
11767 }
11768
11769
11770
11771
11772 func (c *BiddersFilterSetsBidMetricsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsBidMetricsListCall {
11773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11774 return c
11775 }
11776
11777
11778
11779
11780 func (c *BiddersFilterSetsBidMetricsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsBidMetricsListCall {
11781 c.ifNoneMatch_ = entityTag
11782 return c
11783 }
11784
11785
11786 func (c *BiddersFilterSetsBidMetricsListCall) Context(ctx context.Context) *BiddersFilterSetsBidMetricsListCall {
11787 c.ctx_ = ctx
11788 return c
11789 }
11790
11791
11792
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
11822
11823
11824
11825
11826
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
11860
11861
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
11890
11891
11892
11893
11894
11895
11896
11897
11898
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
11906
11907
11908 func (c *BiddersFilterSetsBidResponseErrorsListCall) PageSize(pageSize int64) *BiddersFilterSetsBidResponseErrorsListCall {
11909 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11910 return c
11911 }
11912
11913
11914
11915
11916
11917 func (c *BiddersFilterSetsBidResponseErrorsListCall) PageToken(pageToken string) *BiddersFilterSetsBidResponseErrorsListCall {
11918 c.urlParams_.Set("pageToken", pageToken)
11919 return c
11920 }
11921
11922
11923
11924
11925 func (c *BiddersFilterSetsBidResponseErrorsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsBidResponseErrorsListCall {
11926 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11927 return c
11928 }
11929
11930
11931
11932
11933 func (c *BiddersFilterSetsBidResponseErrorsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsBidResponseErrorsListCall {
11934 c.ifNoneMatch_ = entityTag
11935 return c
11936 }
11937
11938
11939 func (c *BiddersFilterSetsBidResponseErrorsListCall) Context(ctx context.Context) *BiddersFilterSetsBidResponseErrorsListCall {
11940 c.ctx_ = ctx
11941 return c
11942 }
11943
11944
11945
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
11975
11976
11977
11978
11979
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
12013
12014
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
12043
12044
12045
12046
12047
12048
12049
12050
12051
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
12059
12060
12061 func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
12062 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12063 return c
12064 }
12065
12066
12067
12068
12069
12070 func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) PageToken(pageToken string) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
12071 c.urlParams_.Set("pageToken", pageToken)
12072 return c
12073 }
12074
12075
12076
12077
12078 func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
12079 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12080 return c
12081 }
12082
12083
12084
12085
12086 func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
12087 c.ifNoneMatch_ = entityTag
12088 return c
12089 }
12090
12091
12092 func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) Context(ctx context.Context) *BiddersFilterSetsBidResponsesWithoutBidsListCall {
12093 c.ctx_ = ctx
12094 return c
12095 }
12096
12097
12098
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
12128
12129
12130
12131
12132
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
12166
12167
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
12196
12197
12198
12199
12200
12201
12202
12203
12204
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
12212
12213
12214 func (c *BiddersFilterSetsFilteredBidRequestsListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidRequestsListCall {
12215 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12216 return c
12217 }
12218
12219
12220
12221
12222
12223 func (c *BiddersFilterSetsFilteredBidRequestsListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidRequestsListCall {
12224 c.urlParams_.Set("pageToken", pageToken)
12225 return c
12226 }
12227
12228
12229
12230
12231 func (c *BiddersFilterSetsFilteredBidRequestsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidRequestsListCall {
12232 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12233 return c
12234 }
12235
12236
12237
12238
12239 func (c *BiddersFilterSetsFilteredBidRequestsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidRequestsListCall {
12240 c.ifNoneMatch_ = entityTag
12241 return c
12242 }
12243
12244
12245 func (c *BiddersFilterSetsFilteredBidRequestsListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidRequestsListCall {
12246 c.ctx_ = ctx
12247 return c
12248 }
12249
12250
12251
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
12281
12282
12283
12284
12285
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
12319
12320
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
12349
12350
12351
12352
12353
12354
12355
12356
12357
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
12365
12366
12367 func (c *BiddersFilterSetsFilteredBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidsListCall {
12368 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12369 return c
12370 }
12371
12372
12373
12374
12375
12376 func (c *BiddersFilterSetsFilteredBidsListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidsListCall {
12377 c.urlParams_.Set("pageToken", pageToken)
12378 return c
12379 }
12380
12381
12382
12383
12384 func (c *BiddersFilterSetsFilteredBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidsListCall {
12385 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12386 return c
12387 }
12388
12389
12390
12391
12392 func (c *BiddersFilterSetsFilteredBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidsListCall {
12393 c.ifNoneMatch_ = entityTag
12394 return c
12395 }
12396
12397
12398 func (c *BiddersFilterSetsFilteredBidsListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidsListCall {
12399 c.ctx_ = ctx
12400 return c
12401 }
12402
12403
12404
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
12434
12435
12436
12437
12438
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
12472
12473
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
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
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
12523
12524
12525 func (c *BiddersFilterSetsFilteredBidsCreativesListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidsCreativesListCall {
12526 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12527 return c
12528 }
12529
12530
12531
12532
12533
12534 func (c *BiddersFilterSetsFilteredBidsCreativesListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidsCreativesListCall {
12535 c.urlParams_.Set("pageToken", pageToken)
12536 return c
12537 }
12538
12539
12540
12541
12542 func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidsCreativesListCall {
12543 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12544 return c
12545 }
12546
12547
12548
12549
12550 func (c *BiddersFilterSetsFilteredBidsCreativesListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidsCreativesListCall {
12551 c.ifNoneMatch_ = entityTag
12552 return c
12553 }
12554
12555
12556 func (c *BiddersFilterSetsFilteredBidsCreativesListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidsCreativesListCall {
12557 c.ctx_ = ctx
12558 return c
12559 }
12560
12561
12562
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
12593
12594
12595
12596
12597
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
12631
12632
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
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
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
12684
12685
12686 func (c *BiddersFilterSetsFilteredBidsDetailsListCall) PageSize(pageSize int64) *BiddersFilterSetsFilteredBidsDetailsListCall {
12687 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12688 return c
12689 }
12690
12691
12692
12693
12694
12695 func (c *BiddersFilterSetsFilteredBidsDetailsListCall) PageToken(pageToken string) *BiddersFilterSetsFilteredBidsDetailsListCall {
12696 c.urlParams_.Set("pageToken", pageToken)
12697 return c
12698 }
12699
12700
12701
12702
12703 func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsFilteredBidsDetailsListCall {
12704 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12705 return c
12706 }
12707
12708
12709
12710
12711 func (c *BiddersFilterSetsFilteredBidsDetailsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsFilteredBidsDetailsListCall {
12712 c.ifNoneMatch_ = entityTag
12713 return c
12714 }
12715
12716
12717 func (c *BiddersFilterSetsFilteredBidsDetailsListCall) Context(ctx context.Context) *BiddersFilterSetsFilteredBidsDetailsListCall {
12718 c.ctx_ = ctx
12719 return c
12720 }
12721
12722
12723
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
12754
12755
12756
12757
12758
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
12792
12793
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
12822
12823
12824
12825
12826
12827
12828
12829
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
12837
12838
12839 func (c *BiddersFilterSetsImpressionMetricsListCall) PageSize(pageSize int64) *BiddersFilterSetsImpressionMetricsListCall {
12840 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12841 return c
12842 }
12843
12844
12845
12846
12847
12848 func (c *BiddersFilterSetsImpressionMetricsListCall) PageToken(pageToken string) *BiddersFilterSetsImpressionMetricsListCall {
12849 c.urlParams_.Set("pageToken", pageToken)
12850 return c
12851 }
12852
12853
12854
12855
12856 func (c *BiddersFilterSetsImpressionMetricsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsImpressionMetricsListCall {
12857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12858 return c
12859 }
12860
12861
12862
12863
12864 func (c *BiddersFilterSetsImpressionMetricsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsImpressionMetricsListCall {
12865 c.ifNoneMatch_ = entityTag
12866 return c
12867 }
12868
12869
12870 func (c *BiddersFilterSetsImpressionMetricsListCall) Context(ctx context.Context) *BiddersFilterSetsImpressionMetricsListCall {
12871 c.ctx_ = ctx
12872 return c
12873 }
12874
12875
12876
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
12906
12907
12908
12909
12910
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
12944
12945
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
12974
12975
12976
12977
12978
12979
12980
12981
12982
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
12990
12991
12992 func (c *BiddersFilterSetsLosingBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsLosingBidsListCall {
12993 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12994 return c
12995 }
12996
12997
12998
12999
13000
13001 func (c *BiddersFilterSetsLosingBidsListCall) PageToken(pageToken string) *BiddersFilterSetsLosingBidsListCall {
13002 c.urlParams_.Set("pageToken", pageToken)
13003 return c
13004 }
13005
13006
13007
13008
13009 func (c *BiddersFilterSetsLosingBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsLosingBidsListCall {
13010 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13011 return c
13012 }
13013
13014
13015
13016
13017 func (c *BiddersFilterSetsLosingBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsLosingBidsListCall {
13018 c.ifNoneMatch_ = entityTag
13019 return c
13020 }
13021
13022
13023 func (c *BiddersFilterSetsLosingBidsListCall) Context(ctx context.Context) *BiddersFilterSetsLosingBidsListCall {
13024 c.ctx_ = ctx
13025 return c
13026 }
13027
13028
13029
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
13059
13060
13061
13062
13063
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
13097
13098
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
13127
13128
13129
13130
13131
13132
13133
13134
13135
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
13143
13144
13145 func (c *BiddersFilterSetsNonBillableWinningBidsListCall) PageSize(pageSize int64) *BiddersFilterSetsNonBillableWinningBidsListCall {
13146 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13147 return c
13148 }
13149
13150
13151
13152
13153
13154 func (c *BiddersFilterSetsNonBillableWinningBidsListCall) PageToken(pageToken string) *BiddersFilterSetsNonBillableWinningBidsListCall {
13155 c.urlParams_.Set("pageToken", pageToken)
13156 return c
13157 }
13158
13159
13160
13161
13162 func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Fields(s ...googleapi.Field) *BiddersFilterSetsNonBillableWinningBidsListCall {
13163 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13164 return c
13165 }
13166
13167
13168
13169
13170 func (c *BiddersFilterSetsNonBillableWinningBidsListCall) IfNoneMatch(entityTag string) *BiddersFilterSetsNonBillableWinningBidsListCall {
13171 c.ifNoneMatch_ = entityTag
13172 return c
13173 }
13174
13175
13176 func (c *BiddersFilterSetsNonBillableWinningBidsListCall) Context(ctx context.Context) *BiddersFilterSetsNonBillableWinningBidsListCall {
13177 c.ctx_ = ctx
13178 return c
13179 }
13180
13181
13182
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
13212
13213
13214
13215
13216
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
13250
13251
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
13280
13281
13282
13283
13284
13285
13286
13287
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
13296
13297
13298
13299 func (c *BuyersFilterSetsCreateCall) IsTransient(isTransient bool) *BuyersFilterSetsCreateCall {
13300 c.urlParams_.Set("isTransient", fmt.Sprint(isTransient))
13301 return c
13302 }
13303
13304
13305
13306
13307 func (c *BuyersFilterSetsCreateCall) Fields(s ...googleapi.Field) *BuyersFilterSetsCreateCall {
13308 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13309 return c
13310 }
13311
13312
13313 func (c *BuyersFilterSetsCreateCall) Context(ctx context.Context) *BuyersFilterSetsCreateCall {
13314 c.ctx_ = ctx
13315 return c
13316 }
13317
13318
13319
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
13350
13351
13352
13353
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
13395
13396
13397
13398
13399
13400
13401
13402
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
13410
13411
13412 func (c *BuyersFilterSetsDeleteCall) Fields(s ...googleapi.Field) *BuyersFilterSetsDeleteCall {
13413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13414 return c
13415 }
13416
13417
13418 func (c *BuyersFilterSetsDeleteCall) Context(ctx context.Context) *BuyersFilterSetsDeleteCall {
13419 c.ctx_ = ctx
13420 return c
13421 }
13422
13423
13424
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
13451
13452
13453
13454
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
13497
13498
13499
13500
13501
13502
13503
13504
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
13512
13513
13514 func (c *BuyersFilterSetsGetCall) Fields(s ...googleapi.Field) *BuyersFilterSetsGetCall {
13515 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13516 return c
13517 }
13518
13519
13520
13521
13522 func (c *BuyersFilterSetsGetCall) IfNoneMatch(entityTag string) *BuyersFilterSetsGetCall {
13523 c.ifNoneMatch_ = entityTag
13524 return c
13525 }
13526
13527
13528 func (c *BuyersFilterSetsGetCall) Context(ctx context.Context) *BuyersFilterSetsGetCall {
13529 c.ctx_ = ctx
13530 return c
13531 }
13532
13533
13534
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
13564
13565
13566
13567
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
13610
13611
13612
13613
13614
13615
13616
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
13624
13625
13626 func (c *BuyersFilterSetsListCall) PageSize(pageSize int64) *BuyersFilterSetsListCall {
13627 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13628 return c
13629 }
13630
13631
13632
13633
13634
13635 func (c *BuyersFilterSetsListCall) PageToken(pageToken string) *BuyersFilterSetsListCall {
13636 c.urlParams_.Set("pageToken", pageToken)
13637 return c
13638 }
13639
13640
13641
13642
13643 func (c *BuyersFilterSetsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsListCall {
13644 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13645 return c
13646 }
13647
13648
13649
13650
13651 func (c *BuyersFilterSetsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsListCall {
13652 c.ifNoneMatch_ = entityTag
13653 return c
13654 }
13655
13656
13657 func (c *BuyersFilterSetsListCall) Context(ctx context.Context) *BuyersFilterSetsListCall {
13658 c.ctx_ = ctx
13659 return c
13660 }
13661
13662
13663
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
13693
13694
13695
13696
13697
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
13731
13732
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
13761
13762
13763
13764
13765
13766
13767
13768
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
13776
13777
13778 func (c *BuyersFilterSetsBidMetricsListCall) PageSize(pageSize int64) *BuyersFilterSetsBidMetricsListCall {
13779 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13780 return c
13781 }
13782
13783
13784
13785
13786
13787 func (c *BuyersFilterSetsBidMetricsListCall) PageToken(pageToken string) *BuyersFilterSetsBidMetricsListCall {
13788 c.urlParams_.Set("pageToken", pageToken)
13789 return c
13790 }
13791
13792
13793
13794
13795 func (c *BuyersFilterSetsBidMetricsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsBidMetricsListCall {
13796 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13797 return c
13798 }
13799
13800
13801
13802
13803 func (c *BuyersFilterSetsBidMetricsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsBidMetricsListCall {
13804 c.ifNoneMatch_ = entityTag
13805 return c
13806 }
13807
13808
13809 func (c *BuyersFilterSetsBidMetricsListCall) Context(ctx context.Context) *BuyersFilterSetsBidMetricsListCall {
13810 c.ctx_ = ctx
13811 return c
13812 }
13813
13814
13815
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
13845
13846
13847
13848
13849
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
13883
13884
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
13913
13914
13915
13916
13917
13918
13919
13920
13921
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
13929
13930
13931 func (c *BuyersFilterSetsBidResponseErrorsListCall) PageSize(pageSize int64) *BuyersFilterSetsBidResponseErrorsListCall {
13932 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13933 return c
13934 }
13935
13936
13937
13938
13939
13940 func (c *BuyersFilterSetsBidResponseErrorsListCall) PageToken(pageToken string) *BuyersFilterSetsBidResponseErrorsListCall {
13941 c.urlParams_.Set("pageToken", pageToken)
13942 return c
13943 }
13944
13945
13946
13947
13948 func (c *BuyersFilterSetsBidResponseErrorsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsBidResponseErrorsListCall {
13949 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13950 return c
13951 }
13952
13953
13954
13955
13956 func (c *BuyersFilterSetsBidResponseErrorsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsBidResponseErrorsListCall {
13957 c.ifNoneMatch_ = entityTag
13958 return c
13959 }
13960
13961
13962 func (c *BuyersFilterSetsBidResponseErrorsListCall) Context(ctx context.Context) *BuyersFilterSetsBidResponseErrorsListCall {
13963 c.ctx_ = ctx
13964 return c
13965 }
13966
13967
13968
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
13998
13999
14000
14001
14002
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
14036
14037
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
14066
14067
14068
14069
14070
14071
14072
14073
14074
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
14082
14083
14084 func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
14085 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14086 return c
14087 }
14088
14089
14090
14091
14092
14093 func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) PageToken(pageToken string) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
14094 c.urlParams_.Set("pageToken", pageToken)
14095 return c
14096 }
14097
14098
14099
14100
14101 func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
14102 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14103 return c
14104 }
14105
14106
14107
14108
14109 func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
14110 c.ifNoneMatch_ = entityTag
14111 return c
14112 }
14113
14114
14115 func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) Context(ctx context.Context) *BuyersFilterSetsBidResponsesWithoutBidsListCall {
14116 c.ctx_ = ctx
14117 return c
14118 }
14119
14120
14121
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
14151
14152
14153
14154
14155
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
14189
14190
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
14219
14220
14221
14222
14223
14224
14225
14226
14227
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
14235
14236
14237 func (c *BuyersFilterSetsFilteredBidRequestsListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidRequestsListCall {
14238 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14239 return c
14240 }
14241
14242
14243
14244
14245
14246 func (c *BuyersFilterSetsFilteredBidRequestsListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidRequestsListCall {
14247 c.urlParams_.Set("pageToken", pageToken)
14248 return c
14249 }
14250
14251
14252
14253
14254 func (c *BuyersFilterSetsFilteredBidRequestsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidRequestsListCall {
14255 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14256 return c
14257 }
14258
14259
14260
14261
14262 func (c *BuyersFilterSetsFilteredBidRequestsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidRequestsListCall {
14263 c.ifNoneMatch_ = entityTag
14264 return c
14265 }
14266
14267
14268 func (c *BuyersFilterSetsFilteredBidRequestsListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidRequestsListCall {
14269 c.ctx_ = ctx
14270 return c
14271 }
14272
14273
14274
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
14304
14305
14306
14307
14308
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
14342
14343
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
14372
14373
14374
14375
14376
14377
14378
14379
14380
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
14388
14389
14390 func (c *BuyersFilterSetsFilteredBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidsListCall {
14391 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14392 return c
14393 }
14394
14395
14396
14397
14398
14399 func (c *BuyersFilterSetsFilteredBidsListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidsListCall {
14400 c.urlParams_.Set("pageToken", pageToken)
14401 return c
14402 }
14403
14404
14405
14406
14407 func (c *BuyersFilterSetsFilteredBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidsListCall {
14408 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14409 return c
14410 }
14411
14412
14413
14414
14415 func (c *BuyersFilterSetsFilteredBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidsListCall {
14416 c.ifNoneMatch_ = entityTag
14417 return c
14418 }
14419
14420
14421 func (c *BuyersFilterSetsFilteredBidsListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidsListCall {
14422 c.ctx_ = ctx
14423 return c
14424 }
14425
14426
14427
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
14457
14458
14459
14460
14461
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
14495
14496
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
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
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
14546
14547
14548 func (c *BuyersFilterSetsFilteredBidsCreativesListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidsCreativesListCall {
14549 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14550 return c
14551 }
14552
14553
14554
14555
14556
14557 func (c *BuyersFilterSetsFilteredBidsCreativesListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidsCreativesListCall {
14558 c.urlParams_.Set("pageToken", pageToken)
14559 return c
14560 }
14561
14562
14563
14564
14565 func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidsCreativesListCall {
14566 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14567 return c
14568 }
14569
14570
14571
14572
14573 func (c *BuyersFilterSetsFilteredBidsCreativesListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidsCreativesListCall {
14574 c.ifNoneMatch_ = entityTag
14575 return c
14576 }
14577
14578
14579 func (c *BuyersFilterSetsFilteredBidsCreativesListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidsCreativesListCall {
14580 c.ctx_ = ctx
14581 return c
14582 }
14583
14584
14585
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
14616
14617
14618
14619
14620
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
14654
14655
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
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
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
14707
14708
14709 func (c *BuyersFilterSetsFilteredBidsDetailsListCall) PageSize(pageSize int64) *BuyersFilterSetsFilteredBidsDetailsListCall {
14710 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14711 return c
14712 }
14713
14714
14715
14716
14717
14718 func (c *BuyersFilterSetsFilteredBidsDetailsListCall) PageToken(pageToken string) *BuyersFilterSetsFilteredBidsDetailsListCall {
14719 c.urlParams_.Set("pageToken", pageToken)
14720 return c
14721 }
14722
14723
14724
14725
14726 func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsFilteredBidsDetailsListCall {
14727 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14728 return c
14729 }
14730
14731
14732
14733
14734 func (c *BuyersFilterSetsFilteredBidsDetailsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsFilteredBidsDetailsListCall {
14735 c.ifNoneMatch_ = entityTag
14736 return c
14737 }
14738
14739
14740 func (c *BuyersFilterSetsFilteredBidsDetailsListCall) Context(ctx context.Context) *BuyersFilterSetsFilteredBidsDetailsListCall {
14741 c.ctx_ = ctx
14742 return c
14743 }
14744
14745
14746
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
14777
14778
14779
14780
14781
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
14815
14816
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
14845
14846
14847
14848
14849
14850
14851
14852
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
14860
14861
14862 func (c *BuyersFilterSetsImpressionMetricsListCall) PageSize(pageSize int64) *BuyersFilterSetsImpressionMetricsListCall {
14863 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14864 return c
14865 }
14866
14867
14868
14869
14870
14871 func (c *BuyersFilterSetsImpressionMetricsListCall) PageToken(pageToken string) *BuyersFilterSetsImpressionMetricsListCall {
14872 c.urlParams_.Set("pageToken", pageToken)
14873 return c
14874 }
14875
14876
14877
14878
14879 func (c *BuyersFilterSetsImpressionMetricsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsImpressionMetricsListCall {
14880 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14881 return c
14882 }
14883
14884
14885
14886
14887 func (c *BuyersFilterSetsImpressionMetricsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsImpressionMetricsListCall {
14888 c.ifNoneMatch_ = entityTag
14889 return c
14890 }
14891
14892
14893 func (c *BuyersFilterSetsImpressionMetricsListCall) Context(ctx context.Context) *BuyersFilterSetsImpressionMetricsListCall {
14894 c.ctx_ = ctx
14895 return c
14896 }
14897
14898
14899
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
14929
14930
14931
14932
14933
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
14967
14968
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
14997
14998
14999
15000
15001
15002
15003
15004
15005
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
15013
15014
15015 func (c *BuyersFilterSetsLosingBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsLosingBidsListCall {
15016 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15017 return c
15018 }
15019
15020
15021
15022
15023
15024 func (c *BuyersFilterSetsLosingBidsListCall) PageToken(pageToken string) *BuyersFilterSetsLosingBidsListCall {
15025 c.urlParams_.Set("pageToken", pageToken)
15026 return c
15027 }
15028
15029
15030
15031
15032 func (c *BuyersFilterSetsLosingBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsLosingBidsListCall {
15033 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15034 return c
15035 }
15036
15037
15038
15039
15040 func (c *BuyersFilterSetsLosingBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsLosingBidsListCall {
15041 c.ifNoneMatch_ = entityTag
15042 return c
15043 }
15044
15045
15046 func (c *BuyersFilterSetsLosingBidsListCall) Context(ctx context.Context) *BuyersFilterSetsLosingBidsListCall {
15047 c.ctx_ = ctx
15048 return c
15049 }
15050
15051
15052
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
15082
15083
15084
15085
15086
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
15120
15121
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
15150
15151
15152
15153
15154
15155
15156
15157
15158
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
15166
15167
15168 func (c *BuyersFilterSetsNonBillableWinningBidsListCall) PageSize(pageSize int64) *BuyersFilterSetsNonBillableWinningBidsListCall {
15169 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15170 return c
15171 }
15172
15173
15174
15175
15176
15177 func (c *BuyersFilterSetsNonBillableWinningBidsListCall) PageToken(pageToken string) *BuyersFilterSetsNonBillableWinningBidsListCall {
15178 c.urlParams_.Set("pageToken", pageToken)
15179 return c
15180 }
15181
15182
15183
15184
15185 func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Fields(s ...googleapi.Field) *BuyersFilterSetsNonBillableWinningBidsListCall {
15186 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15187 return c
15188 }
15189
15190
15191
15192
15193 func (c *BuyersFilterSetsNonBillableWinningBidsListCall) IfNoneMatch(entityTag string) *BuyersFilterSetsNonBillableWinningBidsListCall {
15194 c.ifNoneMatch_ = entityTag
15195 return c
15196 }
15197
15198
15199 func (c *BuyersFilterSetsNonBillableWinningBidsListCall) Context(ctx context.Context) *BuyersFilterSetsNonBillableWinningBidsListCall {
15200 c.ctx_ = ctx
15201 return c
15202 }
15203
15204
15205
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
15235
15236
15237
15238
15239
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
15273
15274
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