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 package dfareporting
43
44 import (
45 "bytes"
46 "context"
47 "encoding/json"
48 "errors"
49 "fmt"
50 "io"
51 "net/http"
52 "net/url"
53 "strconv"
54 "strings"
55
56 googleapi "google.golang.org/api/googleapi"
57 gensupport "google.golang.org/api/internal/gensupport"
58 option "google.golang.org/api/option"
59 htransport "google.golang.org/api/transport/http"
60 )
61
62
63
64 var _ = bytes.NewBuffer
65 var _ = strconv.Itoa
66 var _ = fmt.Sprintf
67 var _ = json.NewDecoder
68 var _ = io.Copy
69 var _ = url.Parse
70 var _ = gensupport.MarshalJSON
71 var _ = googleapi.Version
72 var _ = errors.New
73 var _ = strings.Replace
74 var _ = context.Canceled
75
76 const apiId = "dfareporting:v2.7"
77 const apiName = "dfareporting"
78 const apiVersion = "v2.7"
79 const basePath = "https://www.googleapis.com/dfareporting/v2.7/"
80
81
82 const (
83
84 DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"
85
86
87 DfareportingScope = "https://www.googleapis.com/auth/dfareporting"
88
89
90
91 DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"
92 )
93
94
95 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
96 scopesOption := option.WithScopes(
97 "https://www.googleapis.com/auth/ddmconversions",
98 "https://www.googleapis.com/auth/dfareporting",
99 "https://www.googleapis.com/auth/dfatrafficking",
100 )
101
102 opts = append([]option.ClientOption{scopesOption}, opts...)
103 client, endpoint, err := htransport.NewClient(ctx, opts...)
104 if err != nil {
105 return nil, err
106 }
107 s, err := New(client)
108 if err != nil {
109 return nil, err
110 }
111 if endpoint != "" {
112 s.BasePath = endpoint
113 }
114 return s, nil
115 }
116
117
118
119
120
121
122 func New(client *http.Client) (*Service, error) {
123 if client == nil {
124 return nil, errors.New("client is nil")
125 }
126 s := &Service{client: client, BasePath: basePath}
127 s.AccountActiveAdSummaries = NewAccountActiveAdSummariesService(s)
128 s.AccountPermissionGroups = NewAccountPermissionGroupsService(s)
129 s.AccountPermissions = NewAccountPermissionsService(s)
130 s.AccountUserProfiles = NewAccountUserProfilesService(s)
131 s.Accounts = NewAccountsService(s)
132 s.Ads = NewAdsService(s)
133 s.AdvertiserGroups = NewAdvertiserGroupsService(s)
134 s.Advertisers = NewAdvertisersService(s)
135 s.Browsers = NewBrowsersService(s)
136 s.CampaignCreativeAssociations = NewCampaignCreativeAssociationsService(s)
137 s.Campaigns = NewCampaignsService(s)
138 s.ChangeLogs = NewChangeLogsService(s)
139 s.Cities = NewCitiesService(s)
140 s.ConnectionTypes = NewConnectionTypesService(s)
141 s.ContentCategories = NewContentCategoriesService(s)
142 s.Conversions = NewConversionsService(s)
143 s.Countries = NewCountriesService(s)
144 s.CreativeAssets = NewCreativeAssetsService(s)
145 s.CreativeFieldValues = NewCreativeFieldValuesService(s)
146 s.CreativeFields = NewCreativeFieldsService(s)
147 s.CreativeGroups = NewCreativeGroupsService(s)
148 s.Creatives = NewCreativesService(s)
149 s.DimensionValues = NewDimensionValuesService(s)
150 s.DirectorySiteContacts = NewDirectorySiteContactsService(s)
151 s.DirectorySites = NewDirectorySitesService(s)
152 s.DynamicTargetingKeys = NewDynamicTargetingKeysService(s)
153 s.EventTags = NewEventTagsService(s)
154 s.Files = NewFilesService(s)
155 s.FloodlightActivities = NewFloodlightActivitiesService(s)
156 s.FloodlightActivityGroups = NewFloodlightActivityGroupsService(s)
157 s.FloodlightConfigurations = NewFloodlightConfigurationsService(s)
158 s.InventoryItems = NewInventoryItemsService(s)
159 s.LandingPages = NewLandingPagesService(s)
160 s.Languages = NewLanguagesService(s)
161 s.Metros = NewMetrosService(s)
162 s.MobileCarriers = NewMobileCarriersService(s)
163 s.OperatingSystemVersions = NewOperatingSystemVersionsService(s)
164 s.OperatingSystems = NewOperatingSystemsService(s)
165 s.OrderDocuments = NewOrderDocumentsService(s)
166 s.Orders = NewOrdersService(s)
167 s.PlacementGroups = NewPlacementGroupsService(s)
168 s.PlacementStrategies = NewPlacementStrategiesService(s)
169 s.Placements = NewPlacementsService(s)
170 s.PlatformTypes = NewPlatformTypesService(s)
171 s.PostalCodes = NewPostalCodesService(s)
172 s.Projects = NewProjectsService(s)
173 s.Regions = NewRegionsService(s)
174 s.RemarketingListShares = NewRemarketingListSharesService(s)
175 s.RemarketingLists = NewRemarketingListsService(s)
176 s.Reports = NewReportsService(s)
177 s.Sites = NewSitesService(s)
178 s.Sizes = NewSizesService(s)
179 s.Subaccounts = NewSubaccountsService(s)
180 s.TargetableRemarketingLists = NewTargetableRemarketingListsService(s)
181 s.TargetingTemplates = NewTargetingTemplatesService(s)
182 s.UserProfiles = NewUserProfilesService(s)
183 s.UserRolePermissionGroups = NewUserRolePermissionGroupsService(s)
184 s.UserRolePermissions = NewUserRolePermissionsService(s)
185 s.UserRoles = NewUserRolesService(s)
186 s.VideoFormats = NewVideoFormatsService(s)
187 return s, nil
188 }
189
190 type Service struct {
191 client *http.Client
192 BasePath string
193 UserAgent string
194
195 AccountActiveAdSummaries *AccountActiveAdSummariesService
196
197 AccountPermissionGroups *AccountPermissionGroupsService
198
199 AccountPermissions *AccountPermissionsService
200
201 AccountUserProfiles *AccountUserProfilesService
202
203 Accounts *AccountsService
204
205 Ads *AdsService
206
207 AdvertiserGroups *AdvertiserGroupsService
208
209 Advertisers *AdvertisersService
210
211 Browsers *BrowsersService
212
213 CampaignCreativeAssociations *CampaignCreativeAssociationsService
214
215 Campaigns *CampaignsService
216
217 ChangeLogs *ChangeLogsService
218
219 Cities *CitiesService
220
221 ConnectionTypes *ConnectionTypesService
222
223 ContentCategories *ContentCategoriesService
224
225 Conversions *ConversionsService
226
227 Countries *CountriesService
228
229 CreativeAssets *CreativeAssetsService
230
231 CreativeFieldValues *CreativeFieldValuesService
232
233 CreativeFields *CreativeFieldsService
234
235 CreativeGroups *CreativeGroupsService
236
237 Creatives *CreativesService
238
239 DimensionValues *DimensionValuesService
240
241 DirectorySiteContacts *DirectorySiteContactsService
242
243 DirectorySites *DirectorySitesService
244
245 DynamicTargetingKeys *DynamicTargetingKeysService
246
247 EventTags *EventTagsService
248
249 Files *FilesService
250
251 FloodlightActivities *FloodlightActivitiesService
252
253 FloodlightActivityGroups *FloodlightActivityGroupsService
254
255 FloodlightConfigurations *FloodlightConfigurationsService
256
257 InventoryItems *InventoryItemsService
258
259 LandingPages *LandingPagesService
260
261 Languages *LanguagesService
262
263 Metros *MetrosService
264
265 MobileCarriers *MobileCarriersService
266
267 OperatingSystemVersions *OperatingSystemVersionsService
268
269 OperatingSystems *OperatingSystemsService
270
271 OrderDocuments *OrderDocumentsService
272
273 Orders *OrdersService
274
275 PlacementGroups *PlacementGroupsService
276
277 PlacementStrategies *PlacementStrategiesService
278
279 Placements *PlacementsService
280
281 PlatformTypes *PlatformTypesService
282
283 PostalCodes *PostalCodesService
284
285 Projects *ProjectsService
286
287 Regions *RegionsService
288
289 RemarketingListShares *RemarketingListSharesService
290
291 RemarketingLists *RemarketingListsService
292
293 Reports *ReportsService
294
295 Sites *SitesService
296
297 Sizes *SizesService
298
299 Subaccounts *SubaccountsService
300
301 TargetableRemarketingLists *TargetableRemarketingListsService
302
303 TargetingTemplates *TargetingTemplatesService
304
305 UserProfiles *UserProfilesService
306
307 UserRolePermissionGroups *UserRolePermissionGroupsService
308
309 UserRolePermissions *UserRolePermissionsService
310
311 UserRoles *UserRolesService
312
313 VideoFormats *VideoFormatsService
314 }
315
316 func (s *Service) userAgent() string {
317 if s.UserAgent == "" {
318 return googleapi.UserAgent
319 }
320 return googleapi.UserAgent + " " + s.UserAgent
321 }
322
323 func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService {
324 rs := &AccountActiveAdSummariesService{s: s}
325 return rs
326 }
327
328 type AccountActiveAdSummariesService struct {
329 s *Service
330 }
331
332 func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService {
333 rs := &AccountPermissionGroupsService{s: s}
334 return rs
335 }
336
337 type AccountPermissionGroupsService struct {
338 s *Service
339 }
340
341 func NewAccountPermissionsService(s *Service) *AccountPermissionsService {
342 rs := &AccountPermissionsService{s: s}
343 return rs
344 }
345
346 type AccountPermissionsService struct {
347 s *Service
348 }
349
350 func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService {
351 rs := &AccountUserProfilesService{s: s}
352 return rs
353 }
354
355 type AccountUserProfilesService struct {
356 s *Service
357 }
358
359 func NewAccountsService(s *Service) *AccountsService {
360 rs := &AccountsService{s: s}
361 return rs
362 }
363
364 type AccountsService struct {
365 s *Service
366 }
367
368 func NewAdsService(s *Service) *AdsService {
369 rs := &AdsService{s: s}
370 return rs
371 }
372
373 type AdsService struct {
374 s *Service
375 }
376
377 func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService {
378 rs := &AdvertiserGroupsService{s: s}
379 return rs
380 }
381
382 type AdvertiserGroupsService struct {
383 s *Service
384 }
385
386 func NewAdvertisersService(s *Service) *AdvertisersService {
387 rs := &AdvertisersService{s: s}
388 return rs
389 }
390
391 type AdvertisersService struct {
392 s *Service
393 }
394
395 func NewBrowsersService(s *Service) *BrowsersService {
396 rs := &BrowsersService{s: s}
397 return rs
398 }
399
400 type BrowsersService struct {
401 s *Service
402 }
403
404 func NewCampaignCreativeAssociationsService(s *Service) *CampaignCreativeAssociationsService {
405 rs := &CampaignCreativeAssociationsService{s: s}
406 return rs
407 }
408
409 type CampaignCreativeAssociationsService struct {
410 s *Service
411 }
412
413 func NewCampaignsService(s *Service) *CampaignsService {
414 rs := &CampaignsService{s: s}
415 return rs
416 }
417
418 type CampaignsService struct {
419 s *Service
420 }
421
422 func NewChangeLogsService(s *Service) *ChangeLogsService {
423 rs := &ChangeLogsService{s: s}
424 return rs
425 }
426
427 type ChangeLogsService struct {
428 s *Service
429 }
430
431 func NewCitiesService(s *Service) *CitiesService {
432 rs := &CitiesService{s: s}
433 return rs
434 }
435
436 type CitiesService struct {
437 s *Service
438 }
439
440 func NewConnectionTypesService(s *Service) *ConnectionTypesService {
441 rs := &ConnectionTypesService{s: s}
442 return rs
443 }
444
445 type ConnectionTypesService struct {
446 s *Service
447 }
448
449 func NewContentCategoriesService(s *Service) *ContentCategoriesService {
450 rs := &ContentCategoriesService{s: s}
451 return rs
452 }
453
454 type ContentCategoriesService struct {
455 s *Service
456 }
457
458 func NewConversionsService(s *Service) *ConversionsService {
459 rs := &ConversionsService{s: s}
460 return rs
461 }
462
463 type ConversionsService struct {
464 s *Service
465 }
466
467 func NewCountriesService(s *Service) *CountriesService {
468 rs := &CountriesService{s: s}
469 return rs
470 }
471
472 type CountriesService struct {
473 s *Service
474 }
475
476 func NewCreativeAssetsService(s *Service) *CreativeAssetsService {
477 rs := &CreativeAssetsService{s: s}
478 return rs
479 }
480
481 type CreativeAssetsService struct {
482 s *Service
483 }
484
485 func NewCreativeFieldValuesService(s *Service) *CreativeFieldValuesService {
486 rs := &CreativeFieldValuesService{s: s}
487 return rs
488 }
489
490 type CreativeFieldValuesService struct {
491 s *Service
492 }
493
494 func NewCreativeFieldsService(s *Service) *CreativeFieldsService {
495 rs := &CreativeFieldsService{s: s}
496 return rs
497 }
498
499 type CreativeFieldsService struct {
500 s *Service
501 }
502
503 func NewCreativeGroupsService(s *Service) *CreativeGroupsService {
504 rs := &CreativeGroupsService{s: s}
505 return rs
506 }
507
508 type CreativeGroupsService struct {
509 s *Service
510 }
511
512 func NewCreativesService(s *Service) *CreativesService {
513 rs := &CreativesService{s: s}
514 return rs
515 }
516
517 type CreativesService struct {
518 s *Service
519 }
520
521 func NewDimensionValuesService(s *Service) *DimensionValuesService {
522 rs := &DimensionValuesService{s: s}
523 return rs
524 }
525
526 type DimensionValuesService struct {
527 s *Service
528 }
529
530 func NewDirectorySiteContactsService(s *Service) *DirectorySiteContactsService {
531 rs := &DirectorySiteContactsService{s: s}
532 return rs
533 }
534
535 type DirectorySiteContactsService struct {
536 s *Service
537 }
538
539 func NewDirectorySitesService(s *Service) *DirectorySitesService {
540 rs := &DirectorySitesService{s: s}
541 return rs
542 }
543
544 type DirectorySitesService struct {
545 s *Service
546 }
547
548 func NewDynamicTargetingKeysService(s *Service) *DynamicTargetingKeysService {
549 rs := &DynamicTargetingKeysService{s: s}
550 return rs
551 }
552
553 type DynamicTargetingKeysService struct {
554 s *Service
555 }
556
557 func NewEventTagsService(s *Service) *EventTagsService {
558 rs := &EventTagsService{s: s}
559 return rs
560 }
561
562 type EventTagsService struct {
563 s *Service
564 }
565
566 func NewFilesService(s *Service) *FilesService {
567 rs := &FilesService{s: s}
568 return rs
569 }
570
571 type FilesService struct {
572 s *Service
573 }
574
575 func NewFloodlightActivitiesService(s *Service) *FloodlightActivitiesService {
576 rs := &FloodlightActivitiesService{s: s}
577 return rs
578 }
579
580 type FloodlightActivitiesService struct {
581 s *Service
582 }
583
584 func NewFloodlightActivityGroupsService(s *Service) *FloodlightActivityGroupsService {
585 rs := &FloodlightActivityGroupsService{s: s}
586 return rs
587 }
588
589 type FloodlightActivityGroupsService struct {
590 s *Service
591 }
592
593 func NewFloodlightConfigurationsService(s *Service) *FloodlightConfigurationsService {
594 rs := &FloodlightConfigurationsService{s: s}
595 return rs
596 }
597
598 type FloodlightConfigurationsService struct {
599 s *Service
600 }
601
602 func NewInventoryItemsService(s *Service) *InventoryItemsService {
603 rs := &InventoryItemsService{s: s}
604 return rs
605 }
606
607 type InventoryItemsService struct {
608 s *Service
609 }
610
611 func NewLandingPagesService(s *Service) *LandingPagesService {
612 rs := &LandingPagesService{s: s}
613 return rs
614 }
615
616 type LandingPagesService struct {
617 s *Service
618 }
619
620 func NewLanguagesService(s *Service) *LanguagesService {
621 rs := &LanguagesService{s: s}
622 return rs
623 }
624
625 type LanguagesService struct {
626 s *Service
627 }
628
629 func NewMetrosService(s *Service) *MetrosService {
630 rs := &MetrosService{s: s}
631 return rs
632 }
633
634 type MetrosService struct {
635 s *Service
636 }
637
638 func NewMobileCarriersService(s *Service) *MobileCarriersService {
639 rs := &MobileCarriersService{s: s}
640 return rs
641 }
642
643 type MobileCarriersService struct {
644 s *Service
645 }
646
647 func NewOperatingSystemVersionsService(s *Service) *OperatingSystemVersionsService {
648 rs := &OperatingSystemVersionsService{s: s}
649 return rs
650 }
651
652 type OperatingSystemVersionsService struct {
653 s *Service
654 }
655
656 func NewOperatingSystemsService(s *Service) *OperatingSystemsService {
657 rs := &OperatingSystemsService{s: s}
658 return rs
659 }
660
661 type OperatingSystemsService struct {
662 s *Service
663 }
664
665 func NewOrderDocumentsService(s *Service) *OrderDocumentsService {
666 rs := &OrderDocumentsService{s: s}
667 return rs
668 }
669
670 type OrderDocumentsService struct {
671 s *Service
672 }
673
674 func NewOrdersService(s *Service) *OrdersService {
675 rs := &OrdersService{s: s}
676 return rs
677 }
678
679 type OrdersService struct {
680 s *Service
681 }
682
683 func NewPlacementGroupsService(s *Service) *PlacementGroupsService {
684 rs := &PlacementGroupsService{s: s}
685 return rs
686 }
687
688 type PlacementGroupsService struct {
689 s *Service
690 }
691
692 func NewPlacementStrategiesService(s *Service) *PlacementStrategiesService {
693 rs := &PlacementStrategiesService{s: s}
694 return rs
695 }
696
697 type PlacementStrategiesService struct {
698 s *Service
699 }
700
701 func NewPlacementsService(s *Service) *PlacementsService {
702 rs := &PlacementsService{s: s}
703 return rs
704 }
705
706 type PlacementsService struct {
707 s *Service
708 }
709
710 func NewPlatformTypesService(s *Service) *PlatformTypesService {
711 rs := &PlatformTypesService{s: s}
712 return rs
713 }
714
715 type PlatformTypesService struct {
716 s *Service
717 }
718
719 func NewPostalCodesService(s *Service) *PostalCodesService {
720 rs := &PostalCodesService{s: s}
721 return rs
722 }
723
724 type PostalCodesService struct {
725 s *Service
726 }
727
728 func NewProjectsService(s *Service) *ProjectsService {
729 rs := &ProjectsService{s: s}
730 return rs
731 }
732
733 type ProjectsService struct {
734 s *Service
735 }
736
737 func NewRegionsService(s *Service) *RegionsService {
738 rs := &RegionsService{s: s}
739 return rs
740 }
741
742 type RegionsService struct {
743 s *Service
744 }
745
746 func NewRemarketingListSharesService(s *Service) *RemarketingListSharesService {
747 rs := &RemarketingListSharesService{s: s}
748 return rs
749 }
750
751 type RemarketingListSharesService struct {
752 s *Service
753 }
754
755 func NewRemarketingListsService(s *Service) *RemarketingListsService {
756 rs := &RemarketingListsService{s: s}
757 return rs
758 }
759
760 type RemarketingListsService struct {
761 s *Service
762 }
763
764 func NewReportsService(s *Service) *ReportsService {
765 rs := &ReportsService{s: s}
766 rs.CompatibleFields = NewReportsCompatibleFieldsService(s)
767 rs.Files = NewReportsFilesService(s)
768 return rs
769 }
770
771 type ReportsService struct {
772 s *Service
773
774 CompatibleFields *ReportsCompatibleFieldsService
775
776 Files *ReportsFilesService
777 }
778
779 func NewReportsCompatibleFieldsService(s *Service) *ReportsCompatibleFieldsService {
780 rs := &ReportsCompatibleFieldsService{s: s}
781 return rs
782 }
783
784 type ReportsCompatibleFieldsService struct {
785 s *Service
786 }
787
788 func NewReportsFilesService(s *Service) *ReportsFilesService {
789 rs := &ReportsFilesService{s: s}
790 return rs
791 }
792
793 type ReportsFilesService struct {
794 s *Service
795 }
796
797 func NewSitesService(s *Service) *SitesService {
798 rs := &SitesService{s: s}
799 return rs
800 }
801
802 type SitesService struct {
803 s *Service
804 }
805
806 func NewSizesService(s *Service) *SizesService {
807 rs := &SizesService{s: s}
808 return rs
809 }
810
811 type SizesService struct {
812 s *Service
813 }
814
815 func NewSubaccountsService(s *Service) *SubaccountsService {
816 rs := &SubaccountsService{s: s}
817 return rs
818 }
819
820 type SubaccountsService struct {
821 s *Service
822 }
823
824 func NewTargetableRemarketingListsService(s *Service) *TargetableRemarketingListsService {
825 rs := &TargetableRemarketingListsService{s: s}
826 return rs
827 }
828
829 type TargetableRemarketingListsService struct {
830 s *Service
831 }
832
833 func NewTargetingTemplatesService(s *Service) *TargetingTemplatesService {
834 rs := &TargetingTemplatesService{s: s}
835 return rs
836 }
837
838 type TargetingTemplatesService struct {
839 s *Service
840 }
841
842 func NewUserProfilesService(s *Service) *UserProfilesService {
843 rs := &UserProfilesService{s: s}
844 return rs
845 }
846
847 type UserProfilesService struct {
848 s *Service
849 }
850
851 func NewUserRolePermissionGroupsService(s *Service) *UserRolePermissionGroupsService {
852 rs := &UserRolePermissionGroupsService{s: s}
853 return rs
854 }
855
856 type UserRolePermissionGroupsService struct {
857 s *Service
858 }
859
860 func NewUserRolePermissionsService(s *Service) *UserRolePermissionsService {
861 rs := &UserRolePermissionsService{s: s}
862 return rs
863 }
864
865 type UserRolePermissionsService struct {
866 s *Service
867 }
868
869 func NewUserRolesService(s *Service) *UserRolesService {
870 rs := &UserRolesService{s: s}
871 return rs
872 }
873
874 type UserRolesService struct {
875 s *Service
876 }
877
878 func NewVideoFormatsService(s *Service) *VideoFormatsService {
879 rs := &VideoFormatsService{s: s}
880 return rs
881 }
882
883 type VideoFormatsService struct {
884 s *Service
885 }
886
887
888 type Account struct {
889
890 AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"`
891
892
893
894
895
896
897
898 AccountProfile string `json:"accountProfile,omitempty"`
899
900
901 Active bool `json:"active,omitempty"`
902
903
904
905
906
907
908
909
910
911
912
913
914
915 ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`
916
917
918
919
920 ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
921
922
923
924 AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`
925
926
927 CountryId int64 `json:"countryId,omitempty,string"`
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981 CurrencyId int64 `json:"currencyId,omitempty,string"`
982
983
984 DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"`
985
986
987 Description string `json:"description,omitempty"`
988
989
990 Id int64 `json:"id,omitempty,string"`
991
992
993
994 Kind string `json:"kind,omitempty"`
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014 Locale string `json:"locale,omitempty"`
1015
1016
1017
1018 MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"`
1019
1020
1021
1022 Name string `json:"name,omitempty"`
1023
1024
1025
1026 NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`
1027
1028
1029 ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"`
1030
1031
1032
1033 ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"`
1034
1035
1036
1037 TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"`
1038
1039
1040
1041 googleapi.ServerResponse `json:"-"`
1042
1043
1044
1045
1046
1047
1048
1049
1050 ForceSendFields []string `json:"-"`
1051
1052
1053
1054
1055
1056
1057
1058
1059 NullFields []string `json:"-"`
1060 }
1061
1062 func (s *Account) MarshalJSON() ([]byte, error) {
1063 type NoMethod Account
1064 raw := NoMethod(*s)
1065 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1066 }
1067
1068
1069 type AccountActiveAdSummary struct {
1070
1071 AccountId int64 `json:"accountId,omitempty,string"`
1072
1073
1074 ActiveAds int64 `json:"activeAds,omitempty,string"`
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088 ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`
1089
1090
1091 AvailableAds int64 `json:"availableAds,omitempty,string"`
1092
1093
1094
1095 Kind string `json:"kind,omitempty"`
1096
1097
1098
1099 googleapi.ServerResponse `json:"-"`
1100
1101
1102
1103
1104
1105
1106
1107 ForceSendFields []string `json:"-"`
1108
1109
1110
1111
1112
1113
1114
1115 NullFields []string `json:"-"`
1116 }
1117
1118 func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) {
1119 type NoMethod AccountActiveAdSummary
1120 raw := NoMethod(*s)
1121 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1122 }
1123
1124
1125
1126
1127 type AccountPermission struct {
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138 AccountProfiles []string `json:"accountProfiles,omitempty"`
1139
1140
1141 Id int64 `json:"id,omitempty,string"`
1142
1143
1144
1145 Kind string `json:"kind,omitempty"`
1146
1147
1148
1149
1150
1151
1152
1153 Level string `json:"level,omitempty"`
1154
1155
1156 Name string `json:"name,omitempty"`
1157
1158
1159 PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"`
1160
1161
1162
1163 googleapi.ServerResponse `json:"-"`
1164
1165
1166
1167
1168
1169
1170
1171 ForceSendFields []string `json:"-"`
1172
1173
1174
1175
1176
1177
1178
1179
1180 NullFields []string `json:"-"`
1181 }
1182
1183 func (s *AccountPermission) MarshalJSON() ([]byte, error) {
1184 type NoMethod AccountPermission
1185 raw := NoMethod(*s)
1186 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1187 }
1188
1189
1190
1191
1192 type AccountPermissionGroup struct {
1193
1194 Id int64 `json:"id,omitempty,string"`
1195
1196
1197
1198 Kind string `json:"kind,omitempty"`
1199
1200
1201 Name string `json:"name,omitempty"`
1202
1203
1204
1205 googleapi.ServerResponse `json:"-"`
1206
1207
1208
1209
1210
1211
1212
1213 ForceSendFields []string `json:"-"`
1214
1215
1216
1217
1218
1219
1220
1221 NullFields []string `json:"-"`
1222 }
1223
1224 func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) {
1225 type NoMethod AccountPermissionGroup
1226 raw := NoMethod(*s)
1227 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1228 }
1229
1230
1231
1232 type AccountPermissionGroupsListResponse struct {
1233
1234 AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"`
1235
1236
1237
1238 Kind string `json:"kind,omitempty"`
1239
1240
1241
1242 googleapi.ServerResponse `json:"-"`
1243
1244
1245
1246
1247
1248
1249
1250
1251 ForceSendFields []string `json:"-"`
1252
1253
1254
1255
1256
1257
1258
1259
1260 NullFields []string `json:"-"`
1261 }
1262
1263 func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) {
1264 type NoMethod AccountPermissionGroupsListResponse
1265 raw := NoMethod(*s)
1266 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1267 }
1268
1269
1270 type AccountPermissionsListResponse struct {
1271
1272 AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"`
1273
1274
1275
1276 Kind string `json:"kind,omitempty"`
1277
1278
1279
1280 googleapi.ServerResponse `json:"-"`
1281
1282
1283
1284
1285
1286
1287
1288 ForceSendFields []string `json:"-"`
1289
1290
1291
1292
1293
1294
1295
1296
1297 NullFields []string `json:"-"`
1298 }
1299
1300 func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) {
1301 type NoMethod AccountPermissionsListResponse
1302 raw := NoMethod(*s)
1303 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1304 }
1305
1306
1307
1308
1309 type AccountUserProfile struct {
1310
1311
1312 AccountId int64 `json:"accountId,omitempty,string"`
1313
1314
1315
1316 Active bool `json:"active,omitempty"`
1317
1318
1319
1320 AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"`
1321
1322
1323
1324 CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"`
1325
1326
1327 Comments string `json:"comments,omitempty"`
1328
1329
1330
1331
1332 Email string `json:"email,omitempty"`
1333
1334
1335
1336 Id int64 `json:"id,omitempty,string"`
1337
1338
1339
1340 Kind string `json:"kind,omitempty"`
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361 Locale string `json:"locale,omitempty"`
1362
1363
1364
1365
1366 Name string `json:"name,omitempty"`
1367
1368
1369
1370 SiteFilter *ObjectFilter `json:"siteFilter,omitempty"`
1371
1372
1373
1374 SubaccountId int64 `json:"subaccountId,omitempty,string"`
1375
1376
1377
1378
1379
1380
1381
1382 TraffickerType string `json:"traffickerType,omitempty"`
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392 UserAccessType string `json:"userAccessType,omitempty"`
1393
1394
1395
1396 UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"`
1397
1398
1399
1400 UserRoleId int64 `json:"userRoleId,omitempty,string"`
1401
1402
1403
1404 googleapi.ServerResponse `json:"-"`
1405
1406
1407
1408
1409
1410
1411
1412 ForceSendFields []string `json:"-"`
1413
1414
1415
1416
1417
1418
1419
1420 NullFields []string `json:"-"`
1421 }
1422
1423 func (s *AccountUserProfile) MarshalJSON() ([]byte, error) {
1424 type NoMethod AccountUserProfile
1425 raw := NoMethod(*s)
1426 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1427 }
1428
1429
1430 type AccountUserProfilesListResponse struct {
1431
1432 AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"`
1433
1434
1435
1436 Kind string `json:"kind,omitempty"`
1437
1438
1439
1440 NextPageToken string `json:"nextPageToken,omitempty"`
1441
1442
1443
1444 googleapi.ServerResponse `json:"-"`
1445
1446
1447
1448
1449
1450
1451
1452 ForceSendFields []string `json:"-"`
1453
1454
1455
1456
1457
1458
1459
1460
1461 NullFields []string `json:"-"`
1462 }
1463
1464 func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) {
1465 type NoMethod AccountUserProfilesListResponse
1466 raw := NoMethod(*s)
1467 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1468 }
1469
1470
1471 type AccountsListResponse struct {
1472
1473 Accounts []*Account `json:"accounts,omitempty"`
1474
1475
1476
1477 Kind string `json:"kind,omitempty"`
1478
1479
1480
1481 NextPageToken string `json:"nextPageToken,omitempty"`
1482
1483
1484
1485 googleapi.ServerResponse `json:"-"`
1486
1487
1488
1489
1490
1491
1492
1493 ForceSendFields []string `json:"-"`
1494
1495
1496
1497
1498
1499
1500
1501 NullFields []string `json:"-"`
1502 }
1503
1504 func (s *AccountsListResponse) MarshalJSON() ([]byte, error) {
1505 type NoMethod AccountsListResponse
1506 raw := NoMethod(*s)
1507 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1508 }
1509
1510
1511 type Activities struct {
1512
1513
1514 Filters []*DimensionValue `json:"filters,omitempty"`
1515
1516
1517
1518 Kind string `json:"kind,omitempty"`
1519
1520
1521 MetricNames []string `json:"metricNames,omitempty"`
1522
1523
1524
1525
1526
1527
1528
1529 ForceSendFields []string `json:"-"`
1530
1531
1532
1533
1534
1535
1536
1537 NullFields []string `json:"-"`
1538 }
1539
1540 func (s *Activities) MarshalJSON() ([]byte, error) {
1541 type NoMethod Activities
1542 raw := NoMethod(*s)
1543 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1544 }
1545
1546
1547 type Ad struct {
1548
1549
1550 AccountId int64 `json:"accountId,omitempty,string"`
1551
1552
1553 Active bool `json:"active,omitempty"`
1554
1555
1556
1557 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
1558
1559
1560
1561 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
1562
1563
1564
1565 Archived bool `json:"archived,omitempty"`
1566
1567
1568
1569 AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"`
1570
1571
1572
1573 CampaignId int64 `json:"campaignId,omitempty,string"`
1574
1575
1576
1577 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
1578
1579
1580
1581 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
1582
1583
1584
1585
1586 ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`
1587
1588
1589 Comments string `json:"comments,omitempty"`
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607 Compatibility string `json:"compatibility,omitempty"`
1608
1609
1610
1611 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
1612
1613
1614
1615
1616
1617 CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`
1618
1619
1620
1621
1622
1623 CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"`
1624
1625
1626
1627
1628 DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`
1629
1630
1631
1632 DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`
1633
1634
1635
1636
1637
1638
1639 DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"`
1640
1641
1642
1643
1644 DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"`
1645
1646
1647
1648 EndTime string `json:"endTime,omitempty"`
1649
1650
1651 EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`
1652
1653
1654
1655
1656 GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`
1657
1658
1659 Id int64 `json:"id,omitempty,string"`
1660
1661
1662
1663 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
1664
1665
1666
1667
1668 KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`
1669
1670
1671
1672 Kind string `json:"kind,omitempty"`
1673
1674
1675
1676
1677 LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`
1678
1679
1680
1681 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
1682
1683
1684
1685 Name string `json:"name,omitempty"`
1686
1687
1688 PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"`
1689
1690
1691
1692
1693 RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"`
1694
1695
1696 Size *Size `json:"size,omitempty"`
1697
1698
1699
1700 SslCompliant bool `json:"sslCompliant,omitempty"`
1701
1702
1703
1704 SslRequired bool `json:"sslRequired,omitempty"`
1705
1706
1707
1708
1709 StartTime string `json:"startTime,omitempty"`
1710
1711
1712
1713 SubaccountId int64 `json:"subaccountId,omitempty,string"`
1714
1715
1716
1717
1718
1719
1720
1721 TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"`
1722
1723
1724
1725
1726 TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737 Type string `json:"type,omitempty"`
1738
1739
1740
1741 googleapi.ServerResponse `json:"-"`
1742
1743
1744
1745
1746
1747
1748
1749 ForceSendFields []string `json:"-"`
1750
1751
1752
1753
1754
1755
1756
1757 NullFields []string `json:"-"`
1758 }
1759
1760 func (s *Ad) MarshalJSON() ([]byte, error) {
1761 type NoMethod Ad
1762 raw := NoMethod(*s)
1763 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1764 }
1765
1766
1767 type AdSlot struct {
1768
1769 Comment string `json:"comment,omitempty"`
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784 Compatibility string `json:"compatibility,omitempty"`
1785
1786
1787 Height int64 `json:"height,omitempty,string"`
1788
1789
1790
1791 LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"`
1792
1793
1794 Name string `json:"name,omitempty"`
1795
1796
1797
1798
1799
1800
1801 PaymentSourceType string `json:"paymentSourceType,omitempty"`
1802
1803
1804 Primary bool `json:"primary,omitempty"`
1805
1806
1807 Width int64 `json:"width,omitempty,string"`
1808
1809
1810
1811
1812
1813
1814
1815 ForceSendFields []string `json:"-"`
1816
1817
1818
1819
1820
1821
1822
1823 NullFields []string `json:"-"`
1824 }
1825
1826 func (s *AdSlot) MarshalJSON() ([]byte, error) {
1827 type NoMethod AdSlot
1828 raw := NoMethod(*s)
1829 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1830 }
1831
1832
1833 type AdsListResponse struct {
1834
1835 Ads []*Ad `json:"ads,omitempty"`
1836
1837
1838
1839 Kind string `json:"kind,omitempty"`
1840
1841
1842
1843 NextPageToken string `json:"nextPageToken,omitempty"`
1844
1845
1846
1847 googleapi.ServerResponse `json:"-"`
1848
1849
1850
1851
1852
1853
1854
1855 ForceSendFields []string `json:"-"`
1856
1857
1858
1859
1860
1861
1862
1863 NullFields []string `json:"-"`
1864 }
1865
1866 func (s *AdsListResponse) MarshalJSON() ([]byte, error) {
1867 type NoMethod AdsListResponse
1868 raw := NoMethod(*s)
1869 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1870 }
1871
1872
1873 type Advertiser struct {
1874
1875
1876 AccountId int64 `json:"accountId,omitempty,string"`
1877
1878
1879
1880
1881 AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`
1882
1883
1884
1885
1886 ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`
1887
1888
1889
1890 DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"`
1891
1892
1893
1894 DefaultEmail string `json:"defaultEmail,omitempty"`
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
1908
1909
1910
1911
1912 FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
1913
1914
1915 Id int64 `json:"id,omitempty,string"`
1916
1917
1918
1919 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
1920
1921
1922
1923 Kind string `json:"kind,omitempty"`
1924
1925
1926
1927
1928 Name string `json:"name,omitempty"`
1929
1930
1931
1932
1933
1934
1935
1936 OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"`
1937
1938
1939
1940
1941
1942
1943 Status string `json:"status,omitempty"`
1944
1945
1946
1947 SubaccountId int64 `json:"subaccountId,omitempty,string"`
1948
1949
1950 Suspended bool `json:"suspended,omitempty"`
1951
1952
1953
1954 googleapi.ServerResponse `json:"-"`
1955
1956
1957
1958
1959
1960
1961
1962 ForceSendFields []string `json:"-"`
1963
1964
1965
1966
1967
1968
1969
1970 NullFields []string `json:"-"`
1971 }
1972
1973 func (s *Advertiser) MarshalJSON() ([]byte, error) {
1974 type NoMethod Advertiser
1975 raw := NoMethod(*s)
1976 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1977 }
1978
1979
1980
1981 type AdvertiserGroup struct {
1982
1983
1984 AccountId int64 `json:"accountId,omitempty,string"`
1985
1986
1987
1988 Id int64 `json:"id,omitempty,string"`
1989
1990
1991
1992 Kind string `json:"kind,omitempty"`
1993
1994
1995
1996
1997 Name string `json:"name,omitempty"`
1998
1999
2000
2001 googleapi.ServerResponse `json:"-"`
2002
2003
2004
2005
2006
2007
2008
2009 ForceSendFields []string `json:"-"`
2010
2011
2012
2013
2014
2015
2016
2017 NullFields []string `json:"-"`
2018 }
2019
2020 func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) {
2021 type NoMethod AdvertiserGroup
2022 raw := NoMethod(*s)
2023 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2024 }
2025
2026
2027 type AdvertiserGroupsListResponse struct {
2028
2029 AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"`
2030
2031
2032
2033 Kind string `json:"kind,omitempty"`
2034
2035
2036
2037 NextPageToken string `json:"nextPageToken,omitempty"`
2038
2039
2040
2041 googleapi.ServerResponse `json:"-"`
2042
2043
2044
2045
2046
2047
2048
2049 ForceSendFields []string `json:"-"`
2050
2051
2052
2053
2054
2055
2056
2057
2058 NullFields []string `json:"-"`
2059 }
2060
2061 func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) {
2062 type NoMethod AdvertiserGroupsListResponse
2063 raw := NoMethod(*s)
2064 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2065 }
2066
2067
2068 type AdvertisersListResponse struct {
2069
2070 Advertisers []*Advertiser `json:"advertisers,omitempty"`
2071
2072
2073
2074 Kind string `json:"kind,omitempty"`
2075
2076
2077
2078 NextPageToken string `json:"nextPageToken,omitempty"`
2079
2080
2081
2082 googleapi.ServerResponse `json:"-"`
2083
2084
2085
2086
2087
2088
2089
2090 ForceSendFields []string `json:"-"`
2091
2092
2093
2094
2095
2096
2097
2098 NullFields []string `json:"-"`
2099 }
2100
2101 func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) {
2102 type NoMethod AdvertisersListResponse
2103 raw := NoMethod(*s)
2104 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2105 }
2106
2107
2108 type AudienceSegment struct {
2109
2110
2111
2112
2113 Allocation int64 `json:"allocation,omitempty"`
2114
2115
2116
2117 Id int64 `json:"id,omitempty,string"`
2118
2119
2120
2121 Name string `json:"name,omitempty"`
2122
2123
2124
2125
2126
2127
2128
2129 ForceSendFields []string `json:"-"`
2130
2131
2132
2133
2134
2135
2136
2137 NullFields []string `json:"-"`
2138 }
2139
2140 func (s *AudienceSegment) MarshalJSON() ([]byte, error) {
2141 type NoMethod AudienceSegment
2142 raw := NoMethod(*s)
2143 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2144 }
2145
2146
2147 type AudienceSegmentGroup struct {
2148
2149
2150 AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"`
2151
2152
2153
2154 Id int64 `json:"id,omitempty,string"`
2155
2156
2157
2158 Name string `json:"name,omitempty"`
2159
2160
2161
2162
2163
2164
2165
2166 ForceSendFields []string `json:"-"`
2167
2168
2169
2170
2171
2172
2173
2174
2175 NullFields []string `json:"-"`
2176 }
2177
2178 func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) {
2179 type NoMethod AudienceSegmentGroup
2180 raw := NoMethod(*s)
2181 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2182 }
2183
2184
2185
2186 type Browser struct {
2187
2188
2189 BrowserVersionId int64 `json:"browserVersionId,omitempty,string"`
2190
2191
2192
2193 DartId int64 `json:"dartId,omitempty,string"`
2194
2195
2196
2197 Kind string `json:"kind,omitempty"`
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208 MajorVersion string `json:"majorVersion,omitempty"`
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219 MinorVersion string `json:"minorVersion,omitempty"`
2220
2221
2222 Name string `json:"name,omitempty"`
2223
2224
2225
2226
2227
2228
2229
2230 ForceSendFields []string `json:"-"`
2231
2232
2233
2234
2235
2236
2237
2238
2239 NullFields []string `json:"-"`
2240 }
2241
2242 func (s *Browser) MarshalJSON() ([]byte, error) {
2243 type NoMethod Browser
2244 raw := NoMethod(*s)
2245 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2246 }
2247
2248
2249 type BrowsersListResponse struct {
2250
2251 Browsers []*Browser `json:"browsers,omitempty"`
2252
2253
2254
2255 Kind string `json:"kind,omitempty"`
2256
2257
2258
2259 googleapi.ServerResponse `json:"-"`
2260
2261
2262
2263
2264
2265
2266
2267 ForceSendFields []string `json:"-"`
2268
2269
2270
2271
2272
2273
2274
2275 NullFields []string `json:"-"`
2276 }
2277
2278 func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) {
2279 type NoMethod BrowsersListResponse
2280 raw := NoMethod(*s)
2281 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2282 }
2283
2284
2285 type Campaign struct {
2286
2287
2288 AccountId int64 `json:"accountId,omitempty,string"`
2289
2290
2291
2292 AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"`
2293
2294
2295 AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`
2296
2297
2298
2299 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
2300
2301
2302
2303 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
2304
2305
2306 Archived bool `json:"archived,omitempty"`
2307
2308
2309
2310 AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"`
2311
2312
2313
2314 BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"`
2315
2316
2317
2318 ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`
2319
2320
2321
2322 Comment string `json:"comment,omitempty"`
2323
2324
2325
2326 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
2327
2328
2329
2330 CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"`
2331
2332
2333
2334 CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"`
2335
2336
2337
2338 DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`
2339
2340
2341
2342
2343
2344
2345
2346
2347 EndDate string `json:"endDate,omitempty"`
2348
2349
2350
2351 EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`
2352
2353
2354 ExternalId string `json:"externalId,omitempty"`
2355
2356
2357 Id int64 `json:"id,omitempty,string"`
2358
2359
2360
2361 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
2362
2363
2364
2365 Kind string `json:"kind,omitempty"`
2366
2367
2368
2369 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
2370
2371
2372 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
2373
2374
2375
2376
2377 Name string `json:"name,omitempty"`
2378
2379
2380
2381 NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`
2382
2383
2384
2385
2386
2387 StartDate string `json:"startDate,omitempty"`
2388
2389
2390
2391 SubaccountId int64 `json:"subaccountId,omitempty,string"`
2392
2393
2394 TraffickerEmails []string `json:"traffickerEmails,omitempty"`
2395
2396
2397
2398 googleapi.ServerResponse `json:"-"`
2399
2400
2401
2402
2403
2404
2405
2406 ForceSendFields []string `json:"-"`
2407
2408
2409
2410
2411
2412
2413
2414 NullFields []string `json:"-"`
2415 }
2416
2417 func (s *Campaign) MarshalJSON() ([]byte, error) {
2418 type NoMethod Campaign
2419 raw := NoMethod(*s)
2420 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2421 }
2422
2423
2424
2425 type CampaignCreativeAssociation struct {
2426
2427
2428 CreativeId int64 `json:"creativeId,omitempty,string"`
2429
2430
2431
2432 Kind string `json:"kind,omitempty"`
2433
2434
2435
2436 googleapi.ServerResponse `json:"-"`
2437
2438
2439
2440
2441
2442
2443
2444 ForceSendFields []string `json:"-"`
2445
2446
2447
2448
2449
2450
2451
2452 NullFields []string `json:"-"`
2453 }
2454
2455 func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) {
2456 type NoMethod CampaignCreativeAssociation
2457 raw := NoMethod(*s)
2458 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2459 }
2460
2461
2462
2463 type CampaignCreativeAssociationsListResponse struct {
2464
2465
2466 CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"`
2467
2468
2469
2470 Kind string `json:"kind,omitempty"`
2471
2472
2473
2474 NextPageToken string `json:"nextPageToken,omitempty"`
2475
2476
2477
2478 googleapi.ServerResponse `json:"-"`
2479
2480
2481
2482
2483
2484
2485
2486
2487 ForceSendFields []string `json:"-"`
2488
2489
2490
2491
2492
2493
2494
2495
2496 NullFields []string `json:"-"`
2497 }
2498
2499 func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) {
2500 type NoMethod CampaignCreativeAssociationsListResponse
2501 raw := NoMethod(*s)
2502 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2503 }
2504
2505
2506 type CampaignsListResponse struct {
2507
2508 Campaigns []*Campaign `json:"campaigns,omitempty"`
2509
2510
2511
2512 Kind string `json:"kind,omitempty"`
2513
2514
2515
2516 NextPageToken string `json:"nextPageToken,omitempty"`
2517
2518
2519
2520 googleapi.ServerResponse `json:"-"`
2521
2522
2523
2524
2525
2526
2527
2528 ForceSendFields []string `json:"-"`
2529
2530
2531
2532
2533
2534
2535
2536 NullFields []string `json:"-"`
2537 }
2538
2539 func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) {
2540 type NoMethod CampaignsListResponse
2541 raw := NoMethod(*s)
2542 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2543 }
2544
2545
2546 type ChangeLog struct {
2547
2548 AccountId int64 `json:"accountId,omitempty,string"`
2549
2550
2551 Action string `json:"action,omitempty"`
2552
2553
2554 ChangeTime string `json:"changeTime,omitempty"`
2555
2556
2557 FieldName string `json:"fieldName,omitempty"`
2558
2559
2560 Id int64 `json:"id,omitempty,string"`
2561
2562
2563
2564 Kind string `json:"kind,omitempty"`
2565
2566
2567 NewValue string `json:"newValue,omitempty"`
2568
2569
2570
2571 ObjectId int64 `json:"objectId,omitempty,string"`
2572
2573
2574 ObjectType string `json:"objectType,omitempty"`
2575
2576
2577 OldValue string `json:"oldValue,omitempty"`
2578
2579
2580 SubaccountId int64 `json:"subaccountId,omitempty,string"`
2581
2582
2583
2584
2585 TransactionId int64 `json:"transactionId,omitempty,string"`
2586
2587
2588 UserProfileId int64 `json:"userProfileId,omitempty,string"`
2589
2590
2591
2592 UserProfileName string `json:"userProfileName,omitempty"`
2593
2594
2595
2596 googleapi.ServerResponse `json:"-"`
2597
2598
2599
2600
2601
2602
2603
2604 ForceSendFields []string `json:"-"`
2605
2606
2607
2608
2609
2610
2611
2612 NullFields []string `json:"-"`
2613 }
2614
2615 func (s *ChangeLog) MarshalJSON() ([]byte, error) {
2616 type NoMethod ChangeLog
2617 raw := NoMethod(*s)
2618 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2619 }
2620
2621
2622 type ChangeLogsListResponse struct {
2623
2624 ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"`
2625
2626
2627
2628 Kind string `json:"kind,omitempty"`
2629
2630
2631
2632 NextPageToken string `json:"nextPageToken,omitempty"`
2633
2634
2635
2636 googleapi.ServerResponse `json:"-"`
2637
2638
2639
2640
2641
2642
2643
2644 ForceSendFields []string `json:"-"`
2645
2646
2647
2648
2649
2650
2651
2652 NullFields []string `json:"-"`
2653 }
2654
2655 func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) {
2656 type NoMethod ChangeLogsListResponse
2657 raw := NoMethod(*s)
2658 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2659 }
2660
2661
2662 type CitiesListResponse struct {
2663
2664 Cities []*City `json:"cities,omitempty"`
2665
2666
2667
2668 Kind string `json:"kind,omitempty"`
2669
2670
2671
2672 googleapi.ServerResponse `json:"-"`
2673
2674
2675
2676
2677
2678
2679
2680 ForceSendFields []string `json:"-"`
2681
2682
2683
2684
2685
2686
2687
2688 NullFields []string `json:"-"`
2689 }
2690
2691 func (s *CitiesListResponse) MarshalJSON() ([]byte, error) {
2692 type NoMethod CitiesListResponse
2693 raw := NoMethod(*s)
2694 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2695 }
2696
2697
2698 type City struct {
2699
2700 CountryCode string `json:"countryCode,omitempty"`
2701
2702
2703 CountryDartId int64 `json:"countryDartId,omitempty,string"`
2704
2705
2706
2707 DartId int64 `json:"dartId,omitempty,string"`
2708
2709
2710
2711 Kind string `json:"kind,omitempty"`
2712
2713
2714
2715 MetroCode string `json:"metroCode,omitempty"`
2716
2717
2718 MetroDmaId int64 `json:"metroDmaId,omitempty,string"`
2719
2720
2721 Name string `json:"name,omitempty"`
2722
2723
2724 RegionCode string `json:"regionCode,omitempty"`
2725
2726
2727 RegionDartId int64 `json:"regionDartId,omitempty,string"`
2728
2729
2730
2731
2732
2733
2734
2735 ForceSendFields []string `json:"-"`
2736
2737
2738
2739
2740
2741
2742
2743 NullFields []string `json:"-"`
2744 }
2745
2746 func (s *City) MarshalJSON() ([]byte, error) {
2747 type NoMethod City
2748 raw := NoMethod(*s)
2749 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2750 }
2751
2752
2753 type ClickTag struct {
2754
2755
2756
2757 EventName string `json:"eventName,omitempty"`
2758
2759
2760
2761
2762 Name string `json:"name,omitempty"`
2763
2764
2765
2766 Value string `json:"value,omitempty"`
2767
2768
2769
2770
2771
2772
2773
2774 ForceSendFields []string `json:"-"`
2775
2776
2777
2778
2779
2780
2781
2782 NullFields []string `json:"-"`
2783 }
2784
2785 func (s *ClickTag) MarshalJSON() ([]byte, error) {
2786 type NoMethod ClickTag
2787 raw := NoMethod(*s)
2788 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2789 }
2790
2791
2792 type ClickThroughUrl struct {
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802 ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"`
2803
2804
2805
2806
2807 CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"`
2808
2809
2810
2811 DefaultLandingPage bool `json:"defaultLandingPage,omitempty"`
2812
2813
2814
2815 LandingPageId int64 `json:"landingPageId,omitempty,string"`
2816
2817
2818
2819
2820
2821
2822
2823
2824 ForceSendFields []string `json:"-"`
2825
2826
2827
2828
2829
2830
2831
2832
2833 NullFields []string `json:"-"`
2834 }
2835
2836 func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) {
2837 type NoMethod ClickThroughUrl
2838 raw := NoMethod(*s)
2839 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2840 }
2841
2842
2843 type ClickThroughUrlSuffixProperties struct {
2844
2845
2846 ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`
2847
2848
2849
2850 OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"`
2851
2852
2853
2854
2855
2856
2857
2858
2859 ForceSendFields []string `json:"-"`
2860
2861
2862
2863
2864
2865
2866
2867
2868 NullFields []string `json:"-"`
2869 }
2870
2871 func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) {
2872 type NoMethod ClickThroughUrlSuffixProperties
2873 raw := NoMethod(*s)
2874 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2875 }
2876
2877
2878 type CompanionClickThroughOverride struct {
2879
2880
2881 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
2882
2883
2884
2885 CreativeId int64 `json:"creativeId,omitempty,string"`
2886
2887
2888
2889
2890
2891
2892
2893 ForceSendFields []string `json:"-"`
2894
2895
2896
2897
2898
2899
2900
2901
2902 NullFields []string `json:"-"`
2903 }
2904
2905 func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) {
2906 type NoMethod CompanionClickThroughOverride
2907 raw := NoMethod(*s)
2908 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2909 }
2910
2911
2912 type CompanionSetting struct {
2913
2914
2915 CompanionsDisabled bool `json:"companionsDisabled,omitempty"`
2916
2917
2918
2919
2920 EnabledSizes []*Size `json:"enabledSizes,omitempty"`
2921
2922
2923 ImageOnly bool `json:"imageOnly,omitempty"`
2924
2925
2926
2927 Kind string `json:"kind,omitempty"`
2928
2929
2930
2931
2932
2933
2934
2935 ForceSendFields []string `json:"-"`
2936
2937
2938
2939
2940
2941
2942
2943
2944 NullFields []string `json:"-"`
2945 }
2946
2947 func (s *CompanionSetting) MarshalJSON() ([]byte, error) {
2948 type NoMethod CompanionSetting
2949 raw := NoMethod(*s)
2950 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2951 }
2952
2953
2954
2955 type CompatibleFields struct {
2956
2957
2958
2959 CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"`
2960
2961
2962
2963 FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"`
2964
2965
2966
2967 Kind string `json:"kind,omitempty"`
2968
2969
2970
2971 PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"`
2972
2973
2974
2975 ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"`
2976
2977
2978
2979 ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"`
2980
2981
2982
2983 googleapi.ServerResponse `json:"-"`
2984
2985
2986
2987
2988
2989
2990
2991
2992 ForceSendFields []string `json:"-"`
2993
2994
2995
2996
2997
2998
2999
3000
3001 NullFields []string `json:"-"`
3002 }
3003
3004 func (s *CompatibleFields) MarshalJSON() ([]byte, error) {
3005 type NoMethod CompatibleFields
3006 raw := NoMethod(*s)
3007 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3008 }
3009
3010
3011
3012
3013 type ConnectionType struct {
3014
3015 Id int64 `json:"id,omitempty,string"`
3016
3017
3018
3019 Kind string `json:"kind,omitempty"`
3020
3021
3022 Name string `json:"name,omitempty"`
3023
3024
3025
3026 googleapi.ServerResponse `json:"-"`
3027
3028
3029
3030
3031
3032
3033
3034 ForceSendFields []string `json:"-"`
3035
3036
3037
3038
3039
3040
3041
3042 NullFields []string `json:"-"`
3043 }
3044
3045 func (s *ConnectionType) MarshalJSON() ([]byte, error) {
3046 type NoMethod ConnectionType
3047 raw := NoMethod(*s)
3048 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3049 }
3050
3051
3052 type ConnectionTypesListResponse struct {
3053
3054
3055 ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`
3056
3057
3058
3059 Kind string `json:"kind,omitempty"`
3060
3061
3062
3063 googleapi.ServerResponse `json:"-"`
3064
3065
3066
3067
3068
3069
3070
3071 ForceSendFields []string `json:"-"`
3072
3073
3074
3075
3076
3077
3078
3079
3080 NullFields []string `json:"-"`
3081 }
3082
3083 func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) {
3084 type NoMethod ConnectionTypesListResponse
3085 raw := NoMethod(*s)
3086 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3087 }
3088
3089
3090 type ContentCategoriesListResponse struct {
3091
3092 ContentCategories []*ContentCategory `json:"contentCategories,omitempty"`
3093
3094
3095
3096 Kind string `json:"kind,omitempty"`
3097
3098
3099
3100 NextPageToken string `json:"nextPageToken,omitempty"`
3101
3102
3103
3104 googleapi.ServerResponse `json:"-"`
3105
3106
3107
3108
3109
3110
3111
3112 ForceSendFields []string `json:"-"`
3113
3114
3115
3116
3117
3118
3119
3120
3121 NullFields []string `json:"-"`
3122 }
3123
3124 func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) {
3125 type NoMethod ContentCategoriesListResponse
3126 raw := NoMethod(*s)
3127 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3128 }
3129
3130
3131
3132 type ContentCategory struct {
3133
3134
3135 AccountId int64 `json:"accountId,omitempty,string"`
3136
3137
3138
3139 Id int64 `json:"id,omitempty,string"`
3140
3141
3142
3143 Kind string `json:"kind,omitempty"`
3144
3145
3146
3147
3148 Name string `json:"name,omitempty"`
3149
3150
3151
3152 googleapi.ServerResponse `json:"-"`
3153
3154
3155
3156
3157
3158
3159
3160 ForceSendFields []string `json:"-"`
3161
3162
3163
3164
3165
3166
3167
3168 NullFields []string `json:"-"`
3169 }
3170
3171 func (s *ContentCategory) MarshalJSON() ([]byte, error) {
3172 type NoMethod ContentCategory
3173 raw := NoMethod(*s)
3174 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3175 }
3176
3177
3178
3179 type Conversion struct {
3180
3181
3182 ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"`
3183
3184
3185 CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"`
3186
3187
3188
3189
3190
3191 EncryptedUserId string `json:"encryptedUserId,omitempty"`
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201 EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"`
3202
3203
3204
3205 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
3206
3207
3208
3209 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
3210
3211
3212
3213 Kind string `json:"kind,omitempty"`
3214
3215
3216
3217
3218 LimitAdTracking bool `json:"limitAdTracking,omitempty"`
3219
3220
3221
3222
3223
3224 MobileDeviceId string `json:"mobileDeviceId,omitempty"`
3225
3226
3227
3228
3229 Ordinal string `json:"ordinal,omitempty"`
3230
3231
3232 Quantity int64 `json:"quantity,omitempty,string"`
3233
3234
3235
3236 TimestampMicros int64 `json:"timestampMicros,omitempty,string"`
3237
3238
3239 Value float64 `json:"value,omitempty"`
3240
3241
3242
3243
3244
3245
3246
3247
3248 ForceSendFields []string `json:"-"`
3249
3250
3251
3252
3253
3254
3255
3256
3257 NullFields []string `json:"-"`
3258 }
3259
3260 func (s *Conversion) MarshalJSON() ([]byte, error) {
3261 type NoMethod Conversion
3262 raw := NoMethod(*s)
3263 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3264 }
3265
3266 func (s *Conversion) UnmarshalJSON(data []byte) error {
3267 type NoMethod Conversion
3268 var s1 struct {
3269 Value gensupport.JSONFloat64 `json:"value"`
3270 *NoMethod
3271 }
3272 s1.NoMethod = (*NoMethod)(s)
3273 if err := json.Unmarshal(data, &s1); err != nil {
3274 return err
3275 }
3276 s.Value = float64(s1.Value)
3277 return nil
3278 }
3279
3280
3281
3282 type ConversionError struct {
3283
3284
3285
3286
3287
3288
3289
3290 Code string `json:"code,omitempty"`
3291
3292
3293
3294 Kind string `json:"kind,omitempty"`
3295
3296
3297 Message string `json:"message,omitempty"`
3298
3299
3300
3301
3302
3303
3304
3305 ForceSendFields []string `json:"-"`
3306
3307
3308
3309
3310
3311
3312
3313 NullFields []string `json:"-"`
3314 }
3315
3316 func (s *ConversionError) MarshalJSON() ([]byte, error) {
3317 type NoMethod ConversionError
3318 raw := NoMethod(*s)
3319 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3320 }
3321
3322
3323
3324 type ConversionStatus struct {
3325
3326 Conversion *Conversion `json:"conversion,omitempty"`
3327
3328
3329 Errors []*ConversionError `json:"errors,omitempty"`
3330
3331
3332
3333 Kind string `json:"kind,omitempty"`
3334
3335
3336
3337
3338
3339
3340
3341 ForceSendFields []string `json:"-"`
3342
3343
3344
3345
3346
3347
3348
3349 NullFields []string `json:"-"`
3350 }
3351
3352 func (s *ConversionStatus) MarshalJSON() ([]byte, error) {
3353 type NoMethod ConversionStatus
3354 raw := NoMethod(*s)
3355 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3356 }
3357
3358
3359 type ConversionsBatchInsertRequest struct {
3360
3361 Conversions []*Conversion `json:"conversions,omitempty"`
3362
3363
3364
3365
3366 EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`
3367
3368
3369
3370 Kind string `json:"kind,omitempty"`
3371
3372
3373
3374
3375
3376
3377
3378 ForceSendFields []string `json:"-"`
3379
3380
3381
3382
3383
3384
3385
3386 NullFields []string `json:"-"`
3387 }
3388
3389 func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) {
3390 type NoMethod ConversionsBatchInsertRequest
3391 raw := NoMethod(*s)
3392 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3393 }
3394
3395
3396 type ConversionsBatchInsertResponse struct {
3397
3398 HasFailures bool `json:"hasFailures,omitempty"`
3399
3400
3401
3402 Kind string `json:"kind,omitempty"`
3403
3404
3405
3406 Status []*ConversionStatus `json:"status,omitempty"`
3407
3408
3409
3410 googleapi.ServerResponse `json:"-"`
3411
3412
3413
3414
3415
3416
3417
3418 ForceSendFields []string `json:"-"`
3419
3420
3421
3422
3423
3424
3425
3426 NullFields []string `json:"-"`
3427 }
3428
3429 func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) {
3430 type NoMethod ConversionsBatchInsertResponse
3431 raw := NoMethod(*s)
3432 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3433 }
3434
3435
3436 type CountriesListResponse struct {
3437
3438 Countries []*Country `json:"countries,omitempty"`
3439
3440
3441
3442 Kind string `json:"kind,omitempty"`
3443
3444
3445
3446 googleapi.ServerResponse `json:"-"`
3447
3448
3449
3450
3451
3452
3453
3454 ForceSendFields []string `json:"-"`
3455
3456
3457
3458
3459
3460
3461
3462 NullFields []string `json:"-"`
3463 }
3464
3465 func (s *CountriesListResponse) MarshalJSON() ([]byte, error) {
3466 type NoMethod CountriesListResponse
3467 raw := NoMethod(*s)
3468 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3469 }
3470
3471
3472
3473 type Country struct {
3474
3475 CountryCode string `json:"countryCode,omitempty"`
3476
3477
3478
3479 DartId int64 `json:"dartId,omitempty,string"`
3480
3481
3482
3483 Kind string `json:"kind,omitempty"`
3484
3485
3486 Name string `json:"name,omitempty"`
3487
3488
3489
3490 SslEnabled bool `json:"sslEnabled,omitempty"`
3491
3492
3493
3494 googleapi.ServerResponse `json:"-"`
3495
3496
3497
3498
3499
3500
3501
3502 ForceSendFields []string `json:"-"`
3503
3504
3505
3506
3507
3508
3509
3510 NullFields []string `json:"-"`
3511 }
3512
3513 func (s *Country) MarshalJSON() ([]byte, error) {
3514 type NoMethod Country
3515 raw := NoMethod(*s)
3516 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3517 }
3518
3519
3520 type Creative struct {
3521
3522
3523
3524 AccountId int64 `json:"accountId,omitempty,string"`
3525
3526
3527
3528 Active bool `json:"active,omitempty"`
3529
3530
3531
3532
3533 AdParameters string `json:"adParameters,omitempty"`
3534
3535
3536
3537
3538
3539
3540
3541 AdTagKeys []string `json:"adTagKeys,omitempty"`
3542
3543
3544
3545 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
3546
3547
3548
3549
3550
3551 AllowScriptAccess bool `json:"allowScriptAccess,omitempty"`
3552
3553
3554
3555 Archived bool `json:"archived,omitempty"`
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566 ArtworkType string `json:"artworkType,omitempty"`
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576 AuthoringSource string `json:"authoringSource,omitempty"`
3577
3578
3579
3580
3581
3582
3583
3584
3585 AuthoringTool string `json:"authoringTool,omitempty"`
3586
3587
3588
3589
3590 AutoAdvanceImages bool `json:"auto_advance_images,omitempty"`
3591
3592
3593
3594
3595
3596 BackgroundColor string `json:"backgroundColor,omitempty"`
3597
3598
3599
3600
3601
3602 BackupImageClickThroughUrl string `json:"backupImageClickThroughUrl,omitempty"`
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682 BackupImageFeatures []string `json:"backupImageFeatures,omitempty"`
3683
3684
3685
3686
3687 BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"`
3688
3689
3690
3691
3692 BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"`
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707 ClickTags []*ClickTag `json:"clickTags,omitempty"`
3708
3709
3710
3711
3712 CommercialId string `json:"commercialId,omitempty"`
3713
3714
3715
3716
3717
3718
3719 CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"`
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744 Compatibility []string `json:"compatibility,omitempty"`
3745
3746
3747
3748
3749
3750
3751
3752 ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"`
3753
3754
3755
3756
3757
3758 CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"`
3759
3760
3761 CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"`
3762
3763
3764
3765
3766 CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"`
3767
3768
3769
3770 CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"`
3771
3772
3773
3774
3775
3776
3777
3778 CustomKeyValues []string `json:"customKeyValues,omitempty"`
3779
3780
3781
3782
3783
3784
3785
3786 DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"`
3787
3788
3789
3790
3791
3792
3793
3794
3795 ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"`
3796
3797
3798
3799
3800
3801
3802 FsCommand *FsCommand `json:"fsCommand,omitempty"`
3803
3804
3805
3806
3807
3808 HtmlCode string `json:"htmlCode,omitempty"`
3809
3810
3811
3812
3813 HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"`
3814
3815
3816
3817 Id int64 `json:"id,omitempty,string"`
3818
3819
3820
3821 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
3822
3823
3824
3825 Kind string `json:"kind,omitempty"`
3826
3827
3828
3829 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
3830
3831
3832
3833
3834
3835 LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"`
3836
3837
3838
3839 Name string `json:"name,omitempty"`
3840
3841
3842
3843 OverrideCss string `json:"overrideCss,omitempty"`
3844
3845
3846
3847 ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`
3848
3849
3850
3851
3852
3853
3854
3855
3856 RedirectUrl string `json:"redirectUrl,omitempty"`
3857
3858
3859
3860 RenderingId int64 `json:"renderingId,omitempty,string"`
3861
3862
3863
3864
3865 RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"`
3866
3867
3868
3869
3870
3871 RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"`
3872
3873
3874
3875
3876
3877
3878 RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"`
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889 Size *Size `json:"size,omitempty"`
3890
3891
3892
3893
3894 SkipOffset *VideoOffset `json:"skipOffset,omitempty"`
3895
3896
3897
3898
3899 Skippable bool `json:"skippable,omitempty"`
3900
3901
3902
3903 SslCompliant bool `json:"sslCompliant,omitempty"`
3904
3905
3906
3907 SslOverride bool `json:"sslOverride,omitempty"`
3908
3909
3910
3911
3912 StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"`
3913
3914
3915
3916
3917 StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"`
3918
3919
3920
3921
3922
3923 StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"`
3924
3925
3926
3927
3928 SubaccountId int64 `json:"subaccountId,omitempty,string"`
3929
3930
3931
3932
3933 ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"`
3934
3935
3936
3937
3938 ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"`
3939
3940
3941
3942
3943 ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"`
3944
3945
3946
3947
3948
3949
3950 TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"`
3951
3952
3953
3954
3955 TotalFileSize int64 `json:"totalFileSize,omitempty,string"`
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989 Type string `json:"type,omitempty"`
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999 Version int64 `json:"version,omitempty"`
4000
4001
4002
4003 VideoDescription string `json:"videoDescription,omitempty"`
4004
4005
4006
4007
4008 VideoDuration float64 `json:"videoDuration,omitempty"`
4009
4010
4011
4012 googleapi.ServerResponse `json:"-"`
4013
4014
4015
4016
4017
4018
4019
4020 ForceSendFields []string `json:"-"`
4021
4022
4023
4024
4025
4026
4027
4028 NullFields []string `json:"-"`
4029 }
4030
4031 func (s *Creative) MarshalJSON() ([]byte, error) {
4032 type NoMethod Creative
4033 raw := NoMethod(*s)
4034 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4035 }
4036
4037 func (s *Creative) UnmarshalJSON(data []byte) error {
4038 type NoMethod Creative
4039 var s1 struct {
4040 VideoDuration gensupport.JSONFloat64 `json:"videoDuration"`
4041 *NoMethod
4042 }
4043 s1.NoMethod = (*NoMethod)(s)
4044 if err := json.Unmarshal(data, &s1); err != nil {
4045 return err
4046 }
4047 s.VideoDuration = float64(s1.VideoDuration)
4048 return nil
4049 }
4050
4051
4052 type CreativeAsset struct {
4053
4054
4055
4056
4057 ActionScript3 bool `json:"actionScript3,omitempty"`
4058
4059
4060
4061
4062 Active bool `json:"active,omitempty"`
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073 Alignment string `json:"alignment,omitempty"`
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083 ArtworkType string `json:"artworkType,omitempty"`
4084
4085
4086
4087
4088
4089 AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`
4090
4091
4092
4093 BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"`
4094
4095
4096
4097
4098 BitRate int64 `json:"bitRate,omitempty"`
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108 ChildAssetType string `json:"childAssetType,omitempty"`
4109
4110
4111
4112
4113
4114 CollapsedSize *Size `json:"collapsedSize,omitempty"`
4115
4116
4117
4118
4119
4120 CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"`
4121
4122
4123
4124
4125 CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"`
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201 DetectedFeatures []string `json:"detectedFeatures,omitempty"`
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217 DisplayType string `json:"displayType,omitempty"`
4218
4219
4220
4221
4222 Duration int64 `json:"duration,omitempty"`
4223
4224
4225
4226
4227
4228
4229
4230
4231 DurationType string `json:"durationType,omitempty"`
4232
4233
4234
4235
4236 ExpandedDimension *Size `json:"expandedDimension,omitempty"`
4237
4238
4239
4240
4241 FileSize int64 `json:"fileSize,omitempty,string"`
4242
4243
4244
4245
4246
4247 FlashVersion int64 `json:"flashVersion,omitempty"`
4248
4249
4250
4251 HideFlashObjects bool `json:"hideFlashObjects,omitempty"`
4252
4253
4254
4255 HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"`
4256
4257
4258
4259
4260 HorizontallyLocked bool `json:"horizontallyLocked,omitempty"`
4261
4262
4263
4264
4265 Id int64 `json:"id,omitempty,string"`
4266
4267
4268
4269 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
4270
4271
4272
4273
4274 MimeType string `json:"mimeType,omitempty"`
4275
4276
4277
4278
4279
4280
4281 Offset *OffsetPosition `json:"offset,omitempty"`
4282
4283
4284
4285
4286 OriginalBackup bool `json:"originalBackup,omitempty"`
4287
4288
4289
4290 Position *OffsetPosition `json:"position,omitempty"`
4291
4292
4293
4294
4295
4296
4297
4298
4299 PositionLeftUnit string `json:"positionLeftUnit,omitempty"`
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309 PositionTopUnit string `json:"positionTopUnit,omitempty"`
4310
4311
4312
4313
4314 ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"`
4315
4316
4317
4318
4319
4320
4321 Pushdown bool `json:"pushdown,omitempty"`
4322
4323
4324
4325
4326
4327
4328
4329 PushdownDuration float64 `json:"pushdownDuration,omitempty"`
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 Role string `json:"role,omitempty"`
4370
4371
4372
4373
4374
4375
4376
4377
4378 Size *Size `json:"size,omitempty"`
4379
4380
4381
4382
4383 SslCompliant bool `json:"sslCompliant,omitempty"`
4384
4385
4386
4387
4388
4389
4390
4391 StartTimeType string `json:"startTimeType,omitempty"`
4392
4393
4394
4395
4396 StreamingServingUrl string `json:"streamingServingUrl,omitempty"`
4397
4398
4399
4400
4401 Transparency bool `json:"transparency,omitempty"`
4402
4403
4404
4405
4406 VerticallyLocked bool `json:"verticallyLocked,omitempty"`
4407
4408
4409
4410
4411 VideoDuration float64 `json:"videoDuration,omitempty"`
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 WindowMode string `json:"windowMode,omitempty"`
4423
4424
4425
4426
4427
4428
4429 ZIndex int64 `json:"zIndex,omitempty"`
4430
4431
4432
4433 ZipFilename string `json:"zipFilename,omitempty"`
4434
4435
4436
4437 ZipFilesize string `json:"zipFilesize,omitempty"`
4438
4439
4440
4441
4442
4443
4444
4445 ForceSendFields []string `json:"-"`
4446
4447
4448
4449
4450
4451
4452
4453 NullFields []string `json:"-"`
4454 }
4455
4456 func (s *CreativeAsset) MarshalJSON() ([]byte, error) {
4457 type NoMethod CreativeAsset
4458 raw := NoMethod(*s)
4459 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4460 }
4461
4462 func (s *CreativeAsset) UnmarshalJSON(data []byte) error {
4463 type NoMethod CreativeAsset
4464 var s1 struct {
4465 PushdownDuration gensupport.JSONFloat64 `json:"pushdownDuration"`
4466 VideoDuration gensupport.JSONFloat64 `json:"videoDuration"`
4467 *NoMethod
4468 }
4469 s1.NoMethod = (*NoMethod)(s)
4470 if err := json.Unmarshal(data, &s1); err != nil {
4471 return err
4472 }
4473 s.PushdownDuration = float64(s1.PushdownDuration)
4474 s.VideoDuration = float64(s1.VideoDuration)
4475 return nil
4476 }
4477
4478
4479 type CreativeAssetId struct {
4480
4481
4482
4483
4484 Name string `json:"name,omitempty"`
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496 Type string `json:"type,omitempty"`
4497
4498
4499
4500
4501
4502
4503
4504 ForceSendFields []string `json:"-"`
4505
4506
4507
4508
4509
4510
4511
4512 NullFields []string `json:"-"`
4513 }
4514
4515 func (s *CreativeAssetId) MarshalJSON() ([]byte, error) {
4516 type NoMethod CreativeAssetId
4517 raw := NoMethod(*s)
4518 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4519 }
4520
4521
4522
4523
4524
4525 type CreativeAssetMetadata struct {
4526
4527 AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`
4528
4529
4530
4531 ClickTags []*ClickTag `json:"clickTags,omitempty"`
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605 DetectedFeatures []string `json:"detectedFeatures,omitempty"`
4606
4607
4608
4609 Id int64 `json:"id,omitempty,string"`
4610
4611
4612
4613 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
4614
4615
4616
4617 Kind string `json:"kind,omitempty"`
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 WarnedValidationRules []string `json:"warnedValidationRules,omitempty"`
4675
4676
4677
4678 googleapi.ServerResponse `json:"-"`
4679
4680
4681
4682
4683
4684
4685
4686 ForceSendFields []string `json:"-"`
4687
4688
4689
4690
4691
4692
4693
4694
4695 NullFields []string `json:"-"`
4696 }
4697
4698 func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) {
4699 type NoMethod CreativeAssetMetadata
4700 raw := NoMethod(*s)
4701 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4702 }
4703
4704
4705
4706
4707 type CreativeAssetSelection struct {
4708
4709
4710
4711 DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"`
4712
4713
4714
4715
4716
4717 Rules []*Rule `json:"rules,omitempty"`
4718
4719
4720
4721
4722
4723
4724
4725 ForceSendFields []string `json:"-"`
4726
4727
4728
4729
4730
4731
4732
4733
4734 NullFields []string `json:"-"`
4735 }
4736
4737 func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) {
4738 type NoMethod CreativeAssetSelection
4739 raw := NoMethod(*s)
4740 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4741 }
4742
4743
4744 type CreativeAssignment struct {
4745
4746
4747 Active bool `json:"active,omitempty"`
4748
4749
4750
4751
4752
4753
4754 ApplyEventTags bool `json:"applyEventTags,omitempty"`
4755
4756
4757 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
4758
4759
4760
4761 CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"`
4762
4763
4764
4765
4766 CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`
4767
4768
4769
4770 CreativeId int64 `json:"creativeId,omitempty,string"`
4771
4772
4773
4774 CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"`
4775
4776
4777
4778 EndTime string `json:"endTime,omitempty"`
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"`
4795
4796
4797
4798
4799 Sequence int64 `json:"sequence,omitempty"`
4800
4801
4802
4803
4804 SslCompliant bool `json:"sslCompliant,omitempty"`
4805
4806
4807
4808 StartTime string `json:"startTime,omitempty"`
4809
4810
4811
4812
4813 Weight int64 `json:"weight,omitempty"`
4814
4815
4816
4817
4818
4819
4820
4821 ForceSendFields []string `json:"-"`
4822
4823
4824
4825
4826
4827
4828
4829 NullFields []string `json:"-"`
4830 }
4831
4832 func (s *CreativeAssignment) MarshalJSON() ([]byte, error) {
4833 type NoMethod CreativeAssignment
4834 raw := NoMethod(*s)
4835 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4836 }
4837
4838
4839 type CreativeCustomEvent struct {
4840
4841
4842 AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"`
4843
4844
4845 AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"`
4846
4847
4848
4849
4850
4851
4852
4853
4854 AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"`
4855
4856
4857
4858
4859 ArtworkLabel string `json:"artworkLabel,omitempty"`
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869 ArtworkType string `json:"artworkType,omitempty"`
4870
4871
4872
4873 ExitUrl string `json:"exitUrl,omitempty"`
4874
4875
4876
4877 Id int64 `json:"id,omitempty,string"`
4878
4879
4880
4881 PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"`
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891 TargetType string `json:"targetType,omitempty"`
4892
4893
4894
4895 VideoReportingId string `json:"videoReportingId,omitempty"`
4896
4897
4898
4899
4900
4901
4902
4903
4904 ForceSendFields []string `json:"-"`
4905
4906
4907
4908
4909
4910
4911
4912
4913 NullFields []string `json:"-"`
4914 }
4915
4916 func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) {
4917 type NoMethod CreativeCustomEvent
4918 raw := NoMethod(*s)
4919 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4920 }
4921
4922
4923 type CreativeField struct {
4924
4925
4926 AccountId int64 `json:"accountId,omitempty,string"`
4927
4928
4929
4930 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
4931
4932
4933
4934 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
4935
4936
4937
4938 Id int64 `json:"id,omitempty,string"`
4939
4940
4941
4942 Kind string `json:"kind,omitempty"`
4943
4944
4945
4946
4947 Name string `json:"name,omitempty"`
4948
4949
4950
4951 SubaccountId int64 `json:"subaccountId,omitempty,string"`
4952
4953
4954
4955 googleapi.ServerResponse `json:"-"`
4956
4957
4958
4959
4960
4961
4962
4963 ForceSendFields []string `json:"-"`
4964
4965
4966
4967
4968
4969
4970
4971 NullFields []string `json:"-"`
4972 }
4973
4974 func (s *CreativeField) MarshalJSON() ([]byte, error) {
4975 type NoMethod CreativeField
4976 raw := NoMethod(*s)
4977 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4978 }
4979
4980
4981 type CreativeFieldAssignment struct {
4982
4983 CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"`
4984
4985
4986 CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"`
4987
4988
4989
4990
4991
4992
4993
4994 ForceSendFields []string `json:"-"`
4995
4996
4997
4998
4999
5000
5001
5002
5003 NullFields []string `json:"-"`
5004 }
5005
5006 func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) {
5007 type NoMethod CreativeFieldAssignment
5008 raw := NoMethod(*s)
5009 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5010 }
5011
5012
5013 type CreativeFieldValue struct {
5014
5015
5016 Id int64 `json:"id,omitempty,string"`
5017
5018
5019
5020 Kind string `json:"kind,omitempty"`
5021
5022
5023
5024 Value string `json:"value,omitempty"`
5025
5026
5027
5028 googleapi.ServerResponse `json:"-"`
5029
5030
5031
5032
5033
5034
5035
5036 ForceSendFields []string `json:"-"`
5037
5038
5039
5040
5041
5042
5043
5044 NullFields []string `json:"-"`
5045 }
5046
5047 func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) {
5048 type NoMethod CreativeFieldValue
5049 raw := NoMethod(*s)
5050 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5051 }
5052
5053
5054 type CreativeFieldValuesListResponse struct {
5055
5056 CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"`
5057
5058
5059
5060 Kind string `json:"kind,omitempty"`
5061
5062
5063
5064 NextPageToken string `json:"nextPageToken,omitempty"`
5065
5066
5067
5068 googleapi.ServerResponse `json:"-"`
5069
5070
5071
5072
5073
5074
5075
5076 ForceSendFields []string `json:"-"`
5077
5078
5079
5080
5081
5082
5083
5084
5085 NullFields []string `json:"-"`
5086 }
5087
5088 func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) {
5089 type NoMethod CreativeFieldValuesListResponse
5090 raw := NoMethod(*s)
5091 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5092 }
5093
5094
5095 type CreativeFieldsListResponse struct {
5096
5097 CreativeFields []*CreativeField `json:"creativeFields,omitempty"`
5098
5099
5100
5101 Kind string `json:"kind,omitempty"`
5102
5103
5104
5105 NextPageToken string `json:"nextPageToken,omitempty"`
5106
5107
5108
5109 googleapi.ServerResponse `json:"-"`
5110
5111
5112
5113
5114
5115
5116
5117 ForceSendFields []string `json:"-"`
5118
5119
5120
5121
5122
5123
5124
5125
5126 NullFields []string `json:"-"`
5127 }
5128
5129 func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) {
5130 type NoMethod CreativeFieldsListResponse
5131 raw := NoMethod(*s)
5132 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5133 }
5134
5135
5136 type CreativeGroup struct {
5137
5138
5139 AccountId int64 `json:"accountId,omitempty,string"`
5140
5141
5142
5143 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
5144
5145
5146
5147 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
5148
5149
5150
5151
5152
5153 GroupNumber int64 `json:"groupNumber,omitempty"`
5154
5155
5156
5157 Id int64 `json:"id,omitempty,string"`
5158
5159
5160
5161 Kind string `json:"kind,omitempty"`
5162
5163
5164
5165
5166 Name string `json:"name,omitempty"`
5167
5168
5169
5170 SubaccountId int64 `json:"subaccountId,omitempty,string"`
5171
5172
5173
5174 googleapi.ServerResponse `json:"-"`
5175
5176
5177
5178
5179
5180
5181
5182 ForceSendFields []string `json:"-"`
5183
5184
5185
5186
5187
5188
5189
5190 NullFields []string `json:"-"`
5191 }
5192
5193 func (s *CreativeGroup) MarshalJSON() ([]byte, error) {
5194 type NoMethod CreativeGroup
5195 raw := NoMethod(*s)
5196 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5197 }
5198
5199
5200 type CreativeGroupAssignment struct {
5201
5202 CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"`
5203
5204
5205
5206
5207
5208
5209
5210 CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"`
5211
5212
5213
5214
5215
5216
5217
5218 ForceSendFields []string `json:"-"`
5219
5220
5221
5222
5223
5224
5225
5226
5227 NullFields []string `json:"-"`
5228 }
5229
5230 func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) {
5231 type NoMethod CreativeGroupAssignment
5232 raw := NoMethod(*s)
5233 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5234 }
5235
5236
5237 type CreativeGroupsListResponse struct {
5238
5239 CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"`
5240
5241
5242
5243 Kind string `json:"kind,omitempty"`
5244
5245
5246
5247 NextPageToken string `json:"nextPageToken,omitempty"`
5248
5249
5250
5251 googleapi.ServerResponse `json:"-"`
5252
5253
5254
5255
5256
5257
5258
5259 ForceSendFields []string `json:"-"`
5260
5261
5262
5263
5264
5265
5266
5267
5268 NullFields []string `json:"-"`
5269 }
5270
5271 func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) {
5272 type NoMethod CreativeGroupsListResponse
5273 raw := NoMethod(*s)
5274 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5275 }
5276
5277
5278 type CreativeOptimizationConfiguration struct {
5279
5280
5281
5282 Id int64 `json:"id,omitempty,string"`
5283
5284
5285
5286 Name string `json:"name,omitempty"`
5287
5288
5289
5290 OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"`
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 OptimizationModel string `json:"optimizationModel,omitempty"`
5301
5302
5303
5304
5305
5306
5307
5308 ForceSendFields []string `json:"-"`
5309
5310
5311
5312
5313
5314
5315
5316 NullFields []string `json:"-"`
5317 }
5318
5319 func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) {
5320 type NoMethod CreativeOptimizationConfiguration
5321 raw := NoMethod(*s)
5322 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5323 }
5324
5325
5326 type CreativeRotation struct {
5327
5328 CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"`
5329
5330
5331
5332
5333
5334
5335 CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"`
5336
5337
5338
5339
5340
5341
5342
5343 Type string `json:"type,omitempty"`
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"`
5354
5355
5356
5357
5358
5359
5360
5361 ForceSendFields []string `json:"-"`
5362
5363
5364
5365
5366
5367
5368
5369
5370 NullFields []string `json:"-"`
5371 }
5372
5373 func (s *CreativeRotation) MarshalJSON() ([]byte, error) {
5374 type NoMethod CreativeRotation
5375 raw := NoMethod(*s)
5376 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5377 }
5378
5379
5380 type CreativeSettings struct {
5381
5382
5383 IFrameFooter string `json:"iFrameFooter,omitempty"`
5384
5385
5386
5387 IFrameHeader string `json:"iFrameHeader,omitempty"`
5388
5389
5390
5391
5392
5393
5394
5395 ForceSendFields []string `json:"-"`
5396
5397
5398
5399
5400
5401
5402
5403 NullFields []string `json:"-"`
5404 }
5405
5406 func (s *CreativeSettings) MarshalJSON() ([]byte, error) {
5407 type NoMethod CreativeSettings
5408 raw := NoMethod(*s)
5409 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5410 }
5411
5412
5413 type CreativesListResponse struct {
5414
5415 Creatives []*Creative `json:"creatives,omitempty"`
5416
5417
5418
5419 Kind string `json:"kind,omitempty"`
5420
5421
5422
5423 NextPageToken string `json:"nextPageToken,omitempty"`
5424
5425
5426
5427 googleapi.ServerResponse `json:"-"`
5428
5429
5430
5431
5432
5433
5434
5435 ForceSendFields []string `json:"-"`
5436
5437
5438
5439
5440
5441
5442
5443 NullFields []string `json:"-"`
5444 }
5445
5446 func (s *CreativesListResponse) MarshalJSON() ([]byte, error) {
5447 type NoMethod CreativesListResponse
5448 raw := NoMethod(*s)
5449 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5450 }
5451
5452
5453
5454
5455 type CrossDimensionReachReportCompatibleFields struct {
5456
5457
5458 Breakdown []*Dimension `json:"breakdown,omitempty"`
5459
5460
5461
5462 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
5463
5464
5465
5466 Kind string `json:"kind,omitempty"`
5467
5468
5469
5470 Metrics []*Metric `json:"metrics,omitempty"`
5471
5472
5473
5474 OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"`
5475
5476
5477
5478
5479
5480
5481
5482 ForceSendFields []string `json:"-"`
5483
5484
5485
5486
5487
5488
5489
5490 NullFields []string `json:"-"`
5491 }
5492
5493 func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) {
5494 type NoMethod CrossDimensionReachReportCompatibleFields
5495 raw := NoMethod(*s)
5496 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5497 }
5498
5499
5500 type CustomFloodlightVariable struct {
5501
5502
5503 Kind string `json:"kind,omitempty"`
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 Type string `json:"type,omitempty"`
5610
5611
5612
5613 Value string `json:"value,omitempty"`
5614
5615
5616
5617
5618
5619
5620
5621 ForceSendFields []string `json:"-"`
5622
5623
5624
5625
5626
5627
5628
5629 NullFields []string `json:"-"`
5630 }
5631
5632 func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) {
5633 type NoMethod CustomFloodlightVariable
5634 raw := NoMethod(*s)
5635 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5636 }
5637
5638
5639 type CustomRichMediaEvents struct {
5640
5641
5642 FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"`
5643
5644
5645
5646 Kind string `json:"kind,omitempty"`
5647
5648
5649
5650
5651
5652
5653
5654 ForceSendFields []string `json:"-"`
5655
5656
5657
5658
5659
5660
5661
5662
5663 NullFields []string `json:"-"`
5664 }
5665
5666 func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) {
5667 type NoMethod CustomRichMediaEvents
5668 raw := NoMethod(*s)
5669 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5670 }
5671
5672
5673 type DateRange struct {
5674
5675
5676 EndDate string `json:"endDate,omitempty"`
5677
5678
5679
5680 Kind string `json:"kind,omitempty"`
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 RelativeDateRange string `json:"relativeDateRange,omitempty"`
5702
5703
5704
5705 StartDate string `json:"startDate,omitempty"`
5706
5707
5708
5709
5710
5711
5712
5713 ForceSendFields []string `json:"-"`
5714
5715
5716
5717
5718
5719
5720
5721 NullFields []string `json:"-"`
5722 }
5723
5724 func (s *DateRange) MarshalJSON() ([]byte, error) {
5725 type NoMethod DateRange
5726 raw := NoMethod(*s)
5727 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5728 }
5729
5730
5731 type DayPartTargeting struct {
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 DaysOfWeek []string `json:"daysOfWeek,omitempty"`
5752
5753
5754
5755
5756
5757
5758
5759
5760 HoursOfDay []int64 `json:"hoursOfDay,omitempty"`
5761
5762
5763
5764 UserLocalTime bool `json:"userLocalTime,omitempty"`
5765
5766
5767
5768
5769
5770
5771
5772 ForceSendFields []string `json:"-"`
5773
5774
5775
5776
5777
5778
5779
5780 NullFields []string `json:"-"`
5781 }
5782
5783 func (s *DayPartTargeting) MarshalJSON() ([]byte, error) {
5784 type NoMethod DayPartTargeting
5785 raw := NoMethod(*s)
5786 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5787 }
5788
5789
5790
5791
5792
5793 type DefaultClickThroughEventTagProperties struct {
5794
5795
5796 DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"`
5797
5798
5799
5800 OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"`
5801
5802
5803
5804
5805
5806
5807
5808
5809 ForceSendFields []string `json:"-"`
5810
5811
5812
5813
5814
5815
5816
5817
5818 NullFields []string `json:"-"`
5819 }
5820
5821 func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) {
5822 type NoMethod DefaultClickThroughEventTagProperties
5823 raw := NoMethod(*s)
5824 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5825 }
5826
5827
5828 type DeliverySchedule struct {
5829
5830
5831 FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"`
5832
5833
5834
5835
5836 HardCutoff bool `json:"hardCutoff,omitempty"`
5837
5838
5839
5840
5841
5842
5843 ImpressionRatio int64 `json:"impressionRatio,omitempty,string"`
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 Priority string `json:"priority,omitempty"`
5867
5868
5869
5870
5871
5872
5873
5874 ForceSendFields []string `json:"-"`
5875
5876
5877
5878
5879
5880
5881
5882 NullFields []string `json:"-"`
5883 }
5884
5885 func (s *DeliverySchedule) MarshalJSON() ([]byte, error) {
5886 type NoMethod DeliverySchedule
5887 raw := NoMethod(*s)
5888 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5889 }
5890
5891
5892 type DfpSettings struct {
5893
5894 DfpNetworkCode string `json:"dfp_network_code,omitempty"`
5895
5896
5897 DfpNetworkName string `json:"dfp_network_name,omitempty"`
5898
5899
5900
5901 ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"`
5902
5903
5904
5905 PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"`
5906
5907
5908
5909 PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"`
5910
5911
5912
5913
5914
5915
5916
5917 ForceSendFields []string `json:"-"`
5918
5919
5920
5921
5922
5923
5924
5925
5926 NullFields []string `json:"-"`
5927 }
5928
5929 func (s *DfpSettings) MarshalJSON() ([]byte, error) {
5930 type NoMethod DfpSettings
5931 raw := NoMethod(*s)
5932 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5933 }
5934
5935
5936 type Dimension struct {
5937
5938
5939 Kind string `json:"kind,omitempty"`
5940
5941
5942 Name string `json:"name,omitempty"`
5943
5944
5945
5946
5947
5948
5949
5950 ForceSendFields []string `json:"-"`
5951
5952
5953
5954
5955
5956
5957
5958 NullFields []string `json:"-"`
5959 }
5960
5961 func (s *Dimension) MarshalJSON() ([]byte, error) {
5962 type NoMethod Dimension
5963 raw := NoMethod(*s)
5964 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5965 }
5966
5967
5968 type DimensionFilter struct {
5969
5970 DimensionName string `json:"dimensionName,omitempty"`
5971
5972
5973
5974 Kind string `json:"kind,omitempty"`
5975
5976
5977 Value string `json:"value,omitempty"`
5978
5979
5980
5981
5982
5983
5984
5985 ForceSendFields []string `json:"-"`
5986
5987
5988
5989
5990
5991
5992
5993 NullFields []string `json:"-"`
5994 }
5995
5996 func (s *DimensionFilter) MarshalJSON() ([]byte, error) {
5997 type NoMethod DimensionFilter
5998 raw := NoMethod(*s)
5999 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6000 }
6001
6002
6003 type DimensionValue struct {
6004
6005 DimensionName string `json:"dimensionName,omitempty"`
6006
6007
6008 Etag string `json:"etag,omitempty"`
6009
6010
6011 Id string `json:"id,omitempty"`
6012
6013
6014
6015 Kind string `json:"kind,omitempty"`
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 MatchType string `json:"matchType,omitempty"`
6030
6031
6032 Value string `json:"value,omitempty"`
6033
6034
6035
6036
6037
6038
6039
6040 ForceSendFields []string `json:"-"`
6041
6042
6043
6044
6045
6046
6047
6048 NullFields []string `json:"-"`
6049 }
6050
6051 func (s *DimensionValue) MarshalJSON() ([]byte, error) {
6052 type NoMethod DimensionValue
6053 raw := NoMethod(*s)
6054 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6055 }
6056
6057
6058 type DimensionValueList struct {
6059
6060 Etag string `json:"etag,omitempty"`
6061
6062
6063 Items []*DimensionValue `json:"items,omitempty"`
6064
6065
6066
6067 Kind string `json:"kind,omitempty"`
6068
6069
6070
6071
6072
6073 NextPageToken string `json:"nextPageToken,omitempty"`
6074
6075
6076
6077 googleapi.ServerResponse `json:"-"`
6078
6079
6080
6081
6082
6083
6084
6085 ForceSendFields []string `json:"-"`
6086
6087
6088
6089
6090
6091
6092
6093 NullFields []string `json:"-"`
6094 }
6095
6096 func (s *DimensionValueList) MarshalJSON() ([]byte, error) {
6097 type NoMethod DimensionValueList
6098 raw := NoMethod(*s)
6099 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6100 }
6101
6102
6103 type DimensionValueRequest struct {
6104
6105
6106 DimensionName string `json:"dimensionName,omitempty"`
6107
6108
6109
6110 EndDate string `json:"endDate,omitempty"`
6111
6112
6113
6114 Filters []*DimensionFilter `json:"filters,omitempty"`
6115
6116
6117
6118 Kind string `json:"kind,omitempty"`
6119
6120
6121
6122 StartDate string `json:"startDate,omitempty"`
6123
6124
6125
6126
6127
6128
6129
6130 ForceSendFields []string `json:"-"`
6131
6132
6133
6134
6135
6136
6137
6138 NullFields []string `json:"-"`
6139 }
6140
6141 func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) {
6142 type NoMethod DimensionValueRequest
6143 raw := NoMethod(*s)
6144 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6145 }
6146
6147
6148
6149
6150 type DirectorySite struct {
6151
6152 Active bool `json:"active,omitempty"`
6153
6154
6155 ContactAssignments []*DirectorySiteContactAssignment `json:"contactAssignments,omitempty"`
6156
6157
6158
6159 CountryId int64 `json:"countryId,omitempty,string"`
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 CurrencyId int64 `json:"currencyId,omitempty,string"`
6214
6215
6216
6217 Description string `json:"description,omitempty"`
6218
6219
6220
6221 Id int64 `json:"id,omitempty,string"`
6222
6223
6224
6225 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240 InpageTagFormats []string `json:"inpageTagFormats,omitempty"`
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"`
6255
6256
6257
6258 Kind string `json:"kind,omitempty"`
6259
6260
6261 Name string `json:"name,omitempty"`
6262
6263
6264 ParentId int64 `json:"parentId,omitempty,string"`
6265
6266
6267 Settings *DirectorySiteSettings `json:"settings,omitempty"`
6268
6269
6270 Url string `json:"url,omitempty"`
6271
6272
6273
6274 googleapi.ServerResponse `json:"-"`
6275
6276
6277
6278
6279
6280
6281
6282 ForceSendFields []string `json:"-"`
6283
6284
6285
6286
6287
6288
6289
6290 NullFields []string `json:"-"`
6291 }
6292
6293 func (s *DirectorySite) MarshalJSON() ([]byte, error) {
6294 type NoMethod DirectorySite
6295 raw := NoMethod(*s)
6296 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6297 }
6298
6299
6300
6301 type DirectorySiteContact struct {
6302
6303 Address string `json:"address,omitempty"`
6304
6305
6306 Email string `json:"email,omitempty"`
6307
6308
6309 FirstName string `json:"firstName,omitempty"`
6310
6311
6312
6313 Id int64 `json:"id,omitempty,string"`
6314
6315
6316
6317 Kind string `json:"kind,omitempty"`
6318
6319
6320 LastName string `json:"lastName,omitempty"`
6321
6322
6323 Phone string `json:"phone,omitempty"`
6324
6325
6326
6327
6328
6329
6330
6331 Role string `json:"role,omitempty"`
6332
6333
6334 Title string `json:"title,omitempty"`
6335
6336
6337
6338
6339
6340
6341
6342
6343 Type string `json:"type,omitempty"`
6344
6345
6346
6347 googleapi.ServerResponse `json:"-"`
6348
6349
6350
6351
6352
6353
6354
6355 ForceSendFields []string `json:"-"`
6356
6357
6358
6359
6360
6361
6362
6363 NullFields []string `json:"-"`
6364 }
6365
6366 func (s *DirectorySiteContact) MarshalJSON() ([]byte, error) {
6367 type NoMethod DirectorySiteContact
6368 raw := NoMethod(*s)
6369 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6370 }
6371
6372
6373 type DirectorySiteContactAssignment struct {
6374
6375
6376 ContactId int64 `json:"contactId,omitempty,string"`
6377
6378
6379
6380
6381
6382
6383
6384
6385 Visibility string `json:"visibility,omitempty"`
6386
6387
6388
6389
6390
6391
6392
6393 ForceSendFields []string `json:"-"`
6394
6395
6396
6397
6398
6399
6400
6401 NullFields []string `json:"-"`
6402 }
6403
6404 func (s *DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) {
6405 type NoMethod DirectorySiteContactAssignment
6406 raw := NoMethod(*s)
6407 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6408 }
6409
6410
6411
6412 type DirectorySiteContactsListResponse struct {
6413
6414 DirectorySiteContacts []*DirectorySiteContact `json:"directorySiteContacts,omitempty"`
6415
6416
6417
6418 Kind string `json:"kind,omitempty"`
6419
6420
6421
6422 NextPageToken string `json:"nextPageToken,omitempty"`
6423
6424
6425
6426 googleapi.ServerResponse `json:"-"`
6427
6428
6429
6430
6431
6432
6433
6434
6435 ForceSendFields []string `json:"-"`
6436
6437
6438
6439
6440
6441
6442
6443
6444 NullFields []string `json:"-"`
6445 }
6446
6447 func (s *DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) {
6448 type NoMethod DirectorySiteContactsListResponse
6449 raw := NoMethod(*s)
6450 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6451 }
6452
6453
6454 type DirectorySiteSettings struct {
6455
6456
6457 ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
6458
6459
6460 DfpSettings *DfpSettings `json:"dfp_settings,omitempty"`
6461
6462
6463
6464 InstreamVideoPlacementAccepted bool `json:"instream_video_placement_accepted,omitempty"`
6465
6466
6467
6468 InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"`
6469
6470
6471
6472 NielsenOcrOptOut bool `json:"nielsenOcrOptOut,omitempty"`
6473
6474
6475
6476 VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"`
6477
6478
6479
6480 VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"`
6481
6482
6483
6484
6485
6486
6487
6488 ForceSendFields []string `json:"-"`
6489
6490
6491
6492
6493
6494
6495
6496
6497 NullFields []string `json:"-"`
6498 }
6499
6500 func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) {
6501 type NoMethod DirectorySiteSettings
6502 raw := NoMethod(*s)
6503 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6504 }
6505
6506
6507 type DirectorySitesListResponse struct {
6508
6509 DirectorySites []*DirectorySite `json:"directorySites,omitempty"`
6510
6511
6512
6513 Kind string `json:"kind,omitempty"`
6514
6515
6516
6517 NextPageToken string `json:"nextPageToken,omitempty"`
6518
6519
6520
6521 googleapi.ServerResponse `json:"-"`
6522
6523
6524
6525
6526
6527
6528
6529 ForceSendFields []string `json:"-"`
6530
6531
6532
6533
6534
6535
6536
6537
6538 NullFields []string `json:"-"`
6539 }
6540
6541 func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) {
6542 type NoMethod DirectorySitesListResponse
6543 raw := NoMethod(*s)
6544 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6545 }
6546
6547
6548
6549
6550
6551
6552
6553 type DynamicTargetingKey struct {
6554
6555
6556 Kind string `json:"kind,omitempty"`
6557
6558
6559
6560
6561 Name string `json:"name,omitempty"`
6562
6563
6564
6565 ObjectId int64 `json:"objectId,omitempty,string"`
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 ObjectType string `json:"objectType,omitempty"`
6576
6577
6578
6579 googleapi.ServerResponse `json:"-"`
6580
6581
6582
6583
6584
6585
6586
6587 ForceSendFields []string `json:"-"`
6588
6589
6590
6591
6592
6593
6594
6595 NullFields []string `json:"-"`
6596 }
6597
6598 func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) {
6599 type NoMethod DynamicTargetingKey
6600 raw := NoMethod(*s)
6601 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6602 }
6603
6604
6605 type DynamicTargetingKeysListResponse struct {
6606
6607 DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"`
6608
6609
6610
6611 Kind string `json:"kind,omitempty"`
6612
6613
6614
6615 googleapi.ServerResponse `json:"-"`
6616
6617
6618
6619
6620
6621
6622
6623
6624 ForceSendFields []string `json:"-"`
6625
6626
6627
6628
6629
6630
6631
6632
6633 NullFields []string `json:"-"`
6634 }
6635
6636 func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) {
6637 type NoMethod DynamicTargetingKeysListResponse
6638 raw := NoMethod(*s)
6639 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6640 }
6641
6642
6643 type EncryptionInfo struct {
6644
6645
6646 EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"`
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 EncryptionEntityType string `json:"encryptionEntityType,omitempty"`
6659
6660
6661
6662
6663
6664
6665
6666
6667 EncryptionSource string `json:"encryptionSource,omitempty"`
6668
6669
6670
6671 Kind string `json:"kind,omitempty"`
6672
6673
6674
6675
6676
6677
6678
6679 ForceSendFields []string `json:"-"`
6680
6681
6682
6683
6684
6685
6686
6687
6688 NullFields []string `json:"-"`
6689 }
6690
6691 func (s *EncryptionInfo) MarshalJSON() ([]byte, error) {
6692 type NoMethod EncryptionInfo
6693 raw := NoMethod(*s)
6694 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6695 }
6696
6697
6698 type EventTag struct {
6699
6700
6701 AccountId int64 `json:"accountId,omitempty,string"`
6702
6703
6704
6705 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
6706
6707
6708
6709 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
6710
6711
6712
6713 CampaignId int64 `json:"campaignId,omitempty,string"`
6714
6715
6716
6717 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
6718
6719
6720
6721 EnabledByDefault bool `json:"enabledByDefault,omitempty"`
6722
6723
6724
6725
6726
6727
6728 ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"`
6729
6730
6731 Id int64 `json:"id,omitempty,string"`
6732
6733
6734
6735 Kind string `json:"kind,omitempty"`
6736
6737
6738
6739 Name string `json:"name,omitempty"`
6740
6741
6742
6743
6744
6745
6746
6747 SiteFilterType string `json:"siteFilterType,omitempty"`
6748
6749
6750
6751
6752 SiteIds googleapi.Int64s `json:"siteIds,omitempty"`
6753
6754
6755
6756 SslCompliant bool `json:"sslCompliant,omitempty"`
6757
6758
6759
6760
6761
6762
6763
6764 Status string `json:"status,omitempty"`
6765
6766
6767
6768 SubaccountId int64 `json:"subaccountId,omitempty,string"`
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 Type string `json:"type,omitempty"`
6780
6781
6782
6783
6784 Url string `json:"url,omitempty"`
6785
6786
6787
6788
6789
6790 UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"`
6791
6792
6793
6794 googleapi.ServerResponse `json:"-"`
6795
6796
6797
6798
6799
6800
6801
6802 ForceSendFields []string `json:"-"`
6803
6804
6805
6806
6807
6808
6809
6810 NullFields []string `json:"-"`
6811 }
6812
6813 func (s *EventTag) MarshalJSON() ([]byte, error) {
6814 type NoMethod EventTag
6815 raw := NoMethod(*s)
6816 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6817 }
6818
6819
6820 type EventTagOverride struct {
6821
6822 Enabled bool `json:"enabled,omitempty"`
6823
6824
6825
6826 Id int64 `json:"id,omitempty,string"`
6827
6828
6829
6830
6831
6832
6833
6834 ForceSendFields []string `json:"-"`
6835
6836
6837
6838
6839
6840
6841
6842 NullFields []string `json:"-"`
6843 }
6844
6845 func (s *EventTagOverride) MarshalJSON() ([]byte, error) {
6846 type NoMethod EventTagOverride
6847 raw := NoMethod(*s)
6848 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6849 }
6850
6851
6852 type EventTagsListResponse struct {
6853
6854 EventTags []*EventTag `json:"eventTags,omitempty"`
6855
6856
6857
6858 Kind string `json:"kind,omitempty"`
6859
6860
6861
6862 googleapi.ServerResponse `json:"-"`
6863
6864
6865
6866
6867
6868
6869
6870 ForceSendFields []string `json:"-"`
6871
6872
6873
6874
6875
6876
6877
6878 NullFields []string `json:"-"`
6879 }
6880
6881 func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) {
6882 type NoMethod EventTagsListResponse
6883 raw := NoMethod(*s)
6884 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6885 }
6886
6887
6888
6889
6890
6891 type File struct {
6892
6893
6894
6895 DateRange *DateRange `json:"dateRange,omitempty"`
6896
6897
6898 Etag string `json:"etag,omitempty"`
6899
6900
6901 FileName string `json:"fileName,omitempty"`
6902
6903
6904
6905
6906
6907
6908
6909 Format string `json:"format,omitempty"`
6910
6911
6912 Id int64 `json:"id,omitempty,string"`
6913
6914
6915 Kind string `json:"kind,omitempty"`
6916
6917
6918
6919 LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"`
6920
6921
6922 ReportId int64 `json:"reportId,omitempty,string"`
6923
6924
6925
6926
6927
6928
6929
6930
6931 Status string `json:"status,omitempty"`
6932
6933
6934 Urls *FileUrls `json:"urls,omitempty"`
6935
6936
6937
6938 googleapi.ServerResponse `json:"-"`
6939
6940
6941
6942
6943
6944
6945
6946 ForceSendFields []string `json:"-"`
6947
6948
6949
6950
6951
6952
6953
6954 NullFields []string `json:"-"`
6955 }
6956
6957 func (s *File) MarshalJSON() ([]byte, error) {
6958 type NoMethod File
6959 raw := NoMethod(*s)
6960 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6961 }
6962
6963
6964 type FileUrls struct {
6965
6966 ApiUrl string `json:"apiUrl,omitempty"`
6967
6968
6969
6970 BrowserUrl string `json:"browserUrl,omitempty"`
6971
6972
6973
6974
6975
6976
6977
6978 ForceSendFields []string `json:"-"`
6979
6980
6981
6982
6983
6984
6985
6986 NullFields []string `json:"-"`
6987 }
6988
6989 func (s *FileUrls) MarshalJSON() ([]byte, error) {
6990 type NoMethod FileUrls
6991 raw := NoMethod(*s)
6992 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6993 }
6994
6995
6996 type FileList struct {
6997
6998 Etag string `json:"etag,omitempty"`
6999
7000
7001 Items []*File `json:"items,omitempty"`
7002
7003
7004 Kind string `json:"kind,omitempty"`
7005
7006
7007
7008
7009
7010 NextPageToken string `json:"nextPageToken,omitempty"`
7011
7012
7013
7014 googleapi.ServerResponse `json:"-"`
7015
7016
7017
7018
7019
7020
7021
7022 ForceSendFields []string `json:"-"`
7023
7024
7025
7026
7027
7028
7029
7030 NullFields []string `json:"-"`
7031 }
7032
7033 func (s *FileList) MarshalJSON() ([]byte, error) {
7034 type NoMethod FileList
7035 raw := NoMethod(*s)
7036 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7037 }
7038
7039
7040 type Flight struct {
7041
7042 EndDate string `json:"endDate,omitempty"`
7043
7044
7045 RateOrCost int64 `json:"rateOrCost,omitempty,string"`
7046
7047
7048 StartDate string `json:"startDate,omitempty"`
7049
7050
7051 Units int64 `json:"units,omitempty,string"`
7052
7053
7054
7055
7056
7057
7058
7059 ForceSendFields []string `json:"-"`
7060
7061
7062
7063
7064
7065
7066
7067 NullFields []string `json:"-"`
7068 }
7069
7070 func (s *Flight) MarshalJSON() ([]byte, error) {
7071 type NoMethod Flight
7072 raw := NoMethod(*s)
7073 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7074 }
7075
7076
7077
7078 type FloodlightActivitiesGenerateTagResponse struct {
7079
7080
7081 FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"`
7082
7083
7084
7085 Kind string `json:"kind,omitempty"`
7086
7087
7088
7089 googleapi.ServerResponse `json:"-"`
7090
7091
7092
7093
7094
7095
7096
7097
7098 ForceSendFields []string `json:"-"`
7099
7100
7101
7102
7103
7104
7105
7106
7107 NullFields []string `json:"-"`
7108 }
7109
7110 func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) {
7111 type NoMethod FloodlightActivitiesGenerateTagResponse
7112 raw := NoMethod(*s)
7113 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7114 }
7115
7116
7117 type FloodlightActivitiesListResponse struct {
7118
7119 FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"`
7120
7121
7122
7123 Kind string `json:"kind,omitempty"`
7124
7125
7126
7127 NextPageToken string `json:"nextPageToken,omitempty"`
7128
7129
7130
7131 googleapi.ServerResponse `json:"-"`
7132
7133
7134
7135
7136
7137
7138
7139
7140 ForceSendFields []string `json:"-"`
7141
7142
7143
7144
7145
7146
7147
7148
7149 NullFields []string `json:"-"`
7150 }
7151
7152 func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) {
7153 type NoMethod FloodlightActivitiesListResponse
7154 raw := NoMethod(*s)
7155 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7156 }
7157
7158
7159 type FloodlightActivity struct {
7160
7161
7162 AccountId int64 `json:"accountId,omitempty,string"`
7163
7164
7165
7166
7167 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
7168
7169
7170
7171 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 CacheBustingType string `json:"cacheBustingType,omitempty"`
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 CountingMethod string `json:"countingMethod,omitempty"`
7195
7196
7197 DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"`
7198
7199
7200
7201 ExpectedUrl string `json:"expectedUrl,omitempty"`
7202
7203
7204
7205 FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"`
7206
7207
7208
7209 FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"`
7210
7211
7212
7213 FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"`
7214
7215
7216
7217
7218
7219
7220
7221 FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"`
7222
7223
7224
7225
7226
7227 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
7228
7229
7230
7231
7232 FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
7233
7234
7235 Hidden bool `json:"hidden,omitempty"`
7236
7237
7238
7239 Id int64 `json:"id,omitempty,string"`
7240
7241
7242
7243 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
7244
7245
7246 ImageTagEnabled bool `json:"imageTagEnabled,omitempty"`
7247
7248
7249
7250 Kind string `json:"kind,omitempty"`
7251
7252
7253
7254 Name string `json:"name,omitempty"`
7255
7256
7257 Notes string `json:"notes,omitempty"`
7258
7259
7260 PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"`
7261
7262
7263 Secure bool `json:"secure,omitempty"`
7264
7265
7266
7267
7268 SslCompliant bool `json:"sslCompliant,omitempty"`
7269
7270
7271 SslRequired bool `json:"sslRequired,omitempty"`
7272
7273
7274
7275 SubaccountId int64 `json:"subaccountId,omitempty,string"`
7276
7277
7278
7279
7280
7281
7282
7283 TagFormat string `json:"tagFormat,omitempty"`
7284
7285
7286
7287
7288
7289
7290
7291
7292 TagString string `json:"tagString,omitempty"`
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"`
7401
7402
7403
7404 googleapi.ServerResponse `json:"-"`
7405
7406
7407
7408
7409
7410
7411
7412 ForceSendFields []string `json:"-"`
7413
7414
7415
7416
7417
7418
7419
7420 NullFields []string `json:"-"`
7421 }
7422
7423 func (s *FloodlightActivity) MarshalJSON() ([]byte, error) {
7424 type NoMethod FloodlightActivity
7425 raw := NoMethod(*s)
7426 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7427 }
7428
7429
7430 type FloodlightActivityDynamicTag struct {
7431
7432
7433 Id int64 `json:"id,omitempty,string"`
7434
7435
7436 Name string `json:"name,omitempty"`
7437
7438
7439 Tag string `json:"tag,omitempty"`
7440
7441
7442
7443
7444
7445
7446
7447 ForceSendFields []string `json:"-"`
7448
7449
7450
7451
7452
7453
7454
7455 NullFields []string `json:"-"`
7456 }
7457
7458 func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) {
7459 type NoMethod FloodlightActivityDynamicTag
7460 raw := NoMethod(*s)
7461 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7462 }
7463
7464
7465
7466 type FloodlightActivityGroup struct {
7467
7468
7469 AccountId int64 `json:"accountId,omitempty,string"`
7470
7471
7472
7473
7474
7475 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
7476
7477
7478
7479 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
7480
7481
7482
7483 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
7484
7485
7486
7487
7488 FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
7489
7490
7491
7492 Id int64 `json:"id,omitempty,string"`
7493
7494
7495
7496 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
7497
7498
7499
7500 Kind string `json:"kind,omitempty"`
7501
7502
7503
7504
7505 Name string `json:"name,omitempty"`
7506
7507
7508
7509 SubaccountId int64 `json:"subaccountId,omitempty,string"`
7510
7511
7512
7513
7514
7515
7516
7517
7518 TagString string `json:"tagString,omitempty"`
7519
7520
7521
7522
7523
7524
7525
7526 Type string `json:"type,omitempty"`
7527
7528
7529
7530 googleapi.ServerResponse `json:"-"`
7531
7532
7533
7534
7535
7536
7537
7538 ForceSendFields []string `json:"-"`
7539
7540
7541
7542
7543
7544
7545
7546 NullFields []string `json:"-"`
7547 }
7548
7549 func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) {
7550 type NoMethod FloodlightActivityGroup
7551 raw := NoMethod(*s)
7552 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7553 }
7554
7555
7556
7557 type FloodlightActivityGroupsListResponse struct {
7558
7559 FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"`
7560
7561
7562
7563 Kind string `json:"kind,omitempty"`
7564
7565
7566
7567 NextPageToken string `json:"nextPageToken,omitempty"`
7568
7569
7570
7571 googleapi.ServerResponse `json:"-"`
7572
7573
7574
7575
7576
7577
7578
7579
7580 ForceSendFields []string `json:"-"`
7581
7582
7583
7584
7585
7586
7587
7588
7589 NullFields []string `json:"-"`
7590 }
7591
7592 func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) {
7593 type NoMethod FloodlightActivityGroupsListResponse
7594 raw := NoMethod(*s)
7595 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7596 }
7597
7598
7599 type FloodlightActivityPublisherDynamicTag struct {
7600
7601 ClickThrough bool `json:"clickThrough,omitempty"`
7602
7603
7604
7605
7606
7607 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
7608
7609
7610 DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"`
7611
7612
7613 SiteId int64 `json:"siteId,omitempty,string"`
7614
7615
7616
7617 SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`
7618
7619
7620 ViewThrough bool `json:"viewThrough,omitempty"`
7621
7622
7623
7624
7625
7626
7627
7628 ForceSendFields []string `json:"-"`
7629
7630
7631
7632
7633
7634
7635
7636 NullFields []string `json:"-"`
7637 }
7638
7639 func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) {
7640 type NoMethod FloodlightActivityPublisherDynamicTag
7641 raw := NoMethod(*s)
7642 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7643 }
7644
7645
7646
7647 type FloodlightConfiguration struct {
7648
7649
7650 AccountId int64 `json:"accountId,omitempty,string"`
7651
7652
7653
7654 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
7655
7656
7657
7658 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
7659
7660
7661
7662 AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"`
7663
7664
7665
7666
7667
7668 ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"`
7669
7670
7671
7672
7673
7674
7675
7676 FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"`
7677
7678
7679
7680 Id int64 `json:"id,omitempty,string"`
7681
7682
7683
7684 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
7685
7686
7687
7688 InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"`
7689
7690
7691
7692 Kind string `json:"kind,omitempty"`
7693
7694
7695
7696 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
7697
7698
7699
7700
7701
7702
7703
7704
7705 NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"`
7706
7707
7708 OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"`
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722 StandardVariableTypes []string `json:"standardVariableTypes,omitempty"`
7723
7724
7725
7726 SubaccountId int64 `json:"subaccountId,omitempty,string"`
7727
7728
7729
7730 TagSettings *TagSettings `json:"tagSettings,omitempty"`
7731
7732
7733
7734 ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"`
7735
7736
7737
7738 UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"`
7739
7740
7741
7742 googleapi.ServerResponse `json:"-"`
7743
7744
7745
7746
7747
7748
7749
7750 ForceSendFields []string `json:"-"`
7751
7752
7753
7754
7755
7756
7757
7758 NullFields []string `json:"-"`
7759 }
7760
7761 func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) {
7762 type NoMethod FloodlightConfiguration
7763 raw := NoMethod(*s)
7764 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7765 }
7766
7767
7768
7769 type FloodlightConfigurationsListResponse struct {
7770
7771 FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"`
7772
7773
7774
7775 Kind string `json:"kind,omitempty"`
7776
7777
7778
7779 googleapi.ServerResponse `json:"-"`
7780
7781
7782
7783
7784
7785
7786
7787
7788 ForceSendFields []string `json:"-"`
7789
7790
7791
7792
7793
7794
7795
7796
7797 NullFields []string `json:"-"`
7798 }
7799
7800 func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) {
7801 type NoMethod FloodlightConfigurationsListResponse
7802 raw := NoMethod(*s)
7803 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7804 }
7805
7806
7807
7808 type FloodlightReportCompatibleFields struct {
7809
7810
7811 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
7812
7813
7814
7815 Dimensions []*Dimension `json:"dimensions,omitempty"`
7816
7817
7818
7819 Kind string `json:"kind,omitempty"`
7820
7821
7822
7823 Metrics []*Metric `json:"metrics,omitempty"`
7824
7825
7826
7827
7828
7829
7830
7831 ForceSendFields []string `json:"-"`
7832
7833
7834
7835
7836
7837
7838
7839
7840 NullFields []string `json:"-"`
7841 }
7842
7843 func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) {
7844 type NoMethod FloodlightReportCompatibleFields
7845 raw := NoMethod(*s)
7846 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7847 }
7848
7849
7850 type FrequencyCap struct {
7851
7852
7853
7854 Duration int64 `json:"duration,omitempty,string"`
7855
7856
7857
7858
7859 Impressions int64 `json:"impressions,omitempty,string"`
7860
7861
7862
7863
7864
7865
7866
7867 ForceSendFields []string `json:"-"`
7868
7869
7870
7871
7872
7873
7874
7875 NullFields []string `json:"-"`
7876 }
7877
7878 func (s *FrequencyCap) MarshalJSON() ([]byte, error) {
7879 type NoMethod FrequencyCap
7880 raw := NoMethod(*s)
7881 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7882 }
7883
7884
7885 type FsCommand struct {
7886
7887
7888 Left int64 `json:"left,omitempty"`
7889
7890
7891
7892
7893
7894
7895 PositionOption string `json:"positionOption,omitempty"`
7896
7897
7898
7899 Top int64 `json:"top,omitempty"`
7900
7901
7902 WindowHeight int64 `json:"windowHeight,omitempty"`
7903
7904
7905 WindowWidth int64 `json:"windowWidth,omitempty"`
7906
7907
7908
7909
7910
7911
7912
7913 ForceSendFields []string `json:"-"`
7914
7915
7916
7917
7918
7919
7920
7921 NullFields []string `json:"-"`
7922 }
7923
7924 func (s *FsCommand) MarshalJSON() ([]byte, error) {
7925 type NoMethod FsCommand
7926 raw := NoMethod(*s)
7927 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7928 }
7929
7930
7931 type GeoTargeting struct {
7932
7933
7934
7935
7936 Cities []*City `json:"cities,omitempty"`
7937
7938
7939
7940
7941
7942
7943
7944 Countries []*Country `json:"countries,omitempty"`
7945
7946
7947
7948
7949 ExcludeCountries bool `json:"excludeCountries,omitempty"`
7950
7951
7952
7953
7954
7955 Metros []*Metro `json:"metros,omitempty"`
7956
7957
7958
7959
7960
7961 PostalCodes []*PostalCode `json:"postalCodes,omitempty"`
7962
7963
7964
7965
7966
7967 Regions []*Region `json:"regions,omitempty"`
7968
7969
7970
7971
7972
7973
7974
7975 ForceSendFields []string `json:"-"`
7976
7977
7978
7979
7980
7981
7982
7983 NullFields []string `json:"-"`
7984 }
7985
7986 func (s *GeoTargeting) MarshalJSON() ([]byte, error) {
7987 type NoMethod GeoTargeting
7988 raw := NoMethod(*s)
7989 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7990 }
7991
7992
7993
7994 type InventoryItem struct {
7995
7996 AccountId int64 `json:"accountId,omitempty,string"`
7997
7998
7999
8000
8001
8002
8003 AdSlots []*AdSlot `json:"adSlots,omitempty"`
8004
8005
8006 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
8007
8008
8009 ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`
8010
8011
8012
8013 EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"`
8014
8015
8016
8017 EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"`
8018
8019
8020 Id int64 `json:"id,omitempty,string"`
8021
8022
8023 InPlan bool `json:"inPlan,omitempty"`
8024
8025
8026
8027 Kind string `json:"kind,omitempty"`
8028
8029
8030
8031 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
8032
8033
8034
8035
8036
8037 Name string `json:"name,omitempty"`
8038
8039
8040 NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"`
8041
8042
8043 OrderId int64 `json:"orderId,omitempty,string"`
8044
8045
8046 PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`
8047
8048
8049 Pricing *Pricing `json:"pricing,omitempty"`
8050
8051
8052 ProjectId int64 `json:"projectId,omitempty,string"`
8053
8054
8055 RfpId int64 `json:"rfpId,omitempty,string"`
8056
8057
8058 SiteId int64 `json:"siteId,omitempty,string"`
8059
8060
8061 SubaccountId int64 `json:"subaccountId,omitempty,string"`
8062
8063
8064
8065
8066
8067
8068 Type string `json:"type,omitempty"`
8069
8070
8071
8072 googleapi.ServerResponse `json:"-"`
8073
8074
8075
8076
8077
8078
8079
8080 ForceSendFields []string `json:"-"`
8081
8082
8083
8084
8085
8086
8087
8088 NullFields []string `json:"-"`
8089 }
8090
8091 func (s *InventoryItem) MarshalJSON() ([]byte, error) {
8092 type NoMethod InventoryItem
8093 raw := NoMethod(*s)
8094 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8095 }
8096
8097
8098 type InventoryItemsListResponse struct {
8099
8100 InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"`
8101
8102
8103
8104 Kind string `json:"kind,omitempty"`
8105
8106
8107
8108 NextPageToken string `json:"nextPageToken,omitempty"`
8109
8110
8111
8112 googleapi.ServerResponse `json:"-"`
8113
8114
8115
8116
8117
8118
8119
8120 ForceSendFields []string `json:"-"`
8121
8122
8123
8124
8125
8126
8127
8128
8129 NullFields []string `json:"-"`
8130 }
8131
8132 func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) {
8133 type NoMethod InventoryItemsListResponse
8134 raw := NoMethod(*s)
8135 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8136 }
8137
8138
8139 type KeyValueTargetingExpression struct {
8140
8141 Expression string `json:"expression,omitempty"`
8142
8143
8144
8145
8146
8147
8148
8149 ForceSendFields []string `json:"-"`
8150
8151
8152
8153
8154
8155
8156
8157 NullFields []string `json:"-"`
8158 }
8159
8160 func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) {
8161 type NoMethod KeyValueTargetingExpression
8162 raw := NoMethod(*s)
8163 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8164 }
8165
8166
8167
8168 type LandingPage struct {
8169
8170
8171
8172 Default bool `json:"default,omitempty"`
8173
8174
8175
8176 Id int64 `json:"id,omitempty,string"`
8177
8178
8179
8180 Kind string `json:"kind,omitempty"`
8181
8182
8183
8184
8185 Name string `json:"name,omitempty"`
8186
8187
8188 Url string `json:"url,omitempty"`
8189
8190
8191
8192 googleapi.ServerResponse `json:"-"`
8193
8194
8195
8196
8197
8198
8199
8200 ForceSendFields []string `json:"-"`
8201
8202
8203
8204
8205
8206
8207
8208 NullFields []string `json:"-"`
8209 }
8210
8211 func (s *LandingPage) MarshalJSON() ([]byte, error) {
8212 type NoMethod LandingPage
8213 raw := NoMethod(*s)
8214 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8215 }
8216
8217
8218 type LandingPagesListResponse struct {
8219
8220
8221 Kind string `json:"kind,omitempty"`
8222
8223
8224 LandingPages []*LandingPage `json:"landingPages,omitempty"`
8225
8226
8227
8228 googleapi.ServerResponse `json:"-"`
8229
8230
8231
8232
8233
8234
8235
8236 ForceSendFields []string `json:"-"`
8237
8238
8239
8240
8241
8242
8243
8244 NullFields []string `json:"-"`
8245 }
8246
8247 func (s *LandingPagesListResponse) MarshalJSON() ([]byte, error) {
8248 type NoMethod LandingPagesListResponse
8249 raw := NoMethod(*s)
8250 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8251 }
8252
8253
8254
8255 type Language struct {
8256
8257
8258 Id int64 `json:"id,omitempty,string"`
8259
8260
8261
8262 Kind string `json:"kind,omitempty"`
8263
8264
8265
8266
8267
8268 LanguageCode string `json:"languageCode,omitempty"`
8269
8270
8271 Name string `json:"name,omitempty"`
8272
8273
8274
8275
8276
8277
8278
8279 ForceSendFields []string `json:"-"`
8280
8281
8282
8283
8284
8285
8286
8287 NullFields []string `json:"-"`
8288 }
8289
8290 func (s *Language) MarshalJSON() ([]byte, error) {
8291 type NoMethod Language
8292 raw := NoMethod(*s)
8293 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8294 }
8295
8296
8297 type LanguageTargeting struct {
8298
8299
8300
8301 Languages []*Language `json:"languages,omitempty"`
8302
8303
8304
8305
8306
8307
8308
8309 ForceSendFields []string `json:"-"`
8310
8311
8312
8313
8314
8315
8316
8317 NullFields []string `json:"-"`
8318 }
8319
8320 func (s *LanguageTargeting) MarshalJSON() ([]byte, error) {
8321 type NoMethod LanguageTargeting
8322 raw := NoMethod(*s)
8323 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8324 }
8325
8326
8327 type LanguagesListResponse struct {
8328
8329
8330 Kind string `json:"kind,omitempty"`
8331
8332
8333 Languages []*Language `json:"languages,omitempty"`
8334
8335
8336
8337 googleapi.ServerResponse `json:"-"`
8338
8339
8340
8341
8342
8343
8344
8345 ForceSendFields []string `json:"-"`
8346
8347
8348
8349
8350
8351
8352
8353 NullFields []string `json:"-"`
8354 }
8355
8356 func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) {
8357 type NoMethod LanguagesListResponse
8358 raw := NoMethod(*s)
8359 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8360 }
8361
8362
8363 type LastModifiedInfo struct {
8364
8365 Time int64 `json:"time,omitempty,string"`
8366
8367
8368
8369
8370
8371
8372
8373 ForceSendFields []string `json:"-"`
8374
8375
8376
8377
8378
8379
8380
8381 NullFields []string `json:"-"`
8382 }
8383
8384 func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) {
8385 type NoMethod LastModifiedInfo
8386 raw := NoMethod(*s)
8387 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8388 }
8389
8390
8391
8392 type ListPopulationClause struct {
8393
8394
8395
8396 Terms []*ListPopulationTerm `json:"terms,omitempty"`
8397
8398
8399
8400
8401
8402
8403
8404 ForceSendFields []string `json:"-"`
8405
8406
8407
8408
8409
8410
8411
8412 NullFields []string `json:"-"`
8413 }
8414
8415 func (s *ListPopulationClause) MarshalJSON() ([]byte, error) {
8416 type NoMethod ListPopulationClause
8417 raw := NoMethod(*s)
8418 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8419 }
8420
8421
8422 type ListPopulationRule struct {
8423
8424
8425 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
8426
8427
8428
8429 FloodlightActivityName string `json:"floodlightActivityName,omitempty"`
8430
8431
8432
8433
8434 ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"`
8435
8436
8437
8438
8439
8440
8441
8442
8443 ForceSendFields []string `json:"-"`
8444
8445
8446
8447
8448
8449
8450
8451
8452 NullFields []string `json:"-"`
8453 }
8454
8455 func (s *ListPopulationRule) MarshalJSON() ([]byte, error) {
8456 type NoMethod ListPopulationRule
8457 raw := NoMethod(*s)
8458 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8459 }
8460
8461
8462 type ListPopulationTerm struct {
8463
8464
8465
8466
8467 Contains bool `json:"contains,omitempty"`
8468
8469
8470
8471
8472 Negation bool `json:"negation,omitempty"`
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 Operator string `json:"operator,omitempty"`
8487
8488
8489
8490 RemarketingListId int64 `json:"remarketingListId,omitempty,string"`
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 Type string `json:"type,omitempty"`
8504
8505
8506
8507
8508 Value string `json:"value,omitempty"`
8509
8510
8511
8512
8513 VariableFriendlyName string `json:"variableFriendlyName,omitempty"`
8514
8515
8516
8517
8518 VariableName string `json:"variableName,omitempty"`
8519
8520
8521
8522
8523
8524
8525
8526 ForceSendFields []string `json:"-"`
8527
8528
8529
8530
8531
8532
8533
8534 NullFields []string `json:"-"`
8535 }
8536
8537 func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) {
8538 type NoMethod ListPopulationTerm
8539 raw := NoMethod(*s)
8540 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8541 }
8542
8543
8544 type ListTargetingExpression struct {
8545
8546
8547 Expression string `json:"expression,omitempty"`
8548
8549
8550
8551
8552
8553
8554
8555 ForceSendFields []string `json:"-"`
8556
8557
8558
8559
8560
8561
8562
8563 NullFields []string `json:"-"`
8564 }
8565
8566 func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) {
8567 type NoMethod ListTargetingExpression
8568 raw := NoMethod(*s)
8569 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8570 }
8571
8572
8573 type LookbackConfiguration struct {
8574
8575
8576
8577
8578
8579 ClickDuration int64 `json:"clickDuration,omitempty"`
8580
8581
8582
8583
8584
8585
8586
8587 PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"`
8588
8589
8590
8591
8592
8593
8594
8595 ForceSendFields []string `json:"-"`
8596
8597
8598
8599
8600
8601
8602
8603 NullFields []string `json:"-"`
8604 }
8605
8606 func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) {
8607 type NoMethod LookbackConfiguration
8608 raw := NoMethod(*s)
8609 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8610 }
8611
8612
8613 type Metric struct {
8614
8615 Kind string `json:"kind,omitempty"`
8616
8617
8618 Name string `json:"name,omitempty"`
8619
8620
8621
8622
8623
8624
8625
8626 ForceSendFields []string `json:"-"`
8627
8628
8629
8630
8631
8632
8633
8634 NullFields []string `json:"-"`
8635 }
8636
8637 func (s *Metric) MarshalJSON() ([]byte, error) {
8638 type NoMethod Metric
8639 raw := NoMethod(*s)
8640 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8641 }
8642
8643
8644
8645 type Metro struct {
8646
8647
8648 CountryCode string `json:"countryCode,omitempty"`
8649
8650
8651
8652 CountryDartId int64 `json:"countryDartId,omitempty,string"`
8653
8654
8655 DartId int64 `json:"dartId,omitempty,string"`
8656
8657
8658
8659 DmaId int64 `json:"dmaId,omitempty,string"`
8660
8661
8662
8663 Kind string `json:"kind,omitempty"`
8664
8665
8666
8667 MetroCode string `json:"metroCode,omitempty"`
8668
8669
8670 Name string `json:"name,omitempty"`
8671
8672
8673
8674
8675
8676
8677
8678 ForceSendFields []string `json:"-"`
8679
8680
8681
8682
8683
8684
8685
8686 NullFields []string `json:"-"`
8687 }
8688
8689 func (s *Metro) MarshalJSON() ([]byte, error) {
8690 type NoMethod Metro
8691 raw := NoMethod(*s)
8692 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8693 }
8694
8695
8696 type MetrosListResponse struct {
8697
8698
8699 Kind string `json:"kind,omitempty"`
8700
8701
8702 Metros []*Metro `json:"metros,omitempty"`
8703
8704
8705
8706 googleapi.ServerResponse `json:"-"`
8707
8708
8709
8710
8711
8712
8713
8714 ForceSendFields []string `json:"-"`
8715
8716
8717
8718
8719
8720
8721
8722 NullFields []string `json:"-"`
8723 }
8724
8725 func (s *MetrosListResponse) MarshalJSON() ([]byte, error) {
8726 type NoMethod MetrosListResponse
8727 raw := NoMethod(*s)
8728 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8729 }
8730
8731
8732
8733 type MobileCarrier struct {
8734
8735
8736 CountryCode string `json:"countryCode,omitempty"`
8737
8738
8739
8740 CountryDartId int64 `json:"countryDartId,omitempty,string"`
8741
8742
8743 Id int64 `json:"id,omitempty,string"`
8744
8745
8746
8747 Kind string `json:"kind,omitempty"`
8748
8749
8750 Name string `json:"name,omitempty"`
8751
8752
8753
8754 googleapi.ServerResponse `json:"-"`
8755
8756
8757
8758
8759
8760
8761
8762 ForceSendFields []string `json:"-"`
8763
8764
8765
8766
8767
8768
8769
8770 NullFields []string `json:"-"`
8771 }
8772
8773 func (s *MobileCarrier) MarshalJSON() ([]byte, error) {
8774 type NoMethod MobileCarrier
8775 raw := NoMethod(*s)
8776 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8777 }
8778
8779
8780 type MobileCarriersListResponse struct {
8781
8782
8783 Kind string `json:"kind,omitempty"`
8784
8785
8786 MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`
8787
8788
8789
8790 googleapi.ServerResponse `json:"-"`
8791
8792
8793
8794
8795
8796
8797
8798 ForceSendFields []string `json:"-"`
8799
8800
8801
8802
8803
8804
8805
8806 NullFields []string `json:"-"`
8807 }
8808
8809 func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) {
8810 type NoMethod MobileCarriersListResponse
8811 raw := NoMethod(*s)
8812 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8813 }
8814
8815
8816 type ObjectFilter struct {
8817
8818
8819 Kind string `json:"kind,omitempty"`
8820
8821
8822
8823 ObjectIds googleapi.Int64s `json:"objectIds,omitempty"`
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834 Status string `json:"status,omitempty"`
8835
8836
8837
8838
8839
8840
8841
8842 ForceSendFields []string `json:"-"`
8843
8844
8845
8846
8847
8848
8849
8850 NullFields []string `json:"-"`
8851 }
8852
8853 func (s *ObjectFilter) MarshalJSON() ([]byte, error) {
8854 type NoMethod ObjectFilter
8855 raw := NoMethod(*s)
8856 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8857 }
8858
8859
8860 type OffsetPosition struct {
8861
8862 Left int64 `json:"left,omitempty"`
8863
8864
8865 Top int64 `json:"top,omitempty"`
8866
8867
8868
8869
8870
8871
8872
8873 ForceSendFields []string `json:"-"`
8874
8875
8876
8877
8878
8879
8880
8881 NullFields []string `json:"-"`
8882 }
8883
8884 func (s *OffsetPosition) MarshalJSON() ([]byte, error) {
8885 type NoMethod OffsetPosition
8886 raw := NoMethod(*s)
8887 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8888 }
8889
8890
8891 type OmnitureSettings struct {
8892
8893
8894
8895 OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"`
8896
8897
8898
8899
8900 OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"`
8901
8902
8903
8904
8905
8906
8907
8908
8909 ForceSendFields []string `json:"-"`
8910
8911
8912
8913
8914
8915
8916
8917
8918 NullFields []string `json:"-"`
8919 }
8920
8921 func (s *OmnitureSettings) MarshalJSON() ([]byte, error) {
8922 type NoMethod OmnitureSettings
8923 raw := NoMethod(*s)
8924 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8925 }
8926
8927
8928
8929 type OperatingSystem struct {
8930
8931
8932 DartId int64 `json:"dartId,omitempty,string"`
8933
8934
8935 Desktop bool `json:"desktop,omitempty"`
8936
8937
8938
8939 Kind string `json:"kind,omitempty"`
8940
8941
8942 Mobile bool `json:"mobile,omitempty"`
8943
8944
8945 Name string `json:"name,omitempty"`
8946
8947
8948
8949 googleapi.ServerResponse `json:"-"`
8950
8951
8952
8953
8954
8955
8956
8957 ForceSendFields []string `json:"-"`
8958
8959
8960
8961
8962
8963
8964
8965 NullFields []string `json:"-"`
8966 }
8967
8968 func (s *OperatingSystem) MarshalJSON() ([]byte, error) {
8969 type NoMethod OperatingSystem
8970 raw := NoMethod(*s)
8971 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8972 }
8973
8974
8975
8976 type OperatingSystemVersion struct {
8977
8978 Id int64 `json:"id,omitempty,string"`
8979
8980
8981
8982 Kind string `json:"kind,omitempty"`
8983
8984
8985
8986 MajorVersion string `json:"majorVersion,omitempty"`
8987
8988
8989
8990 MinorVersion string `json:"minorVersion,omitempty"`
8991
8992
8993 Name string `json:"name,omitempty"`
8994
8995
8996 OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"`
8997
8998
8999
9000 googleapi.ServerResponse `json:"-"`
9001
9002
9003
9004
9005
9006
9007
9008 ForceSendFields []string `json:"-"`
9009
9010
9011
9012
9013
9014
9015
9016 NullFields []string `json:"-"`
9017 }
9018
9019 func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) {
9020 type NoMethod OperatingSystemVersion
9021 raw := NoMethod(*s)
9022 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9023 }
9024
9025
9026
9027 type OperatingSystemVersionsListResponse struct {
9028
9029
9030 Kind string `json:"kind,omitempty"`
9031
9032
9033 OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`
9034
9035
9036
9037 googleapi.ServerResponse `json:"-"`
9038
9039
9040
9041
9042
9043
9044
9045 ForceSendFields []string `json:"-"`
9046
9047
9048
9049
9050
9051
9052
9053 NullFields []string `json:"-"`
9054 }
9055
9056 func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) {
9057 type NoMethod OperatingSystemVersionsListResponse
9058 raw := NoMethod(*s)
9059 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9060 }
9061
9062
9063 type OperatingSystemsListResponse struct {
9064
9065
9066 Kind string `json:"kind,omitempty"`
9067
9068
9069 OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`
9070
9071
9072
9073 googleapi.ServerResponse `json:"-"`
9074
9075
9076
9077
9078
9079
9080
9081 ForceSendFields []string `json:"-"`
9082
9083
9084
9085
9086
9087
9088
9089 NullFields []string `json:"-"`
9090 }
9091
9092 func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) {
9093 type NoMethod OperatingSystemsListResponse
9094 raw := NoMethod(*s)
9095 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9096 }
9097
9098
9099 type OptimizationActivity struct {
9100
9101
9102 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
9103
9104
9105
9106 FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"`
9107
9108
9109
9110
9111 Weight int64 `json:"weight,omitempty"`
9112
9113
9114
9115
9116
9117
9118
9119
9120 ForceSendFields []string `json:"-"`
9121
9122
9123
9124
9125
9126
9127
9128
9129 NullFields []string `json:"-"`
9130 }
9131
9132 func (s *OptimizationActivity) MarshalJSON() ([]byte, error) {
9133 type NoMethod OptimizationActivity
9134 raw := NoMethod(*s)
9135 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9136 }
9137
9138
9139 type Order struct {
9140
9141 AccountId int64 `json:"accountId,omitempty,string"`
9142
9143
9144 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
9145
9146
9147
9148 ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"`
9149
9150
9151 BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"`
9152
9153
9154 BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"`
9155
9156
9157 Comments string `json:"comments,omitempty"`
9158
9159
9160 Contacts []*OrderContact `json:"contacts,omitempty"`
9161
9162
9163 Id int64 `json:"id,omitempty,string"`
9164
9165
9166
9167 Kind string `json:"kind,omitempty"`
9168
9169
9170
9171 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
9172
9173
9174 Name string `json:"name,omitempty"`
9175
9176
9177 Notes string `json:"notes,omitempty"`
9178
9179
9180
9181 PlanningTermId int64 `json:"planningTermId,omitempty,string"`
9182
9183
9184 ProjectId int64 `json:"projectId,omitempty,string"`
9185
9186
9187 SellerOrderId string `json:"sellerOrderId,omitempty"`
9188
9189
9190 SellerOrganizationName string `json:"sellerOrganizationName,omitempty"`
9191
9192
9193 SiteId googleapi.Int64s `json:"siteId,omitempty"`
9194
9195
9196 SiteNames []string `json:"siteNames,omitempty"`
9197
9198
9199 SubaccountId int64 `json:"subaccountId,omitempty,string"`
9200
9201
9202 TermsAndConditions string `json:"termsAndConditions,omitempty"`
9203
9204
9205
9206 googleapi.ServerResponse `json:"-"`
9207
9208
9209
9210
9211
9212
9213
9214 ForceSendFields []string `json:"-"`
9215
9216
9217
9218
9219
9220
9221
9222 NullFields []string `json:"-"`
9223 }
9224
9225 func (s *Order) MarshalJSON() ([]byte, error) {
9226 type NoMethod Order
9227 raw := NoMethod(*s)
9228 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9229 }
9230
9231
9232 type OrderContact struct {
9233
9234
9235
9236 ContactInfo string `json:"contactInfo,omitempty"`
9237
9238
9239 ContactName string `json:"contactName,omitempty"`
9240
9241
9242 ContactTitle string `json:"contactTitle,omitempty"`
9243
9244
9245
9246
9247
9248
9249
9250 ContactType string `json:"contactType,omitempty"`
9251
9252
9253
9254 SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"`
9255
9256
9257
9258
9259
9260
9261
9262 ForceSendFields []string `json:"-"`
9263
9264
9265
9266
9267
9268
9269
9270 NullFields []string `json:"-"`
9271 }
9272
9273 func (s *OrderContact) MarshalJSON() ([]byte, error) {
9274 type NoMethod OrderContact
9275 raw := NoMethod(*s)
9276 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9277 }
9278
9279
9280
9281 type OrderDocument struct {
9282
9283 AccountId int64 `json:"accountId,omitempty,string"`
9284
9285
9286 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
9287
9288
9289
9290
9291 AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"`
9292
9293
9294
9295 ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"`
9296
9297
9298 Cancelled bool `json:"cancelled,omitempty"`
9299
9300
9301 CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"`
9302
9303
9304 EffectiveDate string `json:"effectiveDate,omitempty"`
9305
9306
9307 Id int64 `json:"id,omitempty,string"`
9308
9309
9310
9311 Kind string `json:"kind,omitempty"`
9312
9313
9314
9315 LastSentRecipients []string `json:"lastSentRecipients,omitempty"`
9316
9317
9318
9319 LastSentTime string `json:"lastSentTime,omitempty"`
9320
9321
9322 OrderId int64 `json:"orderId,omitempty,string"`
9323
9324
9325 ProjectId int64 `json:"projectId,omitempty,string"`
9326
9327
9328 Signed bool `json:"signed,omitempty"`
9329
9330
9331 SubaccountId int64 `json:"subaccountId,omitempty,string"`
9332
9333
9334 Title string `json:"title,omitempty"`
9335
9336
9337
9338
9339
9340
9341 Type string `json:"type,omitempty"`
9342
9343
9344
9345 googleapi.ServerResponse `json:"-"`
9346
9347
9348
9349
9350
9351
9352
9353 ForceSendFields []string `json:"-"`
9354
9355
9356
9357
9358
9359
9360
9361 NullFields []string `json:"-"`
9362 }
9363
9364 func (s *OrderDocument) MarshalJSON() ([]byte, error) {
9365 type NoMethod OrderDocument
9366 raw := NoMethod(*s)
9367 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9368 }
9369
9370
9371 type OrderDocumentsListResponse struct {
9372
9373
9374 Kind string `json:"kind,omitempty"`
9375
9376
9377
9378 NextPageToken string `json:"nextPageToken,omitempty"`
9379
9380
9381 OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"`
9382
9383
9384
9385 googleapi.ServerResponse `json:"-"`
9386
9387
9388
9389
9390
9391
9392
9393 ForceSendFields []string `json:"-"`
9394
9395
9396
9397
9398
9399
9400
9401 NullFields []string `json:"-"`
9402 }
9403
9404 func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) {
9405 type NoMethod OrderDocumentsListResponse
9406 raw := NoMethod(*s)
9407 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9408 }
9409
9410
9411 type OrdersListResponse struct {
9412
9413
9414 Kind string `json:"kind,omitempty"`
9415
9416
9417
9418 NextPageToken string `json:"nextPageToken,omitempty"`
9419
9420
9421 Orders []*Order `json:"orders,omitempty"`
9422
9423
9424
9425 googleapi.ServerResponse `json:"-"`
9426
9427
9428
9429
9430
9431
9432
9433 ForceSendFields []string `json:"-"`
9434
9435
9436
9437
9438
9439
9440
9441 NullFields []string `json:"-"`
9442 }
9443
9444 func (s *OrdersListResponse) MarshalJSON() ([]byte, error) {
9445 type NoMethod OrdersListResponse
9446 raw := NoMethod(*s)
9447 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9448 }
9449
9450
9451
9452 type PathToConversionReportCompatibleFields struct {
9453
9454
9455 ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"`
9456
9457
9458
9459
9460 CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"`
9461
9462
9463
9464 Kind string `json:"kind,omitempty"`
9465
9466
9467
9468 Metrics []*Metric `json:"metrics,omitempty"`
9469
9470
9471
9472
9473 PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"`
9474
9475
9476
9477
9478
9479
9480
9481
9482 ForceSendFields []string `json:"-"`
9483
9484
9485
9486
9487
9488
9489
9490
9491 NullFields []string `json:"-"`
9492 }
9493
9494 func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) {
9495 type NoMethod PathToConversionReportCompatibleFields
9496 raw := NoMethod(*s)
9497 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9498 }
9499
9500
9501 type Placement struct {
9502
9503
9504 AccountId int64 `json:"accountId,omitempty,string"`
9505
9506
9507
9508 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
9509
9510
9511
9512 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
9513
9514
9515 Archived bool `json:"archived,omitempty"`
9516
9517
9518
9519 CampaignId int64 `json:"campaignId,omitempty,string"`
9520
9521
9522
9523 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
9524
9525
9526 Comment string `json:"comment,omitempty"`
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 Compatibility string `json:"compatibility,omitempty"`
9543
9544
9545
9546 ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`
9547
9548
9549
9550 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
9551
9552
9553
9554
9555
9556 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
9557
9558
9559
9560 DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`
9561
9562
9563 ExternalId string `json:"externalId,omitempty"`
9564
9565
9566 Id int64 `json:"id,omitempty,string"`
9567
9568
9569
9570 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
9571
9572
9573
9574 KeyName string `json:"keyName,omitempty"`
9575
9576
9577
9578 Kind string `json:"kind,omitempty"`
9579
9580
9581
9582 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
9583
9584
9585 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
9586
9587
9588
9589 Name string `json:"name,omitempty"`
9590
9591
9592
9593 PaymentApproved bool `json:"paymentApproved,omitempty"`
9594
9595
9596
9597
9598
9599
9600
9601 PaymentSource string `json:"paymentSource,omitempty"`
9602
9603
9604 PlacementGroupId int64 `json:"placementGroupId,omitempty,string"`
9605
9606
9607
9608 PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"`
9609
9610
9611
9612 PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`
9613
9614
9615
9616
9617 PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"`
9618
9619
9620
9621
9622
9623
9624
9625 Primary bool `json:"primary,omitempty"`
9626
9627
9628
9629 PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"`
9630
9631
9632
9633
9634
9635 SiteId int64 `json:"siteId,omitempty,string"`
9636
9637
9638
9639 SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`
9640
9641
9642
9643
9644 Size *Size `json:"size,omitempty"`
9645
9646
9647
9648 SslRequired bool `json:"sslRequired,omitempty"`
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659 Status string `json:"status,omitempty"`
9660
9661
9662
9663 SubaccountId int64 `json:"subaccountId,omitempty,string"`
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704 TagFormats []string `json:"tagFormats,omitempty"`
9705
9706
9707 TagSetting *TagSetting `json:"tagSetting,omitempty"`
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717 VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"`
9718
9719
9720
9721
9722 VideoSettings *VideoSettings `json:"videoSettings,omitempty"`
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736 VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"`
9737
9738
9739
9740 googleapi.ServerResponse `json:"-"`
9741
9742
9743
9744
9745
9746
9747
9748 ForceSendFields []string `json:"-"`
9749
9750
9751
9752
9753
9754
9755
9756 NullFields []string `json:"-"`
9757 }
9758
9759 func (s *Placement) MarshalJSON() ([]byte, error) {
9760 type NoMethod Placement
9761 raw := NoMethod(*s)
9762 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9763 }
9764
9765
9766 type PlacementAssignment struct {
9767
9768
9769 Active bool `json:"active,omitempty"`
9770
9771
9772
9773 PlacementId int64 `json:"placementId,omitempty,string"`
9774
9775
9776
9777 PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"`
9778
9779
9780
9781
9782 SslRequired bool `json:"sslRequired,omitempty"`
9783
9784
9785
9786
9787
9788
9789
9790 ForceSendFields []string `json:"-"`
9791
9792
9793
9794
9795
9796
9797
9798 NullFields []string `json:"-"`
9799 }
9800
9801 func (s *PlacementAssignment) MarshalJSON() ([]byte, error) {
9802 type NoMethod PlacementAssignment
9803 raw := NoMethod(*s)
9804 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9805 }
9806
9807
9808 type PlacementGroup struct {
9809
9810
9811 AccountId int64 `json:"accountId,omitempty,string"`
9812
9813
9814
9815 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
9816
9817
9818
9819 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
9820
9821
9822 Archived bool `json:"archived,omitempty"`
9823
9824
9825
9826 CampaignId int64 `json:"campaignId,omitempty,string"`
9827
9828
9829
9830 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
9831
9832
9833
9834 ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"`
9835
9836
9837 Comment string `json:"comment,omitempty"`
9838
9839
9840
9841 ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`
9842
9843
9844
9845 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
9846
9847
9848
9849
9850
9851 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
9852
9853
9854
9855 DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`
9856
9857
9858 ExternalId string `json:"externalId,omitempty"`
9859
9860
9861
9862 Id int64 `json:"id,omitempty,string"`
9863
9864
9865
9866 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
9867
9868
9869
9870 Kind string `json:"kind,omitempty"`
9871
9872
9873
9874 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
9875
9876
9877
9878 Name string `json:"name,omitempty"`
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 PlacementGroupType string `json:"placementGroupType,omitempty"`
9892
9893
9894
9895 PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`
9896
9897
9898
9899 PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"`
9900
9901
9902
9903
9904
9905 PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"`
9906
9907
9908
9909 PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"`
9910
9911
9912
9913
9914
9915 SiteId int64 `json:"siteId,omitempty,string"`
9916
9917
9918
9919 SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`
9920
9921
9922
9923 SubaccountId int64 `json:"subaccountId,omitempty,string"`
9924
9925
9926
9927 googleapi.ServerResponse `json:"-"`
9928
9929
9930
9931
9932
9933
9934
9935 ForceSendFields []string `json:"-"`
9936
9937
9938
9939
9940
9941
9942
9943 NullFields []string `json:"-"`
9944 }
9945
9946 func (s *PlacementGroup) MarshalJSON() ([]byte, error) {
9947 type NoMethod PlacementGroup
9948 raw := NoMethod(*s)
9949 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9950 }
9951
9952
9953 type PlacementGroupsListResponse struct {
9954
9955
9956 Kind string `json:"kind,omitempty"`
9957
9958
9959
9960 NextPageToken string `json:"nextPageToken,omitempty"`
9961
9962
9963 PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"`
9964
9965
9966
9967 googleapi.ServerResponse `json:"-"`
9968
9969
9970
9971
9972
9973
9974
9975 ForceSendFields []string `json:"-"`
9976
9977
9978
9979
9980
9981
9982
9983 NullFields []string `json:"-"`
9984 }
9985
9986 func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) {
9987 type NoMethod PlacementGroupsListResponse
9988 raw := NoMethod(*s)
9989 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9990 }
9991
9992
9993 type PlacementStrategiesListResponse struct {
9994
9995
9996 Kind string `json:"kind,omitempty"`
9997
9998
9999
10000 NextPageToken string `json:"nextPageToken,omitempty"`
10001
10002
10003 PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"`
10004
10005
10006
10007 googleapi.ServerResponse `json:"-"`
10008
10009
10010
10011
10012
10013
10014
10015 ForceSendFields []string `json:"-"`
10016
10017
10018
10019
10020
10021
10022
10023 NullFields []string `json:"-"`
10024 }
10025
10026 func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) {
10027 type NoMethod PlacementStrategiesListResponse
10028 raw := NoMethod(*s)
10029 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10030 }
10031
10032
10033 type PlacementStrategy struct {
10034
10035
10036 AccountId int64 `json:"accountId,omitempty,string"`
10037
10038
10039
10040 Id int64 `json:"id,omitempty,string"`
10041
10042
10043
10044 Kind string `json:"kind,omitempty"`
10045
10046
10047
10048
10049 Name string `json:"name,omitempty"`
10050
10051
10052
10053 googleapi.ServerResponse `json:"-"`
10054
10055
10056
10057
10058
10059
10060
10061 ForceSendFields []string `json:"-"`
10062
10063
10064
10065
10066
10067
10068
10069 NullFields []string `json:"-"`
10070 }
10071
10072 func (s *PlacementStrategy) MarshalJSON() ([]byte, error) {
10073 type NoMethod PlacementStrategy
10074 raw := NoMethod(*s)
10075 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10076 }
10077
10078
10079 type PlacementTag struct {
10080
10081 PlacementId int64 `json:"placementId,omitempty,string"`
10082
10083
10084 TagDatas []*TagData `json:"tagDatas,omitempty"`
10085
10086
10087
10088
10089
10090
10091
10092 ForceSendFields []string `json:"-"`
10093
10094
10095
10096
10097
10098
10099
10100 NullFields []string `json:"-"`
10101 }
10102
10103 func (s *PlacementTag) MarshalJSON() ([]byte, error) {
10104 type NoMethod PlacementTag
10105 raw := NoMethod(*s)
10106 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10107 }
10108
10109
10110 type PlacementsGenerateTagsResponse struct {
10111
10112
10113 Kind string `json:"kind,omitempty"`
10114
10115
10116 PlacementTags []*PlacementTag `json:"placementTags,omitempty"`
10117
10118
10119
10120 googleapi.ServerResponse `json:"-"`
10121
10122
10123
10124
10125
10126
10127
10128 ForceSendFields []string `json:"-"`
10129
10130
10131
10132
10133
10134
10135
10136 NullFields []string `json:"-"`
10137 }
10138
10139 func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) {
10140 type NoMethod PlacementsGenerateTagsResponse
10141 raw := NoMethod(*s)
10142 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10143 }
10144
10145
10146 type PlacementsListResponse struct {
10147
10148
10149 Kind string `json:"kind,omitempty"`
10150
10151
10152
10153 NextPageToken string `json:"nextPageToken,omitempty"`
10154
10155
10156 Placements []*Placement `json:"placements,omitempty"`
10157
10158
10159
10160 googleapi.ServerResponse `json:"-"`
10161
10162
10163
10164
10165
10166
10167
10168 ForceSendFields []string `json:"-"`
10169
10170
10171
10172
10173
10174
10175
10176 NullFields []string `json:"-"`
10177 }
10178
10179 func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) {
10180 type NoMethod PlacementsListResponse
10181 raw := NoMethod(*s)
10182 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10183 }
10184
10185
10186
10187 type PlatformType struct {
10188
10189 Id int64 `json:"id,omitempty,string"`
10190
10191
10192
10193 Kind string `json:"kind,omitempty"`
10194
10195
10196 Name string `json:"name,omitempty"`
10197
10198
10199
10200 googleapi.ServerResponse `json:"-"`
10201
10202
10203
10204
10205
10206
10207
10208 ForceSendFields []string `json:"-"`
10209
10210
10211
10212
10213
10214
10215
10216 NullFields []string `json:"-"`
10217 }
10218
10219 func (s *PlatformType) MarshalJSON() ([]byte, error) {
10220 type NoMethod PlatformType
10221 raw := NoMethod(*s)
10222 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10223 }
10224
10225
10226 type PlatformTypesListResponse struct {
10227
10228
10229 Kind string `json:"kind,omitempty"`
10230
10231
10232 PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`
10233
10234
10235
10236 googleapi.ServerResponse `json:"-"`
10237
10238
10239
10240
10241
10242
10243
10244 ForceSendFields []string `json:"-"`
10245
10246
10247
10248
10249
10250
10251
10252 NullFields []string `json:"-"`
10253 }
10254
10255 func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) {
10256 type NoMethod PlatformTypesListResponse
10257 raw := NoMethod(*s)
10258 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10259 }
10260
10261
10262 type PopupWindowProperties struct {
10263
10264
10265
10266 Dimension *Size `json:"dimension,omitempty"`
10267
10268
10269
10270 Offset *OffsetPosition `json:"offset,omitempty"`
10271
10272
10273
10274
10275
10276
10277
10278 PositionType string `json:"positionType,omitempty"`
10279
10280
10281 ShowAddressBar bool `json:"showAddressBar,omitempty"`
10282
10283
10284 ShowMenuBar bool `json:"showMenuBar,omitempty"`
10285
10286
10287 ShowScrollBar bool `json:"showScrollBar,omitempty"`
10288
10289
10290 ShowStatusBar bool `json:"showStatusBar,omitempty"`
10291
10292
10293 ShowToolBar bool `json:"showToolBar,omitempty"`
10294
10295
10296 Title string `json:"title,omitempty"`
10297
10298
10299
10300
10301
10302
10303
10304 ForceSendFields []string `json:"-"`
10305
10306
10307
10308
10309
10310
10311
10312 NullFields []string `json:"-"`
10313 }
10314
10315 func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) {
10316 type NoMethod PopupWindowProperties
10317 raw := NoMethod(*s)
10318 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10319 }
10320
10321
10322
10323 type PostalCode struct {
10324
10325 Code string `json:"code,omitempty"`
10326
10327
10328
10329 CountryCode string `json:"countryCode,omitempty"`
10330
10331
10332
10333 CountryDartId int64 `json:"countryDartId,omitempty,string"`
10334
10335
10336 Id string `json:"id,omitempty"`
10337
10338
10339
10340 Kind string `json:"kind,omitempty"`
10341
10342
10343
10344 googleapi.ServerResponse `json:"-"`
10345
10346
10347
10348
10349
10350
10351
10352 ForceSendFields []string `json:"-"`
10353
10354
10355
10356
10357
10358
10359
10360 NullFields []string `json:"-"`
10361 }
10362
10363 func (s *PostalCode) MarshalJSON() ([]byte, error) {
10364 type NoMethod PostalCode
10365 raw := NoMethod(*s)
10366 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10367 }
10368
10369
10370 type PostalCodesListResponse struct {
10371
10372
10373 Kind string `json:"kind,omitempty"`
10374
10375
10376 PostalCodes []*PostalCode `json:"postalCodes,omitempty"`
10377
10378
10379
10380 googleapi.ServerResponse `json:"-"`
10381
10382
10383
10384
10385
10386
10387
10388 ForceSendFields []string `json:"-"`
10389
10390
10391
10392
10393
10394
10395
10396 NullFields []string `json:"-"`
10397 }
10398
10399 func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) {
10400 type NoMethod PostalCodesListResponse
10401 raw := NoMethod(*s)
10402 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10403 }
10404
10405
10406 type Pricing struct {
10407
10408
10409
10410
10411
10412
10413 CapCostType string `json:"capCostType,omitempty"`
10414
10415
10416 EndDate string `json:"endDate,omitempty"`
10417
10418
10419
10420
10421 Flights []*Flight `json:"flights,omitempty"`
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435 GroupType string `json:"groupType,omitempty"`
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448 PricingType string `json:"pricingType,omitempty"`
10449
10450
10451 StartDate string `json:"startDate,omitempty"`
10452
10453
10454
10455
10456
10457
10458
10459 ForceSendFields []string `json:"-"`
10460
10461
10462
10463
10464
10465
10466
10467 NullFields []string `json:"-"`
10468 }
10469
10470 func (s *Pricing) MarshalJSON() ([]byte, error) {
10471 type NoMethod Pricing
10472 raw := NoMethod(*s)
10473 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10474 }
10475
10476
10477 type PricingSchedule struct {
10478
10479
10480
10481
10482
10483
10484 CapCostOption string `json:"capCostOption,omitempty"`
10485
10486
10487 DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"`
10488
10489
10490
10491
10492
10493
10494
10495
10496 EndDate string `json:"endDate,omitempty"`
10497
10498
10499
10500 Flighted bool `json:"flighted,omitempty"`
10501
10502
10503
10504
10505 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
10506
10507
10508 PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"`
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520 PricingType string `json:"pricingType,omitempty"`
10521
10522
10523
10524
10525
10526 StartDate string `json:"startDate,omitempty"`
10527
10528
10529
10530
10531 TestingStartDate string `json:"testingStartDate,omitempty"`
10532
10533
10534
10535
10536
10537
10538
10539 ForceSendFields []string `json:"-"`
10540
10541
10542
10543
10544
10545
10546
10547 NullFields []string `json:"-"`
10548 }
10549
10550 func (s *PricingSchedule) MarshalJSON() ([]byte, error) {
10551 type NoMethod PricingSchedule
10552 raw := NoMethod(*s)
10553 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10554 }
10555
10556
10557 type PricingSchedulePricingPeriod struct {
10558
10559
10560
10561
10562
10563
10564
10565 EndDate string `json:"endDate,omitempty"`
10566
10567
10568 PricingComment string `json:"pricingComment,omitempty"`
10569
10570
10571
10572
10573 RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"`
10574
10575
10576
10577
10578
10579 StartDate string `json:"startDate,omitempty"`
10580
10581
10582
10583 Units int64 `json:"units,omitempty,string"`
10584
10585
10586
10587
10588
10589
10590
10591 ForceSendFields []string `json:"-"`
10592
10593
10594
10595
10596
10597
10598
10599 NullFields []string `json:"-"`
10600 }
10601
10602 func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) {
10603 type NoMethod PricingSchedulePricingPeriod
10604 raw := NoMethod(*s)
10605 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10606 }
10607
10608
10609 type Project struct {
10610
10611 AccountId int64 `json:"accountId,omitempty,string"`
10612
10613
10614 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626 AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"`
10627
10628
10629
10630
10631
10632
10633 AudienceGender string `json:"audienceGender,omitempty"`
10634
10635
10636
10637
10638
10639 Budget int64 `json:"budget,omitempty,string"`
10640
10641
10642 ClientBillingCode string `json:"clientBillingCode,omitempty"`
10643
10644
10645 ClientName string `json:"clientName,omitempty"`
10646
10647
10648 EndDate string `json:"endDate,omitempty"`
10649
10650
10651 Id int64 `json:"id,omitempty,string"`
10652
10653
10654
10655 Kind string `json:"kind,omitempty"`
10656
10657
10658
10659 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
10660
10661
10662 Name string `json:"name,omitempty"`
10663
10664
10665 Overview string `json:"overview,omitempty"`
10666
10667
10668 StartDate string `json:"startDate,omitempty"`
10669
10670
10671 SubaccountId int64 `json:"subaccountId,omitempty,string"`
10672
10673
10674 TargetClicks int64 `json:"targetClicks,omitempty,string"`
10675
10676
10677
10678 TargetConversions int64 `json:"targetConversions,omitempty,string"`
10679
10680
10681 TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"`
10682
10683
10684 TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"`
10685
10686
10687
10688 TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"`
10689
10690
10691 TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"`
10692
10693
10694
10695 TargetImpressions int64 `json:"targetImpressions,omitempty,string"`
10696
10697
10698
10699 googleapi.ServerResponse `json:"-"`
10700
10701
10702
10703
10704
10705
10706
10707 ForceSendFields []string `json:"-"`
10708
10709
10710
10711
10712
10713
10714
10715 NullFields []string `json:"-"`
10716 }
10717
10718 func (s *Project) MarshalJSON() ([]byte, error) {
10719 type NoMethod Project
10720 raw := NoMethod(*s)
10721 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10722 }
10723
10724
10725 type ProjectsListResponse struct {
10726
10727
10728 Kind string `json:"kind,omitempty"`
10729
10730
10731
10732 NextPageToken string `json:"nextPageToken,omitempty"`
10733
10734
10735 Projects []*Project `json:"projects,omitempty"`
10736
10737
10738
10739 googleapi.ServerResponse `json:"-"`
10740
10741
10742
10743
10744
10745
10746
10747 ForceSendFields []string `json:"-"`
10748
10749
10750
10751
10752
10753
10754
10755 NullFields []string `json:"-"`
10756 }
10757
10758 func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) {
10759 type NoMethod ProjectsListResponse
10760 raw := NoMethod(*s)
10761 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10762 }
10763
10764
10765
10766 type ReachReportCompatibleFields struct {
10767
10768
10769 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
10770
10771
10772
10773 Dimensions []*Dimension `json:"dimensions,omitempty"`
10774
10775
10776
10777 Kind string `json:"kind,omitempty"`
10778
10779
10780
10781 Metrics []*Metric `json:"metrics,omitempty"`
10782
10783
10784
10785
10786 PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"`
10787
10788
10789
10790 ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"`
10791
10792
10793
10794
10795
10796
10797
10798 ForceSendFields []string `json:"-"`
10799
10800
10801
10802
10803
10804
10805
10806
10807 NullFields []string `json:"-"`
10808 }
10809
10810 func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) {
10811 type NoMethod ReachReportCompatibleFields
10812 raw := NoMethod(*s)
10813 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10814 }
10815
10816
10817 type Recipient struct {
10818
10819
10820
10821
10822
10823 DeliveryType string `json:"deliveryType,omitempty"`
10824
10825
10826 Email string `json:"email,omitempty"`
10827
10828
10829
10830 Kind string `json:"kind,omitempty"`
10831
10832
10833
10834
10835
10836
10837
10838 ForceSendFields []string `json:"-"`
10839
10840
10841
10842
10843
10844
10845
10846 NullFields []string `json:"-"`
10847 }
10848
10849 func (s *Recipient) MarshalJSON() ([]byte, error) {
10850 type NoMethod Recipient
10851 raw := NoMethod(*s)
10852 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10853 }
10854
10855
10856
10857 type Region struct {
10858
10859
10860 CountryCode string `json:"countryCode,omitempty"`
10861
10862
10863 CountryDartId int64 `json:"countryDartId,omitempty,string"`
10864
10865
10866 DartId int64 `json:"dartId,omitempty,string"`
10867
10868
10869
10870 Kind string `json:"kind,omitempty"`
10871
10872
10873 Name string `json:"name,omitempty"`
10874
10875
10876 RegionCode string `json:"regionCode,omitempty"`
10877
10878
10879
10880
10881
10882
10883
10884 ForceSendFields []string `json:"-"`
10885
10886
10887
10888
10889
10890
10891
10892 NullFields []string `json:"-"`
10893 }
10894
10895 func (s *Region) MarshalJSON() ([]byte, error) {
10896 type NoMethod Region
10897 raw := NoMethod(*s)
10898 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10899 }
10900
10901
10902 type RegionsListResponse struct {
10903
10904
10905 Kind string `json:"kind,omitempty"`
10906
10907
10908 Regions []*Region `json:"regions,omitempty"`
10909
10910
10911
10912 googleapi.ServerResponse `json:"-"`
10913
10914
10915
10916
10917
10918
10919
10920 ForceSendFields []string `json:"-"`
10921
10922
10923
10924
10925
10926
10927
10928 NullFields []string `json:"-"`
10929 }
10930
10931 func (s *RegionsListResponse) MarshalJSON() ([]byte, error) {
10932 type NoMethod RegionsListResponse
10933 raw := NoMethod(*s)
10934 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10935 }
10936
10937
10938
10939
10940
10941
10942
10943
10944 type RemarketingList struct {
10945
10946
10947 AccountId int64 `json:"accountId,omitempty,string"`
10948
10949
10950 Active bool `json:"active,omitempty"`
10951
10952
10953
10954 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
10955
10956
10957
10958 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
10959
10960
10961 Description string `json:"description,omitempty"`
10962
10963
10964 Id int64 `json:"id,omitempty,string"`
10965
10966
10967
10968 Kind string `json:"kind,omitempty"`
10969
10970
10971
10972
10973 LifeSpan int64 `json:"lifeSpan,omitempty,string"`
10974
10975
10976
10977 ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"`
10978
10979
10980
10981 ListSize int64 `json:"listSize,omitempty,string"`
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997 ListSource string `json:"listSource,omitempty"`
10998
10999
11000
11001 Name string `json:"name,omitempty"`
11002
11003
11004
11005
11006 SubaccountId int64 `json:"subaccountId,omitempty,string"`
11007
11008
11009
11010 googleapi.ServerResponse `json:"-"`
11011
11012
11013
11014
11015
11016
11017
11018 ForceSendFields []string `json:"-"`
11019
11020
11021
11022
11023
11024
11025
11026 NullFields []string `json:"-"`
11027 }
11028
11029 func (s *RemarketingList) MarshalJSON() ([]byte, error) {
11030 type NoMethod RemarketingList
11031 raw := NoMethod(*s)
11032 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11033 }
11034
11035
11036
11037
11038
11039 type RemarketingListShare struct {
11040
11041
11042 Kind string `json:"kind,omitempty"`
11043
11044
11045
11046 RemarketingListId int64 `json:"remarketingListId,omitempty,string"`
11047
11048
11049 SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"`
11050
11051
11052
11053 SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"`
11054
11055
11056
11057 googleapi.ServerResponse `json:"-"`
11058
11059
11060
11061
11062
11063
11064
11065 ForceSendFields []string `json:"-"`
11066
11067
11068
11069
11070
11071
11072
11073 NullFields []string `json:"-"`
11074 }
11075
11076 func (s *RemarketingListShare) MarshalJSON() ([]byte, error) {
11077 type NoMethod RemarketingListShare
11078 raw := NoMethod(*s)
11079 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11080 }
11081
11082
11083 type RemarketingListsListResponse struct {
11084
11085
11086 Kind string `json:"kind,omitempty"`
11087
11088
11089
11090 NextPageToken string `json:"nextPageToken,omitempty"`
11091
11092
11093 RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"`
11094
11095
11096
11097 googleapi.ServerResponse `json:"-"`
11098
11099
11100
11101
11102
11103
11104
11105 ForceSendFields []string `json:"-"`
11106
11107
11108
11109
11110
11111
11112
11113 NullFields []string `json:"-"`
11114 }
11115
11116 func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) {
11117 type NoMethod RemarketingListsListResponse
11118 raw := NoMethod(*s)
11119 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11120 }
11121
11122
11123 type Report struct {
11124
11125 AccountId int64 `json:"accountId,omitempty,string"`
11126
11127
11128 Criteria *ReportCriteria `json:"criteria,omitempty"`
11129
11130
11131
11132 CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"`
11133
11134
11135 Delivery *ReportDelivery `json:"delivery,omitempty"`
11136
11137
11138 Etag string `json:"etag,omitempty"`
11139
11140
11141
11142 FileName string `json:"fileName,omitempty"`
11143
11144
11145
11146 FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"`
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 Format string `json:"format,omitempty"`
11157
11158
11159 Id int64 `json:"id,omitempty,string"`
11160
11161
11162 Kind string `json:"kind,omitempty"`
11163
11164
11165
11166 LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"`
11167
11168
11169 Name string `json:"name,omitempty"`
11170
11171
11172 OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"`
11173
11174
11175
11176 PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"`
11177
11178
11179 ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"`
11180
11181
11182
11183
11184 Schedule *ReportSchedule `json:"schedule,omitempty"`
11185
11186
11187
11188 SubAccountId int64 `json:"subAccountId,omitempty,string"`
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198 Type string `json:"type,omitempty"`
11199
11200
11201
11202 googleapi.ServerResponse `json:"-"`
11203
11204
11205
11206
11207
11208
11209
11210 ForceSendFields []string `json:"-"`
11211
11212
11213
11214
11215
11216
11217
11218 NullFields []string `json:"-"`
11219 }
11220
11221 func (s *Report) MarshalJSON() ([]byte, error) {
11222 type NoMethod Report
11223 raw := NoMethod(*s)
11224 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11225 }
11226
11227
11228 type ReportCriteria struct {
11229
11230 Activities *Activities `json:"activities,omitempty"`
11231
11232
11233 CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"`
11234
11235
11236 DateRange *DateRange `json:"dateRange,omitempty"`
11237
11238
11239
11240
11241
11242 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
11243
11244
11245
11246 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
11247
11248
11249 MetricNames []string `json:"metricNames,omitempty"`
11250
11251
11252
11253
11254
11255
11256
11257 ForceSendFields []string `json:"-"`
11258
11259
11260
11261
11262
11263
11264
11265 NullFields []string `json:"-"`
11266 }
11267
11268 func (s *ReportCriteria) MarshalJSON() ([]byte, error) {
11269 type NoMethod ReportCriteria
11270 raw := NoMethod(*s)
11271 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11272 }
11273
11274
11275
11276 type ReportCrossDimensionReachCriteria struct {
11277
11278 Breakdown []*SortedDimension `json:"breakdown,omitempty"`
11279
11280
11281 DateRange *DateRange `json:"dateRange,omitempty"`
11282
11283
11284
11285
11286
11287
11288
11289
11290 Dimension string `json:"dimension,omitempty"`
11291
11292
11293
11294 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
11295
11296
11297 MetricNames []string `json:"metricNames,omitempty"`
11298
11299
11300
11301 OverlapMetricNames []string `json:"overlapMetricNames,omitempty"`
11302
11303
11304 Pivoted bool `json:"pivoted,omitempty"`
11305
11306
11307
11308
11309
11310
11311
11312 ForceSendFields []string `json:"-"`
11313
11314
11315
11316
11317
11318
11319
11320 NullFields []string `json:"-"`
11321 }
11322
11323 func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) {
11324 type NoMethod ReportCrossDimensionReachCriteria
11325 raw := NoMethod(*s)
11326 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11327 }
11328
11329
11330 type ReportDelivery struct {
11331
11332 EmailOwner bool `json:"emailOwner,omitempty"`
11333
11334
11335
11336
11337
11338
11339
11340 EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"`
11341
11342
11343 Message string `json:"message,omitempty"`
11344
11345
11346 Recipients []*Recipient `json:"recipients,omitempty"`
11347
11348
11349
11350
11351
11352
11353
11354 ForceSendFields []string `json:"-"`
11355
11356
11357
11358
11359
11360
11361
11362 NullFields []string `json:"-"`
11363 }
11364
11365 func (s *ReportDelivery) MarshalJSON() ([]byte, error) {
11366 type NoMethod ReportDelivery
11367 raw := NoMethod(*s)
11368 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11369 }
11370
11371
11372
11373 type ReportFloodlightCriteria struct {
11374
11375
11376 CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"`
11377
11378
11379 DateRange *DateRange `json:"dateRange,omitempty"`
11380
11381
11382
11383
11384
11385 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
11386
11387
11388 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
11389
11390
11391
11392
11393
11394 FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`
11395
11396
11397 MetricNames []string `json:"metricNames,omitempty"`
11398
11399
11400 ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"`
11401
11402
11403
11404
11405
11406
11407
11408
11409 ForceSendFields []string `json:"-"`
11410
11411
11412
11413
11414
11415
11416
11417
11418 NullFields []string `json:"-"`
11419 }
11420
11421 func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) {
11422 type NoMethod ReportFloodlightCriteria
11423 raw := NoMethod(*s)
11424 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11425 }
11426
11427
11428
11429 type ReportFloodlightCriteriaReportProperties struct {
11430
11431
11432 IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"`
11433
11434
11435
11436
11437
11438
11439 IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"`
11440
11441
11442
11443
11444
11445 IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"`
11446
11447
11448
11449
11450
11451
11452
11453
11454 ForceSendFields []string `json:"-"`
11455
11456
11457
11458
11459
11460
11461
11462
11463 NullFields []string `json:"-"`
11464 }
11465
11466 func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) {
11467 type NoMethod ReportFloodlightCriteriaReportProperties
11468 raw := NoMethod(*s)
11469 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11470 }
11471
11472
11473
11474 type ReportPathToConversionCriteria struct {
11475
11476 ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"`
11477
11478
11479
11480 ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"`
11481
11482
11483
11484 CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"`
11485
11486
11487
11488 CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"`
11489
11490
11491 DateRange *DateRange `json:"dateRange,omitempty"`
11492
11493
11494
11495
11496
11497 FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`
11498
11499
11500 MetricNames []string `json:"metricNames,omitempty"`
11501
11502
11503
11504 PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"`
11505
11506
11507 ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"`
11508
11509
11510
11511
11512
11513
11514
11515 ForceSendFields []string `json:"-"`
11516
11517
11518
11519
11520
11521
11522
11523
11524 NullFields []string `json:"-"`
11525 }
11526
11527 func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) {
11528 type NoMethod ReportPathToConversionCriteria
11529 raw := NoMethod(*s)
11530 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11531 }
11532
11533
11534
11535 type ReportPathToConversionCriteriaReportProperties struct {
11536
11537
11538
11539
11540 ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"`
11541
11542
11543
11544
11545
11546 ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"`
11547
11548
11549 IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"`
11550
11551
11552
11553
11554
11555
11556 IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"`
11557
11558
11559
11560
11561
11562 IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"`
11563
11564
11565
11566
11567
11568
11569 MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"`
11570
11571
11572
11573
11574
11575
11576 MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"`
11577
11578
11579
11580
11581 MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"`
11582
11583
11584 PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"`
11585
11586
11587
11588
11589
11590
11591
11592
11593 ForceSendFields []string `json:"-"`
11594
11595
11596
11597
11598
11599
11600
11601
11602 NullFields []string `json:"-"`
11603 }
11604
11605 func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) {
11606 type NoMethod ReportPathToConversionCriteriaReportProperties
11607 raw := NoMethod(*s)
11608 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11609 }
11610
11611
11612
11613 type ReportReachCriteria struct {
11614
11615 Activities *Activities `json:"activities,omitempty"`
11616
11617
11618 CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"`
11619
11620
11621 DateRange *DateRange `json:"dateRange,omitempty"`
11622
11623
11624
11625
11626
11627 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
11628
11629
11630 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
11631
11632
11633
11634
11635 EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"`
11636
11637
11638 MetricNames []string `json:"metricNames,omitempty"`
11639
11640
11641
11642 ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"`
11643
11644
11645
11646
11647
11648
11649
11650 ForceSendFields []string `json:"-"`
11651
11652
11653
11654
11655
11656
11657
11658 NullFields []string `json:"-"`
11659 }
11660
11661 func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) {
11662 type NoMethod ReportReachCriteria
11663 raw := NoMethod(*s)
11664 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11665 }
11666
11667
11668
11669
11670 type ReportSchedule struct {
11671
11672
11673 Active bool `json:"active,omitempty"`
11674
11675
11676
11677
11678 Every int64 `json:"every,omitempty"`
11679
11680
11681
11682 ExpirationDate string `json:"expirationDate,omitempty"`
11683
11684
11685
11686
11687
11688
11689
11690 Repeats string `json:"repeats,omitempty"`
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703 RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"`
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716 RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"`
11717
11718
11719
11720 StartDate string `json:"startDate,omitempty"`
11721
11722
11723
11724
11725
11726
11727
11728 ForceSendFields []string `json:"-"`
11729
11730
11731
11732
11733
11734
11735
11736 NullFields []string `json:"-"`
11737 }
11738
11739 func (s *ReportSchedule) MarshalJSON() ([]byte, error) {
11740 type NoMethod ReportSchedule
11741 raw := NoMethod(*s)
11742 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11743 }
11744
11745
11746
11747 type ReportCompatibleFields struct {
11748
11749
11750 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
11751
11752
11753
11754 Dimensions []*Dimension `json:"dimensions,omitempty"`
11755
11756
11757
11758 Kind string `json:"kind,omitempty"`
11759
11760
11761
11762 Metrics []*Metric `json:"metrics,omitempty"`
11763
11764
11765
11766
11767 PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"`
11768
11769
11770
11771
11772
11773
11774
11775 ForceSendFields []string `json:"-"`
11776
11777
11778
11779
11780
11781
11782
11783
11784 NullFields []string `json:"-"`
11785 }
11786
11787 func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) {
11788 type NoMethod ReportCompatibleFields
11789 raw := NoMethod(*s)
11790 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11791 }
11792
11793
11794 type ReportList struct {
11795
11796 Etag string `json:"etag,omitempty"`
11797
11798
11799 Items []*Report `json:"items,omitempty"`
11800
11801
11802 Kind string `json:"kind,omitempty"`
11803
11804
11805
11806
11807
11808 NextPageToken string `json:"nextPageToken,omitempty"`
11809
11810
11811
11812 googleapi.ServerResponse `json:"-"`
11813
11814
11815
11816
11817
11818
11819
11820 ForceSendFields []string `json:"-"`
11821
11822
11823
11824
11825
11826
11827
11828 NullFields []string `json:"-"`
11829 }
11830
11831 func (s *ReportList) MarshalJSON() ([]byte, error) {
11832 type NoMethod ReportList
11833 raw := NoMethod(*s)
11834 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11835 }
11836
11837
11838 type ReportsConfiguration struct {
11839
11840
11841
11842
11843 ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"`
11844
11845
11846
11847 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867 ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"`
11868
11869
11870
11871
11872
11873
11874
11875
11876 ForceSendFields []string `json:"-"`
11877
11878
11879
11880
11881
11882
11883
11884
11885 NullFields []string `json:"-"`
11886 }
11887
11888 func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) {
11889 type NoMethod ReportsConfiguration
11890 raw := NoMethod(*s)
11891 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11892 }
11893
11894
11895 type RichMediaExitOverride struct {
11896
11897
11898 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
11899
11900
11901
11902 Enabled bool `json:"enabled,omitempty"`
11903
11904
11905
11906 ExitId int64 `json:"exitId,omitempty,string"`
11907
11908
11909
11910
11911
11912
11913
11914 ForceSendFields []string `json:"-"`
11915
11916
11917
11918
11919
11920
11921
11922
11923 NullFields []string `json:"-"`
11924 }
11925
11926 func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) {
11927 type NoMethod RichMediaExitOverride
11928 raw := NoMethod(*s)
11929 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11930 }
11931
11932
11933
11934 type Rule struct {
11935
11936
11937 AssetId int64 `json:"assetId,omitempty,string"`
11938
11939
11940 Name string `json:"name,omitempty"`
11941
11942
11943
11944
11945 TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"`
11946
11947
11948
11949
11950
11951
11952
11953 ForceSendFields []string `json:"-"`
11954
11955
11956
11957
11958
11959
11960
11961 NullFields []string `json:"-"`
11962 }
11963
11964 func (s *Rule) MarshalJSON() ([]byte, error) {
11965 type NoMethod Rule
11966 raw := NoMethod(*s)
11967 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11968 }
11969
11970
11971 type Site struct {
11972
11973
11974 AccountId int64 `json:"accountId,omitempty,string"`
11975
11976
11977 Approved bool `json:"approved,omitempty"`
11978
11979
11980
11981 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
11982
11983
11984
11985 DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`
11986
11987
11988 Id int64 `json:"id,omitempty,string"`
11989
11990
11991
11992 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
11993
11994
11995
11996 KeyName string `json:"keyName,omitempty"`
11997
11998
11999
12000 Kind string `json:"kind,omitempty"`
12001
12002
12003
12004
12005
12006
12007 Name string `json:"name,omitempty"`
12008
12009
12010 SiteContacts []*SiteContact `json:"siteContacts,omitempty"`
12011
12012
12013 SiteSettings *SiteSettings `json:"siteSettings,omitempty"`
12014
12015
12016
12017 SubaccountId int64 `json:"subaccountId,omitempty,string"`
12018
12019
12020
12021 googleapi.ServerResponse `json:"-"`
12022
12023
12024
12025
12026
12027
12028
12029 ForceSendFields []string `json:"-"`
12030
12031
12032
12033
12034
12035
12036
12037 NullFields []string `json:"-"`
12038 }
12039
12040 func (s *Site) MarshalJSON() ([]byte, error) {
12041 type NoMethod Site
12042 raw := NoMethod(*s)
12043 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12044 }
12045
12046
12047 type SiteContact struct {
12048
12049 Address string `json:"address,omitempty"`
12050
12051
12052
12053
12054
12055
12056 ContactType string `json:"contactType,omitempty"`
12057
12058
12059 Email string `json:"email,omitempty"`
12060
12061
12062 FirstName string `json:"firstName,omitempty"`
12063
12064
12065
12066 Id int64 `json:"id,omitempty,string"`
12067
12068
12069 LastName string `json:"lastName,omitempty"`
12070
12071
12072 Phone string `json:"phone,omitempty"`
12073
12074
12075 Title string `json:"title,omitempty"`
12076
12077
12078
12079
12080
12081
12082
12083 ForceSendFields []string `json:"-"`
12084
12085
12086
12087
12088
12089
12090
12091 NullFields []string `json:"-"`
12092 }
12093
12094 func (s *SiteContact) MarshalJSON() ([]byte, error) {
12095 type NoMethod SiteContact
12096 raw := NoMethod(*s)
12097 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12098 }
12099
12100
12101 type SiteSettings struct {
12102
12103
12104 ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
12105
12106
12107 CreativeSettings *CreativeSettings `json:"creativeSettings,omitempty"`
12108
12109
12110
12111 DisableBrandSafeAds bool `json:"disableBrandSafeAds,omitempty"`
12112
12113
12114 DisableNewCookie bool `json:"disableNewCookie,omitempty"`
12115
12116
12117 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
12118
12119
12120
12121 TagSetting *TagSetting `json:"tagSetting,omitempty"`
12122
12123
12124
12125
12126
12127
12128 VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"`
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148 VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"`
12149
12150
12151
12152
12153
12154
12155
12156 ForceSendFields []string `json:"-"`
12157
12158
12159
12160
12161
12162
12163
12164
12165 NullFields []string `json:"-"`
12166 }
12167
12168 func (s *SiteSettings) MarshalJSON() ([]byte, error) {
12169 type NoMethod SiteSettings
12170 raw := NoMethod(*s)
12171 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12172 }
12173
12174
12175 type SitesListResponse struct {
12176
12177
12178 Kind string `json:"kind,omitempty"`
12179
12180
12181
12182 NextPageToken string `json:"nextPageToken,omitempty"`
12183
12184
12185 Sites []*Site `json:"sites,omitempty"`
12186
12187
12188
12189 googleapi.ServerResponse `json:"-"`
12190
12191
12192
12193
12194
12195
12196
12197 ForceSendFields []string `json:"-"`
12198
12199
12200
12201
12202
12203
12204
12205 NullFields []string `json:"-"`
12206 }
12207
12208 func (s *SitesListResponse) MarshalJSON() ([]byte, error) {
12209 type NoMethod SitesListResponse
12210 raw := NoMethod(*s)
12211 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12212 }
12213
12214
12215
12216 type Size struct {
12217
12218
12219 Height int64 `json:"height,omitempty"`
12220
12221
12222 Iab bool `json:"iab,omitempty"`
12223
12224
12225 Id int64 `json:"id,omitempty,string"`
12226
12227
12228
12229 Kind string `json:"kind,omitempty"`
12230
12231
12232
12233 Width int64 `json:"width,omitempty"`
12234
12235
12236
12237 googleapi.ServerResponse `json:"-"`
12238
12239
12240
12241
12242
12243
12244
12245 ForceSendFields []string `json:"-"`
12246
12247
12248
12249
12250
12251
12252
12253 NullFields []string `json:"-"`
12254 }
12255
12256 func (s *Size) MarshalJSON() ([]byte, error) {
12257 type NoMethod Size
12258 raw := NoMethod(*s)
12259 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12260 }
12261
12262
12263 type SizesListResponse struct {
12264
12265
12266 Kind string `json:"kind,omitempty"`
12267
12268
12269 Sizes []*Size `json:"sizes,omitempty"`
12270
12271
12272
12273 googleapi.ServerResponse `json:"-"`
12274
12275
12276
12277
12278
12279
12280
12281 ForceSendFields []string `json:"-"`
12282
12283
12284
12285
12286
12287
12288
12289 NullFields []string `json:"-"`
12290 }
12291
12292 func (s *SizesListResponse) MarshalJSON() ([]byte, error) {
12293 type NoMethod SizesListResponse
12294 raw := NoMethod(*s)
12295 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12296 }
12297
12298
12299 type SkippableSetting struct {
12300
12301
12302 Kind string `json:"kind,omitempty"`
12303
12304
12305
12306 ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`
12307
12308
12309
12310
12311 SkipOffset *VideoOffset `json:"skipOffset,omitempty"`
12312
12313
12314
12315 Skippable bool `json:"skippable,omitempty"`
12316
12317
12318
12319
12320
12321
12322
12323 ForceSendFields []string `json:"-"`
12324
12325
12326
12327
12328
12329
12330
12331 NullFields []string `json:"-"`
12332 }
12333
12334 func (s *SkippableSetting) MarshalJSON() ([]byte, error) {
12335 type NoMethod SkippableSetting
12336 raw := NoMethod(*s)
12337 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12338 }
12339
12340
12341 type SortedDimension struct {
12342
12343
12344 Kind string `json:"kind,omitempty"`
12345
12346
12347 Name string `json:"name,omitempty"`
12348
12349
12350
12351
12352
12353
12354 SortOrder string `json:"sortOrder,omitempty"`
12355
12356
12357
12358
12359
12360
12361
12362 ForceSendFields []string `json:"-"`
12363
12364
12365
12366
12367
12368
12369
12370 NullFields []string `json:"-"`
12371 }
12372
12373 func (s *SortedDimension) MarshalJSON() ([]byte, error) {
12374 type NoMethod SortedDimension
12375 raw := NoMethod(*s)
12376 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12377 }
12378
12379
12380 type Subaccount struct {
12381
12382
12383 AccountId int64 `json:"accountId,omitempty,string"`
12384
12385
12386
12387 AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`
12388
12389
12390 Id int64 `json:"id,omitempty,string"`
12391
12392
12393
12394 Kind string `json:"kind,omitempty"`
12395
12396
12397
12398
12399 Name string `json:"name,omitempty"`
12400
12401
12402
12403 googleapi.ServerResponse `json:"-"`
12404
12405
12406
12407
12408
12409
12410
12411 ForceSendFields []string `json:"-"`
12412
12413
12414
12415
12416
12417
12418
12419 NullFields []string `json:"-"`
12420 }
12421
12422 func (s *Subaccount) MarshalJSON() ([]byte, error) {
12423 type NoMethod Subaccount
12424 raw := NoMethod(*s)
12425 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12426 }
12427
12428
12429 type SubaccountsListResponse struct {
12430
12431
12432 Kind string `json:"kind,omitempty"`
12433
12434
12435
12436 NextPageToken string `json:"nextPageToken,omitempty"`
12437
12438
12439 Subaccounts []*Subaccount `json:"subaccounts,omitempty"`
12440
12441
12442
12443 googleapi.ServerResponse `json:"-"`
12444
12445
12446
12447
12448
12449
12450
12451 ForceSendFields []string `json:"-"`
12452
12453
12454
12455
12456
12457
12458
12459 NullFields []string `json:"-"`
12460 }
12461
12462 func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) {
12463 type NoMethod SubaccountsListResponse
12464 raw := NoMethod(*s)
12465 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12466 }
12467
12468
12469 type TagData struct {
12470
12471
12472 AdId int64 `json:"adId,omitempty,string"`
12473
12474
12475 ClickTag string `json:"clickTag,omitempty"`
12476
12477
12478
12479 CreativeId int64 `json:"creativeId,omitempty,string"`
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503 Format string `json:"format,omitempty"`
12504
12505
12506 ImpressionTag string `json:"impressionTag,omitempty"`
12507
12508
12509
12510
12511
12512
12513
12514 ForceSendFields []string `json:"-"`
12515
12516
12517
12518
12519
12520
12521
12522 NullFields []string `json:"-"`
12523 }
12524
12525 func (s *TagData) MarshalJSON() ([]byte, error) {
12526 type NoMethod TagData
12527 raw := NoMethod(*s)
12528 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12529 }
12530
12531
12532 type TagSetting struct {
12533
12534
12535
12536
12537 AdditionalKeyValues string `json:"additionalKeyValues,omitempty"`
12538
12539
12540
12541 IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"`
12542
12543
12544
12545 IncludeClickTracking bool `json:"includeClickTracking,omitempty"`
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556 KeywordOption string `json:"keywordOption,omitempty"`
12557
12558
12559
12560
12561
12562
12563
12564 ForceSendFields []string `json:"-"`
12565
12566
12567
12568
12569
12570
12571
12572
12573 NullFields []string `json:"-"`
12574 }
12575
12576 func (s *TagSetting) MarshalJSON() ([]byte, error) {
12577 type NoMethod TagSetting
12578 raw := NoMethod(*s)
12579 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12580 }
12581
12582
12583 type TagSettings struct {
12584
12585 DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"`
12586
12587
12588 ImageTagEnabled bool `json:"imageTagEnabled,omitempty"`
12589
12590
12591
12592
12593
12594
12595
12596 ForceSendFields []string `json:"-"`
12597
12598
12599
12600
12601
12602
12603
12604
12605 NullFields []string `json:"-"`
12606 }
12607
12608 func (s *TagSettings) MarshalJSON() ([]byte, error) {
12609 type NoMethod TagSettings
12610 raw := NoMethod(*s)
12611 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12612 }
12613
12614
12615 type TargetWindow struct {
12616
12617 CustomHtml string `json:"customHtml,omitempty"`
12618
12619
12620
12621
12622
12623
12624
12625
12626 TargetWindowOption string `json:"targetWindowOption,omitempty"`
12627
12628
12629
12630
12631
12632
12633
12634 ForceSendFields []string `json:"-"`
12635
12636
12637
12638
12639
12640
12641
12642 NullFields []string `json:"-"`
12643 }
12644
12645 func (s *TargetWindow) MarshalJSON() ([]byte, error) {
12646 type NoMethod TargetWindow
12647 raw := NoMethod(*s)
12648 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12649 }
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660 type TargetableRemarketingList struct {
12661
12662
12663 AccountId int64 `json:"accountId,omitempty,string"`
12664
12665
12666 Active bool `json:"active,omitempty"`
12667
12668
12669
12670 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
12671
12672
12673
12674 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
12675
12676
12677 Description string `json:"description,omitempty"`
12678
12679
12680 Id int64 `json:"id,omitempty,string"`
12681
12682
12683
12684 Kind string `json:"kind,omitempty"`
12685
12686
12687
12688 LifeSpan int64 `json:"lifeSpan,omitempty,string"`
12689
12690
12691
12692 ListSize int64 `json:"listSize,omitempty,string"`
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709 ListSource string `json:"listSource,omitempty"`
12710
12711
12712
12713 Name string `json:"name,omitempty"`
12714
12715
12716
12717
12718 SubaccountId int64 `json:"subaccountId,omitempty,string"`
12719
12720
12721
12722 googleapi.ServerResponse `json:"-"`
12723
12724
12725
12726
12727
12728
12729
12730 ForceSendFields []string `json:"-"`
12731
12732
12733
12734
12735
12736
12737
12738 NullFields []string `json:"-"`
12739 }
12740
12741 func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) {
12742 type NoMethod TargetableRemarketingList
12743 raw := NoMethod(*s)
12744 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12745 }
12746
12747
12748
12749 type TargetableRemarketingListsListResponse struct {
12750
12751
12752 Kind string `json:"kind,omitempty"`
12753
12754
12755
12756 NextPageToken string `json:"nextPageToken,omitempty"`
12757
12758
12759 TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"`
12760
12761
12762
12763 googleapi.ServerResponse `json:"-"`
12764
12765
12766
12767
12768
12769
12770
12771 ForceSendFields []string `json:"-"`
12772
12773
12774
12775
12776
12777
12778
12779 NullFields []string `json:"-"`
12780 }
12781
12782 func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) {
12783 type NoMethod TargetableRemarketingListsListResponse
12784 raw := NoMethod(*s)
12785 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12786 }
12787
12788
12789
12790
12791 type TargetingTemplate struct {
12792
12793
12794
12795 AccountId int64 `json:"accountId,omitempty,string"`
12796
12797
12798
12799 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
12800
12801
12802
12803 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
12804
12805
12806 DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`
12807
12808
12809 GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`
12810
12811
12812
12813 Id int64 `json:"id,omitempty,string"`
12814
12815
12816 KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`
12817
12818
12819
12820 Kind string `json:"kind,omitempty"`
12821
12822
12823 LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`
12824
12825
12826 ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"`
12827
12828
12829
12830
12831 Name string `json:"name,omitempty"`
12832
12833
12834
12835
12836 SubaccountId int64 `json:"subaccountId,omitempty,string"`
12837
12838
12839 TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
12840
12841
12842
12843 googleapi.ServerResponse `json:"-"`
12844
12845
12846
12847
12848
12849
12850
12851 ForceSendFields []string `json:"-"`
12852
12853
12854
12855
12856
12857
12858
12859 NullFields []string `json:"-"`
12860 }
12861
12862 func (s *TargetingTemplate) MarshalJSON() ([]byte, error) {
12863 type NoMethod TargetingTemplate
12864 raw := NoMethod(*s)
12865 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12866 }
12867
12868
12869 type TargetingTemplatesListResponse struct {
12870
12871
12872 Kind string `json:"kind,omitempty"`
12873
12874
12875
12876 NextPageToken string `json:"nextPageToken,omitempty"`
12877
12878
12879 TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"`
12880
12881
12882
12883 googleapi.ServerResponse `json:"-"`
12884
12885
12886
12887
12888
12889
12890
12891 ForceSendFields []string `json:"-"`
12892
12893
12894
12895
12896
12897
12898
12899 NullFields []string `json:"-"`
12900 }
12901
12902 func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) {
12903 type NoMethod TargetingTemplatesListResponse
12904 raw := NoMethod(*s)
12905 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12906 }
12907
12908
12909 type TechnologyTargeting struct {
12910
12911
12912
12913
12914 Browsers []*Browser `json:"browsers,omitempty"`
12915
12916
12917
12918
12919 ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`
12920
12921
12922
12923
12924
12925 MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`
12926
12927
12928
12929
12930
12931
12932
12933 OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`
12934
12935
12936
12937
12938
12939
12940
12941 OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`
12942
12943
12944
12945
12946
12947 PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`
12948
12949
12950
12951
12952
12953
12954
12955 ForceSendFields []string `json:"-"`
12956
12957
12958
12959
12960
12961
12962
12963 NullFields []string `json:"-"`
12964 }
12965
12966 func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) {
12967 type NoMethod TechnologyTargeting
12968 raw := NoMethod(*s)
12969 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12970 }
12971
12972
12973 type ThirdPartyAuthenticationToken struct {
12974
12975 Name string `json:"name,omitempty"`
12976
12977
12978
12979 Value string `json:"value,omitempty"`
12980
12981
12982
12983
12984
12985
12986
12987 ForceSendFields []string `json:"-"`
12988
12989
12990
12991
12992
12993
12994
12995 NullFields []string `json:"-"`
12996 }
12997
12998 func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) {
12999 type NoMethod ThirdPartyAuthenticationToken
13000 raw := NoMethod(*s)
13001 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13002 }
13003
13004
13005 type ThirdPartyTrackingUrl struct {
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029 ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"`
13030
13031
13032 Url string `json:"url,omitempty"`
13033
13034
13035
13036
13037
13038
13039
13040 ForceSendFields []string `json:"-"`
13041
13042
13043
13044
13045
13046
13047
13048
13049 NullFields []string `json:"-"`
13050 }
13051
13052 func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) {
13053 type NoMethod ThirdPartyTrackingUrl
13054 raw := NoMethod(*s)
13055 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13056 }
13057
13058
13059 type TranscodeSetting struct {
13060
13061
13062 EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"`
13063
13064
13065
13066 Kind string `json:"kind,omitempty"`
13067
13068
13069
13070
13071
13072
13073
13074 ForceSendFields []string `json:"-"`
13075
13076
13077
13078
13079
13080
13081
13082
13083 NullFields []string `json:"-"`
13084 }
13085
13086 func (s *TranscodeSetting) MarshalJSON() ([]byte, error) {
13087 type NoMethod TranscodeSetting
13088 raw := NoMethod(*s)
13089 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13090 }
13091
13092
13093
13094 type UserDefinedVariableConfiguration struct {
13095
13096
13097
13098
13099
13100 DataType string `json:"dataType,omitempty"`
13101
13102
13103
13104
13105 ReportName string `json:"reportName,omitempty"`
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210 VariableType string `json:"variableType,omitempty"`
13211
13212
13213
13214
13215
13216
13217
13218 ForceSendFields []string `json:"-"`
13219
13220
13221
13222
13223
13224
13225
13226 NullFields []string `json:"-"`
13227 }
13228
13229 func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) {
13230 type NoMethod UserDefinedVariableConfiguration
13231 raw := NoMethod(*s)
13232 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13233 }
13234
13235
13236 type UserProfile struct {
13237
13238 AccountId int64 `json:"accountId,omitempty,string"`
13239
13240
13241 AccountName string `json:"accountName,omitempty"`
13242
13243
13244 Etag string `json:"etag,omitempty"`
13245
13246
13247
13248 Kind string `json:"kind,omitempty"`
13249
13250
13251 ProfileId int64 `json:"profileId,omitempty,string"`
13252
13253
13254
13255 SubAccountId int64 `json:"subAccountId,omitempty,string"`
13256
13257
13258
13259 SubAccountName string `json:"subAccountName,omitempty"`
13260
13261
13262 UserName string `json:"userName,omitempty"`
13263
13264
13265
13266 googleapi.ServerResponse `json:"-"`
13267
13268
13269
13270
13271
13272
13273
13274 ForceSendFields []string `json:"-"`
13275
13276
13277
13278
13279
13280
13281
13282 NullFields []string `json:"-"`
13283 }
13284
13285 func (s *UserProfile) MarshalJSON() ([]byte, error) {
13286 type NoMethod UserProfile
13287 raw := NoMethod(*s)
13288 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13289 }
13290
13291
13292 type UserProfileList struct {
13293
13294 Etag string `json:"etag,omitempty"`
13295
13296
13297 Items []*UserProfile `json:"items,omitempty"`
13298
13299
13300
13301 Kind string `json:"kind,omitempty"`
13302
13303
13304
13305 googleapi.ServerResponse `json:"-"`
13306
13307
13308
13309
13310
13311
13312
13313 ForceSendFields []string `json:"-"`
13314
13315
13316
13317
13318
13319
13320
13321 NullFields []string `json:"-"`
13322 }
13323
13324 func (s *UserProfileList) MarshalJSON() ([]byte, error) {
13325 type NoMethod UserProfileList
13326 raw := NoMethod(*s)
13327 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13328 }
13329
13330
13331
13332 type UserRole struct {
13333
13334
13335 AccountId int64 `json:"accountId,omitempty,string"`
13336
13337
13338
13339
13340
13341 DefaultUserRole bool `json:"defaultUserRole,omitempty"`
13342
13343
13344 Id int64 `json:"id,omitempty,string"`
13345
13346
13347
13348 Kind string `json:"kind,omitempty"`
13349
13350
13351
13352
13353
13354
13355 Name string `json:"name,omitempty"`
13356
13357
13358
13359 ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"`
13360
13361
13362 Permissions []*UserRolePermission `json:"permissions,omitempty"`
13363
13364
13365
13366 SubaccountId int64 `json:"subaccountId,omitempty,string"`
13367
13368
13369
13370 googleapi.ServerResponse `json:"-"`
13371
13372
13373
13374
13375
13376
13377
13378 ForceSendFields []string `json:"-"`
13379
13380
13381
13382
13383
13384
13385
13386 NullFields []string `json:"-"`
13387 }
13388
13389 func (s *UserRole) MarshalJSON() ([]byte, error) {
13390 type NoMethod UserRole
13391 raw := NoMethod(*s)
13392 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13393 }
13394
13395
13396 type UserRolePermission struct {
13397
13398
13399
13400
13401
13402
13403
13404
13405 Availability string `json:"availability,omitempty"`
13406
13407
13408 Id int64 `json:"id,omitempty,string"`
13409
13410
13411
13412 Kind string `json:"kind,omitempty"`
13413
13414
13415 Name string `json:"name,omitempty"`
13416
13417
13418
13419 PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"`
13420
13421
13422
13423 googleapi.ServerResponse `json:"-"`
13424
13425
13426
13427
13428
13429
13430
13431 ForceSendFields []string `json:"-"`
13432
13433
13434
13435
13436
13437
13438
13439 NullFields []string `json:"-"`
13440 }
13441
13442 func (s *UserRolePermission) MarshalJSON() ([]byte, error) {
13443 type NoMethod UserRolePermission
13444 raw := NoMethod(*s)
13445 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13446 }
13447
13448
13449
13450 type UserRolePermissionGroup struct {
13451
13452 Id int64 `json:"id,omitempty,string"`
13453
13454
13455
13456 Kind string `json:"kind,omitempty"`
13457
13458
13459 Name string `json:"name,omitempty"`
13460
13461
13462
13463 googleapi.ServerResponse `json:"-"`
13464
13465
13466
13467
13468
13469
13470
13471 ForceSendFields []string `json:"-"`
13472
13473
13474
13475
13476
13477
13478
13479 NullFields []string `json:"-"`
13480 }
13481
13482 func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) {
13483 type NoMethod UserRolePermissionGroup
13484 raw := NoMethod(*s)
13485 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13486 }
13487
13488
13489
13490 type UserRolePermissionGroupsListResponse struct {
13491
13492
13493 Kind string `json:"kind,omitempty"`
13494
13495
13496 UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"`
13497
13498
13499
13500 googleapi.ServerResponse `json:"-"`
13501
13502
13503
13504
13505
13506
13507
13508 ForceSendFields []string `json:"-"`
13509
13510
13511
13512
13513
13514
13515
13516 NullFields []string `json:"-"`
13517 }
13518
13519 func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) {
13520 type NoMethod UserRolePermissionGroupsListResponse
13521 raw := NoMethod(*s)
13522 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13523 }
13524
13525
13526 type UserRolePermissionsListResponse struct {
13527
13528
13529 Kind string `json:"kind,omitempty"`
13530
13531
13532 UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"`
13533
13534
13535
13536 googleapi.ServerResponse `json:"-"`
13537
13538
13539
13540
13541
13542
13543
13544 ForceSendFields []string `json:"-"`
13545
13546
13547
13548
13549
13550
13551
13552 NullFields []string `json:"-"`
13553 }
13554
13555 func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) {
13556 type NoMethod UserRolePermissionsListResponse
13557 raw := NoMethod(*s)
13558 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13559 }
13560
13561
13562 type UserRolesListResponse struct {
13563
13564
13565 Kind string `json:"kind,omitempty"`
13566
13567
13568
13569 NextPageToken string `json:"nextPageToken,omitempty"`
13570
13571
13572 UserRoles []*UserRole `json:"userRoles,omitempty"`
13573
13574
13575
13576 googleapi.ServerResponse `json:"-"`
13577
13578
13579
13580
13581
13582
13583
13584 ForceSendFields []string `json:"-"`
13585
13586
13587
13588
13589
13590
13591
13592 NullFields []string `json:"-"`
13593 }
13594
13595 func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) {
13596 type NoMethod UserRolesListResponse
13597 raw := NoMethod(*s)
13598 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13599 }
13600
13601
13602 type VideoFormat struct {
13603
13604
13605
13606
13607
13608
13609
13610
13611 FileType string `json:"fileType,omitempty"`
13612
13613
13614 Id int64 `json:"id,omitempty"`
13615
13616
13617
13618 Kind string `json:"kind,omitempty"`
13619
13620
13621 Resolution *Size `json:"resolution,omitempty"`
13622
13623
13624 TargetBitRate int64 `json:"targetBitRate,omitempty"`
13625
13626
13627
13628 googleapi.ServerResponse `json:"-"`
13629
13630
13631
13632
13633
13634
13635
13636 ForceSendFields []string `json:"-"`
13637
13638
13639
13640
13641
13642
13643
13644 NullFields []string `json:"-"`
13645 }
13646
13647 func (s *VideoFormat) MarshalJSON() ([]byte, error) {
13648 type NoMethod VideoFormat
13649 raw := NoMethod(*s)
13650 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13651 }
13652
13653
13654 type VideoFormatsListResponse struct {
13655
13656
13657 Kind string `json:"kind,omitempty"`
13658
13659
13660 VideoFormats []*VideoFormat `json:"videoFormats,omitempty"`
13661
13662
13663
13664 googleapi.ServerResponse `json:"-"`
13665
13666
13667
13668
13669
13670
13671
13672 ForceSendFields []string `json:"-"`
13673
13674
13675
13676
13677
13678
13679
13680 NullFields []string `json:"-"`
13681 }
13682
13683 func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) {
13684 type NoMethod VideoFormatsListResponse
13685 raw := NoMethod(*s)
13686 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13687 }
13688
13689
13690 type VideoOffset struct {
13691
13692
13693
13694 OffsetPercentage int64 `json:"offsetPercentage,omitempty"`
13695
13696
13697
13698 OffsetSeconds int64 `json:"offsetSeconds,omitempty"`
13699
13700
13701
13702
13703
13704
13705
13706 ForceSendFields []string `json:"-"`
13707
13708
13709
13710
13711
13712
13713
13714
13715 NullFields []string `json:"-"`
13716 }
13717
13718 func (s *VideoOffset) MarshalJSON() ([]byte, error) {
13719 type NoMethod VideoOffset
13720 raw := NoMethod(*s)
13721 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13722 }
13723
13724
13725 type VideoSettings struct {
13726
13727
13728 CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"`
13729
13730
13731
13732 Kind string `json:"kind,omitempty"`
13733
13734
13735
13736
13737 SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"`
13738
13739
13740
13741
13742 TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"`
13743
13744
13745
13746
13747
13748
13749
13750 ForceSendFields []string `json:"-"`
13751
13752
13753
13754
13755
13756
13757
13758
13759 NullFields []string `json:"-"`
13760 }
13761
13762 func (s *VideoSettings) MarshalJSON() ([]byte, error) {
13763 type NoMethod VideoSettings
13764 raw := NoMethod(*s)
13765 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13766 }
13767
13768
13769
13770 type AccountActiveAdSummariesGetCall struct {
13771 s *Service
13772 profileId int64
13773 summaryAccountId int64
13774 urlParams_ gensupport.URLParams
13775 ifNoneMatch_ string
13776 ctx_ context.Context
13777 header_ http.Header
13778 }
13779
13780
13781 func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall {
13782 c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13783 c.profileId = profileId
13784 c.summaryAccountId = summaryAccountId
13785 return c
13786 }
13787
13788
13789
13790
13791 func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall {
13792 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13793 return c
13794 }
13795
13796
13797
13798
13799
13800
13801 func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall {
13802 c.ifNoneMatch_ = entityTag
13803 return c
13804 }
13805
13806
13807
13808
13809 func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall {
13810 c.ctx_ = ctx
13811 return c
13812 }
13813
13814
13815
13816 func (c *AccountActiveAdSummariesGetCall) Header() http.Header {
13817 if c.header_ == nil {
13818 c.header_ = make(http.Header)
13819 }
13820 return c.header_
13821 }
13822
13823 func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) {
13824 reqHeaders := make(http.Header)
13825 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13826 for k, v := range c.header_ {
13827 reqHeaders[k] = v
13828 }
13829 reqHeaders.Set("User-Agent", c.s.userAgent())
13830 if c.ifNoneMatch_ != "" {
13831 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13832 }
13833 var body io.Reader = nil
13834 c.urlParams_.Set("alt", alt)
13835 c.urlParams_.Set("prettyPrint", "false")
13836 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}")
13837 urls += "?" + c.urlParams_.Encode()
13838 req, err := http.NewRequest("GET", urls, body)
13839 if err != nil {
13840 return nil, err
13841 }
13842 req.Header = reqHeaders
13843 googleapi.Expand(req.URL, map[string]string{
13844 "profileId": strconv.FormatInt(c.profileId, 10),
13845 "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10),
13846 })
13847 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13848 }
13849
13850
13851
13852
13853
13854
13855
13856
13857 func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) {
13858 gensupport.SetOptions(c.urlParams_, opts...)
13859 res, err := c.doRequest("json")
13860 if res != nil && res.StatusCode == http.StatusNotModified {
13861 if res.Body != nil {
13862 res.Body.Close()
13863 }
13864 return nil, &googleapi.Error{
13865 Code: res.StatusCode,
13866 Header: res.Header,
13867 }
13868 }
13869 if err != nil {
13870 return nil, err
13871 }
13872 defer googleapi.CloseBody(res)
13873 if err := googleapi.CheckResponse(res); err != nil {
13874 return nil, err
13875 }
13876 ret := &AccountActiveAdSummary{
13877 ServerResponse: googleapi.ServerResponse{
13878 Header: res.Header,
13879 HTTPStatusCode: res.StatusCode,
13880 },
13881 }
13882 target := &ret
13883 if err := gensupport.DecodeResponse(target, res); err != nil {
13884 return nil, err
13885 }
13886 return ret, nil
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920 }
13921
13922
13923
13924 type AccountPermissionGroupsGetCall struct {
13925 s *Service
13926 profileId int64
13927 id int64
13928 urlParams_ gensupport.URLParams
13929 ifNoneMatch_ string
13930 ctx_ context.Context
13931 header_ http.Header
13932 }
13933
13934
13935 func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall {
13936 c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13937 c.profileId = profileId
13938 c.id = id
13939 return c
13940 }
13941
13942
13943
13944
13945 func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall {
13946 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13947 return c
13948 }
13949
13950
13951
13952
13953
13954
13955 func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall {
13956 c.ifNoneMatch_ = entityTag
13957 return c
13958 }
13959
13960
13961
13962
13963 func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall {
13964 c.ctx_ = ctx
13965 return c
13966 }
13967
13968
13969
13970 func (c *AccountPermissionGroupsGetCall) Header() http.Header {
13971 if c.header_ == nil {
13972 c.header_ = make(http.Header)
13973 }
13974 return c.header_
13975 }
13976
13977 func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) {
13978 reqHeaders := make(http.Header)
13979 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13980 for k, v := range c.header_ {
13981 reqHeaders[k] = v
13982 }
13983 reqHeaders.Set("User-Agent", c.s.userAgent())
13984 if c.ifNoneMatch_ != "" {
13985 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13986 }
13987 var body io.Reader = nil
13988 c.urlParams_.Set("alt", alt)
13989 c.urlParams_.Set("prettyPrint", "false")
13990 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups/{id}")
13991 urls += "?" + c.urlParams_.Encode()
13992 req, err := http.NewRequest("GET", urls, body)
13993 if err != nil {
13994 return nil, err
13995 }
13996 req.Header = reqHeaders
13997 googleapi.Expand(req.URL, map[string]string{
13998 "profileId": strconv.FormatInt(c.profileId, 10),
13999 "id": strconv.FormatInt(c.id, 10),
14000 })
14001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14002 }
14003
14004
14005
14006
14007
14008
14009
14010
14011 func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) {
14012 gensupport.SetOptions(c.urlParams_, opts...)
14013 res, err := c.doRequest("json")
14014 if res != nil && res.StatusCode == http.StatusNotModified {
14015 if res.Body != nil {
14016 res.Body.Close()
14017 }
14018 return nil, &googleapi.Error{
14019 Code: res.StatusCode,
14020 Header: res.Header,
14021 }
14022 }
14023 if err != nil {
14024 return nil, err
14025 }
14026 defer googleapi.CloseBody(res)
14027 if err := googleapi.CheckResponse(res); err != nil {
14028 return nil, err
14029 }
14030 ret := &AccountPermissionGroup{
14031 ServerResponse: googleapi.ServerResponse{
14032 Header: res.Header,
14033 HTTPStatusCode: res.StatusCode,
14034 },
14035 }
14036 target := &ret
14037 if err := gensupport.DecodeResponse(target, res); err != nil {
14038 return nil, err
14039 }
14040 return ret, nil
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074 }
14075
14076
14077
14078 type AccountPermissionGroupsListCall struct {
14079 s *Service
14080 profileId int64
14081 urlParams_ gensupport.URLParams
14082 ifNoneMatch_ string
14083 ctx_ context.Context
14084 header_ http.Header
14085 }
14086
14087
14088 func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall {
14089 c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14090 c.profileId = profileId
14091 return c
14092 }
14093
14094
14095
14096
14097 func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall {
14098 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14099 return c
14100 }
14101
14102
14103
14104
14105
14106
14107 func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall {
14108 c.ifNoneMatch_ = entityTag
14109 return c
14110 }
14111
14112
14113
14114
14115 func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall {
14116 c.ctx_ = ctx
14117 return c
14118 }
14119
14120
14121
14122 func (c *AccountPermissionGroupsListCall) Header() http.Header {
14123 if c.header_ == nil {
14124 c.header_ = make(http.Header)
14125 }
14126 return c.header_
14127 }
14128
14129 func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) {
14130 reqHeaders := make(http.Header)
14131 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14132 for k, v := range c.header_ {
14133 reqHeaders[k] = v
14134 }
14135 reqHeaders.Set("User-Agent", c.s.userAgent())
14136 if c.ifNoneMatch_ != "" {
14137 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14138 }
14139 var body io.Reader = nil
14140 c.urlParams_.Set("alt", alt)
14141 c.urlParams_.Set("prettyPrint", "false")
14142 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups")
14143 urls += "?" + c.urlParams_.Encode()
14144 req, err := http.NewRequest("GET", urls, body)
14145 if err != nil {
14146 return nil, err
14147 }
14148 req.Header = reqHeaders
14149 googleapi.Expand(req.URL, map[string]string{
14150 "profileId": strconv.FormatInt(c.profileId, 10),
14151 })
14152 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14153 }
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163 func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) {
14164 gensupport.SetOptions(c.urlParams_, opts...)
14165 res, err := c.doRequest("json")
14166 if res != nil && res.StatusCode == http.StatusNotModified {
14167 if res.Body != nil {
14168 res.Body.Close()
14169 }
14170 return nil, &googleapi.Error{
14171 Code: res.StatusCode,
14172 Header: res.Header,
14173 }
14174 }
14175 if err != nil {
14176 return nil, err
14177 }
14178 defer googleapi.CloseBody(res)
14179 if err := googleapi.CheckResponse(res); err != nil {
14180 return nil, err
14181 }
14182 ret := &AccountPermissionGroupsListResponse{
14183 ServerResponse: googleapi.ServerResponse{
14184 Header: res.Header,
14185 HTTPStatusCode: res.StatusCode,
14186 },
14187 }
14188 target := &ret
14189 if err := gensupport.DecodeResponse(target, res); err != nil {
14190 return nil, err
14191 }
14192 return ret, nil
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 }
14219
14220
14221
14222 type AccountPermissionsGetCall struct {
14223 s *Service
14224 profileId int64
14225 id int64
14226 urlParams_ gensupport.URLParams
14227 ifNoneMatch_ string
14228 ctx_ context.Context
14229 header_ http.Header
14230 }
14231
14232
14233 func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall {
14234 c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14235 c.profileId = profileId
14236 c.id = id
14237 return c
14238 }
14239
14240
14241
14242
14243 func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall {
14244 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14245 return c
14246 }
14247
14248
14249
14250
14251
14252
14253 func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall {
14254 c.ifNoneMatch_ = entityTag
14255 return c
14256 }
14257
14258
14259
14260
14261 func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall {
14262 c.ctx_ = ctx
14263 return c
14264 }
14265
14266
14267
14268 func (c *AccountPermissionsGetCall) Header() http.Header {
14269 if c.header_ == nil {
14270 c.header_ = make(http.Header)
14271 }
14272 return c.header_
14273 }
14274
14275 func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) {
14276 reqHeaders := make(http.Header)
14277 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14278 for k, v := range c.header_ {
14279 reqHeaders[k] = v
14280 }
14281 reqHeaders.Set("User-Agent", c.s.userAgent())
14282 if c.ifNoneMatch_ != "" {
14283 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14284 }
14285 var body io.Reader = nil
14286 c.urlParams_.Set("alt", alt)
14287 c.urlParams_.Set("prettyPrint", "false")
14288 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions/{id}")
14289 urls += "?" + c.urlParams_.Encode()
14290 req, err := http.NewRequest("GET", urls, body)
14291 if err != nil {
14292 return nil, err
14293 }
14294 req.Header = reqHeaders
14295 googleapi.Expand(req.URL, map[string]string{
14296 "profileId": strconv.FormatInt(c.profileId, 10),
14297 "id": strconv.FormatInt(c.id, 10),
14298 })
14299 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14300 }
14301
14302
14303
14304
14305
14306
14307
14308
14309 func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, 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, &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, err
14327 }
14328 ret := &AccountPermission{
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
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372 }
14373
14374
14375
14376 type AccountPermissionsListCall struct {
14377 s *Service
14378 profileId int64
14379 urlParams_ gensupport.URLParams
14380 ifNoneMatch_ string
14381 ctx_ context.Context
14382 header_ http.Header
14383 }
14384
14385
14386 func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall {
14387 c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14388 c.profileId = profileId
14389 return c
14390 }
14391
14392
14393
14394
14395 func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall {
14396 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14397 return c
14398 }
14399
14400
14401
14402
14403
14404
14405 func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall {
14406 c.ifNoneMatch_ = entityTag
14407 return c
14408 }
14409
14410
14411
14412
14413 func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall {
14414 c.ctx_ = ctx
14415 return c
14416 }
14417
14418
14419
14420 func (c *AccountPermissionsListCall) Header() http.Header {
14421 if c.header_ == nil {
14422 c.header_ = make(http.Header)
14423 }
14424 return c.header_
14425 }
14426
14427 func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) {
14428 reqHeaders := make(http.Header)
14429 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14430 for k, v := range c.header_ {
14431 reqHeaders[k] = v
14432 }
14433 reqHeaders.Set("User-Agent", c.s.userAgent())
14434 if c.ifNoneMatch_ != "" {
14435 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14436 }
14437 var body io.Reader = nil
14438 c.urlParams_.Set("alt", alt)
14439 c.urlParams_.Set("prettyPrint", "false")
14440 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions")
14441 urls += "?" + c.urlParams_.Encode()
14442 req, err := http.NewRequest("GET", urls, body)
14443 if err != nil {
14444 return nil, err
14445 }
14446 req.Header = reqHeaders
14447 googleapi.Expand(req.URL, map[string]string{
14448 "profileId": strconv.FormatInt(c.profileId, 10),
14449 })
14450 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14451 }
14452
14453
14454
14455
14456
14457
14458
14459
14460 func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) {
14461 gensupport.SetOptions(c.urlParams_, opts...)
14462 res, err := c.doRequest("json")
14463 if res != nil && res.StatusCode == http.StatusNotModified {
14464 if res.Body != nil {
14465 res.Body.Close()
14466 }
14467 return nil, &googleapi.Error{
14468 Code: res.StatusCode,
14469 Header: res.Header,
14470 }
14471 }
14472 if err != nil {
14473 return nil, err
14474 }
14475 defer googleapi.CloseBody(res)
14476 if err := googleapi.CheckResponse(res); err != nil {
14477 return nil, err
14478 }
14479 ret := &AccountPermissionsListResponse{
14480 ServerResponse: googleapi.ServerResponse{
14481 Header: res.Header,
14482 HTTPStatusCode: res.StatusCode,
14483 },
14484 }
14485 target := &ret
14486 if err := gensupport.DecodeResponse(target, res); err != nil {
14487 return nil, err
14488 }
14489 return ret, nil
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515 }
14516
14517
14518
14519 type AccountUserProfilesGetCall struct {
14520 s *Service
14521 profileId int64
14522 id int64
14523 urlParams_ gensupport.URLParams
14524 ifNoneMatch_ string
14525 ctx_ context.Context
14526 header_ http.Header
14527 }
14528
14529
14530 func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall {
14531 c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14532 c.profileId = profileId
14533 c.id = id
14534 return c
14535 }
14536
14537
14538
14539
14540 func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall {
14541 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14542 return c
14543 }
14544
14545
14546
14547
14548
14549
14550 func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall {
14551 c.ifNoneMatch_ = entityTag
14552 return c
14553 }
14554
14555
14556
14557
14558 func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall {
14559 c.ctx_ = ctx
14560 return c
14561 }
14562
14563
14564
14565 func (c *AccountUserProfilesGetCall) Header() http.Header {
14566 if c.header_ == nil {
14567 c.header_ = make(http.Header)
14568 }
14569 return c.header_
14570 }
14571
14572 func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) {
14573 reqHeaders := make(http.Header)
14574 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14575 for k, v := range c.header_ {
14576 reqHeaders[k] = v
14577 }
14578 reqHeaders.Set("User-Agent", c.s.userAgent())
14579 if c.ifNoneMatch_ != "" {
14580 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14581 }
14582 var body io.Reader = nil
14583 c.urlParams_.Set("alt", alt)
14584 c.urlParams_.Set("prettyPrint", "false")
14585 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles/{id}")
14586 urls += "?" + c.urlParams_.Encode()
14587 req, err := http.NewRequest("GET", urls, body)
14588 if err != nil {
14589 return nil, err
14590 }
14591 req.Header = reqHeaders
14592 googleapi.Expand(req.URL, map[string]string{
14593 "profileId": strconv.FormatInt(c.profileId, 10),
14594 "id": strconv.FormatInt(c.id, 10),
14595 })
14596 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14597 }
14598
14599
14600
14601
14602
14603
14604
14605
14606 func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
14607 gensupport.SetOptions(c.urlParams_, opts...)
14608 res, err := c.doRequest("json")
14609 if res != nil && res.StatusCode == http.StatusNotModified {
14610 if res.Body != nil {
14611 res.Body.Close()
14612 }
14613 return nil, &googleapi.Error{
14614 Code: res.StatusCode,
14615 Header: res.Header,
14616 }
14617 }
14618 if err != nil {
14619 return nil, err
14620 }
14621 defer googleapi.CloseBody(res)
14622 if err := googleapi.CheckResponse(res); err != nil {
14623 return nil, err
14624 }
14625 ret := &AccountUserProfile{
14626 ServerResponse: googleapi.ServerResponse{
14627 Header: res.Header,
14628 HTTPStatusCode: res.StatusCode,
14629 },
14630 }
14631 target := &ret
14632 if err := gensupport.DecodeResponse(target, res); err != nil {
14633 return nil, err
14634 }
14635 return ret, nil
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669 }
14670
14671
14672
14673 type AccountUserProfilesInsertCall struct {
14674 s *Service
14675 profileId int64
14676 accountuserprofile *AccountUserProfile
14677 urlParams_ gensupport.URLParams
14678 ctx_ context.Context
14679 header_ http.Header
14680 }
14681
14682
14683 func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall {
14684 c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14685 c.profileId = profileId
14686 c.accountuserprofile = accountuserprofile
14687 return c
14688 }
14689
14690
14691
14692
14693 func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall {
14694 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14695 return c
14696 }
14697
14698
14699
14700
14701 func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall {
14702 c.ctx_ = ctx
14703 return c
14704 }
14705
14706
14707
14708 func (c *AccountUserProfilesInsertCall) Header() http.Header {
14709 if c.header_ == nil {
14710 c.header_ = make(http.Header)
14711 }
14712 return c.header_
14713 }
14714
14715 func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) {
14716 reqHeaders := make(http.Header)
14717 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14718 for k, v := range c.header_ {
14719 reqHeaders[k] = v
14720 }
14721 reqHeaders.Set("User-Agent", c.s.userAgent())
14722 var body io.Reader = nil
14723 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile)
14724 if err != nil {
14725 return nil, err
14726 }
14727 reqHeaders.Set("Content-Type", "application/json")
14728 c.urlParams_.Set("alt", alt)
14729 c.urlParams_.Set("prettyPrint", "false")
14730 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
14731 urls += "?" + c.urlParams_.Encode()
14732 req, err := http.NewRequest("POST", urls, body)
14733 if err != nil {
14734 return nil, err
14735 }
14736 req.Header = reqHeaders
14737 googleapi.Expand(req.URL, map[string]string{
14738 "profileId": strconv.FormatInt(c.profileId, 10),
14739 })
14740 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14741 }
14742
14743
14744
14745
14746
14747
14748
14749
14750 func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
14751 gensupport.SetOptions(c.urlParams_, opts...)
14752 res, err := c.doRequest("json")
14753 if res != nil && res.StatusCode == http.StatusNotModified {
14754 if res.Body != nil {
14755 res.Body.Close()
14756 }
14757 return nil, &googleapi.Error{
14758 Code: res.StatusCode,
14759 Header: res.Header,
14760 }
14761 }
14762 if err != nil {
14763 return nil, err
14764 }
14765 defer googleapi.CloseBody(res)
14766 if err := googleapi.CheckResponse(res); err != nil {
14767 return nil, err
14768 }
14769 ret := &AccountUserProfile{
14770 ServerResponse: googleapi.ServerResponse{
14771 Header: res.Header,
14772 HTTPStatusCode: res.StatusCode,
14773 },
14774 }
14775 target := &ret
14776 if err := gensupport.DecodeResponse(target, res); err != nil {
14777 return nil, err
14778 }
14779 return ret, nil
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808 }
14809
14810
14811
14812 type AccountUserProfilesListCall struct {
14813 s *Service
14814 profileId int64
14815 urlParams_ gensupport.URLParams
14816 ifNoneMatch_ string
14817 ctx_ context.Context
14818 header_ http.Header
14819 }
14820
14821
14822
14823 func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall {
14824 c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14825 c.profileId = profileId
14826 return c
14827 }
14828
14829
14830
14831 func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesListCall {
14832 c.urlParams_.Set("active", fmt.Sprint(active))
14833 return c
14834 }
14835
14836
14837
14838 func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall {
14839 var ids_ []string
14840 for _, v := range ids {
14841 ids_ = append(ids_, fmt.Sprint(v))
14842 }
14843 c.urlParams_.SetMulti("ids", ids_)
14844 return c
14845 }
14846
14847
14848
14849 func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall {
14850 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
14851 return c
14852 }
14853
14854
14855
14856 func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserProfilesListCall {
14857 c.urlParams_.Set("pageToken", pageToken)
14858 return c
14859 }
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870 func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall {
14871 c.urlParams_.Set("searchString", searchString)
14872 return c
14873 }
14874
14875
14876
14877
14878
14879
14880
14881
14882 func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserProfilesListCall {
14883 c.urlParams_.Set("sortField", sortField)
14884 return c
14885 }
14886
14887
14888
14889
14890
14891
14892
14893
14894 func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserProfilesListCall {
14895 c.urlParams_.Set("sortOrder", sortOrder)
14896 return c
14897 }
14898
14899
14900
14901 func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall {
14902 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
14903 return c
14904 }
14905
14906
14907
14908 func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserProfilesListCall {
14909 c.urlParams_.Set("userRoleId", fmt.Sprint(userRoleId))
14910 return c
14911 }
14912
14913
14914
14915
14916 func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall {
14917 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14918 return c
14919 }
14920
14921
14922
14923
14924
14925
14926 func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall {
14927 c.ifNoneMatch_ = entityTag
14928 return c
14929 }
14930
14931
14932
14933
14934 func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall {
14935 c.ctx_ = ctx
14936 return c
14937 }
14938
14939
14940
14941 func (c *AccountUserProfilesListCall) Header() http.Header {
14942 if c.header_ == nil {
14943 c.header_ = make(http.Header)
14944 }
14945 return c.header_
14946 }
14947
14948 func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) {
14949 reqHeaders := make(http.Header)
14950 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14951 for k, v := range c.header_ {
14952 reqHeaders[k] = v
14953 }
14954 reqHeaders.Set("User-Agent", c.s.userAgent())
14955 if c.ifNoneMatch_ != "" {
14956 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14957 }
14958 var body io.Reader = nil
14959 c.urlParams_.Set("alt", alt)
14960 c.urlParams_.Set("prettyPrint", "false")
14961 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
14962 urls += "?" + c.urlParams_.Encode()
14963 req, err := http.NewRequest("GET", urls, body)
14964 if err != nil {
14965 return nil, err
14966 }
14967 req.Header = reqHeaders
14968 googleapi.Expand(req.URL, map[string]string{
14969 "profileId": strconv.FormatInt(c.profileId, 10),
14970 })
14971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14972 }
14973
14974
14975
14976
14977
14978
14979
14980
14981 func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) {
14982 gensupport.SetOptions(c.urlParams_, opts...)
14983 res, err := c.doRequest("json")
14984 if res != nil && res.StatusCode == http.StatusNotModified {
14985 if res.Body != nil {
14986 res.Body.Close()
14987 }
14988 return nil, &googleapi.Error{
14989 Code: res.StatusCode,
14990 Header: res.Header,
14991 }
14992 }
14993 if err != nil {
14994 return nil, err
14995 }
14996 defer googleapi.CloseBody(res)
14997 if err := googleapi.CheckResponse(res); err != nil {
14998 return nil, err
14999 }
15000 ret := &AccountUserProfilesListResponse{
15001 ServerResponse: googleapi.ServerResponse{
15002 Header: res.Header,
15003 HTTPStatusCode: res.StatusCode,
15004 },
15005 }
15006 target := &ret
15007 if err := gensupport.DecodeResponse(target, res); err != nil {
15008 return nil, err
15009 }
15010 return ret, nil
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107 }
15108
15109
15110
15111
15112 func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error {
15113 c.ctx_ = ctx
15114 defer c.PageToken(c.urlParams_.Get("pageToken"))
15115 for {
15116 x, err := c.Do()
15117 if err != nil {
15118 return err
15119 }
15120 if err := f(x); err != nil {
15121 return err
15122 }
15123 if x.NextPageToken == "" {
15124 return nil
15125 }
15126 c.PageToken(x.NextPageToken)
15127 }
15128 }
15129
15130
15131
15132 type AccountUserProfilesPatchCall struct {
15133 s *Service
15134 profileId int64
15135 accountuserprofile *AccountUserProfile
15136 urlParams_ gensupport.URLParams
15137 ctx_ context.Context
15138 header_ http.Header
15139 }
15140
15141
15142
15143 func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall {
15144 c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15145 c.profileId = profileId
15146 c.urlParams_.Set("id", fmt.Sprint(id))
15147 c.accountuserprofile = accountuserprofile
15148 return c
15149 }
15150
15151
15152
15153
15154 func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall {
15155 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15156 return c
15157 }
15158
15159
15160
15161
15162 func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall {
15163 c.ctx_ = ctx
15164 return c
15165 }
15166
15167
15168
15169 func (c *AccountUserProfilesPatchCall) Header() http.Header {
15170 if c.header_ == nil {
15171 c.header_ = make(http.Header)
15172 }
15173 return c.header_
15174 }
15175
15176 func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
15177 reqHeaders := make(http.Header)
15178 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15179 for k, v := range c.header_ {
15180 reqHeaders[k] = v
15181 }
15182 reqHeaders.Set("User-Agent", c.s.userAgent())
15183 var body io.Reader = nil
15184 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile)
15185 if err != nil {
15186 return nil, err
15187 }
15188 reqHeaders.Set("Content-Type", "application/json")
15189 c.urlParams_.Set("alt", alt)
15190 c.urlParams_.Set("prettyPrint", "false")
15191 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
15192 urls += "?" + c.urlParams_.Encode()
15193 req, err := http.NewRequest("PATCH", urls, body)
15194 if err != nil {
15195 return nil, err
15196 }
15197 req.Header = reqHeaders
15198 googleapi.Expand(req.URL, map[string]string{
15199 "profileId": strconv.FormatInt(c.profileId, 10),
15200 })
15201 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15202 }
15203
15204
15205
15206
15207
15208
15209
15210
15211 func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
15212 gensupport.SetOptions(c.urlParams_, opts...)
15213 res, err := c.doRequest("json")
15214 if res != nil && res.StatusCode == http.StatusNotModified {
15215 if res.Body != nil {
15216 res.Body.Close()
15217 }
15218 return nil, &googleapi.Error{
15219 Code: res.StatusCode,
15220 Header: res.Header,
15221 }
15222 }
15223 if err != nil {
15224 return nil, err
15225 }
15226 defer googleapi.CloseBody(res)
15227 if err := googleapi.CheckResponse(res); err != nil {
15228 return nil, err
15229 }
15230 ret := &AccountUserProfile{
15231 ServerResponse: googleapi.ServerResponse{
15232 Header: res.Header,
15233 HTTPStatusCode: res.StatusCode,
15234 },
15235 }
15236 target := &ret
15237 if err := gensupport.DecodeResponse(target, res); err != nil {
15238 return nil, err
15239 }
15240 return ret, nil
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277 }
15278
15279
15280
15281 type AccountUserProfilesUpdateCall struct {
15282 s *Service
15283 profileId int64
15284 accountuserprofile *AccountUserProfile
15285 urlParams_ gensupport.URLParams
15286 ctx_ context.Context
15287 header_ http.Header
15288 }
15289
15290
15291 func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall {
15292 c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15293 c.profileId = profileId
15294 c.accountuserprofile = accountuserprofile
15295 return c
15296 }
15297
15298
15299
15300
15301 func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall {
15302 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15303 return c
15304 }
15305
15306
15307
15308
15309 func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall {
15310 c.ctx_ = ctx
15311 return c
15312 }
15313
15314
15315
15316 func (c *AccountUserProfilesUpdateCall) Header() http.Header {
15317 if c.header_ == nil {
15318 c.header_ = make(http.Header)
15319 }
15320 return c.header_
15321 }
15322
15323 func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) {
15324 reqHeaders := make(http.Header)
15325 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15326 for k, v := range c.header_ {
15327 reqHeaders[k] = v
15328 }
15329 reqHeaders.Set("User-Agent", c.s.userAgent())
15330 var body io.Reader = nil
15331 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile)
15332 if err != nil {
15333 return nil, err
15334 }
15335 reqHeaders.Set("Content-Type", "application/json")
15336 c.urlParams_.Set("alt", alt)
15337 c.urlParams_.Set("prettyPrint", "false")
15338 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
15339 urls += "?" + c.urlParams_.Encode()
15340 req, err := http.NewRequest("PUT", urls, body)
15341 if err != nil {
15342 return nil, err
15343 }
15344 req.Header = reqHeaders
15345 googleapi.Expand(req.URL, map[string]string{
15346 "profileId": strconv.FormatInt(c.profileId, 10),
15347 })
15348 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15349 }
15350
15351
15352
15353
15354
15355
15356
15357
15358 func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
15359 gensupport.SetOptions(c.urlParams_, opts...)
15360 res, err := c.doRequest("json")
15361 if res != nil && res.StatusCode == http.StatusNotModified {
15362 if res.Body != nil {
15363 res.Body.Close()
15364 }
15365 return nil, &googleapi.Error{
15366 Code: res.StatusCode,
15367 Header: res.Header,
15368 }
15369 }
15370 if err != nil {
15371 return nil, err
15372 }
15373 defer googleapi.CloseBody(res)
15374 if err := googleapi.CheckResponse(res); err != nil {
15375 return nil, err
15376 }
15377 ret := &AccountUserProfile{
15378 ServerResponse: googleapi.ServerResponse{
15379 Header: res.Header,
15380 HTTPStatusCode: res.StatusCode,
15381 },
15382 }
15383 target := &ret
15384 if err := gensupport.DecodeResponse(target, res); err != nil {
15385 return nil, err
15386 }
15387 return ret, nil
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416 }
15417
15418
15419
15420 type AccountsGetCall struct {
15421 s *Service
15422 profileId int64
15423 id int64
15424 urlParams_ gensupport.URLParams
15425 ifNoneMatch_ string
15426 ctx_ context.Context
15427 header_ http.Header
15428 }
15429
15430
15431 func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall {
15432 c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15433 c.profileId = profileId
15434 c.id = id
15435 return c
15436 }
15437
15438
15439
15440
15441 func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall {
15442 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15443 return c
15444 }
15445
15446
15447
15448
15449
15450
15451 func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall {
15452 c.ifNoneMatch_ = entityTag
15453 return c
15454 }
15455
15456
15457
15458
15459 func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall {
15460 c.ctx_ = ctx
15461 return c
15462 }
15463
15464
15465
15466 func (c *AccountsGetCall) Header() http.Header {
15467 if c.header_ == nil {
15468 c.header_ = make(http.Header)
15469 }
15470 return c.header_
15471 }
15472
15473 func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) {
15474 reqHeaders := make(http.Header)
15475 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15476 for k, v := range c.header_ {
15477 reqHeaders[k] = v
15478 }
15479 reqHeaders.Set("User-Agent", c.s.userAgent())
15480 if c.ifNoneMatch_ != "" {
15481 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15482 }
15483 var body io.Reader = nil
15484 c.urlParams_.Set("alt", alt)
15485 c.urlParams_.Set("prettyPrint", "false")
15486 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts/{id}")
15487 urls += "?" + c.urlParams_.Encode()
15488 req, err := http.NewRequest("GET", urls, body)
15489 if err != nil {
15490 return nil, err
15491 }
15492 req.Header = reqHeaders
15493 googleapi.Expand(req.URL, map[string]string{
15494 "profileId": strconv.FormatInt(c.profileId, 10),
15495 "id": strconv.FormatInt(c.id, 10),
15496 })
15497 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15498 }
15499
15500
15501
15502
15503
15504
15505
15506
15507 func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
15508 gensupport.SetOptions(c.urlParams_, opts...)
15509 res, err := c.doRequest("json")
15510 if res != nil && res.StatusCode == http.StatusNotModified {
15511 if res.Body != nil {
15512 res.Body.Close()
15513 }
15514 return nil, &googleapi.Error{
15515 Code: res.StatusCode,
15516 Header: res.Header,
15517 }
15518 }
15519 if err != nil {
15520 return nil, err
15521 }
15522 defer googleapi.CloseBody(res)
15523 if err := googleapi.CheckResponse(res); err != nil {
15524 return nil, err
15525 }
15526 ret := &Account{
15527 ServerResponse: googleapi.ServerResponse{
15528 Header: res.Header,
15529 HTTPStatusCode: res.StatusCode,
15530 },
15531 }
15532 target := &ret
15533 if err := gensupport.DecodeResponse(target, res); err != nil {
15534 return nil, err
15535 }
15536 return ret, nil
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570 }
15571
15572
15573
15574 type AccountsListCall struct {
15575 s *Service
15576 profileId int64
15577 urlParams_ gensupport.URLParams
15578 ifNoneMatch_ string
15579 ctx_ context.Context
15580 header_ http.Header
15581 }
15582
15583
15584
15585 func (r *AccountsService) List(profileId int64) *AccountsListCall {
15586 c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15587 c.profileId = profileId
15588 return c
15589 }
15590
15591
15592
15593
15594 func (c *AccountsListCall) Active(active bool) *AccountsListCall {
15595 c.urlParams_.Set("active", fmt.Sprint(active))
15596 return c
15597 }
15598
15599
15600
15601 func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall {
15602 var ids_ []string
15603 for _, v := range ids {
15604 ids_ = append(ids_, fmt.Sprint(v))
15605 }
15606 c.urlParams_.SetMulti("ids", ids_)
15607 return c
15608 }
15609
15610
15611
15612 func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall {
15613 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
15614 return c
15615 }
15616
15617
15618
15619 func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall {
15620 c.urlParams_.Set("pageToken", pageToken)
15621 return c
15622 }
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632 func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall {
15633 c.urlParams_.Set("searchString", searchString)
15634 return c
15635 }
15636
15637
15638
15639
15640
15641
15642
15643
15644 func (c *AccountsListCall) SortField(sortField string) *AccountsListCall {
15645 c.urlParams_.Set("sortField", sortField)
15646 return c
15647 }
15648
15649
15650
15651
15652
15653
15654
15655
15656 func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall {
15657 c.urlParams_.Set("sortOrder", sortOrder)
15658 return c
15659 }
15660
15661
15662
15663
15664 func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall {
15665 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15666 return c
15667 }
15668
15669
15670
15671
15672
15673
15674 func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall {
15675 c.ifNoneMatch_ = entityTag
15676 return c
15677 }
15678
15679
15680
15681
15682 func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall {
15683 c.ctx_ = ctx
15684 return c
15685 }
15686
15687
15688
15689 func (c *AccountsListCall) Header() http.Header {
15690 if c.header_ == nil {
15691 c.header_ = make(http.Header)
15692 }
15693 return c.header_
15694 }
15695
15696 func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) {
15697 reqHeaders := make(http.Header)
15698 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15699 for k, v := range c.header_ {
15700 reqHeaders[k] = v
15701 }
15702 reqHeaders.Set("User-Agent", c.s.userAgent())
15703 if c.ifNoneMatch_ != "" {
15704 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15705 }
15706 var body io.Reader = nil
15707 c.urlParams_.Set("alt", alt)
15708 c.urlParams_.Set("prettyPrint", "false")
15709 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts")
15710 urls += "?" + c.urlParams_.Encode()
15711 req, err := http.NewRequest("GET", urls, body)
15712 if err != nil {
15713 return nil, err
15714 }
15715 req.Header = reqHeaders
15716 googleapi.Expand(req.URL, map[string]string{
15717 "profileId": strconv.FormatInt(c.profileId, 10),
15718 })
15719 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15720 }
15721
15722
15723
15724
15725
15726
15727
15728
15729 func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) {
15730 gensupport.SetOptions(c.urlParams_, opts...)
15731 res, err := c.doRequest("json")
15732 if res != nil && res.StatusCode == http.StatusNotModified {
15733 if res.Body != nil {
15734 res.Body.Close()
15735 }
15736 return nil, &googleapi.Error{
15737 Code: res.StatusCode,
15738 Header: res.Header,
15739 }
15740 }
15741 if err != nil {
15742 return nil, err
15743 }
15744 defer googleapi.CloseBody(res)
15745 if err := googleapi.CheckResponse(res); err != nil {
15746 return nil, err
15747 }
15748 ret := &AccountsListResponse{
15749 ServerResponse: googleapi.ServerResponse{
15750 Header: res.Header,
15751 HTTPStatusCode: res.StatusCode,
15752 },
15753 }
15754 target := &ret
15755 if err := gensupport.DecodeResponse(target, res); err != nil {
15756 return nil, err
15757 }
15758 return ret, nil
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843 }
15844
15845
15846
15847
15848 func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error {
15849 c.ctx_ = ctx
15850 defer c.PageToken(c.urlParams_.Get("pageToken"))
15851 for {
15852 x, err := c.Do()
15853 if err != nil {
15854 return err
15855 }
15856 if err := f(x); err != nil {
15857 return err
15858 }
15859 if x.NextPageToken == "" {
15860 return nil
15861 }
15862 c.PageToken(x.NextPageToken)
15863 }
15864 }
15865
15866
15867
15868 type AccountsPatchCall struct {
15869 s *Service
15870 profileId int64
15871 account *Account
15872 urlParams_ gensupport.URLParams
15873 ctx_ context.Context
15874 header_ http.Header
15875 }
15876
15877
15878
15879 func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall {
15880 c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15881 c.profileId = profileId
15882 c.urlParams_.Set("id", fmt.Sprint(id))
15883 c.account = account
15884 return c
15885 }
15886
15887
15888
15889
15890 func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall {
15891 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15892 return c
15893 }
15894
15895
15896
15897
15898 func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall {
15899 c.ctx_ = ctx
15900 return c
15901 }
15902
15903
15904
15905 func (c *AccountsPatchCall) Header() http.Header {
15906 if c.header_ == nil {
15907 c.header_ = make(http.Header)
15908 }
15909 return c.header_
15910 }
15911
15912 func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) {
15913 reqHeaders := make(http.Header)
15914 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15915 for k, v := range c.header_ {
15916 reqHeaders[k] = v
15917 }
15918 reqHeaders.Set("User-Agent", c.s.userAgent())
15919 var body io.Reader = nil
15920 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
15921 if err != nil {
15922 return nil, err
15923 }
15924 reqHeaders.Set("Content-Type", "application/json")
15925 c.urlParams_.Set("alt", alt)
15926 c.urlParams_.Set("prettyPrint", "false")
15927 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts")
15928 urls += "?" + c.urlParams_.Encode()
15929 req, err := http.NewRequest("PATCH", urls, body)
15930 if err != nil {
15931 return nil, err
15932 }
15933 req.Header = reqHeaders
15934 googleapi.Expand(req.URL, map[string]string{
15935 "profileId": strconv.FormatInt(c.profileId, 10),
15936 })
15937 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15938 }
15939
15940
15941
15942
15943
15944
15945
15946
15947 func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) {
15948 gensupport.SetOptions(c.urlParams_, opts...)
15949 res, err := c.doRequest("json")
15950 if res != nil && res.StatusCode == http.StatusNotModified {
15951 if res.Body != nil {
15952 res.Body.Close()
15953 }
15954 return nil, &googleapi.Error{
15955 Code: res.StatusCode,
15956 Header: res.Header,
15957 }
15958 }
15959 if err != nil {
15960 return nil, err
15961 }
15962 defer googleapi.CloseBody(res)
15963 if err := googleapi.CheckResponse(res); err != nil {
15964 return nil, err
15965 }
15966 ret := &Account{
15967 ServerResponse: googleapi.ServerResponse{
15968 Header: res.Header,
15969 HTTPStatusCode: res.StatusCode,
15970 },
15971 }
15972 target := &ret
15973 if err := gensupport.DecodeResponse(target, res); err != nil {
15974 return nil, err
15975 }
15976 return ret, nil
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013 }
16014
16015
16016
16017 type AccountsUpdateCall struct {
16018 s *Service
16019 profileId int64
16020 account *Account
16021 urlParams_ gensupport.URLParams
16022 ctx_ context.Context
16023 header_ http.Header
16024 }
16025
16026
16027 func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall {
16028 c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16029 c.profileId = profileId
16030 c.account = account
16031 return c
16032 }
16033
16034
16035
16036
16037 func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall {
16038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16039 return c
16040 }
16041
16042
16043
16044
16045 func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall {
16046 c.ctx_ = ctx
16047 return c
16048 }
16049
16050
16051
16052 func (c *AccountsUpdateCall) Header() http.Header {
16053 if c.header_ == nil {
16054 c.header_ = make(http.Header)
16055 }
16056 return c.header_
16057 }
16058
16059 func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
16060 reqHeaders := make(http.Header)
16061 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16062 for k, v := range c.header_ {
16063 reqHeaders[k] = v
16064 }
16065 reqHeaders.Set("User-Agent", c.s.userAgent())
16066 var body io.Reader = nil
16067 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
16068 if err != nil {
16069 return nil, err
16070 }
16071 reqHeaders.Set("Content-Type", "application/json")
16072 c.urlParams_.Set("alt", alt)
16073 c.urlParams_.Set("prettyPrint", "false")
16074 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts")
16075 urls += "?" + c.urlParams_.Encode()
16076 req, err := http.NewRequest("PUT", urls, body)
16077 if err != nil {
16078 return nil, err
16079 }
16080 req.Header = reqHeaders
16081 googleapi.Expand(req.URL, map[string]string{
16082 "profileId": strconv.FormatInt(c.profileId, 10),
16083 })
16084 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16085 }
16086
16087
16088
16089
16090
16091
16092
16093
16094 func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) {
16095 gensupport.SetOptions(c.urlParams_, opts...)
16096 res, err := c.doRequest("json")
16097 if res != nil && res.StatusCode == http.StatusNotModified {
16098 if res.Body != nil {
16099 res.Body.Close()
16100 }
16101 return nil, &googleapi.Error{
16102 Code: res.StatusCode,
16103 Header: res.Header,
16104 }
16105 }
16106 if err != nil {
16107 return nil, err
16108 }
16109 defer googleapi.CloseBody(res)
16110 if err := googleapi.CheckResponse(res); err != nil {
16111 return nil, err
16112 }
16113 ret := &Account{
16114 ServerResponse: googleapi.ServerResponse{
16115 Header: res.Header,
16116 HTTPStatusCode: res.StatusCode,
16117 },
16118 }
16119 target := &ret
16120 if err := gensupport.DecodeResponse(target, res); err != nil {
16121 return nil, err
16122 }
16123 return ret, nil
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152 }
16153
16154
16155
16156 type AdsGetCall struct {
16157 s *Service
16158 profileId int64
16159 id int64
16160 urlParams_ gensupport.URLParams
16161 ifNoneMatch_ string
16162 ctx_ context.Context
16163 header_ http.Header
16164 }
16165
16166
16167 func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall {
16168 c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16169 c.profileId = profileId
16170 c.id = id
16171 return c
16172 }
16173
16174
16175
16176
16177 func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall {
16178 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16179 return c
16180 }
16181
16182
16183
16184
16185
16186
16187 func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall {
16188 c.ifNoneMatch_ = entityTag
16189 return c
16190 }
16191
16192
16193
16194
16195 func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall {
16196 c.ctx_ = ctx
16197 return c
16198 }
16199
16200
16201
16202 func (c *AdsGetCall) Header() http.Header {
16203 if c.header_ == nil {
16204 c.header_ = make(http.Header)
16205 }
16206 return c.header_
16207 }
16208
16209 func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) {
16210 reqHeaders := make(http.Header)
16211 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16212 for k, v := range c.header_ {
16213 reqHeaders[k] = v
16214 }
16215 reqHeaders.Set("User-Agent", c.s.userAgent())
16216 if c.ifNoneMatch_ != "" {
16217 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16218 }
16219 var body io.Reader = nil
16220 c.urlParams_.Set("alt", alt)
16221 c.urlParams_.Set("prettyPrint", "false")
16222 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads/{id}")
16223 urls += "?" + c.urlParams_.Encode()
16224 req, err := http.NewRequest("GET", urls, body)
16225 if err != nil {
16226 return nil, err
16227 }
16228 req.Header = reqHeaders
16229 googleapi.Expand(req.URL, map[string]string{
16230 "profileId": strconv.FormatInt(c.profileId, 10),
16231 "id": strconv.FormatInt(c.id, 10),
16232 })
16233 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16234 }
16235
16236
16237
16238
16239
16240
16241
16242
16243 func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
16244 gensupport.SetOptions(c.urlParams_, opts...)
16245 res, err := c.doRequest("json")
16246 if res != nil && res.StatusCode == http.StatusNotModified {
16247 if res.Body != nil {
16248 res.Body.Close()
16249 }
16250 return nil, &googleapi.Error{
16251 Code: res.StatusCode,
16252 Header: res.Header,
16253 }
16254 }
16255 if err != nil {
16256 return nil, err
16257 }
16258 defer googleapi.CloseBody(res)
16259 if err := googleapi.CheckResponse(res); err != nil {
16260 return nil, err
16261 }
16262 ret := &Ad{
16263 ServerResponse: googleapi.ServerResponse{
16264 Header: res.Header,
16265 HTTPStatusCode: res.StatusCode,
16266 },
16267 }
16268 target := &ret
16269 if err := gensupport.DecodeResponse(target, res); err != nil {
16270 return nil, err
16271 }
16272 return ret, nil
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306 }
16307
16308
16309
16310 type AdsInsertCall struct {
16311 s *Service
16312 profileId int64
16313 ad *Ad
16314 urlParams_ gensupport.URLParams
16315 ctx_ context.Context
16316 header_ http.Header
16317 }
16318
16319
16320 func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall {
16321 c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16322 c.profileId = profileId
16323 c.ad = ad
16324 return c
16325 }
16326
16327
16328
16329
16330 func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall {
16331 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16332 return c
16333 }
16334
16335
16336
16337
16338 func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall {
16339 c.ctx_ = ctx
16340 return c
16341 }
16342
16343
16344
16345 func (c *AdsInsertCall) Header() http.Header {
16346 if c.header_ == nil {
16347 c.header_ = make(http.Header)
16348 }
16349 return c.header_
16350 }
16351
16352 func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) {
16353 reqHeaders := make(http.Header)
16354 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16355 for k, v := range c.header_ {
16356 reqHeaders[k] = v
16357 }
16358 reqHeaders.Set("User-Agent", c.s.userAgent())
16359 var body io.Reader = nil
16360 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad)
16361 if err != nil {
16362 return nil, err
16363 }
16364 reqHeaders.Set("Content-Type", "application/json")
16365 c.urlParams_.Set("alt", alt)
16366 c.urlParams_.Set("prettyPrint", "false")
16367 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
16368 urls += "?" + c.urlParams_.Encode()
16369 req, err := http.NewRequest("POST", urls, body)
16370 if err != nil {
16371 return nil, err
16372 }
16373 req.Header = reqHeaders
16374 googleapi.Expand(req.URL, map[string]string{
16375 "profileId": strconv.FormatInt(c.profileId, 10),
16376 })
16377 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16378 }
16379
16380
16381
16382
16383
16384
16385
16386
16387 func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
16388 gensupport.SetOptions(c.urlParams_, opts...)
16389 res, err := c.doRequest("json")
16390 if res != nil && res.StatusCode == http.StatusNotModified {
16391 if res.Body != nil {
16392 res.Body.Close()
16393 }
16394 return nil, &googleapi.Error{
16395 Code: res.StatusCode,
16396 Header: res.Header,
16397 }
16398 }
16399 if err != nil {
16400 return nil, err
16401 }
16402 defer googleapi.CloseBody(res)
16403 if err := googleapi.CheckResponse(res); err != nil {
16404 return nil, err
16405 }
16406 ret := &Ad{
16407 ServerResponse: googleapi.ServerResponse{
16408 Header: res.Header,
16409 HTTPStatusCode: res.StatusCode,
16410 },
16411 }
16412 target := &ret
16413 if err := gensupport.DecodeResponse(target, res); err != nil {
16414 return nil, err
16415 }
16416 return ret, nil
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445 }
16446
16447
16448
16449 type AdsListCall struct {
16450 s *Service
16451 profileId int64
16452 urlParams_ gensupport.URLParams
16453 ifNoneMatch_ string
16454 ctx_ context.Context
16455 header_ http.Header
16456 }
16457
16458
16459
16460 func (r *AdsService) List(profileId int64) *AdsListCall {
16461 c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16462 c.profileId = profileId
16463 return c
16464 }
16465
16466
16467 func (c *AdsListCall) Active(active bool) *AdsListCall {
16468 c.urlParams_.Set("active", fmt.Sprint(active))
16469 return c
16470 }
16471
16472
16473
16474 func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall {
16475 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
16476 return c
16477 }
16478
16479
16480
16481 func (c *AdsListCall) Archived(archived bool) *AdsListCall {
16482 c.urlParams_.Set("archived", fmt.Sprint(archived))
16483 return c
16484 }
16485
16486
16487
16488 func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall {
16489 var audienceSegmentIds_ []string
16490 for _, v := range audienceSegmentIds {
16491 audienceSegmentIds_ = append(audienceSegmentIds_, fmt.Sprint(v))
16492 }
16493 c.urlParams_.SetMulti("audienceSegmentIds", audienceSegmentIds_)
16494 return c
16495 }
16496
16497
16498
16499 func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall {
16500 var campaignIds_ []string
16501 for _, v := range campaignIds {
16502 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
16503 }
16504 c.urlParams_.SetMulti("campaignIds", campaignIds_)
16505 return c
16506 }
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall {
16524 c.urlParams_.Set("compatibility", compatibility)
16525 return c
16526 }
16527
16528
16529
16530 func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall {
16531 var creativeIds_ []string
16532 for _, v := range creativeIds {
16533 creativeIds_ = append(creativeIds_, fmt.Sprint(v))
16534 }
16535 c.urlParams_.SetMulti("creativeIds", creativeIds_)
16536 return c
16537 }
16538
16539
16540
16541
16542 func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall {
16543 var creativeOptimizationConfigurationIds_ []string
16544 for _, v := range creativeOptimizationConfigurationIds {
16545 creativeOptimizationConfigurationIds_ = append(creativeOptimizationConfigurationIds_, fmt.Sprint(v))
16546 }
16547 c.urlParams_.SetMulti("creativeOptimizationConfigurationIds", creativeOptimizationConfigurationIds_)
16548 return c
16549 }
16550
16551
16552
16553
16554
16555
16556 func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall {
16557 c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker))
16558 return c
16559 }
16560
16561
16562
16563 func (c *AdsListCall) Ids(ids ...int64) *AdsListCall {
16564 var ids_ []string
16565 for _, v := range ids {
16566 ids_ = append(ids_, fmt.Sprint(v))
16567 }
16568 c.urlParams_.SetMulti("ids", ids_)
16569 return c
16570 }
16571
16572
16573
16574 func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall {
16575 var landingPageIds_ []string
16576 for _, v := range landingPageIds {
16577 landingPageIds_ = append(landingPageIds_, fmt.Sprint(v))
16578 }
16579 c.urlParams_.SetMulti("landingPageIds", landingPageIds_)
16580 return c
16581 }
16582
16583
16584
16585 func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall {
16586 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
16587 return c
16588 }
16589
16590
16591
16592
16593 func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall {
16594 c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId))
16595 return c
16596 }
16597
16598
16599
16600 func (c *AdsListCall) PageToken(pageToken string) *AdsListCall {
16601 c.urlParams_.Set("pageToken", pageToken)
16602 return c
16603 }
16604
16605
16606
16607 func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall {
16608 var placementIds_ []string
16609 for _, v := range placementIds {
16610 placementIds_ = append(placementIds_, fmt.Sprint(v))
16611 }
16612 c.urlParams_.SetMulti("placementIds", placementIds_)
16613 return c
16614 }
16615
16616
16617
16618
16619 func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall {
16620 var remarketingListIds_ []string
16621 for _, v := range remarketingListIds {
16622 remarketingListIds_ = append(remarketingListIds_, fmt.Sprint(v))
16623 }
16624 c.urlParams_.SetMulti("remarketingListIds", remarketingListIds_)
16625 return c
16626 }
16627
16628
16629
16630
16631
16632
16633
16634
16635 func (c *AdsListCall) SearchString(searchString string) *AdsListCall {
16636 c.urlParams_.Set("searchString", searchString)
16637 return c
16638 }
16639
16640
16641
16642 func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall {
16643 var sizeIds_ []string
16644 for _, v := range sizeIds {
16645 sizeIds_ = append(sizeIds_, fmt.Sprint(v))
16646 }
16647 c.urlParams_.SetMulti("sizeIds", sizeIds_)
16648 return c
16649 }
16650
16651
16652
16653
16654
16655
16656
16657
16658 func (c *AdsListCall) SortField(sortField string) *AdsListCall {
16659 c.urlParams_.Set("sortField", sortField)
16660 return c
16661 }
16662
16663
16664
16665
16666
16667
16668
16669
16670 func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall {
16671 c.urlParams_.Set("sortOrder", sortOrder)
16672 return c
16673 }
16674
16675
16676
16677 func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall {
16678 c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant))
16679 return c
16680 }
16681
16682
16683
16684 func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall {
16685 c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired))
16686 return c
16687 }
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698 func (c *AdsListCall) Type(type_ ...string) *AdsListCall {
16699 c.urlParams_.SetMulti("type", append([]string{}, type_...))
16700 return c
16701 }
16702
16703
16704
16705
16706 func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall {
16707 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16708 return c
16709 }
16710
16711
16712
16713
16714
16715
16716 func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall {
16717 c.ifNoneMatch_ = entityTag
16718 return c
16719 }
16720
16721
16722
16723
16724 func (c *AdsListCall) Context(ctx context.Context) *AdsListCall {
16725 c.ctx_ = ctx
16726 return c
16727 }
16728
16729
16730
16731 func (c *AdsListCall) Header() http.Header {
16732 if c.header_ == nil {
16733 c.header_ = make(http.Header)
16734 }
16735 return c.header_
16736 }
16737
16738 func (c *AdsListCall) doRequest(alt string) (*http.Response, error) {
16739 reqHeaders := make(http.Header)
16740 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16741 for k, v := range c.header_ {
16742 reqHeaders[k] = v
16743 }
16744 reqHeaders.Set("User-Agent", c.s.userAgent())
16745 if c.ifNoneMatch_ != "" {
16746 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16747 }
16748 var body io.Reader = nil
16749 c.urlParams_.Set("alt", alt)
16750 c.urlParams_.Set("prettyPrint", "false")
16751 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
16752 urls += "?" + c.urlParams_.Encode()
16753 req, err := http.NewRequest("GET", urls, body)
16754 if err != nil {
16755 return nil, err
16756 }
16757 req.Header = reqHeaders
16758 googleapi.Expand(req.URL, map[string]string{
16759 "profileId": strconv.FormatInt(c.profileId, 10),
16760 })
16761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16762 }
16763
16764
16765
16766
16767
16768
16769
16770
16771 func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) {
16772 gensupport.SetOptions(c.urlParams_, opts...)
16773 res, err := c.doRequest("json")
16774 if res != nil && res.StatusCode == http.StatusNotModified {
16775 if res.Body != nil {
16776 res.Body.Close()
16777 }
16778 return nil, &googleapi.Error{
16779 Code: res.StatusCode,
16780 Header: res.Header,
16781 }
16782 }
16783 if err != nil {
16784 return nil, err
16785 }
16786 defer googleapi.CloseBody(res)
16787 if err := googleapi.CheckResponse(res); err != nil {
16788 return nil, err
16789 }
16790 ret := &AdsListResponse{
16791 ServerResponse: googleapi.ServerResponse{
16792 Header: res.Header,
16793 HTTPStatusCode: res.StatusCode,
16794 },
16795 }
16796 target := &ret
16797 if err := gensupport.DecodeResponse(target, res); err != nil {
16798 return nil, err
16799 }
16800 return ret, nil
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010 }
17011
17012
17013
17014
17015 func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error {
17016 c.ctx_ = ctx
17017 defer c.PageToken(c.urlParams_.Get("pageToken"))
17018 for {
17019 x, err := c.Do()
17020 if err != nil {
17021 return err
17022 }
17023 if err := f(x); err != nil {
17024 return err
17025 }
17026 if x.NextPageToken == "" {
17027 return nil
17028 }
17029 c.PageToken(x.NextPageToken)
17030 }
17031 }
17032
17033
17034
17035 type AdsPatchCall struct {
17036 s *Service
17037 profileId int64
17038 ad *Ad
17039 urlParams_ gensupport.URLParams
17040 ctx_ context.Context
17041 header_ http.Header
17042 }
17043
17044
17045 func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall {
17046 c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17047 c.profileId = profileId
17048 c.urlParams_.Set("id", fmt.Sprint(id))
17049 c.ad = ad
17050 return c
17051 }
17052
17053
17054
17055
17056 func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall {
17057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17058 return c
17059 }
17060
17061
17062
17063
17064 func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall {
17065 c.ctx_ = ctx
17066 return c
17067 }
17068
17069
17070
17071 func (c *AdsPatchCall) Header() http.Header {
17072 if c.header_ == nil {
17073 c.header_ = make(http.Header)
17074 }
17075 return c.header_
17076 }
17077
17078 func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) {
17079 reqHeaders := make(http.Header)
17080 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17081 for k, v := range c.header_ {
17082 reqHeaders[k] = v
17083 }
17084 reqHeaders.Set("User-Agent", c.s.userAgent())
17085 var body io.Reader = nil
17086 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad)
17087 if err != nil {
17088 return nil, err
17089 }
17090 reqHeaders.Set("Content-Type", "application/json")
17091 c.urlParams_.Set("alt", alt)
17092 c.urlParams_.Set("prettyPrint", "false")
17093 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
17094 urls += "?" + c.urlParams_.Encode()
17095 req, err := http.NewRequest("PATCH", urls, body)
17096 if err != nil {
17097 return nil, err
17098 }
17099 req.Header = reqHeaders
17100 googleapi.Expand(req.URL, map[string]string{
17101 "profileId": strconv.FormatInt(c.profileId, 10),
17102 })
17103 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17104 }
17105
17106
17107
17108
17109
17110
17111
17112
17113 func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
17114 gensupport.SetOptions(c.urlParams_, opts...)
17115 res, err := c.doRequest("json")
17116 if res != nil && res.StatusCode == http.StatusNotModified {
17117 if res.Body != nil {
17118 res.Body.Close()
17119 }
17120 return nil, &googleapi.Error{
17121 Code: res.StatusCode,
17122 Header: res.Header,
17123 }
17124 }
17125 if err != nil {
17126 return nil, err
17127 }
17128 defer googleapi.CloseBody(res)
17129 if err := googleapi.CheckResponse(res); err != nil {
17130 return nil, err
17131 }
17132 ret := &Ad{
17133 ServerResponse: googleapi.ServerResponse{
17134 Header: res.Header,
17135 HTTPStatusCode: res.StatusCode,
17136 },
17137 }
17138 target := &ret
17139 if err := gensupport.DecodeResponse(target, res); err != nil {
17140 return nil, err
17141 }
17142 return ret, nil
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179 }
17180
17181
17182
17183 type AdsUpdateCall struct {
17184 s *Service
17185 profileId int64
17186 ad *Ad
17187 urlParams_ gensupport.URLParams
17188 ctx_ context.Context
17189 header_ http.Header
17190 }
17191
17192
17193 func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall {
17194 c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17195 c.profileId = profileId
17196 c.ad = ad
17197 return c
17198 }
17199
17200
17201
17202
17203 func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall {
17204 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17205 return c
17206 }
17207
17208
17209
17210
17211 func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall {
17212 c.ctx_ = ctx
17213 return c
17214 }
17215
17216
17217
17218 func (c *AdsUpdateCall) Header() http.Header {
17219 if c.header_ == nil {
17220 c.header_ = make(http.Header)
17221 }
17222 return c.header_
17223 }
17224
17225 func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) {
17226 reqHeaders := make(http.Header)
17227 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17228 for k, v := range c.header_ {
17229 reqHeaders[k] = v
17230 }
17231 reqHeaders.Set("User-Agent", c.s.userAgent())
17232 var body io.Reader = nil
17233 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad)
17234 if err != nil {
17235 return nil, err
17236 }
17237 reqHeaders.Set("Content-Type", "application/json")
17238 c.urlParams_.Set("alt", alt)
17239 c.urlParams_.Set("prettyPrint", "false")
17240 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
17241 urls += "?" + c.urlParams_.Encode()
17242 req, err := http.NewRequest("PUT", urls, body)
17243 if err != nil {
17244 return nil, err
17245 }
17246 req.Header = reqHeaders
17247 googleapi.Expand(req.URL, map[string]string{
17248 "profileId": strconv.FormatInt(c.profileId, 10),
17249 })
17250 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17251 }
17252
17253
17254
17255
17256
17257
17258
17259
17260 func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
17261 gensupport.SetOptions(c.urlParams_, opts...)
17262 res, err := c.doRequest("json")
17263 if res != nil && res.StatusCode == http.StatusNotModified {
17264 if res.Body != nil {
17265 res.Body.Close()
17266 }
17267 return nil, &googleapi.Error{
17268 Code: res.StatusCode,
17269 Header: res.Header,
17270 }
17271 }
17272 if err != nil {
17273 return nil, err
17274 }
17275 defer googleapi.CloseBody(res)
17276 if err := googleapi.CheckResponse(res); err != nil {
17277 return nil, err
17278 }
17279 ret := &Ad{
17280 ServerResponse: googleapi.ServerResponse{
17281 Header: res.Header,
17282 HTTPStatusCode: res.StatusCode,
17283 },
17284 }
17285 target := &ret
17286 if err := gensupport.DecodeResponse(target, res); err != nil {
17287 return nil, err
17288 }
17289 return ret, nil
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318 }
17319
17320
17321
17322 type AdvertiserGroupsDeleteCall struct {
17323 s *Service
17324 profileId int64
17325 id int64
17326 urlParams_ gensupport.URLParams
17327 ctx_ context.Context
17328 header_ http.Header
17329 }
17330
17331
17332 func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall {
17333 c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17334 c.profileId = profileId
17335 c.id = id
17336 return c
17337 }
17338
17339
17340
17341
17342 func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall {
17343 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17344 return c
17345 }
17346
17347
17348
17349
17350 func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall {
17351 c.ctx_ = ctx
17352 return c
17353 }
17354
17355
17356
17357 func (c *AdvertiserGroupsDeleteCall) Header() http.Header {
17358 if c.header_ == nil {
17359 c.header_ = make(http.Header)
17360 }
17361 return c.header_
17362 }
17363
17364 func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
17365 reqHeaders := make(http.Header)
17366 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17367 for k, v := range c.header_ {
17368 reqHeaders[k] = v
17369 }
17370 reqHeaders.Set("User-Agent", c.s.userAgent())
17371 var body io.Reader = nil
17372 c.urlParams_.Set("alt", alt)
17373 c.urlParams_.Set("prettyPrint", "false")
17374 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}")
17375 urls += "?" + c.urlParams_.Encode()
17376 req, err := http.NewRequest("DELETE", urls, body)
17377 if err != nil {
17378 return nil, err
17379 }
17380 req.Header = reqHeaders
17381 googleapi.Expand(req.URL, map[string]string{
17382 "profileId": strconv.FormatInt(c.profileId, 10),
17383 "id": strconv.FormatInt(c.id, 10),
17384 })
17385 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17386 }
17387
17388
17389 func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error {
17390 gensupport.SetOptions(c.urlParams_, opts...)
17391 res, err := c.doRequest("json")
17392 if err != nil {
17393 return err
17394 }
17395 defer googleapi.CloseBody(res)
17396 if err := googleapi.CheckResponse(res); err != nil {
17397 return err
17398 }
17399 return nil
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430 }
17431
17432
17433
17434 type AdvertiserGroupsGetCall struct {
17435 s *Service
17436 profileId int64
17437 id int64
17438 urlParams_ gensupport.URLParams
17439 ifNoneMatch_ string
17440 ctx_ context.Context
17441 header_ http.Header
17442 }
17443
17444
17445 func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall {
17446 c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17447 c.profileId = profileId
17448 c.id = id
17449 return c
17450 }
17451
17452
17453
17454
17455 func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall {
17456 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17457 return c
17458 }
17459
17460
17461
17462
17463
17464
17465 func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall {
17466 c.ifNoneMatch_ = entityTag
17467 return c
17468 }
17469
17470
17471
17472
17473 func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall {
17474 c.ctx_ = ctx
17475 return c
17476 }
17477
17478
17479
17480 func (c *AdvertiserGroupsGetCall) Header() http.Header {
17481 if c.header_ == nil {
17482 c.header_ = make(http.Header)
17483 }
17484 return c.header_
17485 }
17486
17487 func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) {
17488 reqHeaders := make(http.Header)
17489 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17490 for k, v := range c.header_ {
17491 reqHeaders[k] = v
17492 }
17493 reqHeaders.Set("User-Agent", c.s.userAgent())
17494 if c.ifNoneMatch_ != "" {
17495 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17496 }
17497 var body io.Reader = nil
17498 c.urlParams_.Set("alt", alt)
17499 c.urlParams_.Set("prettyPrint", "false")
17500 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}")
17501 urls += "?" + c.urlParams_.Encode()
17502 req, err := http.NewRequest("GET", urls, body)
17503 if err != nil {
17504 return nil, err
17505 }
17506 req.Header = reqHeaders
17507 googleapi.Expand(req.URL, map[string]string{
17508 "profileId": strconv.FormatInt(c.profileId, 10),
17509 "id": strconv.FormatInt(c.id, 10),
17510 })
17511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17512 }
17513
17514
17515
17516
17517
17518
17519
17520
17521 func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
17522 gensupport.SetOptions(c.urlParams_, opts...)
17523 res, err := c.doRequest("json")
17524 if res != nil && res.StatusCode == http.StatusNotModified {
17525 if res.Body != nil {
17526 res.Body.Close()
17527 }
17528 return nil, &googleapi.Error{
17529 Code: res.StatusCode,
17530 Header: res.Header,
17531 }
17532 }
17533 if err != nil {
17534 return nil, err
17535 }
17536 defer googleapi.CloseBody(res)
17537 if err := googleapi.CheckResponse(res); err != nil {
17538 return nil, err
17539 }
17540 ret := &AdvertiserGroup{
17541 ServerResponse: googleapi.ServerResponse{
17542 Header: res.Header,
17543 HTTPStatusCode: res.StatusCode,
17544 },
17545 }
17546 target := &ret
17547 if err := gensupport.DecodeResponse(target, res); err != nil {
17548 return nil, err
17549 }
17550 return ret, nil
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584 }
17585
17586
17587
17588 type AdvertiserGroupsInsertCall struct {
17589 s *Service
17590 profileId int64
17591 advertisergroup *AdvertiserGroup
17592 urlParams_ gensupport.URLParams
17593 ctx_ context.Context
17594 header_ http.Header
17595 }
17596
17597
17598 func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall {
17599 c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17600 c.profileId = profileId
17601 c.advertisergroup = advertisergroup
17602 return c
17603 }
17604
17605
17606
17607
17608 func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall {
17609 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17610 return c
17611 }
17612
17613
17614
17615
17616 func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall {
17617 c.ctx_ = ctx
17618 return c
17619 }
17620
17621
17622
17623 func (c *AdvertiserGroupsInsertCall) Header() http.Header {
17624 if c.header_ == nil {
17625 c.header_ = make(http.Header)
17626 }
17627 return c.header_
17628 }
17629
17630 func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
17631 reqHeaders := make(http.Header)
17632 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17633 for k, v := range c.header_ {
17634 reqHeaders[k] = v
17635 }
17636 reqHeaders.Set("User-Agent", c.s.userAgent())
17637 var body io.Reader = nil
17638 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup)
17639 if err != nil {
17640 return nil, err
17641 }
17642 reqHeaders.Set("Content-Type", "application/json")
17643 c.urlParams_.Set("alt", alt)
17644 c.urlParams_.Set("prettyPrint", "false")
17645 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
17646 urls += "?" + c.urlParams_.Encode()
17647 req, err := http.NewRequest("POST", urls, body)
17648 if err != nil {
17649 return nil, err
17650 }
17651 req.Header = reqHeaders
17652 googleapi.Expand(req.URL, map[string]string{
17653 "profileId": strconv.FormatInt(c.profileId, 10),
17654 })
17655 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17656 }
17657
17658
17659
17660
17661
17662
17663
17664
17665 func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
17666 gensupport.SetOptions(c.urlParams_, opts...)
17667 res, err := c.doRequest("json")
17668 if res != nil && res.StatusCode == http.StatusNotModified {
17669 if res.Body != nil {
17670 res.Body.Close()
17671 }
17672 return nil, &googleapi.Error{
17673 Code: res.StatusCode,
17674 Header: res.Header,
17675 }
17676 }
17677 if err != nil {
17678 return nil, err
17679 }
17680 defer googleapi.CloseBody(res)
17681 if err := googleapi.CheckResponse(res); err != nil {
17682 return nil, err
17683 }
17684 ret := &AdvertiserGroup{
17685 ServerResponse: googleapi.ServerResponse{
17686 Header: res.Header,
17687 HTTPStatusCode: res.StatusCode,
17688 },
17689 }
17690 target := &ret
17691 if err := gensupport.DecodeResponse(target, res); err != nil {
17692 return nil, err
17693 }
17694 return ret, nil
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723 }
17724
17725
17726
17727 type AdvertiserGroupsListCall struct {
17728 s *Service
17729 profileId int64
17730 urlParams_ gensupport.URLParams
17731 ifNoneMatch_ string
17732 ctx_ context.Context
17733 header_ http.Header
17734 }
17735
17736
17737
17738 func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall {
17739 c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17740 c.profileId = profileId
17741 return c
17742 }
17743
17744
17745
17746 func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall {
17747 var ids_ []string
17748 for _, v := range ids {
17749 ids_ = append(ids_, fmt.Sprint(v))
17750 }
17751 c.urlParams_.SetMulti("ids", ids_)
17752 return c
17753 }
17754
17755
17756
17757 func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall {
17758 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
17759 return c
17760 }
17761
17762
17763
17764 func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroupsListCall {
17765 c.urlParams_.Set("pageToken", pageToken)
17766 return c
17767 }
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778 func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall {
17779 c.urlParams_.Set("searchString", searchString)
17780 return c
17781 }
17782
17783
17784
17785
17786
17787
17788
17789
17790 func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroupsListCall {
17791 c.urlParams_.Set("sortField", sortField)
17792 return c
17793 }
17794
17795
17796
17797
17798
17799
17800
17801
17802 func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroupsListCall {
17803 c.urlParams_.Set("sortOrder", sortOrder)
17804 return c
17805 }
17806
17807
17808
17809
17810 func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall {
17811 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17812 return c
17813 }
17814
17815
17816
17817
17818
17819
17820 func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall {
17821 c.ifNoneMatch_ = entityTag
17822 return c
17823 }
17824
17825
17826
17827
17828 func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall {
17829 c.ctx_ = ctx
17830 return c
17831 }
17832
17833
17834
17835 func (c *AdvertiserGroupsListCall) Header() http.Header {
17836 if c.header_ == nil {
17837 c.header_ = make(http.Header)
17838 }
17839 return c.header_
17840 }
17841
17842 func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) {
17843 reqHeaders := make(http.Header)
17844 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17845 for k, v := range c.header_ {
17846 reqHeaders[k] = v
17847 }
17848 reqHeaders.Set("User-Agent", c.s.userAgent())
17849 if c.ifNoneMatch_ != "" {
17850 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17851 }
17852 var body io.Reader = nil
17853 c.urlParams_.Set("alt", alt)
17854 c.urlParams_.Set("prettyPrint", "false")
17855 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
17856 urls += "?" + c.urlParams_.Encode()
17857 req, err := http.NewRequest("GET", urls, body)
17858 if err != nil {
17859 return nil, err
17860 }
17861 req.Header = reqHeaders
17862 googleapi.Expand(req.URL, map[string]string{
17863 "profileId": strconv.FormatInt(c.profileId, 10),
17864 })
17865 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17866 }
17867
17868
17869
17870
17871
17872
17873
17874
17875 func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) {
17876 gensupport.SetOptions(c.urlParams_, opts...)
17877 res, err := c.doRequest("json")
17878 if res != nil && res.StatusCode == http.StatusNotModified {
17879 if res.Body != nil {
17880 res.Body.Close()
17881 }
17882 return nil, &googleapi.Error{
17883 Code: res.StatusCode,
17884 Header: res.Header,
17885 }
17886 }
17887 if err != nil {
17888 return nil, err
17889 }
17890 defer googleapi.CloseBody(res)
17891 if err := googleapi.CheckResponse(res); err != nil {
17892 return nil, err
17893 }
17894 ret := &AdvertiserGroupsListResponse{
17895 ServerResponse: googleapi.ServerResponse{
17896 Header: res.Header,
17897 HTTPStatusCode: res.StatusCode,
17898 },
17899 }
17900 target := &ret
17901 if err := gensupport.DecodeResponse(target, res); err != nil {
17902 return nil, err
17903 }
17904 return ret, nil
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984 }
17985
17986
17987
17988
17989 func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error {
17990 c.ctx_ = ctx
17991 defer c.PageToken(c.urlParams_.Get("pageToken"))
17992 for {
17993 x, err := c.Do()
17994 if err != nil {
17995 return err
17996 }
17997 if err := f(x); err != nil {
17998 return err
17999 }
18000 if x.NextPageToken == "" {
18001 return nil
18002 }
18003 c.PageToken(x.NextPageToken)
18004 }
18005 }
18006
18007
18008
18009 type AdvertiserGroupsPatchCall struct {
18010 s *Service
18011 profileId int64
18012 advertisergroup *AdvertiserGroup
18013 urlParams_ gensupport.URLParams
18014 ctx_ context.Context
18015 header_ http.Header
18016 }
18017
18018
18019
18020 func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall {
18021 c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18022 c.profileId = profileId
18023 c.urlParams_.Set("id", fmt.Sprint(id))
18024 c.advertisergroup = advertisergroup
18025 return c
18026 }
18027
18028
18029
18030
18031 func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall {
18032 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18033 return c
18034 }
18035
18036
18037
18038
18039 func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall {
18040 c.ctx_ = ctx
18041 return c
18042 }
18043
18044
18045
18046 func (c *AdvertiserGroupsPatchCall) Header() http.Header {
18047 if c.header_ == nil {
18048 c.header_ = make(http.Header)
18049 }
18050 return c.header_
18051 }
18052
18053 func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
18054 reqHeaders := make(http.Header)
18055 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18056 for k, v := range c.header_ {
18057 reqHeaders[k] = v
18058 }
18059 reqHeaders.Set("User-Agent", c.s.userAgent())
18060 var body io.Reader = nil
18061 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup)
18062 if err != nil {
18063 return nil, err
18064 }
18065 reqHeaders.Set("Content-Type", "application/json")
18066 c.urlParams_.Set("alt", alt)
18067 c.urlParams_.Set("prettyPrint", "false")
18068 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
18069 urls += "?" + c.urlParams_.Encode()
18070 req, err := http.NewRequest("PATCH", urls, body)
18071 if err != nil {
18072 return nil, err
18073 }
18074 req.Header = reqHeaders
18075 googleapi.Expand(req.URL, map[string]string{
18076 "profileId": strconv.FormatInt(c.profileId, 10),
18077 })
18078 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18079 }
18080
18081
18082
18083
18084
18085
18086
18087
18088 func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
18089 gensupport.SetOptions(c.urlParams_, opts...)
18090 res, err := c.doRequest("json")
18091 if res != nil && res.StatusCode == http.StatusNotModified {
18092 if res.Body != nil {
18093 res.Body.Close()
18094 }
18095 return nil, &googleapi.Error{
18096 Code: res.StatusCode,
18097 Header: res.Header,
18098 }
18099 }
18100 if err != nil {
18101 return nil, err
18102 }
18103 defer googleapi.CloseBody(res)
18104 if err := googleapi.CheckResponse(res); err != nil {
18105 return nil, err
18106 }
18107 ret := &AdvertiserGroup{
18108 ServerResponse: googleapi.ServerResponse{
18109 Header: res.Header,
18110 HTTPStatusCode: res.StatusCode,
18111 },
18112 }
18113 target := &ret
18114 if err := gensupport.DecodeResponse(target, res); err != nil {
18115 return nil, err
18116 }
18117 return ret, nil
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154 }
18155
18156
18157
18158 type AdvertiserGroupsUpdateCall struct {
18159 s *Service
18160 profileId int64
18161 advertisergroup *AdvertiserGroup
18162 urlParams_ gensupport.URLParams
18163 ctx_ context.Context
18164 header_ http.Header
18165 }
18166
18167
18168 func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall {
18169 c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18170 c.profileId = profileId
18171 c.advertisergroup = advertisergroup
18172 return c
18173 }
18174
18175
18176
18177
18178 func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall {
18179 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18180 return c
18181 }
18182
18183
18184
18185
18186 func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall {
18187 c.ctx_ = ctx
18188 return c
18189 }
18190
18191
18192
18193 func (c *AdvertiserGroupsUpdateCall) Header() http.Header {
18194 if c.header_ == nil {
18195 c.header_ = make(http.Header)
18196 }
18197 return c.header_
18198 }
18199
18200 func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
18201 reqHeaders := make(http.Header)
18202 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18203 for k, v := range c.header_ {
18204 reqHeaders[k] = v
18205 }
18206 reqHeaders.Set("User-Agent", c.s.userAgent())
18207 var body io.Reader = nil
18208 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup)
18209 if err != nil {
18210 return nil, err
18211 }
18212 reqHeaders.Set("Content-Type", "application/json")
18213 c.urlParams_.Set("alt", alt)
18214 c.urlParams_.Set("prettyPrint", "false")
18215 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
18216 urls += "?" + c.urlParams_.Encode()
18217 req, err := http.NewRequest("PUT", urls, body)
18218 if err != nil {
18219 return nil, err
18220 }
18221 req.Header = reqHeaders
18222 googleapi.Expand(req.URL, map[string]string{
18223 "profileId": strconv.FormatInt(c.profileId, 10),
18224 })
18225 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18226 }
18227
18228
18229
18230
18231
18232
18233
18234
18235 func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
18236 gensupport.SetOptions(c.urlParams_, opts...)
18237 res, err := c.doRequest("json")
18238 if res != nil && res.StatusCode == http.StatusNotModified {
18239 if res.Body != nil {
18240 res.Body.Close()
18241 }
18242 return nil, &googleapi.Error{
18243 Code: res.StatusCode,
18244 Header: res.Header,
18245 }
18246 }
18247 if err != nil {
18248 return nil, err
18249 }
18250 defer googleapi.CloseBody(res)
18251 if err := googleapi.CheckResponse(res); err != nil {
18252 return nil, err
18253 }
18254 ret := &AdvertiserGroup{
18255 ServerResponse: googleapi.ServerResponse{
18256 Header: res.Header,
18257 HTTPStatusCode: res.StatusCode,
18258 },
18259 }
18260 target := &ret
18261 if err := gensupport.DecodeResponse(target, res); err != nil {
18262 return nil, err
18263 }
18264 return ret, nil
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293 }
18294
18295
18296
18297 type AdvertisersGetCall struct {
18298 s *Service
18299 profileId int64
18300 id int64
18301 urlParams_ gensupport.URLParams
18302 ifNoneMatch_ string
18303 ctx_ context.Context
18304 header_ http.Header
18305 }
18306
18307
18308 func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall {
18309 c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18310 c.profileId = profileId
18311 c.id = id
18312 return c
18313 }
18314
18315
18316
18317
18318 func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall {
18319 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18320 return c
18321 }
18322
18323
18324
18325
18326
18327
18328 func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall {
18329 c.ifNoneMatch_ = entityTag
18330 return c
18331 }
18332
18333
18334
18335
18336 func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall {
18337 c.ctx_ = ctx
18338 return c
18339 }
18340
18341
18342
18343 func (c *AdvertisersGetCall) Header() http.Header {
18344 if c.header_ == nil {
18345 c.header_ = make(http.Header)
18346 }
18347 return c.header_
18348 }
18349
18350 func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) {
18351 reqHeaders := make(http.Header)
18352 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18353 for k, v := range c.header_ {
18354 reqHeaders[k] = v
18355 }
18356 reqHeaders.Set("User-Agent", c.s.userAgent())
18357 if c.ifNoneMatch_ != "" {
18358 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18359 }
18360 var body io.Reader = nil
18361 c.urlParams_.Set("alt", alt)
18362 c.urlParams_.Set("prettyPrint", "false")
18363 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers/{id}")
18364 urls += "?" + c.urlParams_.Encode()
18365 req, err := http.NewRequest("GET", urls, body)
18366 if err != nil {
18367 return nil, err
18368 }
18369 req.Header = reqHeaders
18370 googleapi.Expand(req.URL, map[string]string{
18371 "profileId": strconv.FormatInt(c.profileId, 10),
18372 "id": strconv.FormatInt(c.id, 10),
18373 })
18374 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18375 }
18376
18377
18378
18379
18380
18381
18382
18383
18384 func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
18385 gensupport.SetOptions(c.urlParams_, opts...)
18386 res, err := c.doRequest("json")
18387 if res != nil && res.StatusCode == http.StatusNotModified {
18388 if res.Body != nil {
18389 res.Body.Close()
18390 }
18391 return nil, &googleapi.Error{
18392 Code: res.StatusCode,
18393 Header: res.Header,
18394 }
18395 }
18396 if err != nil {
18397 return nil, err
18398 }
18399 defer googleapi.CloseBody(res)
18400 if err := googleapi.CheckResponse(res); err != nil {
18401 return nil, err
18402 }
18403 ret := &Advertiser{
18404 ServerResponse: googleapi.ServerResponse{
18405 Header: res.Header,
18406 HTTPStatusCode: res.StatusCode,
18407 },
18408 }
18409 target := &ret
18410 if err := gensupport.DecodeResponse(target, res); err != nil {
18411 return nil, err
18412 }
18413 return ret, nil
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447 }
18448
18449
18450
18451 type AdvertisersInsertCall struct {
18452 s *Service
18453 profileId int64
18454 advertiser *Advertiser
18455 urlParams_ gensupport.URLParams
18456 ctx_ context.Context
18457 header_ http.Header
18458 }
18459
18460
18461 func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall {
18462 c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18463 c.profileId = profileId
18464 c.advertiser = advertiser
18465 return c
18466 }
18467
18468
18469
18470
18471 func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall {
18472 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18473 return c
18474 }
18475
18476
18477
18478
18479 func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall {
18480 c.ctx_ = ctx
18481 return c
18482 }
18483
18484
18485
18486 func (c *AdvertisersInsertCall) Header() http.Header {
18487 if c.header_ == nil {
18488 c.header_ = make(http.Header)
18489 }
18490 return c.header_
18491 }
18492
18493 func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) {
18494 reqHeaders := make(http.Header)
18495 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18496 for k, v := range c.header_ {
18497 reqHeaders[k] = v
18498 }
18499 reqHeaders.Set("User-Agent", c.s.userAgent())
18500 var body io.Reader = nil
18501 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser)
18502 if err != nil {
18503 return nil, err
18504 }
18505 reqHeaders.Set("Content-Type", "application/json")
18506 c.urlParams_.Set("alt", alt)
18507 c.urlParams_.Set("prettyPrint", "false")
18508 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
18509 urls += "?" + c.urlParams_.Encode()
18510 req, err := http.NewRequest("POST", urls, body)
18511 if err != nil {
18512 return nil, err
18513 }
18514 req.Header = reqHeaders
18515 googleapi.Expand(req.URL, map[string]string{
18516 "profileId": strconv.FormatInt(c.profileId, 10),
18517 })
18518 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18519 }
18520
18521
18522
18523
18524
18525
18526
18527
18528 func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
18529 gensupport.SetOptions(c.urlParams_, opts...)
18530 res, err := c.doRequest("json")
18531 if res != nil && res.StatusCode == http.StatusNotModified {
18532 if res.Body != nil {
18533 res.Body.Close()
18534 }
18535 return nil, &googleapi.Error{
18536 Code: res.StatusCode,
18537 Header: res.Header,
18538 }
18539 }
18540 if err != nil {
18541 return nil, err
18542 }
18543 defer googleapi.CloseBody(res)
18544 if err := googleapi.CheckResponse(res); err != nil {
18545 return nil, err
18546 }
18547 ret := &Advertiser{
18548 ServerResponse: googleapi.ServerResponse{
18549 Header: res.Header,
18550 HTTPStatusCode: res.StatusCode,
18551 },
18552 }
18553 target := &ret
18554 if err := gensupport.DecodeResponse(target, res); err != nil {
18555 return nil, err
18556 }
18557 return ret, nil
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586 }
18587
18588
18589
18590 type AdvertisersListCall struct {
18591 s *Service
18592 profileId int64
18593 urlParams_ gensupport.URLParams
18594 ifNoneMatch_ string
18595 ctx_ context.Context
18596 header_ http.Header
18597 }
18598
18599
18600
18601 func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall {
18602 c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18603 c.profileId = profileId
18604 return c
18605 }
18606
18607
18608
18609 func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall {
18610 var advertiserGroupIds_ []string
18611 for _, v := range advertiserGroupIds {
18612 advertiserGroupIds_ = append(advertiserGroupIds_, fmt.Sprint(v))
18613 }
18614 c.urlParams_.SetMulti("advertiserGroupIds", advertiserGroupIds_)
18615 return c
18616 }
18617
18618
18619
18620
18621 func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall {
18622 var floodlightConfigurationIds_ []string
18623 for _, v := range floodlightConfigurationIds {
18624 floodlightConfigurationIds_ = append(floodlightConfigurationIds_, fmt.Sprint(v))
18625 }
18626 c.urlParams_.SetMulti("floodlightConfigurationIds", floodlightConfigurationIds_)
18627 return c
18628 }
18629
18630
18631
18632 func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall {
18633 var ids_ []string
18634 for _, v := range ids {
18635 ids_ = append(ids_, fmt.Sprint(v))
18636 }
18637 c.urlParams_.SetMulti("ids", ids_)
18638 return c
18639 }
18640
18641
18642
18643
18644 func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall {
18645 c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly))
18646 return c
18647 }
18648
18649
18650
18651 func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall {
18652 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
18653 return c
18654 }
18655
18656
18657
18658 func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall {
18659 c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent))
18660 return c
18661 }
18662
18663
18664
18665 func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall {
18666 c.urlParams_.Set("pageToken", pageToken)
18667 return c
18668 }
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678 func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall {
18679 c.urlParams_.Set("searchString", searchString)
18680 return c
18681 }
18682
18683
18684
18685
18686
18687
18688
18689
18690 func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall {
18691 c.urlParams_.Set("sortField", sortField)
18692 return c
18693 }
18694
18695
18696
18697
18698
18699
18700
18701
18702 func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall {
18703 c.urlParams_.Set("sortOrder", sortOrder)
18704 return c
18705 }
18706
18707
18708
18709
18710
18711
18712
18713
18714 func (c *AdvertisersListCall) Status(status string) *AdvertisersListCall {
18715 c.urlParams_.Set("status", status)
18716 return c
18717 }
18718
18719
18720
18721 func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListCall {
18722 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
18723 return c
18724 }
18725
18726
18727
18728
18729 func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall {
18730 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18731 return c
18732 }
18733
18734
18735
18736
18737
18738
18739 func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall {
18740 c.ifNoneMatch_ = entityTag
18741 return c
18742 }
18743
18744
18745
18746
18747 func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall {
18748 c.ctx_ = ctx
18749 return c
18750 }
18751
18752
18753
18754 func (c *AdvertisersListCall) Header() http.Header {
18755 if c.header_ == nil {
18756 c.header_ = make(http.Header)
18757 }
18758 return c.header_
18759 }
18760
18761 func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) {
18762 reqHeaders := make(http.Header)
18763 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18764 for k, v := range c.header_ {
18765 reqHeaders[k] = v
18766 }
18767 reqHeaders.Set("User-Agent", c.s.userAgent())
18768 if c.ifNoneMatch_ != "" {
18769 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18770 }
18771 var body io.Reader = nil
18772 c.urlParams_.Set("alt", alt)
18773 c.urlParams_.Set("prettyPrint", "false")
18774 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
18775 urls += "?" + c.urlParams_.Encode()
18776 req, err := http.NewRequest("GET", urls, body)
18777 if err != nil {
18778 return nil, err
18779 }
18780 req.Header = reqHeaders
18781 googleapi.Expand(req.URL, map[string]string{
18782 "profileId": strconv.FormatInt(c.profileId, 10),
18783 })
18784 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18785 }
18786
18787
18788
18789
18790
18791
18792
18793
18794 func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) {
18795 gensupport.SetOptions(c.urlParams_, opts...)
18796 res, err := c.doRequest("json")
18797 if res != nil && res.StatusCode == http.StatusNotModified {
18798 if res.Body != nil {
18799 res.Body.Close()
18800 }
18801 return nil, &googleapi.Error{
18802 Code: res.StatusCode,
18803 Header: res.Header,
18804 }
18805 }
18806 if err != nil {
18807 return nil, err
18808 }
18809 defer googleapi.CloseBody(res)
18810 if err := googleapi.CheckResponse(res); err != nil {
18811 return nil, err
18812 }
18813 ret := &AdvertisersListResponse{
18814 ServerResponse: googleapi.ServerResponse{
18815 Header: res.Header,
18816 HTTPStatusCode: res.StatusCode,
18817 },
18818 }
18819 target := &ret
18820 if err := gensupport.DecodeResponse(target, res); err != nil {
18821 return nil, err
18822 }
18823 return ret, nil
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946 }
18947
18948
18949
18950
18951 func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error {
18952 c.ctx_ = ctx
18953 defer c.PageToken(c.urlParams_.Get("pageToken"))
18954 for {
18955 x, err := c.Do()
18956 if err != nil {
18957 return err
18958 }
18959 if err := f(x); err != nil {
18960 return err
18961 }
18962 if x.NextPageToken == "" {
18963 return nil
18964 }
18965 c.PageToken(x.NextPageToken)
18966 }
18967 }
18968
18969
18970
18971 type AdvertisersPatchCall struct {
18972 s *Service
18973 profileId int64
18974 advertiser *Advertiser
18975 urlParams_ gensupport.URLParams
18976 ctx_ context.Context
18977 header_ http.Header
18978 }
18979
18980
18981
18982 func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall {
18983 c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18984 c.profileId = profileId
18985 c.urlParams_.Set("id", fmt.Sprint(id))
18986 c.advertiser = advertiser
18987 return c
18988 }
18989
18990
18991
18992
18993 func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall {
18994 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18995 return c
18996 }
18997
18998
18999
19000
19001 func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall {
19002 c.ctx_ = ctx
19003 return c
19004 }
19005
19006
19007
19008 func (c *AdvertisersPatchCall) Header() http.Header {
19009 if c.header_ == nil {
19010 c.header_ = make(http.Header)
19011 }
19012 return c.header_
19013 }
19014
19015 func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) {
19016 reqHeaders := make(http.Header)
19017 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19018 for k, v := range c.header_ {
19019 reqHeaders[k] = v
19020 }
19021 reqHeaders.Set("User-Agent", c.s.userAgent())
19022 var body io.Reader = nil
19023 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser)
19024 if err != nil {
19025 return nil, err
19026 }
19027 reqHeaders.Set("Content-Type", "application/json")
19028 c.urlParams_.Set("alt", alt)
19029 c.urlParams_.Set("prettyPrint", "false")
19030 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
19031 urls += "?" + c.urlParams_.Encode()
19032 req, err := http.NewRequest("PATCH", urls, body)
19033 if err != nil {
19034 return nil, err
19035 }
19036 req.Header = reqHeaders
19037 googleapi.Expand(req.URL, map[string]string{
19038 "profileId": strconv.FormatInt(c.profileId, 10),
19039 })
19040 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19041 }
19042
19043
19044
19045
19046
19047
19048
19049
19050 func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
19051 gensupport.SetOptions(c.urlParams_, opts...)
19052 res, err := c.doRequest("json")
19053 if res != nil && res.StatusCode == http.StatusNotModified {
19054 if res.Body != nil {
19055 res.Body.Close()
19056 }
19057 return nil, &googleapi.Error{
19058 Code: res.StatusCode,
19059 Header: res.Header,
19060 }
19061 }
19062 if err != nil {
19063 return nil, err
19064 }
19065 defer googleapi.CloseBody(res)
19066 if err := googleapi.CheckResponse(res); err != nil {
19067 return nil, err
19068 }
19069 ret := &Advertiser{
19070 ServerResponse: googleapi.ServerResponse{
19071 Header: res.Header,
19072 HTTPStatusCode: res.StatusCode,
19073 },
19074 }
19075 target := &ret
19076 if err := gensupport.DecodeResponse(target, res); err != nil {
19077 return nil, err
19078 }
19079 return ret, nil
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116 }
19117
19118
19119
19120 type AdvertisersUpdateCall struct {
19121 s *Service
19122 profileId int64
19123 advertiser *Advertiser
19124 urlParams_ gensupport.URLParams
19125 ctx_ context.Context
19126 header_ http.Header
19127 }
19128
19129
19130 func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall {
19131 c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19132 c.profileId = profileId
19133 c.advertiser = advertiser
19134 return c
19135 }
19136
19137
19138
19139
19140 func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall {
19141 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19142 return c
19143 }
19144
19145
19146
19147
19148 func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall {
19149 c.ctx_ = ctx
19150 return c
19151 }
19152
19153
19154
19155 func (c *AdvertisersUpdateCall) Header() http.Header {
19156 if c.header_ == nil {
19157 c.header_ = make(http.Header)
19158 }
19159 return c.header_
19160 }
19161
19162 func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) {
19163 reqHeaders := make(http.Header)
19164 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19165 for k, v := range c.header_ {
19166 reqHeaders[k] = v
19167 }
19168 reqHeaders.Set("User-Agent", c.s.userAgent())
19169 var body io.Reader = nil
19170 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser)
19171 if err != nil {
19172 return nil, err
19173 }
19174 reqHeaders.Set("Content-Type", "application/json")
19175 c.urlParams_.Set("alt", alt)
19176 c.urlParams_.Set("prettyPrint", "false")
19177 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
19178 urls += "?" + c.urlParams_.Encode()
19179 req, err := http.NewRequest("PUT", urls, body)
19180 if err != nil {
19181 return nil, err
19182 }
19183 req.Header = reqHeaders
19184 googleapi.Expand(req.URL, map[string]string{
19185 "profileId": strconv.FormatInt(c.profileId, 10),
19186 })
19187 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19188 }
19189
19190
19191
19192
19193
19194
19195
19196
19197 func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
19198 gensupport.SetOptions(c.urlParams_, opts...)
19199 res, err := c.doRequest("json")
19200 if res != nil && res.StatusCode == http.StatusNotModified {
19201 if res.Body != nil {
19202 res.Body.Close()
19203 }
19204 return nil, &googleapi.Error{
19205 Code: res.StatusCode,
19206 Header: res.Header,
19207 }
19208 }
19209 if err != nil {
19210 return nil, err
19211 }
19212 defer googleapi.CloseBody(res)
19213 if err := googleapi.CheckResponse(res); err != nil {
19214 return nil, err
19215 }
19216 ret := &Advertiser{
19217 ServerResponse: googleapi.ServerResponse{
19218 Header: res.Header,
19219 HTTPStatusCode: res.StatusCode,
19220 },
19221 }
19222 target := &ret
19223 if err := gensupport.DecodeResponse(target, res); err != nil {
19224 return nil, err
19225 }
19226 return ret, nil
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255 }
19256
19257
19258
19259 type BrowsersListCall struct {
19260 s *Service
19261 profileId int64
19262 urlParams_ gensupport.URLParams
19263 ifNoneMatch_ string
19264 ctx_ context.Context
19265 header_ http.Header
19266 }
19267
19268
19269 func (r *BrowsersService) List(profileId int64) *BrowsersListCall {
19270 c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19271 c.profileId = profileId
19272 return c
19273 }
19274
19275
19276
19277
19278 func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall {
19279 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19280 return c
19281 }
19282
19283
19284
19285
19286
19287
19288 func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall {
19289 c.ifNoneMatch_ = entityTag
19290 return c
19291 }
19292
19293
19294
19295
19296 func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall {
19297 c.ctx_ = ctx
19298 return c
19299 }
19300
19301
19302
19303 func (c *BrowsersListCall) Header() http.Header {
19304 if c.header_ == nil {
19305 c.header_ = make(http.Header)
19306 }
19307 return c.header_
19308 }
19309
19310 func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) {
19311 reqHeaders := make(http.Header)
19312 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19313 for k, v := range c.header_ {
19314 reqHeaders[k] = v
19315 }
19316 reqHeaders.Set("User-Agent", c.s.userAgent())
19317 if c.ifNoneMatch_ != "" {
19318 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19319 }
19320 var body io.Reader = nil
19321 c.urlParams_.Set("alt", alt)
19322 c.urlParams_.Set("prettyPrint", "false")
19323 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/browsers")
19324 urls += "?" + c.urlParams_.Encode()
19325 req, err := http.NewRequest("GET", urls, body)
19326 if err != nil {
19327 return nil, err
19328 }
19329 req.Header = reqHeaders
19330 googleapi.Expand(req.URL, map[string]string{
19331 "profileId": strconv.FormatInt(c.profileId, 10),
19332 })
19333 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19334 }
19335
19336
19337
19338
19339
19340
19341
19342
19343 func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) {
19344 gensupport.SetOptions(c.urlParams_, opts...)
19345 res, err := c.doRequest("json")
19346 if res != nil && res.StatusCode == http.StatusNotModified {
19347 if res.Body != nil {
19348 res.Body.Close()
19349 }
19350 return nil, &googleapi.Error{
19351 Code: res.StatusCode,
19352 Header: res.Header,
19353 }
19354 }
19355 if err != nil {
19356 return nil, err
19357 }
19358 defer googleapi.CloseBody(res)
19359 if err := googleapi.CheckResponse(res); err != nil {
19360 return nil, err
19361 }
19362 ret := &BrowsersListResponse{
19363 ServerResponse: googleapi.ServerResponse{
19364 Header: res.Header,
19365 HTTPStatusCode: res.StatusCode,
19366 },
19367 }
19368 target := &ret
19369 if err := gensupport.DecodeResponse(target, res); err != nil {
19370 return nil, err
19371 }
19372 return ret, nil
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398 }
19399
19400
19401
19402 type CampaignCreativeAssociationsInsertCall struct {
19403 s *Service
19404 profileId int64
19405 campaignId int64
19406 campaigncreativeassociation *CampaignCreativeAssociation
19407 urlParams_ gensupport.URLParams
19408 ctx_ context.Context
19409 header_ http.Header
19410 }
19411
19412
19413
19414
19415 func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall {
19416 c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19417 c.profileId = profileId
19418 c.campaignId = campaignId
19419 c.campaigncreativeassociation = campaigncreativeassociation
19420 return c
19421 }
19422
19423
19424
19425
19426 func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall {
19427 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19428 return c
19429 }
19430
19431
19432
19433
19434 func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall {
19435 c.ctx_ = ctx
19436 return c
19437 }
19438
19439
19440
19441 func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header {
19442 if c.header_ == nil {
19443 c.header_ = make(http.Header)
19444 }
19445 return c.header_
19446 }
19447
19448 func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) {
19449 reqHeaders := make(http.Header)
19450 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19451 for k, v := range c.header_ {
19452 reqHeaders[k] = v
19453 }
19454 reqHeaders.Set("User-Agent", c.s.userAgent())
19455 var body io.Reader = nil
19456 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation)
19457 if err != nil {
19458 return nil, err
19459 }
19460 reqHeaders.Set("Content-Type", "application/json")
19461 c.urlParams_.Set("alt", alt)
19462 c.urlParams_.Set("prettyPrint", "false")
19463 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations")
19464 urls += "?" + c.urlParams_.Encode()
19465 req, err := http.NewRequest("POST", urls, body)
19466 if err != nil {
19467 return nil, err
19468 }
19469 req.Header = reqHeaders
19470 googleapi.Expand(req.URL, map[string]string{
19471 "profileId": strconv.FormatInt(c.profileId, 10),
19472 "campaignId": strconv.FormatInt(c.campaignId, 10),
19473 })
19474 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19475 }
19476
19477
19478
19479
19480
19481
19482
19483
19484 func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) {
19485 gensupport.SetOptions(c.urlParams_, opts...)
19486 res, err := c.doRequest("json")
19487 if res != nil && res.StatusCode == http.StatusNotModified {
19488 if res.Body != nil {
19489 res.Body.Close()
19490 }
19491 return nil, &googleapi.Error{
19492 Code: res.StatusCode,
19493 Header: res.Header,
19494 }
19495 }
19496 if err != nil {
19497 return nil, err
19498 }
19499 defer googleapi.CloseBody(res)
19500 if err := googleapi.CheckResponse(res); err != nil {
19501 return nil, err
19502 }
19503 ret := &CampaignCreativeAssociation{
19504 ServerResponse: googleapi.ServerResponse{
19505 Header: res.Header,
19506 HTTPStatusCode: res.StatusCode,
19507 },
19508 }
19509 target := &ret
19510 if err := gensupport.DecodeResponse(target, res); err != nil {
19511 return nil, err
19512 }
19513 return ret, nil
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550 }
19551
19552
19553
19554 type CampaignCreativeAssociationsListCall struct {
19555 s *Service
19556 profileId int64
19557 campaignId int64
19558 urlParams_ gensupport.URLParams
19559 ifNoneMatch_ string
19560 ctx_ context.Context
19561 header_ http.Header
19562 }
19563
19564
19565
19566 func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall {
19567 c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19568 c.profileId = profileId
19569 c.campaignId = campaignId
19570 return c
19571 }
19572
19573
19574
19575 func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall {
19576 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
19577 return c
19578 }
19579
19580
19581
19582 func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *CampaignCreativeAssociationsListCall {
19583 c.urlParams_.Set("pageToken", pageToken)
19584 return c
19585 }
19586
19587
19588
19589
19590
19591
19592
19593
19594 func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *CampaignCreativeAssociationsListCall {
19595 c.urlParams_.Set("sortOrder", sortOrder)
19596 return c
19597 }
19598
19599
19600
19601
19602 func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall {
19603 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19604 return c
19605 }
19606
19607
19608
19609
19610
19611
19612 func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall {
19613 c.ifNoneMatch_ = entityTag
19614 return c
19615 }
19616
19617
19618
19619
19620 func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall {
19621 c.ctx_ = ctx
19622 return c
19623 }
19624
19625
19626
19627 func (c *CampaignCreativeAssociationsListCall) Header() http.Header {
19628 if c.header_ == nil {
19629 c.header_ = make(http.Header)
19630 }
19631 return c.header_
19632 }
19633
19634 func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) {
19635 reqHeaders := make(http.Header)
19636 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19637 for k, v := range c.header_ {
19638 reqHeaders[k] = v
19639 }
19640 reqHeaders.Set("User-Agent", c.s.userAgent())
19641 if c.ifNoneMatch_ != "" {
19642 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19643 }
19644 var body io.Reader = nil
19645 c.urlParams_.Set("alt", alt)
19646 c.urlParams_.Set("prettyPrint", "false")
19647 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations")
19648 urls += "?" + c.urlParams_.Encode()
19649 req, err := http.NewRequest("GET", urls, body)
19650 if err != nil {
19651 return nil, err
19652 }
19653 req.Header = reqHeaders
19654 googleapi.Expand(req.URL, map[string]string{
19655 "profileId": strconv.FormatInt(c.profileId, 10),
19656 "campaignId": strconv.FormatInt(c.campaignId, 10),
19657 })
19658 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19659 }
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670 func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) {
19671 gensupport.SetOptions(c.urlParams_, opts...)
19672 res, err := c.doRequest("json")
19673 if res != nil && res.StatusCode == http.StatusNotModified {
19674 if res.Body != nil {
19675 res.Body.Close()
19676 }
19677 return nil, &googleapi.Error{
19678 Code: res.StatusCode,
19679 Header: res.Header,
19680 }
19681 }
19682 if err != nil {
19683 return nil, err
19684 }
19685 defer googleapi.CloseBody(res)
19686 if err := googleapi.CheckResponse(res); err != nil {
19687 return nil, err
19688 }
19689 ret := &CampaignCreativeAssociationsListResponse{
19690 ServerResponse: googleapi.ServerResponse{
19691 Header: res.Header,
19692 HTTPStatusCode: res.StatusCode,
19693 },
19694 }
19695 target := &ret
19696 if err := gensupport.DecodeResponse(target, res); err != nil {
19697 return nil, err
19698 }
19699 return ret, nil
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761 }
19762
19763
19764
19765
19766 func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error {
19767 c.ctx_ = ctx
19768 defer c.PageToken(c.urlParams_.Get("pageToken"))
19769 for {
19770 x, err := c.Do()
19771 if err != nil {
19772 return err
19773 }
19774 if err := f(x); err != nil {
19775 return err
19776 }
19777 if x.NextPageToken == "" {
19778 return nil
19779 }
19780 c.PageToken(x.NextPageToken)
19781 }
19782 }
19783
19784
19785
19786 type CampaignsGetCall struct {
19787 s *Service
19788 profileId int64
19789 id int64
19790 urlParams_ gensupport.URLParams
19791 ifNoneMatch_ string
19792 ctx_ context.Context
19793 header_ http.Header
19794 }
19795
19796
19797 func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall {
19798 c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19799 c.profileId = profileId
19800 c.id = id
19801 return c
19802 }
19803
19804
19805
19806
19807 func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall {
19808 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19809 return c
19810 }
19811
19812
19813
19814
19815
19816
19817 func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall {
19818 c.ifNoneMatch_ = entityTag
19819 return c
19820 }
19821
19822
19823
19824
19825 func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall {
19826 c.ctx_ = ctx
19827 return c
19828 }
19829
19830
19831
19832 func (c *CampaignsGetCall) Header() http.Header {
19833 if c.header_ == nil {
19834 c.header_ = make(http.Header)
19835 }
19836 return c.header_
19837 }
19838
19839 func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) {
19840 reqHeaders := make(http.Header)
19841 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19842 for k, v := range c.header_ {
19843 reqHeaders[k] = v
19844 }
19845 reqHeaders.Set("User-Agent", c.s.userAgent())
19846 if c.ifNoneMatch_ != "" {
19847 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19848 }
19849 var body io.Reader = nil
19850 c.urlParams_.Set("alt", alt)
19851 c.urlParams_.Set("prettyPrint", "false")
19852 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{id}")
19853 urls += "?" + c.urlParams_.Encode()
19854 req, err := http.NewRequest("GET", urls, body)
19855 if err != nil {
19856 return nil, err
19857 }
19858 req.Header = reqHeaders
19859 googleapi.Expand(req.URL, map[string]string{
19860 "profileId": strconv.FormatInt(c.profileId, 10),
19861 "id": strconv.FormatInt(c.id, 10),
19862 })
19863 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19864 }
19865
19866
19867
19868
19869
19870
19871
19872
19873 func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
19874 gensupport.SetOptions(c.urlParams_, opts...)
19875 res, err := c.doRequest("json")
19876 if res != nil && res.StatusCode == http.StatusNotModified {
19877 if res.Body != nil {
19878 res.Body.Close()
19879 }
19880 return nil, &googleapi.Error{
19881 Code: res.StatusCode,
19882 Header: res.Header,
19883 }
19884 }
19885 if err != nil {
19886 return nil, err
19887 }
19888 defer googleapi.CloseBody(res)
19889 if err := googleapi.CheckResponse(res); err != nil {
19890 return nil, err
19891 }
19892 ret := &Campaign{
19893 ServerResponse: googleapi.ServerResponse{
19894 Header: res.Header,
19895 HTTPStatusCode: res.StatusCode,
19896 },
19897 }
19898 target := &ret
19899 if err := gensupport.DecodeResponse(target, res); err != nil {
19900 return nil, err
19901 }
19902 return ret, nil
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936 }
19937
19938
19939
19940 type CampaignsInsertCall struct {
19941 s *Service
19942 profileId int64
19943 campaign *Campaign
19944 urlParams_ gensupport.URLParams
19945 ctx_ context.Context
19946 header_ http.Header
19947 }
19948
19949
19950 func (r *CampaignsService) Insert(profileId int64, defaultLandingPageName string, defaultLandingPageUrl string, campaign *Campaign) *CampaignsInsertCall {
19951 c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19952 c.profileId = profileId
19953 c.urlParams_.Set("defaultLandingPageName", defaultLandingPageName)
19954 c.urlParams_.Set("defaultLandingPageUrl", defaultLandingPageUrl)
19955 c.campaign = campaign
19956 return c
19957 }
19958
19959
19960
19961
19962 func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall {
19963 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19964 return c
19965 }
19966
19967
19968
19969
19970 func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall {
19971 c.ctx_ = ctx
19972 return c
19973 }
19974
19975
19976
19977 func (c *CampaignsInsertCall) Header() http.Header {
19978 if c.header_ == nil {
19979 c.header_ = make(http.Header)
19980 }
19981 return c.header_
19982 }
19983
19984 func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) {
19985 reqHeaders := make(http.Header)
19986 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19987 for k, v := range c.header_ {
19988 reqHeaders[k] = v
19989 }
19990 reqHeaders.Set("User-Agent", c.s.userAgent())
19991 var body io.Reader = nil
19992 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign)
19993 if err != nil {
19994 return nil, err
19995 }
19996 reqHeaders.Set("Content-Type", "application/json")
19997 c.urlParams_.Set("alt", alt)
19998 c.urlParams_.Set("prettyPrint", "false")
19999 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
20000 urls += "?" + c.urlParams_.Encode()
20001 req, err := http.NewRequest("POST", urls, body)
20002 if err != nil {
20003 return nil, err
20004 }
20005 req.Header = reqHeaders
20006 googleapi.Expand(req.URL, map[string]string{
20007 "profileId": strconv.FormatInt(c.profileId, 10),
20008 })
20009 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20010 }
20011
20012
20013
20014
20015
20016
20017
20018
20019 func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
20020 gensupport.SetOptions(c.urlParams_, opts...)
20021 res, err := c.doRequest("json")
20022 if res != nil && res.StatusCode == http.StatusNotModified {
20023 if res.Body != nil {
20024 res.Body.Close()
20025 }
20026 return nil, &googleapi.Error{
20027 Code: res.StatusCode,
20028 Header: res.Header,
20029 }
20030 }
20031 if err != nil {
20032 return nil, err
20033 }
20034 defer googleapi.CloseBody(res)
20035 if err := googleapi.CheckResponse(res); err != nil {
20036 return nil, err
20037 }
20038 ret := &Campaign{
20039 ServerResponse: googleapi.ServerResponse{
20040 Header: res.Header,
20041 HTTPStatusCode: res.StatusCode,
20042 },
20043 }
20044 target := &ret
20045 if err := gensupport.DecodeResponse(target, res); err != nil {
20046 return nil, err
20047 }
20048 return ret, nil
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091 }
20092
20093
20094
20095 type CampaignsListCall struct {
20096 s *Service
20097 profileId int64
20098 urlParams_ gensupport.URLParams
20099 ifNoneMatch_ string
20100 ctx_ context.Context
20101 header_ http.Header
20102 }
20103
20104
20105
20106 func (r *CampaignsService) List(profileId int64) *CampaignsListCall {
20107 c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20108 c.profileId = profileId
20109 return c
20110 }
20111
20112
20113
20114
20115 func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall {
20116 var advertiserGroupIds_ []string
20117 for _, v := range advertiserGroupIds {
20118 advertiserGroupIds_ = append(advertiserGroupIds_, fmt.Sprint(v))
20119 }
20120 c.urlParams_.SetMulti("advertiserGroupIds", advertiserGroupIds_)
20121 return c
20122 }
20123
20124
20125
20126 func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall {
20127 var advertiserIds_ []string
20128 for _, v := range advertiserIds {
20129 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
20130 }
20131 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
20132 return c
20133 }
20134
20135
20136
20137
20138 func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall {
20139 c.urlParams_.Set("archived", fmt.Sprint(archived))
20140 return c
20141 }
20142
20143
20144
20145
20146 func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall {
20147 c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity))
20148 return c
20149 }
20150
20151
20152
20153 func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall {
20154 var excludedIds_ []string
20155 for _, v := range excludedIds {
20156 excludedIds_ = append(excludedIds_, fmt.Sprint(v))
20157 }
20158 c.urlParams_.SetMulti("excludedIds", excludedIds_)
20159 return c
20160 }
20161
20162
20163
20164 func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall {
20165 var ids_ []string
20166 for _, v := range ids {
20167 ids_ = append(ids_, fmt.Sprint(v))
20168 }
20169 c.urlParams_.SetMulti("ids", ids_)
20170 return c
20171 }
20172
20173
20174
20175 func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall {
20176 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
20177 return c
20178 }
20179
20180
20181
20182
20183 func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall {
20184 c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId))
20185 return c
20186 }
20187
20188
20189
20190 func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall {
20191 c.urlParams_.Set("pageToken", pageToken)
20192 return c
20193 }
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203 func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall {
20204 c.urlParams_.Set("searchString", searchString)
20205 return c
20206 }
20207
20208
20209
20210
20211
20212
20213
20214
20215 func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall {
20216 c.urlParams_.Set("sortField", sortField)
20217 return c
20218 }
20219
20220
20221
20222
20223
20224
20225
20226
20227 func (c *CampaignsListCall) SortOrder(sortOrder string) *CampaignsListCall {
20228 c.urlParams_.Set("sortOrder", sortOrder)
20229 return c
20230 }
20231
20232
20233
20234 func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall {
20235 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
20236 return c
20237 }
20238
20239
20240
20241
20242 func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall {
20243 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20244 return c
20245 }
20246
20247
20248
20249
20250
20251
20252 func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall {
20253 c.ifNoneMatch_ = entityTag
20254 return c
20255 }
20256
20257
20258
20259
20260 func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall {
20261 c.ctx_ = ctx
20262 return c
20263 }
20264
20265
20266
20267 func (c *CampaignsListCall) Header() http.Header {
20268 if c.header_ == nil {
20269 c.header_ = make(http.Header)
20270 }
20271 return c.header_
20272 }
20273
20274 func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) {
20275 reqHeaders := make(http.Header)
20276 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20277 for k, v := range c.header_ {
20278 reqHeaders[k] = v
20279 }
20280 reqHeaders.Set("User-Agent", c.s.userAgent())
20281 if c.ifNoneMatch_ != "" {
20282 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20283 }
20284 var body io.Reader = nil
20285 c.urlParams_.Set("alt", alt)
20286 c.urlParams_.Set("prettyPrint", "false")
20287 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
20288 urls += "?" + c.urlParams_.Encode()
20289 req, err := http.NewRequest("GET", urls, body)
20290 if err != nil {
20291 return nil, err
20292 }
20293 req.Header = reqHeaders
20294 googleapi.Expand(req.URL, map[string]string{
20295 "profileId": strconv.FormatInt(c.profileId, 10),
20296 })
20297 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20298 }
20299
20300
20301
20302
20303
20304
20305
20306
20307 func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) {
20308 gensupport.SetOptions(c.urlParams_, opts...)
20309 res, err := c.doRequest("json")
20310 if res != nil && res.StatusCode == http.StatusNotModified {
20311 if res.Body != nil {
20312 res.Body.Close()
20313 }
20314 return nil, &googleapi.Error{
20315 Code: res.StatusCode,
20316 Header: res.Header,
20317 }
20318 }
20319 if err != nil {
20320 return nil, err
20321 }
20322 defer googleapi.CloseBody(res)
20323 if err := googleapi.CheckResponse(res); err != nil {
20324 return nil, err
20325 }
20326 ret := &CampaignsListResponse{
20327 ServerResponse: googleapi.ServerResponse{
20328 Header: res.Header,
20329 HTTPStatusCode: res.StatusCode,
20330 },
20331 }
20332 target := &ret
20333 if err := gensupport.DecodeResponse(target, res); err != nil {
20334 return nil, err
20335 }
20336 return ret, nil
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459 }
20460
20461
20462
20463
20464 func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error {
20465 c.ctx_ = ctx
20466 defer c.PageToken(c.urlParams_.Get("pageToken"))
20467 for {
20468 x, err := c.Do()
20469 if err != nil {
20470 return err
20471 }
20472 if err := f(x); err != nil {
20473 return err
20474 }
20475 if x.NextPageToken == "" {
20476 return nil
20477 }
20478 c.PageToken(x.NextPageToken)
20479 }
20480 }
20481
20482
20483
20484 type CampaignsPatchCall struct {
20485 s *Service
20486 profileId int64
20487 campaign *Campaign
20488 urlParams_ gensupport.URLParams
20489 ctx_ context.Context
20490 header_ http.Header
20491 }
20492
20493
20494
20495 func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall {
20496 c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20497 c.profileId = profileId
20498 c.urlParams_.Set("id", fmt.Sprint(id))
20499 c.campaign = campaign
20500 return c
20501 }
20502
20503
20504
20505
20506 func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall {
20507 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20508 return c
20509 }
20510
20511
20512
20513
20514 func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall {
20515 c.ctx_ = ctx
20516 return c
20517 }
20518
20519
20520
20521 func (c *CampaignsPatchCall) Header() http.Header {
20522 if c.header_ == nil {
20523 c.header_ = make(http.Header)
20524 }
20525 return c.header_
20526 }
20527
20528 func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) {
20529 reqHeaders := make(http.Header)
20530 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20531 for k, v := range c.header_ {
20532 reqHeaders[k] = v
20533 }
20534 reqHeaders.Set("User-Agent", c.s.userAgent())
20535 var body io.Reader = nil
20536 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign)
20537 if err != nil {
20538 return nil, err
20539 }
20540 reqHeaders.Set("Content-Type", "application/json")
20541 c.urlParams_.Set("alt", alt)
20542 c.urlParams_.Set("prettyPrint", "false")
20543 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
20544 urls += "?" + c.urlParams_.Encode()
20545 req, err := http.NewRequest("PATCH", urls, body)
20546 if err != nil {
20547 return nil, err
20548 }
20549 req.Header = reqHeaders
20550 googleapi.Expand(req.URL, map[string]string{
20551 "profileId": strconv.FormatInt(c.profileId, 10),
20552 })
20553 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20554 }
20555
20556
20557
20558
20559
20560
20561
20562
20563 func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
20564 gensupport.SetOptions(c.urlParams_, opts...)
20565 res, err := c.doRequest("json")
20566 if res != nil && res.StatusCode == http.StatusNotModified {
20567 if res.Body != nil {
20568 res.Body.Close()
20569 }
20570 return nil, &googleapi.Error{
20571 Code: res.StatusCode,
20572 Header: res.Header,
20573 }
20574 }
20575 if err != nil {
20576 return nil, err
20577 }
20578 defer googleapi.CloseBody(res)
20579 if err := googleapi.CheckResponse(res); err != nil {
20580 return nil, err
20581 }
20582 ret := &Campaign{
20583 ServerResponse: googleapi.ServerResponse{
20584 Header: res.Header,
20585 HTTPStatusCode: res.StatusCode,
20586 },
20587 }
20588 target := &ret
20589 if err := gensupport.DecodeResponse(target, res); err != nil {
20590 return nil, err
20591 }
20592 return ret, nil
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629 }
20630
20631
20632
20633 type CampaignsUpdateCall struct {
20634 s *Service
20635 profileId int64
20636 campaign *Campaign
20637 urlParams_ gensupport.URLParams
20638 ctx_ context.Context
20639 header_ http.Header
20640 }
20641
20642
20643 func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall {
20644 c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20645 c.profileId = profileId
20646 c.campaign = campaign
20647 return c
20648 }
20649
20650
20651
20652
20653 func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall {
20654 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20655 return c
20656 }
20657
20658
20659
20660
20661 func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall {
20662 c.ctx_ = ctx
20663 return c
20664 }
20665
20666
20667
20668 func (c *CampaignsUpdateCall) Header() http.Header {
20669 if c.header_ == nil {
20670 c.header_ = make(http.Header)
20671 }
20672 return c.header_
20673 }
20674
20675 func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) {
20676 reqHeaders := make(http.Header)
20677 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20678 for k, v := range c.header_ {
20679 reqHeaders[k] = v
20680 }
20681 reqHeaders.Set("User-Agent", c.s.userAgent())
20682 var body io.Reader = nil
20683 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign)
20684 if err != nil {
20685 return nil, err
20686 }
20687 reqHeaders.Set("Content-Type", "application/json")
20688 c.urlParams_.Set("alt", alt)
20689 c.urlParams_.Set("prettyPrint", "false")
20690 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
20691 urls += "?" + c.urlParams_.Encode()
20692 req, err := http.NewRequest("PUT", urls, body)
20693 if err != nil {
20694 return nil, err
20695 }
20696 req.Header = reqHeaders
20697 googleapi.Expand(req.URL, map[string]string{
20698 "profileId": strconv.FormatInt(c.profileId, 10),
20699 })
20700 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20701 }
20702
20703
20704
20705
20706
20707
20708
20709
20710 func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
20711 gensupport.SetOptions(c.urlParams_, opts...)
20712 res, err := c.doRequest("json")
20713 if res != nil && res.StatusCode == http.StatusNotModified {
20714 if res.Body != nil {
20715 res.Body.Close()
20716 }
20717 return nil, &googleapi.Error{
20718 Code: res.StatusCode,
20719 Header: res.Header,
20720 }
20721 }
20722 if err != nil {
20723 return nil, err
20724 }
20725 defer googleapi.CloseBody(res)
20726 if err := googleapi.CheckResponse(res); err != nil {
20727 return nil, err
20728 }
20729 ret := &Campaign{
20730 ServerResponse: googleapi.ServerResponse{
20731 Header: res.Header,
20732 HTTPStatusCode: res.StatusCode,
20733 },
20734 }
20735 target := &ret
20736 if err := gensupport.DecodeResponse(target, res); err != nil {
20737 return nil, err
20738 }
20739 return ret, nil
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768 }
20769
20770
20771
20772 type ChangeLogsGetCall struct {
20773 s *Service
20774 profileId int64
20775 id int64
20776 urlParams_ gensupport.URLParams
20777 ifNoneMatch_ string
20778 ctx_ context.Context
20779 header_ http.Header
20780 }
20781
20782
20783 func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall {
20784 c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20785 c.profileId = profileId
20786 c.id = id
20787 return c
20788 }
20789
20790
20791
20792
20793 func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall {
20794 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20795 return c
20796 }
20797
20798
20799
20800
20801
20802
20803 func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall {
20804 c.ifNoneMatch_ = entityTag
20805 return c
20806 }
20807
20808
20809
20810
20811 func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall {
20812 c.ctx_ = ctx
20813 return c
20814 }
20815
20816
20817
20818 func (c *ChangeLogsGetCall) Header() http.Header {
20819 if c.header_ == nil {
20820 c.header_ = make(http.Header)
20821 }
20822 return c.header_
20823 }
20824
20825 func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) {
20826 reqHeaders := make(http.Header)
20827 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20828 for k, v := range c.header_ {
20829 reqHeaders[k] = v
20830 }
20831 reqHeaders.Set("User-Agent", c.s.userAgent())
20832 if c.ifNoneMatch_ != "" {
20833 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20834 }
20835 var body io.Reader = nil
20836 c.urlParams_.Set("alt", alt)
20837 c.urlParams_.Set("prettyPrint", "false")
20838 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs/{id}")
20839 urls += "?" + c.urlParams_.Encode()
20840 req, err := http.NewRequest("GET", urls, body)
20841 if err != nil {
20842 return nil, err
20843 }
20844 req.Header = reqHeaders
20845 googleapi.Expand(req.URL, map[string]string{
20846 "profileId": strconv.FormatInt(c.profileId, 10),
20847 "id": strconv.FormatInt(c.id, 10),
20848 })
20849 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20850 }
20851
20852
20853
20854
20855
20856
20857
20858
20859 func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) {
20860 gensupport.SetOptions(c.urlParams_, opts...)
20861 res, err := c.doRequest("json")
20862 if res != nil && res.StatusCode == http.StatusNotModified {
20863 if res.Body != nil {
20864 res.Body.Close()
20865 }
20866 return nil, &googleapi.Error{
20867 Code: res.StatusCode,
20868 Header: res.Header,
20869 }
20870 }
20871 if err != nil {
20872 return nil, err
20873 }
20874 defer googleapi.CloseBody(res)
20875 if err := googleapi.CheckResponse(res); err != nil {
20876 return nil, err
20877 }
20878 ret := &ChangeLog{
20879 ServerResponse: googleapi.ServerResponse{
20880 Header: res.Header,
20881 HTTPStatusCode: res.StatusCode,
20882 },
20883 }
20884 target := &ret
20885 if err := gensupport.DecodeResponse(target, res); err != nil {
20886 return nil, err
20887 }
20888 return ret, nil
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922 }
20923
20924
20925
20926 type ChangeLogsListCall struct {
20927 s *Service
20928 profileId int64
20929 urlParams_ gensupport.URLParams
20930 ifNoneMatch_ string
20931 ctx_ context.Context
20932 header_ http.Header
20933 }
20934
20935
20936 func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall {
20937 c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20938 c.profileId = profileId
20939 return c
20940 }
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964 func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall {
20965 c.urlParams_.Set("action", action)
20966 return c
20967 }
20968
20969
20970
20971 func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall {
20972 var ids_ []string
20973 for _, v := range ids {
20974 ids_ = append(ids_, fmt.Sprint(v))
20975 }
20976 c.urlParams_.SetMulti("ids", ids_)
20977 return c
20978 }
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988 func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall {
20989 c.urlParams_.Set("maxChangeTime", maxChangeTime)
20990 return c
20991 }
20992
20993
20994
20995 func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall {
20996 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
20997 return c
20998 }
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008 func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall {
21009 c.urlParams_.Set("minChangeTime", minChangeTime)
21010 return c
21011 }
21012
21013
21014
21015 func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall {
21016 var objectIds_ []string
21017 for _, v := range objectIds {
21018 objectIds_ = append(objectIds_, fmt.Sprint(v))
21019 }
21020 c.urlParams_.SetMulti("objectIds", objectIds_)
21021 return c
21022 }
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068 func (c *ChangeLogsListCall) ObjectType(objectType string) *ChangeLogsListCall {
21069 c.urlParams_.Set("objectType", objectType)
21070 return c
21071 }
21072
21073
21074
21075 func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall {
21076 c.urlParams_.Set("pageToken", pageToken)
21077 return c
21078 }
21079
21080
21081
21082
21083 func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall {
21084 c.urlParams_.Set("searchString", searchString)
21085 return c
21086 }
21087
21088
21089
21090 func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall {
21091 var userProfileIds_ []string
21092 for _, v := range userProfileIds {
21093 userProfileIds_ = append(userProfileIds_, fmt.Sprint(v))
21094 }
21095 c.urlParams_.SetMulti("userProfileIds", userProfileIds_)
21096 return c
21097 }
21098
21099
21100
21101
21102 func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall {
21103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21104 return c
21105 }
21106
21107
21108
21109
21110
21111
21112 func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall {
21113 c.ifNoneMatch_ = entityTag
21114 return c
21115 }
21116
21117
21118
21119
21120 func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall {
21121 c.ctx_ = ctx
21122 return c
21123 }
21124
21125
21126
21127 func (c *ChangeLogsListCall) Header() http.Header {
21128 if c.header_ == nil {
21129 c.header_ = make(http.Header)
21130 }
21131 return c.header_
21132 }
21133
21134 func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) {
21135 reqHeaders := make(http.Header)
21136 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21137 for k, v := range c.header_ {
21138 reqHeaders[k] = v
21139 }
21140 reqHeaders.Set("User-Agent", c.s.userAgent())
21141 if c.ifNoneMatch_ != "" {
21142 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21143 }
21144 var body io.Reader = nil
21145 c.urlParams_.Set("alt", alt)
21146 c.urlParams_.Set("prettyPrint", "false")
21147 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs")
21148 urls += "?" + c.urlParams_.Encode()
21149 req, err := http.NewRequest("GET", urls, body)
21150 if err != nil {
21151 return nil, err
21152 }
21153 req.Header = reqHeaders
21154 googleapi.Expand(req.URL, map[string]string{
21155 "profileId": strconv.FormatInt(c.profileId, 10),
21156 })
21157 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21158 }
21159
21160
21161
21162
21163
21164
21165
21166
21167 func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) {
21168 gensupport.SetOptions(c.urlParams_, opts...)
21169 res, err := c.doRequest("json")
21170 if res != nil && res.StatusCode == http.StatusNotModified {
21171 if res.Body != nil {
21172 res.Body.Close()
21173 }
21174 return nil, &googleapi.Error{
21175 Code: res.StatusCode,
21176 Header: res.Header,
21177 }
21178 }
21179 if err != nil {
21180 return nil, err
21181 }
21182 defer googleapi.CloseBody(res)
21183 if err := googleapi.CheckResponse(res); err != nil {
21184 return nil, err
21185 }
21186 ret := &ChangeLogsListResponse{
21187 ServerResponse: googleapi.ServerResponse{
21188 Header: res.Header,
21189 HTTPStatusCode: res.StatusCode,
21190 },
21191 }
21192 target := &ret
21193 if err := gensupport.DecodeResponse(target, res); err != nil {
21194 return nil, err
21195 }
21196 return ret, nil
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402 }
21403
21404
21405
21406
21407 func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error {
21408 c.ctx_ = ctx
21409 defer c.PageToken(c.urlParams_.Get("pageToken"))
21410 for {
21411 x, err := c.Do()
21412 if err != nil {
21413 return err
21414 }
21415 if err := f(x); err != nil {
21416 return err
21417 }
21418 if x.NextPageToken == "" {
21419 return nil
21420 }
21421 c.PageToken(x.NextPageToken)
21422 }
21423 }
21424
21425
21426
21427 type CitiesListCall struct {
21428 s *Service
21429 profileId int64
21430 urlParams_ gensupport.URLParams
21431 ifNoneMatch_ string
21432 ctx_ context.Context
21433 header_ http.Header
21434 }
21435
21436
21437 func (r *CitiesService) List(profileId int64) *CitiesListCall {
21438 c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21439 c.profileId = profileId
21440 return c
21441 }
21442
21443
21444
21445 func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall {
21446 var countryDartIds_ []string
21447 for _, v := range countryDartIds {
21448 countryDartIds_ = append(countryDartIds_, fmt.Sprint(v))
21449 }
21450 c.urlParams_.SetMulti("countryDartIds", countryDartIds_)
21451 return c
21452 }
21453
21454
21455
21456 func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall {
21457 var dartIds_ []string
21458 for _, v := range dartIds {
21459 dartIds_ = append(dartIds_, fmt.Sprint(v))
21460 }
21461 c.urlParams_.SetMulti("dartIds", dartIds_)
21462 return c
21463 }
21464
21465
21466
21467 func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall {
21468 c.urlParams_.Set("namePrefix", namePrefix)
21469 return c
21470 }
21471
21472
21473
21474 func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall {
21475 var regionDartIds_ []string
21476 for _, v := range regionDartIds {
21477 regionDartIds_ = append(regionDartIds_, fmt.Sprint(v))
21478 }
21479 c.urlParams_.SetMulti("regionDartIds", regionDartIds_)
21480 return c
21481 }
21482
21483
21484
21485
21486 func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall {
21487 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21488 return c
21489 }
21490
21491
21492
21493
21494
21495
21496 func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall {
21497 c.ifNoneMatch_ = entityTag
21498 return c
21499 }
21500
21501
21502
21503
21504 func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall {
21505 c.ctx_ = ctx
21506 return c
21507 }
21508
21509
21510
21511 func (c *CitiesListCall) Header() http.Header {
21512 if c.header_ == nil {
21513 c.header_ = make(http.Header)
21514 }
21515 return c.header_
21516 }
21517
21518 func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) {
21519 reqHeaders := make(http.Header)
21520 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21521 for k, v := range c.header_ {
21522 reqHeaders[k] = v
21523 }
21524 reqHeaders.Set("User-Agent", c.s.userAgent())
21525 if c.ifNoneMatch_ != "" {
21526 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21527 }
21528 var body io.Reader = nil
21529 c.urlParams_.Set("alt", alt)
21530 c.urlParams_.Set("prettyPrint", "false")
21531 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/cities")
21532 urls += "?" + c.urlParams_.Encode()
21533 req, err := http.NewRequest("GET", urls, body)
21534 if err != nil {
21535 return nil, err
21536 }
21537 req.Header = reqHeaders
21538 googleapi.Expand(req.URL, map[string]string{
21539 "profileId": strconv.FormatInt(c.profileId, 10),
21540 })
21541 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21542 }
21543
21544
21545
21546
21547
21548
21549
21550
21551 func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) {
21552 gensupport.SetOptions(c.urlParams_, opts...)
21553 res, err := c.doRequest("json")
21554 if res != nil && res.StatusCode == http.StatusNotModified {
21555 if res.Body != nil {
21556 res.Body.Close()
21557 }
21558 return nil, &googleapi.Error{
21559 Code: res.StatusCode,
21560 Header: res.Header,
21561 }
21562 }
21563 if err != nil {
21564 return nil, err
21565 }
21566 defer googleapi.CloseBody(res)
21567 if err := googleapi.CheckResponse(res); err != nil {
21568 return nil, err
21569 }
21570 ret := &CitiesListResponse{
21571 ServerResponse: googleapi.ServerResponse{
21572 Header: res.Header,
21573 HTTPStatusCode: res.StatusCode,
21574 },
21575 }
21576 target := &ret
21577 if err := gensupport.DecodeResponse(target, res); err != nil {
21578 return nil, err
21579 }
21580 return ret, nil
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632 }
21633
21634
21635
21636 type ConnectionTypesGetCall struct {
21637 s *Service
21638 profileId int64
21639 id int64
21640 urlParams_ gensupport.URLParams
21641 ifNoneMatch_ string
21642 ctx_ context.Context
21643 header_ http.Header
21644 }
21645
21646
21647 func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall {
21648 c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21649 c.profileId = profileId
21650 c.id = id
21651 return c
21652 }
21653
21654
21655
21656
21657 func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall {
21658 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21659 return c
21660 }
21661
21662
21663
21664
21665
21666
21667 func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall {
21668 c.ifNoneMatch_ = entityTag
21669 return c
21670 }
21671
21672
21673
21674
21675 func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall {
21676 c.ctx_ = ctx
21677 return c
21678 }
21679
21680
21681
21682 func (c *ConnectionTypesGetCall) Header() http.Header {
21683 if c.header_ == nil {
21684 c.header_ = make(http.Header)
21685 }
21686 return c.header_
21687 }
21688
21689 func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) {
21690 reqHeaders := make(http.Header)
21691 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21692 for k, v := range c.header_ {
21693 reqHeaders[k] = v
21694 }
21695 reqHeaders.Set("User-Agent", c.s.userAgent())
21696 if c.ifNoneMatch_ != "" {
21697 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21698 }
21699 var body io.Reader = nil
21700 c.urlParams_.Set("alt", alt)
21701 c.urlParams_.Set("prettyPrint", "false")
21702 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes/{id}")
21703 urls += "?" + c.urlParams_.Encode()
21704 req, err := http.NewRequest("GET", urls, body)
21705 if err != nil {
21706 return nil, err
21707 }
21708 req.Header = reqHeaders
21709 googleapi.Expand(req.URL, map[string]string{
21710 "profileId": strconv.FormatInt(c.profileId, 10),
21711 "id": strconv.FormatInt(c.id, 10),
21712 })
21713 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21714 }
21715
21716
21717
21718
21719
21720
21721
21722
21723 func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) {
21724 gensupport.SetOptions(c.urlParams_, opts...)
21725 res, err := c.doRequest("json")
21726 if res != nil && res.StatusCode == http.StatusNotModified {
21727 if res.Body != nil {
21728 res.Body.Close()
21729 }
21730 return nil, &googleapi.Error{
21731 Code: res.StatusCode,
21732 Header: res.Header,
21733 }
21734 }
21735 if err != nil {
21736 return nil, err
21737 }
21738 defer googleapi.CloseBody(res)
21739 if err := googleapi.CheckResponse(res); err != nil {
21740 return nil, err
21741 }
21742 ret := &ConnectionType{
21743 ServerResponse: googleapi.ServerResponse{
21744 Header: res.Header,
21745 HTTPStatusCode: res.StatusCode,
21746 },
21747 }
21748 target := &ret
21749 if err := gensupport.DecodeResponse(target, res); err != nil {
21750 return nil, err
21751 }
21752 return ret, nil
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786 }
21787
21788
21789
21790 type ConnectionTypesListCall struct {
21791 s *Service
21792 profileId int64
21793 urlParams_ gensupport.URLParams
21794 ifNoneMatch_ string
21795 ctx_ context.Context
21796 header_ http.Header
21797 }
21798
21799
21800 func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall {
21801 c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21802 c.profileId = profileId
21803 return c
21804 }
21805
21806
21807
21808
21809 func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall {
21810 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21811 return c
21812 }
21813
21814
21815
21816
21817
21818
21819 func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall {
21820 c.ifNoneMatch_ = entityTag
21821 return c
21822 }
21823
21824
21825
21826
21827 func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall {
21828 c.ctx_ = ctx
21829 return c
21830 }
21831
21832
21833
21834 func (c *ConnectionTypesListCall) Header() http.Header {
21835 if c.header_ == nil {
21836 c.header_ = make(http.Header)
21837 }
21838 return c.header_
21839 }
21840
21841 func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) {
21842 reqHeaders := make(http.Header)
21843 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21844 for k, v := range c.header_ {
21845 reqHeaders[k] = v
21846 }
21847 reqHeaders.Set("User-Agent", c.s.userAgent())
21848 if c.ifNoneMatch_ != "" {
21849 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21850 }
21851 var body io.Reader = nil
21852 c.urlParams_.Set("alt", alt)
21853 c.urlParams_.Set("prettyPrint", "false")
21854 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes")
21855 urls += "?" + c.urlParams_.Encode()
21856 req, err := http.NewRequest("GET", urls, body)
21857 if err != nil {
21858 return nil, err
21859 }
21860 req.Header = reqHeaders
21861 googleapi.Expand(req.URL, map[string]string{
21862 "profileId": strconv.FormatInt(c.profileId, 10),
21863 })
21864 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21865 }
21866
21867
21868
21869
21870
21871
21872
21873
21874 func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) {
21875 gensupport.SetOptions(c.urlParams_, opts...)
21876 res, err := c.doRequest("json")
21877 if res != nil && res.StatusCode == http.StatusNotModified {
21878 if res.Body != nil {
21879 res.Body.Close()
21880 }
21881 return nil, &googleapi.Error{
21882 Code: res.StatusCode,
21883 Header: res.Header,
21884 }
21885 }
21886 if err != nil {
21887 return nil, err
21888 }
21889 defer googleapi.CloseBody(res)
21890 if err := googleapi.CheckResponse(res); err != nil {
21891 return nil, err
21892 }
21893 ret := &ConnectionTypesListResponse{
21894 ServerResponse: googleapi.ServerResponse{
21895 Header: res.Header,
21896 HTTPStatusCode: res.StatusCode,
21897 },
21898 }
21899 target := &ret
21900 if err := gensupport.DecodeResponse(target, res); err != nil {
21901 return nil, err
21902 }
21903 return ret, nil
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929 }
21930
21931
21932
21933 type ContentCategoriesDeleteCall struct {
21934 s *Service
21935 profileId int64
21936 id int64
21937 urlParams_ gensupport.URLParams
21938 ctx_ context.Context
21939 header_ http.Header
21940 }
21941
21942
21943 func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall {
21944 c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21945 c.profileId = profileId
21946 c.id = id
21947 return c
21948 }
21949
21950
21951
21952
21953 func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall {
21954 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21955 return c
21956 }
21957
21958
21959
21960
21961 func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall {
21962 c.ctx_ = ctx
21963 return c
21964 }
21965
21966
21967
21968 func (c *ContentCategoriesDeleteCall) Header() http.Header {
21969 if c.header_ == nil {
21970 c.header_ = make(http.Header)
21971 }
21972 return c.header_
21973 }
21974
21975 func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
21976 reqHeaders := make(http.Header)
21977 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21978 for k, v := range c.header_ {
21979 reqHeaders[k] = v
21980 }
21981 reqHeaders.Set("User-Agent", c.s.userAgent())
21982 var body io.Reader = nil
21983 c.urlParams_.Set("alt", alt)
21984 c.urlParams_.Set("prettyPrint", "false")
21985 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}")
21986 urls += "?" + c.urlParams_.Encode()
21987 req, err := http.NewRequest("DELETE", urls, body)
21988 if err != nil {
21989 return nil, err
21990 }
21991 req.Header = reqHeaders
21992 googleapi.Expand(req.URL, map[string]string{
21993 "profileId": strconv.FormatInt(c.profileId, 10),
21994 "id": strconv.FormatInt(c.id, 10),
21995 })
21996 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21997 }
21998
21999
22000 func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error {
22001 gensupport.SetOptions(c.urlParams_, opts...)
22002 res, err := c.doRequest("json")
22003 if err != nil {
22004 return err
22005 }
22006 defer googleapi.CloseBody(res)
22007 if err := googleapi.CheckResponse(res); err != nil {
22008 return err
22009 }
22010 return nil
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041 }
22042
22043
22044
22045 type ContentCategoriesGetCall struct {
22046 s *Service
22047 profileId int64
22048 id int64
22049 urlParams_ gensupport.URLParams
22050 ifNoneMatch_ string
22051 ctx_ context.Context
22052 header_ http.Header
22053 }
22054
22055
22056 func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall {
22057 c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22058 c.profileId = profileId
22059 c.id = id
22060 return c
22061 }
22062
22063
22064
22065
22066 func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall {
22067 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22068 return c
22069 }
22070
22071
22072
22073
22074
22075
22076 func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall {
22077 c.ifNoneMatch_ = entityTag
22078 return c
22079 }
22080
22081
22082
22083
22084 func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall {
22085 c.ctx_ = ctx
22086 return c
22087 }
22088
22089
22090
22091 func (c *ContentCategoriesGetCall) Header() http.Header {
22092 if c.header_ == nil {
22093 c.header_ = make(http.Header)
22094 }
22095 return c.header_
22096 }
22097
22098 func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) {
22099 reqHeaders := make(http.Header)
22100 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22101 for k, v := range c.header_ {
22102 reqHeaders[k] = v
22103 }
22104 reqHeaders.Set("User-Agent", c.s.userAgent())
22105 if c.ifNoneMatch_ != "" {
22106 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22107 }
22108 var body io.Reader = nil
22109 c.urlParams_.Set("alt", alt)
22110 c.urlParams_.Set("prettyPrint", "false")
22111 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}")
22112 urls += "?" + c.urlParams_.Encode()
22113 req, err := http.NewRequest("GET", urls, body)
22114 if err != nil {
22115 return nil, err
22116 }
22117 req.Header = reqHeaders
22118 googleapi.Expand(req.URL, map[string]string{
22119 "profileId": strconv.FormatInt(c.profileId, 10),
22120 "id": strconv.FormatInt(c.id, 10),
22121 })
22122 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22123 }
22124
22125
22126
22127
22128
22129
22130
22131
22132 func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
22133 gensupport.SetOptions(c.urlParams_, opts...)
22134 res, err := c.doRequest("json")
22135 if res != nil && res.StatusCode == http.StatusNotModified {
22136 if res.Body != nil {
22137 res.Body.Close()
22138 }
22139 return nil, &googleapi.Error{
22140 Code: res.StatusCode,
22141 Header: res.Header,
22142 }
22143 }
22144 if err != nil {
22145 return nil, err
22146 }
22147 defer googleapi.CloseBody(res)
22148 if err := googleapi.CheckResponse(res); err != nil {
22149 return nil, err
22150 }
22151 ret := &ContentCategory{
22152 ServerResponse: googleapi.ServerResponse{
22153 Header: res.Header,
22154 HTTPStatusCode: res.StatusCode,
22155 },
22156 }
22157 target := &ret
22158 if err := gensupport.DecodeResponse(target, res); err != nil {
22159 return nil, err
22160 }
22161 return ret, nil
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195 }
22196
22197
22198
22199 type ContentCategoriesInsertCall struct {
22200 s *Service
22201 profileId int64
22202 contentcategory *ContentCategory
22203 urlParams_ gensupport.URLParams
22204 ctx_ context.Context
22205 header_ http.Header
22206 }
22207
22208
22209 func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall {
22210 c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22211 c.profileId = profileId
22212 c.contentcategory = contentcategory
22213 return c
22214 }
22215
22216
22217
22218
22219 func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall {
22220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22221 return c
22222 }
22223
22224
22225
22226
22227 func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall {
22228 c.ctx_ = ctx
22229 return c
22230 }
22231
22232
22233
22234 func (c *ContentCategoriesInsertCall) Header() http.Header {
22235 if c.header_ == nil {
22236 c.header_ = make(http.Header)
22237 }
22238 return c.header_
22239 }
22240
22241 func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) {
22242 reqHeaders := make(http.Header)
22243 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22244 for k, v := range c.header_ {
22245 reqHeaders[k] = v
22246 }
22247 reqHeaders.Set("User-Agent", c.s.userAgent())
22248 var body io.Reader = nil
22249 body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory)
22250 if err != nil {
22251 return nil, err
22252 }
22253 reqHeaders.Set("Content-Type", "application/json")
22254 c.urlParams_.Set("alt", alt)
22255 c.urlParams_.Set("prettyPrint", "false")
22256 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
22257 urls += "?" + c.urlParams_.Encode()
22258 req, err := http.NewRequest("POST", urls, body)
22259 if err != nil {
22260 return nil, err
22261 }
22262 req.Header = reqHeaders
22263 googleapi.Expand(req.URL, map[string]string{
22264 "profileId": strconv.FormatInt(c.profileId, 10),
22265 })
22266 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22267 }
22268
22269
22270
22271
22272
22273
22274
22275
22276 func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
22277 gensupport.SetOptions(c.urlParams_, opts...)
22278 res, err := c.doRequest("json")
22279 if res != nil && res.StatusCode == http.StatusNotModified {
22280 if res.Body != nil {
22281 res.Body.Close()
22282 }
22283 return nil, &googleapi.Error{
22284 Code: res.StatusCode,
22285 Header: res.Header,
22286 }
22287 }
22288 if err != nil {
22289 return nil, err
22290 }
22291 defer googleapi.CloseBody(res)
22292 if err := googleapi.CheckResponse(res); err != nil {
22293 return nil, err
22294 }
22295 ret := &ContentCategory{
22296 ServerResponse: googleapi.ServerResponse{
22297 Header: res.Header,
22298 HTTPStatusCode: res.StatusCode,
22299 },
22300 }
22301 target := &ret
22302 if err := gensupport.DecodeResponse(target, res); err != nil {
22303 return nil, err
22304 }
22305 return ret, nil
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334 }
22335
22336
22337
22338 type ContentCategoriesListCall struct {
22339 s *Service
22340 profileId int64
22341 urlParams_ gensupport.URLParams
22342 ifNoneMatch_ string
22343 ctx_ context.Context
22344 header_ http.Header
22345 }
22346
22347
22348
22349 func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall {
22350 c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22351 c.profileId = profileId
22352 return c
22353 }
22354
22355
22356
22357 func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall {
22358 var ids_ []string
22359 for _, v := range ids {
22360 ids_ = append(ids_, fmt.Sprint(v))
22361 }
22362 c.urlParams_.SetMulti("ids", ids_)
22363 return c
22364 }
22365
22366
22367
22368 func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall {
22369 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
22370 return c
22371 }
22372
22373
22374
22375 func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategoriesListCall {
22376 c.urlParams_.Set("pageToken", pageToken)
22377 return c
22378 }
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389 func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall {
22390 c.urlParams_.Set("searchString", searchString)
22391 return c
22392 }
22393
22394
22395
22396
22397
22398
22399
22400
22401 func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategoriesListCall {
22402 c.urlParams_.Set("sortField", sortField)
22403 return c
22404 }
22405
22406
22407
22408
22409
22410
22411
22412
22413 func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategoriesListCall {
22414 c.urlParams_.Set("sortOrder", sortOrder)
22415 return c
22416 }
22417
22418
22419
22420
22421 func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall {
22422 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22423 return c
22424 }
22425
22426
22427
22428
22429
22430
22431 func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall {
22432 c.ifNoneMatch_ = entityTag
22433 return c
22434 }
22435
22436
22437
22438
22439 func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall {
22440 c.ctx_ = ctx
22441 return c
22442 }
22443
22444
22445
22446 func (c *ContentCategoriesListCall) Header() http.Header {
22447 if c.header_ == nil {
22448 c.header_ = make(http.Header)
22449 }
22450 return c.header_
22451 }
22452
22453 func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) {
22454 reqHeaders := make(http.Header)
22455 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22456 for k, v := range c.header_ {
22457 reqHeaders[k] = v
22458 }
22459 reqHeaders.Set("User-Agent", c.s.userAgent())
22460 if c.ifNoneMatch_ != "" {
22461 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22462 }
22463 var body io.Reader = nil
22464 c.urlParams_.Set("alt", alt)
22465 c.urlParams_.Set("prettyPrint", "false")
22466 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
22467 urls += "?" + c.urlParams_.Encode()
22468 req, err := http.NewRequest("GET", urls, body)
22469 if err != nil {
22470 return nil, err
22471 }
22472 req.Header = reqHeaders
22473 googleapi.Expand(req.URL, map[string]string{
22474 "profileId": strconv.FormatInt(c.profileId, 10),
22475 })
22476 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22477 }
22478
22479
22480
22481
22482
22483
22484
22485
22486 func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) {
22487 gensupport.SetOptions(c.urlParams_, opts...)
22488 res, err := c.doRequest("json")
22489 if res != nil && res.StatusCode == http.StatusNotModified {
22490 if res.Body != nil {
22491 res.Body.Close()
22492 }
22493 return nil, &googleapi.Error{
22494 Code: res.StatusCode,
22495 Header: res.Header,
22496 }
22497 }
22498 if err != nil {
22499 return nil, err
22500 }
22501 defer googleapi.CloseBody(res)
22502 if err := googleapi.CheckResponse(res); err != nil {
22503 return nil, err
22504 }
22505 ret := &ContentCategoriesListResponse{
22506 ServerResponse: googleapi.ServerResponse{
22507 Header: res.Header,
22508 HTTPStatusCode: res.StatusCode,
22509 },
22510 }
22511 target := &ret
22512 if err := gensupport.DecodeResponse(target, res); err != nil {
22513 return nil, err
22514 }
22515 return ret, nil
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595 }
22596
22597
22598
22599
22600 func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error {
22601 c.ctx_ = ctx
22602 defer c.PageToken(c.urlParams_.Get("pageToken"))
22603 for {
22604 x, err := c.Do()
22605 if err != nil {
22606 return err
22607 }
22608 if err := f(x); err != nil {
22609 return err
22610 }
22611 if x.NextPageToken == "" {
22612 return nil
22613 }
22614 c.PageToken(x.NextPageToken)
22615 }
22616 }
22617
22618
22619
22620 type ContentCategoriesPatchCall struct {
22621 s *Service
22622 profileId int64
22623 contentcategory *ContentCategory
22624 urlParams_ gensupport.URLParams
22625 ctx_ context.Context
22626 header_ http.Header
22627 }
22628
22629
22630
22631 func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall {
22632 c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22633 c.profileId = profileId
22634 c.urlParams_.Set("id", fmt.Sprint(id))
22635 c.contentcategory = contentcategory
22636 return c
22637 }
22638
22639
22640
22641
22642 func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall {
22643 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22644 return c
22645 }
22646
22647
22648
22649
22650 func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall {
22651 c.ctx_ = ctx
22652 return c
22653 }
22654
22655
22656
22657 func (c *ContentCategoriesPatchCall) Header() http.Header {
22658 if c.header_ == nil {
22659 c.header_ = make(http.Header)
22660 }
22661 return c.header_
22662 }
22663
22664 func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
22665 reqHeaders := make(http.Header)
22666 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22667 for k, v := range c.header_ {
22668 reqHeaders[k] = v
22669 }
22670 reqHeaders.Set("User-Agent", c.s.userAgent())
22671 var body io.Reader = nil
22672 body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory)
22673 if err != nil {
22674 return nil, err
22675 }
22676 reqHeaders.Set("Content-Type", "application/json")
22677 c.urlParams_.Set("alt", alt)
22678 c.urlParams_.Set("prettyPrint", "false")
22679 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
22680 urls += "?" + c.urlParams_.Encode()
22681 req, err := http.NewRequest("PATCH", urls, body)
22682 if err != nil {
22683 return nil, err
22684 }
22685 req.Header = reqHeaders
22686 googleapi.Expand(req.URL, map[string]string{
22687 "profileId": strconv.FormatInt(c.profileId, 10),
22688 })
22689 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22690 }
22691
22692
22693
22694
22695
22696
22697
22698
22699 func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
22700 gensupport.SetOptions(c.urlParams_, opts...)
22701 res, err := c.doRequest("json")
22702 if res != nil && res.StatusCode == http.StatusNotModified {
22703 if res.Body != nil {
22704 res.Body.Close()
22705 }
22706 return nil, &googleapi.Error{
22707 Code: res.StatusCode,
22708 Header: res.Header,
22709 }
22710 }
22711 if err != nil {
22712 return nil, err
22713 }
22714 defer googleapi.CloseBody(res)
22715 if err := googleapi.CheckResponse(res); err != nil {
22716 return nil, err
22717 }
22718 ret := &ContentCategory{
22719 ServerResponse: googleapi.ServerResponse{
22720 Header: res.Header,
22721 HTTPStatusCode: res.StatusCode,
22722 },
22723 }
22724 target := &ret
22725 if err := gensupport.DecodeResponse(target, res); err != nil {
22726 return nil, err
22727 }
22728 return ret, nil
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765 }
22766
22767
22768
22769 type ContentCategoriesUpdateCall struct {
22770 s *Service
22771 profileId int64
22772 contentcategory *ContentCategory
22773 urlParams_ gensupport.URLParams
22774 ctx_ context.Context
22775 header_ http.Header
22776 }
22777
22778
22779 func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall {
22780 c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22781 c.profileId = profileId
22782 c.contentcategory = contentcategory
22783 return c
22784 }
22785
22786
22787
22788
22789 func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall {
22790 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22791 return c
22792 }
22793
22794
22795
22796
22797 func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall {
22798 c.ctx_ = ctx
22799 return c
22800 }
22801
22802
22803
22804 func (c *ContentCategoriesUpdateCall) Header() http.Header {
22805 if c.header_ == nil {
22806 c.header_ = make(http.Header)
22807 }
22808 return c.header_
22809 }
22810
22811 func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) {
22812 reqHeaders := make(http.Header)
22813 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22814 for k, v := range c.header_ {
22815 reqHeaders[k] = v
22816 }
22817 reqHeaders.Set("User-Agent", c.s.userAgent())
22818 var body io.Reader = nil
22819 body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory)
22820 if err != nil {
22821 return nil, err
22822 }
22823 reqHeaders.Set("Content-Type", "application/json")
22824 c.urlParams_.Set("alt", alt)
22825 c.urlParams_.Set("prettyPrint", "false")
22826 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
22827 urls += "?" + c.urlParams_.Encode()
22828 req, err := http.NewRequest("PUT", urls, body)
22829 if err != nil {
22830 return nil, err
22831 }
22832 req.Header = reqHeaders
22833 googleapi.Expand(req.URL, map[string]string{
22834 "profileId": strconv.FormatInt(c.profileId, 10),
22835 })
22836 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22837 }
22838
22839
22840
22841
22842
22843
22844
22845
22846 func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
22847 gensupport.SetOptions(c.urlParams_, opts...)
22848 res, err := c.doRequest("json")
22849 if res != nil && res.StatusCode == http.StatusNotModified {
22850 if res.Body != nil {
22851 res.Body.Close()
22852 }
22853 return nil, &googleapi.Error{
22854 Code: res.StatusCode,
22855 Header: res.Header,
22856 }
22857 }
22858 if err != nil {
22859 return nil, err
22860 }
22861 defer googleapi.CloseBody(res)
22862 if err := googleapi.CheckResponse(res); err != nil {
22863 return nil, err
22864 }
22865 ret := &ContentCategory{
22866 ServerResponse: googleapi.ServerResponse{
22867 Header: res.Header,
22868 HTTPStatusCode: res.StatusCode,
22869 },
22870 }
22871 target := &ret
22872 if err := gensupport.DecodeResponse(target, res); err != nil {
22873 return nil, err
22874 }
22875 return ret, nil
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904 }
22905
22906
22907
22908 type ConversionsBatchinsertCall struct {
22909 s *Service
22910 profileId int64
22911 conversionsbatchinsertrequest *ConversionsBatchInsertRequest
22912 urlParams_ gensupport.URLParams
22913 ctx_ context.Context
22914 header_ http.Header
22915 }
22916
22917
22918 func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall {
22919 c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22920 c.profileId = profileId
22921 c.conversionsbatchinsertrequest = conversionsbatchinsertrequest
22922 return c
22923 }
22924
22925
22926
22927
22928 func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall {
22929 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22930 return c
22931 }
22932
22933
22934
22935
22936 func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall {
22937 c.ctx_ = ctx
22938 return c
22939 }
22940
22941
22942
22943 func (c *ConversionsBatchinsertCall) Header() http.Header {
22944 if c.header_ == nil {
22945 c.header_ = make(http.Header)
22946 }
22947 return c.header_
22948 }
22949
22950 func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) {
22951 reqHeaders := make(http.Header)
22952 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22953 for k, v := range c.header_ {
22954 reqHeaders[k] = v
22955 }
22956 reqHeaders.Set("User-Agent", c.s.userAgent())
22957 var body io.Reader = nil
22958 body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest)
22959 if err != nil {
22960 return nil, err
22961 }
22962 reqHeaders.Set("Content-Type", "application/json")
22963 c.urlParams_.Set("alt", alt)
22964 c.urlParams_.Set("prettyPrint", "false")
22965 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert")
22966 urls += "?" + c.urlParams_.Encode()
22967 req, err := http.NewRequest("POST", urls, body)
22968 if err != nil {
22969 return nil, err
22970 }
22971 req.Header = reqHeaders
22972 googleapi.Expand(req.URL, map[string]string{
22973 "profileId": strconv.FormatInt(c.profileId, 10),
22974 })
22975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22976 }
22977
22978
22979
22980
22981
22982
22983
22984
22985 func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) {
22986 gensupport.SetOptions(c.urlParams_, opts...)
22987 res, err := c.doRequest("json")
22988 if res != nil && res.StatusCode == http.StatusNotModified {
22989 if res.Body != nil {
22990 res.Body.Close()
22991 }
22992 return nil, &googleapi.Error{
22993 Code: res.StatusCode,
22994 Header: res.Header,
22995 }
22996 }
22997 if err != nil {
22998 return nil, err
22999 }
23000 defer googleapi.CloseBody(res)
23001 if err := googleapi.CheckResponse(res); err != nil {
23002 return nil, err
23003 }
23004 ret := &ConversionsBatchInsertResponse{
23005 ServerResponse: googleapi.ServerResponse{
23006 Header: res.Header,
23007 HTTPStatusCode: res.StatusCode,
23008 },
23009 }
23010 target := &ret
23011 if err := gensupport.DecodeResponse(target, res); err != nil {
23012 return nil, err
23013 }
23014 return ret, nil
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043 }
23044
23045
23046
23047 type CountriesGetCall struct {
23048 s *Service
23049 profileId int64
23050 dartId int64
23051 urlParams_ gensupport.URLParams
23052 ifNoneMatch_ string
23053 ctx_ context.Context
23054 header_ http.Header
23055 }
23056
23057
23058 func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall {
23059 c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23060 c.profileId = profileId
23061 c.dartId = dartId
23062 return c
23063 }
23064
23065
23066
23067
23068 func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall {
23069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23070 return c
23071 }
23072
23073
23074
23075
23076
23077
23078 func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall {
23079 c.ifNoneMatch_ = entityTag
23080 return c
23081 }
23082
23083
23084
23085
23086 func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall {
23087 c.ctx_ = ctx
23088 return c
23089 }
23090
23091
23092
23093 func (c *CountriesGetCall) Header() http.Header {
23094 if c.header_ == nil {
23095 c.header_ = make(http.Header)
23096 }
23097 return c.header_
23098 }
23099
23100 func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) {
23101 reqHeaders := make(http.Header)
23102 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23103 for k, v := range c.header_ {
23104 reqHeaders[k] = v
23105 }
23106 reqHeaders.Set("User-Agent", c.s.userAgent())
23107 if c.ifNoneMatch_ != "" {
23108 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23109 }
23110 var body io.Reader = nil
23111 c.urlParams_.Set("alt", alt)
23112 c.urlParams_.Set("prettyPrint", "false")
23113 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries/{dartId}")
23114 urls += "?" + c.urlParams_.Encode()
23115 req, err := http.NewRequest("GET", urls, body)
23116 if err != nil {
23117 return nil, err
23118 }
23119 req.Header = reqHeaders
23120 googleapi.Expand(req.URL, map[string]string{
23121 "profileId": strconv.FormatInt(c.profileId, 10),
23122 "dartId": strconv.FormatInt(c.dartId, 10),
23123 })
23124 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23125 }
23126
23127
23128
23129
23130
23131
23132
23133
23134 func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) {
23135 gensupport.SetOptions(c.urlParams_, opts...)
23136 res, err := c.doRequest("json")
23137 if res != nil && res.StatusCode == http.StatusNotModified {
23138 if res.Body != nil {
23139 res.Body.Close()
23140 }
23141 return nil, &googleapi.Error{
23142 Code: res.StatusCode,
23143 Header: res.Header,
23144 }
23145 }
23146 if err != nil {
23147 return nil, err
23148 }
23149 defer googleapi.CloseBody(res)
23150 if err := googleapi.CheckResponse(res); err != nil {
23151 return nil, err
23152 }
23153 ret := &Country{
23154 ServerResponse: googleapi.ServerResponse{
23155 Header: res.Header,
23156 HTTPStatusCode: res.StatusCode,
23157 },
23158 }
23159 target := &ret
23160 if err := gensupport.DecodeResponse(target, res); err != nil {
23161 return nil, err
23162 }
23163 return ret, nil
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197 }
23198
23199
23200
23201 type CountriesListCall struct {
23202 s *Service
23203 profileId int64
23204 urlParams_ gensupport.URLParams
23205 ifNoneMatch_ string
23206 ctx_ context.Context
23207 header_ http.Header
23208 }
23209
23210
23211 func (r *CountriesService) List(profileId int64) *CountriesListCall {
23212 c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23213 c.profileId = profileId
23214 return c
23215 }
23216
23217
23218
23219
23220 func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall {
23221 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23222 return c
23223 }
23224
23225
23226
23227
23228
23229
23230 func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall {
23231 c.ifNoneMatch_ = entityTag
23232 return c
23233 }
23234
23235
23236
23237
23238 func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall {
23239 c.ctx_ = ctx
23240 return c
23241 }
23242
23243
23244
23245 func (c *CountriesListCall) Header() http.Header {
23246 if c.header_ == nil {
23247 c.header_ = make(http.Header)
23248 }
23249 return c.header_
23250 }
23251
23252 func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) {
23253 reqHeaders := make(http.Header)
23254 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23255 for k, v := range c.header_ {
23256 reqHeaders[k] = v
23257 }
23258 reqHeaders.Set("User-Agent", c.s.userAgent())
23259 if c.ifNoneMatch_ != "" {
23260 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23261 }
23262 var body io.Reader = nil
23263 c.urlParams_.Set("alt", alt)
23264 c.urlParams_.Set("prettyPrint", "false")
23265 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries")
23266 urls += "?" + c.urlParams_.Encode()
23267 req, err := http.NewRequest("GET", urls, body)
23268 if err != nil {
23269 return nil, err
23270 }
23271 req.Header = reqHeaders
23272 googleapi.Expand(req.URL, map[string]string{
23273 "profileId": strconv.FormatInt(c.profileId, 10),
23274 })
23275 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23276 }
23277
23278
23279
23280
23281
23282
23283
23284
23285 func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) {
23286 gensupport.SetOptions(c.urlParams_, opts...)
23287 res, err := c.doRequest("json")
23288 if res != nil && res.StatusCode == http.StatusNotModified {
23289 if res.Body != nil {
23290 res.Body.Close()
23291 }
23292 return nil, &googleapi.Error{
23293 Code: res.StatusCode,
23294 Header: res.Header,
23295 }
23296 }
23297 if err != nil {
23298 return nil, err
23299 }
23300 defer googleapi.CloseBody(res)
23301 if err := googleapi.CheckResponse(res); err != nil {
23302 return nil, err
23303 }
23304 ret := &CountriesListResponse{
23305 ServerResponse: googleapi.ServerResponse{
23306 Header: res.Header,
23307 HTTPStatusCode: res.StatusCode,
23308 },
23309 }
23310 target := &ret
23311 if err := gensupport.DecodeResponse(target, res); err != nil {
23312 return nil, err
23313 }
23314 return ret, nil
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340 }
23341
23342
23343
23344 type CreativeAssetsInsertCall struct {
23345 s *Service
23346 profileId int64
23347 advertiserId int64
23348 creativeassetmetadata *CreativeAssetMetadata
23349 urlParams_ gensupport.URLParams
23350 mediaInfo_ *gensupport.MediaInfo
23351 ctx_ context.Context
23352 header_ http.Header
23353 }
23354
23355
23356 func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall {
23357 c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23358 c.profileId = profileId
23359 c.advertiserId = advertiserId
23360 c.creativeassetmetadata = creativeassetmetadata
23361 return c
23362 }
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372 func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall {
23373 c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
23374 return c
23375 }
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386 func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall {
23387 c.ctx_ = ctx
23388 c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
23389 return c
23390 }
23391
23392
23393
23394
23395
23396 func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall {
23397 c.mediaInfo_.SetProgressUpdater(pu)
23398 return c
23399 }
23400
23401
23402
23403
23404 func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall {
23405 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23406 return c
23407 }
23408
23409
23410
23411
23412
23413
23414 func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall {
23415 c.ctx_ = ctx
23416 return c
23417 }
23418
23419
23420
23421 func (c *CreativeAssetsInsertCall) Header() http.Header {
23422 if c.header_ == nil {
23423 c.header_ = make(http.Header)
23424 }
23425 return c.header_
23426 }
23427
23428 func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) {
23429 reqHeaders := make(http.Header)
23430 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23431 for k, v := range c.header_ {
23432 reqHeaders[k] = v
23433 }
23434 reqHeaders.Set("User-Agent", c.s.userAgent())
23435 var body io.Reader = nil
23436 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata)
23437 if err != nil {
23438 return nil, err
23439 }
23440 reqHeaders.Set("Content-Type", "application/json")
23441 c.urlParams_.Set("alt", alt)
23442 c.urlParams_.Set("prettyPrint", "false")
23443 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets")
23444 if c.mediaInfo_ != nil {
23445 urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/dfareporting/v2.7/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets")
23446 c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
23447 }
23448 if body == nil {
23449 body = new(bytes.Buffer)
23450 reqHeaders.Set("Content-Type", "application/json")
23451 }
23452 body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
23453 defer cleanup()
23454 urls += "?" + c.urlParams_.Encode()
23455 req, err := http.NewRequest("POST", urls, body)
23456 if err != nil {
23457 return nil, err
23458 }
23459 req.Header = reqHeaders
23460 req.GetBody = getBody
23461 googleapi.Expand(req.URL, map[string]string{
23462 "profileId": strconv.FormatInt(c.profileId, 10),
23463 "advertiserId": strconv.FormatInt(c.advertiserId, 10),
23464 })
23465 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23466 }
23467
23468
23469
23470
23471
23472
23473
23474
23475 func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) {
23476 gensupport.SetOptions(c.urlParams_, opts...)
23477 res, err := c.doRequest("json")
23478 if res != nil && res.StatusCode == http.StatusNotModified {
23479 if res.Body != nil {
23480 res.Body.Close()
23481 }
23482 return nil, &googleapi.Error{
23483 Code: res.StatusCode,
23484 Header: res.Header,
23485 }
23486 }
23487 if err != nil {
23488 return nil, err
23489 }
23490 defer googleapi.CloseBody(res)
23491 if err := googleapi.CheckResponse(res); err != nil {
23492 return nil, err
23493 }
23494 rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
23495 if rx != nil {
23496 rx.Client = c.s.client
23497 rx.UserAgent = c.s.userAgent()
23498 ctx := c.ctx_
23499 if ctx == nil {
23500 ctx = context.TODO()
23501 }
23502 res, err = rx.Upload(ctx)
23503 if err != nil {
23504 return nil, err
23505 }
23506 defer res.Body.Close()
23507 if err := googleapi.CheckResponse(res); err != nil {
23508 return nil, err
23509 }
23510 }
23511 ret := &CreativeAssetMetadata{
23512 ServerResponse: googleapi.ServerResponse{
23513 Header: res.Header,
23514 HTTPStatusCode: res.StatusCode,
23515 },
23516 }
23517 target := &ret
23518 if err := gensupport.DecodeResponse(target, res); err != nil {
23519 return nil, err
23520 }
23521 return ret, nil
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575 }
23576
23577
23578
23579 type CreativeFieldValuesDeleteCall struct {
23580 s *Service
23581 profileId int64
23582 creativeFieldId int64
23583 id int64
23584 urlParams_ gensupport.URLParams
23585 ctx_ context.Context
23586 header_ http.Header
23587 }
23588
23589
23590 func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall {
23591 c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23592 c.profileId = profileId
23593 c.creativeFieldId = creativeFieldId
23594 c.id = id
23595 return c
23596 }
23597
23598
23599
23600
23601 func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall {
23602 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23603 return c
23604 }
23605
23606
23607
23608
23609 func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall {
23610 c.ctx_ = ctx
23611 return c
23612 }
23613
23614
23615
23616 func (c *CreativeFieldValuesDeleteCall) Header() http.Header {
23617 if c.header_ == nil {
23618 c.header_ = make(http.Header)
23619 }
23620 return c.header_
23621 }
23622
23623 func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) {
23624 reqHeaders := make(http.Header)
23625 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23626 for k, v := range c.header_ {
23627 reqHeaders[k] = v
23628 }
23629 reqHeaders.Set("User-Agent", c.s.userAgent())
23630 var body io.Reader = nil
23631 c.urlParams_.Set("alt", alt)
23632 c.urlParams_.Set("prettyPrint", "false")
23633 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}")
23634 urls += "?" + c.urlParams_.Encode()
23635 req, err := http.NewRequest("DELETE", urls, body)
23636 if err != nil {
23637 return nil, err
23638 }
23639 req.Header = reqHeaders
23640 googleapi.Expand(req.URL, map[string]string{
23641 "profileId": strconv.FormatInt(c.profileId, 10),
23642 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
23643 "id": strconv.FormatInt(c.id, 10),
23644 })
23645 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23646 }
23647
23648
23649 func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error {
23650 gensupport.SetOptions(c.urlParams_, opts...)
23651 res, err := c.doRequest("json")
23652 if err != nil {
23653 return err
23654 }
23655 defer googleapi.CloseBody(res)
23656 if err := googleapi.CheckResponse(res); err != nil {
23657 return err
23658 }
23659 return nil
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698 }
23699
23700
23701
23702 type CreativeFieldValuesGetCall struct {
23703 s *Service
23704 profileId int64
23705 creativeFieldId int64
23706 id int64
23707 urlParams_ gensupport.URLParams
23708 ifNoneMatch_ string
23709 ctx_ context.Context
23710 header_ http.Header
23711 }
23712
23713
23714 func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall {
23715 c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23716 c.profileId = profileId
23717 c.creativeFieldId = creativeFieldId
23718 c.id = id
23719 return c
23720 }
23721
23722
23723
23724
23725 func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall {
23726 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23727 return c
23728 }
23729
23730
23731
23732
23733
23734
23735 func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall {
23736 c.ifNoneMatch_ = entityTag
23737 return c
23738 }
23739
23740
23741
23742
23743 func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall {
23744 c.ctx_ = ctx
23745 return c
23746 }
23747
23748
23749
23750 func (c *CreativeFieldValuesGetCall) Header() http.Header {
23751 if c.header_ == nil {
23752 c.header_ = make(http.Header)
23753 }
23754 return c.header_
23755 }
23756
23757 func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) {
23758 reqHeaders := make(http.Header)
23759 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23760 for k, v := range c.header_ {
23761 reqHeaders[k] = v
23762 }
23763 reqHeaders.Set("User-Agent", c.s.userAgent())
23764 if c.ifNoneMatch_ != "" {
23765 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23766 }
23767 var body io.Reader = nil
23768 c.urlParams_.Set("alt", alt)
23769 c.urlParams_.Set("prettyPrint", "false")
23770 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}")
23771 urls += "?" + c.urlParams_.Encode()
23772 req, err := http.NewRequest("GET", urls, body)
23773 if err != nil {
23774 return nil, err
23775 }
23776 req.Header = reqHeaders
23777 googleapi.Expand(req.URL, map[string]string{
23778 "profileId": strconv.FormatInt(c.profileId, 10),
23779 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
23780 "id": strconv.FormatInt(c.id, 10),
23781 })
23782 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23783 }
23784
23785
23786
23787
23788
23789
23790
23791
23792 func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
23793 gensupport.SetOptions(c.urlParams_, opts...)
23794 res, err := c.doRequest("json")
23795 if res != nil && res.StatusCode == http.StatusNotModified {
23796 if res.Body != nil {
23797 res.Body.Close()
23798 }
23799 return nil, &googleapi.Error{
23800 Code: res.StatusCode,
23801 Header: res.Header,
23802 }
23803 }
23804 if err != nil {
23805 return nil, err
23806 }
23807 defer googleapi.CloseBody(res)
23808 if err := googleapi.CheckResponse(res); err != nil {
23809 return nil, err
23810 }
23811 ret := &CreativeFieldValue{
23812 ServerResponse: googleapi.ServerResponse{
23813 Header: res.Header,
23814 HTTPStatusCode: res.StatusCode,
23815 },
23816 }
23817 target := &ret
23818 if err := gensupport.DecodeResponse(target, res); err != nil {
23819 return nil, err
23820 }
23821 return ret, nil
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863 }
23864
23865
23866
23867 type CreativeFieldValuesInsertCall struct {
23868 s *Service
23869 profileId int64
23870 creativeFieldId int64
23871 creativefieldvalue *CreativeFieldValue
23872 urlParams_ gensupport.URLParams
23873 ctx_ context.Context
23874 header_ http.Header
23875 }
23876
23877
23878 func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall {
23879 c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23880 c.profileId = profileId
23881 c.creativeFieldId = creativeFieldId
23882 c.creativefieldvalue = creativefieldvalue
23883 return c
23884 }
23885
23886
23887
23888
23889 func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall {
23890 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23891 return c
23892 }
23893
23894
23895
23896
23897 func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall {
23898 c.ctx_ = ctx
23899 return c
23900 }
23901
23902
23903
23904 func (c *CreativeFieldValuesInsertCall) Header() http.Header {
23905 if c.header_ == nil {
23906 c.header_ = make(http.Header)
23907 }
23908 return c.header_
23909 }
23910
23911 func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) {
23912 reqHeaders := make(http.Header)
23913 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23914 for k, v := range c.header_ {
23915 reqHeaders[k] = v
23916 }
23917 reqHeaders.Set("User-Agent", c.s.userAgent())
23918 var body io.Reader = nil
23919 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue)
23920 if err != nil {
23921 return nil, err
23922 }
23923 reqHeaders.Set("Content-Type", "application/json")
23924 c.urlParams_.Set("alt", alt)
23925 c.urlParams_.Set("prettyPrint", "false")
23926 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
23927 urls += "?" + c.urlParams_.Encode()
23928 req, err := http.NewRequest("POST", urls, body)
23929 if err != nil {
23930 return nil, err
23931 }
23932 req.Header = reqHeaders
23933 googleapi.Expand(req.URL, map[string]string{
23934 "profileId": strconv.FormatInt(c.profileId, 10),
23935 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
23936 })
23937 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23938 }
23939
23940
23941
23942
23943
23944
23945
23946
23947 func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
23948 gensupport.SetOptions(c.urlParams_, opts...)
23949 res, err := c.doRequest("json")
23950 if res != nil && res.StatusCode == http.StatusNotModified {
23951 if res.Body != nil {
23952 res.Body.Close()
23953 }
23954 return nil, &googleapi.Error{
23955 Code: res.StatusCode,
23956 Header: res.Header,
23957 }
23958 }
23959 if err != nil {
23960 return nil, err
23961 }
23962 defer googleapi.CloseBody(res)
23963 if err := googleapi.CheckResponse(res); err != nil {
23964 return nil, err
23965 }
23966 ret := &CreativeFieldValue{
23967 ServerResponse: googleapi.ServerResponse{
23968 Header: res.Header,
23969 HTTPStatusCode: res.StatusCode,
23970 },
23971 }
23972 target := &ret
23973 if err := gensupport.DecodeResponse(target, res); err != nil {
23974 return nil, err
23975 }
23976 return ret, nil
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013 }
24014
24015
24016
24017 type CreativeFieldValuesListCall struct {
24018 s *Service
24019 profileId int64
24020 creativeFieldId int64
24021 urlParams_ gensupport.URLParams
24022 ifNoneMatch_ string
24023 ctx_ context.Context
24024 header_ http.Header
24025 }
24026
24027
24028
24029 func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall {
24030 c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24031 c.profileId = profileId
24032 c.creativeFieldId = creativeFieldId
24033 return c
24034 }
24035
24036
24037
24038 func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall {
24039 var ids_ []string
24040 for _, v := range ids {
24041 ids_ = append(ids_, fmt.Sprint(v))
24042 }
24043 c.urlParams_.SetMulti("ids", ids_)
24044 return c
24045 }
24046
24047
24048
24049 func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall {
24050 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
24051 return c
24052 }
24053
24054
24055
24056 func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeFieldValuesListCall {
24057 c.urlParams_.Set("pageToken", pageToken)
24058 return c
24059 }
24060
24061
24062
24063
24064 func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall {
24065 c.urlParams_.Set("searchString", searchString)
24066 return c
24067 }
24068
24069
24070
24071
24072
24073
24074
24075
24076 func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeFieldValuesListCall {
24077 c.urlParams_.Set("sortField", sortField)
24078 return c
24079 }
24080
24081
24082
24083
24084
24085
24086
24087
24088 func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeFieldValuesListCall {
24089 c.urlParams_.Set("sortOrder", sortOrder)
24090 return c
24091 }
24092
24093
24094
24095
24096 func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall {
24097 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24098 return c
24099 }
24100
24101
24102
24103
24104
24105
24106 func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall {
24107 c.ifNoneMatch_ = entityTag
24108 return c
24109 }
24110
24111
24112
24113
24114 func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall {
24115 c.ctx_ = ctx
24116 return c
24117 }
24118
24119
24120
24121 func (c *CreativeFieldValuesListCall) Header() http.Header {
24122 if c.header_ == nil {
24123 c.header_ = make(http.Header)
24124 }
24125 return c.header_
24126 }
24127
24128 func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) {
24129 reqHeaders := make(http.Header)
24130 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24131 for k, v := range c.header_ {
24132 reqHeaders[k] = v
24133 }
24134 reqHeaders.Set("User-Agent", c.s.userAgent())
24135 if c.ifNoneMatch_ != "" {
24136 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24137 }
24138 var body io.Reader = nil
24139 c.urlParams_.Set("alt", alt)
24140 c.urlParams_.Set("prettyPrint", "false")
24141 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
24142 urls += "?" + c.urlParams_.Encode()
24143 req, err := http.NewRequest("GET", urls, body)
24144 if err != nil {
24145 return nil, err
24146 }
24147 req.Header = reqHeaders
24148 googleapi.Expand(req.URL, map[string]string{
24149 "profileId": strconv.FormatInt(c.profileId, 10),
24150 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
24151 })
24152 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24153 }
24154
24155
24156
24157
24158
24159
24160
24161
24162 func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) {
24163 gensupport.SetOptions(c.urlParams_, opts...)
24164 res, err := c.doRequest("json")
24165 if res != nil && res.StatusCode == http.StatusNotModified {
24166 if res.Body != nil {
24167 res.Body.Close()
24168 }
24169 return nil, &googleapi.Error{
24170 Code: res.StatusCode,
24171 Header: res.Header,
24172 }
24173 }
24174 if err != nil {
24175 return nil, err
24176 }
24177 defer googleapi.CloseBody(res)
24178 if err := googleapi.CheckResponse(res); err != nil {
24179 return nil, err
24180 }
24181 ret := &CreativeFieldValuesListResponse{
24182 ServerResponse: googleapi.ServerResponse{
24183 Header: res.Header,
24184 HTTPStatusCode: res.StatusCode,
24185 },
24186 }
24187 target := &ret
24188 if err := gensupport.DecodeResponse(target, res); err != nil {
24189 return nil, err
24190 }
24191 return ret, nil
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279 }
24280
24281
24282
24283
24284 func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error {
24285 c.ctx_ = ctx
24286 defer c.PageToken(c.urlParams_.Get("pageToken"))
24287 for {
24288 x, err := c.Do()
24289 if err != nil {
24290 return err
24291 }
24292 if err := f(x); err != nil {
24293 return err
24294 }
24295 if x.NextPageToken == "" {
24296 return nil
24297 }
24298 c.PageToken(x.NextPageToken)
24299 }
24300 }
24301
24302
24303
24304 type CreativeFieldValuesPatchCall struct {
24305 s *Service
24306 profileId int64
24307 creativeFieldId int64
24308 creativefieldvalue *CreativeFieldValue
24309 urlParams_ gensupport.URLParams
24310 ctx_ context.Context
24311 header_ http.Header
24312 }
24313
24314
24315
24316 func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall {
24317 c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24318 c.profileId = profileId
24319 c.creativeFieldId = creativeFieldId
24320 c.urlParams_.Set("id", fmt.Sprint(id))
24321 c.creativefieldvalue = creativefieldvalue
24322 return c
24323 }
24324
24325
24326
24327
24328 func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall {
24329 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24330 return c
24331 }
24332
24333
24334
24335
24336 func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall {
24337 c.ctx_ = ctx
24338 return c
24339 }
24340
24341
24342
24343 func (c *CreativeFieldValuesPatchCall) Header() http.Header {
24344 if c.header_ == nil {
24345 c.header_ = make(http.Header)
24346 }
24347 return c.header_
24348 }
24349
24350 func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) {
24351 reqHeaders := make(http.Header)
24352 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24353 for k, v := range c.header_ {
24354 reqHeaders[k] = v
24355 }
24356 reqHeaders.Set("User-Agent", c.s.userAgent())
24357 var body io.Reader = nil
24358 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue)
24359 if err != nil {
24360 return nil, err
24361 }
24362 reqHeaders.Set("Content-Type", "application/json")
24363 c.urlParams_.Set("alt", alt)
24364 c.urlParams_.Set("prettyPrint", "false")
24365 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
24366 urls += "?" + c.urlParams_.Encode()
24367 req, err := http.NewRequest("PATCH", urls, body)
24368 if err != nil {
24369 return nil, err
24370 }
24371 req.Header = reqHeaders
24372 googleapi.Expand(req.URL, map[string]string{
24373 "profileId": strconv.FormatInt(c.profileId, 10),
24374 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
24375 })
24376 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24377 }
24378
24379
24380
24381
24382
24383
24384
24385
24386 func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
24387 gensupport.SetOptions(c.urlParams_, opts...)
24388 res, err := c.doRequest("json")
24389 if res != nil && res.StatusCode == http.StatusNotModified {
24390 if res.Body != nil {
24391 res.Body.Close()
24392 }
24393 return nil, &googleapi.Error{
24394 Code: res.StatusCode,
24395 Header: res.Header,
24396 }
24397 }
24398 if err != nil {
24399 return nil, err
24400 }
24401 defer googleapi.CloseBody(res)
24402 if err := googleapi.CheckResponse(res); err != nil {
24403 return nil, err
24404 }
24405 ret := &CreativeFieldValue{
24406 ServerResponse: googleapi.ServerResponse{
24407 Header: res.Header,
24408 HTTPStatusCode: res.StatusCode,
24409 },
24410 }
24411 target := &ret
24412 if err := gensupport.DecodeResponse(target, res); err != nil {
24413 return nil, err
24414 }
24415 return ret, nil
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460 }
24461
24462
24463
24464 type CreativeFieldValuesUpdateCall struct {
24465 s *Service
24466 profileId int64
24467 creativeFieldId int64
24468 creativefieldvalue *CreativeFieldValue
24469 urlParams_ gensupport.URLParams
24470 ctx_ context.Context
24471 header_ http.Header
24472 }
24473
24474
24475 func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall {
24476 c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24477 c.profileId = profileId
24478 c.creativeFieldId = creativeFieldId
24479 c.creativefieldvalue = creativefieldvalue
24480 return c
24481 }
24482
24483
24484
24485
24486 func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall {
24487 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24488 return c
24489 }
24490
24491
24492
24493
24494 func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall {
24495 c.ctx_ = ctx
24496 return c
24497 }
24498
24499
24500
24501 func (c *CreativeFieldValuesUpdateCall) Header() http.Header {
24502 if c.header_ == nil {
24503 c.header_ = make(http.Header)
24504 }
24505 return c.header_
24506 }
24507
24508 func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) {
24509 reqHeaders := make(http.Header)
24510 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24511 for k, v := range c.header_ {
24512 reqHeaders[k] = v
24513 }
24514 reqHeaders.Set("User-Agent", c.s.userAgent())
24515 var body io.Reader = nil
24516 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue)
24517 if err != nil {
24518 return nil, err
24519 }
24520 reqHeaders.Set("Content-Type", "application/json")
24521 c.urlParams_.Set("alt", alt)
24522 c.urlParams_.Set("prettyPrint", "false")
24523 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
24524 urls += "?" + c.urlParams_.Encode()
24525 req, err := http.NewRequest("PUT", urls, body)
24526 if err != nil {
24527 return nil, err
24528 }
24529 req.Header = reqHeaders
24530 googleapi.Expand(req.URL, map[string]string{
24531 "profileId": strconv.FormatInt(c.profileId, 10),
24532 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
24533 })
24534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24535 }
24536
24537
24538
24539
24540
24541
24542
24543
24544 func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
24545 gensupport.SetOptions(c.urlParams_, opts...)
24546 res, err := c.doRequest("json")
24547 if res != nil && res.StatusCode == http.StatusNotModified {
24548 if res.Body != nil {
24549 res.Body.Close()
24550 }
24551 return nil, &googleapi.Error{
24552 Code: res.StatusCode,
24553 Header: res.Header,
24554 }
24555 }
24556 if err != nil {
24557 return nil, err
24558 }
24559 defer googleapi.CloseBody(res)
24560 if err := googleapi.CheckResponse(res); err != nil {
24561 return nil, err
24562 }
24563 ret := &CreativeFieldValue{
24564 ServerResponse: googleapi.ServerResponse{
24565 Header: res.Header,
24566 HTTPStatusCode: res.StatusCode,
24567 },
24568 }
24569 target := &ret
24570 if err := gensupport.DecodeResponse(target, res); err != nil {
24571 return nil, err
24572 }
24573 return ret, nil
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610 }
24611
24612
24613
24614 type CreativeFieldsDeleteCall struct {
24615 s *Service
24616 profileId int64
24617 id int64
24618 urlParams_ gensupport.URLParams
24619 ctx_ context.Context
24620 header_ http.Header
24621 }
24622
24623
24624 func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall {
24625 c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24626 c.profileId = profileId
24627 c.id = id
24628 return c
24629 }
24630
24631
24632
24633
24634 func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall {
24635 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24636 return c
24637 }
24638
24639
24640
24641
24642 func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall {
24643 c.ctx_ = ctx
24644 return c
24645 }
24646
24647
24648
24649 func (c *CreativeFieldsDeleteCall) Header() http.Header {
24650 if c.header_ == nil {
24651 c.header_ = make(http.Header)
24652 }
24653 return c.header_
24654 }
24655
24656 func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) {
24657 reqHeaders := make(http.Header)
24658 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24659 for k, v := range c.header_ {
24660 reqHeaders[k] = v
24661 }
24662 reqHeaders.Set("User-Agent", c.s.userAgent())
24663 var body io.Reader = nil
24664 c.urlParams_.Set("alt", alt)
24665 c.urlParams_.Set("prettyPrint", "false")
24666 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}")
24667 urls += "?" + c.urlParams_.Encode()
24668 req, err := http.NewRequest("DELETE", urls, body)
24669 if err != nil {
24670 return nil, err
24671 }
24672 req.Header = reqHeaders
24673 googleapi.Expand(req.URL, map[string]string{
24674 "profileId": strconv.FormatInt(c.profileId, 10),
24675 "id": strconv.FormatInt(c.id, 10),
24676 })
24677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24678 }
24679
24680
24681 func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error {
24682 gensupport.SetOptions(c.urlParams_, opts...)
24683 res, err := c.doRequest("json")
24684 if err != nil {
24685 return err
24686 }
24687 defer googleapi.CloseBody(res)
24688 if err := googleapi.CheckResponse(res); err != nil {
24689 return err
24690 }
24691 return nil
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722 }
24723
24724
24725
24726 type CreativeFieldsGetCall struct {
24727 s *Service
24728 profileId int64
24729 id int64
24730 urlParams_ gensupport.URLParams
24731 ifNoneMatch_ string
24732 ctx_ context.Context
24733 header_ http.Header
24734 }
24735
24736
24737 func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall {
24738 c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24739 c.profileId = profileId
24740 c.id = id
24741 return c
24742 }
24743
24744
24745
24746
24747 func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall {
24748 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24749 return c
24750 }
24751
24752
24753
24754
24755
24756
24757 func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall {
24758 c.ifNoneMatch_ = entityTag
24759 return c
24760 }
24761
24762
24763
24764
24765 func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall {
24766 c.ctx_ = ctx
24767 return c
24768 }
24769
24770
24771
24772 func (c *CreativeFieldsGetCall) Header() http.Header {
24773 if c.header_ == nil {
24774 c.header_ = make(http.Header)
24775 }
24776 return c.header_
24777 }
24778
24779 func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) {
24780 reqHeaders := make(http.Header)
24781 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24782 for k, v := range c.header_ {
24783 reqHeaders[k] = v
24784 }
24785 reqHeaders.Set("User-Agent", c.s.userAgent())
24786 if c.ifNoneMatch_ != "" {
24787 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24788 }
24789 var body io.Reader = nil
24790 c.urlParams_.Set("alt", alt)
24791 c.urlParams_.Set("prettyPrint", "false")
24792 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}")
24793 urls += "?" + c.urlParams_.Encode()
24794 req, err := http.NewRequest("GET", urls, body)
24795 if err != nil {
24796 return nil, err
24797 }
24798 req.Header = reqHeaders
24799 googleapi.Expand(req.URL, map[string]string{
24800 "profileId": strconv.FormatInt(c.profileId, 10),
24801 "id": strconv.FormatInt(c.id, 10),
24802 })
24803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24804 }
24805
24806
24807
24808
24809
24810
24811
24812
24813 func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
24814 gensupport.SetOptions(c.urlParams_, opts...)
24815 res, err := c.doRequest("json")
24816 if res != nil && res.StatusCode == http.StatusNotModified {
24817 if res.Body != nil {
24818 res.Body.Close()
24819 }
24820 return nil, &googleapi.Error{
24821 Code: res.StatusCode,
24822 Header: res.Header,
24823 }
24824 }
24825 if err != nil {
24826 return nil, err
24827 }
24828 defer googleapi.CloseBody(res)
24829 if err := googleapi.CheckResponse(res); err != nil {
24830 return nil, err
24831 }
24832 ret := &CreativeField{
24833 ServerResponse: googleapi.ServerResponse{
24834 Header: res.Header,
24835 HTTPStatusCode: res.StatusCode,
24836 },
24837 }
24838 target := &ret
24839 if err := gensupport.DecodeResponse(target, res); err != nil {
24840 return nil, err
24841 }
24842 return ret, nil
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876 }
24877
24878
24879
24880 type CreativeFieldsInsertCall struct {
24881 s *Service
24882 profileId int64
24883 creativefield *CreativeField
24884 urlParams_ gensupport.URLParams
24885 ctx_ context.Context
24886 header_ http.Header
24887 }
24888
24889
24890 func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall {
24891 c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24892 c.profileId = profileId
24893 c.creativefield = creativefield
24894 return c
24895 }
24896
24897
24898
24899
24900 func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall {
24901 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24902 return c
24903 }
24904
24905
24906
24907
24908 func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall {
24909 c.ctx_ = ctx
24910 return c
24911 }
24912
24913
24914
24915 func (c *CreativeFieldsInsertCall) Header() http.Header {
24916 if c.header_ == nil {
24917 c.header_ = make(http.Header)
24918 }
24919 return c.header_
24920 }
24921
24922 func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) {
24923 reqHeaders := make(http.Header)
24924 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24925 for k, v := range c.header_ {
24926 reqHeaders[k] = v
24927 }
24928 reqHeaders.Set("User-Agent", c.s.userAgent())
24929 var body io.Reader = nil
24930 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield)
24931 if err != nil {
24932 return nil, err
24933 }
24934 reqHeaders.Set("Content-Type", "application/json")
24935 c.urlParams_.Set("alt", alt)
24936 c.urlParams_.Set("prettyPrint", "false")
24937 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
24938 urls += "?" + c.urlParams_.Encode()
24939 req, err := http.NewRequest("POST", urls, body)
24940 if err != nil {
24941 return nil, err
24942 }
24943 req.Header = reqHeaders
24944 googleapi.Expand(req.URL, map[string]string{
24945 "profileId": strconv.FormatInt(c.profileId, 10),
24946 })
24947 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24948 }
24949
24950
24951
24952
24953
24954
24955
24956
24957 func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
24958 gensupport.SetOptions(c.urlParams_, opts...)
24959 res, err := c.doRequest("json")
24960 if res != nil && res.StatusCode == http.StatusNotModified {
24961 if res.Body != nil {
24962 res.Body.Close()
24963 }
24964 return nil, &googleapi.Error{
24965 Code: res.StatusCode,
24966 Header: res.Header,
24967 }
24968 }
24969 if err != nil {
24970 return nil, err
24971 }
24972 defer googleapi.CloseBody(res)
24973 if err := googleapi.CheckResponse(res); err != nil {
24974 return nil, err
24975 }
24976 ret := &CreativeField{
24977 ServerResponse: googleapi.ServerResponse{
24978 Header: res.Header,
24979 HTTPStatusCode: res.StatusCode,
24980 },
24981 }
24982 target := &ret
24983 if err := gensupport.DecodeResponse(target, res); err != nil {
24984 return nil, err
24985 }
24986 return ret, nil
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015 }
25016
25017
25018
25019 type CreativeFieldsListCall struct {
25020 s *Service
25021 profileId int64
25022 urlParams_ gensupport.URLParams
25023 ifNoneMatch_ string
25024 ctx_ context.Context
25025 header_ http.Header
25026 }
25027
25028
25029
25030 func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall {
25031 c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25032 c.profileId = profileId
25033 return c
25034 }
25035
25036
25037
25038 func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall {
25039 var advertiserIds_ []string
25040 for _, v := range advertiserIds {
25041 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
25042 }
25043 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
25044 return c
25045 }
25046
25047
25048
25049 func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall {
25050 var ids_ []string
25051 for _, v := range ids {
25052 ids_ = append(ids_, fmt.Sprint(v))
25053 }
25054 c.urlParams_.SetMulti("ids", ids_)
25055 return c
25056 }
25057
25058
25059
25060 func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall {
25061 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
25062 return c
25063 }
25064
25065
25066
25067 func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsListCall {
25068 c.urlParams_.Set("pageToken", pageToken)
25069 return c
25070 }
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081 func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall {
25082 c.urlParams_.Set("searchString", searchString)
25083 return c
25084 }
25085
25086
25087
25088
25089
25090
25091
25092
25093 func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsListCall {
25094 c.urlParams_.Set("sortField", sortField)
25095 return c
25096 }
25097
25098
25099
25100
25101
25102
25103
25104
25105 func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsListCall {
25106 c.urlParams_.Set("sortOrder", sortOrder)
25107 return c
25108 }
25109
25110
25111
25112
25113 func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall {
25114 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25115 return c
25116 }
25117
25118
25119
25120
25121
25122
25123 func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall {
25124 c.ifNoneMatch_ = entityTag
25125 return c
25126 }
25127
25128
25129
25130
25131 func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall {
25132 c.ctx_ = ctx
25133 return c
25134 }
25135
25136
25137
25138 func (c *CreativeFieldsListCall) Header() http.Header {
25139 if c.header_ == nil {
25140 c.header_ = make(http.Header)
25141 }
25142 return c.header_
25143 }
25144
25145 func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) {
25146 reqHeaders := make(http.Header)
25147 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25148 for k, v := range c.header_ {
25149 reqHeaders[k] = v
25150 }
25151 reqHeaders.Set("User-Agent", c.s.userAgent())
25152 if c.ifNoneMatch_ != "" {
25153 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25154 }
25155 var body io.Reader = nil
25156 c.urlParams_.Set("alt", alt)
25157 c.urlParams_.Set("prettyPrint", "false")
25158 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
25159 urls += "?" + c.urlParams_.Encode()
25160 req, err := http.NewRequest("GET", urls, body)
25161 if err != nil {
25162 return nil, err
25163 }
25164 req.Header = reqHeaders
25165 googleapi.Expand(req.URL, map[string]string{
25166 "profileId": strconv.FormatInt(c.profileId, 10),
25167 })
25168 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25169 }
25170
25171
25172
25173
25174
25175
25176
25177
25178 func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) {
25179 gensupport.SetOptions(c.urlParams_, opts...)
25180 res, err := c.doRequest("json")
25181 if res != nil && res.StatusCode == http.StatusNotModified {
25182 if res.Body != nil {
25183 res.Body.Close()
25184 }
25185 return nil, &googleapi.Error{
25186 Code: res.StatusCode,
25187 Header: res.Header,
25188 }
25189 }
25190 if err != nil {
25191 return nil, err
25192 }
25193 defer googleapi.CloseBody(res)
25194 if err := googleapi.CheckResponse(res); err != nil {
25195 return nil, err
25196 }
25197 ret := &CreativeFieldsListResponse{
25198 ServerResponse: googleapi.ServerResponse{
25199 Header: res.Header,
25200 HTTPStatusCode: res.StatusCode,
25201 },
25202 }
25203 target := &ret
25204 if err := gensupport.DecodeResponse(target, res); err != nil {
25205 return nil, err
25206 }
25207 return ret, nil
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294 }
25295
25296
25297
25298
25299 func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error {
25300 c.ctx_ = ctx
25301 defer c.PageToken(c.urlParams_.Get("pageToken"))
25302 for {
25303 x, err := c.Do()
25304 if err != nil {
25305 return err
25306 }
25307 if err := f(x); err != nil {
25308 return err
25309 }
25310 if x.NextPageToken == "" {
25311 return nil
25312 }
25313 c.PageToken(x.NextPageToken)
25314 }
25315 }
25316
25317
25318
25319 type CreativeFieldsPatchCall struct {
25320 s *Service
25321 profileId int64
25322 creativefield *CreativeField
25323 urlParams_ gensupport.URLParams
25324 ctx_ context.Context
25325 header_ http.Header
25326 }
25327
25328
25329
25330 func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall {
25331 c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25332 c.profileId = profileId
25333 c.urlParams_.Set("id", fmt.Sprint(id))
25334 c.creativefield = creativefield
25335 return c
25336 }
25337
25338
25339
25340
25341 func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall {
25342 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25343 return c
25344 }
25345
25346
25347
25348
25349 func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall {
25350 c.ctx_ = ctx
25351 return c
25352 }
25353
25354
25355
25356 func (c *CreativeFieldsPatchCall) Header() http.Header {
25357 if c.header_ == nil {
25358 c.header_ = make(http.Header)
25359 }
25360 return c.header_
25361 }
25362
25363 func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) {
25364 reqHeaders := make(http.Header)
25365 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25366 for k, v := range c.header_ {
25367 reqHeaders[k] = v
25368 }
25369 reqHeaders.Set("User-Agent", c.s.userAgent())
25370 var body io.Reader = nil
25371 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield)
25372 if err != nil {
25373 return nil, err
25374 }
25375 reqHeaders.Set("Content-Type", "application/json")
25376 c.urlParams_.Set("alt", alt)
25377 c.urlParams_.Set("prettyPrint", "false")
25378 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
25379 urls += "?" + c.urlParams_.Encode()
25380 req, err := http.NewRequest("PATCH", urls, body)
25381 if err != nil {
25382 return nil, err
25383 }
25384 req.Header = reqHeaders
25385 googleapi.Expand(req.URL, map[string]string{
25386 "profileId": strconv.FormatInt(c.profileId, 10),
25387 })
25388 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25389 }
25390
25391
25392
25393
25394
25395
25396
25397
25398 func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
25399 gensupport.SetOptions(c.urlParams_, opts...)
25400 res, err := c.doRequest("json")
25401 if res != nil && res.StatusCode == http.StatusNotModified {
25402 if res.Body != nil {
25403 res.Body.Close()
25404 }
25405 return nil, &googleapi.Error{
25406 Code: res.StatusCode,
25407 Header: res.Header,
25408 }
25409 }
25410 if err != nil {
25411 return nil, err
25412 }
25413 defer googleapi.CloseBody(res)
25414 if err := googleapi.CheckResponse(res); err != nil {
25415 return nil, err
25416 }
25417 ret := &CreativeField{
25418 ServerResponse: googleapi.ServerResponse{
25419 Header: res.Header,
25420 HTTPStatusCode: res.StatusCode,
25421 },
25422 }
25423 target := &ret
25424 if err := gensupport.DecodeResponse(target, res); err != nil {
25425 return nil, err
25426 }
25427 return ret, nil
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464 }
25465
25466
25467
25468 type CreativeFieldsUpdateCall struct {
25469 s *Service
25470 profileId int64
25471 creativefield *CreativeField
25472 urlParams_ gensupport.URLParams
25473 ctx_ context.Context
25474 header_ http.Header
25475 }
25476
25477
25478 func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall {
25479 c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25480 c.profileId = profileId
25481 c.creativefield = creativefield
25482 return c
25483 }
25484
25485
25486
25487
25488 func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall {
25489 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25490 return c
25491 }
25492
25493
25494
25495
25496 func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall {
25497 c.ctx_ = ctx
25498 return c
25499 }
25500
25501
25502
25503 func (c *CreativeFieldsUpdateCall) Header() http.Header {
25504 if c.header_ == nil {
25505 c.header_ = make(http.Header)
25506 }
25507 return c.header_
25508 }
25509
25510 func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) {
25511 reqHeaders := make(http.Header)
25512 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25513 for k, v := range c.header_ {
25514 reqHeaders[k] = v
25515 }
25516 reqHeaders.Set("User-Agent", c.s.userAgent())
25517 var body io.Reader = nil
25518 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield)
25519 if err != nil {
25520 return nil, err
25521 }
25522 reqHeaders.Set("Content-Type", "application/json")
25523 c.urlParams_.Set("alt", alt)
25524 c.urlParams_.Set("prettyPrint", "false")
25525 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
25526 urls += "?" + c.urlParams_.Encode()
25527 req, err := http.NewRequest("PUT", urls, body)
25528 if err != nil {
25529 return nil, err
25530 }
25531 req.Header = reqHeaders
25532 googleapi.Expand(req.URL, map[string]string{
25533 "profileId": strconv.FormatInt(c.profileId, 10),
25534 })
25535 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25536 }
25537
25538
25539
25540
25541
25542
25543
25544
25545 func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
25546 gensupport.SetOptions(c.urlParams_, opts...)
25547 res, err := c.doRequest("json")
25548 if res != nil && res.StatusCode == http.StatusNotModified {
25549 if res.Body != nil {
25550 res.Body.Close()
25551 }
25552 return nil, &googleapi.Error{
25553 Code: res.StatusCode,
25554 Header: res.Header,
25555 }
25556 }
25557 if err != nil {
25558 return nil, err
25559 }
25560 defer googleapi.CloseBody(res)
25561 if err := googleapi.CheckResponse(res); err != nil {
25562 return nil, err
25563 }
25564 ret := &CreativeField{
25565 ServerResponse: googleapi.ServerResponse{
25566 Header: res.Header,
25567 HTTPStatusCode: res.StatusCode,
25568 },
25569 }
25570 target := &ret
25571 if err := gensupport.DecodeResponse(target, res); err != nil {
25572 return nil, err
25573 }
25574 return ret, nil
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603 }
25604
25605
25606
25607 type CreativeGroupsGetCall struct {
25608 s *Service
25609 profileId int64
25610 id int64
25611 urlParams_ gensupport.URLParams
25612 ifNoneMatch_ string
25613 ctx_ context.Context
25614 header_ http.Header
25615 }
25616
25617
25618 func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall {
25619 c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25620 c.profileId = profileId
25621 c.id = id
25622 return c
25623 }
25624
25625
25626
25627
25628 func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall {
25629 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25630 return c
25631 }
25632
25633
25634
25635
25636
25637
25638 func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall {
25639 c.ifNoneMatch_ = entityTag
25640 return c
25641 }
25642
25643
25644
25645
25646 func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall {
25647 c.ctx_ = ctx
25648 return c
25649 }
25650
25651
25652
25653 func (c *CreativeGroupsGetCall) Header() http.Header {
25654 if c.header_ == nil {
25655 c.header_ = make(http.Header)
25656 }
25657 return c.header_
25658 }
25659
25660 func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) {
25661 reqHeaders := make(http.Header)
25662 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25663 for k, v := range c.header_ {
25664 reqHeaders[k] = v
25665 }
25666 reqHeaders.Set("User-Agent", c.s.userAgent())
25667 if c.ifNoneMatch_ != "" {
25668 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25669 }
25670 var body io.Reader = nil
25671 c.urlParams_.Set("alt", alt)
25672 c.urlParams_.Set("prettyPrint", "false")
25673 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups/{id}")
25674 urls += "?" + c.urlParams_.Encode()
25675 req, err := http.NewRequest("GET", urls, body)
25676 if err != nil {
25677 return nil, err
25678 }
25679 req.Header = reqHeaders
25680 googleapi.Expand(req.URL, map[string]string{
25681 "profileId": strconv.FormatInt(c.profileId, 10),
25682 "id": strconv.FormatInt(c.id, 10),
25683 })
25684 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25685 }
25686
25687
25688
25689
25690
25691
25692
25693
25694 func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
25695 gensupport.SetOptions(c.urlParams_, opts...)
25696 res, err := c.doRequest("json")
25697 if res != nil && res.StatusCode == http.StatusNotModified {
25698 if res.Body != nil {
25699 res.Body.Close()
25700 }
25701 return nil, &googleapi.Error{
25702 Code: res.StatusCode,
25703 Header: res.Header,
25704 }
25705 }
25706 if err != nil {
25707 return nil, err
25708 }
25709 defer googleapi.CloseBody(res)
25710 if err := googleapi.CheckResponse(res); err != nil {
25711 return nil, err
25712 }
25713 ret := &CreativeGroup{
25714 ServerResponse: googleapi.ServerResponse{
25715 Header: res.Header,
25716 HTTPStatusCode: res.StatusCode,
25717 },
25718 }
25719 target := &ret
25720 if err := gensupport.DecodeResponse(target, res); err != nil {
25721 return nil, err
25722 }
25723 return ret, nil
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757 }
25758
25759
25760
25761 type CreativeGroupsInsertCall struct {
25762 s *Service
25763 profileId int64
25764 creativegroup *CreativeGroup
25765 urlParams_ gensupport.URLParams
25766 ctx_ context.Context
25767 header_ http.Header
25768 }
25769
25770
25771 func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall {
25772 c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25773 c.profileId = profileId
25774 c.creativegroup = creativegroup
25775 return c
25776 }
25777
25778
25779
25780
25781 func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall {
25782 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25783 return c
25784 }
25785
25786
25787
25788
25789 func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall {
25790 c.ctx_ = ctx
25791 return c
25792 }
25793
25794
25795
25796 func (c *CreativeGroupsInsertCall) Header() http.Header {
25797 if c.header_ == nil {
25798 c.header_ = make(http.Header)
25799 }
25800 return c.header_
25801 }
25802
25803 func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
25804 reqHeaders := make(http.Header)
25805 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25806 for k, v := range c.header_ {
25807 reqHeaders[k] = v
25808 }
25809 reqHeaders.Set("User-Agent", c.s.userAgent())
25810 var body io.Reader = nil
25811 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup)
25812 if err != nil {
25813 return nil, err
25814 }
25815 reqHeaders.Set("Content-Type", "application/json")
25816 c.urlParams_.Set("alt", alt)
25817 c.urlParams_.Set("prettyPrint", "false")
25818 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
25819 urls += "?" + c.urlParams_.Encode()
25820 req, err := http.NewRequest("POST", urls, body)
25821 if err != nil {
25822 return nil, err
25823 }
25824 req.Header = reqHeaders
25825 googleapi.Expand(req.URL, map[string]string{
25826 "profileId": strconv.FormatInt(c.profileId, 10),
25827 })
25828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25829 }
25830
25831
25832
25833
25834
25835
25836
25837
25838 func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
25839 gensupport.SetOptions(c.urlParams_, opts...)
25840 res, err := c.doRequest("json")
25841 if res != nil && res.StatusCode == http.StatusNotModified {
25842 if res.Body != nil {
25843 res.Body.Close()
25844 }
25845 return nil, &googleapi.Error{
25846 Code: res.StatusCode,
25847 Header: res.Header,
25848 }
25849 }
25850 if err != nil {
25851 return nil, err
25852 }
25853 defer googleapi.CloseBody(res)
25854 if err := googleapi.CheckResponse(res); err != nil {
25855 return nil, err
25856 }
25857 ret := &CreativeGroup{
25858 ServerResponse: googleapi.ServerResponse{
25859 Header: res.Header,
25860 HTTPStatusCode: res.StatusCode,
25861 },
25862 }
25863 target := &ret
25864 if err := gensupport.DecodeResponse(target, res); err != nil {
25865 return nil, err
25866 }
25867 return ret, nil
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896 }
25897
25898
25899
25900 type CreativeGroupsListCall struct {
25901 s *Service
25902 profileId int64
25903 urlParams_ gensupport.URLParams
25904 ifNoneMatch_ string
25905 ctx_ context.Context
25906 header_ http.Header
25907 }
25908
25909
25910
25911 func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall {
25912 c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25913 c.profileId = profileId
25914 return c
25915 }
25916
25917
25918
25919 func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall {
25920 var advertiserIds_ []string
25921 for _, v := range advertiserIds {
25922 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
25923 }
25924 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
25925 return c
25926 }
25927
25928
25929
25930 func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall {
25931 c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber))
25932 return c
25933 }
25934
25935
25936
25937 func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall {
25938 var ids_ []string
25939 for _, v := range ids {
25940 ids_ = append(ids_, fmt.Sprint(v))
25941 }
25942 c.urlParams_.SetMulti("ids", ids_)
25943 return c
25944 }
25945
25946
25947
25948 func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall {
25949 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
25950 return c
25951 }
25952
25953
25954
25955 func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsListCall {
25956 c.urlParams_.Set("pageToken", pageToken)
25957 return c
25958 }
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969 func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall {
25970 c.urlParams_.Set("searchString", searchString)
25971 return c
25972 }
25973
25974
25975
25976
25977
25978
25979
25980
25981 func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsListCall {
25982 c.urlParams_.Set("sortField", sortField)
25983 return c
25984 }
25985
25986
25987
25988
25989
25990
25991
25992
25993 func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsListCall {
25994 c.urlParams_.Set("sortOrder", sortOrder)
25995 return c
25996 }
25997
25998
25999
26000
26001 func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall {
26002 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26003 return c
26004 }
26005
26006
26007
26008
26009
26010
26011 func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall {
26012 c.ifNoneMatch_ = entityTag
26013 return c
26014 }
26015
26016
26017
26018
26019 func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall {
26020 c.ctx_ = ctx
26021 return c
26022 }
26023
26024
26025
26026 func (c *CreativeGroupsListCall) Header() http.Header {
26027 if c.header_ == nil {
26028 c.header_ = make(http.Header)
26029 }
26030 return c.header_
26031 }
26032
26033 func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) {
26034 reqHeaders := make(http.Header)
26035 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26036 for k, v := range c.header_ {
26037 reqHeaders[k] = v
26038 }
26039 reqHeaders.Set("User-Agent", c.s.userAgent())
26040 if c.ifNoneMatch_ != "" {
26041 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26042 }
26043 var body io.Reader = nil
26044 c.urlParams_.Set("alt", alt)
26045 c.urlParams_.Set("prettyPrint", "false")
26046 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
26047 urls += "?" + c.urlParams_.Encode()
26048 req, err := http.NewRequest("GET", urls, body)
26049 if err != nil {
26050 return nil, err
26051 }
26052 req.Header = reqHeaders
26053 googleapi.Expand(req.URL, map[string]string{
26054 "profileId": strconv.FormatInt(c.profileId, 10),
26055 })
26056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26057 }
26058
26059
26060
26061
26062
26063
26064
26065
26066 func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) {
26067 gensupport.SetOptions(c.urlParams_, opts...)
26068 res, err := c.doRequest("json")
26069 if res != nil && res.StatusCode == http.StatusNotModified {
26070 if res.Body != nil {
26071 res.Body.Close()
26072 }
26073 return nil, &googleapi.Error{
26074 Code: res.StatusCode,
26075 Header: res.Header,
26076 }
26077 }
26078 if err != nil {
26079 return nil, err
26080 }
26081 defer googleapi.CloseBody(res)
26082 if err := googleapi.CheckResponse(res); err != nil {
26083 return nil, err
26084 }
26085 ret := &CreativeGroupsListResponse{
26086 ServerResponse: googleapi.ServerResponse{
26087 Header: res.Header,
26088 HTTPStatusCode: res.StatusCode,
26089 },
26090 }
26091 target := &ret
26092 if err := gensupport.DecodeResponse(target, res); err != nil {
26093 return nil, err
26094 }
26095 return ret, nil
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190 }
26191
26192
26193
26194
26195 func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error {
26196 c.ctx_ = ctx
26197 defer c.PageToken(c.urlParams_.Get("pageToken"))
26198 for {
26199 x, err := c.Do()
26200 if err != nil {
26201 return err
26202 }
26203 if err := f(x); err != nil {
26204 return err
26205 }
26206 if x.NextPageToken == "" {
26207 return nil
26208 }
26209 c.PageToken(x.NextPageToken)
26210 }
26211 }
26212
26213
26214
26215 type CreativeGroupsPatchCall struct {
26216 s *Service
26217 profileId int64
26218 creativegroup *CreativeGroup
26219 urlParams_ gensupport.URLParams
26220 ctx_ context.Context
26221 header_ http.Header
26222 }
26223
26224
26225
26226 func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall {
26227 c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26228 c.profileId = profileId
26229 c.urlParams_.Set("id", fmt.Sprint(id))
26230 c.creativegroup = creativegroup
26231 return c
26232 }
26233
26234
26235
26236
26237 func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall {
26238 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26239 return c
26240 }
26241
26242
26243
26244
26245 func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall {
26246 c.ctx_ = ctx
26247 return c
26248 }
26249
26250
26251
26252 func (c *CreativeGroupsPatchCall) Header() http.Header {
26253 if c.header_ == nil {
26254 c.header_ = make(http.Header)
26255 }
26256 return c.header_
26257 }
26258
26259 func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
26260 reqHeaders := make(http.Header)
26261 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26262 for k, v := range c.header_ {
26263 reqHeaders[k] = v
26264 }
26265 reqHeaders.Set("User-Agent", c.s.userAgent())
26266 var body io.Reader = nil
26267 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup)
26268 if err != nil {
26269 return nil, err
26270 }
26271 reqHeaders.Set("Content-Type", "application/json")
26272 c.urlParams_.Set("alt", alt)
26273 c.urlParams_.Set("prettyPrint", "false")
26274 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
26275 urls += "?" + c.urlParams_.Encode()
26276 req, err := http.NewRequest("PATCH", urls, body)
26277 if err != nil {
26278 return nil, err
26279 }
26280 req.Header = reqHeaders
26281 googleapi.Expand(req.URL, map[string]string{
26282 "profileId": strconv.FormatInt(c.profileId, 10),
26283 })
26284 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26285 }
26286
26287
26288
26289
26290
26291
26292
26293
26294 func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
26295 gensupport.SetOptions(c.urlParams_, opts...)
26296 res, err := c.doRequest("json")
26297 if res != nil && res.StatusCode == http.StatusNotModified {
26298 if res.Body != nil {
26299 res.Body.Close()
26300 }
26301 return nil, &googleapi.Error{
26302 Code: res.StatusCode,
26303 Header: res.Header,
26304 }
26305 }
26306 if err != nil {
26307 return nil, err
26308 }
26309 defer googleapi.CloseBody(res)
26310 if err := googleapi.CheckResponse(res); err != nil {
26311 return nil, err
26312 }
26313 ret := &CreativeGroup{
26314 ServerResponse: googleapi.ServerResponse{
26315 Header: res.Header,
26316 HTTPStatusCode: res.StatusCode,
26317 },
26318 }
26319 target := &ret
26320 if err := gensupport.DecodeResponse(target, res); err != nil {
26321 return nil, err
26322 }
26323 return ret, nil
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360 }
26361
26362
26363
26364 type CreativeGroupsUpdateCall struct {
26365 s *Service
26366 profileId int64
26367 creativegroup *CreativeGroup
26368 urlParams_ gensupport.URLParams
26369 ctx_ context.Context
26370 header_ http.Header
26371 }
26372
26373
26374 func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall {
26375 c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26376 c.profileId = profileId
26377 c.creativegroup = creativegroup
26378 return c
26379 }
26380
26381
26382
26383
26384 func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall {
26385 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26386 return c
26387 }
26388
26389
26390
26391
26392 func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall {
26393 c.ctx_ = ctx
26394 return c
26395 }
26396
26397
26398
26399 func (c *CreativeGroupsUpdateCall) Header() http.Header {
26400 if c.header_ == nil {
26401 c.header_ = make(http.Header)
26402 }
26403 return c.header_
26404 }
26405
26406 func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
26407 reqHeaders := make(http.Header)
26408 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26409 for k, v := range c.header_ {
26410 reqHeaders[k] = v
26411 }
26412 reqHeaders.Set("User-Agent", c.s.userAgent())
26413 var body io.Reader = nil
26414 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup)
26415 if err != nil {
26416 return nil, err
26417 }
26418 reqHeaders.Set("Content-Type", "application/json")
26419 c.urlParams_.Set("alt", alt)
26420 c.urlParams_.Set("prettyPrint", "false")
26421 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
26422 urls += "?" + c.urlParams_.Encode()
26423 req, err := http.NewRequest("PUT", urls, body)
26424 if err != nil {
26425 return nil, err
26426 }
26427 req.Header = reqHeaders
26428 googleapi.Expand(req.URL, map[string]string{
26429 "profileId": strconv.FormatInt(c.profileId, 10),
26430 })
26431 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26432 }
26433
26434
26435
26436
26437
26438
26439
26440
26441 func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
26442 gensupport.SetOptions(c.urlParams_, opts...)
26443 res, err := c.doRequest("json")
26444 if res != nil && res.StatusCode == http.StatusNotModified {
26445 if res.Body != nil {
26446 res.Body.Close()
26447 }
26448 return nil, &googleapi.Error{
26449 Code: res.StatusCode,
26450 Header: res.Header,
26451 }
26452 }
26453 if err != nil {
26454 return nil, err
26455 }
26456 defer googleapi.CloseBody(res)
26457 if err := googleapi.CheckResponse(res); err != nil {
26458 return nil, err
26459 }
26460 ret := &CreativeGroup{
26461 ServerResponse: googleapi.ServerResponse{
26462 Header: res.Header,
26463 HTTPStatusCode: res.StatusCode,
26464 },
26465 }
26466 target := &ret
26467 if err := gensupport.DecodeResponse(target, res); err != nil {
26468 return nil, err
26469 }
26470 return ret, nil
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499 }
26500
26501
26502
26503 type CreativesGetCall struct {
26504 s *Service
26505 profileId int64
26506 id int64
26507 urlParams_ gensupport.URLParams
26508 ifNoneMatch_ string
26509 ctx_ context.Context
26510 header_ http.Header
26511 }
26512
26513
26514 func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall {
26515 c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26516 c.profileId = profileId
26517 c.id = id
26518 return c
26519 }
26520
26521
26522
26523
26524 func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall {
26525 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26526 return c
26527 }
26528
26529
26530
26531
26532
26533
26534 func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall {
26535 c.ifNoneMatch_ = entityTag
26536 return c
26537 }
26538
26539
26540
26541
26542 func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall {
26543 c.ctx_ = ctx
26544 return c
26545 }
26546
26547
26548
26549 func (c *CreativesGetCall) Header() http.Header {
26550 if c.header_ == nil {
26551 c.header_ = make(http.Header)
26552 }
26553 return c.header_
26554 }
26555
26556 func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) {
26557 reqHeaders := make(http.Header)
26558 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26559 for k, v := range c.header_ {
26560 reqHeaders[k] = v
26561 }
26562 reqHeaders.Set("User-Agent", c.s.userAgent())
26563 if c.ifNoneMatch_ != "" {
26564 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26565 }
26566 var body io.Reader = nil
26567 c.urlParams_.Set("alt", alt)
26568 c.urlParams_.Set("prettyPrint", "false")
26569 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives/{id}")
26570 urls += "?" + c.urlParams_.Encode()
26571 req, err := http.NewRequest("GET", urls, body)
26572 if err != nil {
26573 return nil, err
26574 }
26575 req.Header = reqHeaders
26576 googleapi.Expand(req.URL, map[string]string{
26577 "profileId": strconv.FormatInt(c.profileId, 10),
26578 "id": strconv.FormatInt(c.id, 10),
26579 })
26580 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26581 }
26582
26583
26584
26585
26586
26587
26588
26589
26590 func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
26591 gensupport.SetOptions(c.urlParams_, opts...)
26592 res, err := c.doRequest("json")
26593 if res != nil && res.StatusCode == http.StatusNotModified {
26594 if res.Body != nil {
26595 res.Body.Close()
26596 }
26597 return nil, &googleapi.Error{
26598 Code: res.StatusCode,
26599 Header: res.Header,
26600 }
26601 }
26602 if err != nil {
26603 return nil, err
26604 }
26605 defer googleapi.CloseBody(res)
26606 if err := googleapi.CheckResponse(res); err != nil {
26607 return nil, err
26608 }
26609 ret := &Creative{
26610 ServerResponse: googleapi.ServerResponse{
26611 Header: res.Header,
26612 HTTPStatusCode: res.StatusCode,
26613 },
26614 }
26615 target := &ret
26616 if err := gensupport.DecodeResponse(target, res); err != nil {
26617 return nil, err
26618 }
26619 return ret, nil
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653 }
26654
26655
26656
26657 type CreativesInsertCall struct {
26658 s *Service
26659 profileId int64
26660 creative *Creative
26661 urlParams_ gensupport.URLParams
26662 ctx_ context.Context
26663 header_ http.Header
26664 }
26665
26666
26667 func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall {
26668 c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26669 c.profileId = profileId
26670 c.creative = creative
26671 return c
26672 }
26673
26674
26675
26676
26677 func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall {
26678 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26679 return c
26680 }
26681
26682
26683
26684
26685 func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall {
26686 c.ctx_ = ctx
26687 return c
26688 }
26689
26690
26691
26692 func (c *CreativesInsertCall) Header() http.Header {
26693 if c.header_ == nil {
26694 c.header_ = make(http.Header)
26695 }
26696 return c.header_
26697 }
26698
26699 func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) {
26700 reqHeaders := make(http.Header)
26701 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26702 for k, v := range c.header_ {
26703 reqHeaders[k] = v
26704 }
26705 reqHeaders.Set("User-Agent", c.s.userAgent())
26706 var body io.Reader = nil
26707 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
26708 if err != nil {
26709 return nil, err
26710 }
26711 reqHeaders.Set("Content-Type", "application/json")
26712 c.urlParams_.Set("alt", alt)
26713 c.urlParams_.Set("prettyPrint", "false")
26714 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
26715 urls += "?" + c.urlParams_.Encode()
26716 req, err := http.NewRequest("POST", urls, body)
26717 if err != nil {
26718 return nil, err
26719 }
26720 req.Header = reqHeaders
26721 googleapi.Expand(req.URL, map[string]string{
26722 "profileId": strconv.FormatInt(c.profileId, 10),
26723 })
26724 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26725 }
26726
26727
26728
26729
26730
26731
26732
26733
26734 func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
26735 gensupport.SetOptions(c.urlParams_, opts...)
26736 res, err := c.doRequest("json")
26737 if res != nil && res.StatusCode == http.StatusNotModified {
26738 if res.Body != nil {
26739 res.Body.Close()
26740 }
26741 return nil, &googleapi.Error{
26742 Code: res.StatusCode,
26743 Header: res.Header,
26744 }
26745 }
26746 if err != nil {
26747 return nil, err
26748 }
26749 defer googleapi.CloseBody(res)
26750 if err := googleapi.CheckResponse(res); err != nil {
26751 return nil, err
26752 }
26753 ret := &Creative{
26754 ServerResponse: googleapi.ServerResponse{
26755 Header: res.Header,
26756 HTTPStatusCode: res.StatusCode,
26757 },
26758 }
26759 target := &ret
26760 if err := gensupport.DecodeResponse(target, res); err != nil {
26761 return nil, err
26762 }
26763 return ret, nil
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792 }
26793
26794
26795
26796 type CreativesListCall struct {
26797 s *Service
26798 profileId int64
26799 urlParams_ gensupport.URLParams
26800 ifNoneMatch_ string
26801 ctx_ context.Context
26802 header_ http.Header
26803 }
26804
26805
26806
26807 func (r *CreativesService) List(profileId int64) *CreativesListCall {
26808 c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26809 c.profileId = profileId
26810 return c
26811 }
26812
26813
26814
26815 func (c *CreativesListCall) Active(active bool) *CreativesListCall {
26816 c.urlParams_.Set("active", fmt.Sprint(active))
26817 return c
26818 }
26819
26820
26821
26822 func (c *CreativesListCall) AdvertiserId(advertiserId int64) *CreativesListCall {
26823 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
26824 return c
26825 }
26826
26827
26828
26829 func (c *CreativesListCall) Archived(archived bool) *CreativesListCall {
26830 c.urlParams_.Set("archived", fmt.Sprint(archived))
26831 return c
26832 }
26833
26834
26835
26836 func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall {
26837 c.urlParams_.Set("campaignId", fmt.Sprint(campaignId))
26838 return c
26839 }
26840
26841
26842
26843
26844 func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall {
26845 var companionCreativeIds_ []string
26846 for _, v := range companionCreativeIds {
26847 companionCreativeIds_ = append(companionCreativeIds_, fmt.Sprint(v))
26848 }
26849 c.urlParams_.SetMulti("companionCreativeIds", companionCreativeIds_)
26850 return c
26851 }
26852
26853
26854
26855 func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall {
26856 var creativeFieldIds_ []string
26857 for _, v := range creativeFieldIds {
26858 creativeFieldIds_ = append(creativeFieldIds_, fmt.Sprint(v))
26859 }
26860 c.urlParams_.SetMulti("creativeFieldIds", creativeFieldIds_)
26861 return c
26862 }
26863
26864
26865
26866 func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall {
26867 var ids_ []string
26868 for _, v := range ids {
26869 ids_ = append(ids_, fmt.Sprint(v))
26870 }
26871 c.urlParams_.SetMulti("ids", ids_)
26872 return c
26873 }
26874
26875
26876
26877 func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall {
26878 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
26879 return c
26880 }
26881
26882
26883
26884 func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall {
26885 c.urlParams_.Set("pageToken", pageToken)
26886 return c
26887 }
26888
26889
26890
26891 func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCall {
26892 var renderingIds_ []string
26893 for _, v := range renderingIds {
26894 renderingIds_ = append(renderingIds_, fmt.Sprint(v))
26895 }
26896 c.urlParams_.SetMulti("renderingIds", renderingIds_)
26897 return c
26898 }
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908 func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall {
26909 c.urlParams_.Set("searchString", searchString)
26910 return c
26911 }
26912
26913
26914
26915 func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall {
26916 var sizeIds_ []string
26917 for _, v := range sizeIds {
26918 sizeIds_ = append(sizeIds_, fmt.Sprint(v))
26919 }
26920 c.urlParams_.SetMulti("sizeIds", sizeIds_)
26921 return c
26922 }
26923
26924
26925
26926
26927
26928
26929
26930
26931 func (c *CreativesListCall) SortField(sortField string) *CreativesListCall {
26932 c.urlParams_.Set("sortField", sortField)
26933 return c
26934 }
26935
26936
26937
26938
26939
26940
26941
26942
26943 func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall {
26944 c.urlParams_.Set("sortOrder", sortOrder)
26945 return c
26946 }
26947
26948
26949
26950 func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall {
26951 c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId))
26952 return c
26953 }
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984 func (c *CreativesListCall) Types(types ...string) *CreativesListCall {
26985 c.urlParams_.SetMulti("types", append([]string{}, types...))
26986 return c
26987 }
26988
26989
26990
26991
26992 func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall {
26993 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26994 return c
26995 }
26996
26997
26998
26999
27000
27001
27002 func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall {
27003 c.ifNoneMatch_ = entityTag
27004 return c
27005 }
27006
27007
27008
27009
27010 func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall {
27011 c.ctx_ = ctx
27012 return c
27013 }
27014
27015
27016
27017 func (c *CreativesListCall) Header() http.Header {
27018 if c.header_ == nil {
27019 c.header_ = make(http.Header)
27020 }
27021 return c.header_
27022 }
27023
27024 func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) {
27025 reqHeaders := make(http.Header)
27026 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27027 for k, v := range c.header_ {
27028 reqHeaders[k] = v
27029 }
27030 reqHeaders.Set("User-Agent", c.s.userAgent())
27031 if c.ifNoneMatch_ != "" {
27032 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27033 }
27034 var body io.Reader = nil
27035 c.urlParams_.Set("alt", alt)
27036 c.urlParams_.Set("prettyPrint", "false")
27037 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
27038 urls += "?" + c.urlParams_.Encode()
27039 req, err := http.NewRequest("GET", urls, body)
27040 if err != nil {
27041 return nil, err
27042 }
27043 req.Header = reqHeaders
27044 googleapi.Expand(req.URL, map[string]string{
27045 "profileId": strconv.FormatInt(c.profileId, 10),
27046 })
27047 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27048 }
27049
27050
27051
27052
27053
27054
27055
27056
27057 func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) {
27058 gensupport.SetOptions(c.urlParams_, opts...)
27059 res, err := c.doRequest("json")
27060 if res != nil && res.StatusCode == http.StatusNotModified {
27061 if res.Body != nil {
27062 res.Body.Close()
27063 }
27064 return nil, &googleapi.Error{
27065 Code: res.StatusCode,
27066 Header: res.Header,
27067 }
27068 }
27069 if err != nil {
27070 return nil, err
27071 }
27072 defer googleapi.CloseBody(res)
27073 if err := googleapi.CheckResponse(res); err != nil {
27074 return nil, err
27075 }
27076 ret := &CreativesListResponse{
27077 ServerResponse: googleapi.ServerResponse{
27078 Header: res.Header,
27079 HTTPStatusCode: res.StatusCode,
27080 },
27081 }
27082 target := &ret
27083 if err := gensupport.DecodeResponse(target, res); err != nil {
27084 return nil, err
27085 }
27086 return ret, nil
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280 }
27281
27282
27283
27284
27285 func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error {
27286 c.ctx_ = ctx
27287 defer c.PageToken(c.urlParams_.Get("pageToken"))
27288 for {
27289 x, err := c.Do()
27290 if err != nil {
27291 return err
27292 }
27293 if err := f(x); err != nil {
27294 return err
27295 }
27296 if x.NextPageToken == "" {
27297 return nil
27298 }
27299 c.PageToken(x.NextPageToken)
27300 }
27301 }
27302
27303
27304
27305 type CreativesPatchCall struct {
27306 s *Service
27307 profileId int64
27308 creative *Creative
27309 urlParams_ gensupport.URLParams
27310 ctx_ context.Context
27311 header_ http.Header
27312 }
27313
27314
27315
27316 func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall {
27317 c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27318 c.profileId = profileId
27319 c.urlParams_.Set("id", fmt.Sprint(id))
27320 c.creative = creative
27321 return c
27322 }
27323
27324
27325
27326
27327 func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall {
27328 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27329 return c
27330 }
27331
27332
27333
27334
27335 func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall {
27336 c.ctx_ = ctx
27337 return c
27338 }
27339
27340
27341
27342 func (c *CreativesPatchCall) Header() http.Header {
27343 if c.header_ == nil {
27344 c.header_ = make(http.Header)
27345 }
27346 return c.header_
27347 }
27348
27349 func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) {
27350 reqHeaders := make(http.Header)
27351 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27352 for k, v := range c.header_ {
27353 reqHeaders[k] = v
27354 }
27355 reqHeaders.Set("User-Agent", c.s.userAgent())
27356 var body io.Reader = nil
27357 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
27358 if err != nil {
27359 return nil, err
27360 }
27361 reqHeaders.Set("Content-Type", "application/json")
27362 c.urlParams_.Set("alt", alt)
27363 c.urlParams_.Set("prettyPrint", "false")
27364 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
27365 urls += "?" + c.urlParams_.Encode()
27366 req, err := http.NewRequest("PATCH", urls, body)
27367 if err != nil {
27368 return nil, err
27369 }
27370 req.Header = reqHeaders
27371 googleapi.Expand(req.URL, map[string]string{
27372 "profileId": strconv.FormatInt(c.profileId, 10),
27373 })
27374 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27375 }
27376
27377
27378
27379
27380
27381
27382
27383
27384 func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
27385 gensupport.SetOptions(c.urlParams_, opts...)
27386 res, err := c.doRequest("json")
27387 if res != nil && res.StatusCode == http.StatusNotModified {
27388 if res.Body != nil {
27389 res.Body.Close()
27390 }
27391 return nil, &googleapi.Error{
27392 Code: res.StatusCode,
27393 Header: res.Header,
27394 }
27395 }
27396 if err != nil {
27397 return nil, err
27398 }
27399 defer googleapi.CloseBody(res)
27400 if err := googleapi.CheckResponse(res); err != nil {
27401 return nil, err
27402 }
27403 ret := &Creative{
27404 ServerResponse: googleapi.ServerResponse{
27405 Header: res.Header,
27406 HTTPStatusCode: res.StatusCode,
27407 },
27408 }
27409 target := &ret
27410 if err := gensupport.DecodeResponse(target, res); err != nil {
27411 return nil, err
27412 }
27413 return ret, nil
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450 }
27451
27452
27453
27454 type CreativesUpdateCall struct {
27455 s *Service
27456 profileId int64
27457 creative *Creative
27458 urlParams_ gensupport.URLParams
27459 ctx_ context.Context
27460 header_ http.Header
27461 }
27462
27463
27464 func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall {
27465 c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27466 c.profileId = profileId
27467 c.creative = creative
27468 return c
27469 }
27470
27471
27472
27473
27474 func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall {
27475 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27476 return c
27477 }
27478
27479
27480
27481
27482 func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall {
27483 c.ctx_ = ctx
27484 return c
27485 }
27486
27487
27488
27489 func (c *CreativesUpdateCall) Header() http.Header {
27490 if c.header_ == nil {
27491 c.header_ = make(http.Header)
27492 }
27493 return c.header_
27494 }
27495
27496 func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) {
27497 reqHeaders := make(http.Header)
27498 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27499 for k, v := range c.header_ {
27500 reqHeaders[k] = v
27501 }
27502 reqHeaders.Set("User-Agent", c.s.userAgent())
27503 var body io.Reader = nil
27504 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
27505 if err != nil {
27506 return nil, err
27507 }
27508 reqHeaders.Set("Content-Type", "application/json")
27509 c.urlParams_.Set("alt", alt)
27510 c.urlParams_.Set("prettyPrint", "false")
27511 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
27512 urls += "?" + c.urlParams_.Encode()
27513 req, err := http.NewRequest("PUT", urls, body)
27514 if err != nil {
27515 return nil, err
27516 }
27517 req.Header = reqHeaders
27518 googleapi.Expand(req.URL, map[string]string{
27519 "profileId": strconv.FormatInt(c.profileId, 10),
27520 })
27521 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27522 }
27523
27524
27525
27526
27527
27528
27529
27530
27531 func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
27532 gensupport.SetOptions(c.urlParams_, opts...)
27533 res, err := c.doRequest("json")
27534 if res != nil && res.StatusCode == http.StatusNotModified {
27535 if res.Body != nil {
27536 res.Body.Close()
27537 }
27538 return nil, &googleapi.Error{
27539 Code: res.StatusCode,
27540 Header: res.Header,
27541 }
27542 }
27543 if err != nil {
27544 return nil, err
27545 }
27546 defer googleapi.CloseBody(res)
27547 if err := googleapi.CheckResponse(res); err != nil {
27548 return nil, err
27549 }
27550 ret := &Creative{
27551 ServerResponse: googleapi.ServerResponse{
27552 Header: res.Header,
27553 HTTPStatusCode: res.StatusCode,
27554 },
27555 }
27556 target := &ret
27557 if err := gensupport.DecodeResponse(target, res); err != nil {
27558 return nil, err
27559 }
27560 return ret, nil
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589 }
27590
27591
27592
27593 type DimensionValuesQueryCall struct {
27594 s *Service
27595 profileId int64
27596 dimensionvaluerequest *DimensionValueRequest
27597 urlParams_ gensupport.URLParams
27598 ctx_ context.Context
27599 header_ http.Header
27600 }
27601
27602
27603
27604 func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall {
27605 c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27606 c.profileId = profileId
27607 c.dimensionvaluerequest = dimensionvaluerequest
27608 return c
27609 }
27610
27611
27612
27613 func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall {
27614 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
27615 return c
27616 }
27617
27618
27619
27620 func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQueryCall {
27621 c.urlParams_.Set("pageToken", pageToken)
27622 return c
27623 }
27624
27625
27626
27627
27628 func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall {
27629 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27630 return c
27631 }
27632
27633
27634
27635
27636 func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall {
27637 c.ctx_ = ctx
27638 return c
27639 }
27640
27641
27642
27643 func (c *DimensionValuesQueryCall) Header() http.Header {
27644 if c.header_ == nil {
27645 c.header_ = make(http.Header)
27646 }
27647 return c.header_
27648 }
27649
27650 func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) {
27651 reqHeaders := make(http.Header)
27652 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27653 for k, v := range c.header_ {
27654 reqHeaders[k] = v
27655 }
27656 reqHeaders.Set("User-Agent", c.s.userAgent())
27657 var body io.Reader = nil
27658 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest)
27659 if err != nil {
27660 return nil, err
27661 }
27662 reqHeaders.Set("Content-Type", "application/json")
27663 c.urlParams_.Set("alt", alt)
27664 c.urlParams_.Set("prettyPrint", "false")
27665 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query")
27666 urls += "?" + c.urlParams_.Encode()
27667 req, err := http.NewRequest("POST", urls, body)
27668 if err != nil {
27669 return nil, err
27670 }
27671 req.Header = reqHeaders
27672 googleapi.Expand(req.URL, map[string]string{
27673 "profileId": strconv.FormatInt(c.profileId, 10),
27674 })
27675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27676 }
27677
27678
27679
27680
27681
27682
27683
27684
27685 func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) {
27686 gensupport.SetOptions(c.urlParams_, opts...)
27687 res, err := c.doRequest("json")
27688 if res != nil && res.StatusCode == http.StatusNotModified {
27689 if res.Body != nil {
27690 res.Body.Close()
27691 }
27692 return nil, &googleapi.Error{
27693 Code: res.StatusCode,
27694 Header: res.Header,
27695 }
27696 }
27697 if err != nil {
27698 return nil, err
27699 }
27700 defer googleapi.CloseBody(res)
27701 if err := googleapi.CheckResponse(res); err != nil {
27702 return nil, err
27703 }
27704 ret := &DimensionValueList{
27705 ServerResponse: googleapi.ServerResponse{
27706 Header: res.Header,
27707 HTTPStatusCode: res.StatusCode,
27708 },
27709 }
27710 target := &ret
27711 if err := gensupport.DecodeResponse(target, res); err != nil {
27712 return nil, err
27713 }
27714 return ret, nil
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757 }
27758
27759
27760
27761
27762 func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error {
27763 c.ctx_ = ctx
27764 defer c.PageToken(c.urlParams_.Get("pageToken"))
27765 for {
27766 x, err := c.Do()
27767 if err != nil {
27768 return err
27769 }
27770 if err := f(x); err != nil {
27771 return err
27772 }
27773 if x.NextPageToken == "" {
27774 return nil
27775 }
27776 c.PageToken(x.NextPageToken)
27777 }
27778 }
27779
27780
27781
27782 type DirectorySiteContactsGetCall struct {
27783 s *Service
27784 profileId int64
27785 id int64
27786 urlParams_ gensupport.URLParams
27787 ifNoneMatch_ string
27788 ctx_ context.Context
27789 header_ http.Header
27790 }
27791
27792
27793 func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *DirectorySiteContactsGetCall {
27794 c := &DirectorySiteContactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27795 c.profileId = profileId
27796 c.id = id
27797 return c
27798 }
27799
27800
27801
27802
27803 func (c *DirectorySiteContactsGetCall) Fields(s ...googleapi.Field) *DirectorySiteContactsGetCall {
27804 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27805 return c
27806 }
27807
27808
27809
27810
27811
27812
27813 func (c *DirectorySiteContactsGetCall) IfNoneMatch(entityTag string) *DirectorySiteContactsGetCall {
27814 c.ifNoneMatch_ = entityTag
27815 return c
27816 }
27817
27818
27819
27820
27821 func (c *DirectorySiteContactsGetCall) Context(ctx context.Context) *DirectorySiteContactsGetCall {
27822 c.ctx_ = ctx
27823 return c
27824 }
27825
27826
27827
27828 func (c *DirectorySiteContactsGetCall) Header() http.Header {
27829 if c.header_ == nil {
27830 c.header_ = make(http.Header)
27831 }
27832 return c.header_
27833 }
27834
27835 func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, error) {
27836 reqHeaders := make(http.Header)
27837 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27838 for k, v := range c.header_ {
27839 reqHeaders[k] = v
27840 }
27841 reqHeaders.Set("User-Agent", c.s.userAgent())
27842 if c.ifNoneMatch_ != "" {
27843 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27844 }
27845 var body io.Reader = nil
27846 c.urlParams_.Set("alt", alt)
27847 c.urlParams_.Set("prettyPrint", "false")
27848 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySiteContacts/{id}")
27849 urls += "?" + c.urlParams_.Encode()
27850 req, err := http.NewRequest("GET", urls, body)
27851 if err != nil {
27852 return nil, err
27853 }
27854 req.Header = reqHeaders
27855 googleapi.Expand(req.URL, map[string]string{
27856 "profileId": strconv.FormatInt(c.profileId, 10),
27857 "id": strconv.FormatInt(c.id, 10),
27858 })
27859 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27860 }
27861
27862
27863
27864
27865
27866
27867
27868
27869 func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContact, error) {
27870 gensupport.SetOptions(c.urlParams_, opts...)
27871 res, err := c.doRequest("json")
27872 if res != nil && res.StatusCode == http.StatusNotModified {
27873 if res.Body != nil {
27874 res.Body.Close()
27875 }
27876 return nil, &googleapi.Error{
27877 Code: res.StatusCode,
27878 Header: res.Header,
27879 }
27880 }
27881 if err != nil {
27882 return nil, err
27883 }
27884 defer googleapi.CloseBody(res)
27885 if err := googleapi.CheckResponse(res); err != nil {
27886 return nil, err
27887 }
27888 ret := &DirectorySiteContact{
27889 ServerResponse: googleapi.ServerResponse{
27890 Header: res.Header,
27891 HTTPStatusCode: res.StatusCode,
27892 },
27893 }
27894 target := &ret
27895 if err := gensupport.DecodeResponse(target, res); err != nil {
27896 return nil, err
27897 }
27898 return ret, nil
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932 }
27933
27934
27935
27936 type DirectorySiteContactsListCall struct {
27937 s *Service
27938 profileId int64
27939 urlParams_ gensupport.URLParams
27940 ifNoneMatch_ string
27941 ctx_ context.Context
27942 header_ http.Header
27943 }
27944
27945
27946
27947 func (r *DirectorySiteContactsService) List(profileId int64) *DirectorySiteContactsListCall {
27948 c := &DirectorySiteContactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27949 c.profileId = profileId
27950 return c
27951 }
27952
27953
27954
27955
27956 func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int64) *DirectorySiteContactsListCall {
27957 var directorySiteIds_ []string
27958 for _, v := range directorySiteIds {
27959 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
27960 }
27961 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
27962 return c
27963 }
27964
27965
27966
27967 func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContactsListCall {
27968 var ids_ []string
27969 for _, v := range ids {
27970 ids_ = append(ids_, fmt.Sprint(v))
27971 }
27972 c.urlParams_.SetMulti("ids", ids_)
27973 return c
27974 }
27975
27976
27977
27978 func (c *DirectorySiteContactsListCall) MaxResults(maxResults int64) *DirectorySiteContactsListCall {
27979 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
27980 return c
27981 }
27982
27983
27984
27985 func (c *DirectorySiteContactsListCall) PageToken(pageToken string) *DirectorySiteContactsListCall {
27986 c.urlParams_.Set("pageToken", pageToken)
27987 return c
27988 }
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000 func (c *DirectorySiteContactsListCall) SearchString(searchString string) *DirectorySiteContactsListCall {
28001 c.urlParams_.Set("searchString", searchString)
28002 return c
28003 }
28004
28005
28006
28007
28008
28009
28010
28011
28012 func (c *DirectorySiteContactsListCall) SortField(sortField string) *DirectorySiteContactsListCall {
28013 c.urlParams_.Set("sortField", sortField)
28014 return c
28015 }
28016
28017
28018
28019
28020
28021
28022
28023
28024 func (c *DirectorySiteContactsListCall) SortOrder(sortOrder string) *DirectorySiteContactsListCall {
28025 c.urlParams_.Set("sortOrder", sortOrder)
28026 return c
28027 }
28028
28029
28030
28031
28032 func (c *DirectorySiteContactsListCall) Fields(s ...googleapi.Field) *DirectorySiteContactsListCall {
28033 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28034 return c
28035 }
28036
28037
28038
28039
28040
28041
28042 func (c *DirectorySiteContactsListCall) IfNoneMatch(entityTag string) *DirectorySiteContactsListCall {
28043 c.ifNoneMatch_ = entityTag
28044 return c
28045 }
28046
28047
28048
28049
28050 func (c *DirectorySiteContactsListCall) Context(ctx context.Context) *DirectorySiteContactsListCall {
28051 c.ctx_ = ctx
28052 return c
28053 }
28054
28055
28056
28057 func (c *DirectorySiteContactsListCall) Header() http.Header {
28058 if c.header_ == nil {
28059 c.header_ = make(http.Header)
28060 }
28061 return c.header_
28062 }
28063
28064 func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, error) {
28065 reqHeaders := make(http.Header)
28066 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28067 for k, v := range c.header_ {
28068 reqHeaders[k] = v
28069 }
28070 reqHeaders.Set("User-Agent", c.s.userAgent())
28071 if c.ifNoneMatch_ != "" {
28072 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28073 }
28074 var body io.Reader = nil
28075 c.urlParams_.Set("alt", alt)
28076 c.urlParams_.Set("prettyPrint", "false")
28077 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySiteContacts")
28078 urls += "?" + c.urlParams_.Encode()
28079 req, err := http.NewRequest("GET", urls, body)
28080 if err != nil {
28081 return nil, err
28082 }
28083 req.Header = reqHeaders
28084 googleapi.Expand(req.URL, map[string]string{
28085 "profileId": strconv.FormatInt(c.profileId, 10),
28086 })
28087 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28088 }
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098 func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContactsListResponse, error) {
28099 gensupport.SetOptions(c.urlParams_, opts...)
28100 res, err := c.doRequest("json")
28101 if res != nil && res.StatusCode == http.StatusNotModified {
28102 if res.Body != nil {
28103 res.Body.Close()
28104 }
28105 return nil, &googleapi.Error{
28106 Code: res.StatusCode,
28107 Header: res.Header,
28108 }
28109 }
28110 if err != nil {
28111 return nil, err
28112 }
28113 defer googleapi.CloseBody(res)
28114 if err := googleapi.CheckResponse(res); err != nil {
28115 return nil, err
28116 }
28117 ret := &DirectorySiteContactsListResponse{
28118 ServerResponse: googleapi.ServerResponse{
28119 Header: res.Header,
28120 HTTPStatusCode: res.StatusCode,
28121 },
28122 }
28123 target := &ret
28124 if err := gensupport.DecodeResponse(target, res); err != nil {
28125 return nil, err
28126 }
28127 return ret, nil
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214 }
28215
28216
28217
28218
28219 func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*DirectorySiteContactsListResponse) error) error {
28220 c.ctx_ = ctx
28221 defer c.PageToken(c.urlParams_.Get("pageToken"))
28222 for {
28223 x, err := c.Do()
28224 if err != nil {
28225 return err
28226 }
28227 if err := f(x); err != nil {
28228 return err
28229 }
28230 if x.NextPageToken == "" {
28231 return nil
28232 }
28233 c.PageToken(x.NextPageToken)
28234 }
28235 }
28236
28237
28238
28239 type DirectorySitesGetCall struct {
28240 s *Service
28241 profileId int64
28242 id int64
28243 urlParams_ gensupport.URLParams
28244 ifNoneMatch_ string
28245 ctx_ context.Context
28246 header_ http.Header
28247 }
28248
28249
28250 func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall {
28251 c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28252 c.profileId = profileId
28253 c.id = id
28254 return c
28255 }
28256
28257
28258
28259
28260 func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall {
28261 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28262 return c
28263 }
28264
28265
28266
28267
28268
28269
28270 func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall {
28271 c.ifNoneMatch_ = entityTag
28272 return c
28273 }
28274
28275
28276
28277
28278 func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall {
28279 c.ctx_ = ctx
28280 return c
28281 }
28282
28283
28284
28285 func (c *DirectorySitesGetCall) Header() http.Header {
28286 if c.header_ == nil {
28287 c.header_ = make(http.Header)
28288 }
28289 return c.header_
28290 }
28291
28292 func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) {
28293 reqHeaders := make(http.Header)
28294 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28295 for k, v := range c.header_ {
28296 reqHeaders[k] = v
28297 }
28298 reqHeaders.Set("User-Agent", c.s.userAgent())
28299 if c.ifNoneMatch_ != "" {
28300 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28301 }
28302 var body io.Reader = nil
28303 c.urlParams_.Set("alt", alt)
28304 c.urlParams_.Set("prettyPrint", "false")
28305 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites/{id}")
28306 urls += "?" + c.urlParams_.Encode()
28307 req, err := http.NewRequest("GET", urls, body)
28308 if err != nil {
28309 return nil, err
28310 }
28311 req.Header = reqHeaders
28312 googleapi.Expand(req.URL, map[string]string{
28313 "profileId": strconv.FormatInt(c.profileId, 10),
28314 "id": strconv.FormatInt(c.id, 10),
28315 })
28316 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28317 }
28318
28319
28320
28321
28322
28323
28324
28325
28326 func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) {
28327 gensupport.SetOptions(c.urlParams_, opts...)
28328 res, err := c.doRequest("json")
28329 if res != nil && res.StatusCode == http.StatusNotModified {
28330 if res.Body != nil {
28331 res.Body.Close()
28332 }
28333 return nil, &googleapi.Error{
28334 Code: res.StatusCode,
28335 Header: res.Header,
28336 }
28337 }
28338 if err != nil {
28339 return nil, err
28340 }
28341 defer googleapi.CloseBody(res)
28342 if err := googleapi.CheckResponse(res); err != nil {
28343 return nil, err
28344 }
28345 ret := &DirectorySite{
28346 ServerResponse: googleapi.ServerResponse{
28347 Header: res.Header,
28348 HTTPStatusCode: res.StatusCode,
28349 },
28350 }
28351 target := &ret
28352 if err := gensupport.DecodeResponse(target, res); err != nil {
28353 return nil, err
28354 }
28355 return ret, nil
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389 }
28390
28391
28392
28393 type DirectorySitesInsertCall struct {
28394 s *Service
28395 profileId int64
28396 directorysite *DirectorySite
28397 urlParams_ gensupport.URLParams
28398 ctx_ context.Context
28399 header_ http.Header
28400 }
28401
28402
28403 func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall {
28404 c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28405 c.profileId = profileId
28406 c.directorysite = directorysite
28407 return c
28408 }
28409
28410
28411
28412
28413 func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall {
28414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28415 return c
28416 }
28417
28418
28419
28420
28421 func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall {
28422 c.ctx_ = ctx
28423 return c
28424 }
28425
28426
28427
28428 func (c *DirectorySitesInsertCall) Header() http.Header {
28429 if c.header_ == nil {
28430 c.header_ = make(http.Header)
28431 }
28432 return c.header_
28433 }
28434
28435 func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) {
28436 reqHeaders := make(http.Header)
28437 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28438 for k, v := range c.header_ {
28439 reqHeaders[k] = v
28440 }
28441 reqHeaders.Set("User-Agent", c.s.userAgent())
28442 var body io.Reader = nil
28443 body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite)
28444 if err != nil {
28445 return nil, err
28446 }
28447 reqHeaders.Set("Content-Type", "application/json")
28448 c.urlParams_.Set("alt", alt)
28449 c.urlParams_.Set("prettyPrint", "false")
28450 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites")
28451 urls += "?" + c.urlParams_.Encode()
28452 req, err := http.NewRequest("POST", urls, body)
28453 if err != nil {
28454 return nil, err
28455 }
28456 req.Header = reqHeaders
28457 googleapi.Expand(req.URL, map[string]string{
28458 "profileId": strconv.FormatInt(c.profileId, 10),
28459 })
28460 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28461 }
28462
28463
28464
28465
28466
28467
28468
28469
28470 func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) {
28471 gensupport.SetOptions(c.urlParams_, opts...)
28472 res, err := c.doRequest("json")
28473 if res != nil && res.StatusCode == http.StatusNotModified {
28474 if res.Body != nil {
28475 res.Body.Close()
28476 }
28477 return nil, &googleapi.Error{
28478 Code: res.StatusCode,
28479 Header: res.Header,
28480 }
28481 }
28482 if err != nil {
28483 return nil, err
28484 }
28485 defer googleapi.CloseBody(res)
28486 if err := googleapi.CheckResponse(res); err != nil {
28487 return nil, err
28488 }
28489 ret := &DirectorySite{
28490 ServerResponse: googleapi.ServerResponse{
28491 Header: res.Header,
28492 HTTPStatusCode: res.StatusCode,
28493 },
28494 }
28495 target := &ret
28496 if err := gensupport.DecodeResponse(target, res); err != nil {
28497 return nil, err
28498 }
28499 return ret, nil
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528 }
28529
28530
28531
28532 type DirectorySitesListCall struct {
28533 s *Service
28534 profileId int64
28535 urlParams_ gensupport.URLParams
28536 ifNoneMatch_ string
28537 ctx_ context.Context
28538 header_ http.Header
28539 }
28540
28541
28542
28543 func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall {
28544 c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28545 c.profileId = profileId
28546 return c
28547 }
28548
28549
28550
28551
28552 func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall {
28553 c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements))
28554 return c
28555 }
28556
28557
28558
28559
28560 func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall {
28561 c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements))
28562 return c
28563 }
28564
28565
28566
28567
28568 func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall {
28569 c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements))
28570 return c
28571 }
28572
28573
28574
28575
28576 func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall {
28577 c.urlParams_.Set("active", fmt.Sprint(active))
28578 return c
28579 }
28580
28581
28582
28583 func (c *DirectorySitesListCall) CountryId(countryId int64) *DirectorySitesListCall {
28584 c.urlParams_.Set("countryId", fmt.Sprint(countryId))
28585 return c
28586 }
28587
28588
28589
28590 func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall {
28591 c.urlParams_.Set("dfp_network_code", dfpNetworkCode)
28592 return c
28593 }
28594
28595
28596
28597 func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall {
28598 var ids_ []string
28599 for _, v := range ids {
28600 ids_ = append(ids_, fmt.Sprint(v))
28601 }
28602 c.urlParams_.SetMulti("ids", ids_)
28603 return c
28604 }
28605
28606
28607
28608 func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall {
28609 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
28610 return c
28611 }
28612
28613
28614
28615 func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesListCall {
28616 c.urlParams_.Set("pageToken", pageToken)
28617 return c
28618 }
28619
28620
28621
28622 func (c *DirectorySitesListCall) ParentId(parentId int64) *DirectorySitesListCall {
28623 c.urlParams_.Set("parentId", fmt.Sprint(parentId))
28624 return c
28625 }
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636 func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall {
28637 c.urlParams_.Set("searchString", searchString)
28638 return c
28639 }
28640
28641
28642
28643
28644
28645
28646
28647
28648 func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesListCall {
28649 c.urlParams_.Set("sortField", sortField)
28650 return c
28651 }
28652
28653
28654
28655
28656
28657
28658
28659
28660 func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesListCall {
28661 c.urlParams_.Set("sortOrder", sortOrder)
28662 return c
28663 }
28664
28665
28666
28667
28668 func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall {
28669 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28670 return c
28671 }
28672
28673
28674
28675
28676
28677
28678 func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall {
28679 c.ifNoneMatch_ = entityTag
28680 return c
28681 }
28682
28683
28684
28685
28686 func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall {
28687 c.ctx_ = ctx
28688 return c
28689 }
28690
28691
28692
28693 func (c *DirectorySitesListCall) Header() http.Header {
28694 if c.header_ == nil {
28695 c.header_ = make(http.Header)
28696 }
28697 return c.header_
28698 }
28699
28700 func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) {
28701 reqHeaders := make(http.Header)
28702 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28703 for k, v := range c.header_ {
28704 reqHeaders[k] = v
28705 }
28706 reqHeaders.Set("User-Agent", c.s.userAgent())
28707 if c.ifNoneMatch_ != "" {
28708 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28709 }
28710 var body io.Reader = nil
28711 c.urlParams_.Set("alt", alt)
28712 c.urlParams_.Set("prettyPrint", "false")
28713 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites")
28714 urls += "?" + c.urlParams_.Encode()
28715 req, err := http.NewRequest("GET", urls, body)
28716 if err != nil {
28717 return nil, err
28718 }
28719 req.Header = reqHeaders
28720 googleapi.Expand(req.URL, map[string]string{
28721 "profileId": strconv.FormatInt(c.profileId, 10),
28722 })
28723 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28724 }
28725
28726
28727
28728
28729
28730
28731
28732
28733 func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) {
28734 gensupport.SetOptions(c.urlParams_, opts...)
28735 res, err := c.doRequest("json")
28736 if res != nil && res.StatusCode == http.StatusNotModified {
28737 if res.Body != nil {
28738 res.Body.Close()
28739 }
28740 return nil, &googleapi.Error{
28741 Code: res.StatusCode,
28742 Header: res.Header,
28743 }
28744 }
28745 if err != nil {
28746 return nil, err
28747 }
28748 defer googleapi.CloseBody(res)
28749 if err := googleapi.CheckResponse(res); err != nil {
28750 return nil, err
28751 }
28752 ret := &DirectorySitesListResponse{
28753 ServerResponse: googleapi.ServerResponse{
28754 Header: res.Header,
28755 HTTPStatusCode: res.StatusCode,
28756 },
28757 }
28758 target := &ret
28759 if err := gensupport.DecodeResponse(target, res); err != nil {
28760 return nil, err
28761 }
28762 return ret, nil
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879 }
28880
28881
28882
28883
28884 func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error {
28885 c.ctx_ = ctx
28886 defer c.PageToken(c.urlParams_.Get("pageToken"))
28887 for {
28888 x, err := c.Do()
28889 if err != nil {
28890 return err
28891 }
28892 if err := f(x); err != nil {
28893 return err
28894 }
28895 if x.NextPageToken == "" {
28896 return nil
28897 }
28898 c.PageToken(x.NextPageToken)
28899 }
28900 }
28901
28902
28903
28904 type DynamicTargetingKeysDeleteCall struct {
28905 s *Service
28906 profileId int64
28907 objectId int64
28908 urlParams_ gensupport.URLParams
28909 ctx_ context.Context
28910 header_ http.Header
28911 }
28912
28913
28914 func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall {
28915 c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28916 c.profileId = profileId
28917 c.objectId = objectId
28918 c.urlParams_.Set("name", name)
28919 c.urlParams_.Set("objectType", objectType)
28920 return c
28921 }
28922
28923
28924
28925
28926 func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall {
28927 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28928 return c
28929 }
28930
28931
28932
28933
28934 func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall {
28935 c.ctx_ = ctx
28936 return c
28937 }
28938
28939
28940
28941 func (c *DynamicTargetingKeysDeleteCall) Header() http.Header {
28942 if c.header_ == nil {
28943 c.header_ = make(http.Header)
28944 }
28945 return c.header_
28946 }
28947
28948 func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
28949 reqHeaders := make(http.Header)
28950 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28951 for k, v := range c.header_ {
28952 reqHeaders[k] = v
28953 }
28954 reqHeaders.Set("User-Agent", c.s.userAgent())
28955 var body io.Reader = nil
28956 c.urlParams_.Set("alt", alt)
28957 c.urlParams_.Set("prettyPrint", "false")
28958 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}")
28959 urls += "?" + c.urlParams_.Encode()
28960 req, err := http.NewRequest("DELETE", urls, body)
28961 if err != nil {
28962 return nil, err
28963 }
28964 req.Header = reqHeaders
28965 googleapi.Expand(req.URL, map[string]string{
28966 "profileId": strconv.FormatInt(c.profileId, 10),
28967 "objectId": strconv.FormatInt(c.objectId, 10),
28968 })
28969 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28970 }
28971
28972
28973 func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error {
28974 gensupport.SetOptions(c.urlParams_, opts...)
28975 res, err := c.doRequest("json")
28976 if err != nil {
28977 return err
28978 }
28979 defer googleapi.CloseBody(res)
28980 if err := googleapi.CheckResponse(res); err != nil {
28981 return err
28982 }
28983 return nil
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040 }
29041
29042
29043
29044 type DynamicTargetingKeysInsertCall struct {
29045 s *Service
29046 profileId int64
29047 dynamictargetingkey *DynamicTargetingKey
29048 urlParams_ gensupport.URLParams
29049 ctx_ context.Context
29050 header_ http.Header
29051 }
29052
29053
29054
29055
29056
29057
29058 func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall {
29059 c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29060 c.profileId = profileId
29061 c.dynamictargetingkey = dynamictargetingkey
29062 return c
29063 }
29064
29065
29066
29067
29068 func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall {
29069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29070 return c
29071 }
29072
29073
29074
29075
29076 func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall {
29077 c.ctx_ = ctx
29078 return c
29079 }
29080
29081
29082
29083 func (c *DynamicTargetingKeysInsertCall) Header() http.Header {
29084 if c.header_ == nil {
29085 c.header_ = make(http.Header)
29086 }
29087 return c.header_
29088 }
29089
29090 func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) {
29091 reqHeaders := make(http.Header)
29092 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29093 for k, v := range c.header_ {
29094 reqHeaders[k] = v
29095 }
29096 reqHeaders.Set("User-Agent", c.s.userAgent())
29097 var body io.Reader = nil
29098 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey)
29099 if err != nil {
29100 return nil, err
29101 }
29102 reqHeaders.Set("Content-Type", "application/json")
29103 c.urlParams_.Set("alt", alt)
29104 c.urlParams_.Set("prettyPrint", "false")
29105 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys")
29106 urls += "?" + c.urlParams_.Encode()
29107 req, err := http.NewRequest("POST", urls, body)
29108 if err != nil {
29109 return nil, err
29110 }
29111 req.Header = reqHeaders
29112 googleapi.Expand(req.URL, map[string]string{
29113 "profileId": strconv.FormatInt(c.profileId, 10),
29114 })
29115 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29116 }
29117
29118
29119
29120
29121
29122
29123
29124
29125 func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) {
29126 gensupport.SetOptions(c.urlParams_, opts...)
29127 res, err := c.doRequest("json")
29128 if res != nil && res.StatusCode == http.StatusNotModified {
29129 if res.Body != nil {
29130 res.Body.Close()
29131 }
29132 return nil, &googleapi.Error{
29133 Code: res.StatusCode,
29134 Header: res.Header,
29135 }
29136 }
29137 if err != nil {
29138 return nil, err
29139 }
29140 defer googleapi.CloseBody(res)
29141 if err := googleapi.CheckResponse(res); err != nil {
29142 return nil, err
29143 }
29144 ret := &DynamicTargetingKey{
29145 ServerResponse: googleapi.ServerResponse{
29146 Header: res.Header,
29147 HTTPStatusCode: res.StatusCode,
29148 },
29149 }
29150 target := &ret
29151 if err := gensupport.DecodeResponse(target, res); err != nil {
29152 return nil, err
29153 }
29154 return ret, nil
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183 }
29184
29185
29186
29187 type DynamicTargetingKeysListCall struct {
29188 s *Service
29189 profileId int64
29190 urlParams_ gensupport.URLParams
29191 ifNoneMatch_ string
29192 ctx_ context.Context
29193 header_ http.Header
29194 }
29195
29196
29197 func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall {
29198 c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29199 c.profileId = profileId
29200 return c
29201 }
29202
29203
29204
29205 func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall {
29206 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
29207 return c
29208 }
29209
29210
29211
29212 func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall {
29213 c.urlParams_.SetMulti("names", append([]string{}, names...))
29214 return c
29215 }
29216
29217
29218
29219 func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetingKeysListCall {
29220 c.urlParams_.Set("objectId", fmt.Sprint(objectId))
29221 return c
29222 }
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233 func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTargetingKeysListCall {
29234 c.urlParams_.Set("objectType", objectType)
29235 return c
29236 }
29237
29238
29239
29240
29241 func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall {
29242 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29243 return c
29244 }
29245
29246
29247
29248
29249
29250
29251 func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall {
29252 c.ifNoneMatch_ = entityTag
29253 return c
29254 }
29255
29256
29257
29258
29259 func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall {
29260 c.ctx_ = ctx
29261 return c
29262 }
29263
29264
29265
29266 func (c *DynamicTargetingKeysListCall) Header() http.Header {
29267 if c.header_ == nil {
29268 c.header_ = make(http.Header)
29269 }
29270 return c.header_
29271 }
29272
29273 func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) {
29274 reqHeaders := make(http.Header)
29275 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29276 for k, v := range c.header_ {
29277 reqHeaders[k] = v
29278 }
29279 reqHeaders.Set("User-Agent", c.s.userAgent())
29280 if c.ifNoneMatch_ != "" {
29281 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29282 }
29283 var body io.Reader = nil
29284 c.urlParams_.Set("alt", alt)
29285 c.urlParams_.Set("prettyPrint", "false")
29286 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys")
29287 urls += "?" + c.urlParams_.Encode()
29288 req, err := http.NewRequest("GET", urls, body)
29289 if err != nil {
29290 return nil, err
29291 }
29292 req.Header = reqHeaders
29293 googleapi.Expand(req.URL, map[string]string{
29294 "profileId": strconv.FormatInt(c.profileId, 10),
29295 })
29296 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29297 }
29298
29299
29300
29301
29302
29303
29304
29305
29306 func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) {
29307 gensupport.SetOptions(c.urlParams_, opts...)
29308 res, err := c.doRequest("json")
29309 if res != nil && res.StatusCode == http.StatusNotModified {
29310 if res.Body != nil {
29311 res.Body.Close()
29312 }
29313 return nil, &googleapi.Error{
29314 Code: res.StatusCode,
29315 Header: res.Header,
29316 }
29317 }
29318 if err != nil {
29319 return nil, err
29320 }
29321 defer googleapi.CloseBody(res)
29322 if err := googleapi.CheckResponse(res); err != nil {
29323 return nil, err
29324 }
29325 ret := &DynamicTargetingKeysListResponse{
29326 ServerResponse: googleapi.ServerResponse{
29327 Header: res.Header,
29328 HTTPStatusCode: res.StatusCode,
29329 },
29330 }
29331 target := &ret
29332 if err := gensupport.DecodeResponse(target, res); err != nil {
29333 return nil, err
29334 }
29335 return ret, nil
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396 }
29397
29398
29399
29400 type EventTagsDeleteCall struct {
29401 s *Service
29402 profileId int64
29403 id int64
29404 urlParams_ gensupport.URLParams
29405 ctx_ context.Context
29406 header_ http.Header
29407 }
29408
29409
29410 func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall {
29411 c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29412 c.profileId = profileId
29413 c.id = id
29414 return c
29415 }
29416
29417
29418
29419
29420 func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall {
29421 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29422 return c
29423 }
29424
29425
29426
29427
29428 func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall {
29429 c.ctx_ = ctx
29430 return c
29431 }
29432
29433
29434
29435 func (c *EventTagsDeleteCall) Header() http.Header {
29436 if c.header_ == nil {
29437 c.header_ = make(http.Header)
29438 }
29439 return c.header_
29440 }
29441
29442 func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
29443 reqHeaders := make(http.Header)
29444 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29445 for k, v := range c.header_ {
29446 reqHeaders[k] = v
29447 }
29448 reqHeaders.Set("User-Agent", c.s.userAgent())
29449 var body io.Reader = nil
29450 c.urlParams_.Set("alt", alt)
29451 c.urlParams_.Set("prettyPrint", "false")
29452 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}")
29453 urls += "?" + c.urlParams_.Encode()
29454 req, err := http.NewRequest("DELETE", urls, body)
29455 if err != nil {
29456 return nil, err
29457 }
29458 req.Header = reqHeaders
29459 googleapi.Expand(req.URL, map[string]string{
29460 "profileId": strconv.FormatInt(c.profileId, 10),
29461 "id": strconv.FormatInt(c.id, 10),
29462 })
29463 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29464 }
29465
29466
29467 func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error {
29468 gensupport.SetOptions(c.urlParams_, opts...)
29469 res, err := c.doRequest("json")
29470 if err != nil {
29471 return err
29472 }
29473 defer googleapi.CloseBody(res)
29474 if err := googleapi.CheckResponse(res); err != nil {
29475 return err
29476 }
29477 return nil
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508 }
29509
29510
29511
29512 type EventTagsGetCall struct {
29513 s *Service
29514 profileId int64
29515 id int64
29516 urlParams_ gensupport.URLParams
29517 ifNoneMatch_ string
29518 ctx_ context.Context
29519 header_ http.Header
29520 }
29521
29522
29523 func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall {
29524 c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29525 c.profileId = profileId
29526 c.id = id
29527 return c
29528 }
29529
29530
29531
29532
29533 func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall {
29534 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29535 return c
29536 }
29537
29538
29539
29540
29541
29542
29543 func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall {
29544 c.ifNoneMatch_ = entityTag
29545 return c
29546 }
29547
29548
29549
29550
29551 func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall {
29552 c.ctx_ = ctx
29553 return c
29554 }
29555
29556
29557
29558 func (c *EventTagsGetCall) Header() http.Header {
29559 if c.header_ == nil {
29560 c.header_ = make(http.Header)
29561 }
29562 return c.header_
29563 }
29564
29565 func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) {
29566 reqHeaders := make(http.Header)
29567 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29568 for k, v := range c.header_ {
29569 reqHeaders[k] = v
29570 }
29571 reqHeaders.Set("User-Agent", c.s.userAgent())
29572 if c.ifNoneMatch_ != "" {
29573 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29574 }
29575 var body io.Reader = nil
29576 c.urlParams_.Set("alt", alt)
29577 c.urlParams_.Set("prettyPrint", "false")
29578 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}")
29579 urls += "?" + c.urlParams_.Encode()
29580 req, err := http.NewRequest("GET", urls, body)
29581 if err != nil {
29582 return nil, err
29583 }
29584 req.Header = reqHeaders
29585 googleapi.Expand(req.URL, map[string]string{
29586 "profileId": strconv.FormatInt(c.profileId, 10),
29587 "id": strconv.FormatInt(c.id, 10),
29588 })
29589 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29590 }
29591
29592
29593
29594
29595
29596
29597
29598
29599 func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
29600 gensupport.SetOptions(c.urlParams_, opts...)
29601 res, err := c.doRequest("json")
29602 if res != nil && res.StatusCode == http.StatusNotModified {
29603 if res.Body != nil {
29604 res.Body.Close()
29605 }
29606 return nil, &googleapi.Error{
29607 Code: res.StatusCode,
29608 Header: res.Header,
29609 }
29610 }
29611 if err != nil {
29612 return nil, err
29613 }
29614 defer googleapi.CloseBody(res)
29615 if err := googleapi.CheckResponse(res); err != nil {
29616 return nil, err
29617 }
29618 ret := &EventTag{
29619 ServerResponse: googleapi.ServerResponse{
29620 Header: res.Header,
29621 HTTPStatusCode: res.StatusCode,
29622 },
29623 }
29624 target := &ret
29625 if err := gensupport.DecodeResponse(target, res); err != nil {
29626 return nil, err
29627 }
29628 return ret, nil
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662 }
29663
29664
29665
29666 type EventTagsInsertCall struct {
29667 s *Service
29668 profileId int64
29669 eventtag *EventTag
29670 urlParams_ gensupport.URLParams
29671 ctx_ context.Context
29672 header_ http.Header
29673 }
29674
29675
29676 func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall {
29677 c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29678 c.profileId = profileId
29679 c.eventtag = eventtag
29680 return c
29681 }
29682
29683
29684
29685
29686 func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall {
29687 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29688 return c
29689 }
29690
29691
29692
29693
29694 func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall {
29695 c.ctx_ = ctx
29696 return c
29697 }
29698
29699
29700
29701 func (c *EventTagsInsertCall) Header() http.Header {
29702 if c.header_ == nil {
29703 c.header_ = make(http.Header)
29704 }
29705 return c.header_
29706 }
29707
29708 func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) {
29709 reqHeaders := make(http.Header)
29710 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29711 for k, v := range c.header_ {
29712 reqHeaders[k] = v
29713 }
29714 reqHeaders.Set("User-Agent", c.s.userAgent())
29715 var body io.Reader = nil
29716 body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag)
29717 if err != nil {
29718 return nil, err
29719 }
29720 reqHeaders.Set("Content-Type", "application/json")
29721 c.urlParams_.Set("alt", alt)
29722 c.urlParams_.Set("prettyPrint", "false")
29723 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
29724 urls += "?" + c.urlParams_.Encode()
29725 req, err := http.NewRequest("POST", urls, body)
29726 if err != nil {
29727 return nil, err
29728 }
29729 req.Header = reqHeaders
29730 googleapi.Expand(req.URL, map[string]string{
29731 "profileId": strconv.FormatInt(c.profileId, 10),
29732 })
29733 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29734 }
29735
29736
29737
29738
29739
29740
29741
29742
29743 func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
29744 gensupport.SetOptions(c.urlParams_, opts...)
29745 res, err := c.doRequest("json")
29746 if res != nil && res.StatusCode == http.StatusNotModified {
29747 if res.Body != nil {
29748 res.Body.Close()
29749 }
29750 return nil, &googleapi.Error{
29751 Code: res.StatusCode,
29752 Header: res.Header,
29753 }
29754 }
29755 if err != nil {
29756 return nil, err
29757 }
29758 defer googleapi.CloseBody(res)
29759 if err := googleapi.CheckResponse(res); err != nil {
29760 return nil, err
29761 }
29762 ret := &EventTag{
29763 ServerResponse: googleapi.ServerResponse{
29764 Header: res.Header,
29765 HTTPStatusCode: res.StatusCode,
29766 },
29767 }
29768 target := &ret
29769 if err := gensupport.DecodeResponse(target, res); err != nil {
29770 return nil, err
29771 }
29772 return ret, nil
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801 }
29802
29803
29804
29805 type EventTagsListCall struct {
29806 s *Service
29807 profileId int64
29808 urlParams_ gensupport.URLParams
29809 ifNoneMatch_ string
29810 ctx_ context.Context
29811 header_ http.Header
29812 }
29813
29814
29815 func (r *EventTagsService) List(profileId int64) *EventTagsListCall {
29816 c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29817 c.profileId = profileId
29818 return c
29819 }
29820
29821
29822
29823 func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall {
29824 c.urlParams_.Set("adId", fmt.Sprint(adId))
29825 return c
29826 }
29827
29828
29829
29830 func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall {
29831 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
29832 return c
29833 }
29834
29835
29836
29837 func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall {
29838 c.urlParams_.Set("campaignId", fmt.Sprint(campaignId))
29839 return c
29840 }
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850 func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall {
29851 c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly))
29852 return c
29853 }
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863 func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall {
29864 c.urlParams_.Set("enabled", fmt.Sprint(enabled))
29865 return c
29866 }
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879 func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsListCall {
29880 c.urlParams_.SetMulti("eventTagTypes", append([]string{}, eventTagTypes...))
29881 return c
29882 }
29883
29884
29885
29886 func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall {
29887 var ids_ []string
29888 for _, v := range ids {
29889 ids_ = append(ids_, fmt.Sprint(v))
29890 }
29891 c.urlParams_.SetMulti("ids", ids_)
29892 return c
29893 }
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903 func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall {
29904 c.urlParams_.Set("searchString", searchString)
29905 return c
29906 }
29907
29908
29909
29910
29911
29912
29913
29914
29915 func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall {
29916 c.urlParams_.Set("sortField", sortField)
29917 return c
29918 }
29919
29920
29921
29922
29923
29924
29925
29926
29927 func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall {
29928 c.urlParams_.Set("sortOrder", sortOrder)
29929 return c
29930 }
29931
29932
29933
29934
29935 func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall {
29936 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29937 return c
29938 }
29939
29940
29941
29942
29943
29944
29945 func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall {
29946 c.ifNoneMatch_ = entityTag
29947 return c
29948 }
29949
29950
29951
29952
29953 func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall {
29954 c.ctx_ = ctx
29955 return c
29956 }
29957
29958
29959
29960 func (c *EventTagsListCall) Header() http.Header {
29961 if c.header_ == nil {
29962 c.header_ = make(http.Header)
29963 }
29964 return c.header_
29965 }
29966
29967 func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) {
29968 reqHeaders := make(http.Header)
29969 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29970 for k, v := range c.header_ {
29971 reqHeaders[k] = v
29972 }
29973 reqHeaders.Set("User-Agent", c.s.userAgent())
29974 if c.ifNoneMatch_ != "" {
29975 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29976 }
29977 var body io.Reader = nil
29978 c.urlParams_.Set("alt", alt)
29979 c.urlParams_.Set("prettyPrint", "false")
29980 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
29981 urls += "?" + c.urlParams_.Encode()
29982 req, err := http.NewRequest("GET", urls, body)
29983 if err != nil {
29984 return nil, err
29985 }
29986 req.Header = reqHeaders
29987 googleapi.Expand(req.URL, map[string]string{
29988 "profileId": strconv.FormatInt(c.profileId, 10),
29989 })
29990 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29991 }
29992
29993
29994
29995
29996
29997
29998
29999
30000 func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) {
30001 gensupport.SetOptions(c.urlParams_, opts...)
30002 res, err := c.doRequest("json")
30003 if res != nil && res.StatusCode == http.StatusNotModified {
30004 if res.Body != nil {
30005 res.Body.Close()
30006 }
30007 return nil, &googleapi.Error{
30008 Code: res.StatusCode,
30009 Header: res.Header,
30010 }
30011 }
30012 if err != nil {
30013 return nil, err
30014 }
30015 defer googleapi.CloseBody(res)
30016 if err := googleapi.CheckResponse(res); err != nil {
30017 return nil, err
30018 }
30019 ret := &EventTagsListResponse{
30020 ServerResponse: googleapi.ServerResponse{
30021 Header: res.Header,
30022 HTTPStatusCode: res.StatusCode,
30023 },
30024 }
30025 target := &ret
30026 if err := gensupport.DecodeResponse(target, res); err != nil {
30027 return nil, err
30028 }
30029 return ret, nil
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139 }
30140
30141
30142
30143 type EventTagsPatchCall struct {
30144 s *Service
30145 profileId int64
30146 eventtag *EventTag
30147 urlParams_ gensupport.URLParams
30148 ctx_ context.Context
30149 header_ http.Header
30150 }
30151
30152
30153
30154 func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall {
30155 c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30156 c.profileId = profileId
30157 c.urlParams_.Set("id", fmt.Sprint(id))
30158 c.eventtag = eventtag
30159 return c
30160 }
30161
30162
30163
30164
30165 func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall {
30166 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30167 return c
30168 }
30169
30170
30171
30172
30173 func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall {
30174 c.ctx_ = ctx
30175 return c
30176 }
30177
30178
30179
30180 func (c *EventTagsPatchCall) Header() http.Header {
30181 if c.header_ == nil {
30182 c.header_ = make(http.Header)
30183 }
30184 return c.header_
30185 }
30186
30187 func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) {
30188 reqHeaders := make(http.Header)
30189 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30190 for k, v := range c.header_ {
30191 reqHeaders[k] = v
30192 }
30193 reqHeaders.Set("User-Agent", c.s.userAgent())
30194 var body io.Reader = nil
30195 body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag)
30196 if err != nil {
30197 return nil, err
30198 }
30199 reqHeaders.Set("Content-Type", "application/json")
30200 c.urlParams_.Set("alt", alt)
30201 c.urlParams_.Set("prettyPrint", "false")
30202 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
30203 urls += "?" + c.urlParams_.Encode()
30204 req, err := http.NewRequest("PATCH", urls, body)
30205 if err != nil {
30206 return nil, err
30207 }
30208 req.Header = reqHeaders
30209 googleapi.Expand(req.URL, map[string]string{
30210 "profileId": strconv.FormatInt(c.profileId, 10),
30211 })
30212 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30213 }
30214
30215
30216
30217
30218
30219
30220
30221
30222 func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
30223 gensupport.SetOptions(c.urlParams_, opts...)
30224 res, err := c.doRequest("json")
30225 if res != nil && res.StatusCode == http.StatusNotModified {
30226 if res.Body != nil {
30227 res.Body.Close()
30228 }
30229 return nil, &googleapi.Error{
30230 Code: res.StatusCode,
30231 Header: res.Header,
30232 }
30233 }
30234 if err != nil {
30235 return nil, err
30236 }
30237 defer googleapi.CloseBody(res)
30238 if err := googleapi.CheckResponse(res); err != nil {
30239 return nil, err
30240 }
30241 ret := &EventTag{
30242 ServerResponse: googleapi.ServerResponse{
30243 Header: res.Header,
30244 HTTPStatusCode: res.StatusCode,
30245 },
30246 }
30247 target := &ret
30248 if err := gensupport.DecodeResponse(target, res); err != nil {
30249 return nil, err
30250 }
30251 return ret, nil
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288 }
30289
30290
30291
30292 type EventTagsUpdateCall struct {
30293 s *Service
30294 profileId int64
30295 eventtag *EventTag
30296 urlParams_ gensupport.URLParams
30297 ctx_ context.Context
30298 header_ http.Header
30299 }
30300
30301
30302 func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall {
30303 c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30304 c.profileId = profileId
30305 c.eventtag = eventtag
30306 return c
30307 }
30308
30309
30310
30311
30312 func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall {
30313 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30314 return c
30315 }
30316
30317
30318
30319
30320 func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall {
30321 c.ctx_ = ctx
30322 return c
30323 }
30324
30325
30326
30327 func (c *EventTagsUpdateCall) Header() http.Header {
30328 if c.header_ == nil {
30329 c.header_ = make(http.Header)
30330 }
30331 return c.header_
30332 }
30333
30334 func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) {
30335 reqHeaders := make(http.Header)
30336 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30337 for k, v := range c.header_ {
30338 reqHeaders[k] = v
30339 }
30340 reqHeaders.Set("User-Agent", c.s.userAgent())
30341 var body io.Reader = nil
30342 body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag)
30343 if err != nil {
30344 return nil, err
30345 }
30346 reqHeaders.Set("Content-Type", "application/json")
30347 c.urlParams_.Set("alt", alt)
30348 c.urlParams_.Set("prettyPrint", "false")
30349 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
30350 urls += "?" + c.urlParams_.Encode()
30351 req, err := http.NewRequest("PUT", urls, body)
30352 if err != nil {
30353 return nil, err
30354 }
30355 req.Header = reqHeaders
30356 googleapi.Expand(req.URL, map[string]string{
30357 "profileId": strconv.FormatInt(c.profileId, 10),
30358 })
30359 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30360 }
30361
30362
30363
30364
30365
30366
30367
30368
30369 func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
30370 gensupport.SetOptions(c.urlParams_, opts...)
30371 res, err := c.doRequest("json")
30372 if res != nil && res.StatusCode == http.StatusNotModified {
30373 if res.Body != nil {
30374 res.Body.Close()
30375 }
30376 return nil, &googleapi.Error{
30377 Code: res.StatusCode,
30378 Header: res.Header,
30379 }
30380 }
30381 if err != nil {
30382 return nil, err
30383 }
30384 defer googleapi.CloseBody(res)
30385 if err := googleapi.CheckResponse(res); err != nil {
30386 return nil, err
30387 }
30388 ret := &EventTag{
30389 ServerResponse: googleapi.ServerResponse{
30390 Header: res.Header,
30391 HTTPStatusCode: res.StatusCode,
30392 },
30393 }
30394 target := &ret
30395 if err := gensupport.DecodeResponse(target, res); err != nil {
30396 return nil, err
30397 }
30398 return ret, nil
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427 }
30428
30429
30430
30431 type FilesGetCall struct {
30432 s *Service
30433 reportId int64
30434 fileId int64
30435 urlParams_ gensupport.URLParams
30436 ifNoneMatch_ string
30437 ctx_ context.Context
30438 header_ http.Header
30439 }
30440
30441
30442
30443 func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall {
30444 c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30445 c.reportId = reportId
30446 c.fileId = fileId
30447 return c
30448 }
30449
30450
30451
30452
30453 func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall {
30454 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30455 return c
30456 }
30457
30458
30459
30460
30461
30462
30463 func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall {
30464 c.ifNoneMatch_ = entityTag
30465 return c
30466 }
30467
30468
30469
30470
30471 func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall {
30472 c.ctx_ = ctx
30473 return c
30474 }
30475
30476
30477
30478 func (c *FilesGetCall) Header() http.Header {
30479 if c.header_ == nil {
30480 c.header_ = make(http.Header)
30481 }
30482 return c.header_
30483 }
30484
30485 func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
30486 reqHeaders := make(http.Header)
30487 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30488 for k, v := range c.header_ {
30489 reqHeaders[k] = v
30490 }
30491 reqHeaders.Set("User-Agent", c.s.userAgent())
30492 if c.ifNoneMatch_ != "" {
30493 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30494 }
30495 var body io.Reader = nil
30496 c.urlParams_.Set("alt", alt)
30497 c.urlParams_.Set("prettyPrint", "false")
30498 urls := googleapi.ResolveRelative(c.s.BasePath, "reports/{reportId}/files/{fileId}")
30499 urls += "?" + c.urlParams_.Encode()
30500 req, err := http.NewRequest("GET", urls, body)
30501 if err != nil {
30502 return nil, err
30503 }
30504 req.Header = reqHeaders
30505 googleapi.Expand(req.URL, map[string]string{
30506 "reportId": strconv.FormatInt(c.reportId, 10),
30507 "fileId": strconv.FormatInt(c.fileId, 10),
30508 })
30509 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30510 }
30511
30512
30513
30514
30515 func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
30516 gensupport.SetOptions(c.urlParams_, opts...)
30517 res, err := c.doRequest("media")
30518 if err != nil {
30519 return nil, err
30520 }
30521 if err := googleapi.CheckMediaResponse(res); err != nil {
30522 res.Body.Close()
30523 return nil, err
30524 }
30525 return res, nil
30526 }
30527
30528
30529
30530
30531
30532
30533
30534
30535 func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) {
30536 gensupport.SetOptions(c.urlParams_, opts...)
30537 res, err := c.doRequest("json")
30538 if res != nil && res.StatusCode == http.StatusNotModified {
30539 if res.Body != nil {
30540 res.Body.Close()
30541 }
30542 return nil, &googleapi.Error{
30543 Code: res.StatusCode,
30544 Header: res.Header,
30545 }
30546 }
30547 if err != nil {
30548 return nil, err
30549 }
30550 defer googleapi.CloseBody(res)
30551 if err := googleapi.CheckResponse(res); err != nil {
30552 return nil, err
30553 }
30554 ret := &File{
30555 ServerResponse: googleapi.ServerResponse{
30556 Header: res.Header,
30557 HTTPStatusCode: res.StatusCode,
30558 },
30559 }
30560 target := &ret
30561 if err := gensupport.DecodeResponse(target, res); err != nil {
30562 return nil, err
30563 }
30564 return ret, nil
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599 }
30600
30601
30602
30603 type FilesListCall struct {
30604 s *Service
30605 profileId int64
30606 urlParams_ gensupport.URLParams
30607 ifNoneMatch_ string
30608 ctx_ context.Context
30609 header_ http.Header
30610 }
30611
30612
30613 func (r *FilesService) List(profileId int64) *FilesListCall {
30614 c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30615 c.profileId = profileId
30616 return c
30617 }
30618
30619
30620
30621 func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall {
30622 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
30623 return c
30624 }
30625
30626
30627
30628 func (c *FilesListCall) PageToken(pageToken string) *FilesListCall {
30629 c.urlParams_.Set("pageToken", pageToken)
30630 return c
30631 }
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641 func (c *FilesListCall) Scope(scope string) *FilesListCall {
30642 c.urlParams_.Set("scope", scope)
30643 return c
30644 }
30645
30646
30647
30648
30649
30650
30651
30652
30653 func (c *FilesListCall) SortField(sortField string) *FilesListCall {
30654 c.urlParams_.Set("sortField", sortField)
30655 return c
30656 }
30657
30658
30659
30660
30661
30662
30663
30664
30665 func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall {
30666 c.urlParams_.Set("sortOrder", sortOrder)
30667 return c
30668 }
30669
30670
30671
30672
30673 func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall {
30674 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30675 return c
30676 }
30677
30678
30679
30680
30681
30682
30683 func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall {
30684 c.ifNoneMatch_ = entityTag
30685 return c
30686 }
30687
30688
30689
30690
30691 func (c *FilesListCall) Context(ctx context.Context) *FilesListCall {
30692 c.ctx_ = ctx
30693 return c
30694 }
30695
30696
30697
30698 func (c *FilesListCall) Header() http.Header {
30699 if c.header_ == nil {
30700 c.header_ = make(http.Header)
30701 }
30702 return c.header_
30703 }
30704
30705 func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
30706 reqHeaders := make(http.Header)
30707 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30708 for k, v := range c.header_ {
30709 reqHeaders[k] = v
30710 }
30711 reqHeaders.Set("User-Agent", c.s.userAgent())
30712 if c.ifNoneMatch_ != "" {
30713 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30714 }
30715 var body io.Reader = nil
30716 c.urlParams_.Set("alt", alt)
30717 c.urlParams_.Set("prettyPrint", "false")
30718 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/files")
30719 urls += "?" + c.urlParams_.Encode()
30720 req, err := http.NewRequest("GET", urls, body)
30721 if err != nil {
30722 return nil, err
30723 }
30724 req.Header = reqHeaders
30725 googleapi.Expand(req.URL, map[string]string{
30726 "profileId": strconv.FormatInt(c.profileId, 10),
30727 })
30728 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30729 }
30730
30731
30732
30733
30734
30735
30736
30737
30738 func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) {
30739 gensupport.SetOptions(c.urlParams_, opts...)
30740 res, err := c.doRequest("json")
30741 if res != nil && res.StatusCode == http.StatusNotModified {
30742 if res.Body != nil {
30743 res.Body.Close()
30744 }
30745 return nil, &googleapi.Error{
30746 Code: res.StatusCode,
30747 Header: res.Header,
30748 }
30749 }
30750 if err != nil {
30751 return nil, err
30752 }
30753 defer googleapi.CloseBody(res)
30754 if err := googleapi.CheckResponse(res); err != nil {
30755 return nil, err
30756 }
30757 ret := &FileList{
30758 ServerResponse: googleapi.ServerResponse{
30759 Header: res.Header,
30760 HTTPStatusCode: res.StatusCode,
30761 },
30762 }
30763 target := &ret
30764 if err := gensupport.DecodeResponse(target, res); err != nil {
30765 return nil, err
30766 }
30767 return ret, nil
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851 }
30852
30853
30854
30855
30856 func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error {
30857 c.ctx_ = ctx
30858 defer c.PageToken(c.urlParams_.Get("pageToken"))
30859 for {
30860 x, err := c.Do()
30861 if err != nil {
30862 return err
30863 }
30864 if err := f(x); err != nil {
30865 return err
30866 }
30867 if x.NextPageToken == "" {
30868 return nil
30869 }
30870 c.PageToken(x.NextPageToken)
30871 }
30872 }
30873
30874
30875
30876 type FloodlightActivitiesDeleteCall struct {
30877 s *Service
30878 profileId int64
30879 id int64
30880 urlParams_ gensupport.URLParams
30881 ctx_ context.Context
30882 header_ http.Header
30883 }
30884
30885
30886 func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall {
30887 c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30888 c.profileId = profileId
30889 c.id = id
30890 return c
30891 }
30892
30893
30894
30895
30896 func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall {
30897 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30898 return c
30899 }
30900
30901
30902
30903
30904 func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall {
30905 c.ctx_ = ctx
30906 return c
30907 }
30908
30909
30910
30911 func (c *FloodlightActivitiesDeleteCall) Header() http.Header {
30912 if c.header_ == nil {
30913 c.header_ = make(http.Header)
30914 }
30915 return c.header_
30916 }
30917
30918 func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) {
30919 reqHeaders := make(http.Header)
30920 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30921 for k, v := range c.header_ {
30922 reqHeaders[k] = v
30923 }
30924 reqHeaders.Set("User-Agent", c.s.userAgent())
30925 var body io.Reader = nil
30926 c.urlParams_.Set("alt", alt)
30927 c.urlParams_.Set("prettyPrint", "false")
30928 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}")
30929 urls += "?" + c.urlParams_.Encode()
30930 req, err := http.NewRequest("DELETE", urls, body)
30931 if err != nil {
30932 return nil, err
30933 }
30934 req.Header = reqHeaders
30935 googleapi.Expand(req.URL, map[string]string{
30936 "profileId": strconv.FormatInt(c.profileId, 10),
30937 "id": strconv.FormatInt(c.id, 10),
30938 })
30939 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30940 }
30941
30942
30943 func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error {
30944 gensupport.SetOptions(c.urlParams_, opts...)
30945 res, err := c.doRequest("json")
30946 if err != nil {
30947 return err
30948 }
30949 defer googleapi.CloseBody(res)
30950 if err := googleapi.CheckResponse(res); err != nil {
30951 return err
30952 }
30953 return nil
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984 }
30985
30986
30987
30988 type FloodlightActivitiesGeneratetagCall struct {
30989 s *Service
30990 profileId int64
30991 urlParams_ gensupport.URLParams
30992 ctx_ context.Context
30993 header_ http.Header
30994 }
30995
30996
30997 func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall {
30998 c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30999 c.profileId = profileId
31000 return c
31001 }
31002
31003
31004
31005
31006 func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall {
31007 c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId))
31008 return c
31009 }
31010
31011
31012
31013
31014 func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall {
31015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31016 return c
31017 }
31018
31019
31020
31021
31022 func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall {
31023 c.ctx_ = ctx
31024 return c
31025 }
31026
31027
31028
31029 func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header {
31030 if c.header_ == nil {
31031 c.header_ = make(http.Header)
31032 }
31033 return c.header_
31034 }
31035
31036 func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) {
31037 reqHeaders := make(http.Header)
31038 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31039 for k, v := range c.header_ {
31040 reqHeaders[k] = v
31041 }
31042 reqHeaders.Set("User-Agent", c.s.userAgent())
31043 var body io.Reader = nil
31044 c.urlParams_.Set("alt", alt)
31045 c.urlParams_.Set("prettyPrint", "false")
31046 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/generatetag")
31047 urls += "?" + c.urlParams_.Encode()
31048 req, err := http.NewRequest("POST", urls, body)
31049 if err != nil {
31050 return nil, err
31051 }
31052 req.Header = reqHeaders
31053 googleapi.Expand(req.URL, map[string]string{
31054 "profileId": strconv.FormatInt(c.profileId, 10),
31055 })
31056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31057 }
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067 func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) {
31068 gensupport.SetOptions(c.urlParams_, opts...)
31069 res, err := c.doRequest("json")
31070 if res != nil && res.StatusCode == http.StatusNotModified {
31071 if res.Body != nil {
31072 res.Body.Close()
31073 }
31074 return nil, &googleapi.Error{
31075 Code: res.StatusCode,
31076 Header: res.Header,
31077 }
31078 }
31079 if err != nil {
31080 return nil, err
31081 }
31082 defer googleapi.CloseBody(res)
31083 if err := googleapi.CheckResponse(res); err != nil {
31084 return nil, err
31085 }
31086 ret := &FloodlightActivitiesGenerateTagResponse{
31087 ServerResponse: googleapi.ServerResponse{
31088 Header: res.Header,
31089 HTTPStatusCode: res.StatusCode,
31090 },
31091 }
31092 target := &ret
31093 if err := gensupport.DecodeResponse(target, res); err != nil {
31094 return nil, err
31095 }
31096 return ret, nil
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128 }
31129
31130
31131
31132 type FloodlightActivitiesGetCall struct {
31133 s *Service
31134 profileId int64
31135 id int64
31136 urlParams_ gensupport.URLParams
31137 ifNoneMatch_ string
31138 ctx_ context.Context
31139 header_ http.Header
31140 }
31141
31142
31143 func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall {
31144 c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31145 c.profileId = profileId
31146 c.id = id
31147 return c
31148 }
31149
31150
31151
31152
31153 func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall {
31154 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31155 return c
31156 }
31157
31158
31159
31160
31161
31162
31163 func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall {
31164 c.ifNoneMatch_ = entityTag
31165 return c
31166 }
31167
31168
31169
31170
31171 func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall {
31172 c.ctx_ = ctx
31173 return c
31174 }
31175
31176
31177
31178 func (c *FloodlightActivitiesGetCall) Header() http.Header {
31179 if c.header_ == nil {
31180 c.header_ = make(http.Header)
31181 }
31182 return c.header_
31183 }
31184
31185 func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) {
31186 reqHeaders := make(http.Header)
31187 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31188 for k, v := range c.header_ {
31189 reqHeaders[k] = v
31190 }
31191 reqHeaders.Set("User-Agent", c.s.userAgent())
31192 if c.ifNoneMatch_ != "" {
31193 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31194 }
31195 var body io.Reader = nil
31196 c.urlParams_.Set("alt", alt)
31197 c.urlParams_.Set("prettyPrint", "false")
31198 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}")
31199 urls += "?" + c.urlParams_.Encode()
31200 req, err := http.NewRequest("GET", urls, body)
31201 if err != nil {
31202 return nil, err
31203 }
31204 req.Header = reqHeaders
31205 googleapi.Expand(req.URL, map[string]string{
31206 "profileId": strconv.FormatInt(c.profileId, 10),
31207 "id": strconv.FormatInt(c.id, 10),
31208 })
31209 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31210 }
31211
31212
31213
31214
31215
31216
31217
31218
31219 func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
31220 gensupport.SetOptions(c.urlParams_, opts...)
31221 res, err := c.doRequest("json")
31222 if res != nil && res.StatusCode == http.StatusNotModified {
31223 if res.Body != nil {
31224 res.Body.Close()
31225 }
31226 return nil, &googleapi.Error{
31227 Code: res.StatusCode,
31228 Header: res.Header,
31229 }
31230 }
31231 if err != nil {
31232 return nil, err
31233 }
31234 defer googleapi.CloseBody(res)
31235 if err := googleapi.CheckResponse(res); err != nil {
31236 return nil, err
31237 }
31238 ret := &FloodlightActivity{
31239 ServerResponse: googleapi.ServerResponse{
31240 Header: res.Header,
31241 HTTPStatusCode: res.StatusCode,
31242 },
31243 }
31244 target := &ret
31245 if err := gensupport.DecodeResponse(target, res); err != nil {
31246 return nil, err
31247 }
31248 return ret, nil
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282 }
31283
31284
31285
31286 type FloodlightActivitiesInsertCall struct {
31287 s *Service
31288 profileId int64
31289 floodlightactivity *FloodlightActivity
31290 urlParams_ gensupport.URLParams
31291 ctx_ context.Context
31292 header_ http.Header
31293 }
31294
31295
31296 func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall {
31297 c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31298 c.profileId = profileId
31299 c.floodlightactivity = floodlightactivity
31300 return c
31301 }
31302
31303
31304
31305
31306 func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall {
31307 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31308 return c
31309 }
31310
31311
31312
31313
31314 func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall {
31315 c.ctx_ = ctx
31316 return c
31317 }
31318
31319
31320
31321 func (c *FloodlightActivitiesInsertCall) Header() http.Header {
31322 if c.header_ == nil {
31323 c.header_ = make(http.Header)
31324 }
31325 return c.header_
31326 }
31327
31328 func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) {
31329 reqHeaders := make(http.Header)
31330 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31331 for k, v := range c.header_ {
31332 reqHeaders[k] = v
31333 }
31334 reqHeaders.Set("User-Agent", c.s.userAgent())
31335 var body io.Reader = nil
31336 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity)
31337 if err != nil {
31338 return nil, err
31339 }
31340 reqHeaders.Set("Content-Type", "application/json")
31341 c.urlParams_.Set("alt", alt)
31342 c.urlParams_.Set("prettyPrint", "false")
31343 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
31344 urls += "?" + c.urlParams_.Encode()
31345 req, err := http.NewRequest("POST", urls, body)
31346 if err != nil {
31347 return nil, err
31348 }
31349 req.Header = reqHeaders
31350 googleapi.Expand(req.URL, map[string]string{
31351 "profileId": strconv.FormatInt(c.profileId, 10),
31352 })
31353 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31354 }
31355
31356
31357
31358
31359
31360
31361
31362
31363 func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
31364 gensupport.SetOptions(c.urlParams_, opts...)
31365 res, err := c.doRequest("json")
31366 if res != nil && res.StatusCode == http.StatusNotModified {
31367 if res.Body != nil {
31368 res.Body.Close()
31369 }
31370 return nil, &googleapi.Error{
31371 Code: res.StatusCode,
31372 Header: res.Header,
31373 }
31374 }
31375 if err != nil {
31376 return nil, err
31377 }
31378 defer googleapi.CloseBody(res)
31379 if err := googleapi.CheckResponse(res); err != nil {
31380 return nil, err
31381 }
31382 ret := &FloodlightActivity{
31383 ServerResponse: googleapi.ServerResponse{
31384 Header: res.Header,
31385 HTTPStatusCode: res.StatusCode,
31386 },
31387 }
31388 target := &ret
31389 if err := gensupport.DecodeResponse(target, res); err != nil {
31390 return nil, err
31391 }
31392 return ret, nil
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421 }
31422
31423
31424
31425 type FloodlightActivitiesListCall struct {
31426 s *Service
31427 profileId int64
31428 urlParams_ gensupport.URLParams
31429 ifNoneMatch_ string
31430 ctx_ context.Context
31431 header_ http.Header
31432 }
31433
31434
31435
31436 func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall {
31437 c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31438 c.profileId = profileId
31439 return c
31440 }
31441
31442
31443
31444
31445
31446 func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall {
31447 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
31448 return c
31449 }
31450
31451
31452
31453
31454 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall {
31455 var floodlightActivityGroupIds_ []string
31456 for _, v := range floodlightActivityGroupIds {
31457 floodlightActivityGroupIds_ = append(floodlightActivityGroupIds_, fmt.Sprint(v))
31458 }
31459 c.urlParams_.SetMulti("floodlightActivityGroupIds", floodlightActivityGroupIds_)
31460 return c
31461 }
31462
31463
31464
31465
31466 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall {
31467 c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName)
31468 return c
31469 }
31470
31471
31472
31473
31474 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall {
31475 c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString)
31476 return c
31477 }
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightActivityGroupType string) *FloodlightActivitiesListCall {
31488 c.urlParams_.Set("floodlightActivityGroupType", floodlightActivityGroupType)
31489 return c
31490 }
31491
31492
31493
31494
31495
31496 func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall {
31497 c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId))
31498 return c
31499 }
31500
31501
31502
31503
31504 func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall {
31505 var ids_ []string
31506 for _, v := range ids {
31507 ids_ = append(ids_, fmt.Sprint(v))
31508 }
31509 c.urlParams_.SetMulti("ids", ids_)
31510 return c
31511 }
31512
31513
31514
31515 func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall {
31516 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
31517 return c
31518 }
31519
31520
31521
31522 func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightActivitiesListCall {
31523 c.urlParams_.Set("pageToken", pageToken)
31524 return c
31525 }
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536 func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall {
31537 c.urlParams_.Set("searchString", searchString)
31538 return c
31539 }
31540
31541
31542
31543
31544
31545
31546
31547
31548 func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightActivitiesListCall {
31549 c.urlParams_.Set("sortField", sortField)
31550 return c
31551 }
31552
31553
31554
31555
31556
31557
31558
31559
31560 func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightActivitiesListCall {
31561 c.urlParams_.Set("sortOrder", sortOrder)
31562 return c
31563 }
31564
31565
31566
31567 func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall {
31568 c.urlParams_.Set("tagString", tagString)
31569 return c
31570 }
31571
31572
31573
31574
31575 func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall {
31576 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31577 return c
31578 }
31579
31580
31581
31582
31583
31584
31585 func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall {
31586 c.ifNoneMatch_ = entityTag
31587 return c
31588 }
31589
31590
31591
31592
31593 func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall {
31594 c.ctx_ = ctx
31595 return c
31596 }
31597
31598
31599
31600 func (c *FloodlightActivitiesListCall) Header() http.Header {
31601 if c.header_ == nil {
31602 c.header_ = make(http.Header)
31603 }
31604 return c.header_
31605 }
31606
31607 func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) {
31608 reqHeaders := make(http.Header)
31609 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31610 for k, v := range c.header_ {
31611 reqHeaders[k] = v
31612 }
31613 reqHeaders.Set("User-Agent", c.s.userAgent())
31614 if c.ifNoneMatch_ != "" {
31615 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31616 }
31617 var body io.Reader = nil
31618 c.urlParams_.Set("alt", alt)
31619 c.urlParams_.Set("prettyPrint", "false")
31620 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
31621 urls += "?" + c.urlParams_.Encode()
31622 req, err := http.NewRequest("GET", urls, body)
31623 if err != nil {
31624 return nil, err
31625 }
31626 req.Header = reqHeaders
31627 googleapi.Expand(req.URL, map[string]string{
31628 "profileId": strconv.FormatInt(c.profileId, 10),
31629 })
31630 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31631 }
31632
31633
31634
31635
31636
31637
31638
31639
31640 func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) {
31641 gensupport.SetOptions(c.urlParams_, opts...)
31642 res, err := c.doRequest("json")
31643 if res != nil && res.StatusCode == http.StatusNotModified {
31644 if res.Body != nil {
31645 res.Body.Close()
31646 }
31647 return nil, &googleapi.Error{
31648 Code: res.StatusCode,
31649 Header: res.Header,
31650 }
31651 }
31652 if err != nil {
31653 return nil, err
31654 }
31655 defer googleapi.CloseBody(res)
31656 if err := googleapi.CheckResponse(res); err != nil {
31657 return nil, err
31658 }
31659 ret := &FloodlightActivitiesListResponse{
31660 ServerResponse: googleapi.ServerResponse{
31661 Header: res.Header,
31662 HTTPStatusCode: res.StatusCode,
31663 },
31664 }
31665 target := &ret
31666 if err := gensupport.DecodeResponse(target, res); err != nil {
31667 return nil, err
31668 }
31669 return ret, nil
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796 }
31797
31798
31799
31800
31801 func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error {
31802 c.ctx_ = ctx
31803 defer c.PageToken(c.urlParams_.Get("pageToken"))
31804 for {
31805 x, err := c.Do()
31806 if err != nil {
31807 return err
31808 }
31809 if err := f(x); err != nil {
31810 return err
31811 }
31812 if x.NextPageToken == "" {
31813 return nil
31814 }
31815 c.PageToken(x.NextPageToken)
31816 }
31817 }
31818
31819
31820
31821 type FloodlightActivitiesPatchCall struct {
31822 s *Service
31823 profileId int64
31824 floodlightactivity *FloodlightActivity
31825 urlParams_ gensupport.URLParams
31826 ctx_ context.Context
31827 header_ http.Header
31828 }
31829
31830
31831
31832 func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall {
31833 c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31834 c.profileId = profileId
31835 c.urlParams_.Set("id", fmt.Sprint(id))
31836 c.floodlightactivity = floodlightactivity
31837 return c
31838 }
31839
31840
31841
31842
31843 func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall {
31844 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31845 return c
31846 }
31847
31848
31849
31850
31851 func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall {
31852 c.ctx_ = ctx
31853 return c
31854 }
31855
31856
31857
31858 func (c *FloodlightActivitiesPatchCall) Header() http.Header {
31859 if c.header_ == nil {
31860 c.header_ = make(http.Header)
31861 }
31862 return c.header_
31863 }
31864
31865 func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) {
31866 reqHeaders := make(http.Header)
31867 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31868 for k, v := range c.header_ {
31869 reqHeaders[k] = v
31870 }
31871 reqHeaders.Set("User-Agent", c.s.userAgent())
31872 var body io.Reader = nil
31873 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity)
31874 if err != nil {
31875 return nil, err
31876 }
31877 reqHeaders.Set("Content-Type", "application/json")
31878 c.urlParams_.Set("alt", alt)
31879 c.urlParams_.Set("prettyPrint", "false")
31880 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
31881 urls += "?" + c.urlParams_.Encode()
31882 req, err := http.NewRequest("PATCH", urls, body)
31883 if err != nil {
31884 return nil, err
31885 }
31886 req.Header = reqHeaders
31887 googleapi.Expand(req.URL, map[string]string{
31888 "profileId": strconv.FormatInt(c.profileId, 10),
31889 })
31890 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31891 }
31892
31893
31894
31895
31896
31897
31898
31899
31900 func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
31901 gensupport.SetOptions(c.urlParams_, opts...)
31902 res, err := c.doRequest("json")
31903 if res != nil && res.StatusCode == http.StatusNotModified {
31904 if res.Body != nil {
31905 res.Body.Close()
31906 }
31907 return nil, &googleapi.Error{
31908 Code: res.StatusCode,
31909 Header: res.Header,
31910 }
31911 }
31912 if err != nil {
31913 return nil, err
31914 }
31915 defer googleapi.CloseBody(res)
31916 if err := googleapi.CheckResponse(res); err != nil {
31917 return nil, err
31918 }
31919 ret := &FloodlightActivity{
31920 ServerResponse: googleapi.ServerResponse{
31921 Header: res.Header,
31922 HTTPStatusCode: res.StatusCode,
31923 },
31924 }
31925 target := &ret
31926 if err := gensupport.DecodeResponse(target, res); err != nil {
31927 return nil, err
31928 }
31929 return ret, nil
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966 }
31967
31968
31969
31970 type FloodlightActivitiesUpdateCall struct {
31971 s *Service
31972 profileId int64
31973 floodlightactivity *FloodlightActivity
31974 urlParams_ gensupport.URLParams
31975 ctx_ context.Context
31976 header_ http.Header
31977 }
31978
31979
31980 func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall {
31981 c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31982 c.profileId = profileId
31983 c.floodlightactivity = floodlightactivity
31984 return c
31985 }
31986
31987
31988
31989
31990 func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall {
31991 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31992 return c
31993 }
31994
31995
31996
31997
31998 func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall {
31999 c.ctx_ = ctx
32000 return c
32001 }
32002
32003
32004
32005 func (c *FloodlightActivitiesUpdateCall) Header() http.Header {
32006 if c.header_ == nil {
32007 c.header_ = make(http.Header)
32008 }
32009 return c.header_
32010 }
32011
32012 func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) {
32013 reqHeaders := make(http.Header)
32014 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32015 for k, v := range c.header_ {
32016 reqHeaders[k] = v
32017 }
32018 reqHeaders.Set("User-Agent", c.s.userAgent())
32019 var body io.Reader = nil
32020 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity)
32021 if err != nil {
32022 return nil, err
32023 }
32024 reqHeaders.Set("Content-Type", "application/json")
32025 c.urlParams_.Set("alt", alt)
32026 c.urlParams_.Set("prettyPrint", "false")
32027 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
32028 urls += "?" + c.urlParams_.Encode()
32029 req, err := http.NewRequest("PUT", urls, body)
32030 if err != nil {
32031 return nil, err
32032 }
32033 req.Header = reqHeaders
32034 googleapi.Expand(req.URL, map[string]string{
32035 "profileId": strconv.FormatInt(c.profileId, 10),
32036 })
32037 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32038 }
32039
32040
32041
32042
32043
32044
32045
32046
32047 func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
32048 gensupport.SetOptions(c.urlParams_, opts...)
32049 res, err := c.doRequest("json")
32050 if res != nil && res.StatusCode == http.StatusNotModified {
32051 if res.Body != nil {
32052 res.Body.Close()
32053 }
32054 return nil, &googleapi.Error{
32055 Code: res.StatusCode,
32056 Header: res.Header,
32057 }
32058 }
32059 if err != nil {
32060 return nil, err
32061 }
32062 defer googleapi.CloseBody(res)
32063 if err := googleapi.CheckResponse(res); err != nil {
32064 return nil, err
32065 }
32066 ret := &FloodlightActivity{
32067 ServerResponse: googleapi.ServerResponse{
32068 Header: res.Header,
32069 HTTPStatusCode: res.StatusCode,
32070 },
32071 }
32072 target := &ret
32073 if err := gensupport.DecodeResponse(target, res); err != nil {
32074 return nil, err
32075 }
32076 return ret, nil
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105 }
32106
32107
32108
32109 type FloodlightActivityGroupsGetCall struct {
32110 s *Service
32111 profileId int64
32112 id int64
32113 urlParams_ gensupport.URLParams
32114 ifNoneMatch_ string
32115 ctx_ context.Context
32116 header_ http.Header
32117 }
32118
32119
32120 func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall {
32121 c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32122 c.profileId = profileId
32123 c.id = id
32124 return c
32125 }
32126
32127
32128
32129
32130 func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall {
32131 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32132 return c
32133 }
32134
32135
32136
32137
32138
32139
32140 func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall {
32141 c.ifNoneMatch_ = entityTag
32142 return c
32143 }
32144
32145
32146
32147
32148 func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall {
32149 c.ctx_ = ctx
32150 return c
32151 }
32152
32153
32154
32155 func (c *FloodlightActivityGroupsGetCall) Header() http.Header {
32156 if c.header_ == nil {
32157 c.header_ = make(http.Header)
32158 }
32159 return c.header_
32160 }
32161
32162 func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) {
32163 reqHeaders := make(http.Header)
32164 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32165 for k, v := range c.header_ {
32166 reqHeaders[k] = v
32167 }
32168 reqHeaders.Set("User-Agent", c.s.userAgent())
32169 if c.ifNoneMatch_ != "" {
32170 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32171 }
32172 var body io.Reader = nil
32173 c.urlParams_.Set("alt", alt)
32174 c.urlParams_.Set("prettyPrint", "false")
32175 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups/{id}")
32176 urls += "?" + c.urlParams_.Encode()
32177 req, err := http.NewRequest("GET", urls, body)
32178 if err != nil {
32179 return nil, err
32180 }
32181 req.Header = reqHeaders
32182 googleapi.Expand(req.URL, map[string]string{
32183 "profileId": strconv.FormatInt(c.profileId, 10),
32184 "id": strconv.FormatInt(c.id, 10),
32185 })
32186 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32187 }
32188
32189
32190
32191
32192
32193
32194
32195
32196 func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
32197 gensupport.SetOptions(c.urlParams_, opts...)
32198 res, err := c.doRequest("json")
32199 if res != nil && res.StatusCode == http.StatusNotModified {
32200 if res.Body != nil {
32201 res.Body.Close()
32202 }
32203 return nil, &googleapi.Error{
32204 Code: res.StatusCode,
32205 Header: res.Header,
32206 }
32207 }
32208 if err != nil {
32209 return nil, err
32210 }
32211 defer googleapi.CloseBody(res)
32212 if err := googleapi.CheckResponse(res); err != nil {
32213 return nil, err
32214 }
32215 ret := &FloodlightActivityGroup{
32216 ServerResponse: googleapi.ServerResponse{
32217 Header: res.Header,
32218 HTTPStatusCode: res.StatusCode,
32219 },
32220 }
32221 target := &ret
32222 if err := gensupport.DecodeResponse(target, res); err != nil {
32223 return nil, err
32224 }
32225 return ret, nil
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259 }
32260
32261
32262
32263 type FloodlightActivityGroupsInsertCall struct {
32264 s *Service
32265 profileId int64
32266 floodlightactivitygroup *FloodlightActivityGroup
32267 urlParams_ gensupport.URLParams
32268 ctx_ context.Context
32269 header_ http.Header
32270 }
32271
32272
32273 func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall {
32274 c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32275 c.profileId = profileId
32276 c.floodlightactivitygroup = floodlightactivitygroup
32277 return c
32278 }
32279
32280
32281
32282
32283 func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall {
32284 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32285 return c
32286 }
32287
32288
32289
32290
32291 func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall {
32292 c.ctx_ = ctx
32293 return c
32294 }
32295
32296
32297
32298 func (c *FloodlightActivityGroupsInsertCall) Header() http.Header {
32299 if c.header_ == nil {
32300 c.header_ = make(http.Header)
32301 }
32302 return c.header_
32303 }
32304
32305 func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
32306 reqHeaders := make(http.Header)
32307 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32308 for k, v := range c.header_ {
32309 reqHeaders[k] = v
32310 }
32311 reqHeaders.Set("User-Agent", c.s.userAgent())
32312 var body io.Reader = nil
32313 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup)
32314 if err != nil {
32315 return nil, err
32316 }
32317 reqHeaders.Set("Content-Type", "application/json")
32318 c.urlParams_.Set("alt", alt)
32319 c.urlParams_.Set("prettyPrint", "false")
32320 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
32321 urls += "?" + c.urlParams_.Encode()
32322 req, err := http.NewRequest("POST", urls, body)
32323 if err != nil {
32324 return nil, err
32325 }
32326 req.Header = reqHeaders
32327 googleapi.Expand(req.URL, map[string]string{
32328 "profileId": strconv.FormatInt(c.profileId, 10),
32329 })
32330 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32331 }
32332
32333
32334
32335
32336
32337
32338
32339
32340 func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
32341 gensupport.SetOptions(c.urlParams_, opts...)
32342 res, err := c.doRequest("json")
32343 if res != nil && res.StatusCode == http.StatusNotModified {
32344 if res.Body != nil {
32345 res.Body.Close()
32346 }
32347 return nil, &googleapi.Error{
32348 Code: res.StatusCode,
32349 Header: res.Header,
32350 }
32351 }
32352 if err != nil {
32353 return nil, err
32354 }
32355 defer googleapi.CloseBody(res)
32356 if err := googleapi.CheckResponse(res); err != nil {
32357 return nil, err
32358 }
32359 ret := &FloodlightActivityGroup{
32360 ServerResponse: googleapi.ServerResponse{
32361 Header: res.Header,
32362 HTTPStatusCode: res.StatusCode,
32363 },
32364 }
32365 target := &ret
32366 if err := gensupport.DecodeResponse(target, res); err != nil {
32367 return nil, err
32368 }
32369 return ret, nil
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398 }
32399
32400
32401
32402 type FloodlightActivityGroupsListCall struct {
32403 s *Service
32404 profileId int64
32405 urlParams_ gensupport.URLParams
32406 ifNoneMatch_ string
32407 ctx_ context.Context
32408 header_ http.Header
32409 }
32410
32411
32412
32413 func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall {
32414 c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32415 c.profileId = profileId
32416 return c
32417 }
32418
32419
32420
32421
32422
32423 func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall {
32424 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
32425 return c
32426 }
32427
32428
32429
32430
32431
32432 func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall {
32433 c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId))
32434 return c
32435 }
32436
32437
32438
32439
32440 func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall {
32441 var ids_ []string
32442 for _, v := range ids {
32443 ids_ = append(ids_, fmt.Sprint(v))
32444 }
32445 c.urlParams_.SetMulti("ids", ids_)
32446 return c
32447 }
32448
32449
32450
32451 func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall {
32452 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
32453 return c
32454 }
32455
32456
32457
32458 func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *FloodlightActivityGroupsListCall {
32459 c.urlParams_.Set("pageToken", pageToken)
32460 return c
32461 }
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473 func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall {
32474 c.urlParams_.Set("searchString", searchString)
32475 return c
32476 }
32477
32478
32479
32480
32481
32482
32483
32484
32485 func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *FloodlightActivityGroupsListCall {
32486 c.urlParams_.Set("sortField", sortField)
32487 return c
32488 }
32489
32490
32491
32492
32493
32494
32495
32496
32497 func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *FloodlightActivityGroupsListCall {
32498 c.urlParams_.Set("sortOrder", sortOrder)
32499 return c
32500 }
32501
32502
32503
32504
32505
32506
32507
32508
32509 func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivityGroupsListCall {
32510 c.urlParams_.Set("type", type_)
32511 return c
32512 }
32513
32514
32515
32516
32517 func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall {
32518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32519 return c
32520 }
32521
32522
32523
32524
32525
32526
32527 func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall {
32528 c.ifNoneMatch_ = entityTag
32529 return c
32530 }
32531
32532
32533
32534
32535 func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall {
32536 c.ctx_ = ctx
32537 return c
32538 }
32539
32540
32541
32542 func (c *FloodlightActivityGroupsListCall) Header() http.Header {
32543 if c.header_ == nil {
32544 c.header_ = make(http.Header)
32545 }
32546 return c.header_
32547 }
32548
32549 func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) {
32550 reqHeaders := make(http.Header)
32551 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32552 for k, v := range c.header_ {
32553 reqHeaders[k] = v
32554 }
32555 reqHeaders.Set("User-Agent", c.s.userAgent())
32556 if c.ifNoneMatch_ != "" {
32557 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32558 }
32559 var body io.Reader = nil
32560 c.urlParams_.Set("alt", alt)
32561 c.urlParams_.Set("prettyPrint", "false")
32562 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
32563 urls += "?" + c.urlParams_.Encode()
32564 req, err := http.NewRequest("GET", urls, body)
32565 if err != nil {
32566 return nil, err
32567 }
32568 req.Header = reqHeaders
32569 googleapi.Expand(req.URL, map[string]string{
32570 "profileId": strconv.FormatInt(c.profileId, 10),
32571 })
32572 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32573 }
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583 func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) {
32584 gensupport.SetOptions(c.urlParams_, opts...)
32585 res, err := c.doRequest("json")
32586 if res != nil && res.StatusCode == http.StatusNotModified {
32587 if res.Body != nil {
32588 res.Body.Close()
32589 }
32590 return nil, &googleapi.Error{
32591 Code: res.StatusCode,
32592 Header: res.Header,
32593 }
32594 }
32595 if err != nil {
32596 return nil, err
32597 }
32598 defer googleapi.CloseBody(res)
32599 if err := googleapi.CheckResponse(res); err != nil {
32600 return nil, err
32601 }
32602 ret := &FloodlightActivityGroupsListResponse{
32603 ServerResponse: googleapi.ServerResponse{
32604 Header: res.Header,
32605 HTTPStatusCode: res.StatusCode,
32606 },
32607 }
32608 target := &ret
32609 if err := gensupport.DecodeResponse(target, res); err != nil {
32610 return nil, err
32611 }
32612 return ret, nil
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717 }
32718
32719
32720
32721
32722 func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error {
32723 c.ctx_ = ctx
32724 defer c.PageToken(c.urlParams_.Get("pageToken"))
32725 for {
32726 x, err := c.Do()
32727 if err != nil {
32728 return err
32729 }
32730 if err := f(x); err != nil {
32731 return err
32732 }
32733 if x.NextPageToken == "" {
32734 return nil
32735 }
32736 c.PageToken(x.NextPageToken)
32737 }
32738 }
32739
32740
32741
32742 type FloodlightActivityGroupsPatchCall struct {
32743 s *Service
32744 profileId int64
32745 floodlightactivitygroup *FloodlightActivityGroup
32746 urlParams_ gensupport.URLParams
32747 ctx_ context.Context
32748 header_ http.Header
32749 }
32750
32751
32752
32753 func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall {
32754 c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32755 c.profileId = profileId
32756 c.urlParams_.Set("id", fmt.Sprint(id))
32757 c.floodlightactivitygroup = floodlightactivitygroup
32758 return c
32759 }
32760
32761
32762
32763
32764 func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall {
32765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32766 return c
32767 }
32768
32769
32770
32771
32772 func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall {
32773 c.ctx_ = ctx
32774 return c
32775 }
32776
32777
32778
32779 func (c *FloodlightActivityGroupsPatchCall) Header() http.Header {
32780 if c.header_ == nil {
32781 c.header_ = make(http.Header)
32782 }
32783 return c.header_
32784 }
32785
32786 func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
32787 reqHeaders := make(http.Header)
32788 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32789 for k, v := range c.header_ {
32790 reqHeaders[k] = v
32791 }
32792 reqHeaders.Set("User-Agent", c.s.userAgent())
32793 var body io.Reader = nil
32794 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup)
32795 if err != nil {
32796 return nil, err
32797 }
32798 reqHeaders.Set("Content-Type", "application/json")
32799 c.urlParams_.Set("alt", alt)
32800 c.urlParams_.Set("prettyPrint", "false")
32801 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
32802 urls += "?" + c.urlParams_.Encode()
32803 req, err := http.NewRequest("PATCH", urls, body)
32804 if err != nil {
32805 return nil, err
32806 }
32807 req.Header = reqHeaders
32808 googleapi.Expand(req.URL, map[string]string{
32809 "profileId": strconv.FormatInt(c.profileId, 10),
32810 })
32811 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32812 }
32813
32814
32815
32816
32817
32818
32819
32820
32821 func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
32822 gensupport.SetOptions(c.urlParams_, opts...)
32823 res, err := c.doRequest("json")
32824 if res != nil && res.StatusCode == http.StatusNotModified {
32825 if res.Body != nil {
32826 res.Body.Close()
32827 }
32828 return nil, &googleapi.Error{
32829 Code: res.StatusCode,
32830 Header: res.Header,
32831 }
32832 }
32833 if err != nil {
32834 return nil, err
32835 }
32836 defer googleapi.CloseBody(res)
32837 if err := googleapi.CheckResponse(res); err != nil {
32838 return nil, err
32839 }
32840 ret := &FloodlightActivityGroup{
32841 ServerResponse: googleapi.ServerResponse{
32842 Header: res.Header,
32843 HTTPStatusCode: res.StatusCode,
32844 },
32845 }
32846 target := &ret
32847 if err := gensupport.DecodeResponse(target, res); err != nil {
32848 return nil, err
32849 }
32850 return ret, nil
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887 }
32888
32889
32890
32891 type FloodlightActivityGroupsUpdateCall struct {
32892 s *Service
32893 profileId int64
32894 floodlightactivitygroup *FloodlightActivityGroup
32895 urlParams_ gensupport.URLParams
32896 ctx_ context.Context
32897 header_ http.Header
32898 }
32899
32900
32901 func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall {
32902 c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32903 c.profileId = profileId
32904 c.floodlightactivitygroup = floodlightactivitygroup
32905 return c
32906 }
32907
32908
32909
32910
32911 func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall {
32912 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32913 return c
32914 }
32915
32916
32917
32918
32919 func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall {
32920 c.ctx_ = ctx
32921 return c
32922 }
32923
32924
32925
32926 func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header {
32927 if c.header_ == nil {
32928 c.header_ = make(http.Header)
32929 }
32930 return c.header_
32931 }
32932
32933 func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
32934 reqHeaders := make(http.Header)
32935 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32936 for k, v := range c.header_ {
32937 reqHeaders[k] = v
32938 }
32939 reqHeaders.Set("User-Agent", c.s.userAgent())
32940 var body io.Reader = nil
32941 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup)
32942 if err != nil {
32943 return nil, err
32944 }
32945 reqHeaders.Set("Content-Type", "application/json")
32946 c.urlParams_.Set("alt", alt)
32947 c.urlParams_.Set("prettyPrint", "false")
32948 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
32949 urls += "?" + c.urlParams_.Encode()
32950 req, err := http.NewRequest("PUT", urls, body)
32951 if err != nil {
32952 return nil, err
32953 }
32954 req.Header = reqHeaders
32955 googleapi.Expand(req.URL, map[string]string{
32956 "profileId": strconv.FormatInt(c.profileId, 10),
32957 })
32958 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32959 }
32960
32961
32962
32963
32964
32965
32966
32967
32968 func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
32969 gensupport.SetOptions(c.urlParams_, opts...)
32970 res, err := c.doRequest("json")
32971 if res != nil && res.StatusCode == http.StatusNotModified {
32972 if res.Body != nil {
32973 res.Body.Close()
32974 }
32975 return nil, &googleapi.Error{
32976 Code: res.StatusCode,
32977 Header: res.Header,
32978 }
32979 }
32980 if err != nil {
32981 return nil, err
32982 }
32983 defer googleapi.CloseBody(res)
32984 if err := googleapi.CheckResponse(res); err != nil {
32985 return nil, err
32986 }
32987 ret := &FloodlightActivityGroup{
32988 ServerResponse: googleapi.ServerResponse{
32989 Header: res.Header,
32990 HTTPStatusCode: res.StatusCode,
32991 },
32992 }
32993 target := &ret
32994 if err := gensupport.DecodeResponse(target, res); err != nil {
32995 return nil, err
32996 }
32997 return ret, nil
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026 }
33027
33028
33029
33030 type FloodlightConfigurationsGetCall struct {
33031 s *Service
33032 profileId int64
33033 id int64
33034 urlParams_ gensupport.URLParams
33035 ifNoneMatch_ string
33036 ctx_ context.Context
33037 header_ http.Header
33038 }
33039
33040
33041 func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall {
33042 c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33043 c.profileId = profileId
33044 c.id = id
33045 return c
33046 }
33047
33048
33049
33050
33051 func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall {
33052 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33053 return c
33054 }
33055
33056
33057
33058
33059
33060
33061 func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall {
33062 c.ifNoneMatch_ = entityTag
33063 return c
33064 }
33065
33066
33067
33068
33069 func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall {
33070 c.ctx_ = ctx
33071 return c
33072 }
33073
33074
33075
33076 func (c *FloodlightConfigurationsGetCall) Header() http.Header {
33077 if c.header_ == nil {
33078 c.header_ = make(http.Header)
33079 }
33080 return c.header_
33081 }
33082
33083 func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
33084 reqHeaders := make(http.Header)
33085 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
33086 for k, v := range c.header_ {
33087 reqHeaders[k] = v
33088 }
33089 reqHeaders.Set("User-Agent", c.s.userAgent())
33090 if c.ifNoneMatch_ != "" {
33091 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33092 }
33093 var body io.Reader = nil
33094 c.urlParams_.Set("alt", alt)
33095 c.urlParams_.Set("prettyPrint", "false")
33096 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations/{id}")
33097 urls += "?" + c.urlParams_.Encode()
33098 req, err := http.NewRequest("GET", urls, body)
33099 if err != nil {
33100 return nil, err
33101 }
33102 req.Header = reqHeaders
33103 googleapi.Expand(req.URL, map[string]string{
33104 "profileId": strconv.FormatInt(c.profileId, 10),
33105 "id": strconv.FormatInt(c.id, 10),
33106 })
33107 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33108 }
33109
33110
33111
33112
33113
33114
33115
33116
33117 func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) {
33118 gensupport.SetOptions(c.urlParams_, opts...)
33119 res, err := c.doRequest("json")
33120 if res != nil && res.StatusCode == http.StatusNotModified {
33121 if res.Body != nil {
33122 res.Body.Close()
33123 }
33124 return nil, &googleapi.Error{
33125 Code: res.StatusCode,
33126 Header: res.Header,
33127 }
33128 }
33129 if err != nil {
33130 return nil, err
33131 }
33132 defer googleapi.CloseBody(res)
33133 if err := googleapi.CheckResponse(res); err != nil {
33134 return nil, err
33135 }
33136 ret := &FloodlightConfiguration{
33137 ServerResponse: googleapi.ServerResponse{
33138 Header: res.Header,
33139 HTTPStatusCode: res.StatusCode,
33140 },
33141 }
33142 target := &ret
33143 if err := gensupport.DecodeResponse(target, res); err != nil {
33144 return nil, err
33145 }
33146 return ret, nil
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180 }
33181
33182
33183
33184 type FloodlightConfigurationsListCall struct {
33185 s *Service
33186 profileId int64
33187 urlParams_ gensupport.URLParams
33188 ifNoneMatch_ string
33189 ctx_ context.Context
33190 header_ http.Header
33191 }
33192
33193
33194
33195 func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall {
33196 c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33197 c.profileId = profileId
33198 return c
33199 }
33200
33201
33202
33203
33204 func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall {
33205 var ids_ []string
33206 for _, v := range ids {
33207 ids_ = append(ids_, fmt.Sprint(v))
33208 }
33209 c.urlParams_.SetMulti("ids", ids_)
33210 return c
33211 }
33212
33213
33214
33215
33216 func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall {
33217 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33218 return c
33219 }
33220
33221
33222
33223
33224
33225
33226 func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall {
33227 c.ifNoneMatch_ = entityTag
33228 return c
33229 }
33230
33231
33232
33233
33234 func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall {
33235 c.ctx_ = ctx
33236 return c
33237 }
33238
33239
33240
33241 func (c *FloodlightConfigurationsListCall) Header() http.Header {
33242 if c.header_ == nil {
33243 c.header_ = make(http.Header)
33244 }
33245 return c.header_
33246 }
33247
33248 func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
33249 reqHeaders := make(http.Header)
33250 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
33251 for k, v := range c.header_ {
33252 reqHeaders[k] = v
33253 }
33254 reqHeaders.Set("User-Agent", c.s.userAgent())
33255 if c.ifNoneMatch_ != "" {
33256 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33257 }
33258 var body io.Reader = nil
33259 c.urlParams_.Set("alt", alt)
33260 c.urlParams_.Set("prettyPrint", "false")
33261 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations")
33262 urls += "?" + c.urlParams_.Encode()
33263 req, err := http.NewRequest("GET", urls, body)
33264 if err != nil {
33265 return nil, err
33266 }
33267 req.Header = reqHeaders
33268 googleapi.Expand(req.URL, map[string]string{
33269 "profileId": strconv.FormatInt(c.profileId, 10),
33270 })
33271 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33272 }
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282 func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) {
33283 gensupport.SetOptions(c.urlParams_, opts...)
33284 res, err := c.doRequest("json")
33285 if res != nil && res.StatusCode == http.StatusNotModified {
33286 if res.Body != nil {
33287 res.Body.Close()
33288 }
33289 return nil, &googleapi.Error{
33290 Code: res.StatusCode,
33291 Header: res.Header,
33292 }
33293 }
33294 if err != nil {
33295 return nil, err
33296 }
33297 defer googleapi.CloseBody(res)
33298 if err := googleapi.CheckResponse(res); err != nil {
33299 return nil, err
33300 }
33301 ret := &FloodlightConfigurationsListResponse{
33302 ServerResponse: googleapi.ServerResponse{
33303 Header: res.Header,
33304 HTTPStatusCode: res.StatusCode,
33305 },
33306 }
33307 target := &ret
33308 if err := gensupport.DecodeResponse(target, res); err != nil {
33309 return nil, err
33310 }
33311 return ret, nil
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344 }
33345
33346
33347
33348 type FloodlightConfigurationsPatchCall struct {
33349 s *Service
33350 profileId int64
33351 floodlightconfiguration *FloodlightConfiguration
33352 urlParams_ gensupport.URLParams
33353 ctx_ context.Context
33354 header_ http.Header
33355 }
33356
33357
33358
33359 func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall {
33360 c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33361 c.profileId = profileId
33362 c.urlParams_.Set("id", fmt.Sprint(id))
33363 c.floodlightconfiguration = floodlightconfiguration
33364 return c
33365 }
33366
33367
33368
33369
33370 func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall {
33371 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33372 return c
33373 }
33374
33375
33376
33377
33378 func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall {
33379 c.ctx_ = ctx
33380 return c
33381 }
33382
33383
33384
33385 func (c *FloodlightConfigurationsPatchCall) Header() http.Header {
33386 if c.header_ == nil {
33387 c.header_ = make(http.Header)
33388 }
33389 return c.header_
33390 }
33391
33392 func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) {
33393 reqHeaders := make(http.Header)
33394 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
33395 for k, v := range c.header_ {
33396 reqHeaders[k] = v
33397 }
33398 reqHeaders.Set("User-Agent", c.s.userAgent())
33399 var body io.Reader = nil
33400 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration)
33401 if err != nil {
33402 return nil, err
33403 }
33404 reqHeaders.Set("Content-Type", "application/json")
33405 c.urlParams_.Set("alt", alt)
33406 c.urlParams_.Set("prettyPrint", "false")
33407 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations")
33408 urls += "?" + c.urlParams_.Encode()
33409 req, err := http.NewRequest("PATCH", urls, body)
33410 if err != nil {
33411 return nil, err
33412 }
33413 req.Header = reqHeaders
33414 googleapi.Expand(req.URL, map[string]string{
33415 "profileId": strconv.FormatInt(c.profileId, 10),
33416 })
33417 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33418 }
33419
33420
33421
33422
33423
33424
33425
33426
33427 func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) {
33428 gensupport.SetOptions(c.urlParams_, opts...)
33429 res, err := c.doRequest("json")
33430 if res != nil && res.StatusCode == http.StatusNotModified {
33431 if res.Body != nil {
33432 res.Body.Close()
33433 }
33434 return nil, &googleapi.Error{
33435 Code: res.StatusCode,
33436 Header: res.Header,
33437 }
33438 }
33439 if err != nil {
33440 return nil, err
33441 }
33442 defer googleapi.CloseBody(res)
33443 if err := googleapi.CheckResponse(res); err != nil {
33444 return nil, err
33445 }
33446 ret := &FloodlightConfiguration{
33447 ServerResponse: googleapi.ServerResponse{
33448 Header: res.Header,
33449 HTTPStatusCode: res.StatusCode,
33450 },
33451 }
33452 target := &ret
33453 if err := gensupport.DecodeResponse(target, res); err != nil {
33454 return nil, err
33455 }
33456 return ret, nil
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493 }
33494
33495
33496
33497 type FloodlightConfigurationsUpdateCall struct {
33498 s *Service
33499 profileId int64
33500 floodlightconfiguration *FloodlightConfiguration
33501 urlParams_ gensupport.URLParams
33502 ctx_ context.Context
33503 header_ http.Header
33504 }
33505
33506
33507 func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall {
33508 c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33509 c.profileId = profileId
33510 c.floodlightconfiguration = floodlightconfiguration
33511 return c
33512 }
33513
33514
33515
33516
33517 func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall {
33518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33519 return c
33520 }
33521
33522
33523
33524
33525 func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall {
33526 c.ctx_ = ctx
33527 return c
33528 }
33529
33530
33531
33532 func (c *FloodlightConfigurationsUpdateCall) Header() http.Header {
33533 if c.header_ == nil {
33534 c.header_ = make(http.Header)
33535 }
33536 return c.header_
33537 }
33538
33539 func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) {
33540 reqHeaders := make(http.Header)
33541 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
33542 for k, v := range c.header_ {
33543 reqHeaders[k] = v
33544 }
33545 reqHeaders.Set("User-Agent", c.s.userAgent())
33546 var body io.Reader = nil
33547 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration)
33548 if err != nil {
33549 return nil, err
33550 }
33551 reqHeaders.Set("Content-Type", "application/json")
33552 c.urlParams_.Set("alt", alt)
33553 c.urlParams_.Set("prettyPrint", "false")
33554 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations")
33555 urls += "?" + c.urlParams_.Encode()
33556 req, err := http.NewRequest("PUT", urls, body)
33557 if err != nil {
33558 return nil, err
33559 }
33560 req.Header = reqHeaders
33561 googleapi.Expand(req.URL, map[string]string{
33562 "profileId": strconv.FormatInt(c.profileId, 10),
33563 })
33564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33565 }
33566
33567
33568
33569
33570
33571
33572
33573
33574 func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) {
33575 gensupport.SetOptions(c.urlParams_, opts...)
33576 res, err := c.doRequest("json")
33577 if res != nil && res.StatusCode == http.StatusNotModified {
33578 if res.Body != nil {
33579 res.Body.Close()
33580 }
33581 return nil, &googleapi.Error{
33582 Code: res.StatusCode,
33583 Header: res.Header,
33584 }
33585 }
33586 if err != nil {
33587 return nil, err
33588 }
33589 defer googleapi.CloseBody(res)
33590 if err := googleapi.CheckResponse(res); err != nil {
33591 return nil, err
33592 }
33593 ret := &FloodlightConfiguration{
33594 ServerResponse: googleapi.ServerResponse{
33595 Header: res.Header,
33596 HTTPStatusCode: res.StatusCode,
33597 },
33598 }
33599 target := &ret
33600 if err := gensupport.DecodeResponse(target, res); err != nil {
33601 return nil, err
33602 }
33603 return ret, nil
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632 }
33633
33634
33635
33636 type InventoryItemsGetCall struct {
33637 s *Service
33638 profileId int64
33639 projectId int64
33640 id int64
33641 urlParams_ gensupport.URLParams
33642 ifNoneMatch_ string
33643 ctx_ context.Context
33644 header_ http.Header
33645 }
33646
33647
33648 func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall {
33649 c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33650 c.profileId = profileId
33651 c.projectId = projectId
33652 c.id = id
33653 return c
33654 }
33655
33656
33657
33658
33659 func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall {
33660 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33661 return c
33662 }
33663
33664
33665
33666
33667
33668
33669 func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall {
33670 c.ifNoneMatch_ = entityTag
33671 return c
33672 }
33673
33674
33675
33676
33677 func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall {
33678 c.ctx_ = ctx
33679 return c
33680 }
33681
33682
33683
33684 func (c *InventoryItemsGetCall) Header() http.Header {
33685 if c.header_ == nil {
33686 c.header_ = make(http.Header)
33687 }
33688 return c.header_
33689 }
33690
33691 func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) {
33692 reqHeaders := make(http.Header)
33693 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
33694 for k, v := range c.header_ {
33695 reqHeaders[k] = v
33696 }
33697 reqHeaders.Set("User-Agent", c.s.userAgent())
33698 if c.ifNoneMatch_ != "" {
33699 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33700 }
33701 var body io.Reader = nil
33702 c.urlParams_.Set("alt", alt)
33703 c.urlParams_.Set("prettyPrint", "false")
33704 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}")
33705 urls += "?" + c.urlParams_.Encode()
33706 req, err := http.NewRequest("GET", urls, body)
33707 if err != nil {
33708 return nil, err
33709 }
33710 req.Header = reqHeaders
33711 googleapi.Expand(req.URL, map[string]string{
33712 "profileId": strconv.FormatInt(c.profileId, 10),
33713 "projectId": strconv.FormatInt(c.projectId, 10),
33714 "id": strconv.FormatInt(c.id, 10),
33715 })
33716 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33717 }
33718
33719
33720
33721
33722
33723
33724
33725
33726 func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) {
33727 gensupport.SetOptions(c.urlParams_, opts...)
33728 res, err := c.doRequest("json")
33729 if res != nil && res.StatusCode == http.StatusNotModified {
33730 if res.Body != nil {
33731 res.Body.Close()
33732 }
33733 return nil, &googleapi.Error{
33734 Code: res.StatusCode,
33735 Header: res.Header,
33736 }
33737 }
33738 if err != nil {
33739 return nil, err
33740 }
33741 defer googleapi.CloseBody(res)
33742 if err := googleapi.CheckResponse(res); err != nil {
33743 return nil, err
33744 }
33745 ret := &InventoryItem{
33746 ServerResponse: googleapi.ServerResponse{
33747 Header: res.Header,
33748 HTTPStatusCode: res.StatusCode,
33749 },
33750 }
33751 target := &ret
33752 if err := gensupport.DecodeResponse(target, res); err != nil {
33753 return nil, err
33754 }
33755 return ret, nil
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797 }
33798
33799
33800
33801 type InventoryItemsListCall struct {
33802 s *Service
33803 profileId int64
33804 projectId int64
33805 urlParams_ gensupport.URLParams
33806 ifNoneMatch_ string
33807 ctx_ context.Context
33808 header_ http.Header
33809 }
33810
33811
33812
33813 func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall {
33814 c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33815 c.profileId = profileId
33816 c.projectId = projectId
33817 return c
33818 }
33819
33820
33821
33822 func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall {
33823 var ids_ []string
33824 for _, v := range ids {
33825 ids_ = append(ids_, fmt.Sprint(v))
33826 }
33827 c.urlParams_.SetMulti("ids", ids_)
33828 return c
33829 }
33830
33831
33832
33833 func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall {
33834 c.urlParams_.Set("inPlan", fmt.Sprint(inPlan))
33835 return c
33836 }
33837
33838
33839
33840 func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall {
33841 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
33842 return c
33843 }
33844
33845
33846
33847 func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall {
33848 var orderId_ []string
33849 for _, v := range orderId {
33850 orderId_ = append(orderId_, fmt.Sprint(v))
33851 }
33852 c.urlParams_.SetMulti("orderId", orderId_)
33853 return c
33854 }
33855
33856
33857
33858 func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsListCall {
33859 c.urlParams_.Set("pageToken", pageToken)
33860 return c
33861 }
33862
33863
33864
33865 func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall {
33866 var siteId_ []string
33867 for _, v := range siteId {
33868 siteId_ = append(siteId_, fmt.Sprint(v))
33869 }
33870 c.urlParams_.SetMulti("siteId", siteId_)
33871 return c
33872 }
33873
33874
33875
33876
33877
33878
33879
33880
33881 func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsListCall {
33882 c.urlParams_.Set("sortField", sortField)
33883 return c
33884 }
33885
33886
33887
33888
33889
33890
33891
33892
33893 func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsListCall {
33894 c.urlParams_.Set("sortOrder", sortOrder)
33895 return c
33896 }
33897
33898
33899
33900
33901
33902
33903
33904
33905 func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall {
33906 c.urlParams_.Set("type", type_)
33907 return c
33908 }
33909
33910
33911
33912
33913 func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall {
33914 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33915 return c
33916 }
33917
33918
33919
33920
33921
33922
33923 func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall {
33924 c.ifNoneMatch_ = entityTag
33925 return c
33926 }
33927
33928
33929
33930
33931 func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall {
33932 c.ctx_ = ctx
33933 return c
33934 }
33935
33936
33937
33938 func (c *InventoryItemsListCall) Header() http.Header {
33939 if c.header_ == nil {
33940 c.header_ = make(http.Header)
33941 }
33942 return c.header_
33943 }
33944
33945 func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) {
33946 reqHeaders := make(http.Header)
33947 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
33948 for k, v := range c.header_ {
33949 reqHeaders[k] = v
33950 }
33951 reqHeaders.Set("User-Agent", c.s.userAgent())
33952 if c.ifNoneMatch_ != "" {
33953 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33954 }
33955 var body io.Reader = nil
33956 c.urlParams_.Set("alt", alt)
33957 c.urlParams_.Set("prettyPrint", "false")
33958 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems")
33959 urls += "?" + c.urlParams_.Encode()
33960 req, err := http.NewRequest("GET", urls, body)
33961 if err != nil {
33962 return nil, err
33963 }
33964 req.Header = reqHeaders
33965 googleapi.Expand(req.URL, map[string]string{
33966 "profileId": strconv.FormatInt(c.profileId, 10),
33967 "projectId": strconv.FormatInt(c.projectId, 10),
33968 })
33969 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33970 }
33971
33972
33973
33974
33975
33976
33977
33978
33979 func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) {
33980 gensupport.SetOptions(c.urlParams_, opts...)
33981 res, err := c.doRequest("json")
33982 if res != nil && res.StatusCode == http.StatusNotModified {
33983 if res.Body != nil {
33984 res.Body.Close()
33985 }
33986 return nil, &googleapi.Error{
33987 Code: res.StatusCode,
33988 Header: res.Header,
33989 }
33990 }
33991 if err != nil {
33992 return nil, err
33993 }
33994 defer googleapi.CloseBody(res)
33995 if err := googleapi.CheckResponse(res); err != nil {
33996 return nil, err
33997 }
33998 ret := &InventoryItemsListResponse{
33999 ServerResponse: googleapi.ServerResponse{
34000 Header: res.Header,
34001 HTTPStatusCode: res.StatusCode,
34002 },
34003 }
34004 target := &ret
34005 if err := gensupport.DecodeResponse(target, res); err != nil {
34006 return nil, err
34007 }
34008 return ret, nil
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123 }
34124
34125
34126
34127
34128 func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error {
34129 c.ctx_ = ctx
34130 defer c.PageToken(c.urlParams_.Get("pageToken"))
34131 for {
34132 x, err := c.Do()
34133 if err != nil {
34134 return err
34135 }
34136 if err := f(x); err != nil {
34137 return err
34138 }
34139 if x.NextPageToken == "" {
34140 return nil
34141 }
34142 c.PageToken(x.NextPageToken)
34143 }
34144 }
34145
34146
34147
34148 type LandingPagesDeleteCall struct {
34149 s *Service
34150 profileId int64
34151 campaignId int64
34152 id int64
34153 urlParams_ gensupport.URLParams
34154 ctx_ context.Context
34155 header_ http.Header
34156 }
34157
34158
34159 func (r *LandingPagesService) Delete(profileId int64, campaignId int64, id int64) *LandingPagesDeleteCall {
34160 c := &LandingPagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34161 c.profileId = profileId
34162 c.campaignId = campaignId
34163 c.id = id
34164 return c
34165 }
34166
34167
34168
34169
34170 func (c *LandingPagesDeleteCall) Fields(s ...googleapi.Field) *LandingPagesDeleteCall {
34171 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34172 return c
34173 }
34174
34175
34176
34177
34178 func (c *LandingPagesDeleteCall) Context(ctx context.Context) *LandingPagesDeleteCall {
34179 c.ctx_ = ctx
34180 return c
34181 }
34182
34183
34184
34185 func (c *LandingPagesDeleteCall) Header() http.Header {
34186 if c.header_ == nil {
34187 c.header_ = make(http.Header)
34188 }
34189 return c.header_
34190 }
34191
34192 func (c *LandingPagesDeleteCall) doRequest(alt string) (*http.Response, error) {
34193 reqHeaders := make(http.Header)
34194 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
34195 for k, v := range c.header_ {
34196 reqHeaders[k] = v
34197 }
34198 reqHeaders.Set("User-Agent", c.s.userAgent())
34199 var body io.Reader = nil
34200 c.urlParams_.Set("alt", alt)
34201 c.urlParams_.Set("prettyPrint", "false")
34202 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}")
34203 urls += "?" + c.urlParams_.Encode()
34204 req, err := http.NewRequest("DELETE", urls, body)
34205 if err != nil {
34206 return nil, err
34207 }
34208 req.Header = reqHeaders
34209 googleapi.Expand(req.URL, map[string]string{
34210 "profileId": strconv.FormatInt(c.profileId, 10),
34211 "campaignId": strconv.FormatInt(c.campaignId, 10),
34212 "id": strconv.FormatInt(c.id, 10),
34213 })
34214 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34215 }
34216
34217
34218 func (c *LandingPagesDeleteCall) Do(opts ...googleapi.CallOption) error {
34219 gensupport.SetOptions(c.urlParams_, opts...)
34220 res, err := c.doRequest("json")
34221 if err != nil {
34222 return err
34223 }
34224 defer googleapi.CloseBody(res)
34225 if err := googleapi.CheckResponse(res); err != nil {
34226 return err
34227 }
34228 return nil
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267 }
34268
34269
34270
34271 type LandingPagesGetCall struct {
34272 s *Service
34273 profileId int64
34274 campaignId int64
34275 id int64
34276 urlParams_ gensupport.URLParams
34277 ifNoneMatch_ string
34278 ctx_ context.Context
34279 header_ http.Header
34280 }
34281
34282
34283 func (r *LandingPagesService) Get(profileId int64, campaignId int64, id int64) *LandingPagesGetCall {
34284 c := &LandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34285 c.profileId = profileId
34286 c.campaignId = campaignId
34287 c.id = id
34288 return c
34289 }
34290
34291
34292
34293
34294 func (c *LandingPagesGetCall) Fields(s ...googleapi.Field) *LandingPagesGetCall {
34295 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34296 return c
34297 }
34298
34299
34300
34301
34302
34303
34304 func (c *LandingPagesGetCall) IfNoneMatch(entityTag string) *LandingPagesGetCall {
34305 c.ifNoneMatch_ = entityTag
34306 return c
34307 }
34308
34309
34310
34311
34312 func (c *LandingPagesGetCall) Context(ctx context.Context) *LandingPagesGetCall {
34313 c.ctx_ = ctx
34314 return c
34315 }
34316
34317
34318
34319 func (c *LandingPagesGetCall) Header() http.Header {
34320 if c.header_ == nil {
34321 c.header_ = make(http.Header)
34322 }
34323 return c.header_
34324 }
34325
34326 func (c *LandingPagesGetCall) doRequest(alt string) (*http.Response, error) {
34327 reqHeaders := make(http.Header)
34328 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
34329 for k, v := range c.header_ {
34330 reqHeaders[k] = v
34331 }
34332 reqHeaders.Set("User-Agent", c.s.userAgent())
34333 if c.ifNoneMatch_ != "" {
34334 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34335 }
34336 var body io.Reader = nil
34337 c.urlParams_.Set("alt", alt)
34338 c.urlParams_.Set("prettyPrint", "false")
34339 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}")
34340 urls += "?" + c.urlParams_.Encode()
34341 req, err := http.NewRequest("GET", urls, body)
34342 if err != nil {
34343 return nil, err
34344 }
34345 req.Header = reqHeaders
34346 googleapi.Expand(req.URL, map[string]string{
34347 "profileId": strconv.FormatInt(c.profileId, 10),
34348 "campaignId": strconv.FormatInt(c.campaignId, 10),
34349 "id": strconv.FormatInt(c.id, 10),
34350 })
34351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34352 }
34353
34354
34355
34356
34357
34358
34359
34360
34361 func (c *LandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
34362 gensupport.SetOptions(c.urlParams_, opts...)
34363 res, err := c.doRequest("json")
34364 if res != nil && res.StatusCode == http.StatusNotModified {
34365 if res.Body != nil {
34366 res.Body.Close()
34367 }
34368 return nil, &googleapi.Error{
34369 Code: res.StatusCode,
34370 Header: res.Header,
34371 }
34372 }
34373 if err != nil {
34374 return nil, err
34375 }
34376 defer googleapi.CloseBody(res)
34377 if err := googleapi.CheckResponse(res); err != nil {
34378 return nil, err
34379 }
34380 ret := &LandingPage{
34381 ServerResponse: googleapi.ServerResponse{
34382 Header: res.Header,
34383 HTTPStatusCode: res.StatusCode,
34384 },
34385 }
34386 target := &ret
34387 if err := gensupport.DecodeResponse(target, res); err != nil {
34388 return nil, err
34389 }
34390 return ret, nil
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432 }
34433
34434
34435
34436 type LandingPagesInsertCall struct {
34437 s *Service
34438 profileId int64
34439 campaignId int64
34440 landingpage *LandingPage
34441 urlParams_ gensupport.URLParams
34442 ctx_ context.Context
34443 header_ http.Header
34444 }
34445
34446
34447 func (r *LandingPagesService) Insert(profileId int64, campaignId int64, landingpage *LandingPage) *LandingPagesInsertCall {
34448 c := &LandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34449 c.profileId = profileId
34450 c.campaignId = campaignId
34451 c.landingpage = landingpage
34452 return c
34453 }
34454
34455
34456
34457
34458 func (c *LandingPagesInsertCall) Fields(s ...googleapi.Field) *LandingPagesInsertCall {
34459 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34460 return c
34461 }
34462
34463
34464
34465
34466 func (c *LandingPagesInsertCall) Context(ctx context.Context) *LandingPagesInsertCall {
34467 c.ctx_ = ctx
34468 return c
34469 }
34470
34471
34472
34473 func (c *LandingPagesInsertCall) Header() http.Header {
34474 if c.header_ == nil {
34475 c.header_ = make(http.Header)
34476 }
34477 return c.header_
34478 }
34479
34480 func (c *LandingPagesInsertCall) doRequest(alt string) (*http.Response, error) {
34481 reqHeaders := make(http.Header)
34482 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
34483 for k, v := range c.header_ {
34484 reqHeaders[k] = v
34485 }
34486 reqHeaders.Set("User-Agent", c.s.userAgent())
34487 var body io.Reader = nil
34488 body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage)
34489 if err != nil {
34490 return nil, err
34491 }
34492 reqHeaders.Set("Content-Type", "application/json")
34493 c.urlParams_.Set("alt", alt)
34494 c.urlParams_.Set("prettyPrint", "false")
34495 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages")
34496 urls += "?" + c.urlParams_.Encode()
34497 req, err := http.NewRequest("POST", urls, body)
34498 if err != nil {
34499 return nil, err
34500 }
34501 req.Header = reqHeaders
34502 googleapi.Expand(req.URL, map[string]string{
34503 "profileId": strconv.FormatInt(c.profileId, 10),
34504 "campaignId": strconv.FormatInt(c.campaignId, 10),
34505 })
34506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34507 }
34508
34509
34510
34511
34512
34513
34514
34515
34516 func (c *LandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
34517 gensupport.SetOptions(c.urlParams_, opts...)
34518 res, err := c.doRequest("json")
34519 if res != nil && res.StatusCode == http.StatusNotModified {
34520 if res.Body != nil {
34521 res.Body.Close()
34522 }
34523 return nil, &googleapi.Error{
34524 Code: res.StatusCode,
34525 Header: res.Header,
34526 }
34527 }
34528 if err != nil {
34529 return nil, err
34530 }
34531 defer googleapi.CloseBody(res)
34532 if err := googleapi.CheckResponse(res); err != nil {
34533 return nil, err
34534 }
34535 ret := &LandingPage{
34536 ServerResponse: googleapi.ServerResponse{
34537 Header: res.Header,
34538 HTTPStatusCode: res.StatusCode,
34539 },
34540 }
34541 target := &ret
34542 if err := gensupport.DecodeResponse(target, res); err != nil {
34543 return nil, err
34544 }
34545 return ret, nil
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582 }
34583
34584
34585
34586 type LandingPagesListCall struct {
34587 s *Service
34588 profileId int64
34589 campaignId int64
34590 urlParams_ gensupport.URLParams
34591 ifNoneMatch_ string
34592 ctx_ context.Context
34593 header_ http.Header
34594 }
34595
34596
34597 func (r *LandingPagesService) List(profileId int64, campaignId int64) *LandingPagesListCall {
34598 c := &LandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34599 c.profileId = profileId
34600 c.campaignId = campaignId
34601 return c
34602 }
34603
34604
34605
34606
34607 func (c *LandingPagesListCall) Fields(s ...googleapi.Field) *LandingPagesListCall {
34608 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34609 return c
34610 }
34611
34612
34613
34614
34615
34616
34617 func (c *LandingPagesListCall) IfNoneMatch(entityTag string) *LandingPagesListCall {
34618 c.ifNoneMatch_ = entityTag
34619 return c
34620 }
34621
34622
34623
34624
34625 func (c *LandingPagesListCall) Context(ctx context.Context) *LandingPagesListCall {
34626 c.ctx_ = ctx
34627 return c
34628 }
34629
34630
34631
34632 func (c *LandingPagesListCall) Header() http.Header {
34633 if c.header_ == nil {
34634 c.header_ = make(http.Header)
34635 }
34636 return c.header_
34637 }
34638
34639 func (c *LandingPagesListCall) doRequest(alt string) (*http.Response, error) {
34640 reqHeaders := make(http.Header)
34641 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
34642 for k, v := range c.header_ {
34643 reqHeaders[k] = v
34644 }
34645 reqHeaders.Set("User-Agent", c.s.userAgent())
34646 if c.ifNoneMatch_ != "" {
34647 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34648 }
34649 var body io.Reader = nil
34650 c.urlParams_.Set("alt", alt)
34651 c.urlParams_.Set("prettyPrint", "false")
34652 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages")
34653 urls += "?" + c.urlParams_.Encode()
34654 req, err := http.NewRequest("GET", urls, body)
34655 if err != nil {
34656 return nil, err
34657 }
34658 req.Header = reqHeaders
34659 googleapi.Expand(req.URL, map[string]string{
34660 "profileId": strconv.FormatInt(c.profileId, 10),
34661 "campaignId": strconv.FormatInt(c.campaignId, 10),
34662 })
34663 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34664 }
34665
34666
34667
34668
34669
34670
34671
34672
34673 func (c *LandingPagesListCall) Do(opts ...googleapi.CallOption) (*LandingPagesListResponse, error) {
34674 gensupport.SetOptions(c.urlParams_, opts...)
34675 res, err := c.doRequest("json")
34676 if res != nil && res.StatusCode == http.StatusNotModified {
34677 if res.Body != nil {
34678 res.Body.Close()
34679 }
34680 return nil, &googleapi.Error{
34681 Code: res.StatusCode,
34682 Header: res.Header,
34683 }
34684 }
34685 if err != nil {
34686 return nil, err
34687 }
34688 defer googleapi.CloseBody(res)
34689 if err := googleapi.CheckResponse(res); err != nil {
34690 return nil, err
34691 }
34692 ret := &LandingPagesListResponse{
34693 ServerResponse: googleapi.ServerResponse{
34694 Header: res.Header,
34695 HTTPStatusCode: res.StatusCode,
34696 },
34697 }
34698 target := &ret
34699 if err := gensupport.DecodeResponse(target, res); err != nil {
34700 return nil, err
34701 }
34702 return ret, nil
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736 }
34737
34738
34739
34740 type LandingPagesPatchCall struct {
34741 s *Service
34742 profileId int64
34743 campaignId int64
34744 landingpage *LandingPage
34745 urlParams_ gensupport.URLParams
34746 ctx_ context.Context
34747 header_ http.Header
34748 }
34749
34750
34751
34752 func (r *LandingPagesService) Patch(profileId int64, campaignId int64, id int64, landingpage *LandingPage) *LandingPagesPatchCall {
34753 c := &LandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34754 c.profileId = profileId
34755 c.campaignId = campaignId
34756 c.urlParams_.Set("id", fmt.Sprint(id))
34757 c.landingpage = landingpage
34758 return c
34759 }
34760
34761
34762
34763
34764 func (c *LandingPagesPatchCall) Fields(s ...googleapi.Field) *LandingPagesPatchCall {
34765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34766 return c
34767 }
34768
34769
34770
34771
34772 func (c *LandingPagesPatchCall) Context(ctx context.Context) *LandingPagesPatchCall {
34773 c.ctx_ = ctx
34774 return c
34775 }
34776
34777
34778
34779 func (c *LandingPagesPatchCall) Header() http.Header {
34780 if c.header_ == nil {
34781 c.header_ = make(http.Header)
34782 }
34783 return c.header_
34784 }
34785
34786 func (c *LandingPagesPatchCall) doRequest(alt string) (*http.Response, error) {
34787 reqHeaders := make(http.Header)
34788 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
34789 for k, v := range c.header_ {
34790 reqHeaders[k] = v
34791 }
34792 reqHeaders.Set("User-Agent", c.s.userAgent())
34793 var body io.Reader = nil
34794 body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage)
34795 if err != nil {
34796 return nil, err
34797 }
34798 reqHeaders.Set("Content-Type", "application/json")
34799 c.urlParams_.Set("alt", alt)
34800 c.urlParams_.Set("prettyPrint", "false")
34801 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages")
34802 urls += "?" + c.urlParams_.Encode()
34803 req, err := http.NewRequest("PATCH", urls, body)
34804 if err != nil {
34805 return nil, err
34806 }
34807 req.Header = reqHeaders
34808 googleapi.Expand(req.URL, map[string]string{
34809 "profileId": strconv.FormatInt(c.profileId, 10),
34810 "campaignId": strconv.FormatInt(c.campaignId, 10),
34811 })
34812 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34813 }
34814
34815
34816
34817
34818
34819
34820
34821
34822 func (c *LandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
34823 gensupport.SetOptions(c.urlParams_, opts...)
34824 res, err := c.doRequest("json")
34825 if res != nil && res.StatusCode == http.StatusNotModified {
34826 if res.Body != nil {
34827 res.Body.Close()
34828 }
34829 return nil, &googleapi.Error{
34830 Code: res.StatusCode,
34831 Header: res.Header,
34832 }
34833 }
34834 if err != nil {
34835 return nil, err
34836 }
34837 defer googleapi.CloseBody(res)
34838 if err := googleapi.CheckResponse(res); err != nil {
34839 return nil, err
34840 }
34841 ret := &LandingPage{
34842 ServerResponse: googleapi.ServerResponse{
34843 Header: res.Header,
34844 HTTPStatusCode: res.StatusCode,
34845 },
34846 }
34847 target := &ret
34848 if err := gensupport.DecodeResponse(target, res); err != nil {
34849 return nil, err
34850 }
34851 return ret, nil
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896 }
34897
34898
34899
34900 type LandingPagesUpdateCall struct {
34901 s *Service
34902 profileId int64
34903 campaignId int64
34904 landingpage *LandingPage
34905 urlParams_ gensupport.URLParams
34906 ctx_ context.Context
34907 header_ http.Header
34908 }
34909
34910
34911 func (r *LandingPagesService) Update(profileId int64, campaignId int64, landingpage *LandingPage) *LandingPagesUpdateCall {
34912 c := &LandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34913 c.profileId = profileId
34914 c.campaignId = campaignId
34915 c.landingpage = landingpage
34916 return c
34917 }
34918
34919
34920
34921
34922 func (c *LandingPagesUpdateCall) Fields(s ...googleapi.Field) *LandingPagesUpdateCall {
34923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34924 return c
34925 }
34926
34927
34928
34929
34930 func (c *LandingPagesUpdateCall) Context(ctx context.Context) *LandingPagesUpdateCall {
34931 c.ctx_ = ctx
34932 return c
34933 }
34934
34935
34936
34937 func (c *LandingPagesUpdateCall) Header() http.Header {
34938 if c.header_ == nil {
34939 c.header_ = make(http.Header)
34940 }
34941 return c.header_
34942 }
34943
34944 func (c *LandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) {
34945 reqHeaders := make(http.Header)
34946 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
34947 for k, v := range c.header_ {
34948 reqHeaders[k] = v
34949 }
34950 reqHeaders.Set("User-Agent", c.s.userAgent())
34951 var body io.Reader = nil
34952 body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage)
34953 if err != nil {
34954 return nil, err
34955 }
34956 reqHeaders.Set("Content-Type", "application/json")
34957 c.urlParams_.Set("alt", alt)
34958 c.urlParams_.Set("prettyPrint", "false")
34959 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages")
34960 urls += "?" + c.urlParams_.Encode()
34961 req, err := http.NewRequest("PUT", urls, body)
34962 if err != nil {
34963 return nil, err
34964 }
34965 req.Header = reqHeaders
34966 googleapi.Expand(req.URL, map[string]string{
34967 "profileId": strconv.FormatInt(c.profileId, 10),
34968 "campaignId": strconv.FormatInt(c.campaignId, 10),
34969 })
34970 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34971 }
34972
34973
34974
34975
34976
34977
34978
34979
34980 func (c *LandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
34981 gensupport.SetOptions(c.urlParams_, opts...)
34982 res, err := c.doRequest("json")
34983 if res != nil && res.StatusCode == http.StatusNotModified {
34984 if res.Body != nil {
34985 res.Body.Close()
34986 }
34987 return nil, &googleapi.Error{
34988 Code: res.StatusCode,
34989 Header: res.Header,
34990 }
34991 }
34992 if err != nil {
34993 return nil, err
34994 }
34995 defer googleapi.CloseBody(res)
34996 if err := googleapi.CheckResponse(res); err != nil {
34997 return nil, err
34998 }
34999 ret := &LandingPage{
35000 ServerResponse: googleapi.ServerResponse{
35001 Header: res.Header,
35002 HTTPStatusCode: res.StatusCode,
35003 },
35004 }
35005 target := &ret
35006 if err := gensupport.DecodeResponse(target, res); err != nil {
35007 return nil, err
35008 }
35009 return ret, nil
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046 }
35047
35048
35049
35050 type LanguagesListCall struct {
35051 s *Service
35052 profileId int64
35053 urlParams_ gensupport.URLParams
35054 ifNoneMatch_ string
35055 ctx_ context.Context
35056 header_ http.Header
35057 }
35058
35059
35060 func (r *LanguagesService) List(profileId int64) *LanguagesListCall {
35061 c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35062 c.profileId = profileId
35063 return c
35064 }
35065
35066
35067
35068
35069 func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall {
35070 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35071 return c
35072 }
35073
35074
35075
35076
35077
35078
35079 func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall {
35080 c.ifNoneMatch_ = entityTag
35081 return c
35082 }
35083
35084
35085
35086
35087 func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall {
35088 c.ctx_ = ctx
35089 return c
35090 }
35091
35092
35093
35094 func (c *LanguagesListCall) Header() http.Header {
35095 if c.header_ == nil {
35096 c.header_ = make(http.Header)
35097 }
35098 return c.header_
35099 }
35100
35101 func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) {
35102 reqHeaders := make(http.Header)
35103 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35104 for k, v := range c.header_ {
35105 reqHeaders[k] = v
35106 }
35107 reqHeaders.Set("User-Agent", c.s.userAgent())
35108 if c.ifNoneMatch_ != "" {
35109 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35110 }
35111 var body io.Reader = nil
35112 c.urlParams_.Set("alt", alt)
35113 c.urlParams_.Set("prettyPrint", "false")
35114 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/languages")
35115 urls += "?" + c.urlParams_.Encode()
35116 req, err := http.NewRequest("GET", urls, body)
35117 if err != nil {
35118 return nil, err
35119 }
35120 req.Header = reqHeaders
35121 googleapi.Expand(req.URL, map[string]string{
35122 "profileId": strconv.FormatInt(c.profileId, 10),
35123 })
35124 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35125 }
35126
35127
35128
35129
35130
35131
35132
35133
35134 func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) {
35135 gensupport.SetOptions(c.urlParams_, opts...)
35136 res, err := c.doRequest("json")
35137 if res != nil && res.StatusCode == http.StatusNotModified {
35138 if res.Body != nil {
35139 res.Body.Close()
35140 }
35141 return nil, &googleapi.Error{
35142 Code: res.StatusCode,
35143 Header: res.Header,
35144 }
35145 }
35146 if err != nil {
35147 return nil, err
35148 }
35149 defer googleapi.CloseBody(res)
35150 if err := googleapi.CheckResponse(res); err != nil {
35151 return nil, err
35152 }
35153 ret := &LanguagesListResponse{
35154 ServerResponse: googleapi.ServerResponse{
35155 Header: res.Header,
35156 HTTPStatusCode: res.StatusCode,
35157 },
35158 }
35159 target := &ret
35160 if err := gensupport.DecodeResponse(target, res); err != nil {
35161 return nil, err
35162 }
35163 return ret, nil
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189 }
35190
35191
35192
35193 type MetrosListCall struct {
35194 s *Service
35195 profileId int64
35196 urlParams_ gensupport.URLParams
35197 ifNoneMatch_ string
35198 ctx_ context.Context
35199 header_ http.Header
35200 }
35201
35202
35203 func (r *MetrosService) List(profileId int64) *MetrosListCall {
35204 c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35205 c.profileId = profileId
35206 return c
35207 }
35208
35209
35210
35211
35212 func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall {
35213 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35214 return c
35215 }
35216
35217
35218
35219
35220
35221
35222 func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall {
35223 c.ifNoneMatch_ = entityTag
35224 return c
35225 }
35226
35227
35228
35229
35230 func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall {
35231 c.ctx_ = ctx
35232 return c
35233 }
35234
35235
35236
35237 func (c *MetrosListCall) Header() http.Header {
35238 if c.header_ == nil {
35239 c.header_ = make(http.Header)
35240 }
35241 return c.header_
35242 }
35243
35244 func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) {
35245 reqHeaders := make(http.Header)
35246 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35247 for k, v := range c.header_ {
35248 reqHeaders[k] = v
35249 }
35250 reqHeaders.Set("User-Agent", c.s.userAgent())
35251 if c.ifNoneMatch_ != "" {
35252 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35253 }
35254 var body io.Reader = nil
35255 c.urlParams_.Set("alt", alt)
35256 c.urlParams_.Set("prettyPrint", "false")
35257 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/metros")
35258 urls += "?" + c.urlParams_.Encode()
35259 req, err := http.NewRequest("GET", urls, body)
35260 if err != nil {
35261 return nil, err
35262 }
35263 req.Header = reqHeaders
35264 googleapi.Expand(req.URL, map[string]string{
35265 "profileId": strconv.FormatInt(c.profileId, 10),
35266 })
35267 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35268 }
35269
35270
35271
35272
35273
35274
35275
35276
35277 func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) {
35278 gensupport.SetOptions(c.urlParams_, opts...)
35279 res, err := c.doRequest("json")
35280 if res != nil && res.StatusCode == http.StatusNotModified {
35281 if res.Body != nil {
35282 res.Body.Close()
35283 }
35284 return nil, &googleapi.Error{
35285 Code: res.StatusCode,
35286 Header: res.Header,
35287 }
35288 }
35289 if err != nil {
35290 return nil, err
35291 }
35292 defer googleapi.CloseBody(res)
35293 if err := googleapi.CheckResponse(res); err != nil {
35294 return nil, err
35295 }
35296 ret := &MetrosListResponse{
35297 ServerResponse: googleapi.ServerResponse{
35298 Header: res.Header,
35299 HTTPStatusCode: res.StatusCode,
35300 },
35301 }
35302 target := &ret
35303 if err := gensupport.DecodeResponse(target, res); err != nil {
35304 return nil, err
35305 }
35306 return ret, nil
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332 }
35333
35334
35335
35336 type MobileCarriersGetCall struct {
35337 s *Service
35338 profileId int64
35339 id int64
35340 urlParams_ gensupport.URLParams
35341 ifNoneMatch_ string
35342 ctx_ context.Context
35343 header_ http.Header
35344 }
35345
35346
35347 func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall {
35348 c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35349 c.profileId = profileId
35350 c.id = id
35351 return c
35352 }
35353
35354
35355
35356
35357 func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall {
35358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35359 return c
35360 }
35361
35362
35363
35364
35365
35366
35367 func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall {
35368 c.ifNoneMatch_ = entityTag
35369 return c
35370 }
35371
35372
35373
35374
35375 func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall {
35376 c.ctx_ = ctx
35377 return c
35378 }
35379
35380
35381
35382 func (c *MobileCarriersGetCall) Header() http.Header {
35383 if c.header_ == nil {
35384 c.header_ = make(http.Header)
35385 }
35386 return c.header_
35387 }
35388
35389 func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) {
35390 reqHeaders := make(http.Header)
35391 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35392 for k, v := range c.header_ {
35393 reqHeaders[k] = v
35394 }
35395 reqHeaders.Set("User-Agent", c.s.userAgent())
35396 if c.ifNoneMatch_ != "" {
35397 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35398 }
35399 var body io.Reader = nil
35400 c.urlParams_.Set("alt", alt)
35401 c.urlParams_.Set("prettyPrint", "false")
35402 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers/{id}")
35403 urls += "?" + c.urlParams_.Encode()
35404 req, err := http.NewRequest("GET", urls, body)
35405 if err != nil {
35406 return nil, err
35407 }
35408 req.Header = reqHeaders
35409 googleapi.Expand(req.URL, map[string]string{
35410 "profileId": strconv.FormatInt(c.profileId, 10),
35411 "id": strconv.FormatInt(c.id, 10),
35412 })
35413 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35414 }
35415
35416
35417
35418
35419
35420
35421
35422
35423 func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) {
35424 gensupport.SetOptions(c.urlParams_, opts...)
35425 res, err := c.doRequest("json")
35426 if res != nil && res.StatusCode == http.StatusNotModified {
35427 if res.Body != nil {
35428 res.Body.Close()
35429 }
35430 return nil, &googleapi.Error{
35431 Code: res.StatusCode,
35432 Header: res.Header,
35433 }
35434 }
35435 if err != nil {
35436 return nil, err
35437 }
35438 defer googleapi.CloseBody(res)
35439 if err := googleapi.CheckResponse(res); err != nil {
35440 return nil, err
35441 }
35442 ret := &MobileCarrier{
35443 ServerResponse: googleapi.ServerResponse{
35444 Header: res.Header,
35445 HTTPStatusCode: res.StatusCode,
35446 },
35447 }
35448 target := &ret
35449 if err := gensupport.DecodeResponse(target, res); err != nil {
35450 return nil, err
35451 }
35452 return ret, nil
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486 }
35487
35488
35489
35490 type MobileCarriersListCall struct {
35491 s *Service
35492 profileId int64
35493 urlParams_ gensupport.URLParams
35494 ifNoneMatch_ string
35495 ctx_ context.Context
35496 header_ http.Header
35497 }
35498
35499
35500 func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall {
35501 c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35502 c.profileId = profileId
35503 return c
35504 }
35505
35506
35507
35508
35509 func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall {
35510 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35511 return c
35512 }
35513
35514
35515
35516
35517
35518
35519 func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall {
35520 c.ifNoneMatch_ = entityTag
35521 return c
35522 }
35523
35524
35525
35526
35527 func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall {
35528 c.ctx_ = ctx
35529 return c
35530 }
35531
35532
35533
35534 func (c *MobileCarriersListCall) Header() http.Header {
35535 if c.header_ == nil {
35536 c.header_ = make(http.Header)
35537 }
35538 return c.header_
35539 }
35540
35541 func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) {
35542 reqHeaders := make(http.Header)
35543 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35544 for k, v := range c.header_ {
35545 reqHeaders[k] = v
35546 }
35547 reqHeaders.Set("User-Agent", c.s.userAgent())
35548 if c.ifNoneMatch_ != "" {
35549 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35550 }
35551 var body io.Reader = nil
35552 c.urlParams_.Set("alt", alt)
35553 c.urlParams_.Set("prettyPrint", "false")
35554 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers")
35555 urls += "?" + c.urlParams_.Encode()
35556 req, err := http.NewRequest("GET", urls, body)
35557 if err != nil {
35558 return nil, err
35559 }
35560 req.Header = reqHeaders
35561 googleapi.Expand(req.URL, map[string]string{
35562 "profileId": strconv.FormatInt(c.profileId, 10),
35563 })
35564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35565 }
35566
35567
35568
35569
35570
35571
35572
35573
35574 func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) {
35575 gensupport.SetOptions(c.urlParams_, opts...)
35576 res, err := c.doRequest("json")
35577 if res != nil && res.StatusCode == http.StatusNotModified {
35578 if res.Body != nil {
35579 res.Body.Close()
35580 }
35581 return nil, &googleapi.Error{
35582 Code: res.StatusCode,
35583 Header: res.Header,
35584 }
35585 }
35586 if err != nil {
35587 return nil, err
35588 }
35589 defer googleapi.CloseBody(res)
35590 if err := googleapi.CheckResponse(res); err != nil {
35591 return nil, err
35592 }
35593 ret := &MobileCarriersListResponse{
35594 ServerResponse: googleapi.ServerResponse{
35595 Header: res.Header,
35596 HTTPStatusCode: res.StatusCode,
35597 },
35598 }
35599 target := &ret
35600 if err := gensupport.DecodeResponse(target, res); err != nil {
35601 return nil, err
35602 }
35603 return ret, nil
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629 }
35630
35631
35632
35633 type OperatingSystemVersionsGetCall struct {
35634 s *Service
35635 profileId int64
35636 id int64
35637 urlParams_ gensupport.URLParams
35638 ifNoneMatch_ string
35639 ctx_ context.Context
35640 header_ http.Header
35641 }
35642
35643
35644 func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall {
35645 c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35646 c.profileId = profileId
35647 c.id = id
35648 return c
35649 }
35650
35651
35652
35653
35654 func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall {
35655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35656 return c
35657 }
35658
35659
35660
35661
35662
35663
35664 func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall {
35665 c.ifNoneMatch_ = entityTag
35666 return c
35667 }
35668
35669
35670
35671
35672 func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall {
35673 c.ctx_ = ctx
35674 return c
35675 }
35676
35677
35678
35679 func (c *OperatingSystemVersionsGetCall) Header() http.Header {
35680 if c.header_ == nil {
35681 c.header_ = make(http.Header)
35682 }
35683 return c.header_
35684 }
35685
35686 func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) {
35687 reqHeaders := make(http.Header)
35688 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35689 for k, v := range c.header_ {
35690 reqHeaders[k] = v
35691 }
35692 reqHeaders.Set("User-Agent", c.s.userAgent())
35693 if c.ifNoneMatch_ != "" {
35694 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35695 }
35696 var body io.Reader = nil
35697 c.urlParams_.Set("alt", alt)
35698 c.urlParams_.Set("prettyPrint", "false")
35699 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions/{id}")
35700 urls += "?" + c.urlParams_.Encode()
35701 req, err := http.NewRequest("GET", urls, body)
35702 if err != nil {
35703 return nil, err
35704 }
35705 req.Header = reqHeaders
35706 googleapi.Expand(req.URL, map[string]string{
35707 "profileId": strconv.FormatInt(c.profileId, 10),
35708 "id": strconv.FormatInt(c.id, 10),
35709 })
35710 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35711 }
35712
35713
35714
35715
35716
35717
35718
35719
35720 func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) {
35721 gensupport.SetOptions(c.urlParams_, opts...)
35722 res, err := c.doRequest("json")
35723 if res != nil && res.StatusCode == http.StatusNotModified {
35724 if res.Body != nil {
35725 res.Body.Close()
35726 }
35727 return nil, &googleapi.Error{
35728 Code: res.StatusCode,
35729 Header: res.Header,
35730 }
35731 }
35732 if err != nil {
35733 return nil, err
35734 }
35735 defer googleapi.CloseBody(res)
35736 if err := googleapi.CheckResponse(res); err != nil {
35737 return nil, err
35738 }
35739 ret := &OperatingSystemVersion{
35740 ServerResponse: googleapi.ServerResponse{
35741 Header: res.Header,
35742 HTTPStatusCode: res.StatusCode,
35743 },
35744 }
35745 target := &ret
35746 if err := gensupport.DecodeResponse(target, res); err != nil {
35747 return nil, err
35748 }
35749 return ret, nil
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783 }
35784
35785
35786
35787 type OperatingSystemVersionsListCall struct {
35788 s *Service
35789 profileId int64
35790 urlParams_ gensupport.URLParams
35791 ifNoneMatch_ string
35792 ctx_ context.Context
35793 header_ http.Header
35794 }
35795
35796
35797 func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall {
35798 c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35799 c.profileId = profileId
35800 return c
35801 }
35802
35803
35804
35805
35806 func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall {
35807 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35808 return c
35809 }
35810
35811
35812
35813
35814
35815
35816 func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall {
35817 c.ifNoneMatch_ = entityTag
35818 return c
35819 }
35820
35821
35822
35823
35824 func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall {
35825 c.ctx_ = ctx
35826 return c
35827 }
35828
35829
35830
35831 func (c *OperatingSystemVersionsListCall) Header() http.Header {
35832 if c.header_ == nil {
35833 c.header_ = make(http.Header)
35834 }
35835 return c.header_
35836 }
35837
35838 func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) {
35839 reqHeaders := make(http.Header)
35840 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35841 for k, v := range c.header_ {
35842 reqHeaders[k] = v
35843 }
35844 reqHeaders.Set("User-Agent", c.s.userAgent())
35845 if c.ifNoneMatch_ != "" {
35846 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35847 }
35848 var body io.Reader = nil
35849 c.urlParams_.Set("alt", alt)
35850 c.urlParams_.Set("prettyPrint", "false")
35851 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions")
35852 urls += "?" + c.urlParams_.Encode()
35853 req, err := http.NewRequest("GET", urls, body)
35854 if err != nil {
35855 return nil, err
35856 }
35857 req.Header = reqHeaders
35858 googleapi.Expand(req.URL, map[string]string{
35859 "profileId": strconv.FormatInt(c.profileId, 10),
35860 })
35861 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35862 }
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872 func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) {
35873 gensupport.SetOptions(c.urlParams_, opts...)
35874 res, err := c.doRequest("json")
35875 if res != nil && res.StatusCode == http.StatusNotModified {
35876 if res.Body != nil {
35877 res.Body.Close()
35878 }
35879 return nil, &googleapi.Error{
35880 Code: res.StatusCode,
35881 Header: res.Header,
35882 }
35883 }
35884 if err != nil {
35885 return nil, err
35886 }
35887 defer googleapi.CloseBody(res)
35888 if err := googleapi.CheckResponse(res); err != nil {
35889 return nil, err
35890 }
35891 ret := &OperatingSystemVersionsListResponse{
35892 ServerResponse: googleapi.ServerResponse{
35893 Header: res.Header,
35894 HTTPStatusCode: res.StatusCode,
35895 },
35896 }
35897 target := &ret
35898 if err := gensupport.DecodeResponse(target, res); err != nil {
35899 return nil, err
35900 }
35901 return ret, nil
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927 }
35928
35929
35930
35931 type OperatingSystemsGetCall struct {
35932 s *Service
35933 profileId int64
35934 dartId int64
35935 urlParams_ gensupport.URLParams
35936 ifNoneMatch_ string
35937 ctx_ context.Context
35938 header_ http.Header
35939 }
35940
35941
35942 func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall {
35943 c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35944 c.profileId = profileId
35945 c.dartId = dartId
35946 return c
35947 }
35948
35949
35950
35951
35952 func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall {
35953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35954 return c
35955 }
35956
35957
35958
35959
35960
35961
35962 func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall {
35963 c.ifNoneMatch_ = entityTag
35964 return c
35965 }
35966
35967
35968
35969
35970 func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall {
35971 c.ctx_ = ctx
35972 return c
35973 }
35974
35975
35976
35977 func (c *OperatingSystemsGetCall) Header() http.Header {
35978 if c.header_ == nil {
35979 c.header_ = make(http.Header)
35980 }
35981 return c.header_
35982 }
35983
35984 func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) {
35985 reqHeaders := make(http.Header)
35986 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
35987 for k, v := range c.header_ {
35988 reqHeaders[k] = v
35989 }
35990 reqHeaders.Set("User-Agent", c.s.userAgent())
35991 if c.ifNoneMatch_ != "" {
35992 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35993 }
35994 var body io.Reader = nil
35995 c.urlParams_.Set("alt", alt)
35996 c.urlParams_.Set("prettyPrint", "false")
35997 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems/{dartId}")
35998 urls += "?" + c.urlParams_.Encode()
35999 req, err := http.NewRequest("GET", urls, body)
36000 if err != nil {
36001 return nil, err
36002 }
36003 req.Header = reqHeaders
36004 googleapi.Expand(req.URL, map[string]string{
36005 "profileId": strconv.FormatInt(c.profileId, 10),
36006 "dartId": strconv.FormatInt(c.dartId, 10),
36007 })
36008 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36009 }
36010
36011
36012
36013
36014
36015
36016
36017
36018 func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) {
36019 gensupport.SetOptions(c.urlParams_, opts...)
36020 res, err := c.doRequest("json")
36021 if res != nil && res.StatusCode == http.StatusNotModified {
36022 if res.Body != nil {
36023 res.Body.Close()
36024 }
36025 return nil, &googleapi.Error{
36026 Code: res.StatusCode,
36027 Header: res.Header,
36028 }
36029 }
36030 if err != nil {
36031 return nil, err
36032 }
36033 defer googleapi.CloseBody(res)
36034 if err := googleapi.CheckResponse(res); err != nil {
36035 return nil, err
36036 }
36037 ret := &OperatingSystem{
36038 ServerResponse: googleapi.ServerResponse{
36039 Header: res.Header,
36040 HTTPStatusCode: res.StatusCode,
36041 },
36042 }
36043 target := &ret
36044 if err := gensupport.DecodeResponse(target, res); err != nil {
36045 return nil, err
36046 }
36047 return ret, nil
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081 }
36082
36083
36084
36085 type OperatingSystemsListCall struct {
36086 s *Service
36087 profileId int64
36088 urlParams_ gensupport.URLParams
36089 ifNoneMatch_ string
36090 ctx_ context.Context
36091 header_ http.Header
36092 }
36093
36094
36095 func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall {
36096 c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36097 c.profileId = profileId
36098 return c
36099 }
36100
36101
36102
36103
36104 func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall {
36105 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36106 return c
36107 }
36108
36109
36110
36111
36112
36113
36114 func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall {
36115 c.ifNoneMatch_ = entityTag
36116 return c
36117 }
36118
36119
36120
36121
36122 func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall {
36123 c.ctx_ = ctx
36124 return c
36125 }
36126
36127
36128
36129 func (c *OperatingSystemsListCall) Header() http.Header {
36130 if c.header_ == nil {
36131 c.header_ = make(http.Header)
36132 }
36133 return c.header_
36134 }
36135
36136 func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) {
36137 reqHeaders := make(http.Header)
36138 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
36139 for k, v := range c.header_ {
36140 reqHeaders[k] = v
36141 }
36142 reqHeaders.Set("User-Agent", c.s.userAgent())
36143 if c.ifNoneMatch_ != "" {
36144 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36145 }
36146 var body io.Reader = nil
36147 c.urlParams_.Set("alt", alt)
36148 c.urlParams_.Set("prettyPrint", "false")
36149 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems")
36150 urls += "?" + c.urlParams_.Encode()
36151 req, err := http.NewRequest("GET", urls, body)
36152 if err != nil {
36153 return nil, err
36154 }
36155 req.Header = reqHeaders
36156 googleapi.Expand(req.URL, map[string]string{
36157 "profileId": strconv.FormatInt(c.profileId, 10),
36158 })
36159 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36160 }
36161
36162
36163
36164
36165
36166
36167
36168
36169 func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) {
36170 gensupport.SetOptions(c.urlParams_, opts...)
36171 res, err := c.doRequest("json")
36172 if res != nil && res.StatusCode == http.StatusNotModified {
36173 if res.Body != nil {
36174 res.Body.Close()
36175 }
36176 return nil, &googleapi.Error{
36177 Code: res.StatusCode,
36178 Header: res.Header,
36179 }
36180 }
36181 if err != nil {
36182 return nil, err
36183 }
36184 defer googleapi.CloseBody(res)
36185 if err := googleapi.CheckResponse(res); err != nil {
36186 return nil, err
36187 }
36188 ret := &OperatingSystemsListResponse{
36189 ServerResponse: googleapi.ServerResponse{
36190 Header: res.Header,
36191 HTTPStatusCode: res.StatusCode,
36192 },
36193 }
36194 target := &ret
36195 if err := gensupport.DecodeResponse(target, res); err != nil {
36196 return nil, err
36197 }
36198 return ret, nil
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224 }
36225
36226
36227
36228 type OrderDocumentsGetCall struct {
36229 s *Service
36230 profileId int64
36231 projectId int64
36232 id int64
36233 urlParams_ gensupport.URLParams
36234 ifNoneMatch_ string
36235 ctx_ context.Context
36236 header_ http.Header
36237 }
36238
36239
36240 func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall {
36241 c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36242 c.profileId = profileId
36243 c.projectId = projectId
36244 c.id = id
36245 return c
36246 }
36247
36248
36249
36250
36251 func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall {
36252 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36253 return c
36254 }
36255
36256
36257
36258
36259
36260
36261 func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall {
36262 c.ifNoneMatch_ = entityTag
36263 return c
36264 }
36265
36266
36267
36268
36269 func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall {
36270 c.ctx_ = ctx
36271 return c
36272 }
36273
36274
36275
36276 func (c *OrderDocumentsGetCall) Header() http.Header {
36277 if c.header_ == nil {
36278 c.header_ = make(http.Header)
36279 }
36280 return c.header_
36281 }
36282
36283 func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
36284 reqHeaders := make(http.Header)
36285 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
36286 for k, v := range c.header_ {
36287 reqHeaders[k] = v
36288 }
36289 reqHeaders.Set("User-Agent", c.s.userAgent())
36290 if c.ifNoneMatch_ != "" {
36291 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36292 }
36293 var body io.Reader = nil
36294 c.urlParams_.Set("alt", alt)
36295 c.urlParams_.Set("prettyPrint", "false")
36296 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}")
36297 urls += "?" + c.urlParams_.Encode()
36298 req, err := http.NewRequest("GET", urls, body)
36299 if err != nil {
36300 return nil, err
36301 }
36302 req.Header = reqHeaders
36303 googleapi.Expand(req.URL, map[string]string{
36304 "profileId": strconv.FormatInt(c.profileId, 10),
36305 "projectId": strconv.FormatInt(c.projectId, 10),
36306 "id": strconv.FormatInt(c.id, 10),
36307 })
36308 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36309 }
36310
36311
36312
36313
36314
36315
36316
36317
36318 func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) {
36319 gensupport.SetOptions(c.urlParams_, opts...)
36320 res, err := c.doRequest("json")
36321 if res != nil && res.StatusCode == http.StatusNotModified {
36322 if res.Body != nil {
36323 res.Body.Close()
36324 }
36325 return nil, &googleapi.Error{
36326 Code: res.StatusCode,
36327 Header: res.Header,
36328 }
36329 }
36330 if err != nil {
36331 return nil, err
36332 }
36333 defer googleapi.CloseBody(res)
36334 if err := googleapi.CheckResponse(res); err != nil {
36335 return nil, err
36336 }
36337 ret := &OrderDocument{
36338 ServerResponse: googleapi.ServerResponse{
36339 Header: res.Header,
36340 HTTPStatusCode: res.StatusCode,
36341 },
36342 }
36343 target := &ret
36344 if err := gensupport.DecodeResponse(target, res); err != nil {
36345 return nil, err
36346 }
36347 return ret, nil
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389 }
36390
36391
36392
36393 type OrderDocumentsListCall struct {
36394 s *Service
36395 profileId int64
36396 projectId int64
36397 urlParams_ gensupport.URLParams
36398 ifNoneMatch_ string
36399 ctx_ context.Context
36400 header_ http.Header
36401 }
36402
36403
36404
36405 func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall {
36406 c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36407 c.profileId = profileId
36408 c.projectId = projectId
36409 return c
36410 }
36411
36412
36413
36414 func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall {
36415 c.urlParams_.Set("approved", fmt.Sprint(approved))
36416 return c
36417 }
36418
36419
36420
36421 func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall {
36422 var ids_ []string
36423 for _, v := range ids {
36424 ids_ = append(ids_, fmt.Sprint(v))
36425 }
36426 c.urlParams_.SetMulti("ids", ids_)
36427 return c
36428 }
36429
36430
36431
36432 func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall {
36433 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
36434 return c
36435 }
36436
36437
36438
36439 func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall {
36440 var orderId_ []string
36441 for _, v := range orderId {
36442 orderId_ = append(orderId_, fmt.Sprint(v))
36443 }
36444 c.urlParams_.SetMulti("orderId", orderId_)
36445 return c
36446 }
36447
36448
36449
36450 func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsListCall {
36451 c.urlParams_.Set("pageToken", pageToken)
36452 return c
36453 }
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464 func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall {
36465 c.urlParams_.Set("searchString", searchString)
36466 return c
36467 }
36468
36469
36470
36471 func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall {
36472 var siteId_ []string
36473 for _, v := range siteId {
36474 siteId_ = append(siteId_, fmt.Sprint(v))
36475 }
36476 c.urlParams_.SetMulti("siteId", siteId_)
36477 return c
36478 }
36479
36480
36481
36482
36483
36484
36485
36486
36487 func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsListCall {
36488 c.urlParams_.Set("sortField", sortField)
36489 return c
36490 }
36491
36492
36493
36494
36495
36496
36497
36498
36499 func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsListCall {
36500 c.urlParams_.Set("sortOrder", sortOrder)
36501 return c
36502 }
36503
36504
36505
36506
36507 func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall {
36508 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36509 return c
36510 }
36511
36512
36513
36514
36515
36516
36517 func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall {
36518 c.ifNoneMatch_ = entityTag
36519 return c
36520 }
36521
36522
36523
36524
36525 func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall {
36526 c.ctx_ = ctx
36527 return c
36528 }
36529
36530
36531
36532 func (c *OrderDocumentsListCall) Header() http.Header {
36533 if c.header_ == nil {
36534 c.header_ = make(http.Header)
36535 }
36536 return c.header_
36537 }
36538
36539 func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) {
36540 reqHeaders := make(http.Header)
36541 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
36542 for k, v := range c.header_ {
36543 reqHeaders[k] = v
36544 }
36545 reqHeaders.Set("User-Agent", c.s.userAgent())
36546 if c.ifNoneMatch_ != "" {
36547 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36548 }
36549 var body io.Reader = nil
36550 c.urlParams_.Set("alt", alt)
36551 c.urlParams_.Set("prettyPrint", "false")
36552 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments")
36553 urls += "?" + c.urlParams_.Encode()
36554 req, err := http.NewRequest("GET", urls, body)
36555 if err != nil {
36556 return nil, err
36557 }
36558 req.Header = reqHeaders
36559 googleapi.Expand(req.URL, map[string]string{
36560 "profileId": strconv.FormatInt(c.profileId, 10),
36561 "projectId": strconv.FormatInt(c.projectId, 10),
36562 })
36563 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36564 }
36565
36566
36567
36568
36569
36570
36571
36572
36573 func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) {
36574 gensupport.SetOptions(c.urlParams_, opts...)
36575 res, err := c.doRequest("json")
36576 if res != nil && res.StatusCode == http.StatusNotModified {
36577 if res.Body != nil {
36578 res.Body.Close()
36579 }
36580 return nil, &googleapi.Error{
36581 Code: res.StatusCode,
36582 Header: res.Header,
36583 }
36584 }
36585 if err != nil {
36586 return nil, err
36587 }
36588 defer googleapi.CloseBody(res)
36589 if err := googleapi.CheckResponse(res); err != nil {
36590 return nil, err
36591 }
36592 ret := &OrderDocumentsListResponse{
36593 ServerResponse: googleapi.ServerResponse{
36594 Header: res.Header,
36595 HTTPStatusCode: res.StatusCode,
36596 },
36597 }
36598 target := &ret
36599 if err := gensupport.DecodeResponse(target, res); err != nil {
36600 return nil, err
36601 }
36602 return ret, nil
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709 }
36710
36711
36712
36713
36714 func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error {
36715 c.ctx_ = ctx
36716 defer c.PageToken(c.urlParams_.Get("pageToken"))
36717 for {
36718 x, err := c.Do()
36719 if err != nil {
36720 return err
36721 }
36722 if err := f(x); err != nil {
36723 return err
36724 }
36725 if x.NextPageToken == "" {
36726 return nil
36727 }
36728 c.PageToken(x.NextPageToken)
36729 }
36730 }
36731
36732
36733
36734 type OrdersGetCall struct {
36735 s *Service
36736 profileId int64
36737 projectId int64
36738 id int64
36739 urlParams_ gensupport.URLParams
36740 ifNoneMatch_ string
36741 ctx_ context.Context
36742 header_ http.Header
36743 }
36744
36745
36746 func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall {
36747 c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36748 c.profileId = profileId
36749 c.projectId = projectId
36750 c.id = id
36751 return c
36752 }
36753
36754
36755
36756
36757 func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall {
36758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36759 return c
36760 }
36761
36762
36763
36764
36765
36766
36767 func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall {
36768 c.ifNoneMatch_ = entityTag
36769 return c
36770 }
36771
36772
36773
36774
36775 func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall {
36776 c.ctx_ = ctx
36777 return c
36778 }
36779
36780
36781
36782 func (c *OrdersGetCall) Header() http.Header {
36783 if c.header_ == nil {
36784 c.header_ = make(http.Header)
36785 }
36786 return c.header_
36787 }
36788
36789 func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) {
36790 reqHeaders := make(http.Header)
36791 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
36792 for k, v := range c.header_ {
36793 reqHeaders[k] = v
36794 }
36795 reqHeaders.Set("User-Agent", c.s.userAgent())
36796 if c.ifNoneMatch_ != "" {
36797 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36798 }
36799 var body io.Reader = nil
36800 c.urlParams_.Set("alt", alt)
36801 c.urlParams_.Set("prettyPrint", "false")
36802 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders/{id}")
36803 urls += "?" + c.urlParams_.Encode()
36804 req, err := http.NewRequest("GET", urls, body)
36805 if err != nil {
36806 return nil, err
36807 }
36808 req.Header = reqHeaders
36809 googleapi.Expand(req.URL, map[string]string{
36810 "profileId": strconv.FormatInt(c.profileId, 10),
36811 "projectId": strconv.FormatInt(c.projectId, 10),
36812 "id": strconv.FormatInt(c.id, 10),
36813 })
36814 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36815 }
36816
36817
36818
36819
36820
36821
36822
36823
36824 func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) {
36825 gensupport.SetOptions(c.urlParams_, opts...)
36826 res, err := c.doRequest("json")
36827 if res != nil && res.StatusCode == http.StatusNotModified {
36828 if res.Body != nil {
36829 res.Body.Close()
36830 }
36831 return nil, &googleapi.Error{
36832 Code: res.StatusCode,
36833 Header: res.Header,
36834 }
36835 }
36836 if err != nil {
36837 return nil, err
36838 }
36839 defer googleapi.CloseBody(res)
36840 if err := googleapi.CheckResponse(res); err != nil {
36841 return nil, err
36842 }
36843 ret := &Order{
36844 ServerResponse: googleapi.ServerResponse{
36845 Header: res.Header,
36846 HTTPStatusCode: res.StatusCode,
36847 },
36848 }
36849 target := &ret
36850 if err := gensupport.DecodeResponse(target, res); err != nil {
36851 return nil, err
36852 }
36853 return ret, nil
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895 }
36896
36897
36898
36899 type OrdersListCall struct {
36900 s *Service
36901 profileId int64
36902 projectId int64
36903 urlParams_ gensupport.URLParams
36904 ifNoneMatch_ string
36905 ctx_ context.Context
36906 header_ http.Header
36907 }
36908
36909
36910
36911 func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall {
36912 c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36913 c.profileId = profileId
36914 c.projectId = projectId
36915 return c
36916 }
36917
36918
36919
36920 func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall {
36921 var ids_ []string
36922 for _, v := range ids {
36923 ids_ = append(ids_, fmt.Sprint(v))
36924 }
36925 c.urlParams_.SetMulti("ids", ids_)
36926 return c
36927 }
36928
36929
36930
36931 func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall {
36932 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
36933 return c
36934 }
36935
36936
36937
36938 func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall {
36939 c.urlParams_.Set("pageToken", pageToken)
36940 return c
36941 }
36942
36943
36944
36945
36946
36947
36948
36949
36950 func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall {
36951 c.urlParams_.Set("searchString", searchString)
36952 return c
36953 }
36954
36955
36956
36957 func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall {
36958 var siteId_ []string
36959 for _, v := range siteId {
36960 siteId_ = append(siteId_, fmt.Sprint(v))
36961 }
36962 c.urlParams_.SetMulti("siteId", siteId_)
36963 return c
36964 }
36965
36966
36967
36968
36969
36970
36971
36972
36973 func (c *OrdersListCall) SortField(sortField string) *OrdersListCall {
36974 c.urlParams_.Set("sortField", sortField)
36975 return c
36976 }
36977
36978
36979
36980
36981
36982
36983
36984
36985 func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall {
36986 c.urlParams_.Set("sortOrder", sortOrder)
36987 return c
36988 }
36989
36990
36991
36992
36993 func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall {
36994 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36995 return c
36996 }
36997
36998
36999
37000
37001
37002
37003 func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall {
37004 c.ifNoneMatch_ = entityTag
37005 return c
37006 }
37007
37008
37009
37010
37011 func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall {
37012 c.ctx_ = ctx
37013 return c
37014 }
37015
37016
37017
37018 func (c *OrdersListCall) Header() http.Header {
37019 if c.header_ == nil {
37020 c.header_ = make(http.Header)
37021 }
37022 return c.header_
37023 }
37024
37025 func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) {
37026 reqHeaders := make(http.Header)
37027 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
37028 for k, v := range c.header_ {
37029 reqHeaders[k] = v
37030 }
37031 reqHeaders.Set("User-Agent", c.s.userAgent())
37032 if c.ifNoneMatch_ != "" {
37033 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37034 }
37035 var body io.Reader = nil
37036 c.urlParams_.Set("alt", alt)
37037 c.urlParams_.Set("prettyPrint", "false")
37038 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders")
37039 urls += "?" + c.urlParams_.Encode()
37040 req, err := http.NewRequest("GET", urls, body)
37041 if err != nil {
37042 return nil, err
37043 }
37044 req.Header = reqHeaders
37045 googleapi.Expand(req.URL, map[string]string{
37046 "profileId": strconv.FormatInt(c.profileId, 10),
37047 "projectId": strconv.FormatInt(c.projectId, 10),
37048 })
37049 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37050 }
37051
37052
37053
37054
37055
37056
37057
37058
37059 func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) {
37060 gensupport.SetOptions(c.urlParams_, opts...)
37061 res, err := c.doRequest("json")
37062 if res != nil && res.StatusCode == http.StatusNotModified {
37063 if res.Body != nil {
37064 res.Body.Close()
37065 }
37066 return nil, &googleapi.Error{
37067 Code: res.StatusCode,
37068 Header: res.Header,
37069 }
37070 }
37071 if err != nil {
37072 return nil, err
37073 }
37074 defer googleapi.CloseBody(res)
37075 if err := googleapi.CheckResponse(res); err != nil {
37076 return nil, err
37077 }
37078 ret := &OrdersListResponse{
37079 ServerResponse: googleapi.ServerResponse{
37080 Header: res.Header,
37081 HTTPStatusCode: res.StatusCode,
37082 },
37083 }
37084 target := &ret
37085 if err := gensupport.DecodeResponse(target, res); err != nil {
37086 return nil, err
37087 }
37088 return ret, nil
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183 }
37184
37185
37186
37187
37188 func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error {
37189 c.ctx_ = ctx
37190 defer c.PageToken(c.urlParams_.Get("pageToken"))
37191 for {
37192 x, err := c.Do()
37193 if err != nil {
37194 return err
37195 }
37196 if err := f(x); err != nil {
37197 return err
37198 }
37199 if x.NextPageToken == "" {
37200 return nil
37201 }
37202 c.PageToken(x.NextPageToken)
37203 }
37204 }
37205
37206
37207
37208 type PlacementGroupsGetCall struct {
37209 s *Service
37210 profileId int64
37211 id int64
37212 urlParams_ gensupport.URLParams
37213 ifNoneMatch_ string
37214 ctx_ context.Context
37215 header_ http.Header
37216 }
37217
37218
37219 func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall {
37220 c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37221 c.profileId = profileId
37222 c.id = id
37223 return c
37224 }
37225
37226
37227
37228
37229 func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall {
37230 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37231 return c
37232 }
37233
37234
37235
37236
37237
37238
37239 func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall {
37240 c.ifNoneMatch_ = entityTag
37241 return c
37242 }
37243
37244
37245
37246
37247 func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall {
37248 c.ctx_ = ctx
37249 return c
37250 }
37251
37252
37253
37254 func (c *PlacementGroupsGetCall) Header() http.Header {
37255 if c.header_ == nil {
37256 c.header_ = make(http.Header)
37257 }
37258 return c.header_
37259 }
37260
37261 func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) {
37262 reqHeaders := make(http.Header)
37263 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
37264 for k, v := range c.header_ {
37265 reqHeaders[k] = v
37266 }
37267 reqHeaders.Set("User-Agent", c.s.userAgent())
37268 if c.ifNoneMatch_ != "" {
37269 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37270 }
37271 var body io.Reader = nil
37272 c.urlParams_.Set("alt", alt)
37273 c.urlParams_.Set("prettyPrint", "false")
37274 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups/{id}")
37275 urls += "?" + c.urlParams_.Encode()
37276 req, err := http.NewRequest("GET", urls, body)
37277 if err != nil {
37278 return nil, err
37279 }
37280 req.Header = reqHeaders
37281 googleapi.Expand(req.URL, map[string]string{
37282 "profileId": strconv.FormatInt(c.profileId, 10),
37283 "id": strconv.FormatInt(c.id, 10),
37284 })
37285 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37286 }
37287
37288
37289
37290
37291
37292
37293
37294
37295 func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
37296 gensupport.SetOptions(c.urlParams_, opts...)
37297 res, err := c.doRequest("json")
37298 if res != nil && res.StatusCode == http.StatusNotModified {
37299 if res.Body != nil {
37300 res.Body.Close()
37301 }
37302 return nil, &googleapi.Error{
37303 Code: res.StatusCode,
37304 Header: res.Header,
37305 }
37306 }
37307 if err != nil {
37308 return nil, err
37309 }
37310 defer googleapi.CloseBody(res)
37311 if err := googleapi.CheckResponse(res); err != nil {
37312 return nil, err
37313 }
37314 ret := &PlacementGroup{
37315 ServerResponse: googleapi.ServerResponse{
37316 Header: res.Header,
37317 HTTPStatusCode: res.StatusCode,
37318 },
37319 }
37320 target := &ret
37321 if err := gensupport.DecodeResponse(target, res); err != nil {
37322 return nil, err
37323 }
37324 return ret, nil
37325
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358 }
37359
37360
37361
37362 type PlacementGroupsInsertCall struct {
37363 s *Service
37364 profileId int64
37365 placementgroup *PlacementGroup
37366 urlParams_ gensupport.URLParams
37367 ctx_ context.Context
37368 header_ http.Header
37369 }
37370
37371
37372 func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall {
37373 c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37374 c.profileId = profileId
37375 c.placementgroup = placementgroup
37376 return c
37377 }
37378
37379
37380
37381
37382 func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall {
37383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37384 return c
37385 }
37386
37387
37388
37389
37390 func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall {
37391 c.ctx_ = ctx
37392 return c
37393 }
37394
37395
37396
37397 func (c *PlacementGroupsInsertCall) Header() http.Header {
37398 if c.header_ == nil {
37399 c.header_ = make(http.Header)
37400 }
37401 return c.header_
37402 }
37403
37404 func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
37405 reqHeaders := make(http.Header)
37406 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
37407 for k, v := range c.header_ {
37408 reqHeaders[k] = v
37409 }
37410 reqHeaders.Set("User-Agent", c.s.userAgent())
37411 var body io.Reader = nil
37412 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup)
37413 if err != nil {
37414 return nil, err
37415 }
37416 reqHeaders.Set("Content-Type", "application/json")
37417 c.urlParams_.Set("alt", alt)
37418 c.urlParams_.Set("prettyPrint", "false")
37419 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
37420 urls += "?" + c.urlParams_.Encode()
37421 req, err := http.NewRequest("POST", urls, body)
37422 if err != nil {
37423 return nil, err
37424 }
37425 req.Header = reqHeaders
37426 googleapi.Expand(req.URL, map[string]string{
37427 "profileId": strconv.FormatInt(c.profileId, 10),
37428 })
37429 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37430 }
37431
37432
37433
37434
37435
37436
37437
37438
37439 func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
37440 gensupport.SetOptions(c.urlParams_, opts...)
37441 res, err := c.doRequest("json")
37442 if res != nil && res.StatusCode == http.StatusNotModified {
37443 if res.Body != nil {
37444 res.Body.Close()
37445 }
37446 return nil, &googleapi.Error{
37447 Code: res.StatusCode,
37448 Header: res.Header,
37449 }
37450 }
37451 if err != nil {
37452 return nil, err
37453 }
37454 defer googleapi.CloseBody(res)
37455 if err := googleapi.CheckResponse(res); err != nil {
37456 return nil, err
37457 }
37458 ret := &PlacementGroup{
37459 ServerResponse: googleapi.ServerResponse{
37460 Header: res.Header,
37461 HTTPStatusCode: res.StatusCode,
37462 },
37463 }
37464 target := &ret
37465 if err := gensupport.DecodeResponse(target, res); err != nil {
37466 return nil, err
37467 }
37468 return ret, nil
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497 }
37498
37499
37500
37501 type PlacementGroupsListCall struct {
37502 s *Service
37503 profileId int64
37504 urlParams_ gensupport.URLParams
37505 ifNoneMatch_ string
37506 ctx_ context.Context
37507 header_ http.Header
37508 }
37509
37510
37511
37512 func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall {
37513 c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37514 c.profileId = profileId
37515 return c
37516 }
37517
37518
37519
37520 func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall {
37521 var advertiserIds_ []string
37522 for _, v := range advertiserIds {
37523 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
37524 }
37525 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
37526 return c
37527 }
37528
37529
37530
37531
37532 func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall {
37533 c.urlParams_.Set("archived", fmt.Sprint(archived))
37534 return c
37535 }
37536
37537
37538
37539 func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall {
37540 var campaignIds_ []string
37541 for _, v := range campaignIds {
37542 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
37543 }
37544 c.urlParams_.SetMulti("campaignIds", campaignIds_)
37545 return c
37546 }
37547
37548
37549
37550
37551 func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall {
37552 var contentCategoryIds_ []string
37553 for _, v := range contentCategoryIds {
37554 contentCategoryIds_ = append(contentCategoryIds_, fmt.Sprint(v))
37555 }
37556 c.urlParams_.SetMulti("contentCategoryIds", contentCategoryIds_)
37557 return c
37558 }
37559
37560
37561
37562
37563 func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall {
37564 var directorySiteIds_ []string
37565 for _, v := range directorySiteIds {
37566 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
37567 }
37568 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
37569 return c
37570 }
37571
37572
37573
37574 func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall {
37575 var ids_ []string
37576 for _, v := range ids {
37577 ids_ = append(ids_, fmt.Sprint(v))
37578 }
37579 c.urlParams_.SetMulti("ids", ids_)
37580 return c
37581 }
37582
37583
37584
37585
37586 func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall {
37587 c.urlParams_.Set("maxEndDate", maxEndDate)
37588 return c
37589 }
37590
37591
37592
37593 func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall {
37594 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
37595 return c
37596 }
37597
37598
37599
37600
37601 func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGroupsListCall {
37602 c.urlParams_.Set("maxStartDate", maxStartDate)
37603 return c
37604 }
37605
37606
37607
37608
37609 func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall {
37610 c.urlParams_.Set("minEndDate", minEndDate)
37611 return c
37612 }
37613
37614
37615
37616
37617 func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall {
37618 c.urlParams_.Set("minStartDate", minStartDate)
37619 return c
37620 }
37621
37622
37623
37624 func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsListCall {
37625 c.urlParams_.Set("pageToken", pageToken)
37626 return c
37627 }
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641 func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) *PlacementGroupsListCall {
37642 c.urlParams_.Set("placementGroupType", placementGroupType)
37643 return c
37644 }
37645
37646
37647
37648
37649 func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall {
37650 var placementStrategyIds_ []string
37651 for _, v := range placementStrategyIds {
37652 placementStrategyIds_ = append(placementStrategyIds_, fmt.Sprint(v))
37653 }
37654 c.urlParams_.SetMulti("placementStrategyIds", placementStrategyIds_)
37655 return c
37656 }
37657
37658
37659
37660
37661
37662
37663
37664
37665
37666
37667
37668
37669 func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *PlacementGroupsListCall {
37670 c.urlParams_.SetMulti("pricingTypes", append([]string{}, pricingTypes...))
37671 return c
37672 }
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683 func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall {
37684 c.urlParams_.Set("searchString", searchString)
37685 return c
37686 }
37687
37688
37689
37690 func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall {
37691 var siteIds_ []string
37692 for _, v := range siteIds {
37693 siteIds_ = append(siteIds_, fmt.Sprint(v))
37694 }
37695 c.urlParams_.SetMulti("siteIds", siteIds_)
37696 return c
37697 }
37698
37699
37700
37701
37702
37703
37704
37705
37706 func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsListCall {
37707 c.urlParams_.Set("sortField", sortField)
37708 return c
37709 }
37710
37711
37712
37713
37714
37715
37716
37717
37718 func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsListCall {
37719 c.urlParams_.Set("sortOrder", sortOrder)
37720 return c
37721 }
37722
37723
37724
37725
37726 func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall {
37727 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37728 return c
37729 }
37730
37731
37732
37733
37734
37735
37736 func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall {
37737 c.ifNoneMatch_ = entityTag
37738 return c
37739 }
37740
37741
37742
37743
37744 func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall {
37745 c.ctx_ = ctx
37746 return c
37747 }
37748
37749
37750
37751 func (c *PlacementGroupsListCall) Header() http.Header {
37752 if c.header_ == nil {
37753 c.header_ = make(http.Header)
37754 }
37755 return c.header_
37756 }
37757
37758 func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) {
37759 reqHeaders := make(http.Header)
37760 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
37761 for k, v := range c.header_ {
37762 reqHeaders[k] = v
37763 }
37764 reqHeaders.Set("User-Agent", c.s.userAgent())
37765 if c.ifNoneMatch_ != "" {
37766 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37767 }
37768 var body io.Reader = nil
37769 c.urlParams_.Set("alt", alt)
37770 c.urlParams_.Set("prettyPrint", "false")
37771 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
37772 urls += "?" + c.urlParams_.Encode()
37773 req, err := http.NewRequest("GET", urls, body)
37774 if err != nil {
37775 return nil, err
37776 }
37777 req.Header = reqHeaders
37778 googleapi.Expand(req.URL, map[string]string{
37779 "profileId": strconv.FormatInt(c.profileId, 10),
37780 })
37781 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37782 }
37783
37784
37785
37786
37787
37788
37789
37790
37791 func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) {
37792 gensupport.SetOptions(c.urlParams_, opts...)
37793 res, err := c.doRequest("json")
37794 if res != nil && res.StatusCode == http.StatusNotModified {
37795 if res.Body != nil {
37796 res.Body.Close()
37797 }
37798 return nil, &googleapi.Error{
37799 Code: res.StatusCode,
37800 Header: res.Header,
37801 }
37802 }
37803 if err != nil {
37804 return nil, err
37805 }
37806 defer googleapi.CloseBody(res)
37807 if err := googleapi.CheckResponse(res); err != nil {
37808 return nil, err
37809 }
37810 ret := &PlacementGroupsListResponse{
37811 ServerResponse: googleapi.ServerResponse{
37812 Header: res.Header,
37813 HTTPStatusCode: res.StatusCode,
37814 },
37815 }
37816 target := &ret
37817 if err := gensupport.DecodeResponse(target, res); err != nil {
37818 return nil, err
37819 }
37820 return ret, nil
37821
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896
37897
37898
37899
37900
37901
37902
37903
37904
37905
37906
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999
38000
38001
38002 }
38003
38004
38005
38006
38007 func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error {
38008 c.ctx_ = ctx
38009 defer c.PageToken(c.urlParams_.Get("pageToken"))
38010 for {
38011 x, err := c.Do()
38012 if err != nil {
38013 return err
38014 }
38015 if err := f(x); err != nil {
38016 return err
38017 }
38018 if x.NextPageToken == "" {
38019 return nil
38020 }
38021 c.PageToken(x.NextPageToken)
38022 }
38023 }
38024
38025
38026
38027 type PlacementGroupsPatchCall struct {
38028 s *Service
38029 profileId int64
38030 placementgroup *PlacementGroup
38031 urlParams_ gensupport.URLParams
38032 ctx_ context.Context
38033 header_ http.Header
38034 }
38035
38036
38037
38038 func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall {
38039 c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38040 c.profileId = profileId
38041 c.urlParams_.Set("id", fmt.Sprint(id))
38042 c.placementgroup = placementgroup
38043 return c
38044 }
38045
38046
38047
38048
38049 func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall {
38050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38051 return c
38052 }
38053
38054
38055
38056
38057 func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall {
38058 c.ctx_ = ctx
38059 return c
38060 }
38061
38062
38063
38064 func (c *PlacementGroupsPatchCall) Header() http.Header {
38065 if c.header_ == nil {
38066 c.header_ = make(http.Header)
38067 }
38068 return c.header_
38069 }
38070
38071 func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
38072 reqHeaders := make(http.Header)
38073 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
38074 for k, v := range c.header_ {
38075 reqHeaders[k] = v
38076 }
38077 reqHeaders.Set("User-Agent", c.s.userAgent())
38078 var body io.Reader = nil
38079 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup)
38080 if err != nil {
38081 return nil, err
38082 }
38083 reqHeaders.Set("Content-Type", "application/json")
38084 c.urlParams_.Set("alt", alt)
38085 c.urlParams_.Set("prettyPrint", "false")
38086 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
38087 urls += "?" + c.urlParams_.Encode()
38088 req, err := http.NewRequest("PATCH", urls, body)
38089 if err != nil {
38090 return nil, err
38091 }
38092 req.Header = reqHeaders
38093 googleapi.Expand(req.URL, map[string]string{
38094 "profileId": strconv.FormatInt(c.profileId, 10),
38095 })
38096 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38097 }
38098
38099
38100
38101
38102
38103
38104
38105
38106 func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
38107 gensupport.SetOptions(c.urlParams_, opts...)
38108 res, err := c.doRequest("json")
38109 if res != nil && res.StatusCode == http.StatusNotModified {
38110 if res.Body != nil {
38111 res.Body.Close()
38112 }
38113 return nil, &googleapi.Error{
38114 Code: res.StatusCode,
38115 Header: res.Header,
38116 }
38117 }
38118 if err != nil {
38119 return nil, err
38120 }
38121 defer googleapi.CloseBody(res)
38122 if err := googleapi.CheckResponse(res); err != nil {
38123 return nil, err
38124 }
38125 ret := &PlacementGroup{
38126 ServerResponse: googleapi.ServerResponse{
38127 Header: res.Header,
38128 HTTPStatusCode: res.StatusCode,
38129 },
38130 }
38131 target := &ret
38132 if err := gensupport.DecodeResponse(target, res); err != nil {
38133 return nil, err
38134 }
38135 return ret, nil
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172 }
38173
38174
38175
38176 type PlacementGroupsUpdateCall struct {
38177 s *Service
38178 profileId int64
38179 placementgroup *PlacementGroup
38180 urlParams_ gensupport.URLParams
38181 ctx_ context.Context
38182 header_ http.Header
38183 }
38184
38185
38186 func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall {
38187 c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38188 c.profileId = profileId
38189 c.placementgroup = placementgroup
38190 return c
38191 }
38192
38193
38194
38195
38196 func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall {
38197 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38198 return c
38199 }
38200
38201
38202
38203
38204 func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall {
38205 c.ctx_ = ctx
38206 return c
38207 }
38208
38209
38210
38211 func (c *PlacementGroupsUpdateCall) Header() http.Header {
38212 if c.header_ == nil {
38213 c.header_ = make(http.Header)
38214 }
38215 return c.header_
38216 }
38217
38218 func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
38219 reqHeaders := make(http.Header)
38220 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
38221 for k, v := range c.header_ {
38222 reqHeaders[k] = v
38223 }
38224 reqHeaders.Set("User-Agent", c.s.userAgent())
38225 var body io.Reader = nil
38226 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup)
38227 if err != nil {
38228 return nil, err
38229 }
38230 reqHeaders.Set("Content-Type", "application/json")
38231 c.urlParams_.Set("alt", alt)
38232 c.urlParams_.Set("prettyPrint", "false")
38233 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
38234 urls += "?" + c.urlParams_.Encode()
38235 req, err := http.NewRequest("PUT", urls, body)
38236 if err != nil {
38237 return nil, err
38238 }
38239 req.Header = reqHeaders
38240 googleapi.Expand(req.URL, map[string]string{
38241 "profileId": strconv.FormatInt(c.profileId, 10),
38242 })
38243 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38244 }
38245
38246
38247
38248
38249
38250
38251
38252
38253 func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
38254 gensupport.SetOptions(c.urlParams_, opts...)
38255 res, err := c.doRequest("json")
38256 if res != nil && res.StatusCode == http.StatusNotModified {
38257 if res.Body != nil {
38258 res.Body.Close()
38259 }
38260 return nil, &googleapi.Error{
38261 Code: res.StatusCode,
38262 Header: res.Header,
38263 }
38264 }
38265 if err != nil {
38266 return nil, err
38267 }
38268 defer googleapi.CloseBody(res)
38269 if err := googleapi.CheckResponse(res); err != nil {
38270 return nil, err
38271 }
38272 ret := &PlacementGroup{
38273 ServerResponse: googleapi.ServerResponse{
38274 Header: res.Header,
38275 HTTPStatusCode: res.StatusCode,
38276 },
38277 }
38278 target := &ret
38279 if err := gensupport.DecodeResponse(target, res); err != nil {
38280 return nil, err
38281 }
38282 return ret, nil
38283
38284
38285
38286
38287
38288
38289
38290
38291
38292
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302
38303
38304
38305
38306
38307
38308
38309
38310
38311 }
38312
38313
38314
38315 type PlacementStrategiesDeleteCall struct {
38316 s *Service
38317 profileId int64
38318 id int64
38319 urlParams_ gensupport.URLParams
38320 ctx_ context.Context
38321 header_ http.Header
38322 }
38323
38324
38325 func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall {
38326 c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38327 c.profileId = profileId
38328 c.id = id
38329 return c
38330 }
38331
38332
38333
38334
38335 func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall {
38336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38337 return c
38338 }
38339
38340
38341
38342
38343 func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall {
38344 c.ctx_ = ctx
38345 return c
38346 }
38347
38348
38349
38350 func (c *PlacementStrategiesDeleteCall) Header() http.Header {
38351 if c.header_ == nil {
38352 c.header_ = make(http.Header)
38353 }
38354 return c.header_
38355 }
38356
38357 func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) {
38358 reqHeaders := make(http.Header)
38359 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
38360 for k, v := range c.header_ {
38361 reqHeaders[k] = v
38362 }
38363 reqHeaders.Set("User-Agent", c.s.userAgent())
38364 var body io.Reader = nil
38365 c.urlParams_.Set("alt", alt)
38366 c.urlParams_.Set("prettyPrint", "false")
38367 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}")
38368 urls += "?" + c.urlParams_.Encode()
38369 req, err := http.NewRequest("DELETE", urls, body)
38370 if err != nil {
38371 return nil, err
38372 }
38373 req.Header = reqHeaders
38374 googleapi.Expand(req.URL, map[string]string{
38375 "profileId": strconv.FormatInt(c.profileId, 10),
38376 "id": strconv.FormatInt(c.id, 10),
38377 })
38378 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38379 }
38380
38381
38382 func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error {
38383 gensupport.SetOptions(c.urlParams_, opts...)
38384 res, err := c.doRequest("json")
38385 if err != nil {
38386 return err
38387 }
38388 defer googleapi.CloseBody(res)
38389 if err := googleapi.CheckResponse(res); err != nil {
38390 return err
38391 }
38392 return nil
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420
38421
38422
38423 }
38424
38425
38426
38427 type PlacementStrategiesGetCall struct {
38428 s *Service
38429 profileId int64
38430 id int64
38431 urlParams_ gensupport.URLParams
38432 ifNoneMatch_ string
38433 ctx_ context.Context
38434 header_ http.Header
38435 }
38436
38437
38438 func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall {
38439 c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38440 c.profileId = profileId
38441 c.id = id
38442 return c
38443 }
38444
38445
38446
38447
38448 func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall {
38449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38450 return c
38451 }
38452
38453
38454
38455
38456
38457
38458 func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall {
38459 c.ifNoneMatch_ = entityTag
38460 return c
38461 }
38462
38463
38464
38465
38466 func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall {
38467 c.ctx_ = ctx
38468 return c
38469 }
38470
38471
38472
38473 func (c *PlacementStrategiesGetCall) Header() http.Header {
38474 if c.header_ == nil {
38475 c.header_ = make(http.Header)
38476 }
38477 return c.header_
38478 }
38479
38480 func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) {
38481 reqHeaders := make(http.Header)
38482 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
38483 for k, v := range c.header_ {
38484 reqHeaders[k] = v
38485 }
38486 reqHeaders.Set("User-Agent", c.s.userAgent())
38487 if c.ifNoneMatch_ != "" {
38488 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38489 }
38490 var body io.Reader = nil
38491 c.urlParams_.Set("alt", alt)
38492 c.urlParams_.Set("prettyPrint", "false")
38493 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}")
38494 urls += "?" + c.urlParams_.Encode()
38495 req, err := http.NewRequest("GET", urls, body)
38496 if err != nil {
38497 return nil, err
38498 }
38499 req.Header = reqHeaders
38500 googleapi.Expand(req.URL, map[string]string{
38501 "profileId": strconv.FormatInt(c.profileId, 10),
38502 "id": strconv.FormatInt(c.id, 10),
38503 })
38504 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38505 }
38506
38507
38508
38509
38510
38511
38512
38513
38514 func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
38515 gensupport.SetOptions(c.urlParams_, opts...)
38516 res, err := c.doRequest("json")
38517 if res != nil && res.StatusCode == http.StatusNotModified {
38518 if res.Body != nil {
38519 res.Body.Close()
38520 }
38521 return nil, &googleapi.Error{
38522 Code: res.StatusCode,
38523 Header: res.Header,
38524 }
38525 }
38526 if err != nil {
38527 return nil, err
38528 }
38529 defer googleapi.CloseBody(res)
38530 if err := googleapi.CheckResponse(res); err != nil {
38531 return nil, err
38532 }
38533 ret := &PlacementStrategy{
38534 ServerResponse: googleapi.ServerResponse{
38535 Header: res.Header,
38536 HTTPStatusCode: res.StatusCode,
38537 },
38538 }
38539 target := &ret
38540 if err := gensupport.DecodeResponse(target, res); err != nil {
38541 return nil, err
38542 }
38543 return ret, nil
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577 }
38578
38579
38580
38581 type PlacementStrategiesInsertCall struct {
38582 s *Service
38583 profileId int64
38584 placementstrategy *PlacementStrategy
38585 urlParams_ gensupport.URLParams
38586 ctx_ context.Context
38587 header_ http.Header
38588 }
38589
38590
38591 func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall {
38592 c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38593 c.profileId = profileId
38594 c.placementstrategy = placementstrategy
38595 return c
38596 }
38597
38598
38599
38600
38601 func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall {
38602 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38603 return c
38604 }
38605
38606
38607
38608
38609 func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall {
38610 c.ctx_ = ctx
38611 return c
38612 }
38613
38614
38615
38616 func (c *PlacementStrategiesInsertCall) Header() http.Header {
38617 if c.header_ == nil {
38618 c.header_ = make(http.Header)
38619 }
38620 return c.header_
38621 }
38622
38623 func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) {
38624 reqHeaders := make(http.Header)
38625 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
38626 for k, v := range c.header_ {
38627 reqHeaders[k] = v
38628 }
38629 reqHeaders.Set("User-Agent", c.s.userAgent())
38630 var body io.Reader = nil
38631 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy)
38632 if err != nil {
38633 return nil, err
38634 }
38635 reqHeaders.Set("Content-Type", "application/json")
38636 c.urlParams_.Set("alt", alt)
38637 c.urlParams_.Set("prettyPrint", "false")
38638 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
38639 urls += "?" + c.urlParams_.Encode()
38640 req, err := http.NewRequest("POST", urls, body)
38641 if err != nil {
38642 return nil, err
38643 }
38644 req.Header = reqHeaders
38645 googleapi.Expand(req.URL, map[string]string{
38646 "profileId": strconv.FormatInt(c.profileId, 10),
38647 })
38648 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38649 }
38650
38651
38652
38653
38654
38655
38656
38657
38658 func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
38659 gensupport.SetOptions(c.urlParams_, opts...)
38660 res, err := c.doRequest("json")
38661 if res != nil && res.StatusCode == http.StatusNotModified {
38662 if res.Body != nil {
38663 res.Body.Close()
38664 }
38665 return nil, &googleapi.Error{
38666 Code: res.StatusCode,
38667 Header: res.Header,
38668 }
38669 }
38670 if err != nil {
38671 return nil, err
38672 }
38673 defer googleapi.CloseBody(res)
38674 if err := googleapi.CheckResponse(res); err != nil {
38675 return nil, err
38676 }
38677 ret := &PlacementStrategy{
38678 ServerResponse: googleapi.ServerResponse{
38679 Header: res.Header,
38680 HTTPStatusCode: res.StatusCode,
38681 },
38682 }
38683 target := &ret
38684 if err := gensupport.DecodeResponse(target, res); err != nil {
38685 return nil, err
38686 }
38687 return ret, nil
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716 }
38717
38718
38719
38720 type PlacementStrategiesListCall struct {
38721 s *Service
38722 profileId int64
38723 urlParams_ gensupport.URLParams
38724 ifNoneMatch_ string
38725 ctx_ context.Context
38726 header_ http.Header
38727 }
38728
38729
38730
38731 func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall {
38732 c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38733 c.profileId = profileId
38734 return c
38735 }
38736
38737
38738
38739 func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall {
38740 var ids_ []string
38741 for _, v := range ids {
38742 ids_ = append(ids_, fmt.Sprint(v))
38743 }
38744 c.urlParams_.SetMulti("ids", ids_)
38745 return c
38746 }
38747
38748
38749
38750 func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall {
38751 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
38752 return c
38753 }
38754
38755
38756
38757 func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStrategiesListCall {
38758 c.urlParams_.Set("pageToken", pageToken)
38759 return c
38760 }
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771 func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall {
38772 c.urlParams_.Set("searchString", searchString)
38773 return c
38774 }
38775
38776
38777
38778
38779
38780
38781
38782
38783 func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStrategiesListCall {
38784 c.urlParams_.Set("sortField", sortField)
38785 return c
38786 }
38787
38788
38789
38790
38791
38792
38793
38794
38795 func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStrategiesListCall {
38796 c.urlParams_.Set("sortOrder", sortOrder)
38797 return c
38798 }
38799
38800
38801
38802
38803 func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall {
38804 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38805 return c
38806 }
38807
38808
38809
38810
38811
38812
38813 func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall {
38814 c.ifNoneMatch_ = entityTag
38815 return c
38816 }
38817
38818
38819
38820
38821 func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall {
38822 c.ctx_ = ctx
38823 return c
38824 }
38825
38826
38827
38828 func (c *PlacementStrategiesListCall) Header() http.Header {
38829 if c.header_ == nil {
38830 c.header_ = make(http.Header)
38831 }
38832 return c.header_
38833 }
38834
38835 func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) {
38836 reqHeaders := make(http.Header)
38837 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
38838 for k, v := range c.header_ {
38839 reqHeaders[k] = v
38840 }
38841 reqHeaders.Set("User-Agent", c.s.userAgent())
38842 if c.ifNoneMatch_ != "" {
38843 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38844 }
38845 var body io.Reader = nil
38846 c.urlParams_.Set("alt", alt)
38847 c.urlParams_.Set("prettyPrint", "false")
38848 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
38849 urls += "?" + c.urlParams_.Encode()
38850 req, err := http.NewRequest("GET", urls, body)
38851 if err != nil {
38852 return nil, err
38853 }
38854 req.Header = reqHeaders
38855 googleapi.Expand(req.URL, map[string]string{
38856 "profileId": strconv.FormatInt(c.profileId, 10),
38857 })
38858 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38859 }
38860
38861
38862
38863
38864
38865
38866
38867
38868 func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) {
38869 gensupport.SetOptions(c.urlParams_, opts...)
38870 res, err := c.doRequest("json")
38871 if res != nil && res.StatusCode == http.StatusNotModified {
38872 if res.Body != nil {
38873 res.Body.Close()
38874 }
38875 return nil, &googleapi.Error{
38876 Code: res.StatusCode,
38877 Header: res.Header,
38878 }
38879 }
38880 if err != nil {
38881 return nil, err
38882 }
38883 defer googleapi.CloseBody(res)
38884 if err := googleapi.CheckResponse(res); err != nil {
38885 return nil, err
38886 }
38887 ret := &PlacementStrategiesListResponse{
38888 ServerResponse: googleapi.ServerResponse{
38889 Header: res.Header,
38890 HTTPStatusCode: res.StatusCode,
38891 },
38892 }
38893 target := &ret
38894 if err := gensupport.DecodeResponse(target, res); err != nil {
38895 return nil, err
38896 }
38897 return ret, nil
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977 }
38978
38979
38980
38981
38982 func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error {
38983 c.ctx_ = ctx
38984 defer c.PageToken(c.urlParams_.Get("pageToken"))
38985 for {
38986 x, err := c.Do()
38987 if err != nil {
38988 return err
38989 }
38990 if err := f(x); err != nil {
38991 return err
38992 }
38993 if x.NextPageToken == "" {
38994 return nil
38995 }
38996 c.PageToken(x.NextPageToken)
38997 }
38998 }
38999
39000
39001
39002 type PlacementStrategiesPatchCall struct {
39003 s *Service
39004 profileId int64
39005 placementstrategy *PlacementStrategy
39006 urlParams_ gensupport.URLParams
39007 ctx_ context.Context
39008 header_ http.Header
39009 }
39010
39011
39012
39013 func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall {
39014 c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39015 c.profileId = profileId
39016 c.urlParams_.Set("id", fmt.Sprint(id))
39017 c.placementstrategy = placementstrategy
39018 return c
39019 }
39020
39021
39022
39023
39024 func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall {
39025 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39026 return c
39027 }
39028
39029
39030
39031
39032 func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall {
39033 c.ctx_ = ctx
39034 return c
39035 }
39036
39037
39038
39039 func (c *PlacementStrategiesPatchCall) Header() http.Header {
39040 if c.header_ == nil {
39041 c.header_ = make(http.Header)
39042 }
39043 return c.header_
39044 }
39045
39046 func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) {
39047 reqHeaders := make(http.Header)
39048 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
39049 for k, v := range c.header_ {
39050 reqHeaders[k] = v
39051 }
39052 reqHeaders.Set("User-Agent", c.s.userAgent())
39053 var body io.Reader = nil
39054 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy)
39055 if err != nil {
39056 return nil, err
39057 }
39058 reqHeaders.Set("Content-Type", "application/json")
39059 c.urlParams_.Set("alt", alt)
39060 c.urlParams_.Set("prettyPrint", "false")
39061 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
39062 urls += "?" + c.urlParams_.Encode()
39063 req, err := http.NewRequest("PATCH", urls, body)
39064 if err != nil {
39065 return nil, err
39066 }
39067 req.Header = reqHeaders
39068 googleapi.Expand(req.URL, map[string]string{
39069 "profileId": strconv.FormatInt(c.profileId, 10),
39070 })
39071 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39072 }
39073
39074
39075
39076
39077
39078
39079
39080
39081 func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
39082 gensupport.SetOptions(c.urlParams_, opts...)
39083 res, err := c.doRequest("json")
39084 if res != nil && res.StatusCode == http.StatusNotModified {
39085 if res.Body != nil {
39086 res.Body.Close()
39087 }
39088 return nil, &googleapi.Error{
39089 Code: res.StatusCode,
39090 Header: res.Header,
39091 }
39092 }
39093 if err != nil {
39094 return nil, err
39095 }
39096 defer googleapi.CloseBody(res)
39097 if err := googleapi.CheckResponse(res); err != nil {
39098 return nil, err
39099 }
39100 ret := &PlacementStrategy{
39101 ServerResponse: googleapi.ServerResponse{
39102 Header: res.Header,
39103 HTTPStatusCode: res.StatusCode,
39104 },
39105 }
39106 target := &ret
39107 if err := gensupport.DecodeResponse(target, res); err != nil {
39108 return nil, err
39109 }
39110 return ret, nil
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147 }
39148
39149
39150
39151 type PlacementStrategiesUpdateCall struct {
39152 s *Service
39153 profileId int64
39154 placementstrategy *PlacementStrategy
39155 urlParams_ gensupport.URLParams
39156 ctx_ context.Context
39157 header_ http.Header
39158 }
39159
39160
39161 func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall {
39162 c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39163 c.profileId = profileId
39164 c.placementstrategy = placementstrategy
39165 return c
39166 }
39167
39168
39169
39170
39171 func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall {
39172 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39173 return c
39174 }
39175
39176
39177
39178
39179 func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall {
39180 c.ctx_ = ctx
39181 return c
39182 }
39183
39184
39185
39186 func (c *PlacementStrategiesUpdateCall) Header() http.Header {
39187 if c.header_ == nil {
39188 c.header_ = make(http.Header)
39189 }
39190 return c.header_
39191 }
39192
39193 func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) {
39194 reqHeaders := make(http.Header)
39195 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
39196 for k, v := range c.header_ {
39197 reqHeaders[k] = v
39198 }
39199 reqHeaders.Set("User-Agent", c.s.userAgent())
39200 var body io.Reader = nil
39201 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy)
39202 if err != nil {
39203 return nil, err
39204 }
39205 reqHeaders.Set("Content-Type", "application/json")
39206 c.urlParams_.Set("alt", alt)
39207 c.urlParams_.Set("prettyPrint", "false")
39208 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
39209 urls += "?" + c.urlParams_.Encode()
39210 req, err := http.NewRequest("PUT", urls, body)
39211 if err != nil {
39212 return nil, err
39213 }
39214 req.Header = reqHeaders
39215 googleapi.Expand(req.URL, map[string]string{
39216 "profileId": strconv.FormatInt(c.profileId, 10),
39217 })
39218 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39219 }
39220
39221
39222
39223
39224
39225
39226
39227
39228 func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
39229 gensupport.SetOptions(c.urlParams_, opts...)
39230 res, err := c.doRequest("json")
39231 if res != nil && res.StatusCode == http.StatusNotModified {
39232 if res.Body != nil {
39233 res.Body.Close()
39234 }
39235 return nil, &googleapi.Error{
39236 Code: res.StatusCode,
39237 Header: res.Header,
39238 }
39239 }
39240 if err != nil {
39241 return nil, err
39242 }
39243 defer googleapi.CloseBody(res)
39244 if err := googleapi.CheckResponse(res); err != nil {
39245 return nil, err
39246 }
39247 ret := &PlacementStrategy{
39248 ServerResponse: googleapi.ServerResponse{
39249 Header: res.Header,
39250 HTTPStatusCode: res.StatusCode,
39251 },
39252 }
39253 target := &ret
39254 if err := gensupport.DecodeResponse(target, res); err != nil {
39255 return nil, err
39256 }
39257 return ret, nil
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286 }
39287
39288
39289
39290 type PlacementsGeneratetagsCall struct {
39291 s *Service
39292 profileId int64
39293 urlParams_ gensupport.URLParams
39294 ctx_ context.Context
39295 header_ http.Header
39296 }
39297
39298
39299 func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall {
39300 c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39301 c.profileId = profileId
39302 return c
39303 }
39304
39305
39306
39307 func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall {
39308 c.urlParams_.Set("campaignId", fmt.Sprint(campaignId))
39309 return c
39310 }
39311
39312
39313
39314 func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall {
39315 var placementIds_ []string
39316 for _, v := range placementIds {
39317 placementIds_ = append(placementIds_, fmt.Sprint(v))
39318 }
39319 c.urlParams_.SetMulti("placementIds", placementIds_)
39320 return c
39321 }
39322
39323
39324
39325
39326
39327
39328
39329
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350 func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *PlacementsGeneratetagsCall {
39351 c.urlParams_.SetMulti("tagFormats", append([]string{}, tagFormats...))
39352 return c
39353 }
39354
39355
39356
39357
39358 func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall {
39359 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39360 return c
39361 }
39362
39363
39364
39365
39366 func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall {
39367 c.ctx_ = ctx
39368 return c
39369 }
39370
39371
39372
39373 func (c *PlacementsGeneratetagsCall) Header() http.Header {
39374 if c.header_ == nil {
39375 c.header_ = make(http.Header)
39376 }
39377 return c.header_
39378 }
39379
39380 func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) {
39381 reqHeaders := make(http.Header)
39382 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
39383 for k, v := range c.header_ {
39384 reqHeaders[k] = v
39385 }
39386 reqHeaders.Set("User-Agent", c.s.userAgent())
39387 var body io.Reader = nil
39388 c.urlParams_.Set("alt", alt)
39389 c.urlParams_.Set("prettyPrint", "false")
39390 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/generatetags")
39391 urls += "?" + c.urlParams_.Encode()
39392 req, err := http.NewRequest("POST", urls, body)
39393 if err != nil {
39394 return nil, err
39395 }
39396 req.Header = reqHeaders
39397 googleapi.Expand(req.URL, map[string]string{
39398 "profileId": strconv.FormatInt(c.profileId, 10),
39399 })
39400 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39401 }
39402
39403
39404
39405
39406
39407
39408
39409
39410 func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) {
39411 gensupport.SetOptions(c.urlParams_, opts...)
39412 res, err := c.doRequest("json")
39413 if res != nil && res.StatusCode == http.StatusNotModified {
39414 if res.Body != nil {
39415 res.Body.Close()
39416 }
39417 return nil, &googleapi.Error{
39418 Code: res.StatusCode,
39419 Header: res.Header,
39420 }
39421 }
39422 if err != nil {
39423 return nil, err
39424 }
39425 defer googleapi.CloseBody(res)
39426 if err := googleapi.CheckResponse(res); err != nil {
39427 return nil, err
39428 }
39429 ret := &PlacementsGenerateTagsResponse{
39430 ServerResponse: googleapi.ServerResponse{
39431 Header: res.Header,
39432 HTTPStatusCode: res.StatusCode,
39433 },
39434 }
39435 target := &ret
39436 if err := gensupport.DecodeResponse(target, res); err != nil {
39437 return nil, err
39438 }
39439 return ret, nil
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526 }
39527
39528
39529
39530 type PlacementsGetCall struct {
39531 s *Service
39532 profileId int64
39533 id int64
39534 urlParams_ gensupport.URLParams
39535 ifNoneMatch_ string
39536 ctx_ context.Context
39537 header_ http.Header
39538 }
39539
39540
39541 func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall {
39542 c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39543 c.profileId = profileId
39544 c.id = id
39545 return c
39546 }
39547
39548
39549
39550
39551 func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall {
39552 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39553 return c
39554 }
39555
39556
39557
39558
39559
39560
39561 func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall {
39562 c.ifNoneMatch_ = entityTag
39563 return c
39564 }
39565
39566
39567
39568
39569 func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall {
39570 c.ctx_ = ctx
39571 return c
39572 }
39573
39574
39575
39576 func (c *PlacementsGetCall) Header() http.Header {
39577 if c.header_ == nil {
39578 c.header_ = make(http.Header)
39579 }
39580 return c.header_
39581 }
39582
39583 func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) {
39584 reqHeaders := make(http.Header)
39585 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
39586 for k, v := range c.header_ {
39587 reqHeaders[k] = v
39588 }
39589 reqHeaders.Set("User-Agent", c.s.userAgent())
39590 if c.ifNoneMatch_ != "" {
39591 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39592 }
39593 var body io.Reader = nil
39594 c.urlParams_.Set("alt", alt)
39595 c.urlParams_.Set("prettyPrint", "false")
39596 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/{id}")
39597 urls += "?" + c.urlParams_.Encode()
39598 req, err := http.NewRequest("GET", urls, body)
39599 if err != nil {
39600 return nil, err
39601 }
39602 req.Header = reqHeaders
39603 googleapi.Expand(req.URL, map[string]string{
39604 "profileId": strconv.FormatInt(c.profileId, 10),
39605 "id": strconv.FormatInt(c.id, 10),
39606 })
39607 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39608 }
39609
39610
39611
39612
39613
39614
39615
39616
39617 func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
39618 gensupport.SetOptions(c.urlParams_, opts...)
39619 res, err := c.doRequest("json")
39620 if res != nil && res.StatusCode == http.StatusNotModified {
39621 if res.Body != nil {
39622 res.Body.Close()
39623 }
39624 return nil, &googleapi.Error{
39625 Code: res.StatusCode,
39626 Header: res.Header,
39627 }
39628 }
39629 if err != nil {
39630 return nil, err
39631 }
39632 defer googleapi.CloseBody(res)
39633 if err := googleapi.CheckResponse(res); err != nil {
39634 return nil, err
39635 }
39636 ret := &Placement{
39637 ServerResponse: googleapi.ServerResponse{
39638 Header: res.Header,
39639 HTTPStatusCode: res.StatusCode,
39640 },
39641 }
39642 target := &ret
39643 if err := gensupport.DecodeResponse(target, res); err != nil {
39644 return nil, err
39645 }
39646 return ret, nil
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
39677
39678
39679
39680 }
39681
39682
39683
39684 type PlacementsInsertCall struct {
39685 s *Service
39686 profileId int64
39687 placement *Placement
39688 urlParams_ gensupport.URLParams
39689 ctx_ context.Context
39690 header_ http.Header
39691 }
39692
39693
39694 func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall {
39695 c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39696 c.profileId = profileId
39697 c.placement = placement
39698 return c
39699 }
39700
39701
39702
39703
39704 func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall {
39705 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39706 return c
39707 }
39708
39709
39710
39711
39712 func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall {
39713 c.ctx_ = ctx
39714 return c
39715 }
39716
39717
39718
39719 func (c *PlacementsInsertCall) Header() http.Header {
39720 if c.header_ == nil {
39721 c.header_ = make(http.Header)
39722 }
39723 return c.header_
39724 }
39725
39726 func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) {
39727 reqHeaders := make(http.Header)
39728 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
39729 for k, v := range c.header_ {
39730 reqHeaders[k] = v
39731 }
39732 reqHeaders.Set("User-Agent", c.s.userAgent())
39733 var body io.Reader = nil
39734 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement)
39735 if err != nil {
39736 return nil, err
39737 }
39738 reqHeaders.Set("Content-Type", "application/json")
39739 c.urlParams_.Set("alt", alt)
39740 c.urlParams_.Set("prettyPrint", "false")
39741 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
39742 urls += "?" + c.urlParams_.Encode()
39743 req, err := http.NewRequest("POST", urls, body)
39744 if err != nil {
39745 return nil, err
39746 }
39747 req.Header = reqHeaders
39748 googleapi.Expand(req.URL, map[string]string{
39749 "profileId": strconv.FormatInt(c.profileId, 10),
39750 })
39751 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39752 }
39753
39754
39755
39756
39757
39758
39759
39760
39761 func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
39762 gensupport.SetOptions(c.urlParams_, opts...)
39763 res, err := c.doRequest("json")
39764 if res != nil && res.StatusCode == http.StatusNotModified {
39765 if res.Body != nil {
39766 res.Body.Close()
39767 }
39768 return nil, &googleapi.Error{
39769 Code: res.StatusCode,
39770 Header: res.Header,
39771 }
39772 }
39773 if err != nil {
39774 return nil, err
39775 }
39776 defer googleapi.CloseBody(res)
39777 if err := googleapi.CheckResponse(res); err != nil {
39778 return nil, err
39779 }
39780 ret := &Placement{
39781 ServerResponse: googleapi.ServerResponse{
39782 Header: res.Header,
39783 HTTPStatusCode: res.StatusCode,
39784 },
39785 }
39786 target := &ret
39787 if err := gensupport.DecodeResponse(target, res); err != nil {
39788 return nil, err
39789 }
39790 return ret, nil
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811
39812
39813
39814
39815
39816
39817
39818
39819 }
39820
39821
39822
39823 type PlacementsListCall struct {
39824 s *Service
39825 profileId int64
39826 urlParams_ gensupport.URLParams
39827 ifNoneMatch_ string
39828 ctx_ context.Context
39829 header_ http.Header
39830 }
39831
39832
39833
39834 func (r *PlacementsService) List(profileId int64) *PlacementsListCall {
39835 c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39836 c.profileId = profileId
39837 return c
39838 }
39839
39840
39841
39842 func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall {
39843 var advertiserIds_ []string
39844 for _, v := range advertiserIds {
39845 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
39846 }
39847 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
39848 return c
39849 }
39850
39851
39852
39853
39854 func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall {
39855 c.urlParams_.Set("archived", fmt.Sprint(archived))
39856 return c
39857 }
39858
39859
39860
39861 func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCall {
39862 var campaignIds_ []string
39863 for _, v := range campaignIds {
39864 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
39865 }
39866 c.urlParams_.SetMulti("campaignIds", campaignIds_)
39867 return c
39868 }
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885 func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *PlacementsListCall {
39886 c.urlParams_.SetMulti("compatibilities", append([]string{}, compatibilities...))
39887 return c
39888 }
39889
39890
39891
39892
39893 func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall {
39894 var contentCategoryIds_ []string
39895 for _, v := range contentCategoryIds {
39896 contentCategoryIds_ = append(contentCategoryIds_, fmt.Sprint(v))
39897 }
39898 c.urlParams_.SetMulti("contentCategoryIds", contentCategoryIds_)
39899 return c
39900 }
39901
39902
39903
39904
39905 func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall {
39906 var directorySiteIds_ []string
39907 for _, v := range directorySiteIds {
39908 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
39909 }
39910 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
39911 return c
39912 }
39913
39914
39915
39916 func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall {
39917 var groupIds_ []string
39918 for _, v := range groupIds {
39919 groupIds_ = append(groupIds_, fmt.Sprint(v))
39920 }
39921 c.urlParams_.SetMulti("groupIds", groupIds_)
39922 return c
39923 }
39924
39925
39926
39927 func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall {
39928 var ids_ []string
39929 for _, v := range ids {
39930 ids_ = append(ids_, fmt.Sprint(v))
39931 }
39932 c.urlParams_.SetMulti("ids", ids_)
39933 return c
39934 }
39935
39936
39937
39938
39939 func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall {
39940 c.urlParams_.Set("maxEndDate", maxEndDate)
39941 return c
39942 }
39943
39944
39945
39946 func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall {
39947 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
39948 return c
39949 }
39950
39951
39952
39953
39954 func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCall {
39955 c.urlParams_.Set("maxStartDate", maxStartDate)
39956 return c
39957 }
39958
39959
39960
39961
39962 func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall {
39963 c.urlParams_.Set("minEndDate", minEndDate)
39964 return c
39965 }
39966
39967
39968
39969
39970 func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall {
39971 c.urlParams_.Set("minStartDate", minStartDate)
39972 return c
39973 }
39974
39975
39976
39977 func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall {
39978 c.urlParams_.Set("pageToken", pageToken)
39979 return c
39980 }
39981
39982
39983
39984
39985
39986
39987
39988
39989 func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsListCall {
39990 c.urlParams_.Set("paymentSource", paymentSource)
39991 return c
39992 }
39993
39994
39995
39996
39997 func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall {
39998 var placementStrategyIds_ []string
39999 for _, v := range placementStrategyIds {
40000 placementStrategyIds_ = append(placementStrategyIds_, fmt.Sprint(v))
40001 }
40002 c.urlParams_.SetMulti("placementStrategyIds", placementStrategyIds_)
40003 return c
40004 }
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017 func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsListCall {
40018 c.urlParams_.SetMulti("pricingTypes", append([]string{}, pricingTypes...))
40019 return c
40020 }
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030 func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall {
40031 c.urlParams_.Set("searchString", searchString)
40032 return c
40033 }
40034
40035
40036
40037 func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall {
40038 var siteIds_ []string
40039 for _, v := range siteIds {
40040 siteIds_ = append(siteIds_, fmt.Sprint(v))
40041 }
40042 c.urlParams_.SetMulti("siteIds", siteIds_)
40043 return c
40044 }
40045
40046
40047
40048 func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall {
40049 var sizeIds_ []string
40050 for _, v := range sizeIds {
40051 sizeIds_ = append(sizeIds_, fmt.Sprint(v))
40052 }
40053 c.urlParams_.SetMulti("sizeIds", sizeIds_)
40054 return c
40055 }
40056
40057
40058
40059
40060
40061
40062
40063
40064 func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall {
40065 c.urlParams_.Set("sortField", sortField)
40066 return c
40067 }
40068
40069
40070
40071
40072
40073
40074
40075
40076 func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall {
40077 c.urlParams_.Set("sortOrder", sortOrder)
40078 return c
40079 }
40080
40081
40082
40083
40084 func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall {
40085 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40086 return c
40087 }
40088
40089
40090
40091
40092
40093
40094 func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall {
40095 c.ifNoneMatch_ = entityTag
40096 return c
40097 }
40098
40099
40100
40101
40102 func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall {
40103 c.ctx_ = ctx
40104 return c
40105 }
40106
40107
40108
40109 func (c *PlacementsListCall) Header() http.Header {
40110 if c.header_ == nil {
40111 c.header_ = make(http.Header)
40112 }
40113 return c.header_
40114 }
40115
40116 func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) {
40117 reqHeaders := make(http.Header)
40118 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
40119 for k, v := range c.header_ {
40120 reqHeaders[k] = v
40121 }
40122 reqHeaders.Set("User-Agent", c.s.userAgent())
40123 if c.ifNoneMatch_ != "" {
40124 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40125 }
40126 var body io.Reader = nil
40127 c.urlParams_.Set("alt", alt)
40128 c.urlParams_.Set("prettyPrint", "false")
40129 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
40130 urls += "?" + c.urlParams_.Encode()
40131 req, err := http.NewRequest("GET", urls, body)
40132 if err != nil {
40133 return nil, err
40134 }
40135 req.Header = reqHeaders
40136 googleapi.Expand(req.URL, map[string]string{
40137 "profileId": strconv.FormatInt(c.profileId, 10),
40138 })
40139 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40140 }
40141
40142
40143
40144
40145
40146
40147
40148
40149 func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) {
40150 gensupport.SetOptions(c.urlParams_, opts...)
40151 res, err := c.doRequest("json")
40152 if res != nil && res.StatusCode == http.StatusNotModified {
40153 if res.Body != nil {
40154 res.Body.Close()
40155 }
40156 return nil, &googleapi.Error{
40157 Code: res.StatusCode,
40158 Header: res.Header,
40159 }
40160 }
40161 if err != nil {
40162 return nil, err
40163 }
40164 defer googleapi.CloseBody(res)
40165 if err := googleapi.CheckResponse(res); err != nil {
40166 return nil, err
40167 }
40168 ret := &PlacementsListResponse{
40169 ServerResponse: googleapi.ServerResponse{
40170 Header: res.Header,
40171 HTTPStatusCode: res.StatusCode,
40172 },
40173 }
40174 target := &ret
40175 if err := gensupport.DecodeResponse(target, res); err != nil {
40176 return nil, err
40177 }
40178 return ret, nil
40179
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232
40233
40234
40235
40236
40237
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262
40263
40264
40265
40266
40267
40268
40269
40270
40271
40272
40273
40274
40275
40276
40277
40278
40279
40280
40281
40282
40283
40284
40285
40286
40287
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297
40298
40299
40300
40301
40302
40303
40304
40305
40306
40307
40308
40309
40310
40311
40312
40313
40314
40315
40316
40317
40318
40319
40320
40321
40322
40323
40324
40325
40326
40327
40328
40329
40330
40331
40332
40333
40334
40335
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
40348
40349
40350
40351
40352
40353
40354
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394 }
40395
40396
40397
40398
40399 func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error {
40400 c.ctx_ = ctx
40401 defer c.PageToken(c.urlParams_.Get("pageToken"))
40402 for {
40403 x, err := c.Do()
40404 if err != nil {
40405 return err
40406 }
40407 if err := f(x); err != nil {
40408 return err
40409 }
40410 if x.NextPageToken == "" {
40411 return nil
40412 }
40413 c.PageToken(x.NextPageToken)
40414 }
40415 }
40416
40417
40418
40419 type PlacementsPatchCall struct {
40420 s *Service
40421 profileId int64
40422 placement *Placement
40423 urlParams_ gensupport.URLParams
40424 ctx_ context.Context
40425 header_ http.Header
40426 }
40427
40428
40429
40430 func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall {
40431 c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40432 c.profileId = profileId
40433 c.urlParams_.Set("id", fmt.Sprint(id))
40434 c.placement = placement
40435 return c
40436 }
40437
40438
40439
40440
40441 func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall {
40442 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40443 return c
40444 }
40445
40446
40447
40448
40449 func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall {
40450 c.ctx_ = ctx
40451 return c
40452 }
40453
40454
40455
40456 func (c *PlacementsPatchCall) Header() http.Header {
40457 if c.header_ == nil {
40458 c.header_ = make(http.Header)
40459 }
40460 return c.header_
40461 }
40462
40463 func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) {
40464 reqHeaders := make(http.Header)
40465 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
40466 for k, v := range c.header_ {
40467 reqHeaders[k] = v
40468 }
40469 reqHeaders.Set("User-Agent", c.s.userAgent())
40470 var body io.Reader = nil
40471 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement)
40472 if err != nil {
40473 return nil, err
40474 }
40475 reqHeaders.Set("Content-Type", "application/json")
40476 c.urlParams_.Set("alt", alt)
40477 c.urlParams_.Set("prettyPrint", "false")
40478 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
40479 urls += "?" + c.urlParams_.Encode()
40480 req, err := http.NewRequest("PATCH", urls, body)
40481 if err != nil {
40482 return nil, err
40483 }
40484 req.Header = reqHeaders
40485 googleapi.Expand(req.URL, map[string]string{
40486 "profileId": strconv.FormatInt(c.profileId, 10),
40487 })
40488 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40489 }
40490
40491
40492
40493
40494
40495
40496
40497
40498 func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
40499 gensupport.SetOptions(c.urlParams_, opts...)
40500 res, err := c.doRequest("json")
40501 if res != nil && res.StatusCode == http.StatusNotModified {
40502 if res.Body != nil {
40503 res.Body.Close()
40504 }
40505 return nil, &googleapi.Error{
40506 Code: res.StatusCode,
40507 Header: res.Header,
40508 }
40509 }
40510 if err != nil {
40511 return nil, err
40512 }
40513 defer googleapi.CloseBody(res)
40514 if err := googleapi.CheckResponse(res); err != nil {
40515 return nil, err
40516 }
40517 ret := &Placement{
40518 ServerResponse: googleapi.ServerResponse{
40519 Header: res.Header,
40520 HTTPStatusCode: res.StatusCode,
40521 },
40522 }
40523 target := &ret
40524 if err := gensupport.DecodeResponse(target, res); err != nil {
40525 return nil, err
40526 }
40527 return ret, nil
40528
40529
40530
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540
40541
40542
40543
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
40563
40564 }
40565
40566
40567
40568 type PlacementsUpdateCall struct {
40569 s *Service
40570 profileId int64
40571 placement *Placement
40572 urlParams_ gensupport.URLParams
40573 ctx_ context.Context
40574 header_ http.Header
40575 }
40576
40577
40578 func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall {
40579 c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40580 c.profileId = profileId
40581 c.placement = placement
40582 return c
40583 }
40584
40585
40586
40587
40588 func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall {
40589 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40590 return c
40591 }
40592
40593
40594
40595
40596 func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall {
40597 c.ctx_ = ctx
40598 return c
40599 }
40600
40601
40602
40603 func (c *PlacementsUpdateCall) Header() http.Header {
40604 if c.header_ == nil {
40605 c.header_ = make(http.Header)
40606 }
40607 return c.header_
40608 }
40609
40610 func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) {
40611 reqHeaders := make(http.Header)
40612 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
40613 for k, v := range c.header_ {
40614 reqHeaders[k] = v
40615 }
40616 reqHeaders.Set("User-Agent", c.s.userAgent())
40617 var body io.Reader = nil
40618 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement)
40619 if err != nil {
40620 return nil, err
40621 }
40622 reqHeaders.Set("Content-Type", "application/json")
40623 c.urlParams_.Set("alt", alt)
40624 c.urlParams_.Set("prettyPrint", "false")
40625 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
40626 urls += "?" + c.urlParams_.Encode()
40627 req, err := http.NewRequest("PUT", urls, body)
40628 if err != nil {
40629 return nil, err
40630 }
40631 req.Header = reqHeaders
40632 googleapi.Expand(req.URL, map[string]string{
40633 "profileId": strconv.FormatInt(c.profileId, 10),
40634 })
40635 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40636 }
40637
40638
40639
40640
40641
40642
40643
40644
40645 func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
40646 gensupport.SetOptions(c.urlParams_, opts...)
40647 res, err := c.doRequest("json")
40648 if res != nil && res.StatusCode == http.StatusNotModified {
40649 if res.Body != nil {
40650 res.Body.Close()
40651 }
40652 return nil, &googleapi.Error{
40653 Code: res.StatusCode,
40654 Header: res.Header,
40655 }
40656 }
40657 if err != nil {
40658 return nil, err
40659 }
40660 defer googleapi.CloseBody(res)
40661 if err := googleapi.CheckResponse(res); err != nil {
40662 return nil, err
40663 }
40664 ret := &Placement{
40665 ServerResponse: googleapi.ServerResponse{
40666 Header: res.Header,
40667 HTTPStatusCode: res.StatusCode,
40668 },
40669 }
40670 target := &ret
40671 if err := gensupport.DecodeResponse(target, res); err != nil {
40672 return nil, err
40673 }
40674 return ret, nil
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703 }
40704
40705
40706
40707 type PlatformTypesGetCall struct {
40708 s *Service
40709 profileId int64
40710 id int64
40711 urlParams_ gensupport.URLParams
40712 ifNoneMatch_ string
40713 ctx_ context.Context
40714 header_ http.Header
40715 }
40716
40717
40718 func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall {
40719 c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40720 c.profileId = profileId
40721 c.id = id
40722 return c
40723 }
40724
40725
40726
40727
40728 func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall {
40729 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40730 return c
40731 }
40732
40733
40734
40735
40736
40737
40738 func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall {
40739 c.ifNoneMatch_ = entityTag
40740 return c
40741 }
40742
40743
40744
40745
40746 func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall {
40747 c.ctx_ = ctx
40748 return c
40749 }
40750
40751
40752
40753 func (c *PlatformTypesGetCall) Header() http.Header {
40754 if c.header_ == nil {
40755 c.header_ = make(http.Header)
40756 }
40757 return c.header_
40758 }
40759
40760 func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) {
40761 reqHeaders := make(http.Header)
40762 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
40763 for k, v := range c.header_ {
40764 reqHeaders[k] = v
40765 }
40766 reqHeaders.Set("User-Agent", c.s.userAgent())
40767 if c.ifNoneMatch_ != "" {
40768 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40769 }
40770 var body io.Reader = nil
40771 c.urlParams_.Set("alt", alt)
40772 c.urlParams_.Set("prettyPrint", "false")
40773 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes/{id}")
40774 urls += "?" + c.urlParams_.Encode()
40775 req, err := http.NewRequest("GET", urls, body)
40776 if err != nil {
40777 return nil, err
40778 }
40779 req.Header = reqHeaders
40780 googleapi.Expand(req.URL, map[string]string{
40781 "profileId": strconv.FormatInt(c.profileId, 10),
40782 "id": strconv.FormatInt(c.id, 10),
40783 })
40784 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40785 }
40786
40787
40788
40789
40790
40791
40792
40793
40794 func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) {
40795 gensupport.SetOptions(c.urlParams_, opts...)
40796 res, err := c.doRequest("json")
40797 if res != nil && res.StatusCode == http.StatusNotModified {
40798 if res.Body != nil {
40799 res.Body.Close()
40800 }
40801 return nil, &googleapi.Error{
40802 Code: res.StatusCode,
40803 Header: res.Header,
40804 }
40805 }
40806 if err != nil {
40807 return nil, err
40808 }
40809 defer googleapi.CloseBody(res)
40810 if err := googleapi.CheckResponse(res); err != nil {
40811 return nil, err
40812 }
40813 ret := &PlatformType{
40814 ServerResponse: googleapi.ServerResponse{
40815 Header: res.Header,
40816 HTTPStatusCode: res.StatusCode,
40817 },
40818 }
40819 target := &ret
40820 if err := gensupport.DecodeResponse(target, res); err != nil {
40821 return nil, err
40822 }
40823 return ret, nil
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857 }
40858
40859
40860
40861 type PlatformTypesListCall struct {
40862 s *Service
40863 profileId int64
40864 urlParams_ gensupport.URLParams
40865 ifNoneMatch_ string
40866 ctx_ context.Context
40867 header_ http.Header
40868 }
40869
40870
40871 func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall {
40872 c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40873 c.profileId = profileId
40874 return c
40875 }
40876
40877
40878
40879
40880 func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall {
40881 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40882 return c
40883 }
40884
40885
40886
40887
40888
40889
40890 func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall {
40891 c.ifNoneMatch_ = entityTag
40892 return c
40893 }
40894
40895
40896
40897
40898 func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall {
40899 c.ctx_ = ctx
40900 return c
40901 }
40902
40903
40904
40905 func (c *PlatformTypesListCall) Header() http.Header {
40906 if c.header_ == nil {
40907 c.header_ = make(http.Header)
40908 }
40909 return c.header_
40910 }
40911
40912 func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) {
40913 reqHeaders := make(http.Header)
40914 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
40915 for k, v := range c.header_ {
40916 reqHeaders[k] = v
40917 }
40918 reqHeaders.Set("User-Agent", c.s.userAgent())
40919 if c.ifNoneMatch_ != "" {
40920 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40921 }
40922 var body io.Reader = nil
40923 c.urlParams_.Set("alt", alt)
40924 c.urlParams_.Set("prettyPrint", "false")
40925 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes")
40926 urls += "?" + c.urlParams_.Encode()
40927 req, err := http.NewRequest("GET", urls, body)
40928 if err != nil {
40929 return nil, err
40930 }
40931 req.Header = reqHeaders
40932 googleapi.Expand(req.URL, map[string]string{
40933 "profileId": strconv.FormatInt(c.profileId, 10),
40934 })
40935 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40936 }
40937
40938
40939
40940
40941
40942
40943
40944
40945 func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) {
40946 gensupport.SetOptions(c.urlParams_, opts...)
40947 res, err := c.doRequest("json")
40948 if res != nil && res.StatusCode == http.StatusNotModified {
40949 if res.Body != nil {
40950 res.Body.Close()
40951 }
40952 return nil, &googleapi.Error{
40953 Code: res.StatusCode,
40954 Header: res.Header,
40955 }
40956 }
40957 if err != nil {
40958 return nil, err
40959 }
40960 defer googleapi.CloseBody(res)
40961 if err := googleapi.CheckResponse(res); err != nil {
40962 return nil, err
40963 }
40964 ret := &PlatformTypesListResponse{
40965 ServerResponse: googleapi.ServerResponse{
40966 Header: res.Header,
40967 HTTPStatusCode: res.StatusCode,
40968 },
40969 }
40970 target := &ret
40971 if err := gensupport.DecodeResponse(target, res); err != nil {
40972 return nil, err
40973 }
40974 return ret, nil
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000 }
41001
41002
41003
41004 type PostalCodesGetCall struct {
41005 s *Service
41006 profileId int64
41007 code string
41008 urlParams_ gensupport.URLParams
41009 ifNoneMatch_ string
41010 ctx_ context.Context
41011 header_ http.Header
41012 }
41013
41014
41015 func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall {
41016 c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41017 c.profileId = profileId
41018 c.code = code
41019 return c
41020 }
41021
41022
41023
41024
41025 func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall {
41026 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41027 return c
41028 }
41029
41030
41031
41032
41033
41034
41035 func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall {
41036 c.ifNoneMatch_ = entityTag
41037 return c
41038 }
41039
41040
41041
41042
41043 func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall {
41044 c.ctx_ = ctx
41045 return c
41046 }
41047
41048
41049
41050 func (c *PostalCodesGetCall) Header() http.Header {
41051 if c.header_ == nil {
41052 c.header_ = make(http.Header)
41053 }
41054 return c.header_
41055 }
41056
41057 func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) {
41058 reqHeaders := make(http.Header)
41059 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
41060 for k, v := range c.header_ {
41061 reqHeaders[k] = v
41062 }
41063 reqHeaders.Set("User-Agent", c.s.userAgent())
41064 if c.ifNoneMatch_ != "" {
41065 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41066 }
41067 var body io.Reader = nil
41068 c.urlParams_.Set("alt", alt)
41069 c.urlParams_.Set("prettyPrint", "false")
41070 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes/{code}")
41071 urls += "?" + c.urlParams_.Encode()
41072 req, err := http.NewRequest("GET", urls, body)
41073 if err != nil {
41074 return nil, err
41075 }
41076 req.Header = reqHeaders
41077 googleapi.Expand(req.URL, map[string]string{
41078 "profileId": strconv.FormatInt(c.profileId, 10),
41079 "code": c.code,
41080 })
41081 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41082 }
41083
41084
41085
41086
41087
41088
41089
41090
41091 func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) {
41092 gensupport.SetOptions(c.urlParams_, opts...)
41093 res, err := c.doRequest("json")
41094 if res != nil && res.StatusCode == http.StatusNotModified {
41095 if res.Body != nil {
41096 res.Body.Close()
41097 }
41098 return nil, &googleapi.Error{
41099 Code: res.StatusCode,
41100 Header: res.Header,
41101 }
41102 }
41103 if err != nil {
41104 return nil, err
41105 }
41106 defer googleapi.CloseBody(res)
41107 if err := googleapi.CheckResponse(res); err != nil {
41108 return nil, err
41109 }
41110 ret := &PostalCode{
41111 ServerResponse: googleapi.ServerResponse{
41112 Header: res.Header,
41113 HTTPStatusCode: res.StatusCode,
41114 },
41115 }
41116 target := &ret
41117 if err := gensupport.DecodeResponse(target, res); err != nil {
41118 return nil, err
41119 }
41120 return ret, nil
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153 }
41154
41155
41156
41157 type PostalCodesListCall struct {
41158 s *Service
41159 profileId int64
41160 urlParams_ gensupport.URLParams
41161 ifNoneMatch_ string
41162 ctx_ context.Context
41163 header_ http.Header
41164 }
41165
41166
41167 func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall {
41168 c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41169 c.profileId = profileId
41170 return c
41171 }
41172
41173
41174
41175
41176 func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall {
41177 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41178 return c
41179 }
41180
41181
41182
41183
41184
41185
41186 func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall {
41187 c.ifNoneMatch_ = entityTag
41188 return c
41189 }
41190
41191
41192
41193
41194 func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall {
41195 c.ctx_ = ctx
41196 return c
41197 }
41198
41199
41200
41201 func (c *PostalCodesListCall) Header() http.Header {
41202 if c.header_ == nil {
41203 c.header_ = make(http.Header)
41204 }
41205 return c.header_
41206 }
41207
41208 func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) {
41209 reqHeaders := make(http.Header)
41210 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
41211 for k, v := range c.header_ {
41212 reqHeaders[k] = v
41213 }
41214 reqHeaders.Set("User-Agent", c.s.userAgent())
41215 if c.ifNoneMatch_ != "" {
41216 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41217 }
41218 var body io.Reader = nil
41219 c.urlParams_.Set("alt", alt)
41220 c.urlParams_.Set("prettyPrint", "false")
41221 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes")
41222 urls += "?" + c.urlParams_.Encode()
41223 req, err := http.NewRequest("GET", urls, body)
41224 if err != nil {
41225 return nil, err
41226 }
41227 req.Header = reqHeaders
41228 googleapi.Expand(req.URL, map[string]string{
41229 "profileId": strconv.FormatInt(c.profileId, 10),
41230 })
41231 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41232 }
41233
41234
41235
41236
41237
41238
41239
41240
41241 func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) {
41242 gensupport.SetOptions(c.urlParams_, opts...)
41243 res, err := c.doRequest("json")
41244 if res != nil && res.StatusCode == http.StatusNotModified {
41245 if res.Body != nil {
41246 res.Body.Close()
41247 }
41248 return nil, &googleapi.Error{
41249 Code: res.StatusCode,
41250 Header: res.Header,
41251 }
41252 }
41253 if err != nil {
41254 return nil, err
41255 }
41256 defer googleapi.CloseBody(res)
41257 if err := googleapi.CheckResponse(res); err != nil {
41258 return nil, err
41259 }
41260 ret := &PostalCodesListResponse{
41261 ServerResponse: googleapi.ServerResponse{
41262 Header: res.Header,
41263 HTTPStatusCode: res.StatusCode,
41264 },
41265 }
41266 target := &ret
41267 if err := gensupport.DecodeResponse(target, res); err != nil {
41268 return nil, err
41269 }
41270 return ret, nil
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296 }
41297
41298
41299
41300 type ProjectsGetCall struct {
41301 s *Service
41302 profileId int64
41303 id int64
41304 urlParams_ gensupport.URLParams
41305 ifNoneMatch_ string
41306 ctx_ context.Context
41307 header_ http.Header
41308 }
41309
41310
41311 func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall {
41312 c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41313 c.profileId = profileId
41314 c.id = id
41315 return c
41316 }
41317
41318
41319
41320
41321 func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall {
41322 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41323 return c
41324 }
41325
41326
41327
41328
41329
41330
41331 func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall {
41332 c.ifNoneMatch_ = entityTag
41333 return c
41334 }
41335
41336
41337
41338
41339 func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall {
41340 c.ctx_ = ctx
41341 return c
41342 }
41343
41344
41345
41346 func (c *ProjectsGetCall) Header() http.Header {
41347 if c.header_ == nil {
41348 c.header_ = make(http.Header)
41349 }
41350 return c.header_
41351 }
41352
41353 func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) {
41354 reqHeaders := make(http.Header)
41355 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
41356 for k, v := range c.header_ {
41357 reqHeaders[k] = v
41358 }
41359 reqHeaders.Set("User-Agent", c.s.userAgent())
41360 if c.ifNoneMatch_ != "" {
41361 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41362 }
41363 var body io.Reader = nil
41364 c.urlParams_.Set("alt", alt)
41365 c.urlParams_.Set("prettyPrint", "false")
41366 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{id}")
41367 urls += "?" + c.urlParams_.Encode()
41368 req, err := http.NewRequest("GET", urls, body)
41369 if err != nil {
41370 return nil, err
41371 }
41372 req.Header = reqHeaders
41373 googleapi.Expand(req.URL, map[string]string{
41374 "profileId": strconv.FormatInt(c.profileId, 10),
41375 "id": strconv.FormatInt(c.id, 10),
41376 })
41377 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41378 }
41379
41380
41381
41382
41383
41384
41385
41386
41387 func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) {
41388 gensupport.SetOptions(c.urlParams_, opts...)
41389 res, err := c.doRequest("json")
41390 if res != nil && res.StatusCode == http.StatusNotModified {
41391 if res.Body != nil {
41392 res.Body.Close()
41393 }
41394 return nil, &googleapi.Error{
41395 Code: res.StatusCode,
41396 Header: res.Header,
41397 }
41398 }
41399 if err != nil {
41400 return nil, err
41401 }
41402 defer googleapi.CloseBody(res)
41403 if err := googleapi.CheckResponse(res); err != nil {
41404 return nil, err
41405 }
41406 ret := &Project{
41407 ServerResponse: googleapi.ServerResponse{
41408 Header: res.Header,
41409 HTTPStatusCode: res.StatusCode,
41410 },
41411 }
41412 target := &ret
41413 if err := gensupport.DecodeResponse(target, res); err != nil {
41414 return nil, err
41415 }
41416 return ret, nil
41417
41418
41419
41420
41421
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450 }
41451
41452
41453
41454 type ProjectsListCall struct {
41455 s *Service
41456 profileId int64
41457 urlParams_ gensupport.URLParams
41458 ifNoneMatch_ string
41459 ctx_ context.Context
41460 header_ http.Header
41461 }
41462
41463
41464
41465 func (r *ProjectsService) List(profileId int64) *ProjectsListCall {
41466 c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41467 c.profileId = profileId
41468 return c
41469 }
41470
41471
41472
41473 func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall {
41474 var advertiserIds_ []string
41475 for _, v := range advertiserIds {
41476 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
41477 }
41478 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
41479 return c
41480 }
41481
41482
41483
41484 func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall {
41485 var ids_ []string
41486 for _, v := range ids {
41487 ids_ = append(ids_, fmt.Sprint(v))
41488 }
41489 c.urlParams_.SetMulti("ids", ids_)
41490 return c
41491 }
41492
41493
41494
41495 func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall {
41496 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
41497 return c
41498 }
41499
41500
41501
41502 func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall {
41503 c.urlParams_.Set("pageToken", pageToken)
41504 return c
41505 }
41506
41507
41508
41509
41510
41511
41512
41513
41514
41515 func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall {
41516 c.urlParams_.Set("searchString", searchString)
41517 return c
41518 }
41519
41520
41521
41522
41523
41524
41525
41526
41527 func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall {
41528 c.urlParams_.Set("sortField", sortField)
41529 return c
41530 }
41531
41532
41533
41534
41535
41536
41537
41538
41539 func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall {
41540 c.urlParams_.Set("sortOrder", sortOrder)
41541 return c
41542 }
41543
41544
41545
41546
41547 func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall {
41548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41549 return c
41550 }
41551
41552
41553
41554
41555
41556
41557 func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall {
41558 c.ifNoneMatch_ = entityTag
41559 return c
41560 }
41561
41562
41563
41564
41565 func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall {
41566 c.ctx_ = ctx
41567 return c
41568 }
41569
41570
41571
41572 func (c *ProjectsListCall) Header() http.Header {
41573 if c.header_ == nil {
41574 c.header_ = make(http.Header)
41575 }
41576 return c.header_
41577 }
41578
41579 func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) {
41580 reqHeaders := make(http.Header)
41581 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
41582 for k, v := range c.header_ {
41583 reqHeaders[k] = v
41584 }
41585 reqHeaders.Set("User-Agent", c.s.userAgent())
41586 if c.ifNoneMatch_ != "" {
41587 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41588 }
41589 var body io.Reader = nil
41590 c.urlParams_.Set("alt", alt)
41591 c.urlParams_.Set("prettyPrint", "false")
41592 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects")
41593 urls += "?" + c.urlParams_.Encode()
41594 req, err := http.NewRequest("GET", urls, body)
41595 if err != nil {
41596 return nil, err
41597 }
41598 req.Header = reqHeaders
41599 googleapi.Expand(req.URL, map[string]string{
41600 "profileId": strconv.FormatInt(c.profileId, 10),
41601 })
41602 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41603 }
41604
41605
41606
41607
41608
41609
41610
41611
41612 func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) {
41613 gensupport.SetOptions(c.urlParams_, opts...)
41614 res, err := c.doRequest("json")
41615 if res != nil && res.StatusCode == http.StatusNotModified {
41616 if res.Body != nil {
41617 res.Body.Close()
41618 }
41619 return nil, &googleapi.Error{
41620 Code: res.StatusCode,
41621 Header: res.Header,
41622 }
41623 }
41624 if err != nil {
41625 return nil, err
41626 }
41627 defer googleapi.CloseBody(res)
41628 if err := googleapi.CheckResponse(res); err != nil {
41629 return nil, err
41630 }
41631 ret := &ProjectsListResponse{
41632 ServerResponse: googleapi.ServerResponse{
41633 Header: res.Header,
41634 HTTPStatusCode: res.StatusCode,
41635 },
41636 }
41637 target := &ret
41638 if err := gensupport.DecodeResponse(target, res); err != nil {
41639 return nil, err
41640 }
41641 return ret, nil
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691
41692
41693
41694
41695
41696
41697
41698
41699
41700
41701
41702
41703
41704
41705
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728 }
41729
41730
41731
41732
41733 func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error {
41734 c.ctx_ = ctx
41735 defer c.PageToken(c.urlParams_.Get("pageToken"))
41736 for {
41737 x, err := c.Do()
41738 if err != nil {
41739 return err
41740 }
41741 if err := f(x); err != nil {
41742 return err
41743 }
41744 if x.NextPageToken == "" {
41745 return nil
41746 }
41747 c.PageToken(x.NextPageToken)
41748 }
41749 }
41750
41751
41752
41753 type RegionsListCall struct {
41754 s *Service
41755 profileId int64
41756 urlParams_ gensupport.URLParams
41757 ifNoneMatch_ string
41758 ctx_ context.Context
41759 header_ http.Header
41760 }
41761
41762
41763 func (r *RegionsService) List(profileId int64) *RegionsListCall {
41764 c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41765 c.profileId = profileId
41766 return c
41767 }
41768
41769
41770
41771
41772 func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall {
41773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41774 return c
41775 }
41776
41777
41778
41779
41780
41781
41782 func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall {
41783 c.ifNoneMatch_ = entityTag
41784 return c
41785 }
41786
41787
41788
41789
41790 func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall {
41791 c.ctx_ = ctx
41792 return c
41793 }
41794
41795
41796
41797 func (c *RegionsListCall) Header() http.Header {
41798 if c.header_ == nil {
41799 c.header_ = make(http.Header)
41800 }
41801 return c.header_
41802 }
41803
41804 func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) {
41805 reqHeaders := make(http.Header)
41806 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
41807 for k, v := range c.header_ {
41808 reqHeaders[k] = v
41809 }
41810 reqHeaders.Set("User-Agent", c.s.userAgent())
41811 if c.ifNoneMatch_ != "" {
41812 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41813 }
41814 var body io.Reader = nil
41815 c.urlParams_.Set("alt", alt)
41816 c.urlParams_.Set("prettyPrint", "false")
41817 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/regions")
41818 urls += "?" + c.urlParams_.Encode()
41819 req, err := http.NewRequest("GET", urls, body)
41820 if err != nil {
41821 return nil, err
41822 }
41823 req.Header = reqHeaders
41824 googleapi.Expand(req.URL, map[string]string{
41825 "profileId": strconv.FormatInt(c.profileId, 10),
41826 })
41827 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41828 }
41829
41830
41831
41832
41833
41834
41835
41836
41837 func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) {
41838 gensupport.SetOptions(c.urlParams_, opts...)
41839 res, err := c.doRequest("json")
41840 if res != nil && res.StatusCode == http.StatusNotModified {
41841 if res.Body != nil {
41842 res.Body.Close()
41843 }
41844 return nil, &googleapi.Error{
41845 Code: res.StatusCode,
41846 Header: res.Header,
41847 }
41848 }
41849 if err != nil {
41850 return nil, err
41851 }
41852 defer googleapi.CloseBody(res)
41853 if err := googleapi.CheckResponse(res); err != nil {
41854 return nil, err
41855 }
41856 ret := &RegionsListResponse{
41857 ServerResponse: googleapi.ServerResponse{
41858 Header: res.Header,
41859 HTTPStatusCode: res.StatusCode,
41860 },
41861 }
41862 target := &ret
41863 if err := gensupport.DecodeResponse(target, res); err != nil {
41864 return nil, err
41865 }
41866 return ret, nil
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
41891
41892 }
41893
41894
41895
41896 type RemarketingListSharesGetCall struct {
41897 s *Service
41898 profileId int64
41899 remarketingListId int64
41900 urlParams_ gensupport.URLParams
41901 ifNoneMatch_ string
41902 ctx_ context.Context
41903 header_ http.Header
41904 }
41905
41906
41907 func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall {
41908 c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41909 c.profileId = profileId
41910 c.remarketingListId = remarketingListId
41911 return c
41912 }
41913
41914
41915
41916
41917 func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall {
41918 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41919 return c
41920 }
41921
41922
41923
41924
41925
41926
41927 func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall {
41928 c.ifNoneMatch_ = entityTag
41929 return c
41930 }
41931
41932
41933
41934
41935 func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall {
41936 c.ctx_ = ctx
41937 return c
41938 }
41939
41940
41941
41942 func (c *RemarketingListSharesGetCall) Header() http.Header {
41943 if c.header_ == nil {
41944 c.header_ = make(http.Header)
41945 }
41946 return c.header_
41947 }
41948
41949 func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) {
41950 reqHeaders := make(http.Header)
41951 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
41952 for k, v := range c.header_ {
41953 reqHeaders[k] = v
41954 }
41955 reqHeaders.Set("User-Agent", c.s.userAgent())
41956 if c.ifNoneMatch_ != "" {
41957 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41958 }
41959 var body io.Reader = nil
41960 c.urlParams_.Set("alt", alt)
41961 c.urlParams_.Set("prettyPrint", "false")
41962 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares/{remarketingListId}")
41963 urls += "?" + c.urlParams_.Encode()
41964 req, err := http.NewRequest("GET", urls, body)
41965 if err != nil {
41966 return nil, err
41967 }
41968 req.Header = reqHeaders
41969 googleapi.Expand(req.URL, map[string]string{
41970 "profileId": strconv.FormatInt(c.profileId, 10),
41971 "remarketingListId": strconv.FormatInt(c.remarketingListId, 10),
41972 })
41973 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41974 }
41975
41976
41977
41978
41979
41980
41981
41982
41983 func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) {
41984 gensupport.SetOptions(c.urlParams_, opts...)
41985 res, err := c.doRequest("json")
41986 if res != nil && res.StatusCode == http.StatusNotModified {
41987 if res.Body != nil {
41988 res.Body.Close()
41989 }
41990 return nil, &googleapi.Error{
41991 Code: res.StatusCode,
41992 Header: res.Header,
41993 }
41994 }
41995 if err != nil {
41996 return nil, err
41997 }
41998 defer googleapi.CloseBody(res)
41999 if err := googleapi.CheckResponse(res); err != nil {
42000 return nil, err
42001 }
42002 ret := &RemarketingListShare{
42003 ServerResponse: googleapi.ServerResponse{
42004 Header: res.Header,
42005 HTTPStatusCode: res.StatusCode,
42006 },
42007 }
42008 target := &ret
42009 if err := gensupport.DecodeResponse(target, res); err != nil {
42010 return nil, err
42011 }
42012 return ret, nil
42013
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046 }
42047
42048
42049
42050 type RemarketingListSharesPatchCall struct {
42051 s *Service
42052 profileId int64
42053 remarketinglistshare *RemarketingListShare
42054 urlParams_ gensupport.URLParams
42055 ctx_ context.Context
42056 header_ http.Header
42057 }
42058
42059
42060
42061 func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall {
42062 c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42063 c.profileId = profileId
42064 c.urlParams_.Set("remarketingListId", fmt.Sprint(remarketingListId))
42065 c.remarketinglistshare = remarketinglistshare
42066 return c
42067 }
42068
42069
42070
42071
42072 func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall {
42073 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42074 return c
42075 }
42076
42077
42078
42079
42080 func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall {
42081 c.ctx_ = ctx
42082 return c
42083 }
42084
42085
42086
42087 func (c *RemarketingListSharesPatchCall) Header() http.Header {
42088 if c.header_ == nil {
42089 c.header_ = make(http.Header)
42090 }
42091 return c.header_
42092 }
42093
42094 func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) {
42095 reqHeaders := make(http.Header)
42096 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
42097 for k, v := range c.header_ {
42098 reqHeaders[k] = v
42099 }
42100 reqHeaders.Set("User-Agent", c.s.userAgent())
42101 var body io.Reader = nil
42102 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare)
42103 if err != nil {
42104 return nil, err
42105 }
42106 reqHeaders.Set("Content-Type", "application/json")
42107 c.urlParams_.Set("alt", alt)
42108 c.urlParams_.Set("prettyPrint", "false")
42109 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares")
42110 urls += "?" + c.urlParams_.Encode()
42111 req, err := http.NewRequest("PATCH", urls, body)
42112 if err != nil {
42113 return nil, err
42114 }
42115 req.Header = reqHeaders
42116 googleapi.Expand(req.URL, map[string]string{
42117 "profileId": strconv.FormatInt(c.profileId, 10),
42118 })
42119 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42120 }
42121
42122
42123
42124
42125
42126
42127
42128
42129 func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) {
42130 gensupport.SetOptions(c.urlParams_, opts...)
42131 res, err := c.doRequest("json")
42132 if res != nil && res.StatusCode == http.StatusNotModified {
42133 if res.Body != nil {
42134 res.Body.Close()
42135 }
42136 return nil, &googleapi.Error{
42137 Code: res.StatusCode,
42138 Header: res.Header,
42139 }
42140 }
42141 if err != nil {
42142 return nil, err
42143 }
42144 defer googleapi.CloseBody(res)
42145 if err := googleapi.CheckResponse(res); err != nil {
42146 return nil, err
42147 }
42148 ret := &RemarketingListShare{
42149 ServerResponse: googleapi.ServerResponse{
42150 Header: res.Header,
42151 HTTPStatusCode: res.StatusCode,
42152 },
42153 }
42154 target := &ret
42155 if err := gensupport.DecodeResponse(target, res); err != nil {
42156 return nil, err
42157 }
42158 return ret, nil
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172
42173
42174
42175
42176
42177
42178
42179
42180
42181
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195 }
42196
42197
42198
42199 type RemarketingListSharesUpdateCall struct {
42200 s *Service
42201 profileId int64
42202 remarketinglistshare *RemarketingListShare
42203 urlParams_ gensupport.URLParams
42204 ctx_ context.Context
42205 header_ http.Header
42206 }
42207
42208
42209 func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall {
42210 c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42211 c.profileId = profileId
42212 c.remarketinglistshare = remarketinglistshare
42213 return c
42214 }
42215
42216
42217
42218
42219 func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall {
42220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42221 return c
42222 }
42223
42224
42225
42226
42227 func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall {
42228 c.ctx_ = ctx
42229 return c
42230 }
42231
42232
42233
42234 func (c *RemarketingListSharesUpdateCall) Header() http.Header {
42235 if c.header_ == nil {
42236 c.header_ = make(http.Header)
42237 }
42238 return c.header_
42239 }
42240
42241 func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) {
42242 reqHeaders := make(http.Header)
42243 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
42244 for k, v := range c.header_ {
42245 reqHeaders[k] = v
42246 }
42247 reqHeaders.Set("User-Agent", c.s.userAgent())
42248 var body io.Reader = nil
42249 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare)
42250 if err != nil {
42251 return nil, err
42252 }
42253 reqHeaders.Set("Content-Type", "application/json")
42254 c.urlParams_.Set("alt", alt)
42255 c.urlParams_.Set("prettyPrint", "false")
42256 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares")
42257 urls += "?" + c.urlParams_.Encode()
42258 req, err := http.NewRequest("PUT", urls, body)
42259 if err != nil {
42260 return nil, err
42261 }
42262 req.Header = reqHeaders
42263 googleapi.Expand(req.URL, map[string]string{
42264 "profileId": strconv.FormatInt(c.profileId, 10),
42265 })
42266 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42267 }
42268
42269
42270
42271
42272
42273
42274
42275
42276 func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) {
42277 gensupport.SetOptions(c.urlParams_, opts...)
42278 res, err := c.doRequest("json")
42279 if res != nil && res.StatusCode == http.StatusNotModified {
42280 if res.Body != nil {
42281 res.Body.Close()
42282 }
42283 return nil, &googleapi.Error{
42284 Code: res.StatusCode,
42285 Header: res.Header,
42286 }
42287 }
42288 if err != nil {
42289 return nil, err
42290 }
42291 defer googleapi.CloseBody(res)
42292 if err := googleapi.CheckResponse(res); err != nil {
42293 return nil, err
42294 }
42295 ret := &RemarketingListShare{
42296 ServerResponse: googleapi.ServerResponse{
42297 Header: res.Header,
42298 HTTPStatusCode: res.StatusCode,
42299 },
42300 }
42301 target := &ret
42302 if err := gensupport.DecodeResponse(target, res); err != nil {
42303 return nil, err
42304 }
42305 return ret, nil
42306
42307
42308
42309
42310
42311
42312
42313
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323
42324
42325
42326
42327
42328
42329
42330
42331
42332
42333
42334 }
42335
42336
42337
42338 type RemarketingListsGetCall struct {
42339 s *Service
42340 profileId int64
42341 id int64
42342 urlParams_ gensupport.URLParams
42343 ifNoneMatch_ string
42344 ctx_ context.Context
42345 header_ http.Header
42346 }
42347
42348
42349 func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall {
42350 c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42351 c.profileId = profileId
42352 c.id = id
42353 return c
42354 }
42355
42356
42357
42358
42359 func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall {
42360 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42361 return c
42362 }
42363
42364
42365
42366
42367
42368
42369 func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall {
42370 c.ifNoneMatch_ = entityTag
42371 return c
42372 }
42373
42374
42375
42376
42377 func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall {
42378 c.ctx_ = ctx
42379 return c
42380 }
42381
42382
42383
42384 func (c *RemarketingListsGetCall) Header() http.Header {
42385 if c.header_ == nil {
42386 c.header_ = make(http.Header)
42387 }
42388 return c.header_
42389 }
42390
42391 func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) {
42392 reqHeaders := make(http.Header)
42393 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
42394 for k, v := range c.header_ {
42395 reqHeaders[k] = v
42396 }
42397 reqHeaders.Set("User-Agent", c.s.userAgent())
42398 if c.ifNoneMatch_ != "" {
42399 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42400 }
42401 var body io.Reader = nil
42402 c.urlParams_.Set("alt", alt)
42403 c.urlParams_.Set("prettyPrint", "false")
42404 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists/{id}")
42405 urls += "?" + c.urlParams_.Encode()
42406 req, err := http.NewRequest("GET", urls, body)
42407 if err != nil {
42408 return nil, err
42409 }
42410 req.Header = reqHeaders
42411 googleapi.Expand(req.URL, map[string]string{
42412 "profileId": strconv.FormatInt(c.profileId, 10),
42413 "id": strconv.FormatInt(c.id, 10),
42414 })
42415 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42416 }
42417
42418
42419
42420
42421
42422
42423
42424
42425 func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
42426 gensupport.SetOptions(c.urlParams_, opts...)
42427 res, err := c.doRequest("json")
42428 if res != nil && res.StatusCode == http.StatusNotModified {
42429 if res.Body != nil {
42430 res.Body.Close()
42431 }
42432 return nil, &googleapi.Error{
42433 Code: res.StatusCode,
42434 Header: res.Header,
42435 }
42436 }
42437 if err != nil {
42438 return nil, err
42439 }
42440 defer googleapi.CloseBody(res)
42441 if err := googleapi.CheckResponse(res); err != nil {
42442 return nil, err
42443 }
42444 ret := &RemarketingList{
42445 ServerResponse: googleapi.ServerResponse{
42446 Header: res.Header,
42447 HTTPStatusCode: res.StatusCode,
42448 },
42449 }
42450 target := &ret
42451 if err := gensupport.DecodeResponse(target, res); err != nil {
42452 return nil, err
42453 }
42454 return ret, nil
42455
42456
42457
42458
42459
42460
42461
42462
42463
42464
42465
42466
42467
42468
42469
42470
42471
42472
42473
42474
42475
42476
42477
42478
42479
42480
42481
42482
42483
42484
42485
42486
42487
42488 }
42489
42490
42491
42492 type RemarketingListsInsertCall struct {
42493 s *Service
42494 profileId int64
42495 remarketinglist *RemarketingList
42496 urlParams_ gensupport.URLParams
42497 ctx_ context.Context
42498 header_ http.Header
42499 }
42500
42501
42502 func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall {
42503 c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42504 c.profileId = profileId
42505 c.remarketinglist = remarketinglist
42506 return c
42507 }
42508
42509
42510
42511
42512 func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall {
42513 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42514 return c
42515 }
42516
42517
42518
42519
42520 func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall {
42521 c.ctx_ = ctx
42522 return c
42523 }
42524
42525
42526
42527 func (c *RemarketingListsInsertCall) Header() http.Header {
42528 if c.header_ == nil {
42529 c.header_ = make(http.Header)
42530 }
42531 return c.header_
42532 }
42533
42534 func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) {
42535 reqHeaders := make(http.Header)
42536 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
42537 for k, v := range c.header_ {
42538 reqHeaders[k] = v
42539 }
42540 reqHeaders.Set("User-Agent", c.s.userAgent())
42541 var body io.Reader = nil
42542 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist)
42543 if err != nil {
42544 return nil, err
42545 }
42546 reqHeaders.Set("Content-Type", "application/json")
42547 c.urlParams_.Set("alt", alt)
42548 c.urlParams_.Set("prettyPrint", "false")
42549 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
42550 urls += "?" + c.urlParams_.Encode()
42551 req, err := http.NewRequest("POST", urls, body)
42552 if err != nil {
42553 return nil, err
42554 }
42555 req.Header = reqHeaders
42556 googleapi.Expand(req.URL, map[string]string{
42557 "profileId": strconv.FormatInt(c.profileId, 10),
42558 })
42559 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42560 }
42561
42562
42563
42564
42565
42566
42567
42568
42569 func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
42570 gensupport.SetOptions(c.urlParams_, opts...)
42571 res, err := c.doRequest("json")
42572 if res != nil && res.StatusCode == http.StatusNotModified {
42573 if res.Body != nil {
42574 res.Body.Close()
42575 }
42576 return nil, &googleapi.Error{
42577 Code: res.StatusCode,
42578 Header: res.Header,
42579 }
42580 }
42581 if err != nil {
42582 return nil, err
42583 }
42584 defer googleapi.CloseBody(res)
42585 if err := googleapi.CheckResponse(res); err != nil {
42586 return nil, err
42587 }
42588 ret := &RemarketingList{
42589 ServerResponse: googleapi.ServerResponse{
42590 Header: res.Header,
42591 HTTPStatusCode: res.StatusCode,
42592 },
42593 }
42594 target := &ret
42595 if err := gensupport.DecodeResponse(target, res); err != nil {
42596 return nil, err
42597 }
42598 return ret, nil
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
42610
42611
42612
42613
42614
42615
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627 }
42628
42629
42630
42631 type RemarketingListsListCall struct {
42632 s *Service
42633 profileId int64
42634 urlParams_ gensupport.URLParams
42635 ifNoneMatch_ string
42636 ctx_ context.Context
42637 header_ http.Header
42638 }
42639
42640
42641
42642 func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall {
42643 c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42644 c.profileId = profileId
42645 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
42646 return c
42647 }
42648
42649
42650
42651 func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall {
42652 c.urlParams_.Set("active", fmt.Sprint(active))
42653 return c
42654 }
42655
42656
42657
42658
42659 func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall {
42660 c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId))
42661 return c
42662 }
42663
42664
42665
42666 func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall {
42667 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
42668 return c
42669 }
42670
42671
42672
42673
42674
42675
42676
42677
42678
42679 func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall {
42680 c.urlParams_.Set("name", name)
42681 return c
42682 }
42683
42684
42685
42686 func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingListsListCall {
42687 c.urlParams_.Set("pageToken", pageToken)
42688 return c
42689 }
42690
42691
42692
42693
42694
42695
42696
42697
42698 func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingListsListCall {
42699 c.urlParams_.Set("sortField", sortField)
42700 return c
42701 }
42702
42703
42704
42705
42706
42707
42708
42709
42710 func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingListsListCall {
42711 c.urlParams_.Set("sortOrder", sortOrder)
42712 return c
42713 }
42714
42715
42716
42717
42718 func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall {
42719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42720 return c
42721 }
42722
42723
42724
42725
42726
42727
42728 func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall {
42729 c.ifNoneMatch_ = entityTag
42730 return c
42731 }
42732
42733
42734
42735
42736 func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall {
42737 c.ctx_ = ctx
42738 return c
42739 }
42740
42741
42742
42743 func (c *RemarketingListsListCall) Header() http.Header {
42744 if c.header_ == nil {
42745 c.header_ = make(http.Header)
42746 }
42747 return c.header_
42748 }
42749
42750 func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) {
42751 reqHeaders := make(http.Header)
42752 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
42753 for k, v := range c.header_ {
42754 reqHeaders[k] = v
42755 }
42756 reqHeaders.Set("User-Agent", c.s.userAgent())
42757 if c.ifNoneMatch_ != "" {
42758 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42759 }
42760 var body io.Reader = nil
42761 c.urlParams_.Set("alt", alt)
42762 c.urlParams_.Set("prettyPrint", "false")
42763 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
42764 urls += "?" + c.urlParams_.Encode()
42765 req, err := http.NewRequest("GET", urls, body)
42766 if err != nil {
42767 return nil, err
42768 }
42769 req.Header = reqHeaders
42770 googleapi.Expand(req.URL, map[string]string{
42771 "profileId": strconv.FormatInt(c.profileId, 10),
42772 })
42773 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42774 }
42775
42776
42777
42778
42779
42780
42781
42782
42783 func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) {
42784 gensupport.SetOptions(c.urlParams_, opts...)
42785 res, err := c.doRequest("json")
42786 if res != nil && res.StatusCode == http.StatusNotModified {
42787 if res.Body != nil {
42788 res.Body.Close()
42789 }
42790 return nil, &googleapi.Error{
42791 Code: res.StatusCode,
42792 Header: res.Header,
42793 }
42794 }
42795 if err != nil {
42796 return nil, err
42797 }
42798 defer googleapi.CloseBody(res)
42799 if err := googleapi.CheckResponse(res); err != nil {
42800 return nil, err
42801 }
42802 ret := &RemarketingListsListResponse{
42803 ServerResponse: googleapi.ServerResponse{
42804 Header: res.Header,
42805 HTTPStatusCode: res.StatusCode,
42806 },
42807 }
42808 target := &ret
42809 if err := gensupport.DecodeResponse(target, res); err != nil {
42810 return nil, err
42811 }
42812 return ret, nil
42813
42814
42815
42816
42817
42818
42819
42820
42821
42822
42823
42824
42825
42826
42827
42828
42829
42830
42831
42832
42833
42834
42835
42836
42837
42838
42839
42840
42841
42842
42843
42844
42845
42846
42847
42848
42849
42850
42851
42852
42853
42854
42855
42856
42857
42858
42859
42860
42861
42862
42863
42864
42865
42866
42867
42868
42869
42870
42871
42872
42873
42874
42875
42876
42877
42878
42879
42880
42881
42882
42883
42884
42885
42886
42887
42888
42889
42890
42891
42892
42893
42894
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904 }
42905
42906
42907
42908
42909 func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error {
42910 c.ctx_ = ctx
42911 defer c.PageToken(c.urlParams_.Get("pageToken"))
42912 for {
42913 x, err := c.Do()
42914 if err != nil {
42915 return err
42916 }
42917 if err := f(x); err != nil {
42918 return err
42919 }
42920 if x.NextPageToken == "" {
42921 return nil
42922 }
42923 c.PageToken(x.NextPageToken)
42924 }
42925 }
42926
42927
42928
42929 type RemarketingListsPatchCall struct {
42930 s *Service
42931 profileId int64
42932 remarketinglist *RemarketingList
42933 urlParams_ gensupport.URLParams
42934 ctx_ context.Context
42935 header_ http.Header
42936 }
42937
42938
42939
42940 func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall {
42941 c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42942 c.profileId = profileId
42943 c.urlParams_.Set("id", fmt.Sprint(id))
42944 c.remarketinglist = remarketinglist
42945 return c
42946 }
42947
42948
42949
42950
42951 func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall {
42952 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42953 return c
42954 }
42955
42956
42957
42958
42959 func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall {
42960 c.ctx_ = ctx
42961 return c
42962 }
42963
42964
42965
42966 func (c *RemarketingListsPatchCall) Header() http.Header {
42967 if c.header_ == nil {
42968 c.header_ = make(http.Header)
42969 }
42970 return c.header_
42971 }
42972
42973 func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) {
42974 reqHeaders := make(http.Header)
42975 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
42976 for k, v := range c.header_ {
42977 reqHeaders[k] = v
42978 }
42979 reqHeaders.Set("User-Agent", c.s.userAgent())
42980 var body io.Reader = nil
42981 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist)
42982 if err != nil {
42983 return nil, err
42984 }
42985 reqHeaders.Set("Content-Type", "application/json")
42986 c.urlParams_.Set("alt", alt)
42987 c.urlParams_.Set("prettyPrint", "false")
42988 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
42989 urls += "?" + c.urlParams_.Encode()
42990 req, err := http.NewRequest("PATCH", urls, body)
42991 if err != nil {
42992 return nil, err
42993 }
42994 req.Header = reqHeaders
42995 googleapi.Expand(req.URL, map[string]string{
42996 "profileId": strconv.FormatInt(c.profileId, 10),
42997 })
42998 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42999 }
43000
43001
43002
43003
43004
43005
43006
43007
43008 func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
43009 gensupport.SetOptions(c.urlParams_, opts...)
43010 res, err := c.doRequest("json")
43011 if res != nil && res.StatusCode == http.StatusNotModified {
43012 if res.Body != nil {
43013 res.Body.Close()
43014 }
43015 return nil, &googleapi.Error{
43016 Code: res.StatusCode,
43017 Header: res.Header,
43018 }
43019 }
43020 if err != nil {
43021 return nil, err
43022 }
43023 defer googleapi.CloseBody(res)
43024 if err := googleapi.CheckResponse(res); err != nil {
43025 return nil, err
43026 }
43027 ret := &RemarketingList{
43028 ServerResponse: googleapi.ServerResponse{
43029 Header: res.Header,
43030 HTTPStatusCode: res.StatusCode,
43031 },
43032 }
43033 target := &ret
43034 if err := gensupport.DecodeResponse(target, res); err != nil {
43035 return nil, err
43036 }
43037 return ret, nil
43038
43039
43040
43041
43042
43043
43044
43045
43046
43047
43048
43049
43050
43051
43052
43053
43054
43055
43056
43057
43058
43059
43060
43061
43062
43063
43064
43065
43066
43067
43068
43069
43070
43071
43072
43073
43074 }
43075
43076
43077
43078 type RemarketingListsUpdateCall struct {
43079 s *Service
43080 profileId int64
43081 remarketinglist *RemarketingList
43082 urlParams_ gensupport.URLParams
43083 ctx_ context.Context
43084 header_ http.Header
43085 }
43086
43087
43088 func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall {
43089 c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43090 c.profileId = profileId
43091 c.remarketinglist = remarketinglist
43092 return c
43093 }
43094
43095
43096
43097
43098 func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall {
43099 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43100 return c
43101 }
43102
43103
43104
43105
43106 func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall {
43107 c.ctx_ = ctx
43108 return c
43109 }
43110
43111
43112
43113 func (c *RemarketingListsUpdateCall) Header() http.Header {
43114 if c.header_ == nil {
43115 c.header_ = make(http.Header)
43116 }
43117 return c.header_
43118 }
43119
43120 func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) {
43121 reqHeaders := make(http.Header)
43122 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
43123 for k, v := range c.header_ {
43124 reqHeaders[k] = v
43125 }
43126 reqHeaders.Set("User-Agent", c.s.userAgent())
43127 var body io.Reader = nil
43128 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist)
43129 if err != nil {
43130 return nil, err
43131 }
43132 reqHeaders.Set("Content-Type", "application/json")
43133 c.urlParams_.Set("alt", alt)
43134 c.urlParams_.Set("prettyPrint", "false")
43135 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
43136 urls += "?" + c.urlParams_.Encode()
43137 req, err := http.NewRequest("PUT", urls, body)
43138 if err != nil {
43139 return nil, err
43140 }
43141 req.Header = reqHeaders
43142 googleapi.Expand(req.URL, map[string]string{
43143 "profileId": strconv.FormatInt(c.profileId, 10),
43144 })
43145 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43146 }
43147
43148
43149
43150
43151
43152
43153
43154
43155 func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
43156 gensupport.SetOptions(c.urlParams_, opts...)
43157 res, err := c.doRequest("json")
43158 if res != nil && res.StatusCode == http.StatusNotModified {
43159 if res.Body != nil {
43160 res.Body.Close()
43161 }
43162 return nil, &googleapi.Error{
43163 Code: res.StatusCode,
43164 Header: res.Header,
43165 }
43166 }
43167 if err != nil {
43168 return nil, err
43169 }
43170 defer googleapi.CloseBody(res)
43171 if err := googleapi.CheckResponse(res); err != nil {
43172 return nil, err
43173 }
43174 ret := &RemarketingList{
43175 ServerResponse: googleapi.ServerResponse{
43176 Header: res.Header,
43177 HTTPStatusCode: res.StatusCode,
43178 },
43179 }
43180 target := &ret
43181 if err := gensupport.DecodeResponse(target, res); err != nil {
43182 return nil, err
43183 }
43184 return ret, nil
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208
43209
43210
43211
43212
43213 }
43214
43215
43216
43217 type ReportsDeleteCall struct {
43218 s *Service
43219 profileId int64
43220 reportId int64
43221 urlParams_ gensupport.URLParams
43222 ctx_ context.Context
43223 header_ http.Header
43224 }
43225
43226
43227 func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall {
43228 c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43229 c.profileId = profileId
43230 c.reportId = reportId
43231 return c
43232 }
43233
43234
43235
43236
43237 func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall {
43238 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43239 return c
43240 }
43241
43242
43243
43244
43245 func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall {
43246 c.ctx_ = ctx
43247 return c
43248 }
43249
43250
43251
43252 func (c *ReportsDeleteCall) Header() http.Header {
43253 if c.header_ == nil {
43254 c.header_ = make(http.Header)
43255 }
43256 return c.header_
43257 }
43258
43259 func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
43260 reqHeaders := make(http.Header)
43261 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
43262 for k, v := range c.header_ {
43263 reqHeaders[k] = v
43264 }
43265 reqHeaders.Set("User-Agent", c.s.userAgent())
43266 var body io.Reader = nil
43267 c.urlParams_.Set("alt", alt)
43268 c.urlParams_.Set("prettyPrint", "false")
43269 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
43270 urls += "?" + c.urlParams_.Encode()
43271 req, err := http.NewRequest("DELETE", urls, body)
43272 if err != nil {
43273 return nil, err
43274 }
43275 req.Header = reqHeaders
43276 googleapi.Expand(req.URL, map[string]string{
43277 "profileId": strconv.FormatInt(c.profileId, 10),
43278 "reportId": strconv.FormatInt(c.reportId, 10),
43279 })
43280 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43281 }
43282
43283
43284 func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error {
43285 gensupport.SetOptions(c.urlParams_, opts...)
43286 res, err := c.doRequest("json")
43287 if err != nil {
43288 return err
43289 }
43290 defer googleapi.CloseBody(res)
43291 if err := googleapi.CheckResponse(res); err != nil {
43292 return err
43293 }
43294 return nil
43295
43296
43297
43298
43299
43300
43301
43302
43303
43304
43305
43306
43307
43308
43309
43310
43311
43312
43313
43314
43315
43316
43317
43318
43319
43320
43321
43322
43323
43324
43325 }
43326
43327
43328
43329 type ReportsGetCall struct {
43330 s *Service
43331 profileId int64
43332 reportId int64
43333 urlParams_ gensupport.URLParams
43334 ifNoneMatch_ string
43335 ctx_ context.Context
43336 header_ http.Header
43337 }
43338
43339
43340 func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall {
43341 c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43342 c.profileId = profileId
43343 c.reportId = reportId
43344 return c
43345 }
43346
43347
43348
43349
43350 func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall {
43351 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43352 return c
43353 }
43354
43355
43356
43357
43358
43359
43360 func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall {
43361 c.ifNoneMatch_ = entityTag
43362 return c
43363 }
43364
43365
43366
43367
43368 func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall {
43369 c.ctx_ = ctx
43370 return c
43371 }
43372
43373
43374
43375 func (c *ReportsGetCall) Header() http.Header {
43376 if c.header_ == nil {
43377 c.header_ = make(http.Header)
43378 }
43379 return c.header_
43380 }
43381
43382 func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) {
43383 reqHeaders := make(http.Header)
43384 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
43385 for k, v := range c.header_ {
43386 reqHeaders[k] = v
43387 }
43388 reqHeaders.Set("User-Agent", c.s.userAgent())
43389 if c.ifNoneMatch_ != "" {
43390 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43391 }
43392 var body io.Reader = nil
43393 c.urlParams_.Set("alt", alt)
43394 c.urlParams_.Set("prettyPrint", "false")
43395 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
43396 urls += "?" + c.urlParams_.Encode()
43397 req, err := http.NewRequest("GET", urls, body)
43398 if err != nil {
43399 return nil, err
43400 }
43401 req.Header = reqHeaders
43402 googleapi.Expand(req.URL, map[string]string{
43403 "profileId": strconv.FormatInt(c.profileId, 10),
43404 "reportId": strconv.FormatInt(c.reportId, 10),
43405 })
43406 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43407 }
43408
43409
43410
43411
43412
43413
43414
43415
43416 func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) {
43417 gensupport.SetOptions(c.urlParams_, opts...)
43418 res, err := c.doRequest("json")
43419 if res != nil && res.StatusCode == http.StatusNotModified {
43420 if res.Body != nil {
43421 res.Body.Close()
43422 }
43423 return nil, &googleapi.Error{
43424 Code: res.StatusCode,
43425 Header: res.Header,
43426 }
43427 }
43428 if err != nil {
43429 return nil, err
43430 }
43431 defer googleapi.CloseBody(res)
43432 if err := googleapi.CheckResponse(res); err != nil {
43433 return nil, err
43434 }
43435 ret := &Report{
43436 ServerResponse: googleapi.ServerResponse{
43437 Header: res.Header,
43438 HTTPStatusCode: res.StatusCode,
43439 },
43440 }
43441 target := &ret
43442 if err := gensupport.DecodeResponse(target, res); err != nil {
43443 return nil, err
43444 }
43445 return ret, nil
43446
43447
43448
43449
43450
43451
43452
43453
43454
43455
43456
43457
43458
43459
43460
43461
43462
43463
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473
43474
43475
43476
43477
43478
43479 }
43480
43481
43482
43483 type ReportsInsertCall struct {
43484 s *Service
43485 profileId int64
43486 report *Report
43487 urlParams_ gensupport.URLParams
43488 ctx_ context.Context
43489 header_ http.Header
43490 }
43491
43492
43493 func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall {
43494 c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43495 c.profileId = profileId
43496 c.report = report
43497 return c
43498 }
43499
43500
43501
43502
43503 func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall {
43504 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43505 return c
43506 }
43507
43508
43509
43510
43511 func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall {
43512 c.ctx_ = ctx
43513 return c
43514 }
43515
43516
43517
43518 func (c *ReportsInsertCall) Header() http.Header {
43519 if c.header_ == nil {
43520 c.header_ = make(http.Header)
43521 }
43522 return c.header_
43523 }
43524
43525 func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) {
43526 reqHeaders := make(http.Header)
43527 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
43528 for k, v := range c.header_ {
43529 reqHeaders[k] = v
43530 }
43531 reqHeaders.Set("User-Agent", c.s.userAgent())
43532 var body io.Reader = nil
43533 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
43534 if err != nil {
43535 return nil, err
43536 }
43537 reqHeaders.Set("Content-Type", "application/json")
43538 c.urlParams_.Set("alt", alt)
43539 c.urlParams_.Set("prettyPrint", "false")
43540 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports")
43541 urls += "?" + c.urlParams_.Encode()
43542 req, err := http.NewRequest("POST", urls, body)
43543 if err != nil {
43544 return nil, err
43545 }
43546 req.Header = reqHeaders
43547 googleapi.Expand(req.URL, map[string]string{
43548 "profileId": strconv.FormatInt(c.profileId, 10),
43549 })
43550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43551 }
43552
43553
43554
43555
43556
43557
43558
43559
43560 func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) {
43561 gensupport.SetOptions(c.urlParams_, opts...)
43562 res, err := c.doRequest("json")
43563 if res != nil && res.StatusCode == http.StatusNotModified {
43564 if res.Body != nil {
43565 res.Body.Close()
43566 }
43567 return nil, &googleapi.Error{
43568 Code: res.StatusCode,
43569 Header: res.Header,
43570 }
43571 }
43572 if err != nil {
43573 return nil, err
43574 }
43575 defer googleapi.CloseBody(res)
43576 if err := googleapi.CheckResponse(res); err != nil {
43577 return nil, err
43578 }
43579 ret := &Report{
43580 ServerResponse: googleapi.ServerResponse{
43581 Header: res.Header,
43582 HTTPStatusCode: res.StatusCode,
43583 },
43584 }
43585 target := &ret
43586 if err := gensupport.DecodeResponse(target, res); err != nil {
43587 return nil, err
43588 }
43589 return ret, nil
43590
43591
43592
43593
43594
43595
43596
43597
43598
43599
43600
43601
43602
43603
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618 }
43619
43620
43621
43622 type ReportsListCall struct {
43623 s *Service
43624 profileId int64
43625 urlParams_ gensupport.URLParams
43626 ifNoneMatch_ string
43627 ctx_ context.Context
43628 header_ http.Header
43629 }
43630
43631
43632 func (r *ReportsService) List(profileId int64) *ReportsListCall {
43633 c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43634 c.profileId = profileId
43635 return c
43636 }
43637
43638
43639
43640 func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall {
43641 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
43642 return c
43643 }
43644
43645
43646
43647 func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall {
43648 c.urlParams_.Set("pageToken", pageToken)
43649 return c
43650 }
43651
43652
43653
43654
43655
43656
43657
43658
43659 func (c *ReportsListCall) Scope(scope string) *ReportsListCall {
43660 c.urlParams_.Set("scope", scope)
43661 return c
43662 }
43663
43664
43665
43666
43667
43668
43669
43670
43671
43672 func (c *ReportsListCall) SortField(sortField string) *ReportsListCall {
43673 c.urlParams_.Set("sortField", sortField)
43674 return c
43675 }
43676
43677
43678
43679
43680
43681
43682
43683
43684 func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall {
43685 c.urlParams_.Set("sortOrder", sortOrder)
43686 return c
43687 }
43688
43689
43690
43691
43692 func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall {
43693 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43694 return c
43695 }
43696
43697
43698
43699
43700
43701
43702 func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall {
43703 c.ifNoneMatch_ = entityTag
43704 return c
43705 }
43706
43707
43708
43709
43710 func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall {
43711 c.ctx_ = ctx
43712 return c
43713 }
43714
43715
43716
43717 func (c *ReportsListCall) Header() http.Header {
43718 if c.header_ == nil {
43719 c.header_ = make(http.Header)
43720 }
43721 return c.header_
43722 }
43723
43724 func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) {
43725 reqHeaders := make(http.Header)
43726 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
43727 for k, v := range c.header_ {
43728 reqHeaders[k] = v
43729 }
43730 reqHeaders.Set("User-Agent", c.s.userAgent())
43731 if c.ifNoneMatch_ != "" {
43732 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43733 }
43734 var body io.Reader = nil
43735 c.urlParams_.Set("alt", alt)
43736 c.urlParams_.Set("prettyPrint", "false")
43737 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports")
43738 urls += "?" + c.urlParams_.Encode()
43739 req, err := http.NewRequest("GET", urls, body)
43740 if err != nil {
43741 return nil, err
43742 }
43743 req.Header = reqHeaders
43744 googleapi.Expand(req.URL, map[string]string{
43745 "profileId": strconv.FormatInt(c.profileId, 10),
43746 })
43747 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43748 }
43749
43750
43751
43752
43753
43754
43755
43756
43757 func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) {
43758 gensupport.SetOptions(c.urlParams_, opts...)
43759 res, err := c.doRequest("json")
43760 if res != nil && res.StatusCode == http.StatusNotModified {
43761 if res.Body != nil {
43762 res.Body.Close()
43763 }
43764 return nil, &googleapi.Error{
43765 Code: res.StatusCode,
43766 Header: res.Header,
43767 }
43768 }
43769 if err != nil {
43770 return nil, err
43771 }
43772 defer googleapi.CloseBody(res)
43773 if err := googleapi.CheckResponse(res); err != nil {
43774 return nil, err
43775 }
43776 ret := &ReportList{
43777 ServerResponse: googleapi.ServerResponse{
43778 Header: res.Header,
43779 HTTPStatusCode: res.StatusCode,
43780 },
43781 }
43782 target := &ret
43783 if err := gensupport.DecodeResponse(target, res); err != nil {
43784 return nil, err
43785 }
43786 return ret, nil
43787
43788
43789
43790
43791
43792
43793
43794
43795
43796
43797
43798
43799
43800
43801
43802
43803
43804
43805
43806
43807
43808
43809
43810
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823
43824
43825
43826
43827
43828
43829
43830
43831
43832
43833
43834
43835
43836
43837
43838
43839
43840
43841
43842
43843
43844
43845
43846
43847
43848
43849
43850
43851
43852
43853
43854
43855
43856
43857
43858
43859
43860
43861
43862
43863
43864
43865
43866
43867
43868
43869
43870 }
43871
43872
43873
43874
43875 func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error {
43876 c.ctx_ = ctx
43877 defer c.PageToken(c.urlParams_.Get("pageToken"))
43878 for {
43879 x, err := c.Do()
43880 if err != nil {
43881 return err
43882 }
43883 if err := f(x); err != nil {
43884 return err
43885 }
43886 if x.NextPageToken == "" {
43887 return nil
43888 }
43889 c.PageToken(x.NextPageToken)
43890 }
43891 }
43892
43893
43894
43895 type ReportsPatchCall struct {
43896 s *Service
43897 profileId int64
43898 reportId int64
43899 report *Report
43900 urlParams_ gensupport.URLParams
43901 ctx_ context.Context
43902 header_ http.Header
43903 }
43904
43905
43906 func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall {
43907 c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43908 c.profileId = profileId
43909 c.reportId = reportId
43910 c.report = report
43911 return c
43912 }
43913
43914
43915
43916
43917 func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall {
43918 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43919 return c
43920 }
43921
43922
43923
43924
43925 func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall {
43926 c.ctx_ = ctx
43927 return c
43928 }
43929
43930
43931
43932 func (c *ReportsPatchCall) Header() http.Header {
43933 if c.header_ == nil {
43934 c.header_ = make(http.Header)
43935 }
43936 return c.header_
43937 }
43938
43939 func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) {
43940 reqHeaders := make(http.Header)
43941 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
43942 for k, v := range c.header_ {
43943 reqHeaders[k] = v
43944 }
43945 reqHeaders.Set("User-Agent", c.s.userAgent())
43946 var body io.Reader = nil
43947 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
43948 if err != nil {
43949 return nil, err
43950 }
43951 reqHeaders.Set("Content-Type", "application/json")
43952 c.urlParams_.Set("alt", alt)
43953 c.urlParams_.Set("prettyPrint", "false")
43954 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
43955 urls += "?" + c.urlParams_.Encode()
43956 req, err := http.NewRequest("PATCH", urls, body)
43957 if err != nil {
43958 return nil, err
43959 }
43960 req.Header = reqHeaders
43961 googleapi.Expand(req.URL, map[string]string{
43962 "profileId": strconv.FormatInt(c.profileId, 10),
43963 "reportId": strconv.FormatInt(c.reportId, 10),
43964 })
43965 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43966 }
43967
43968
43969
43970
43971
43972
43973
43974
43975 func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) {
43976 gensupport.SetOptions(c.urlParams_, opts...)
43977 res, err := c.doRequest("json")
43978 if res != nil && res.StatusCode == http.StatusNotModified {
43979 if res.Body != nil {
43980 res.Body.Close()
43981 }
43982 return nil, &googleapi.Error{
43983 Code: res.StatusCode,
43984 Header: res.Header,
43985 }
43986 }
43987 if err != nil {
43988 return nil, err
43989 }
43990 defer googleapi.CloseBody(res)
43991 if err := googleapi.CheckResponse(res); err != nil {
43992 return nil, err
43993 }
43994 ret := &Report{
43995 ServerResponse: googleapi.ServerResponse{
43996 Header: res.Header,
43997 HTTPStatusCode: res.StatusCode,
43998 },
43999 }
44000 target := &ret
44001 if err := gensupport.DecodeResponse(target, res); err != nil {
44002 return nil, err
44003 }
44004 return ret, nil
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
44016
44017
44018
44019
44020
44021
44022
44023
44024
44025
44026
44027
44028
44029
44030
44031
44032
44033
44034
44035
44036
44037
44038
44039
44040
44041 }
44042
44043
44044
44045 type ReportsRunCall struct {
44046 s *Service
44047 profileId int64
44048 reportId int64
44049 urlParams_ gensupport.URLParams
44050 ctx_ context.Context
44051 header_ http.Header
44052 }
44053
44054
44055 func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall {
44056 c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44057 c.profileId = profileId
44058 c.reportId = reportId
44059 return c
44060 }
44061
44062
44063
44064 func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall {
44065 c.urlParams_.Set("synchronous", fmt.Sprint(synchronous))
44066 return c
44067 }
44068
44069
44070
44071
44072 func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall {
44073 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44074 return c
44075 }
44076
44077
44078
44079
44080 func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall {
44081 c.ctx_ = ctx
44082 return c
44083 }
44084
44085
44086
44087 func (c *ReportsRunCall) Header() http.Header {
44088 if c.header_ == nil {
44089 c.header_ = make(http.Header)
44090 }
44091 return c.header_
44092 }
44093
44094 func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) {
44095 reqHeaders := make(http.Header)
44096 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
44097 for k, v := range c.header_ {
44098 reqHeaders[k] = v
44099 }
44100 reqHeaders.Set("User-Agent", c.s.userAgent())
44101 var body io.Reader = nil
44102 c.urlParams_.Set("alt", alt)
44103 c.urlParams_.Set("prettyPrint", "false")
44104 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/run")
44105 urls += "?" + c.urlParams_.Encode()
44106 req, err := http.NewRequest("POST", urls, body)
44107 if err != nil {
44108 return nil, err
44109 }
44110 req.Header = reqHeaders
44111 googleapi.Expand(req.URL, map[string]string{
44112 "profileId": strconv.FormatInt(c.profileId, 10),
44113 "reportId": strconv.FormatInt(c.reportId, 10),
44114 })
44115 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44116 }
44117
44118
44119
44120
44121
44122
44123
44124
44125 func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) {
44126 gensupport.SetOptions(c.urlParams_, opts...)
44127 res, err := c.doRequest("json")
44128 if res != nil && res.StatusCode == http.StatusNotModified {
44129 if res.Body != nil {
44130 res.Body.Close()
44131 }
44132 return nil, &googleapi.Error{
44133 Code: res.StatusCode,
44134 Header: res.Header,
44135 }
44136 }
44137 if err != nil {
44138 return nil, err
44139 }
44140 defer googleapi.CloseBody(res)
44141 if err := googleapi.CheckResponse(res); err != nil {
44142 return nil, err
44143 }
44144 ret := &File{
44145 ServerResponse: googleapi.ServerResponse{
44146 Header: res.Header,
44147 HTTPStatusCode: res.StatusCode,
44148 },
44149 }
44150 target := &ret
44151 if err := gensupport.DecodeResponse(target, res); err != nil {
44152 return nil, err
44153 }
44154 return ret, nil
44155
44156
44157
44158
44159
44160
44161
44162
44163
44164
44165
44166
44167
44168
44169
44170
44171
44172
44173
44174
44175
44176
44177
44178
44179
44180
44181
44182
44183
44184
44185
44186
44187
44188
44189
44190
44191
44192
44193
44194 }
44195
44196
44197
44198 type ReportsUpdateCall struct {
44199 s *Service
44200 profileId int64
44201 reportId int64
44202 report *Report
44203 urlParams_ gensupport.URLParams
44204 ctx_ context.Context
44205 header_ http.Header
44206 }
44207
44208
44209 func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall {
44210 c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44211 c.profileId = profileId
44212 c.reportId = reportId
44213 c.report = report
44214 return c
44215 }
44216
44217
44218
44219
44220 func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall {
44221 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44222 return c
44223 }
44224
44225
44226
44227
44228 func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall {
44229 c.ctx_ = ctx
44230 return c
44231 }
44232
44233
44234
44235 func (c *ReportsUpdateCall) Header() http.Header {
44236 if c.header_ == nil {
44237 c.header_ = make(http.Header)
44238 }
44239 return c.header_
44240 }
44241
44242 func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
44243 reqHeaders := make(http.Header)
44244 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
44245 for k, v := range c.header_ {
44246 reqHeaders[k] = v
44247 }
44248 reqHeaders.Set("User-Agent", c.s.userAgent())
44249 var body io.Reader = nil
44250 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
44251 if err != nil {
44252 return nil, err
44253 }
44254 reqHeaders.Set("Content-Type", "application/json")
44255 c.urlParams_.Set("alt", alt)
44256 c.urlParams_.Set("prettyPrint", "false")
44257 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
44258 urls += "?" + c.urlParams_.Encode()
44259 req, err := http.NewRequest("PUT", urls, body)
44260 if err != nil {
44261 return nil, err
44262 }
44263 req.Header = reqHeaders
44264 googleapi.Expand(req.URL, map[string]string{
44265 "profileId": strconv.FormatInt(c.profileId, 10),
44266 "reportId": strconv.FormatInt(c.reportId, 10),
44267 })
44268 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44269 }
44270
44271
44272
44273
44274
44275
44276
44277
44278 func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) {
44279 gensupport.SetOptions(c.urlParams_, opts...)
44280 res, err := c.doRequest("json")
44281 if res != nil && res.StatusCode == http.StatusNotModified {
44282 if res.Body != nil {
44283 res.Body.Close()
44284 }
44285 return nil, &googleapi.Error{
44286 Code: res.StatusCode,
44287 Header: res.Header,
44288 }
44289 }
44290 if err != nil {
44291 return nil, err
44292 }
44293 defer googleapi.CloseBody(res)
44294 if err := googleapi.CheckResponse(res); err != nil {
44295 return nil, err
44296 }
44297 ret := &Report{
44298 ServerResponse: googleapi.ServerResponse{
44299 Header: res.Header,
44300 HTTPStatusCode: res.StatusCode,
44301 },
44302 }
44303 target := &ret
44304 if err := gensupport.DecodeResponse(target, res); err != nil {
44305 return nil, err
44306 }
44307 return ret, nil
44308
44309
44310
44311
44312
44313
44314
44315
44316
44317
44318
44319
44320
44321
44322
44323
44324
44325
44326
44327
44328
44329
44330
44331
44332
44333
44334
44335
44336
44337
44338
44339
44340
44341
44342
44343
44344 }
44345
44346
44347
44348 type ReportsCompatibleFieldsQueryCall struct {
44349 s *Service
44350 profileId int64
44351 report *Report
44352 urlParams_ gensupport.URLParams
44353 ctx_ context.Context
44354 header_ http.Header
44355 }
44356
44357
44358
44359
44360 func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall {
44361 c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44362 c.profileId = profileId
44363 c.report = report
44364 return c
44365 }
44366
44367
44368
44369
44370 func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall {
44371 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44372 return c
44373 }
44374
44375
44376
44377
44378 func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall {
44379 c.ctx_ = ctx
44380 return c
44381 }
44382
44383
44384
44385 func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header {
44386 if c.header_ == nil {
44387 c.header_ = make(http.Header)
44388 }
44389 return c.header_
44390 }
44391
44392 func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) {
44393 reqHeaders := make(http.Header)
44394 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
44395 for k, v := range c.header_ {
44396 reqHeaders[k] = v
44397 }
44398 reqHeaders.Set("User-Agent", c.s.userAgent())
44399 var body io.Reader = nil
44400 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
44401 if err != nil {
44402 return nil, err
44403 }
44404 reqHeaders.Set("Content-Type", "application/json")
44405 c.urlParams_.Set("alt", alt)
44406 c.urlParams_.Set("prettyPrint", "false")
44407 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query")
44408 urls += "?" + c.urlParams_.Encode()
44409 req, err := http.NewRequest("POST", urls, body)
44410 if err != nil {
44411 return nil, err
44412 }
44413 req.Header = reqHeaders
44414 googleapi.Expand(req.URL, map[string]string{
44415 "profileId": strconv.FormatInt(c.profileId, 10),
44416 })
44417 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44418 }
44419
44420
44421
44422
44423
44424
44425
44426
44427 func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) {
44428 gensupport.SetOptions(c.urlParams_, opts...)
44429 res, err := c.doRequest("json")
44430 if res != nil && res.StatusCode == http.StatusNotModified {
44431 if res.Body != nil {
44432 res.Body.Close()
44433 }
44434 return nil, &googleapi.Error{
44435 Code: res.StatusCode,
44436 Header: res.Header,
44437 }
44438 }
44439 if err != nil {
44440 return nil, err
44441 }
44442 defer googleapi.CloseBody(res)
44443 if err := googleapi.CheckResponse(res); err != nil {
44444 return nil, err
44445 }
44446 ret := &CompatibleFields{
44447 ServerResponse: googleapi.ServerResponse{
44448 Header: res.Header,
44449 HTTPStatusCode: res.StatusCode,
44450 },
44451 }
44452 target := &ret
44453 if err := gensupport.DecodeResponse(target, res); err != nil {
44454 return nil, err
44455 }
44456 return ret, nil
44457
44458
44459
44460
44461
44462
44463
44464
44465
44466
44467
44468
44469
44470
44471
44472
44473
44474
44475
44476
44477
44478
44479
44480
44481
44482
44483
44484
44485 }
44486
44487
44488
44489 type ReportsFilesGetCall struct {
44490 s *Service
44491 profileId int64
44492 reportId int64
44493 fileId int64
44494 urlParams_ gensupport.URLParams
44495 ifNoneMatch_ string
44496 ctx_ context.Context
44497 header_ http.Header
44498 }
44499
44500
44501 func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall {
44502 c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44503 c.profileId = profileId
44504 c.reportId = reportId
44505 c.fileId = fileId
44506 return c
44507 }
44508
44509
44510
44511
44512 func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall {
44513 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44514 return c
44515 }
44516
44517
44518
44519
44520
44521
44522 func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall {
44523 c.ifNoneMatch_ = entityTag
44524 return c
44525 }
44526
44527
44528
44529
44530 func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall {
44531 c.ctx_ = ctx
44532 return c
44533 }
44534
44535
44536
44537 func (c *ReportsFilesGetCall) Header() http.Header {
44538 if c.header_ == nil {
44539 c.header_ = make(http.Header)
44540 }
44541 return c.header_
44542 }
44543
44544 func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) {
44545 reqHeaders := make(http.Header)
44546 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
44547 for k, v := range c.header_ {
44548 reqHeaders[k] = v
44549 }
44550 reqHeaders.Set("User-Agent", c.s.userAgent())
44551 if c.ifNoneMatch_ != "" {
44552 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44553 }
44554 var body io.Reader = nil
44555 c.urlParams_.Set("alt", alt)
44556 c.urlParams_.Set("prettyPrint", "false")
44557 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files/{fileId}")
44558 urls += "?" + c.urlParams_.Encode()
44559 req, err := http.NewRequest("GET", urls, body)
44560 if err != nil {
44561 return nil, err
44562 }
44563 req.Header = reqHeaders
44564 googleapi.Expand(req.URL, map[string]string{
44565 "profileId": strconv.FormatInt(c.profileId, 10),
44566 "reportId": strconv.FormatInt(c.reportId, 10),
44567 "fileId": strconv.FormatInt(c.fileId, 10),
44568 })
44569 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44570 }
44571
44572
44573
44574
44575 func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
44576 gensupport.SetOptions(c.urlParams_, opts...)
44577 res, err := c.doRequest("media")
44578 if err != nil {
44579 return nil, err
44580 }
44581 if err := googleapi.CheckMediaResponse(res); err != nil {
44582 res.Body.Close()
44583 return nil, err
44584 }
44585 return res, nil
44586 }
44587
44588
44589
44590
44591
44592
44593
44594
44595 func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) {
44596 gensupport.SetOptions(c.urlParams_, opts...)
44597 res, err := c.doRequest("json")
44598 if res != nil && res.StatusCode == http.StatusNotModified {
44599 if res.Body != nil {
44600 res.Body.Close()
44601 }
44602 return nil, &googleapi.Error{
44603 Code: res.StatusCode,
44604 Header: res.Header,
44605 }
44606 }
44607 if err != nil {
44608 return nil, err
44609 }
44610 defer googleapi.CloseBody(res)
44611 if err := googleapi.CheckResponse(res); err != nil {
44612 return nil, err
44613 }
44614 ret := &File{
44615 ServerResponse: googleapi.ServerResponse{
44616 Header: res.Header,
44617 HTTPStatusCode: res.StatusCode,
44618 },
44619 }
44620 target := &ret
44621 if err := gensupport.DecodeResponse(target, res); err != nil {
44622 return nil, err
44623 }
44624 return ret, nil
44625
44626
44627
44628
44629
44630
44631
44632
44633
44634
44635
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667 }
44668
44669
44670
44671 type ReportsFilesListCall struct {
44672 s *Service
44673 profileId int64
44674 reportId int64
44675 urlParams_ gensupport.URLParams
44676 ifNoneMatch_ string
44677 ctx_ context.Context
44678 header_ http.Header
44679 }
44680
44681
44682 func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall {
44683 c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44684 c.profileId = profileId
44685 c.reportId = reportId
44686 return c
44687 }
44688
44689
44690
44691 func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall {
44692 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
44693 return c
44694 }
44695
44696
44697
44698 func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall {
44699 c.urlParams_.Set("pageToken", pageToken)
44700 return c
44701 }
44702
44703
44704
44705
44706
44707
44708
44709
44710 func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall {
44711 c.urlParams_.Set("sortField", sortField)
44712 return c
44713 }
44714
44715
44716
44717
44718
44719
44720
44721
44722 func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall {
44723 c.urlParams_.Set("sortOrder", sortOrder)
44724 return c
44725 }
44726
44727
44728
44729
44730 func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall {
44731 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44732 return c
44733 }
44734
44735
44736
44737
44738
44739
44740 func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall {
44741 c.ifNoneMatch_ = entityTag
44742 return c
44743 }
44744
44745
44746
44747
44748 func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall {
44749 c.ctx_ = ctx
44750 return c
44751 }
44752
44753
44754
44755 func (c *ReportsFilesListCall) Header() http.Header {
44756 if c.header_ == nil {
44757 c.header_ = make(http.Header)
44758 }
44759 return c.header_
44760 }
44761
44762 func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) {
44763 reqHeaders := make(http.Header)
44764 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
44765 for k, v := range c.header_ {
44766 reqHeaders[k] = v
44767 }
44768 reqHeaders.Set("User-Agent", c.s.userAgent())
44769 if c.ifNoneMatch_ != "" {
44770 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44771 }
44772 var body io.Reader = nil
44773 c.urlParams_.Set("alt", alt)
44774 c.urlParams_.Set("prettyPrint", "false")
44775 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files")
44776 urls += "?" + c.urlParams_.Encode()
44777 req, err := http.NewRequest("GET", urls, body)
44778 if err != nil {
44779 return nil, err
44780 }
44781 req.Header = reqHeaders
44782 googleapi.Expand(req.URL, map[string]string{
44783 "profileId": strconv.FormatInt(c.profileId, 10),
44784 "reportId": strconv.FormatInt(c.reportId, 10),
44785 })
44786 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44787 }
44788
44789
44790
44791
44792
44793
44794
44795
44796 func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) {
44797 gensupport.SetOptions(c.urlParams_, opts...)
44798 res, err := c.doRequest("json")
44799 if res != nil && res.StatusCode == http.StatusNotModified {
44800 if res.Body != nil {
44801 res.Body.Close()
44802 }
44803 return nil, &googleapi.Error{
44804 Code: res.StatusCode,
44805 Header: res.Header,
44806 }
44807 }
44808 if err != nil {
44809 return nil, err
44810 }
44811 defer googleapi.CloseBody(res)
44812 if err := googleapi.CheckResponse(res); err != nil {
44813 return nil, err
44814 }
44815 ret := &FileList{
44816 ServerResponse: googleapi.ServerResponse{
44817 Header: res.Header,
44818 HTTPStatusCode: res.StatusCode,
44819 },
44820 }
44821 target := &ret
44822 if err := gensupport.DecodeResponse(target, res); err != nil {
44823 return nil, err
44824 }
44825 return ret, nil
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852
44853
44854
44855
44856
44857
44858
44859
44860
44861
44862
44863
44864
44865
44866
44867
44868
44869
44870
44871
44872
44873
44874
44875
44876
44877
44878
44879
44880
44881
44882
44883
44884
44885
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895
44896
44897
44898
44899
44900
44901 }
44902
44903
44904
44905
44906 func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error {
44907 c.ctx_ = ctx
44908 defer c.PageToken(c.urlParams_.Get("pageToken"))
44909 for {
44910 x, err := c.Do()
44911 if err != nil {
44912 return err
44913 }
44914 if err := f(x); err != nil {
44915 return err
44916 }
44917 if x.NextPageToken == "" {
44918 return nil
44919 }
44920 c.PageToken(x.NextPageToken)
44921 }
44922 }
44923
44924
44925
44926 type SitesGetCall struct {
44927 s *Service
44928 profileId int64
44929 id int64
44930 urlParams_ gensupport.URLParams
44931 ifNoneMatch_ string
44932 ctx_ context.Context
44933 header_ http.Header
44934 }
44935
44936
44937 func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall {
44938 c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44939 c.profileId = profileId
44940 c.id = id
44941 return c
44942 }
44943
44944
44945
44946
44947 func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall {
44948 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44949 return c
44950 }
44951
44952
44953
44954
44955
44956
44957 func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall {
44958 c.ifNoneMatch_ = entityTag
44959 return c
44960 }
44961
44962
44963
44964
44965 func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall {
44966 c.ctx_ = ctx
44967 return c
44968 }
44969
44970
44971
44972 func (c *SitesGetCall) Header() http.Header {
44973 if c.header_ == nil {
44974 c.header_ = make(http.Header)
44975 }
44976 return c.header_
44977 }
44978
44979 func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) {
44980 reqHeaders := make(http.Header)
44981 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
44982 for k, v := range c.header_ {
44983 reqHeaders[k] = v
44984 }
44985 reqHeaders.Set("User-Agent", c.s.userAgent())
44986 if c.ifNoneMatch_ != "" {
44987 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44988 }
44989 var body io.Reader = nil
44990 c.urlParams_.Set("alt", alt)
44991 c.urlParams_.Set("prettyPrint", "false")
44992 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites/{id}")
44993 urls += "?" + c.urlParams_.Encode()
44994 req, err := http.NewRequest("GET", urls, body)
44995 if err != nil {
44996 return nil, err
44997 }
44998 req.Header = reqHeaders
44999 googleapi.Expand(req.URL, map[string]string{
45000 "profileId": strconv.FormatInt(c.profileId, 10),
45001 "id": strconv.FormatInt(c.id, 10),
45002 })
45003 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45004 }
45005
45006
45007
45008
45009
45010
45011
45012
45013 func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) {
45014 gensupport.SetOptions(c.urlParams_, opts...)
45015 res, err := c.doRequest("json")
45016 if res != nil && res.StatusCode == http.StatusNotModified {
45017 if res.Body != nil {
45018 res.Body.Close()
45019 }
45020 return nil, &googleapi.Error{
45021 Code: res.StatusCode,
45022 Header: res.Header,
45023 }
45024 }
45025 if err != nil {
45026 return nil, err
45027 }
45028 defer googleapi.CloseBody(res)
45029 if err := googleapi.CheckResponse(res); err != nil {
45030 return nil, err
45031 }
45032 ret := &Site{
45033 ServerResponse: googleapi.ServerResponse{
45034 Header: res.Header,
45035 HTTPStatusCode: res.StatusCode,
45036 },
45037 }
45038 target := &ret
45039 if err := gensupport.DecodeResponse(target, res); err != nil {
45040 return nil, err
45041 }
45042 return ret, nil
45043
45044
45045
45046
45047
45048
45049
45050
45051
45052
45053
45054
45055
45056
45057
45058
45059
45060
45061
45062
45063
45064
45065
45066
45067
45068
45069
45070
45071
45072
45073
45074
45075
45076 }
45077
45078
45079
45080 type SitesInsertCall struct {
45081 s *Service
45082 profileId int64
45083 site *Site
45084 urlParams_ gensupport.URLParams
45085 ctx_ context.Context
45086 header_ http.Header
45087 }
45088
45089
45090 func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall {
45091 c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45092 c.profileId = profileId
45093 c.site = site
45094 return c
45095 }
45096
45097
45098
45099
45100 func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall {
45101 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45102 return c
45103 }
45104
45105
45106
45107
45108 func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall {
45109 c.ctx_ = ctx
45110 return c
45111 }
45112
45113
45114
45115 func (c *SitesInsertCall) Header() http.Header {
45116 if c.header_ == nil {
45117 c.header_ = make(http.Header)
45118 }
45119 return c.header_
45120 }
45121
45122 func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) {
45123 reqHeaders := make(http.Header)
45124 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
45125 for k, v := range c.header_ {
45126 reqHeaders[k] = v
45127 }
45128 reqHeaders.Set("User-Agent", c.s.userAgent())
45129 var body io.Reader = nil
45130 body, err := googleapi.WithoutDataWrapper.JSONReader(c.site)
45131 if err != nil {
45132 return nil, err
45133 }
45134 reqHeaders.Set("Content-Type", "application/json")
45135 c.urlParams_.Set("alt", alt)
45136 c.urlParams_.Set("prettyPrint", "false")
45137 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
45138 urls += "?" + c.urlParams_.Encode()
45139 req, err := http.NewRequest("POST", urls, body)
45140 if err != nil {
45141 return nil, err
45142 }
45143 req.Header = reqHeaders
45144 googleapi.Expand(req.URL, map[string]string{
45145 "profileId": strconv.FormatInt(c.profileId, 10),
45146 })
45147 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45148 }
45149
45150
45151
45152
45153
45154
45155
45156
45157 func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) {
45158 gensupport.SetOptions(c.urlParams_, opts...)
45159 res, err := c.doRequest("json")
45160 if res != nil && res.StatusCode == http.StatusNotModified {
45161 if res.Body != nil {
45162 res.Body.Close()
45163 }
45164 return nil, &googleapi.Error{
45165 Code: res.StatusCode,
45166 Header: res.Header,
45167 }
45168 }
45169 if err != nil {
45170 return nil, err
45171 }
45172 defer googleapi.CloseBody(res)
45173 if err := googleapi.CheckResponse(res); err != nil {
45174 return nil, err
45175 }
45176 ret := &Site{
45177 ServerResponse: googleapi.ServerResponse{
45178 Header: res.Header,
45179 HTTPStatusCode: res.StatusCode,
45180 },
45181 }
45182 target := &ret
45183 if err := gensupport.DecodeResponse(target, res); err != nil {
45184 return nil, err
45185 }
45186 return ret, nil
45187
45188
45189
45190
45191
45192
45193
45194
45195
45196
45197
45198
45199
45200
45201
45202
45203
45204
45205
45206
45207
45208
45209
45210
45211
45212
45213
45214
45215 }
45216
45217
45218
45219 type SitesListCall struct {
45220 s *Service
45221 profileId int64
45222 urlParams_ gensupport.URLParams
45223 ifNoneMatch_ string
45224 ctx_ context.Context
45225 header_ http.Header
45226 }
45227
45228
45229
45230 func (r *SitesService) List(profileId int64) *SitesListCall {
45231 c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45232 c.profileId = profileId
45233 return c
45234 }
45235
45236
45237
45238
45239 func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall {
45240 c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements))
45241 return c
45242 }
45243
45244
45245
45246
45247 func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall {
45248 c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements))
45249 return c
45250 }
45251
45252
45253
45254
45255 func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall {
45256 c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements))
45257 return c
45258 }
45259
45260
45261
45262 func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall {
45263 c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite))
45264 return c
45265 }
45266
45267
45268
45269 func (c *SitesListCall) Approved(approved bool) *SitesListCall {
45270 c.urlParams_.Set("approved", fmt.Sprint(approved))
45271 return c
45272 }
45273
45274
45275
45276 func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall {
45277 var campaignIds_ []string
45278 for _, v := range campaignIds {
45279 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
45280 }
45281 c.urlParams_.SetMulti("campaignIds", campaignIds_)
45282 return c
45283 }
45284
45285
45286
45287 func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall {
45288 var directorySiteIds_ []string
45289 for _, v := range directorySiteIds {
45290 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
45291 }
45292 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
45293 return c
45294 }
45295
45296
45297
45298 func (c *SitesListCall) Ids(ids ...int64) *SitesListCall {
45299 var ids_ []string
45300 for _, v := range ids {
45301 ids_ = append(ids_, fmt.Sprint(v))
45302 }
45303 c.urlParams_.SetMulti("ids", ids_)
45304 return c
45305 }
45306
45307
45308
45309 func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall {
45310 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
45311 return c
45312 }
45313
45314
45315
45316 func (c *SitesListCall) PageToken(pageToken string) *SitesListCall {
45317 c.urlParams_.Set("pageToken", pageToken)
45318 return c
45319 }
45320
45321
45322
45323
45324
45325
45326
45327
45328 func (c *SitesListCall) SearchString(searchString string) *SitesListCall {
45329 c.urlParams_.Set("searchString", searchString)
45330 return c
45331 }
45332
45333
45334
45335
45336
45337
45338
45339
45340 func (c *SitesListCall) SortField(sortField string) *SitesListCall {
45341 c.urlParams_.Set("sortField", sortField)
45342 return c
45343 }
45344
45345
45346
45347
45348
45349
45350
45351
45352 func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall {
45353 c.urlParams_.Set("sortOrder", sortOrder)
45354 return c
45355 }
45356
45357
45358
45359 func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall {
45360 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
45361 return c
45362 }
45363
45364
45365
45366 func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall {
45367 c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite))
45368 return c
45369 }
45370
45371
45372
45373
45374 func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall {
45375 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45376 return c
45377 }
45378
45379
45380
45381
45382
45383
45384 func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall {
45385 c.ifNoneMatch_ = entityTag
45386 return c
45387 }
45388
45389
45390
45391
45392 func (c *SitesListCall) Context(ctx context.Context) *SitesListCall {
45393 c.ctx_ = ctx
45394 return c
45395 }
45396
45397
45398
45399 func (c *SitesListCall) Header() http.Header {
45400 if c.header_ == nil {
45401 c.header_ = make(http.Header)
45402 }
45403 return c.header_
45404 }
45405
45406 func (c *SitesListCall) doRequest(alt string) (*http.Response, error) {
45407 reqHeaders := make(http.Header)
45408 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
45409 for k, v := range c.header_ {
45410 reqHeaders[k] = v
45411 }
45412 reqHeaders.Set("User-Agent", c.s.userAgent())
45413 if c.ifNoneMatch_ != "" {
45414 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45415 }
45416 var body io.Reader = nil
45417 c.urlParams_.Set("alt", alt)
45418 c.urlParams_.Set("prettyPrint", "false")
45419 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
45420 urls += "?" + c.urlParams_.Encode()
45421 req, err := http.NewRequest("GET", urls, body)
45422 if err != nil {
45423 return nil, err
45424 }
45425 req.Header = reqHeaders
45426 googleapi.Expand(req.URL, map[string]string{
45427 "profileId": strconv.FormatInt(c.profileId, 10),
45428 })
45429 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45430 }
45431
45432
45433
45434
45435
45436
45437
45438
45439 func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) {
45440 gensupport.SetOptions(c.urlParams_, opts...)
45441 res, err := c.doRequest("json")
45442 if res != nil && res.StatusCode == http.StatusNotModified {
45443 if res.Body != nil {
45444 res.Body.Close()
45445 }
45446 return nil, &googleapi.Error{
45447 Code: res.StatusCode,
45448 Header: res.Header,
45449 }
45450 }
45451 if err != nil {
45452 return nil, err
45453 }
45454 defer googleapi.CloseBody(res)
45455 if err := googleapi.CheckResponse(res); err != nil {
45456 return nil, err
45457 }
45458 ret := &SitesListResponse{
45459 ServerResponse: googleapi.ServerResponse{
45460 Header: res.Header,
45461 HTTPStatusCode: res.StatusCode,
45462 },
45463 }
45464 target := &ret
45465 if err := gensupport.DecodeResponse(target, res); err != nil {
45466 return nil, err
45467 }
45468 return ret, nil
45469
45470
45471
45472
45473
45474
45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
45494
45495
45496
45497
45498
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508
45509
45510
45511
45512
45513
45514
45515
45516
45517
45518
45519
45520
45521
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
45533
45534
45535
45536
45537
45538
45539
45540
45541
45542
45543
45544
45545
45546
45547
45548
45549
45550
45551
45552
45553
45554
45555
45556
45557
45558
45559
45560
45561
45562
45563
45564
45565
45566
45567
45568
45569
45570
45571
45572
45573
45574
45575
45576
45577
45578
45579
45580
45581
45582
45583
45584
45585
45586
45587
45588
45589
45590
45591
45592
45593
45594
45595
45596
45597
45598 }
45599
45600
45601
45602
45603 func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error {
45604 c.ctx_ = ctx
45605 defer c.PageToken(c.urlParams_.Get("pageToken"))
45606 for {
45607 x, err := c.Do()
45608 if err != nil {
45609 return err
45610 }
45611 if err := f(x); err != nil {
45612 return err
45613 }
45614 if x.NextPageToken == "" {
45615 return nil
45616 }
45617 c.PageToken(x.NextPageToken)
45618 }
45619 }
45620
45621
45622
45623 type SitesPatchCall struct {
45624 s *Service
45625 profileId int64
45626 site *Site
45627 urlParams_ gensupport.URLParams
45628 ctx_ context.Context
45629 header_ http.Header
45630 }
45631
45632
45633
45634 func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall {
45635 c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45636 c.profileId = profileId
45637 c.urlParams_.Set("id", fmt.Sprint(id))
45638 c.site = site
45639 return c
45640 }
45641
45642
45643
45644
45645 func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall {
45646 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45647 return c
45648 }
45649
45650
45651
45652
45653 func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall {
45654 c.ctx_ = ctx
45655 return c
45656 }
45657
45658
45659
45660 func (c *SitesPatchCall) Header() http.Header {
45661 if c.header_ == nil {
45662 c.header_ = make(http.Header)
45663 }
45664 return c.header_
45665 }
45666
45667 func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) {
45668 reqHeaders := make(http.Header)
45669 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
45670 for k, v := range c.header_ {
45671 reqHeaders[k] = v
45672 }
45673 reqHeaders.Set("User-Agent", c.s.userAgent())
45674 var body io.Reader = nil
45675 body, err := googleapi.WithoutDataWrapper.JSONReader(c.site)
45676 if err != nil {
45677 return nil, err
45678 }
45679 reqHeaders.Set("Content-Type", "application/json")
45680 c.urlParams_.Set("alt", alt)
45681 c.urlParams_.Set("prettyPrint", "false")
45682 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
45683 urls += "?" + c.urlParams_.Encode()
45684 req, err := http.NewRequest("PATCH", urls, body)
45685 if err != nil {
45686 return nil, err
45687 }
45688 req.Header = reqHeaders
45689 googleapi.Expand(req.URL, map[string]string{
45690 "profileId": strconv.FormatInt(c.profileId, 10),
45691 })
45692 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45693 }
45694
45695
45696
45697
45698
45699
45700
45701
45702 func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) {
45703 gensupport.SetOptions(c.urlParams_, opts...)
45704 res, err := c.doRequest("json")
45705 if res != nil && res.StatusCode == http.StatusNotModified {
45706 if res.Body != nil {
45707 res.Body.Close()
45708 }
45709 return nil, &googleapi.Error{
45710 Code: res.StatusCode,
45711 Header: res.Header,
45712 }
45713 }
45714 if err != nil {
45715 return nil, err
45716 }
45717 defer googleapi.CloseBody(res)
45718 if err := googleapi.CheckResponse(res); err != nil {
45719 return nil, err
45720 }
45721 ret := &Site{
45722 ServerResponse: googleapi.ServerResponse{
45723 Header: res.Header,
45724 HTTPStatusCode: res.StatusCode,
45725 },
45726 }
45727 target := &ret
45728 if err := gensupport.DecodeResponse(target, res); err != nil {
45729 return nil, err
45730 }
45731 return ret, nil
45732
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742
45743
45744
45745
45746
45747
45748
45749
45750
45751
45752
45753
45754
45755
45756
45757
45758
45759
45760
45761
45762
45763
45764
45765
45766
45767
45768 }
45769
45770
45771
45772 type SitesUpdateCall struct {
45773 s *Service
45774 profileId int64
45775 site *Site
45776 urlParams_ gensupport.URLParams
45777 ctx_ context.Context
45778 header_ http.Header
45779 }
45780
45781
45782 func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall {
45783 c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45784 c.profileId = profileId
45785 c.site = site
45786 return c
45787 }
45788
45789
45790
45791
45792 func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall {
45793 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45794 return c
45795 }
45796
45797
45798
45799
45800 func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall {
45801 c.ctx_ = ctx
45802 return c
45803 }
45804
45805
45806
45807 func (c *SitesUpdateCall) Header() http.Header {
45808 if c.header_ == nil {
45809 c.header_ = make(http.Header)
45810 }
45811 return c.header_
45812 }
45813
45814 func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) {
45815 reqHeaders := make(http.Header)
45816 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
45817 for k, v := range c.header_ {
45818 reqHeaders[k] = v
45819 }
45820 reqHeaders.Set("User-Agent", c.s.userAgent())
45821 var body io.Reader = nil
45822 body, err := googleapi.WithoutDataWrapper.JSONReader(c.site)
45823 if err != nil {
45824 return nil, err
45825 }
45826 reqHeaders.Set("Content-Type", "application/json")
45827 c.urlParams_.Set("alt", alt)
45828 c.urlParams_.Set("prettyPrint", "false")
45829 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
45830 urls += "?" + c.urlParams_.Encode()
45831 req, err := http.NewRequest("PUT", urls, body)
45832 if err != nil {
45833 return nil, err
45834 }
45835 req.Header = reqHeaders
45836 googleapi.Expand(req.URL, map[string]string{
45837 "profileId": strconv.FormatInt(c.profileId, 10),
45838 })
45839 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45840 }
45841
45842
45843
45844
45845
45846
45847
45848
45849 func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) {
45850 gensupport.SetOptions(c.urlParams_, opts...)
45851 res, err := c.doRequest("json")
45852 if res != nil && res.StatusCode == http.StatusNotModified {
45853 if res.Body != nil {
45854 res.Body.Close()
45855 }
45856 return nil, &googleapi.Error{
45857 Code: res.StatusCode,
45858 Header: res.Header,
45859 }
45860 }
45861 if err != nil {
45862 return nil, err
45863 }
45864 defer googleapi.CloseBody(res)
45865 if err := googleapi.CheckResponse(res); err != nil {
45866 return nil, err
45867 }
45868 ret := &Site{
45869 ServerResponse: googleapi.ServerResponse{
45870 Header: res.Header,
45871 HTTPStatusCode: res.StatusCode,
45872 },
45873 }
45874 target := &ret
45875 if err := gensupport.DecodeResponse(target, res); err != nil {
45876 return nil, err
45877 }
45878 return ret, nil
45879
45880
45881
45882
45883
45884
45885
45886
45887
45888
45889
45890
45891
45892
45893
45894
45895
45896
45897
45898
45899
45900
45901
45902
45903
45904
45905
45906
45907 }
45908
45909
45910
45911 type SizesGetCall struct {
45912 s *Service
45913 profileId int64
45914 id int64
45915 urlParams_ gensupport.URLParams
45916 ifNoneMatch_ string
45917 ctx_ context.Context
45918 header_ http.Header
45919 }
45920
45921
45922 func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall {
45923 c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45924 c.profileId = profileId
45925 c.id = id
45926 return c
45927 }
45928
45929
45930
45931
45932 func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall {
45933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45934 return c
45935 }
45936
45937
45938
45939
45940
45941
45942 func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall {
45943 c.ifNoneMatch_ = entityTag
45944 return c
45945 }
45946
45947
45948
45949
45950 func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall {
45951 c.ctx_ = ctx
45952 return c
45953 }
45954
45955
45956
45957 func (c *SizesGetCall) Header() http.Header {
45958 if c.header_ == nil {
45959 c.header_ = make(http.Header)
45960 }
45961 return c.header_
45962 }
45963
45964 func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) {
45965 reqHeaders := make(http.Header)
45966 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
45967 for k, v := range c.header_ {
45968 reqHeaders[k] = v
45969 }
45970 reqHeaders.Set("User-Agent", c.s.userAgent())
45971 if c.ifNoneMatch_ != "" {
45972 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45973 }
45974 var body io.Reader = nil
45975 c.urlParams_.Set("alt", alt)
45976 c.urlParams_.Set("prettyPrint", "false")
45977 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes/{id}")
45978 urls += "?" + c.urlParams_.Encode()
45979 req, err := http.NewRequest("GET", urls, body)
45980 if err != nil {
45981 return nil, err
45982 }
45983 req.Header = reqHeaders
45984 googleapi.Expand(req.URL, map[string]string{
45985 "profileId": strconv.FormatInt(c.profileId, 10),
45986 "id": strconv.FormatInt(c.id, 10),
45987 })
45988 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45989 }
45990
45991
45992
45993
45994
45995
45996
45997
45998 func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) {
45999 gensupport.SetOptions(c.urlParams_, opts...)
46000 res, err := c.doRequest("json")
46001 if res != nil && res.StatusCode == http.StatusNotModified {
46002 if res.Body != nil {
46003 res.Body.Close()
46004 }
46005 return nil, &googleapi.Error{
46006 Code: res.StatusCode,
46007 Header: res.Header,
46008 }
46009 }
46010 if err != nil {
46011 return nil, err
46012 }
46013 defer googleapi.CloseBody(res)
46014 if err := googleapi.CheckResponse(res); err != nil {
46015 return nil, err
46016 }
46017 ret := &Size{
46018 ServerResponse: googleapi.ServerResponse{
46019 Header: res.Header,
46020 HTTPStatusCode: res.StatusCode,
46021 },
46022 }
46023 target := &ret
46024 if err := gensupport.DecodeResponse(target, res); err != nil {
46025 return nil, err
46026 }
46027 return ret, nil
46028
46029
46030
46031
46032
46033
46034
46035
46036
46037
46038
46039
46040
46041
46042
46043
46044
46045
46046
46047
46048
46049
46050
46051
46052
46053
46054
46055
46056
46057
46058
46059
46060
46061 }
46062
46063
46064
46065 type SizesInsertCall struct {
46066 s *Service
46067 profileId int64
46068 size *Size
46069 urlParams_ gensupport.URLParams
46070 ctx_ context.Context
46071 header_ http.Header
46072 }
46073
46074
46075 func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall {
46076 c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46077 c.profileId = profileId
46078 c.size = size
46079 return c
46080 }
46081
46082
46083
46084
46085 func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall {
46086 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46087 return c
46088 }
46089
46090
46091
46092
46093 func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall {
46094 c.ctx_ = ctx
46095 return c
46096 }
46097
46098
46099
46100 func (c *SizesInsertCall) Header() http.Header {
46101 if c.header_ == nil {
46102 c.header_ = make(http.Header)
46103 }
46104 return c.header_
46105 }
46106
46107 func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) {
46108 reqHeaders := make(http.Header)
46109 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
46110 for k, v := range c.header_ {
46111 reqHeaders[k] = v
46112 }
46113 reqHeaders.Set("User-Agent", c.s.userAgent())
46114 var body io.Reader = nil
46115 body, err := googleapi.WithoutDataWrapper.JSONReader(c.size)
46116 if err != nil {
46117 return nil, err
46118 }
46119 reqHeaders.Set("Content-Type", "application/json")
46120 c.urlParams_.Set("alt", alt)
46121 c.urlParams_.Set("prettyPrint", "false")
46122 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes")
46123 urls += "?" + c.urlParams_.Encode()
46124 req, err := http.NewRequest("POST", urls, body)
46125 if err != nil {
46126 return nil, err
46127 }
46128 req.Header = reqHeaders
46129 googleapi.Expand(req.URL, map[string]string{
46130 "profileId": strconv.FormatInt(c.profileId, 10),
46131 })
46132 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46133 }
46134
46135
46136
46137
46138
46139
46140
46141
46142 func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) {
46143 gensupport.SetOptions(c.urlParams_, opts...)
46144 res, err := c.doRequest("json")
46145 if res != nil && res.StatusCode == http.StatusNotModified {
46146 if res.Body != nil {
46147 res.Body.Close()
46148 }
46149 return nil, &googleapi.Error{
46150 Code: res.StatusCode,
46151 Header: res.Header,
46152 }
46153 }
46154 if err != nil {
46155 return nil, err
46156 }
46157 defer googleapi.CloseBody(res)
46158 if err := googleapi.CheckResponse(res); err != nil {
46159 return nil, err
46160 }
46161 ret := &Size{
46162 ServerResponse: googleapi.ServerResponse{
46163 Header: res.Header,
46164 HTTPStatusCode: res.StatusCode,
46165 },
46166 }
46167 target := &ret
46168 if err := gensupport.DecodeResponse(target, res); err != nil {
46169 return nil, err
46170 }
46171 return ret, nil
46172
46173
46174
46175
46176
46177
46178
46179
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189
46190
46191
46192
46193
46194
46195
46196
46197
46198
46199
46200 }
46201
46202
46203
46204 type SizesListCall struct {
46205 s *Service
46206 profileId int64
46207 urlParams_ gensupport.URLParams
46208 ifNoneMatch_ string
46209 ctx_ context.Context
46210 header_ http.Header
46211 }
46212
46213
46214 func (r *SizesService) List(profileId int64) *SizesListCall {
46215 c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46216 c.profileId = profileId
46217 return c
46218 }
46219
46220
46221
46222 func (c *SizesListCall) Height(height int64) *SizesListCall {
46223 c.urlParams_.Set("height", fmt.Sprint(height))
46224 return c
46225 }
46226
46227
46228
46229 func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall {
46230 c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard))
46231 return c
46232 }
46233
46234
46235
46236 func (c *SizesListCall) Ids(ids ...int64) *SizesListCall {
46237 var ids_ []string
46238 for _, v := range ids {
46239 ids_ = append(ids_, fmt.Sprint(v))
46240 }
46241 c.urlParams_.SetMulti("ids", ids_)
46242 return c
46243 }
46244
46245
46246
46247 func (c *SizesListCall) Width(width int64) *SizesListCall {
46248 c.urlParams_.Set("width", fmt.Sprint(width))
46249 return c
46250 }
46251
46252
46253
46254
46255 func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall {
46256 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46257 return c
46258 }
46259
46260
46261
46262
46263
46264
46265 func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall {
46266 c.ifNoneMatch_ = entityTag
46267 return c
46268 }
46269
46270
46271
46272
46273 func (c *SizesListCall) Context(ctx context.Context) *SizesListCall {
46274 c.ctx_ = ctx
46275 return c
46276 }
46277
46278
46279
46280 func (c *SizesListCall) Header() http.Header {
46281 if c.header_ == nil {
46282 c.header_ = make(http.Header)
46283 }
46284 return c.header_
46285 }
46286
46287 func (c *SizesListCall) doRequest(alt string) (*http.Response, error) {
46288 reqHeaders := make(http.Header)
46289 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
46290 for k, v := range c.header_ {
46291 reqHeaders[k] = v
46292 }
46293 reqHeaders.Set("User-Agent", c.s.userAgent())
46294 if c.ifNoneMatch_ != "" {
46295 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46296 }
46297 var body io.Reader = nil
46298 c.urlParams_.Set("alt", alt)
46299 c.urlParams_.Set("prettyPrint", "false")
46300 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes")
46301 urls += "?" + c.urlParams_.Encode()
46302 req, err := http.NewRequest("GET", urls, body)
46303 if err != nil {
46304 return nil, err
46305 }
46306 req.Header = reqHeaders
46307 googleapi.Expand(req.URL, map[string]string{
46308 "profileId": strconv.FormatInt(c.profileId, 10),
46309 })
46310 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46311 }
46312
46313
46314
46315
46316
46317
46318
46319
46320 func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) {
46321 gensupport.SetOptions(c.urlParams_, opts...)
46322 res, err := c.doRequest("json")
46323 if res != nil && res.StatusCode == http.StatusNotModified {
46324 if res.Body != nil {
46325 res.Body.Close()
46326 }
46327 return nil, &googleapi.Error{
46328 Code: res.StatusCode,
46329 Header: res.Header,
46330 }
46331 }
46332 if err != nil {
46333 return nil, err
46334 }
46335 defer googleapi.CloseBody(res)
46336 if err := googleapi.CheckResponse(res); err != nil {
46337 return nil, err
46338 }
46339 ret := &SizesListResponse{
46340 ServerResponse: googleapi.ServerResponse{
46341 Header: res.Header,
46342 HTTPStatusCode: res.StatusCode,
46343 },
46344 }
46345 target := &ret
46346 if err := gensupport.DecodeResponse(target, res); err != nil {
46347 return nil, err
46348 }
46349 return ret, nil
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403 }
46404
46405
46406
46407 type SubaccountsGetCall struct {
46408 s *Service
46409 profileId int64
46410 id int64
46411 urlParams_ gensupport.URLParams
46412 ifNoneMatch_ string
46413 ctx_ context.Context
46414 header_ http.Header
46415 }
46416
46417
46418 func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall {
46419 c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46420 c.profileId = profileId
46421 c.id = id
46422 return c
46423 }
46424
46425
46426
46427
46428 func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall {
46429 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46430 return c
46431 }
46432
46433
46434
46435
46436
46437
46438 func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall {
46439 c.ifNoneMatch_ = entityTag
46440 return c
46441 }
46442
46443
46444
46445
46446 func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall {
46447 c.ctx_ = ctx
46448 return c
46449 }
46450
46451
46452
46453 func (c *SubaccountsGetCall) Header() http.Header {
46454 if c.header_ == nil {
46455 c.header_ = make(http.Header)
46456 }
46457 return c.header_
46458 }
46459
46460 func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) {
46461 reqHeaders := make(http.Header)
46462 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
46463 for k, v := range c.header_ {
46464 reqHeaders[k] = v
46465 }
46466 reqHeaders.Set("User-Agent", c.s.userAgent())
46467 if c.ifNoneMatch_ != "" {
46468 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46469 }
46470 var body io.Reader = nil
46471 c.urlParams_.Set("alt", alt)
46472 c.urlParams_.Set("prettyPrint", "false")
46473 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts/{id}")
46474 urls += "?" + c.urlParams_.Encode()
46475 req, err := http.NewRequest("GET", urls, body)
46476 if err != nil {
46477 return nil, err
46478 }
46479 req.Header = reqHeaders
46480 googleapi.Expand(req.URL, map[string]string{
46481 "profileId": strconv.FormatInt(c.profileId, 10),
46482 "id": strconv.FormatInt(c.id, 10),
46483 })
46484 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46485 }
46486
46487
46488
46489
46490
46491
46492
46493
46494 func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
46495 gensupport.SetOptions(c.urlParams_, opts...)
46496 res, err := c.doRequest("json")
46497 if res != nil && res.StatusCode == http.StatusNotModified {
46498 if res.Body != nil {
46499 res.Body.Close()
46500 }
46501 return nil, &googleapi.Error{
46502 Code: res.StatusCode,
46503 Header: res.Header,
46504 }
46505 }
46506 if err != nil {
46507 return nil, err
46508 }
46509 defer googleapi.CloseBody(res)
46510 if err := googleapi.CheckResponse(res); err != nil {
46511 return nil, err
46512 }
46513 ret := &Subaccount{
46514 ServerResponse: googleapi.ServerResponse{
46515 Header: res.Header,
46516 HTTPStatusCode: res.StatusCode,
46517 },
46518 }
46519 target := &ret
46520 if err := gensupport.DecodeResponse(target, res); err != nil {
46521 return nil, err
46522 }
46523 return ret, nil
46524
46525
46526
46527
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
46540
46541
46542
46543
46544
46545
46546
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557 }
46558
46559
46560
46561 type SubaccountsInsertCall struct {
46562 s *Service
46563 profileId int64
46564 subaccount *Subaccount
46565 urlParams_ gensupport.URLParams
46566 ctx_ context.Context
46567 header_ http.Header
46568 }
46569
46570
46571 func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall {
46572 c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46573 c.profileId = profileId
46574 c.subaccount = subaccount
46575 return c
46576 }
46577
46578
46579
46580
46581 func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall {
46582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46583 return c
46584 }
46585
46586
46587
46588
46589 func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall {
46590 c.ctx_ = ctx
46591 return c
46592 }
46593
46594
46595
46596 func (c *SubaccountsInsertCall) Header() http.Header {
46597 if c.header_ == nil {
46598 c.header_ = make(http.Header)
46599 }
46600 return c.header_
46601 }
46602
46603 func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) {
46604 reqHeaders := make(http.Header)
46605 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
46606 for k, v := range c.header_ {
46607 reqHeaders[k] = v
46608 }
46609 reqHeaders.Set("User-Agent", c.s.userAgent())
46610 var body io.Reader = nil
46611 body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount)
46612 if err != nil {
46613 return nil, err
46614 }
46615 reqHeaders.Set("Content-Type", "application/json")
46616 c.urlParams_.Set("alt", alt)
46617 c.urlParams_.Set("prettyPrint", "false")
46618 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
46619 urls += "?" + c.urlParams_.Encode()
46620 req, err := http.NewRequest("POST", urls, body)
46621 if err != nil {
46622 return nil, err
46623 }
46624 req.Header = reqHeaders
46625 googleapi.Expand(req.URL, map[string]string{
46626 "profileId": strconv.FormatInt(c.profileId, 10),
46627 })
46628 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46629 }
46630
46631
46632
46633
46634
46635
46636
46637
46638 func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
46639 gensupport.SetOptions(c.urlParams_, opts...)
46640 res, err := c.doRequest("json")
46641 if res != nil && res.StatusCode == http.StatusNotModified {
46642 if res.Body != nil {
46643 res.Body.Close()
46644 }
46645 return nil, &googleapi.Error{
46646 Code: res.StatusCode,
46647 Header: res.Header,
46648 }
46649 }
46650 if err != nil {
46651 return nil, err
46652 }
46653 defer googleapi.CloseBody(res)
46654 if err := googleapi.CheckResponse(res); err != nil {
46655 return nil, err
46656 }
46657 ret := &Subaccount{
46658 ServerResponse: googleapi.ServerResponse{
46659 Header: res.Header,
46660 HTTPStatusCode: res.StatusCode,
46661 },
46662 }
46663 target := &ret
46664 if err := gensupport.DecodeResponse(target, res); err != nil {
46665 return nil, err
46666 }
46667 return ret, nil
46668
46669
46670
46671
46672
46673
46674
46675
46676
46677
46678
46679
46680
46681
46682
46683
46684
46685
46686
46687
46688
46689
46690
46691
46692
46693
46694
46695
46696 }
46697
46698
46699
46700 type SubaccountsListCall struct {
46701 s *Service
46702 profileId int64
46703 urlParams_ gensupport.URLParams
46704 ifNoneMatch_ string
46705 ctx_ context.Context
46706 header_ http.Header
46707 }
46708
46709
46710
46711 func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall {
46712 c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46713 c.profileId = profileId
46714 return c
46715 }
46716
46717
46718
46719 func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall {
46720 var ids_ []string
46721 for _, v := range ids {
46722 ids_ = append(ids_, fmt.Sprint(v))
46723 }
46724 c.urlParams_.SetMulti("ids", ids_)
46725 return c
46726 }
46727
46728
46729
46730 func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall {
46731 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
46732 return c
46733 }
46734
46735
46736
46737 func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall {
46738 c.urlParams_.Set("pageToken", pageToken)
46739 return c
46740 }
46741
46742
46743
46744
46745
46746
46747
46748
46749
46750 func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall {
46751 c.urlParams_.Set("searchString", searchString)
46752 return c
46753 }
46754
46755
46756
46757
46758
46759
46760
46761
46762 func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall {
46763 c.urlParams_.Set("sortField", sortField)
46764 return c
46765 }
46766
46767
46768
46769
46770
46771
46772
46773
46774 func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall {
46775 c.urlParams_.Set("sortOrder", sortOrder)
46776 return c
46777 }
46778
46779
46780
46781
46782 func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall {
46783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46784 return c
46785 }
46786
46787
46788
46789
46790
46791
46792 func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall {
46793 c.ifNoneMatch_ = entityTag
46794 return c
46795 }
46796
46797
46798
46799
46800 func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall {
46801 c.ctx_ = ctx
46802 return c
46803 }
46804
46805
46806
46807 func (c *SubaccountsListCall) Header() http.Header {
46808 if c.header_ == nil {
46809 c.header_ = make(http.Header)
46810 }
46811 return c.header_
46812 }
46813
46814 func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) {
46815 reqHeaders := make(http.Header)
46816 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
46817 for k, v := range c.header_ {
46818 reqHeaders[k] = v
46819 }
46820 reqHeaders.Set("User-Agent", c.s.userAgent())
46821 if c.ifNoneMatch_ != "" {
46822 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46823 }
46824 var body io.Reader = nil
46825 c.urlParams_.Set("alt", alt)
46826 c.urlParams_.Set("prettyPrint", "false")
46827 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
46828 urls += "?" + c.urlParams_.Encode()
46829 req, err := http.NewRequest("GET", urls, body)
46830 if err != nil {
46831 return nil, err
46832 }
46833 req.Header = reqHeaders
46834 googleapi.Expand(req.URL, map[string]string{
46835 "profileId": strconv.FormatInt(c.profileId, 10),
46836 })
46837 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46838 }
46839
46840
46841
46842
46843
46844
46845
46846
46847 func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) {
46848 gensupport.SetOptions(c.urlParams_, opts...)
46849 res, err := c.doRequest("json")
46850 if res != nil && res.StatusCode == http.StatusNotModified {
46851 if res.Body != nil {
46852 res.Body.Close()
46853 }
46854 return nil, &googleapi.Error{
46855 Code: res.StatusCode,
46856 Header: res.Header,
46857 }
46858 }
46859 if err != nil {
46860 return nil, err
46861 }
46862 defer googleapi.CloseBody(res)
46863 if err := googleapi.CheckResponse(res); err != nil {
46864 return nil, err
46865 }
46866 ret := &SubaccountsListResponse{
46867 ServerResponse: googleapi.ServerResponse{
46868 Header: res.Header,
46869 HTTPStatusCode: res.StatusCode,
46870 },
46871 }
46872 target := &ret
46873 if err := gensupport.DecodeResponse(target, res); err != nil {
46874 return nil, err
46875 }
46876 return ret, nil
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
46907
46908
46909
46910
46911
46912
46913
46914
46915
46916
46917
46918
46919
46920
46921
46922
46923
46924
46925
46926
46927
46928
46929
46930
46931
46932
46933
46934
46935
46936
46937
46938
46939
46940
46941
46942
46943
46944
46945
46946
46947
46948
46949
46950
46951
46952
46953
46954
46955
46956 }
46957
46958
46959
46960
46961 func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error {
46962 c.ctx_ = ctx
46963 defer c.PageToken(c.urlParams_.Get("pageToken"))
46964 for {
46965 x, err := c.Do()
46966 if err != nil {
46967 return err
46968 }
46969 if err := f(x); err != nil {
46970 return err
46971 }
46972 if x.NextPageToken == "" {
46973 return nil
46974 }
46975 c.PageToken(x.NextPageToken)
46976 }
46977 }
46978
46979
46980
46981 type SubaccountsPatchCall struct {
46982 s *Service
46983 profileId int64
46984 subaccount *Subaccount
46985 urlParams_ gensupport.URLParams
46986 ctx_ context.Context
46987 header_ http.Header
46988 }
46989
46990
46991
46992 func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall {
46993 c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46994 c.profileId = profileId
46995 c.urlParams_.Set("id", fmt.Sprint(id))
46996 c.subaccount = subaccount
46997 return c
46998 }
46999
47000
47001
47002
47003 func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall {
47004 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47005 return c
47006 }
47007
47008
47009
47010
47011 func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall {
47012 c.ctx_ = ctx
47013 return c
47014 }
47015
47016
47017
47018 func (c *SubaccountsPatchCall) Header() http.Header {
47019 if c.header_ == nil {
47020 c.header_ = make(http.Header)
47021 }
47022 return c.header_
47023 }
47024
47025 func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) {
47026 reqHeaders := make(http.Header)
47027 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
47028 for k, v := range c.header_ {
47029 reqHeaders[k] = v
47030 }
47031 reqHeaders.Set("User-Agent", c.s.userAgent())
47032 var body io.Reader = nil
47033 body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount)
47034 if err != nil {
47035 return nil, err
47036 }
47037 reqHeaders.Set("Content-Type", "application/json")
47038 c.urlParams_.Set("alt", alt)
47039 c.urlParams_.Set("prettyPrint", "false")
47040 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
47041 urls += "?" + c.urlParams_.Encode()
47042 req, err := http.NewRequest("PATCH", urls, body)
47043 if err != nil {
47044 return nil, err
47045 }
47046 req.Header = reqHeaders
47047 googleapi.Expand(req.URL, map[string]string{
47048 "profileId": strconv.FormatInt(c.profileId, 10),
47049 })
47050 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47051 }
47052
47053
47054
47055
47056
47057
47058
47059
47060 func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
47061 gensupport.SetOptions(c.urlParams_, opts...)
47062 res, err := c.doRequest("json")
47063 if res != nil && res.StatusCode == http.StatusNotModified {
47064 if res.Body != nil {
47065 res.Body.Close()
47066 }
47067 return nil, &googleapi.Error{
47068 Code: res.StatusCode,
47069 Header: res.Header,
47070 }
47071 }
47072 if err != nil {
47073 return nil, err
47074 }
47075 defer googleapi.CloseBody(res)
47076 if err := googleapi.CheckResponse(res); err != nil {
47077 return nil, err
47078 }
47079 ret := &Subaccount{
47080 ServerResponse: googleapi.ServerResponse{
47081 Header: res.Header,
47082 HTTPStatusCode: res.StatusCode,
47083 },
47084 }
47085 target := &ret
47086 if err := gensupport.DecodeResponse(target, res); err != nil {
47087 return nil, err
47088 }
47089 return ret, nil
47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119
47120
47121
47122
47123
47124
47125
47126 }
47127
47128
47129
47130 type SubaccountsUpdateCall struct {
47131 s *Service
47132 profileId int64
47133 subaccount *Subaccount
47134 urlParams_ gensupport.URLParams
47135 ctx_ context.Context
47136 header_ http.Header
47137 }
47138
47139
47140 func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall {
47141 c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47142 c.profileId = profileId
47143 c.subaccount = subaccount
47144 return c
47145 }
47146
47147
47148
47149
47150 func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall {
47151 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47152 return c
47153 }
47154
47155
47156
47157
47158 func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall {
47159 c.ctx_ = ctx
47160 return c
47161 }
47162
47163
47164
47165 func (c *SubaccountsUpdateCall) Header() http.Header {
47166 if c.header_ == nil {
47167 c.header_ = make(http.Header)
47168 }
47169 return c.header_
47170 }
47171
47172 func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
47173 reqHeaders := make(http.Header)
47174 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
47175 for k, v := range c.header_ {
47176 reqHeaders[k] = v
47177 }
47178 reqHeaders.Set("User-Agent", c.s.userAgent())
47179 var body io.Reader = nil
47180 body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount)
47181 if err != nil {
47182 return nil, err
47183 }
47184 reqHeaders.Set("Content-Type", "application/json")
47185 c.urlParams_.Set("alt", alt)
47186 c.urlParams_.Set("prettyPrint", "false")
47187 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
47188 urls += "?" + c.urlParams_.Encode()
47189 req, err := http.NewRequest("PUT", urls, body)
47190 if err != nil {
47191 return nil, err
47192 }
47193 req.Header = reqHeaders
47194 googleapi.Expand(req.URL, map[string]string{
47195 "profileId": strconv.FormatInt(c.profileId, 10),
47196 })
47197 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47198 }
47199
47200
47201
47202
47203
47204
47205
47206
47207 func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
47208 gensupport.SetOptions(c.urlParams_, opts...)
47209 res, err := c.doRequest("json")
47210 if res != nil && res.StatusCode == http.StatusNotModified {
47211 if res.Body != nil {
47212 res.Body.Close()
47213 }
47214 return nil, &googleapi.Error{
47215 Code: res.StatusCode,
47216 Header: res.Header,
47217 }
47218 }
47219 if err != nil {
47220 return nil, err
47221 }
47222 defer googleapi.CloseBody(res)
47223 if err := googleapi.CheckResponse(res); err != nil {
47224 return nil, err
47225 }
47226 ret := &Subaccount{
47227 ServerResponse: googleapi.ServerResponse{
47228 Header: res.Header,
47229 HTTPStatusCode: res.StatusCode,
47230 },
47231 }
47232 target := &ret
47233 if err := gensupport.DecodeResponse(target, res); err != nil {
47234 return nil, err
47235 }
47236 return ret, nil
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
47265 }
47266
47267
47268
47269 type TargetableRemarketingListsGetCall struct {
47270 s *Service
47271 profileId int64
47272 id int64
47273 urlParams_ gensupport.URLParams
47274 ifNoneMatch_ string
47275 ctx_ context.Context
47276 header_ http.Header
47277 }
47278
47279
47280 func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall {
47281 c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47282 c.profileId = profileId
47283 c.id = id
47284 return c
47285 }
47286
47287
47288
47289
47290 func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall {
47291 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47292 return c
47293 }
47294
47295
47296
47297
47298
47299
47300 func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall {
47301 c.ifNoneMatch_ = entityTag
47302 return c
47303 }
47304
47305
47306
47307
47308 func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall {
47309 c.ctx_ = ctx
47310 return c
47311 }
47312
47313
47314
47315 func (c *TargetableRemarketingListsGetCall) Header() http.Header {
47316 if c.header_ == nil {
47317 c.header_ = make(http.Header)
47318 }
47319 return c.header_
47320 }
47321
47322 func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) {
47323 reqHeaders := make(http.Header)
47324 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
47325 for k, v := range c.header_ {
47326 reqHeaders[k] = v
47327 }
47328 reqHeaders.Set("User-Agent", c.s.userAgent())
47329 if c.ifNoneMatch_ != "" {
47330 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47331 }
47332 var body io.Reader = nil
47333 c.urlParams_.Set("alt", alt)
47334 c.urlParams_.Set("prettyPrint", "false")
47335 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists/{id}")
47336 urls += "?" + c.urlParams_.Encode()
47337 req, err := http.NewRequest("GET", urls, body)
47338 if err != nil {
47339 return nil, err
47340 }
47341 req.Header = reqHeaders
47342 googleapi.Expand(req.URL, map[string]string{
47343 "profileId": strconv.FormatInt(c.profileId, 10),
47344 "id": strconv.FormatInt(c.id, 10),
47345 })
47346 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47347 }
47348
47349
47350
47351
47352
47353
47354
47355
47356 func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) {
47357 gensupport.SetOptions(c.urlParams_, opts...)
47358 res, err := c.doRequest("json")
47359 if res != nil && res.StatusCode == http.StatusNotModified {
47360 if res.Body != nil {
47361 res.Body.Close()
47362 }
47363 return nil, &googleapi.Error{
47364 Code: res.StatusCode,
47365 Header: res.Header,
47366 }
47367 }
47368 if err != nil {
47369 return nil, err
47370 }
47371 defer googleapi.CloseBody(res)
47372 if err := googleapi.CheckResponse(res); err != nil {
47373 return nil, err
47374 }
47375 ret := &TargetableRemarketingList{
47376 ServerResponse: googleapi.ServerResponse{
47377 Header: res.Header,
47378 HTTPStatusCode: res.StatusCode,
47379 },
47380 }
47381 target := &ret
47382 if err := gensupport.DecodeResponse(target, res); err != nil {
47383 return nil, err
47384 }
47385 return ret, nil
47386
47387
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
47399
47400
47401
47402
47403
47404
47405
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419 }
47420
47421
47422
47423 type TargetableRemarketingListsListCall struct {
47424 s *Service
47425 profileId int64
47426 urlParams_ gensupport.URLParams
47427 ifNoneMatch_ string
47428 ctx_ context.Context
47429 header_ http.Header
47430 }
47431
47432
47433
47434 func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall {
47435 c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47436 c.profileId = profileId
47437 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
47438 return c
47439 }
47440
47441
47442
47443 func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall {
47444 c.urlParams_.Set("active", fmt.Sprint(active))
47445 return c
47446 }
47447
47448
47449
47450 func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall {
47451 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
47452 return c
47453 }
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463 func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall {
47464 c.urlParams_.Set("name", name)
47465 return c
47466 }
47467
47468
47469
47470 func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *TargetableRemarketingListsListCall {
47471 c.urlParams_.Set("pageToken", pageToken)
47472 return c
47473 }
47474
47475
47476
47477
47478
47479
47480
47481
47482 func (c *TargetableRemarketingListsListCall) SortField(sortField string) *TargetableRemarketingListsListCall {
47483 c.urlParams_.Set("sortField", sortField)
47484 return c
47485 }
47486
47487
47488
47489
47490
47491
47492
47493
47494 func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *TargetableRemarketingListsListCall {
47495 c.urlParams_.Set("sortOrder", sortOrder)
47496 return c
47497 }
47498
47499
47500
47501
47502 func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall {
47503 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47504 return c
47505 }
47506
47507
47508
47509
47510
47511
47512 func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall {
47513 c.ifNoneMatch_ = entityTag
47514 return c
47515 }
47516
47517
47518
47519
47520 func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall {
47521 c.ctx_ = ctx
47522 return c
47523 }
47524
47525
47526
47527 func (c *TargetableRemarketingListsListCall) Header() http.Header {
47528 if c.header_ == nil {
47529 c.header_ = make(http.Header)
47530 }
47531 return c.header_
47532 }
47533
47534 func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) {
47535 reqHeaders := make(http.Header)
47536 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
47537 for k, v := range c.header_ {
47538 reqHeaders[k] = v
47539 }
47540 reqHeaders.Set("User-Agent", c.s.userAgent())
47541 if c.ifNoneMatch_ != "" {
47542 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47543 }
47544 var body io.Reader = nil
47545 c.urlParams_.Set("alt", alt)
47546 c.urlParams_.Set("prettyPrint", "false")
47547 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists")
47548 urls += "?" + c.urlParams_.Encode()
47549 req, err := http.NewRequest("GET", urls, body)
47550 if err != nil {
47551 return nil, err
47552 }
47553 req.Header = reqHeaders
47554 googleapi.Expand(req.URL, map[string]string{
47555 "profileId": strconv.FormatInt(c.profileId, 10),
47556 })
47557 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47558 }
47559
47560
47561
47562
47563
47564
47565
47566
47567
47568 func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) {
47569 gensupport.SetOptions(c.urlParams_, opts...)
47570 res, err := c.doRequest("json")
47571 if res != nil && res.StatusCode == http.StatusNotModified {
47572 if res.Body != nil {
47573 res.Body.Close()
47574 }
47575 return nil, &googleapi.Error{
47576 Code: res.StatusCode,
47577 Header: res.Header,
47578 }
47579 }
47580 if err != nil {
47581 return nil, err
47582 }
47583 defer googleapi.CloseBody(res)
47584 if err := googleapi.CheckResponse(res); err != nil {
47585 return nil, err
47586 }
47587 ret := &TargetableRemarketingListsListResponse{
47588 ServerResponse: googleapi.ServerResponse{
47589 Header: res.Header,
47590 HTTPStatusCode: res.StatusCode,
47591 },
47592 }
47593 target := &ret
47594 if err := gensupport.DecodeResponse(target, res); err != nil {
47595 return nil, err
47596 }
47597 return ret, nil
47598
47599
47600
47601
47602
47603
47604
47605
47606
47607
47608
47609
47610
47611
47612
47613
47614
47615
47616
47617
47618
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636
47637
47638
47639
47640
47641
47642
47643
47644
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
47677
47678
47679
47680
47681
47682
47683 }
47684
47685
47686
47687
47688 func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error {
47689 c.ctx_ = ctx
47690 defer c.PageToken(c.urlParams_.Get("pageToken"))
47691 for {
47692 x, err := c.Do()
47693 if err != nil {
47694 return err
47695 }
47696 if err := f(x); err != nil {
47697 return err
47698 }
47699 if x.NextPageToken == "" {
47700 return nil
47701 }
47702 c.PageToken(x.NextPageToken)
47703 }
47704 }
47705
47706
47707
47708 type TargetingTemplatesGetCall struct {
47709 s *Service
47710 profileId int64
47711 id int64
47712 urlParams_ gensupport.URLParams
47713 ifNoneMatch_ string
47714 ctx_ context.Context
47715 header_ http.Header
47716 }
47717
47718
47719 func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall {
47720 c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47721 c.profileId = profileId
47722 c.id = id
47723 return c
47724 }
47725
47726
47727
47728
47729 func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall {
47730 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47731 return c
47732 }
47733
47734
47735
47736
47737
47738
47739 func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall {
47740 c.ifNoneMatch_ = entityTag
47741 return c
47742 }
47743
47744
47745
47746
47747 func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall {
47748 c.ctx_ = ctx
47749 return c
47750 }
47751
47752
47753
47754 func (c *TargetingTemplatesGetCall) Header() http.Header {
47755 if c.header_ == nil {
47756 c.header_ = make(http.Header)
47757 }
47758 return c.header_
47759 }
47760
47761 func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
47762 reqHeaders := make(http.Header)
47763 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
47764 for k, v := range c.header_ {
47765 reqHeaders[k] = v
47766 }
47767 reqHeaders.Set("User-Agent", c.s.userAgent())
47768 if c.ifNoneMatch_ != "" {
47769 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47770 }
47771 var body io.Reader = nil
47772 c.urlParams_.Set("alt", alt)
47773 c.urlParams_.Set("prettyPrint", "false")
47774 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates/{id}")
47775 urls += "?" + c.urlParams_.Encode()
47776 req, err := http.NewRequest("GET", urls, body)
47777 if err != nil {
47778 return nil, err
47779 }
47780 req.Header = reqHeaders
47781 googleapi.Expand(req.URL, map[string]string{
47782 "profileId": strconv.FormatInt(c.profileId, 10),
47783 "id": strconv.FormatInt(c.id, 10),
47784 })
47785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47786 }
47787
47788
47789
47790
47791
47792
47793
47794
47795 func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
47796 gensupport.SetOptions(c.urlParams_, opts...)
47797 res, err := c.doRequest("json")
47798 if res != nil && res.StatusCode == http.StatusNotModified {
47799 if res.Body != nil {
47800 res.Body.Close()
47801 }
47802 return nil, &googleapi.Error{
47803 Code: res.StatusCode,
47804 Header: res.Header,
47805 }
47806 }
47807 if err != nil {
47808 return nil, err
47809 }
47810 defer googleapi.CloseBody(res)
47811 if err := googleapi.CheckResponse(res); err != nil {
47812 return nil, err
47813 }
47814 ret := &TargetingTemplate{
47815 ServerResponse: googleapi.ServerResponse{
47816 Header: res.Header,
47817 HTTPStatusCode: res.StatusCode,
47818 },
47819 }
47820 target := &ret
47821 if err := gensupport.DecodeResponse(target, res); err != nil {
47822 return nil, err
47823 }
47824 return ret, nil
47825
47826
47827
47828
47829
47830
47831
47832
47833
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858 }
47859
47860
47861
47862 type TargetingTemplatesInsertCall struct {
47863 s *Service
47864 profileId int64
47865 targetingtemplate *TargetingTemplate
47866 urlParams_ gensupport.URLParams
47867 ctx_ context.Context
47868 header_ http.Header
47869 }
47870
47871
47872 func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall {
47873 c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47874 c.profileId = profileId
47875 c.targetingtemplate = targetingtemplate
47876 return c
47877 }
47878
47879
47880
47881
47882 func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall {
47883 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47884 return c
47885 }
47886
47887
47888
47889
47890 func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall {
47891 c.ctx_ = ctx
47892 return c
47893 }
47894
47895
47896
47897 func (c *TargetingTemplatesInsertCall) Header() http.Header {
47898 if c.header_ == nil {
47899 c.header_ = make(http.Header)
47900 }
47901 return c.header_
47902 }
47903
47904 func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) {
47905 reqHeaders := make(http.Header)
47906 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
47907 for k, v := range c.header_ {
47908 reqHeaders[k] = v
47909 }
47910 reqHeaders.Set("User-Agent", c.s.userAgent())
47911 var body io.Reader = nil
47912 body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate)
47913 if err != nil {
47914 return nil, err
47915 }
47916 reqHeaders.Set("Content-Type", "application/json")
47917 c.urlParams_.Set("alt", alt)
47918 c.urlParams_.Set("prettyPrint", "false")
47919 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
47920 urls += "?" + c.urlParams_.Encode()
47921 req, err := http.NewRequest("POST", urls, body)
47922 if err != nil {
47923 return nil, err
47924 }
47925 req.Header = reqHeaders
47926 googleapi.Expand(req.URL, map[string]string{
47927 "profileId": strconv.FormatInt(c.profileId, 10),
47928 })
47929 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47930 }
47931
47932
47933
47934
47935
47936
47937
47938
47939 func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
47940 gensupport.SetOptions(c.urlParams_, opts...)
47941 res, err := c.doRequest("json")
47942 if res != nil && res.StatusCode == http.StatusNotModified {
47943 if res.Body != nil {
47944 res.Body.Close()
47945 }
47946 return nil, &googleapi.Error{
47947 Code: res.StatusCode,
47948 Header: res.Header,
47949 }
47950 }
47951 if err != nil {
47952 return nil, err
47953 }
47954 defer googleapi.CloseBody(res)
47955 if err := googleapi.CheckResponse(res); err != nil {
47956 return nil, err
47957 }
47958 ret := &TargetingTemplate{
47959 ServerResponse: googleapi.ServerResponse{
47960 Header: res.Header,
47961 HTTPStatusCode: res.StatusCode,
47962 },
47963 }
47964 target := &ret
47965 if err := gensupport.DecodeResponse(target, res); err != nil {
47966 return nil, err
47967 }
47968 return ret, nil
47969
47970
47971
47972
47973
47974
47975
47976
47977
47978
47979
47980
47981
47982
47983
47984
47985
47986
47987
47988
47989
47990
47991
47992
47993
47994
47995
47996
47997 }
47998
47999
48000
48001 type TargetingTemplatesListCall struct {
48002 s *Service
48003 profileId int64
48004 urlParams_ gensupport.URLParams
48005 ifNoneMatch_ string
48006 ctx_ context.Context
48007 header_ http.Header
48008 }
48009
48010
48011
48012 func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall {
48013 c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48014 c.profileId = profileId
48015 return c
48016 }
48017
48018
48019
48020 func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *TargetingTemplatesListCall {
48021 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
48022 return c
48023 }
48024
48025
48026
48027 func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall {
48028 var ids_ []string
48029 for _, v := range ids {
48030 ids_ = append(ids_, fmt.Sprint(v))
48031 }
48032 c.urlParams_.SetMulti("ids", ids_)
48033 return c
48034 }
48035
48036
48037
48038 func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall {
48039 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
48040 return c
48041 }
48042
48043
48044
48045 func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTemplatesListCall {
48046 c.urlParams_.Set("pageToken", pageToken)
48047 return c
48048 }
48049
48050
48051
48052
48053
48054
48055
48056
48057
48058 func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall {
48059 c.urlParams_.Set("searchString", searchString)
48060 return c
48061 }
48062
48063
48064
48065
48066
48067
48068
48069
48070 func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTemplatesListCall {
48071 c.urlParams_.Set("sortField", sortField)
48072 return c
48073 }
48074
48075
48076
48077
48078
48079
48080
48081
48082 func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTemplatesListCall {
48083 c.urlParams_.Set("sortOrder", sortOrder)
48084 return c
48085 }
48086
48087
48088
48089
48090 func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall {
48091 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48092 return c
48093 }
48094
48095
48096
48097
48098
48099
48100 func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall {
48101 c.ifNoneMatch_ = entityTag
48102 return c
48103 }
48104
48105
48106
48107
48108 func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall {
48109 c.ctx_ = ctx
48110 return c
48111 }
48112
48113
48114
48115 func (c *TargetingTemplatesListCall) Header() http.Header {
48116 if c.header_ == nil {
48117 c.header_ = make(http.Header)
48118 }
48119 return c.header_
48120 }
48121
48122 func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) {
48123 reqHeaders := make(http.Header)
48124 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
48125 for k, v := range c.header_ {
48126 reqHeaders[k] = v
48127 }
48128 reqHeaders.Set("User-Agent", c.s.userAgent())
48129 if c.ifNoneMatch_ != "" {
48130 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48131 }
48132 var body io.Reader = nil
48133 c.urlParams_.Set("alt", alt)
48134 c.urlParams_.Set("prettyPrint", "false")
48135 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
48136 urls += "?" + c.urlParams_.Encode()
48137 req, err := http.NewRequest("GET", urls, body)
48138 if err != nil {
48139 return nil, err
48140 }
48141 req.Header = reqHeaders
48142 googleapi.Expand(req.URL, map[string]string{
48143 "profileId": strconv.FormatInt(c.profileId, 10),
48144 })
48145 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48146 }
48147
48148
48149
48150
48151
48152
48153
48154
48155 func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) {
48156 gensupport.SetOptions(c.urlParams_, opts...)
48157 res, err := c.doRequest("json")
48158 if res != nil && res.StatusCode == http.StatusNotModified {
48159 if res.Body != nil {
48160 res.Body.Close()
48161 }
48162 return nil, &googleapi.Error{
48163 Code: res.StatusCode,
48164 Header: res.Header,
48165 }
48166 }
48167 if err != nil {
48168 return nil, err
48169 }
48170 defer googleapi.CloseBody(res)
48171 if err := googleapi.CheckResponse(res); err != nil {
48172 return nil, err
48173 }
48174 ret := &TargetingTemplatesListResponse{
48175 ServerResponse: googleapi.ServerResponse{
48176 Header: res.Header,
48177 HTTPStatusCode: res.StatusCode,
48178 },
48179 }
48180 target := &ret
48181 if err := gensupport.DecodeResponse(target, res); err != nil {
48182 return nil, err
48183 }
48184 return ret, nil
48185
48186
48187
48188
48189
48190
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213
48214
48215
48216
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
48232
48233
48234
48235
48236
48237
48238
48239
48240
48241
48242
48243
48244
48245
48246
48247
48248
48249
48250
48251
48252
48253
48254
48255
48256
48257
48258
48259
48260
48261
48262
48263
48264
48265
48266
48267
48268
48269
48270 }
48271
48272
48273
48274
48275 func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error {
48276 c.ctx_ = ctx
48277 defer c.PageToken(c.urlParams_.Get("pageToken"))
48278 for {
48279 x, err := c.Do()
48280 if err != nil {
48281 return err
48282 }
48283 if err := f(x); err != nil {
48284 return err
48285 }
48286 if x.NextPageToken == "" {
48287 return nil
48288 }
48289 c.PageToken(x.NextPageToken)
48290 }
48291 }
48292
48293
48294
48295 type TargetingTemplatesPatchCall struct {
48296 s *Service
48297 profileId int64
48298 targetingtemplate *TargetingTemplate
48299 urlParams_ gensupport.URLParams
48300 ctx_ context.Context
48301 header_ http.Header
48302 }
48303
48304
48305
48306 func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall {
48307 c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48308 c.profileId = profileId
48309 c.urlParams_.Set("id", fmt.Sprint(id))
48310 c.targetingtemplate = targetingtemplate
48311 return c
48312 }
48313
48314
48315
48316
48317 func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall {
48318 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48319 return c
48320 }
48321
48322
48323
48324
48325 func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall {
48326 c.ctx_ = ctx
48327 return c
48328 }
48329
48330
48331
48332 func (c *TargetingTemplatesPatchCall) Header() http.Header {
48333 if c.header_ == nil {
48334 c.header_ = make(http.Header)
48335 }
48336 return c.header_
48337 }
48338
48339 func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
48340 reqHeaders := make(http.Header)
48341 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
48342 for k, v := range c.header_ {
48343 reqHeaders[k] = v
48344 }
48345 reqHeaders.Set("User-Agent", c.s.userAgent())
48346 var body io.Reader = nil
48347 body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate)
48348 if err != nil {
48349 return nil, err
48350 }
48351 reqHeaders.Set("Content-Type", "application/json")
48352 c.urlParams_.Set("alt", alt)
48353 c.urlParams_.Set("prettyPrint", "false")
48354 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
48355 urls += "?" + c.urlParams_.Encode()
48356 req, err := http.NewRequest("PATCH", urls, body)
48357 if err != nil {
48358 return nil, err
48359 }
48360 req.Header = reqHeaders
48361 googleapi.Expand(req.URL, map[string]string{
48362 "profileId": strconv.FormatInt(c.profileId, 10),
48363 })
48364 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48365 }
48366
48367
48368
48369
48370
48371
48372
48373
48374 func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
48375 gensupport.SetOptions(c.urlParams_, opts...)
48376 res, err := c.doRequest("json")
48377 if res != nil && res.StatusCode == http.StatusNotModified {
48378 if res.Body != nil {
48379 res.Body.Close()
48380 }
48381 return nil, &googleapi.Error{
48382 Code: res.StatusCode,
48383 Header: res.Header,
48384 }
48385 }
48386 if err != nil {
48387 return nil, err
48388 }
48389 defer googleapi.CloseBody(res)
48390 if err := googleapi.CheckResponse(res); err != nil {
48391 return nil, err
48392 }
48393 ret := &TargetingTemplate{
48394 ServerResponse: googleapi.ServerResponse{
48395 Header: res.Header,
48396 HTTPStatusCode: res.StatusCode,
48397 },
48398 }
48399 target := &ret
48400 if err := gensupport.DecodeResponse(target, res); err != nil {
48401 return nil, err
48402 }
48403 return ret, nil
48404
48405
48406
48407
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437
48438
48439
48440 }
48441
48442
48443
48444 type TargetingTemplatesUpdateCall struct {
48445 s *Service
48446 profileId int64
48447 targetingtemplate *TargetingTemplate
48448 urlParams_ gensupport.URLParams
48449 ctx_ context.Context
48450 header_ http.Header
48451 }
48452
48453
48454 func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall {
48455 c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48456 c.profileId = profileId
48457 c.targetingtemplate = targetingtemplate
48458 return c
48459 }
48460
48461
48462
48463
48464 func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall {
48465 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48466 return c
48467 }
48468
48469
48470
48471
48472 func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall {
48473 c.ctx_ = ctx
48474 return c
48475 }
48476
48477
48478
48479 func (c *TargetingTemplatesUpdateCall) Header() http.Header {
48480 if c.header_ == nil {
48481 c.header_ = make(http.Header)
48482 }
48483 return c.header_
48484 }
48485
48486 func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) {
48487 reqHeaders := make(http.Header)
48488 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
48489 for k, v := range c.header_ {
48490 reqHeaders[k] = v
48491 }
48492 reqHeaders.Set("User-Agent", c.s.userAgent())
48493 var body io.Reader = nil
48494 body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate)
48495 if err != nil {
48496 return nil, err
48497 }
48498 reqHeaders.Set("Content-Type", "application/json")
48499 c.urlParams_.Set("alt", alt)
48500 c.urlParams_.Set("prettyPrint", "false")
48501 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
48502 urls += "?" + c.urlParams_.Encode()
48503 req, err := http.NewRequest("PUT", urls, body)
48504 if err != nil {
48505 return nil, err
48506 }
48507 req.Header = reqHeaders
48508 googleapi.Expand(req.URL, map[string]string{
48509 "profileId": strconv.FormatInt(c.profileId, 10),
48510 })
48511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48512 }
48513
48514
48515
48516
48517
48518
48519
48520
48521 func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
48522 gensupport.SetOptions(c.urlParams_, opts...)
48523 res, err := c.doRequest("json")
48524 if res != nil && res.StatusCode == http.StatusNotModified {
48525 if res.Body != nil {
48526 res.Body.Close()
48527 }
48528 return nil, &googleapi.Error{
48529 Code: res.StatusCode,
48530 Header: res.Header,
48531 }
48532 }
48533 if err != nil {
48534 return nil, err
48535 }
48536 defer googleapi.CloseBody(res)
48537 if err := googleapi.CheckResponse(res); err != nil {
48538 return nil, err
48539 }
48540 ret := &TargetingTemplate{
48541 ServerResponse: googleapi.ServerResponse{
48542 Header: res.Header,
48543 HTTPStatusCode: res.StatusCode,
48544 },
48545 }
48546 target := &ret
48547 if err := gensupport.DecodeResponse(target, res); err != nil {
48548 return nil, err
48549 }
48550 return ret, nil
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579 }
48580
48581
48582
48583 type UserProfilesGetCall struct {
48584 s *Service
48585 profileId int64
48586 urlParams_ gensupport.URLParams
48587 ifNoneMatch_ string
48588 ctx_ context.Context
48589 header_ http.Header
48590 }
48591
48592
48593 func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall {
48594 c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48595 c.profileId = profileId
48596 return c
48597 }
48598
48599
48600
48601
48602 func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall {
48603 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48604 return c
48605 }
48606
48607
48608
48609
48610
48611
48612 func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall {
48613 c.ifNoneMatch_ = entityTag
48614 return c
48615 }
48616
48617
48618
48619
48620 func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall {
48621 c.ctx_ = ctx
48622 return c
48623 }
48624
48625
48626
48627 func (c *UserProfilesGetCall) Header() http.Header {
48628 if c.header_ == nil {
48629 c.header_ = make(http.Header)
48630 }
48631 return c.header_
48632 }
48633
48634 func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) {
48635 reqHeaders := make(http.Header)
48636 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
48637 for k, v := range c.header_ {
48638 reqHeaders[k] = v
48639 }
48640 reqHeaders.Set("User-Agent", c.s.userAgent())
48641 if c.ifNoneMatch_ != "" {
48642 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48643 }
48644 var body io.Reader = nil
48645 c.urlParams_.Set("alt", alt)
48646 c.urlParams_.Set("prettyPrint", "false")
48647 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}")
48648 urls += "?" + c.urlParams_.Encode()
48649 req, err := http.NewRequest("GET", urls, body)
48650 if err != nil {
48651 return nil, err
48652 }
48653 req.Header = reqHeaders
48654 googleapi.Expand(req.URL, map[string]string{
48655 "profileId": strconv.FormatInt(c.profileId, 10),
48656 })
48657 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48658 }
48659
48660
48661
48662
48663
48664
48665
48666
48667 func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) {
48668 gensupport.SetOptions(c.urlParams_, opts...)
48669 res, err := c.doRequest("json")
48670 if res != nil && res.StatusCode == http.StatusNotModified {
48671 if res.Body != nil {
48672 res.Body.Close()
48673 }
48674 return nil, &googleapi.Error{
48675 Code: res.StatusCode,
48676 Header: res.Header,
48677 }
48678 }
48679 if err != nil {
48680 return nil, err
48681 }
48682 defer googleapi.CloseBody(res)
48683 if err := googleapi.CheckResponse(res); err != nil {
48684 return nil, err
48685 }
48686 ret := &UserProfile{
48687 ServerResponse: googleapi.ServerResponse{
48688 Header: res.Header,
48689 HTTPStatusCode: res.StatusCode,
48690 },
48691 }
48692 target := &ret
48693 if err := gensupport.DecodeResponse(target, res); err != nil {
48694 return nil, err
48695 }
48696 return ret, nil
48697
48698
48699
48700
48701
48702
48703
48704
48705
48706
48707
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723 }
48724
48725
48726
48727 type UserProfilesListCall struct {
48728 s *Service
48729 urlParams_ gensupport.URLParams
48730 ifNoneMatch_ string
48731 ctx_ context.Context
48732 header_ http.Header
48733 }
48734
48735
48736 func (r *UserProfilesService) List() *UserProfilesListCall {
48737 c := &UserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48738 return c
48739 }
48740
48741
48742
48743
48744 func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall {
48745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48746 return c
48747 }
48748
48749
48750
48751
48752
48753
48754 func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall {
48755 c.ifNoneMatch_ = entityTag
48756 return c
48757 }
48758
48759
48760
48761
48762 func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall {
48763 c.ctx_ = ctx
48764 return c
48765 }
48766
48767
48768
48769 func (c *UserProfilesListCall) Header() http.Header {
48770 if c.header_ == nil {
48771 c.header_ = make(http.Header)
48772 }
48773 return c.header_
48774 }
48775
48776 func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) {
48777 reqHeaders := make(http.Header)
48778 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
48779 for k, v := range c.header_ {
48780 reqHeaders[k] = v
48781 }
48782 reqHeaders.Set("User-Agent", c.s.userAgent())
48783 if c.ifNoneMatch_ != "" {
48784 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48785 }
48786 var body io.Reader = nil
48787 c.urlParams_.Set("alt", alt)
48788 c.urlParams_.Set("prettyPrint", "false")
48789 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles")
48790 urls += "?" + c.urlParams_.Encode()
48791 req, err := http.NewRequest("GET", urls, body)
48792 if err != nil {
48793 return nil, err
48794 }
48795 req.Header = reqHeaders
48796 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48797 }
48798
48799
48800
48801
48802
48803
48804
48805
48806 func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) {
48807 gensupport.SetOptions(c.urlParams_, opts...)
48808 res, err := c.doRequest("json")
48809 if res != nil && res.StatusCode == http.StatusNotModified {
48810 if res.Body != nil {
48811 res.Body.Close()
48812 }
48813 return nil, &googleapi.Error{
48814 Code: res.StatusCode,
48815 Header: res.Header,
48816 }
48817 }
48818 if err != nil {
48819 return nil, err
48820 }
48821 defer googleapi.CloseBody(res)
48822 if err := googleapi.CheckResponse(res); err != nil {
48823 return nil, err
48824 }
48825 ret := &UserProfileList{
48826 ServerResponse: googleapi.ServerResponse{
48827 Header: res.Header,
48828 HTTPStatusCode: res.StatusCode,
48829 },
48830 }
48831 target := &ret
48832 if err := gensupport.DecodeResponse(target, res); err != nil {
48833 return nil, err
48834 }
48835 return ret, nil
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850 }
48851
48852
48853
48854 type UserRolePermissionGroupsGetCall struct {
48855 s *Service
48856 profileId int64
48857 id int64
48858 urlParams_ gensupport.URLParams
48859 ifNoneMatch_ string
48860 ctx_ context.Context
48861 header_ http.Header
48862 }
48863
48864
48865 func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall {
48866 c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48867 c.profileId = profileId
48868 c.id = id
48869 return c
48870 }
48871
48872
48873
48874
48875 func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall {
48876 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48877 return c
48878 }
48879
48880
48881
48882
48883
48884
48885 func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall {
48886 c.ifNoneMatch_ = entityTag
48887 return c
48888 }
48889
48890
48891
48892
48893 func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall {
48894 c.ctx_ = ctx
48895 return c
48896 }
48897
48898
48899
48900 func (c *UserRolePermissionGroupsGetCall) Header() http.Header {
48901 if c.header_ == nil {
48902 c.header_ = make(http.Header)
48903 }
48904 return c.header_
48905 }
48906
48907 func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) {
48908 reqHeaders := make(http.Header)
48909 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
48910 for k, v := range c.header_ {
48911 reqHeaders[k] = v
48912 }
48913 reqHeaders.Set("User-Agent", c.s.userAgent())
48914 if c.ifNoneMatch_ != "" {
48915 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48916 }
48917 var body io.Reader = nil
48918 c.urlParams_.Set("alt", alt)
48919 c.urlParams_.Set("prettyPrint", "false")
48920 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups/{id}")
48921 urls += "?" + c.urlParams_.Encode()
48922 req, err := http.NewRequest("GET", urls, body)
48923 if err != nil {
48924 return nil, err
48925 }
48926 req.Header = reqHeaders
48927 googleapi.Expand(req.URL, map[string]string{
48928 "profileId": strconv.FormatInt(c.profileId, 10),
48929 "id": strconv.FormatInt(c.id, 10),
48930 })
48931 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48932 }
48933
48934
48935
48936
48937
48938
48939
48940
48941 func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) {
48942 gensupport.SetOptions(c.urlParams_, opts...)
48943 res, err := c.doRequest("json")
48944 if res != nil && res.StatusCode == http.StatusNotModified {
48945 if res.Body != nil {
48946 res.Body.Close()
48947 }
48948 return nil, &googleapi.Error{
48949 Code: res.StatusCode,
48950 Header: res.Header,
48951 }
48952 }
48953 if err != nil {
48954 return nil, err
48955 }
48956 defer googleapi.CloseBody(res)
48957 if err := googleapi.CheckResponse(res); err != nil {
48958 return nil, err
48959 }
48960 ret := &UserRolePermissionGroup{
48961 ServerResponse: googleapi.ServerResponse{
48962 Header: res.Header,
48963 HTTPStatusCode: res.StatusCode,
48964 },
48965 }
48966 target := &ret
48967 if err := gensupport.DecodeResponse(target, res); err != nil {
48968 return nil, err
48969 }
48970 return ret, nil
48971
48972
48973
48974
48975
48976
48977
48978
48979
48980
48981
48982
48983
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
48994
48995
48996
48997
48998
48999
49000
49001
49002
49003
49004 }
49005
49006
49007
49008 type UserRolePermissionGroupsListCall struct {
49009 s *Service
49010 profileId int64
49011 urlParams_ gensupport.URLParams
49012 ifNoneMatch_ string
49013 ctx_ context.Context
49014 header_ http.Header
49015 }
49016
49017
49018 func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall {
49019 c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49020 c.profileId = profileId
49021 return c
49022 }
49023
49024
49025
49026
49027 func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall {
49028 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49029 return c
49030 }
49031
49032
49033
49034
49035
49036
49037 func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall {
49038 c.ifNoneMatch_ = entityTag
49039 return c
49040 }
49041
49042
49043
49044
49045 func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall {
49046 c.ctx_ = ctx
49047 return c
49048 }
49049
49050
49051
49052 func (c *UserRolePermissionGroupsListCall) Header() http.Header {
49053 if c.header_ == nil {
49054 c.header_ = make(http.Header)
49055 }
49056 return c.header_
49057 }
49058
49059 func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) {
49060 reqHeaders := make(http.Header)
49061 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
49062 for k, v := range c.header_ {
49063 reqHeaders[k] = v
49064 }
49065 reqHeaders.Set("User-Agent", c.s.userAgent())
49066 if c.ifNoneMatch_ != "" {
49067 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49068 }
49069 var body io.Reader = nil
49070 c.urlParams_.Set("alt", alt)
49071 c.urlParams_.Set("prettyPrint", "false")
49072 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups")
49073 urls += "?" + c.urlParams_.Encode()
49074 req, err := http.NewRequest("GET", urls, body)
49075 if err != nil {
49076 return nil, err
49077 }
49078 req.Header = reqHeaders
49079 googleapi.Expand(req.URL, map[string]string{
49080 "profileId": strconv.FormatInt(c.profileId, 10),
49081 })
49082 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49083 }
49084
49085
49086
49087
49088
49089
49090
49091
49092
49093 func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) {
49094 gensupport.SetOptions(c.urlParams_, opts...)
49095 res, err := c.doRequest("json")
49096 if res != nil && res.StatusCode == http.StatusNotModified {
49097 if res.Body != nil {
49098 res.Body.Close()
49099 }
49100 return nil, &googleapi.Error{
49101 Code: res.StatusCode,
49102 Header: res.Header,
49103 }
49104 }
49105 if err != nil {
49106 return nil, err
49107 }
49108 defer googleapi.CloseBody(res)
49109 if err := googleapi.CheckResponse(res); err != nil {
49110 return nil, err
49111 }
49112 ret := &UserRolePermissionGroupsListResponse{
49113 ServerResponse: googleapi.ServerResponse{
49114 Header: res.Header,
49115 HTTPStatusCode: res.StatusCode,
49116 },
49117 }
49118 target := &ret
49119 if err := gensupport.DecodeResponse(target, res); err != nil {
49120 return nil, err
49121 }
49122 return ret, nil
49123
49124
49125
49126
49127
49128
49129
49130
49131
49132
49133
49134
49135
49136
49137
49138
49139
49140
49141
49142
49143
49144
49145
49146
49147
49148 }
49149
49150
49151
49152 type UserRolePermissionsGetCall struct {
49153 s *Service
49154 profileId int64
49155 id int64
49156 urlParams_ gensupport.URLParams
49157 ifNoneMatch_ string
49158 ctx_ context.Context
49159 header_ http.Header
49160 }
49161
49162
49163 func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall {
49164 c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49165 c.profileId = profileId
49166 c.id = id
49167 return c
49168 }
49169
49170
49171
49172
49173 func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall {
49174 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49175 return c
49176 }
49177
49178
49179
49180
49181
49182
49183 func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall {
49184 c.ifNoneMatch_ = entityTag
49185 return c
49186 }
49187
49188
49189
49190
49191 func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall {
49192 c.ctx_ = ctx
49193 return c
49194 }
49195
49196
49197
49198 func (c *UserRolePermissionsGetCall) Header() http.Header {
49199 if c.header_ == nil {
49200 c.header_ = make(http.Header)
49201 }
49202 return c.header_
49203 }
49204
49205 func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) {
49206 reqHeaders := make(http.Header)
49207 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
49208 for k, v := range c.header_ {
49209 reqHeaders[k] = v
49210 }
49211 reqHeaders.Set("User-Agent", c.s.userAgent())
49212 if c.ifNoneMatch_ != "" {
49213 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49214 }
49215 var body io.Reader = nil
49216 c.urlParams_.Set("alt", alt)
49217 c.urlParams_.Set("prettyPrint", "false")
49218 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions/{id}")
49219 urls += "?" + c.urlParams_.Encode()
49220 req, err := http.NewRequest("GET", urls, body)
49221 if err != nil {
49222 return nil, err
49223 }
49224 req.Header = reqHeaders
49225 googleapi.Expand(req.URL, map[string]string{
49226 "profileId": strconv.FormatInt(c.profileId, 10),
49227 "id": strconv.FormatInt(c.id, 10),
49228 })
49229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49230 }
49231
49232
49233
49234
49235
49236
49237
49238
49239 func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) {
49240 gensupport.SetOptions(c.urlParams_, opts...)
49241 res, err := c.doRequest("json")
49242 if res != nil && res.StatusCode == http.StatusNotModified {
49243 if res.Body != nil {
49244 res.Body.Close()
49245 }
49246 return nil, &googleapi.Error{
49247 Code: res.StatusCode,
49248 Header: res.Header,
49249 }
49250 }
49251 if err != nil {
49252 return nil, err
49253 }
49254 defer googleapi.CloseBody(res)
49255 if err := googleapi.CheckResponse(res); err != nil {
49256 return nil, err
49257 }
49258 ret := &UserRolePermission{
49259 ServerResponse: googleapi.ServerResponse{
49260 Header: res.Header,
49261 HTTPStatusCode: res.StatusCode,
49262 },
49263 }
49264 target := &ret
49265 if err := gensupport.DecodeResponse(target, res); err != nil {
49266 return nil, err
49267 }
49268 return ret, nil
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295
49296
49297
49298
49299
49300
49301
49302 }
49303
49304
49305
49306 type UserRolePermissionsListCall struct {
49307 s *Service
49308 profileId int64
49309 urlParams_ gensupport.URLParams
49310 ifNoneMatch_ string
49311 ctx_ context.Context
49312 header_ http.Header
49313 }
49314
49315
49316 func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall {
49317 c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49318 c.profileId = profileId
49319 return c
49320 }
49321
49322
49323
49324 func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall {
49325 var ids_ []string
49326 for _, v := range ids {
49327 ids_ = append(ids_, fmt.Sprint(v))
49328 }
49329 c.urlParams_.SetMulti("ids", ids_)
49330 return c
49331 }
49332
49333
49334
49335
49336 func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall {
49337 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49338 return c
49339 }
49340
49341
49342
49343
49344
49345
49346 func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall {
49347 c.ifNoneMatch_ = entityTag
49348 return c
49349 }
49350
49351
49352
49353
49354 func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall {
49355 c.ctx_ = ctx
49356 return c
49357 }
49358
49359
49360
49361 func (c *UserRolePermissionsListCall) Header() http.Header {
49362 if c.header_ == nil {
49363 c.header_ = make(http.Header)
49364 }
49365 return c.header_
49366 }
49367
49368 func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) {
49369 reqHeaders := make(http.Header)
49370 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
49371 for k, v := range c.header_ {
49372 reqHeaders[k] = v
49373 }
49374 reqHeaders.Set("User-Agent", c.s.userAgent())
49375 if c.ifNoneMatch_ != "" {
49376 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49377 }
49378 var body io.Reader = nil
49379 c.urlParams_.Set("alt", alt)
49380 c.urlParams_.Set("prettyPrint", "false")
49381 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions")
49382 urls += "?" + c.urlParams_.Encode()
49383 req, err := http.NewRequest("GET", urls, body)
49384 if err != nil {
49385 return nil, err
49386 }
49387 req.Header = reqHeaders
49388 googleapi.Expand(req.URL, map[string]string{
49389 "profileId": strconv.FormatInt(c.profileId, 10),
49390 })
49391 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49392 }
49393
49394
49395
49396
49397
49398
49399
49400
49401 func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) {
49402 gensupport.SetOptions(c.urlParams_, opts...)
49403 res, err := c.doRequest("json")
49404 if res != nil && res.StatusCode == http.StatusNotModified {
49405 if res.Body != nil {
49406 res.Body.Close()
49407 }
49408 return nil, &googleapi.Error{
49409 Code: res.StatusCode,
49410 Header: res.Header,
49411 }
49412 }
49413 if err != nil {
49414 return nil, err
49415 }
49416 defer googleapi.CloseBody(res)
49417 if err := googleapi.CheckResponse(res); err != nil {
49418 return nil, err
49419 }
49420 ret := &UserRolePermissionsListResponse{
49421 ServerResponse: googleapi.ServerResponse{
49422 Header: res.Header,
49423 HTTPStatusCode: res.StatusCode,
49424 },
49425 }
49426 target := &ret
49427 if err := gensupport.DecodeResponse(target, res); err != nil {
49428 return nil, err
49429 }
49430 return ret, nil
49431
49432
49433
49434
49435
49436
49437
49438
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463 }
49464
49465
49466
49467 type UserRolesDeleteCall struct {
49468 s *Service
49469 profileId int64
49470 id int64
49471 urlParams_ gensupport.URLParams
49472 ctx_ context.Context
49473 header_ http.Header
49474 }
49475
49476
49477 func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall {
49478 c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49479 c.profileId = profileId
49480 c.id = id
49481 return c
49482 }
49483
49484
49485
49486
49487 func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall {
49488 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49489 return c
49490 }
49491
49492
49493
49494
49495 func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall {
49496 c.ctx_ = ctx
49497 return c
49498 }
49499
49500
49501
49502 func (c *UserRolesDeleteCall) Header() http.Header {
49503 if c.header_ == nil {
49504 c.header_ = make(http.Header)
49505 }
49506 return c.header_
49507 }
49508
49509 func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) {
49510 reqHeaders := make(http.Header)
49511 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
49512 for k, v := range c.header_ {
49513 reqHeaders[k] = v
49514 }
49515 reqHeaders.Set("User-Agent", c.s.userAgent())
49516 var body io.Reader = nil
49517 c.urlParams_.Set("alt", alt)
49518 c.urlParams_.Set("prettyPrint", "false")
49519 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}")
49520 urls += "?" + c.urlParams_.Encode()
49521 req, err := http.NewRequest("DELETE", urls, body)
49522 if err != nil {
49523 return nil, err
49524 }
49525 req.Header = reqHeaders
49526 googleapi.Expand(req.URL, map[string]string{
49527 "profileId": strconv.FormatInt(c.profileId, 10),
49528 "id": strconv.FormatInt(c.id, 10),
49529 })
49530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49531 }
49532
49533
49534 func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error {
49535 gensupport.SetOptions(c.urlParams_, opts...)
49536 res, err := c.doRequest("json")
49537 if err != nil {
49538 return err
49539 }
49540 defer googleapi.CloseBody(res)
49541 if err := googleapi.CheckResponse(res); err != nil {
49542 return err
49543 }
49544 return nil
49545
49546
49547
49548
49549
49550
49551
49552
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567
49568
49569
49570
49571
49572
49573
49574
49575 }
49576
49577
49578
49579 type UserRolesGetCall struct {
49580 s *Service
49581 profileId int64
49582 id int64
49583 urlParams_ gensupport.URLParams
49584 ifNoneMatch_ string
49585 ctx_ context.Context
49586 header_ http.Header
49587 }
49588
49589
49590 func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall {
49591 c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49592 c.profileId = profileId
49593 c.id = id
49594 return c
49595 }
49596
49597
49598
49599
49600 func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall {
49601 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49602 return c
49603 }
49604
49605
49606
49607
49608
49609
49610 func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall {
49611 c.ifNoneMatch_ = entityTag
49612 return c
49613 }
49614
49615
49616
49617
49618 func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall {
49619 c.ctx_ = ctx
49620 return c
49621 }
49622
49623
49624
49625 func (c *UserRolesGetCall) Header() http.Header {
49626 if c.header_ == nil {
49627 c.header_ = make(http.Header)
49628 }
49629 return c.header_
49630 }
49631
49632 func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) {
49633 reqHeaders := make(http.Header)
49634 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
49635 for k, v := range c.header_ {
49636 reqHeaders[k] = v
49637 }
49638 reqHeaders.Set("User-Agent", c.s.userAgent())
49639 if c.ifNoneMatch_ != "" {
49640 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49641 }
49642 var body io.Reader = nil
49643 c.urlParams_.Set("alt", alt)
49644 c.urlParams_.Set("prettyPrint", "false")
49645 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}")
49646 urls += "?" + c.urlParams_.Encode()
49647 req, err := http.NewRequest("GET", urls, body)
49648 if err != nil {
49649 return nil, err
49650 }
49651 req.Header = reqHeaders
49652 googleapi.Expand(req.URL, map[string]string{
49653 "profileId": strconv.FormatInt(c.profileId, 10),
49654 "id": strconv.FormatInt(c.id, 10),
49655 })
49656 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49657 }
49658
49659
49660
49661
49662
49663
49664
49665
49666 func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
49667 gensupport.SetOptions(c.urlParams_, opts...)
49668 res, err := c.doRequest("json")
49669 if res != nil && res.StatusCode == http.StatusNotModified {
49670 if res.Body != nil {
49671 res.Body.Close()
49672 }
49673 return nil, &googleapi.Error{
49674 Code: res.StatusCode,
49675 Header: res.Header,
49676 }
49677 }
49678 if err != nil {
49679 return nil, err
49680 }
49681 defer googleapi.CloseBody(res)
49682 if err := googleapi.CheckResponse(res); err != nil {
49683 return nil, err
49684 }
49685 ret := &UserRole{
49686 ServerResponse: googleapi.ServerResponse{
49687 Header: res.Header,
49688 HTTPStatusCode: res.StatusCode,
49689 },
49690 }
49691 target := &ret
49692 if err := gensupport.DecodeResponse(target, res); err != nil {
49693 return nil, err
49694 }
49695 return ret, nil
49696
49697
49698
49699
49700
49701
49702
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729 }
49730
49731
49732
49733 type UserRolesInsertCall struct {
49734 s *Service
49735 profileId int64
49736 userrole *UserRole
49737 urlParams_ gensupport.URLParams
49738 ctx_ context.Context
49739 header_ http.Header
49740 }
49741
49742
49743 func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall {
49744 c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49745 c.profileId = profileId
49746 c.userrole = userrole
49747 return c
49748 }
49749
49750
49751
49752
49753 func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall {
49754 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49755 return c
49756 }
49757
49758
49759
49760
49761 func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall {
49762 c.ctx_ = ctx
49763 return c
49764 }
49765
49766
49767
49768 func (c *UserRolesInsertCall) Header() http.Header {
49769 if c.header_ == nil {
49770 c.header_ = make(http.Header)
49771 }
49772 return c.header_
49773 }
49774
49775 func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) {
49776 reqHeaders := make(http.Header)
49777 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
49778 for k, v := range c.header_ {
49779 reqHeaders[k] = v
49780 }
49781 reqHeaders.Set("User-Agent", c.s.userAgent())
49782 var body io.Reader = nil
49783 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole)
49784 if err != nil {
49785 return nil, err
49786 }
49787 reqHeaders.Set("Content-Type", "application/json")
49788 c.urlParams_.Set("alt", alt)
49789 c.urlParams_.Set("prettyPrint", "false")
49790 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
49791 urls += "?" + c.urlParams_.Encode()
49792 req, err := http.NewRequest("POST", urls, body)
49793 if err != nil {
49794 return nil, err
49795 }
49796 req.Header = reqHeaders
49797 googleapi.Expand(req.URL, map[string]string{
49798 "profileId": strconv.FormatInt(c.profileId, 10),
49799 })
49800 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49801 }
49802
49803
49804
49805
49806
49807
49808
49809
49810 func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
49811 gensupport.SetOptions(c.urlParams_, opts...)
49812 res, err := c.doRequest("json")
49813 if res != nil && res.StatusCode == http.StatusNotModified {
49814 if res.Body != nil {
49815 res.Body.Close()
49816 }
49817 return nil, &googleapi.Error{
49818 Code: res.StatusCode,
49819 Header: res.Header,
49820 }
49821 }
49822 if err != nil {
49823 return nil, err
49824 }
49825 defer googleapi.CloseBody(res)
49826 if err := googleapi.CheckResponse(res); err != nil {
49827 return nil, err
49828 }
49829 ret := &UserRole{
49830 ServerResponse: googleapi.ServerResponse{
49831 Header: res.Header,
49832 HTTPStatusCode: res.StatusCode,
49833 },
49834 }
49835 target := &ret
49836 if err := gensupport.DecodeResponse(target, res); err != nil {
49837 return nil, err
49838 }
49839 return ret, nil
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850
49851
49852
49853
49854
49855
49856
49857
49858
49859
49860
49861
49862
49863
49864
49865
49866
49867
49868 }
49869
49870
49871
49872 type UserRolesListCall struct {
49873 s *Service
49874 profileId int64
49875 urlParams_ gensupport.URLParams
49876 ifNoneMatch_ string
49877 ctx_ context.Context
49878 header_ http.Header
49879 }
49880
49881
49882
49883 func (r *UserRolesService) List(profileId int64) *UserRolesListCall {
49884 c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49885 c.profileId = profileId
49886 return c
49887 }
49888
49889
49890
49891
49892 func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall {
49893 c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly))
49894 return c
49895 }
49896
49897
49898
49899 func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall {
49900 var ids_ []string
49901 for _, v := range ids {
49902 ids_ = append(ids_, fmt.Sprint(v))
49903 }
49904 c.urlParams_.SetMulti("ids", ids_)
49905 return c
49906 }
49907
49908
49909
49910 func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall {
49911 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
49912 return c
49913 }
49914
49915
49916
49917 func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall {
49918 c.urlParams_.Set("pageToken", pageToken)
49919 return c
49920 }
49921
49922
49923
49924
49925
49926
49927
49928
49929
49930 func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall {
49931 c.urlParams_.Set("searchString", searchString)
49932 return c
49933 }
49934
49935
49936
49937
49938
49939
49940
49941
49942 func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall {
49943 c.urlParams_.Set("sortField", sortField)
49944 return c
49945 }
49946
49947
49948
49949
49950
49951
49952
49953
49954 func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall {
49955 c.urlParams_.Set("sortOrder", sortOrder)
49956 return c
49957 }
49958
49959
49960
49961 func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall {
49962 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
49963 return c
49964 }
49965
49966
49967
49968
49969 func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall {
49970 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49971 return c
49972 }
49973
49974
49975
49976
49977
49978
49979 func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall {
49980 c.ifNoneMatch_ = entityTag
49981 return c
49982 }
49983
49984
49985
49986
49987 func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall {
49988 c.ctx_ = ctx
49989 return c
49990 }
49991
49992
49993
49994 func (c *UserRolesListCall) Header() http.Header {
49995 if c.header_ == nil {
49996 c.header_ = make(http.Header)
49997 }
49998 return c.header_
49999 }
50000
50001 func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) {
50002 reqHeaders := make(http.Header)
50003 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
50004 for k, v := range c.header_ {
50005 reqHeaders[k] = v
50006 }
50007 reqHeaders.Set("User-Agent", c.s.userAgent())
50008 if c.ifNoneMatch_ != "" {
50009 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50010 }
50011 var body io.Reader = nil
50012 c.urlParams_.Set("alt", alt)
50013 c.urlParams_.Set("prettyPrint", "false")
50014 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
50015 urls += "?" + c.urlParams_.Encode()
50016 req, err := http.NewRequest("GET", urls, body)
50017 if err != nil {
50018 return nil, err
50019 }
50020 req.Header = reqHeaders
50021 googleapi.Expand(req.URL, map[string]string{
50022 "profileId": strconv.FormatInt(c.profileId, 10),
50023 })
50024 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50025 }
50026
50027
50028
50029
50030
50031
50032
50033
50034 func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) {
50035 gensupport.SetOptions(c.urlParams_, opts...)
50036 res, err := c.doRequest("json")
50037 if res != nil && res.StatusCode == http.StatusNotModified {
50038 if res.Body != nil {
50039 res.Body.Close()
50040 }
50041 return nil, &googleapi.Error{
50042 Code: res.StatusCode,
50043 Header: res.Header,
50044 }
50045 }
50046 if err != nil {
50047 return nil, err
50048 }
50049 defer googleapi.CloseBody(res)
50050 if err := googleapi.CheckResponse(res); err != nil {
50051 return nil, err
50052 }
50053 ret := &UserRolesListResponse{
50054 ServerResponse: googleapi.ServerResponse{
50055 Header: res.Header,
50056 HTTPStatusCode: res.StatusCode,
50057 },
50058 }
50059 target := &ret
50060 if err := gensupport.DecodeResponse(target, res); err != nil {
50061 return nil, err
50062 }
50063 return ret, nil
50064
50065
50066
50067
50068
50069
50070
50071
50072
50073
50074
50075
50076
50077
50078
50079
50080
50081
50082
50083
50084
50085
50086
50087
50088
50089
50090
50091
50092
50093
50094
50095
50096
50097
50098
50099
50100
50101
50102
50103
50104
50105
50106
50107
50108
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154 }
50155
50156
50157
50158
50159 func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error {
50160 c.ctx_ = ctx
50161 defer c.PageToken(c.urlParams_.Get("pageToken"))
50162 for {
50163 x, err := c.Do()
50164 if err != nil {
50165 return err
50166 }
50167 if err := f(x); err != nil {
50168 return err
50169 }
50170 if x.NextPageToken == "" {
50171 return nil
50172 }
50173 c.PageToken(x.NextPageToken)
50174 }
50175 }
50176
50177
50178
50179 type UserRolesPatchCall struct {
50180 s *Service
50181 profileId int64
50182 userrole *UserRole
50183 urlParams_ gensupport.URLParams
50184 ctx_ context.Context
50185 header_ http.Header
50186 }
50187
50188
50189
50190 func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall {
50191 c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50192 c.profileId = profileId
50193 c.urlParams_.Set("id", fmt.Sprint(id))
50194 c.userrole = userrole
50195 return c
50196 }
50197
50198
50199
50200
50201 func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall {
50202 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50203 return c
50204 }
50205
50206
50207
50208
50209 func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall {
50210 c.ctx_ = ctx
50211 return c
50212 }
50213
50214
50215
50216 func (c *UserRolesPatchCall) Header() http.Header {
50217 if c.header_ == nil {
50218 c.header_ = make(http.Header)
50219 }
50220 return c.header_
50221 }
50222
50223 func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) {
50224 reqHeaders := make(http.Header)
50225 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
50226 for k, v := range c.header_ {
50227 reqHeaders[k] = v
50228 }
50229 reqHeaders.Set("User-Agent", c.s.userAgent())
50230 var body io.Reader = nil
50231 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole)
50232 if err != nil {
50233 return nil, err
50234 }
50235 reqHeaders.Set("Content-Type", "application/json")
50236 c.urlParams_.Set("alt", alt)
50237 c.urlParams_.Set("prettyPrint", "false")
50238 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
50239 urls += "?" + c.urlParams_.Encode()
50240 req, err := http.NewRequest("PATCH", urls, body)
50241 if err != nil {
50242 return nil, err
50243 }
50244 req.Header = reqHeaders
50245 googleapi.Expand(req.URL, map[string]string{
50246 "profileId": strconv.FormatInt(c.profileId, 10),
50247 })
50248 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50249 }
50250
50251
50252
50253
50254
50255
50256
50257
50258 func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
50259 gensupport.SetOptions(c.urlParams_, opts...)
50260 res, err := c.doRequest("json")
50261 if res != nil && res.StatusCode == http.StatusNotModified {
50262 if res.Body != nil {
50263 res.Body.Close()
50264 }
50265 return nil, &googleapi.Error{
50266 Code: res.StatusCode,
50267 Header: res.Header,
50268 }
50269 }
50270 if err != nil {
50271 return nil, err
50272 }
50273 defer googleapi.CloseBody(res)
50274 if err := googleapi.CheckResponse(res); err != nil {
50275 return nil, err
50276 }
50277 ret := &UserRole{
50278 ServerResponse: googleapi.ServerResponse{
50279 Header: res.Header,
50280 HTTPStatusCode: res.StatusCode,
50281 },
50282 }
50283 target := &ret
50284 if err := gensupport.DecodeResponse(target, res); err != nil {
50285 return nil, err
50286 }
50287 return ret, nil
50288
50289
50290
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324 }
50325
50326
50327
50328 type UserRolesUpdateCall struct {
50329 s *Service
50330 profileId int64
50331 userrole *UserRole
50332 urlParams_ gensupport.URLParams
50333 ctx_ context.Context
50334 header_ http.Header
50335 }
50336
50337
50338 func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall {
50339 c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50340 c.profileId = profileId
50341 c.userrole = userrole
50342 return c
50343 }
50344
50345
50346
50347
50348 func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall {
50349 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50350 return c
50351 }
50352
50353
50354
50355
50356 func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall {
50357 c.ctx_ = ctx
50358 return c
50359 }
50360
50361
50362
50363 func (c *UserRolesUpdateCall) Header() http.Header {
50364 if c.header_ == nil {
50365 c.header_ = make(http.Header)
50366 }
50367 return c.header_
50368 }
50369
50370 func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) {
50371 reqHeaders := make(http.Header)
50372 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
50373 for k, v := range c.header_ {
50374 reqHeaders[k] = v
50375 }
50376 reqHeaders.Set("User-Agent", c.s.userAgent())
50377 var body io.Reader = nil
50378 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole)
50379 if err != nil {
50380 return nil, err
50381 }
50382 reqHeaders.Set("Content-Type", "application/json")
50383 c.urlParams_.Set("alt", alt)
50384 c.urlParams_.Set("prettyPrint", "false")
50385 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
50386 urls += "?" + c.urlParams_.Encode()
50387 req, err := http.NewRequest("PUT", urls, body)
50388 if err != nil {
50389 return nil, err
50390 }
50391 req.Header = reqHeaders
50392 googleapi.Expand(req.URL, map[string]string{
50393 "profileId": strconv.FormatInt(c.profileId, 10),
50394 })
50395 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50396 }
50397
50398
50399
50400
50401
50402
50403
50404
50405 func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
50406 gensupport.SetOptions(c.urlParams_, opts...)
50407 res, err := c.doRequest("json")
50408 if res != nil && res.StatusCode == http.StatusNotModified {
50409 if res.Body != nil {
50410 res.Body.Close()
50411 }
50412 return nil, &googleapi.Error{
50413 Code: res.StatusCode,
50414 Header: res.Header,
50415 }
50416 }
50417 if err != nil {
50418 return nil, err
50419 }
50420 defer googleapi.CloseBody(res)
50421 if err := googleapi.CheckResponse(res); err != nil {
50422 return nil, err
50423 }
50424 ret := &UserRole{
50425 ServerResponse: googleapi.ServerResponse{
50426 Header: res.Header,
50427 HTTPStatusCode: res.StatusCode,
50428 },
50429 }
50430 target := &ret
50431 if err := gensupport.DecodeResponse(target, res); err != nil {
50432 return nil, err
50433 }
50434 return ret, nil
50435
50436
50437
50438
50439
50440
50441
50442
50443
50444
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463 }
50464
50465
50466
50467 type VideoFormatsGetCall struct {
50468 s *Service
50469 profileId int64
50470 id int64
50471 urlParams_ gensupport.URLParams
50472 ifNoneMatch_ string
50473 ctx_ context.Context
50474 header_ http.Header
50475 }
50476
50477
50478 func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall {
50479 c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50480 c.profileId = profileId
50481 c.id = id
50482 return c
50483 }
50484
50485
50486
50487
50488 func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall {
50489 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50490 return c
50491 }
50492
50493
50494
50495
50496
50497
50498 func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall {
50499 c.ifNoneMatch_ = entityTag
50500 return c
50501 }
50502
50503
50504
50505
50506 func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall {
50507 c.ctx_ = ctx
50508 return c
50509 }
50510
50511
50512
50513 func (c *VideoFormatsGetCall) Header() http.Header {
50514 if c.header_ == nil {
50515 c.header_ = make(http.Header)
50516 }
50517 return c.header_
50518 }
50519
50520 func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) {
50521 reqHeaders := make(http.Header)
50522 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
50523 for k, v := range c.header_ {
50524 reqHeaders[k] = v
50525 }
50526 reqHeaders.Set("User-Agent", c.s.userAgent())
50527 if c.ifNoneMatch_ != "" {
50528 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50529 }
50530 var body io.Reader = nil
50531 c.urlParams_.Set("alt", alt)
50532 c.urlParams_.Set("prettyPrint", "false")
50533 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats/{id}")
50534 urls += "?" + c.urlParams_.Encode()
50535 req, err := http.NewRequest("GET", urls, body)
50536 if err != nil {
50537 return nil, err
50538 }
50539 req.Header = reqHeaders
50540 googleapi.Expand(req.URL, map[string]string{
50541 "profileId": strconv.FormatInt(c.profileId, 10),
50542 "id": strconv.FormatInt(c.id, 10),
50543 })
50544 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50545 }
50546
50547
50548
50549
50550
50551
50552
50553
50554 func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) {
50555 gensupport.SetOptions(c.urlParams_, opts...)
50556 res, err := c.doRequest("json")
50557 if res != nil && res.StatusCode == http.StatusNotModified {
50558 if res.Body != nil {
50559 res.Body.Close()
50560 }
50561 return nil, &googleapi.Error{
50562 Code: res.StatusCode,
50563 Header: res.Header,
50564 }
50565 }
50566 if err != nil {
50567 return nil, err
50568 }
50569 defer googleapi.CloseBody(res)
50570 if err := googleapi.CheckResponse(res); err != nil {
50571 return nil, err
50572 }
50573 ret := &VideoFormat{
50574 ServerResponse: googleapi.ServerResponse{
50575 Header: res.Header,
50576 HTTPStatusCode: res.StatusCode,
50577 },
50578 }
50579 target := &ret
50580 if err := gensupport.DecodeResponse(target, res); err != nil {
50581 return nil, err
50582 }
50583 return ret, nil
50584
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
50597
50598
50599
50600
50601
50602
50603
50604
50605
50606
50607
50608
50609
50610
50611
50612
50613
50614
50615
50616
50617 }
50618
50619
50620
50621 type VideoFormatsListCall struct {
50622 s *Service
50623 profileId int64
50624 urlParams_ gensupport.URLParams
50625 ifNoneMatch_ string
50626 ctx_ context.Context
50627 header_ http.Header
50628 }
50629
50630
50631 func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall {
50632 c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50633 c.profileId = profileId
50634 return c
50635 }
50636
50637
50638
50639
50640 func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall {
50641 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50642 return c
50643 }
50644
50645
50646
50647
50648
50649
50650 func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall {
50651 c.ifNoneMatch_ = entityTag
50652 return c
50653 }
50654
50655
50656
50657
50658 func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall {
50659 c.ctx_ = ctx
50660 return c
50661 }
50662
50663
50664
50665 func (c *VideoFormatsListCall) Header() http.Header {
50666 if c.header_ == nil {
50667 c.header_ = make(http.Header)
50668 }
50669 return c.header_
50670 }
50671
50672 func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) {
50673 reqHeaders := make(http.Header)
50674 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
50675 for k, v := range c.header_ {
50676 reqHeaders[k] = v
50677 }
50678 reqHeaders.Set("User-Agent", c.s.userAgent())
50679 if c.ifNoneMatch_ != "" {
50680 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50681 }
50682 var body io.Reader = nil
50683 c.urlParams_.Set("alt", alt)
50684 c.urlParams_.Set("prettyPrint", "false")
50685 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats")
50686 urls += "?" + c.urlParams_.Encode()
50687 req, err := http.NewRequest("GET", urls, body)
50688 if err != nil {
50689 return nil, err
50690 }
50691 req.Header = reqHeaders
50692 googleapi.Expand(req.URL, map[string]string{
50693 "profileId": strconv.FormatInt(c.profileId, 10),
50694 })
50695 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50696 }
50697
50698
50699
50700
50701
50702
50703
50704
50705 func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) {
50706 gensupport.SetOptions(c.urlParams_, opts...)
50707 res, err := c.doRequest("json")
50708 if res != nil && res.StatusCode == http.StatusNotModified {
50709 if res.Body != nil {
50710 res.Body.Close()
50711 }
50712 return nil, &googleapi.Error{
50713 Code: res.StatusCode,
50714 Header: res.Header,
50715 }
50716 }
50717 if err != nil {
50718 return nil, err
50719 }
50720 defer googleapi.CloseBody(res)
50721 if err := googleapi.CheckResponse(res); err != nil {
50722 return nil, err
50723 }
50724 ret := &VideoFormatsListResponse{
50725 ServerResponse: googleapi.ServerResponse{
50726 Header: res.Header,
50727 HTTPStatusCode: res.StatusCode,
50728 },
50729 }
50730 target := &ret
50731 if err := gensupport.DecodeResponse(target, res); err != nil {
50732 return nil, err
50733 }
50734 return ret, nil
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760 }
50761
View as plain text