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 internal "google.golang.org/api/internal"
58 gensupport "google.golang.org/api/internal/gensupport"
59 option "google.golang.org/api/option"
60 internaloption "google.golang.org/api/option/internaloption"
61 htransport "google.golang.org/api/transport/http"
62 )
63
64
65
66 var _ = bytes.NewBuffer
67 var _ = strconv.Itoa
68 var _ = fmt.Sprintf
69 var _ = json.NewDecoder
70 var _ = io.Copy
71 var _ = url.Parse
72 var _ = gensupport.MarshalJSON
73 var _ = googleapi.Version
74 var _ = errors.New
75 var _ = strings.Replace
76 var _ = context.Canceled
77 var _ = internaloption.WithDefaultEndpoint
78
79 const apiId = "dfareporting:v3.4"
80 const apiName = "dfareporting"
81 const apiVersion = "v3.4"
82 const basePath = "https://dfareporting.googleapis.com/dfareporting/v3.4/"
83 const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/dfareporting/v3.4/"
84
85
86 const (
87
88 DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"
89
90
91 DfareportingScope = "https://www.googleapis.com/auth/dfareporting"
92
93
94
95 DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"
96 )
97
98
99 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
100 scopesOption := internaloption.WithDefaultScopes(
101 "https://www.googleapis.com/auth/ddmconversions",
102 "https://www.googleapis.com/auth/dfareporting",
103 "https://www.googleapis.com/auth/dfatrafficking",
104 )
105
106 opts = append([]option.ClientOption{scopesOption}, opts...)
107 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
108 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
109 client, endpoint, err := htransport.NewClient(ctx, opts...)
110 if err != nil {
111 return nil, err
112 }
113 s, err := New(client)
114 if err != nil {
115 return nil, err
116 }
117 if endpoint != "" {
118 s.BasePath = endpoint
119 }
120 return s, nil
121 }
122
123
124
125
126
127
128 func New(client *http.Client) (*Service, error) {
129 if client == nil {
130 return nil, errors.New("client is nil")
131 }
132 s := &Service{client: client, BasePath: basePath}
133 s.AccountActiveAdSummaries = NewAccountActiveAdSummariesService(s)
134 s.AccountPermissionGroups = NewAccountPermissionGroupsService(s)
135 s.AccountPermissions = NewAccountPermissionsService(s)
136 s.AccountUserProfiles = NewAccountUserProfilesService(s)
137 s.Accounts = NewAccountsService(s)
138 s.Ads = NewAdsService(s)
139 s.AdvertiserGroups = NewAdvertiserGroupsService(s)
140 s.AdvertiserLandingPages = NewAdvertiserLandingPagesService(s)
141 s.Advertisers = NewAdvertisersService(s)
142 s.Browsers = NewBrowsersService(s)
143 s.CampaignCreativeAssociations = NewCampaignCreativeAssociationsService(s)
144 s.Campaigns = NewCampaignsService(s)
145 s.ChangeLogs = NewChangeLogsService(s)
146 s.Cities = NewCitiesService(s)
147 s.ConnectionTypes = NewConnectionTypesService(s)
148 s.ContentCategories = NewContentCategoriesService(s)
149 s.Conversions = NewConversionsService(s)
150 s.Countries = NewCountriesService(s)
151 s.CreativeAssets = NewCreativeAssetsService(s)
152 s.CreativeFieldValues = NewCreativeFieldValuesService(s)
153 s.CreativeFields = NewCreativeFieldsService(s)
154 s.CreativeGroups = NewCreativeGroupsService(s)
155 s.Creatives = NewCreativesService(s)
156 s.CustomEvents = NewCustomEventsService(s)
157 s.DimensionValues = NewDimensionValuesService(s)
158 s.DirectorySites = NewDirectorySitesService(s)
159 s.DynamicTargetingKeys = NewDynamicTargetingKeysService(s)
160 s.EventTags = NewEventTagsService(s)
161 s.Files = NewFilesService(s)
162 s.FloodlightActivities = NewFloodlightActivitiesService(s)
163 s.FloodlightActivityGroups = NewFloodlightActivityGroupsService(s)
164 s.FloodlightConfigurations = NewFloodlightConfigurationsService(s)
165 s.InventoryItems = NewInventoryItemsService(s)
166 s.Languages = NewLanguagesService(s)
167 s.Metros = NewMetrosService(s)
168 s.MobileApps = NewMobileAppsService(s)
169 s.MobileCarriers = NewMobileCarriersService(s)
170 s.OperatingSystemVersions = NewOperatingSystemVersionsService(s)
171 s.OperatingSystems = NewOperatingSystemsService(s)
172 s.OrderDocuments = NewOrderDocumentsService(s)
173 s.Orders = NewOrdersService(s)
174 s.PlacementGroups = NewPlacementGroupsService(s)
175 s.PlacementStrategies = NewPlacementStrategiesService(s)
176 s.Placements = NewPlacementsService(s)
177 s.PlatformTypes = NewPlatformTypesService(s)
178 s.PostalCodes = NewPostalCodesService(s)
179 s.Projects = NewProjectsService(s)
180 s.Regions = NewRegionsService(s)
181 s.RemarketingListShares = NewRemarketingListSharesService(s)
182 s.RemarketingLists = NewRemarketingListsService(s)
183 s.Reports = NewReportsService(s)
184 s.Sites = NewSitesService(s)
185 s.Sizes = NewSizesService(s)
186 s.Subaccounts = NewSubaccountsService(s)
187 s.TargetableRemarketingLists = NewTargetableRemarketingListsService(s)
188 s.TargetingTemplates = NewTargetingTemplatesService(s)
189 s.UserProfiles = NewUserProfilesService(s)
190 s.UserRolePermissionGroups = NewUserRolePermissionGroupsService(s)
191 s.UserRolePermissions = NewUserRolePermissionsService(s)
192 s.UserRoles = NewUserRolesService(s)
193 s.VideoFormats = NewVideoFormatsService(s)
194 return s, nil
195 }
196
197 type Service struct {
198 client *http.Client
199 BasePath string
200 UserAgent string
201
202 AccountActiveAdSummaries *AccountActiveAdSummariesService
203
204 AccountPermissionGroups *AccountPermissionGroupsService
205
206 AccountPermissions *AccountPermissionsService
207
208 AccountUserProfiles *AccountUserProfilesService
209
210 Accounts *AccountsService
211
212 Ads *AdsService
213
214 AdvertiserGroups *AdvertiserGroupsService
215
216 AdvertiserLandingPages *AdvertiserLandingPagesService
217
218 Advertisers *AdvertisersService
219
220 Browsers *BrowsersService
221
222 CampaignCreativeAssociations *CampaignCreativeAssociationsService
223
224 Campaigns *CampaignsService
225
226 ChangeLogs *ChangeLogsService
227
228 Cities *CitiesService
229
230 ConnectionTypes *ConnectionTypesService
231
232 ContentCategories *ContentCategoriesService
233
234 Conversions *ConversionsService
235
236 Countries *CountriesService
237
238 CreativeAssets *CreativeAssetsService
239
240 CreativeFieldValues *CreativeFieldValuesService
241
242 CreativeFields *CreativeFieldsService
243
244 CreativeGroups *CreativeGroupsService
245
246 Creatives *CreativesService
247
248 CustomEvents *CustomEventsService
249
250 DimensionValues *DimensionValuesService
251
252 DirectorySites *DirectorySitesService
253
254 DynamicTargetingKeys *DynamicTargetingKeysService
255
256 EventTags *EventTagsService
257
258 Files *FilesService
259
260 FloodlightActivities *FloodlightActivitiesService
261
262 FloodlightActivityGroups *FloodlightActivityGroupsService
263
264 FloodlightConfigurations *FloodlightConfigurationsService
265
266 InventoryItems *InventoryItemsService
267
268 Languages *LanguagesService
269
270 Metros *MetrosService
271
272 MobileApps *MobileAppsService
273
274 MobileCarriers *MobileCarriersService
275
276 OperatingSystemVersions *OperatingSystemVersionsService
277
278 OperatingSystems *OperatingSystemsService
279
280 OrderDocuments *OrderDocumentsService
281
282 Orders *OrdersService
283
284 PlacementGroups *PlacementGroupsService
285
286 PlacementStrategies *PlacementStrategiesService
287
288 Placements *PlacementsService
289
290 PlatformTypes *PlatformTypesService
291
292 PostalCodes *PostalCodesService
293
294 Projects *ProjectsService
295
296 Regions *RegionsService
297
298 RemarketingListShares *RemarketingListSharesService
299
300 RemarketingLists *RemarketingListsService
301
302 Reports *ReportsService
303
304 Sites *SitesService
305
306 Sizes *SizesService
307
308 Subaccounts *SubaccountsService
309
310 TargetableRemarketingLists *TargetableRemarketingListsService
311
312 TargetingTemplates *TargetingTemplatesService
313
314 UserProfiles *UserProfilesService
315
316 UserRolePermissionGroups *UserRolePermissionGroupsService
317
318 UserRolePermissions *UserRolePermissionsService
319
320 UserRoles *UserRolesService
321
322 VideoFormats *VideoFormatsService
323 }
324
325 func (s *Service) userAgent() string {
326 if s.UserAgent == "" {
327 return googleapi.UserAgent
328 }
329 return googleapi.UserAgent + " " + s.UserAgent
330 }
331
332 func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService {
333 rs := &AccountActiveAdSummariesService{s: s}
334 return rs
335 }
336
337 type AccountActiveAdSummariesService struct {
338 s *Service
339 }
340
341 func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService {
342 rs := &AccountPermissionGroupsService{s: s}
343 return rs
344 }
345
346 type AccountPermissionGroupsService struct {
347 s *Service
348 }
349
350 func NewAccountPermissionsService(s *Service) *AccountPermissionsService {
351 rs := &AccountPermissionsService{s: s}
352 return rs
353 }
354
355 type AccountPermissionsService struct {
356 s *Service
357 }
358
359 func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService {
360 rs := &AccountUserProfilesService{s: s}
361 return rs
362 }
363
364 type AccountUserProfilesService struct {
365 s *Service
366 }
367
368 func NewAccountsService(s *Service) *AccountsService {
369 rs := &AccountsService{s: s}
370 return rs
371 }
372
373 type AccountsService struct {
374 s *Service
375 }
376
377 func NewAdsService(s *Service) *AdsService {
378 rs := &AdsService{s: s}
379 return rs
380 }
381
382 type AdsService struct {
383 s *Service
384 }
385
386 func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService {
387 rs := &AdvertiserGroupsService{s: s}
388 return rs
389 }
390
391 type AdvertiserGroupsService struct {
392 s *Service
393 }
394
395 func NewAdvertiserLandingPagesService(s *Service) *AdvertiserLandingPagesService {
396 rs := &AdvertiserLandingPagesService{s: s}
397 return rs
398 }
399
400 type AdvertiserLandingPagesService struct {
401 s *Service
402 }
403
404 func NewAdvertisersService(s *Service) *AdvertisersService {
405 rs := &AdvertisersService{s: s}
406 return rs
407 }
408
409 type AdvertisersService struct {
410 s *Service
411 }
412
413 func NewBrowsersService(s *Service) *BrowsersService {
414 rs := &BrowsersService{s: s}
415 return rs
416 }
417
418 type BrowsersService struct {
419 s *Service
420 }
421
422 func NewCampaignCreativeAssociationsService(s *Service) *CampaignCreativeAssociationsService {
423 rs := &CampaignCreativeAssociationsService{s: s}
424 return rs
425 }
426
427 type CampaignCreativeAssociationsService struct {
428 s *Service
429 }
430
431 func NewCampaignsService(s *Service) *CampaignsService {
432 rs := &CampaignsService{s: s}
433 return rs
434 }
435
436 type CampaignsService struct {
437 s *Service
438 }
439
440 func NewChangeLogsService(s *Service) *ChangeLogsService {
441 rs := &ChangeLogsService{s: s}
442 return rs
443 }
444
445 type ChangeLogsService struct {
446 s *Service
447 }
448
449 func NewCitiesService(s *Service) *CitiesService {
450 rs := &CitiesService{s: s}
451 return rs
452 }
453
454 type CitiesService struct {
455 s *Service
456 }
457
458 func NewConnectionTypesService(s *Service) *ConnectionTypesService {
459 rs := &ConnectionTypesService{s: s}
460 return rs
461 }
462
463 type ConnectionTypesService struct {
464 s *Service
465 }
466
467 func NewContentCategoriesService(s *Service) *ContentCategoriesService {
468 rs := &ContentCategoriesService{s: s}
469 return rs
470 }
471
472 type ContentCategoriesService struct {
473 s *Service
474 }
475
476 func NewConversionsService(s *Service) *ConversionsService {
477 rs := &ConversionsService{s: s}
478 return rs
479 }
480
481 type ConversionsService struct {
482 s *Service
483 }
484
485 func NewCountriesService(s *Service) *CountriesService {
486 rs := &CountriesService{s: s}
487 return rs
488 }
489
490 type CountriesService struct {
491 s *Service
492 }
493
494 func NewCreativeAssetsService(s *Service) *CreativeAssetsService {
495 rs := &CreativeAssetsService{s: s}
496 return rs
497 }
498
499 type CreativeAssetsService struct {
500 s *Service
501 }
502
503 func NewCreativeFieldValuesService(s *Service) *CreativeFieldValuesService {
504 rs := &CreativeFieldValuesService{s: s}
505 return rs
506 }
507
508 type CreativeFieldValuesService struct {
509 s *Service
510 }
511
512 func NewCreativeFieldsService(s *Service) *CreativeFieldsService {
513 rs := &CreativeFieldsService{s: s}
514 return rs
515 }
516
517 type CreativeFieldsService struct {
518 s *Service
519 }
520
521 func NewCreativeGroupsService(s *Service) *CreativeGroupsService {
522 rs := &CreativeGroupsService{s: s}
523 return rs
524 }
525
526 type CreativeGroupsService struct {
527 s *Service
528 }
529
530 func NewCreativesService(s *Service) *CreativesService {
531 rs := &CreativesService{s: s}
532 return rs
533 }
534
535 type CreativesService struct {
536 s *Service
537 }
538
539 func NewCustomEventsService(s *Service) *CustomEventsService {
540 rs := &CustomEventsService{s: s}
541 return rs
542 }
543
544 type CustomEventsService struct {
545 s *Service
546 }
547
548 func NewDimensionValuesService(s *Service) *DimensionValuesService {
549 rs := &DimensionValuesService{s: s}
550 return rs
551 }
552
553 type DimensionValuesService struct {
554 s *Service
555 }
556
557 func NewDirectorySitesService(s *Service) *DirectorySitesService {
558 rs := &DirectorySitesService{s: s}
559 return rs
560 }
561
562 type DirectorySitesService struct {
563 s *Service
564 }
565
566 func NewDynamicTargetingKeysService(s *Service) *DynamicTargetingKeysService {
567 rs := &DynamicTargetingKeysService{s: s}
568 return rs
569 }
570
571 type DynamicTargetingKeysService struct {
572 s *Service
573 }
574
575 func NewEventTagsService(s *Service) *EventTagsService {
576 rs := &EventTagsService{s: s}
577 return rs
578 }
579
580 type EventTagsService struct {
581 s *Service
582 }
583
584 func NewFilesService(s *Service) *FilesService {
585 rs := &FilesService{s: s}
586 return rs
587 }
588
589 type FilesService struct {
590 s *Service
591 }
592
593 func NewFloodlightActivitiesService(s *Service) *FloodlightActivitiesService {
594 rs := &FloodlightActivitiesService{s: s}
595 return rs
596 }
597
598 type FloodlightActivitiesService struct {
599 s *Service
600 }
601
602 func NewFloodlightActivityGroupsService(s *Service) *FloodlightActivityGroupsService {
603 rs := &FloodlightActivityGroupsService{s: s}
604 return rs
605 }
606
607 type FloodlightActivityGroupsService struct {
608 s *Service
609 }
610
611 func NewFloodlightConfigurationsService(s *Service) *FloodlightConfigurationsService {
612 rs := &FloodlightConfigurationsService{s: s}
613 return rs
614 }
615
616 type FloodlightConfigurationsService struct {
617 s *Service
618 }
619
620 func NewInventoryItemsService(s *Service) *InventoryItemsService {
621 rs := &InventoryItemsService{s: s}
622 return rs
623 }
624
625 type InventoryItemsService struct {
626 s *Service
627 }
628
629 func NewLanguagesService(s *Service) *LanguagesService {
630 rs := &LanguagesService{s: s}
631 return rs
632 }
633
634 type LanguagesService struct {
635 s *Service
636 }
637
638 func NewMetrosService(s *Service) *MetrosService {
639 rs := &MetrosService{s: s}
640 return rs
641 }
642
643 type MetrosService struct {
644 s *Service
645 }
646
647 func NewMobileAppsService(s *Service) *MobileAppsService {
648 rs := &MobileAppsService{s: s}
649 return rs
650 }
651
652 type MobileAppsService struct {
653 s *Service
654 }
655
656 func NewMobileCarriersService(s *Service) *MobileCarriersService {
657 rs := &MobileCarriersService{s: s}
658 return rs
659 }
660
661 type MobileCarriersService struct {
662 s *Service
663 }
664
665 func NewOperatingSystemVersionsService(s *Service) *OperatingSystemVersionsService {
666 rs := &OperatingSystemVersionsService{s: s}
667 return rs
668 }
669
670 type OperatingSystemVersionsService struct {
671 s *Service
672 }
673
674 func NewOperatingSystemsService(s *Service) *OperatingSystemsService {
675 rs := &OperatingSystemsService{s: s}
676 return rs
677 }
678
679 type OperatingSystemsService struct {
680 s *Service
681 }
682
683 func NewOrderDocumentsService(s *Service) *OrderDocumentsService {
684 rs := &OrderDocumentsService{s: s}
685 return rs
686 }
687
688 type OrderDocumentsService struct {
689 s *Service
690 }
691
692 func NewOrdersService(s *Service) *OrdersService {
693 rs := &OrdersService{s: s}
694 return rs
695 }
696
697 type OrdersService struct {
698 s *Service
699 }
700
701 func NewPlacementGroupsService(s *Service) *PlacementGroupsService {
702 rs := &PlacementGroupsService{s: s}
703 return rs
704 }
705
706 type PlacementGroupsService struct {
707 s *Service
708 }
709
710 func NewPlacementStrategiesService(s *Service) *PlacementStrategiesService {
711 rs := &PlacementStrategiesService{s: s}
712 return rs
713 }
714
715 type PlacementStrategiesService struct {
716 s *Service
717 }
718
719 func NewPlacementsService(s *Service) *PlacementsService {
720 rs := &PlacementsService{s: s}
721 return rs
722 }
723
724 type PlacementsService struct {
725 s *Service
726 }
727
728 func NewPlatformTypesService(s *Service) *PlatformTypesService {
729 rs := &PlatformTypesService{s: s}
730 return rs
731 }
732
733 type PlatformTypesService struct {
734 s *Service
735 }
736
737 func NewPostalCodesService(s *Service) *PostalCodesService {
738 rs := &PostalCodesService{s: s}
739 return rs
740 }
741
742 type PostalCodesService struct {
743 s *Service
744 }
745
746 func NewProjectsService(s *Service) *ProjectsService {
747 rs := &ProjectsService{s: s}
748 return rs
749 }
750
751 type ProjectsService struct {
752 s *Service
753 }
754
755 func NewRegionsService(s *Service) *RegionsService {
756 rs := &RegionsService{s: s}
757 return rs
758 }
759
760 type RegionsService struct {
761 s *Service
762 }
763
764 func NewRemarketingListSharesService(s *Service) *RemarketingListSharesService {
765 rs := &RemarketingListSharesService{s: s}
766 return rs
767 }
768
769 type RemarketingListSharesService struct {
770 s *Service
771 }
772
773 func NewRemarketingListsService(s *Service) *RemarketingListsService {
774 rs := &RemarketingListsService{s: s}
775 return rs
776 }
777
778 type RemarketingListsService struct {
779 s *Service
780 }
781
782 func NewReportsService(s *Service) *ReportsService {
783 rs := &ReportsService{s: s}
784 rs.CompatibleFields = NewReportsCompatibleFieldsService(s)
785 rs.Files = NewReportsFilesService(s)
786 return rs
787 }
788
789 type ReportsService struct {
790 s *Service
791
792 CompatibleFields *ReportsCompatibleFieldsService
793
794 Files *ReportsFilesService
795 }
796
797 func NewReportsCompatibleFieldsService(s *Service) *ReportsCompatibleFieldsService {
798 rs := &ReportsCompatibleFieldsService{s: s}
799 return rs
800 }
801
802 type ReportsCompatibleFieldsService struct {
803 s *Service
804 }
805
806 func NewReportsFilesService(s *Service) *ReportsFilesService {
807 rs := &ReportsFilesService{s: s}
808 return rs
809 }
810
811 type ReportsFilesService struct {
812 s *Service
813 }
814
815 func NewSitesService(s *Service) *SitesService {
816 rs := &SitesService{s: s}
817 return rs
818 }
819
820 type SitesService struct {
821 s *Service
822 }
823
824 func NewSizesService(s *Service) *SizesService {
825 rs := &SizesService{s: s}
826 return rs
827 }
828
829 type SizesService struct {
830 s *Service
831 }
832
833 func NewSubaccountsService(s *Service) *SubaccountsService {
834 rs := &SubaccountsService{s: s}
835 return rs
836 }
837
838 type SubaccountsService struct {
839 s *Service
840 }
841
842 func NewTargetableRemarketingListsService(s *Service) *TargetableRemarketingListsService {
843 rs := &TargetableRemarketingListsService{s: s}
844 return rs
845 }
846
847 type TargetableRemarketingListsService struct {
848 s *Service
849 }
850
851 func NewTargetingTemplatesService(s *Service) *TargetingTemplatesService {
852 rs := &TargetingTemplatesService{s: s}
853 return rs
854 }
855
856 type TargetingTemplatesService struct {
857 s *Service
858 }
859
860 func NewUserProfilesService(s *Service) *UserProfilesService {
861 rs := &UserProfilesService{s: s}
862 return rs
863 }
864
865 type UserProfilesService struct {
866 s *Service
867 }
868
869 func NewUserRolePermissionGroupsService(s *Service) *UserRolePermissionGroupsService {
870 rs := &UserRolePermissionGroupsService{s: s}
871 return rs
872 }
873
874 type UserRolePermissionGroupsService struct {
875 s *Service
876 }
877
878 func NewUserRolePermissionsService(s *Service) *UserRolePermissionsService {
879 rs := &UserRolePermissionsService{s: s}
880 return rs
881 }
882
883 type UserRolePermissionsService struct {
884 s *Service
885 }
886
887 func NewUserRolesService(s *Service) *UserRolesService {
888 rs := &UserRolesService{s: s}
889 return rs
890 }
891
892 type UserRolesService struct {
893 s *Service
894 }
895
896 func NewVideoFormatsService(s *Service) *VideoFormatsService {
897 rs := &VideoFormatsService{s: s}
898 return rs
899 }
900
901 type VideoFormatsService struct {
902 s *Service
903 }
904
905
906 type Account struct {
907
908 AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"`
909
910
911
912
913
914
915
916 AccountProfile string `json:"accountProfile,omitempty"`
917
918
919 Active bool `json:"active,omitempty"`
920
921
922
923
924
925
926
927
928
929
930
931
932
933 ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`
934
935
936
937
938 ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
939
940
941
942 AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`
943
944
945 CountryId int64 `json:"countryId,omitempty,string"`
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960 CurrencyId int64 `json:"currencyId,omitempty,string"`
961
962
963 DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"`
964
965
966 Description string `json:"description,omitempty"`
967
968
969 Id int64 `json:"id,omitempty,string"`
970
971
972
973 Kind string `json:"kind,omitempty"`
974
975
976
977
978
979
980
981 Locale string `json:"locale,omitempty"`
982
983
984
985 MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"`
986
987
988
989 Name string `json:"name,omitempty"`
990
991
992
993 NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`
994
995
996 ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"`
997
998
999
1000 ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"`
1001
1002
1003
1004 TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"`
1005
1006
1007
1008 googleapi.ServerResponse `json:"-"`
1009
1010
1011
1012
1013
1014
1015
1016
1017 ForceSendFields []string `json:"-"`
1018
1019
1020
1021
1022
1023
1024
1025
1026 NullFields []string `json:"-"`
1027 }
1028
1029 func (s *Account) MarshalJSON() ([]byte, error) {
1030 type NoMethod Account
1031 raw := NoMethod(*s)
1032 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1033 }
1034
1035
1036 type AccountActiveAdSummary struct {
1037
1038 AccountId int64 `json:"accountId,omitempty,string"`
1039
1040
1041 ActiveAds int64 `json:"activeAds,omitempty,string"`
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055 ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`
1056
1057
1058 AvailableAds int64 `json:"availableAds,omitempty,string"`
1059
1060
1061
1062 Kind string `json:"kind,omitempty"`
1063
1064
1065
1066 googleapi.ServerResponse `json:"-"`
1067
1068
1069
1070
1071
1072
1073
1074 ForceSendFields []string `json:"-"`
1075
1076
1077
1078
1079
1080
1081
1082 NullFields []string `json:"-"`
1083 }
1084
1085 func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) {
1086 type NoMethod AccountActiveAdSummary
1087 raw := NoMethod(*s)
1088 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1089 }
1090
1091
1092
1093
1094 type AccountPermission struct {
1095
1096
1097
1098
1099
1100
1101
1102 AccountProfiles []string `json:"accountProfiles,omitempty"`
1103
1104
1105 Id int64 `json:"id,omitempty,string"`
1106
1107
1108
1109 Kind string `json:"kind,omitempty"`
1110
1111
1112
1113
1114
1115
1116
1117 Level string `json:"level,omitempty"`
1118
1119
1120 Name string `json:"name,omitempty"`
1121
1122
1123 PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"`
1124
1125
1126
1127 googleapi.ServerResponse `json:"-"`
1128
1129
1130
1131
1132
1133
1134
1135 ForceSendFields []string `json:"-"`
1136
1137
1138
1139
1140
1141
1142
1143
1144 NullFields []string `json:"-"`
1145 }
1146
1147 func (s *AccountPermission) MarshalJSON() ([]byte, error) {
1148 type NoMethod AccountPermission
1149 raw := NoMethod(*s)
1150 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1151 }
1152
1153
1154
1155
1156 type AccountPermissionGroup struct {
1157
1158 Id int64 `json:"id,omitempty,string"`
1159
1160
1161
1162 Kind string `json:"kind,omitempty"`
1163
1164
1165 Name string `json:"name,omitempty"`
1166
1167
1168
1169 googleapi.ServerResponse `json:"-"`
1170
1171
1172
1173
1174
1175
1176
1177 ForceSendFields []string `json:"-"`
1178
1179
1180
1181
1182
1183
1184
1185 NullFields []string `json:"-"`
1186 }
1187
1188 func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) {
1189 type NoMethod AccountPermissionGroup
1190 raw := NoMethod(*s)
1191 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1192 }
1193
1194
1195
1196 type AccountPermissionGroupsListResponse struct {
1197
1198 AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"`
1199
1200
1201
1202 Kind string `json:"kind,omitempty"`
1203
1204
1205
1206 googleapi.ServerResponse `json:"-"`
1207
1208
1209
1210
1211
1212
1213
1214
1215 ForceSendFields []string `json:"-"`
1216
1217
1218
1219
1220
1221
1222
1223
1224 NullFields []string `json:"-"`
1225 }
1226
1227 func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) {
1228 type NoMethod AccountPermissionGroupsListResponse
1229 raw := NoMethod(*s)
1230 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1231 }
1232
1233
1234 type AccountPermissionsListResponse struct {
1235
1236 AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"`
1237
1238
1239
1240 Kind string `json:"kind,omitempty"`
1241
1242
1243
1244 googleapi.ServerResponse `json:"-"`
1245
1246
1247
1248
1249
1250
1251
1252 ForceSendFields []string `json:"-"`
1253
1254
1255
1256
1257
1258
1259
1260
1261 NullFields []string `json:"-"`
1262 }
1263
1264 func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) {
1265 type NoMethod AccountPermissionsListResponse
1266 raw := NoMethod(*s)
1267 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1268 }
1269
1270
1271
1272
1273
1274 type AccountUserProfile struct {
1275
1276
1277 AccountId int64 `json:"accountId,omitempty,string"`
1278
1279
1280
1281 Active bool `json:"active,omitempty"`
1282
1283
1284
1285 AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"`
1286
1287
1288
1289 CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"`
1290
1291
1292 Comments string `json:"comments,omitempty"`
1293
1294
1295
1296
1297 Email string `json:"email,omitempty"`
1298
1299
1300
1301 Id int64 `json:"id,omitempty,string"`
1302
1303
1304
1305 Kind string `json:"kind,omitempty"`
1306
1307
1308
1309
1310
1311
1312
1313
1314 Locale string `json:"locale,omitempty"`
1315
1316
1317
1318
1319 Name string `json:"name,omitempty"`
1320
1321
1322
1323 SiteFilter *ObjectFilter `json:"siteFilter,omitempty"`
1324
1325
1326
1327 SubaccountId int64 `json:"subaccountId,omitempty,string"`
1328
1329
1330
1331
1332
1333
1334
1335
1336 TraffickerType string `json:"traffickerType,omitempty"`
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 UserAccessType string `json:"userAccessType,omitempty"`
1347
1348
1349
1350 UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"`
1351
1352
1353
1354 UserRoleId int64 `json:"userRoleId,omitempty,string"`
1355
1356
1357
1358 googleapi.ServerResponse `json:"-"`
1359
1360
1361
1362
1363
1364
1365
1366 ForceSendFields []string `json:"-"`
1367
1368
1369
1370
1371
1372
1373
1374 NullFields []string `json:"-"`
1375 }
1376
1377 func (s *AccountUserProfile) MarshalJSON() ([]byte, error) {
1378 type NoMethod AccountUserProfile
1379 raw := NoMethod(*s)
1380 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1381 }
1382
1383
1384 type AccountUserProfilesListResponse struct {
1385
1386 AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"`
1387
1388
1389
1390 Kind string `json:"kind,omitempty"`
1391
1392
1393
1394 NextPageToken string `json:"nextPageToken,omitempty"`
1395
1396
1397
1398 googleapi.ServerResponse `json:"-"`
1399
1400
1401
1402
1403
1404
1405
1406 ForceSendFields []string `json:"-"`
1407
1408
1409
1410
1411
1412
1413
1414
1415 NullFields []string `json:"-"`
1416 }
1417
1418 func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) {
1419 type NoMethod AccountUserProfilesListResponse
1420 raw := NoMethod(*s)
1421 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1422 }
1423
1424
1425 type AccountsListResponse struct {
1426
1427 Accounts []*Account `json:"accounts,omitempty"`
1428
1429
1430
1431 Kind string `json:"kind,omitempty"`
1432
1433
1434
1435 NextPageToken string `json:"nextPageToken,omitempty"`
1436
1437
1438
1439 googleapi.ServerResponse `json:"-"`
1440
1441
1442
1443
1444
1445
1446
1447 ForceSendFields []string `json:"-"`
1448
1449
1450
1451
1452
1453
1454
1455 NullFields []string `json:"-"`
1456 }
1457
1458 func (s *AccountsListResponse) MarshalJSON() ([]byte, error) {
1459 type NoMethod AccountsListResponse
1460 raw := NoMethod(*s)
1461 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1462 }
1463
1464
1465 type Activities struct {
1466
1467
1468 Filters []*DimensionValue `json:"filters,omitempty"`
1469
1470
1471
1472 Kind string `json:"kind,omitempty"`
1473
1474
1475 MetricNames []string `json:"metricNames,omitempty"`
1476
1477
1478
1479
1480
1481
1482
1483 ForceSendFields []string `json:"-"`
1484
1485
1486
1487
1488
1489
1490
1491 NullFields []string `json:"-"`
1492 }
1493
1494 func (s *Activities) MarshalJSON() ([]byte, error) {
1495 type NoMethod Activities
1496 raw := NoMethod(*s)
1497 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1498 }
1499
1500
1501 type Ad struct {
1502
1503
1504 AccountId int64 `json:"accountId,omitempty,string"`
1505
1506
1507 Active bool `json:"active,omitempty"`
1508
1509
1510
1511 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
1512
1513
1514
1515 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
1516
1517
1518
1519 Archived bool `json:"archived,omitempty"`
1520
1521
1522
1523 AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"`
1524
1525
1526
1527 CampaignId int64 `json:"campaignId,omitempty,string"`
1528
1529
1530
1531 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
1532
1533
1534
1535 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
1536
1537
1538
1539
1540 ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`
1541
1542
1543 Comments string `json:"comments,omitempty"`
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562 Compatibility string `json:"compatibility,omitempty"`
1563
1564
1565
1566 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
1567
1568
1569
1570
1571
1572 CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`
1573
1574
1575
1576
1577
1578 CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"`
1579
1580
1581
1582
1583 DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`
1584
1585
1586
1587 DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`
1588
1589
1590
1591
1592
1593
1594 DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"`
1595
1596
1597
1598
1599 DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"`
1600
1601 EndTime string `json:"endTime,omitempty"`
1602
1603
1604 EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`
1605
1606
1607
1608
1609 GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`
1610
1611
1612 Id int64 `json:"id,omitempty,string"`
1613
1614
1615
1616 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
1617
1618
1619
1620
1621 KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`
1622
1623
1624
1625 Kind string `json:"kind,omitempty"`
1626
1627
1628
1629
1630 LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`
1631
1632
1633
1634 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
1635
1636
1637
1638 Name string `json:"name,omitempty"`
1639
1640
1641 PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"`
1642
1643
1644
1645
1646 RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"`
1647
1648
1649 Size *Size `json:"size,omitempty"`
1650
1651
1652
1653 SslCompliant bool `json:"sslCompliant,omitempty"`
1654
1655
1656
1657 SslRequired bool `json:"sslRequired,omitempty"`
1658
1659 StartTime string `json:"startTime,omitempty"`
1660
1661
1662
1663 SubaccountId int64 `json:"subaccountId,omitempty,string"`
1664
1665
1666
1667
1668
1669
1670
1671 TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"`
1672
1673
1674
1675
1676 TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688 Type string `json:"type,omitempty"`
1689
1690
1691
1692 googleapi.ServerResponse `json:"-"`
1693
1694
1695
1696
1697
1698
1699
1700 ForceSendFields []string `json:"-"`
1701
1702
1703
1704
1705
1706
1707
1708 NullFields []string `json:"-"`
1709 }
1710
1711 func (s *Ad) MarshalJSON() ([]byte, error) {
1712 type NoMethod Ad
1713 raw := NoMethod(*s)
1714 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1715 }
1716
1717
1718 type AdBlockingConfiguration struct {
1719
1720
1721 ClickThroughUrl string `json:"clickThroughUrl,omitempty"`
1722
1723
1724
1725
1726 CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"`
1727
1728
1729
1730
1731
1732
1733 Enabled bool `json:"enabled,omitempty"`
1734
1735
1736
1737
1738
1739 OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"`
1740
1741
1742
1743
1744
1745
1746
1747 ForceSendFields []string `json:"-"`
1748
1749
1750
1751
1752
1753
1754
1755
1756 NullFields []string `json:"-"`
1757 }
1758
1759 func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) {
1760 type NoMethod AdBlockingConfiguration
1761 raw := NoMethod(*s)
1762 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1763 }
1764
1765
1766 type AdSlot struct {
1767
1768 Comment string `json:"comment,omitempty"`
1769
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 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
1906
1907
1908
1909
1910 FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
1911
1912
1913 Id int64 `json:"id,omitempty,string"`
1914
1915
1916
1917 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
1918
1919
1920
1921 Kind string `json:"kind,omitempty"`
1922
1923
1924
1925
1926 Name string `json:"name,omitempty"`
1927
1928
1929
1930
1931
1932
1933
1934 OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"`
1935
1936
1937
1938
1939
1940
1941 Status string `json:"status,omitempty"`
1942
1943
1944
1945 SubaccountId int64 `json:"subaccountId,omitempty,string"`
1946
1947
1948 Suspended bool `json:"suspended,omitempty"`
1949
1950
1951
1952 googleapi.ServerResponse `json:"-"`
1953
1954
1955
1956
1957
1958
1959
1960 ForceSendFields []string `json:"-"`
1961
1962
1963
1964
1965
1966
1967
1968 NullFields []string `json:"-"`
1969 }
1970
1971 func (s *Advertiser) MarshalJSON() ([]byte, error) {
1972 type NoMethod Advertiser
1973 raw := NoMethod(*s)
1974 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1975 }
1976
1977
1978
1979 type AdvertiserGroup struct {
1980
1981
1982 AccountId int64 `json:"accountId,omitempty,string"`
1983
1984
1985
1986 Id int64 `json:"id,omitempty,string"`
1987
1988
1989
1990 Kind string `json:"kind,omitempty"`
1991
1992
1993
1994
1995 Name string `json:"name,omitempty"`
1996
1997
1998
1999 googleapi.ServerResponse `json:"-"`
2000
2001
2002
2003
2004
2005
2006
2007 ForceSendFields []string `json:"-"`
2008
2009
2010
2011
2012
2013
2014
2015 NullFields []string `json:"-"`
2016 }
2017
2018 func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) {
2019 type NoMethod AdvertiserGroup
2020 raw := NoMethod(*s)
2021 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2022 }
2023
2024
2025 type AdvertiserGroupsListResponse struct {
2026
2027 AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"`
2028
2029
2030
2031 Kind string `json:"kind,omitempty"`
2032
2033
2034
2035 NextPageToken string `json:"nextPageToken,omitempty"`
2036
2037
2038
2039 googleapi.ServerResponse `json:"-"`
2040
2041
2042
2043
2044
2045
2046
2047 ForceSendFields []string `json:"-"`
2048
2049
2050
2051
2052
2053
2054
2055
2056 NullFields []string `json:"-"`
2057 }
2058
2059 func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) {
2060 type NoMethod AdvertiserGroupsListResponse
2061 raw := NoMethod(*s)
2062 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2063 }
2064
2065
2066 type AdvertiserLandingPagesListResponse struct {
2067
2068
2069 Kind string `json:"kind,omitempty"`
2070
2071
2072 LandingPages []*LandingPage `json:"landingPages,omitempty"`
2073
2074
2075
2076 NextPageToken string `json:"nextPageToken,omitempty"`
2077
2078
2079
2080 googleapi.ServerResponse `json:"-"`
2081
2082
2083
2084
2085
2086
2087
2088 ForceSendFields []string `json:"-"`
2089
2090
2091
2092
2093
2094
2095
2096 NullFields []string `json:"-"`
2097 }
2098
2099 func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) {
2100 type NoMethod AdvertiserLandingPagesListResponse
2101 raw := NoMethod(*s)
2102 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2103 }
2104
2105
2106 type AdvertisersListResponse struct {
2107
2108 Advertisers []*Advertiser `json:"advertisers,omitempty"`
2109
2110
2111
2112 Kind string `json:"kind,omitempty"`
2113
2114
2115
2116 NextPageToken string `json:"nextPageToken,omitempty"`
2117
2118
2119
2120 googleapi.ServerResponse `json:"-"`
2121
2122
2123
2124
2125
2126
2127
2128 ForceSendFields []string `json:"-"`
2129
2130
2131
2132
2133
2134
2135
2136 NullFields []string `json:"-"`
2137 }
2138
2139 func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) {
2140 type NoMethod AdvertisersListResponse
2141 raw := NoMethod(*s)
2142 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2143 }
2144
2145
2146 type AudienceSegment struct {
2147
2148
2149
2150
2151 Allocation int64 `json:"allocation,omitempty"`
2152
2153
2154
2155 Id int64 `json:"id,omitempty,string"`
2156
2157
2158
2159 Name string `json:"name,omitempty"`
2160
2161
2162
2163
2164
2165
2166
2167 ForceSendFields []string `json:"-"`
2168
2169
2170
2171
2172
2173
2174
2175 NullFields []string `json:"-"`
2176 }
2177
2178 func (s *AudienceSegment) MarshalJSON() ([]byte, error) {
2179 type NoMethod AudienceSegment
2180 raw := NoMethod(*s)
2181 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2182 }
2183
2184
2185 type AudienceSegmentGroup struct {
2186
2187
2188 AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"`
2189
2190
2191
2192 Id int64 `json:"id,omitempty,string"`
2193
2194
2195
2196 Name string `json:"name,omitempty"`
2197
2198
2199
2200
2201
2202
2203
2204 ForceSendFields []string `json:"-"`
2205
2206
2207
2208
2209
2210
2211
2212
2213 NullFields []string `json:"-"`
2214 }
2215
2216 func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) {
2217 type NoMethod AudienceSegmentGroup
2218 raw := NoMethod(*s)
2219 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2220 }
2221
2222
2223
2224 type Browser struct {
2225
2226
2227 BrowserVersionId int64 `json:"browserVersionId,omitempty,string"`
2228
2229
2230
2231 DartId int64 `json:"dartId,omitempty,string"`
2232
2233
2234
2235 Kind string `json:"kind,omitempty"`
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246 MajorVersion string `json:"majorVersion,omitempty"`
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257 MinorVersion string `json:"minorVersion,omitempty"`
2258
2259
2260 Name string `json:"name,omitempty"`
2261
2262
2263
2264
2265
2266
2267
2268 ForceSendFields []string `json:"-"`
2269
2270
2271
2272
2273
2274
2275
2276
2277 NullFields []string `json:"-"`
2278 }
2279
2280 func (s *Browser) MarshalJSON() ([]byte, error) {
2281 type NoMethod Browser
2282 raw := NoMethod(*s)
2283 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2284 }
2285
2286
2287 type BrowsersListResponse struct {
2288
2289 Browsers []*Browser `json:"browsers,omitempty"`
2290
2291
2292
2293 Kind string `json:"kind,omitempty"`
2294
2295
2296
2297 googleapi.ServerResponse `json:"-"`
2298
2299
2300
2301
2302
2303
2304
2305 ForceSendFields []string `json:"-"`
2306
2307
2308
2309
2310
2311
2312
2313 NullFields []string `json:"-"`
2314 }
2315
2316 func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) {
2317 type NoMethod BrowsersListResponse
2318 raw := NoMethod(*s)
2319 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2320 }
2321
2322
2323 type Campaign struct {
2324
2325
2326 AccountId int64 `json:"accountId,omitempty,string"`
2327
2328
2329 AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"`
2330
2331
2332
2333 AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"`
2334
2335
2336 AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`
2337
2338
2339
2340 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
2341
2342
2343
2344 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
2345
2346
2347 Archived bool `json:"archived,omitempty"`
2348
2349
2350
2351 AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"`
2352
2353
2354
2355 BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"`
2356
2357
2358
2359 ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`
2360
2361
2362
2363 Comment string `json:"comment,omitempty"`
2364
2365
2366
2367 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
2368
2369
2370
2371 CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"`
2372
2373
2374
2375 CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"`
2376
2377
2378
2379 DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`
2380
2381
2382 DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"`
2383
2384 EndDate string `json:"endDate,omitempty"`
2385
2386
2387
2388 EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`
2389
2390
2391 ExternalId string `json:"externalId,omitempty"`
2392
2393
2394 Id int64 `json:"id,omitempty,string"`
2395
2396
2397
2398 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
2399
2400
2401
2402 Kind string `json:"kind,omitempty"`
2403
2404
2405
2406 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
2407
2408
2409
2410
2411 Name string `json:"name,omitempty"`
2412
2413
2414
2415 NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`
2416
2417 StartDate string `json:"startDate,omitempty"`
2418
2419
2420
2421 SubaccountId int64 `json:"subaccountId,omitempty,string"`
2422
2423
2424 TraffickerEmails []string `json:"traffickerEmails,omitempty"`
2425
2426
2427
2428 googleapi.ServerResponse `json:"-"`
2429
2430
2431
2432
2433
2434
2435
2436 ForceSendFields []string `json:"-"`
2437
2438
2439
2440
2441
2442
2443
2444 NullFields []string `json:"-"`
2445 }
2446
2447 func (s *Campaign) MarshalJSON() ([]byte, error) {
2448 type NoMethod Campaign
2449 raw := NoMethod(*s)
2450 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2451 }
2452
2453
2454
2455 type CampaignCreativeAssociation struct {
2456
2457
2458 CreativeId int64 `json:"creativeId,omitempty,string"`
2459
2460
2461
2462 Kind string `json:"kind,omitempty"`
2463
2464
2465
2466 googleapi.ServerResponse `json:"-"`
2467
2468
2469
2470
2471
2472
2473
2474 ForceSendFields []string `json:"-"`
2475
2476
2477
2478
2479
2480
2481
2482 NullFields []string `json:"-"`
2483 }
2484
2485 func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) {
2486 type NoMethod CampaignCreativeAssociation
2487 raw := NoMethod(*s)
2488 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2489 }
2490
2491
2492
2493 type CampaignCreativeAssociationsListResponse struct {
2494
2495
2496 CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"`
2497
2498
2499
2500 Kind string `json:"kind,omitempty"`
2501
2502
2503
2504 NextPageToken string `json:"nextPageToken,omitempty"`
2505
2506
2507
2508 googleapi.ServerResponse `json:"-"`
2509
2510
2511
2512
2513
2514
2515
2516
2517 ForceSendFields []string `json:"-"`
2518
2519
2520
2521
2522
2523
2524
2525
2526 NullFields []string `json:"-"`
2527 }
2528
2529 func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) {
2530 type NoMethod CampaignCreativeAssociationsListResponse
2531 raw := NoMethod(*s)
2532 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2533 }
2534
2535
2536 type CampaignManagerIds struct {
2537
2538 AdId int64 `json:"adId,omitempty,string"`
2539
2540
2541 CampaignId int64 `json:"campaignId,omitempty,string"`
2542
2543
2544 CreativeId int64 `json:"creativeId,omitempty,string"`
2545
2546
2547
2548 Kind string `json:"kind,omitempty"`
2549
2550
2551 PlacementId int64 `json:"placementId,omitempty,string"`
2552
2553
2554 SiteId int64 `json:"siteId,omitempty,string"`
2555
2556
2557
2558
2559
2560
2561
2562 ForceSendFields []string `json:"-"`
2563
2564
2565
2566
2567
2568
2569
2570 NullFields []string `json:"-"`
2571 }
2572
2573 func (s *CampaignManagerIds) MarshalJSON() ([]byte, error) {
2574 type NoMethod CampaignManagerIds
2575 raw := NoMethod(*s)
2576 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2577 }
2578
2579
2580 type CampaignsListResponse struct {
2581
2582 Campaigns []*Campaign `json:"campaigns,omitempty"`
2583
2584
2585
2586 Kind string `json:"kind,omitempty"`
2587
2588
2589
2590 NextPageToken string `json:"nextPageToken,omitempty"`
2591
2592
2593
2594 googleapi.ServerResponse `json:"-"`
2595
2596
2597
2598
2599
2600
2601
2602 ForceSendFields []string `json:"-"`
2603
2604
2605
2606
2607
2608
2609
2610 NullFields []string `json:"-"`
2611 }
2612
2613 func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) {
2614 type NoMethod CampaignsListResponse
2615 raw := NoMethod(*s)
2616 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2617 }
2618
2619
2620 type ChangeLog struct {
2621
2622 AccountId int64 `json:"accountId,omitempty,string"`
2623
2624
2625 Action string `json:"action,omitempty"`
2626
2627 ChangeTime string `json:"changeTime,omitempty"`
2628
2629
2630 FieldName string `json:"fieldName,omitempty"`
2631
2632
2633 Id int64 `json:"id,omitempty,string"`
2634
2635
2636
2637 Kind string `json:"kind,omitempty"`
2638
2639
2640 NewValue string `json:"newValue,omitempty"`
2641
2642
2643
2644 ObjectId int64 `json:"objectId,omitempty,string"`
2645
2646
2647 ObjectType string `json:"objectType,omitempty"`
2648
2649
2650 OldValue string `json:"oldValue,omitempty"`
2651
2652
2653 SubaccountId int64 `json:"subaccountId,omitempty,string"`
2654
2655
2656
2657
2658 TransactionId int64 `json:"transactionId,omitempty,string"`
2659
2660
2661 UserProfileId int64 `json:"userProfileId,omitempty,string"`
2662
2663
2664
2665 UserProfileName string `json:"userProfileName,omitempty"`
2666
2667
2668
2669 googleapi.ServerResponse `json:"-"`
2670
2671
2672
2673
2674
2675
2676
2677 ForceSendFields []string `json:"-"`
2678
2679
2680
2681
2682
2683
2684
2685 NullFields []string `json:"-"`
2686 }
2687
2688 func (s *ChangeLog) MarshalJSON() ([]byte, error) {
2689 type NoMethod ChangeLog
2690 raw := NoMethod(*s)
2691 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2692 }
2693
2694
2695 type ChangeLogsListResponse struct {
2696
2697 ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"`
2698
2699
2700
2701 Kind string `json:"kind,omitempty"`
2702
2703
2704
2705 NextPageToken string `json:"nextPageToken,omitempty"`
2706
2707
2708
2709 googleapi.ServerResponse `json:"-"`
2710
2711
2712
2713
2714
2715
2716
2717 ForceSendFields []string `json:"-"`
2718
2719
2720
2721
2722
2723
2724
2725 NullFields []string `json:"-"`
2726 }
2727
2728 func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) {
2729 type NoMethod ChangeLogsListResponse
2730 raw := NoMethod(*s)
2731 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2732 }
2733
2734
2735 type ChannelGrouping struct {
2736
2737 FallbackName string `json:"fallbackName,omitempty"`
2738
2739
2740
2741 Kind string `json:"kind,omitempty"`
2742
2743
2744 Name string `json:"name,omitempty"`
2745
2746
2747 Rules []*ChannelGroupingRule `json:"rules,omitempty"`
2748
2749
2750
2751
2752
2753
2754
2755 ForceSendFields []string `json:"-"`
2756
2757
2758
2759
2760
2761
2762
2763 NullFields []string `json:"-"`
2764 }
2765
2766 func (s *ChannelGrouping) MarshalJSON() ([]byte, error) {
2767 type NoMethod ChannelGrouping
2768 raw := NoMethod(*s)
2769 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2770 }
2771
2772
2773 type ChannelGroupingRule struct {
2774
2775
2776 DisjunctiveMatchStatements []*DisjunctiveMatchStatement `json:"disjunctiveMatchStatements,omitempty"`
2777
2778
2779
2780 Kind string `json:"kind,omitempty"`
2781
2782
2783 Name string `json:"name,omitempty"`
2784
2785
2786
2787
2788
2789
2790
2791
2792 ForceSendFields []string `json:"-"`
2793
2794
2795
2796
2797
2798
2799
2800
2801 NullFields []string `json:"-"`
2802 }
2803
2804 func (s *ChannelGroupingRule) MarshalJSON() ([]byte, error) {
2805 type NoMethod ChannelGroupingRule
2806 raw := NoMethod(*s)
2807 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2808 }
2809
2810
2811 type CitiesListResponse struct {
2812
2813 Cities []*City `json:"cities,omitempty"`
2814
2815
2816
2817 Kind string `json:"kind,omitempty"`
2818
2819
2820
2821 googleapi.ServerResponse `json:"-"`
2822
2823
2824
2825
2826
2827
2828
2829 ForceSendFields []string `json:"-"`
2830
2831
2832
2833
2834
2835
2836
2837 NullFields []string `json:"-"`
2838 }
2839
2840 func (s *CitiesListResponse) MarshalJSON() ([]byte, error) {
2841 type NoMethod CitiesListResponse
2842 raw := NoMethod(*s)
2843 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2844 }
2845
2846
2847 type City struct {
2848
2849 CountryCode string `json:"countryCode,omitempty"`
2850
2851
2852 CountryDartId int64 `json:"countryDartId,omitempty,string"`
2853
2854
2855
2856 DartId int64 `json:"dartId,omitempty,string"`
2857
2858
2859
2860 Kind string `json:"kind,omitempty"`
2861
2862
2863
2864 MetroCode string `json:"metroCode,omitempty"`
2865
2866
2867 MetroDmaId int64 `json:"metroDmaId,omitempty,string"`
2868
2869
2870 Name string `json:"name,omitempty"`
2871
2872
2873 RegionCode string `json:"regionCode,omitempty"`
2874
2875
2876 RegionDartId int64 `json:"regionDartId,omitempty,string"`
2877
2878
2879
2880
2881
2882
2883
2884 ForceSendFields []string `json:"-"`
2885
2886
2887
2888
2889
2890
2891
2892 NullFields []string `json:"-"`
2893 }
2894
2895 func (s *City) MarshalJSON() ([]byte, error) {
2896 type NoMethod City
2897 raw := NoMethod(*s)
2898 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2899 }
2900
2901
2902 type ClickTag struct {
2903
2904
2905 ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"`
2906
2907
2908
2909
2910 EventName string `json:"eventName,omitempty"`
2911
2912
2913
2914
2915 Name string `json:"name,omitempty"`
2916
2917
2918
2919
2920
2921
2922
2923 ForceSendFields []string `json:"-"`
2924
2925
2926
2927
2928
2929
2930
2931
2932 NullFields []string `json:"-"`
2933 }
2934
2935 func (s *ClickTag) MarshalJSON() ([]byte, error) {
2936 type NoMethod ClickTag
2937 raw := NoMethod(*s)
2938 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2939 }
2940
2941
2942 type ClickThroughUrl struct {
2943
2944
2945
2946
2947
2948
2949
2950
2951 ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"`
2952
2953
2954
2955
2956 CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"`
2957
2958
2959
2960 DefaultLandingPage bool `json:"defaultLandingPage,omitempty"`
2961
2962
2963
2964 LandingPageId int64 `json:"landingPageId,omitempty,string"`
2965
2966
2967
2968
2969
2970
2971
2972
2973 ForceSendFields []string `json:"-"`
2974
2975
2976
2977
2978
2979
2980
2981
2982 NullFields []string `json:"-"`
2983 }
2984
2985 func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) {
2986 type NoMethod ClickThroughUrl
2987 raw := NoMethod(*s)
2988 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2989 }
2990
2991
2992 type ClickThroughUrlSuffixProperties struct {
2993
2994
2995 ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`
2996
2997
2998
2999 OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"`
3000
3001
3002
3003
3004
3005
3006
3007
3008 ForceSendFields []string `json:"-"`
3009
3010
3011
3012
3013
3014
3015
3016
3017 NullFields []string `json:"-"`
3018 }
3019
3020 func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) {
3021 type NoMethod ClickThroughUrlSuffixProperties
3022 raw := NoMethod(*s)
3023 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3024 }
3025
3026
3027 type CompanionClickThroughOverride struct {
3028
3029
3030 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
3031
3032
3033
3034 CreativeId int64 `json:"creativeId,omitempty,string"`
3035
3036
3037
3038
3039
3040
3041
3042 ForceSendFields []string `json:"-"`
3043
3044
3045
3046
3047
3048
3049
3050
3051 NullFields []string `json:"-"`
3052 }
3053
3054 func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) {
3055 type NoMethod CompanionClickThroughOverride
3056 raw := NoMethod(*s)
3057 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3058 }
3059
3060
3061 type CompanionSetting struct {
3062
3063
3064 CompanionsDisabled bool `json:"companionsDisabled,omitempty"`
3065
3066
3067
3068
3069 EnabledSizes []*Size `json:"enabledSizes,omitempty"`
3070
3071
3072 ImageOnly bool `json:"imageOnly,omitempty"`
3073
3074
3075
3076 Kind string `json:"kind,omitempty"`
3077
3078
3079
3080
3081
3082
3083
3084 ForceSendFields []string `json:"-"`
3085
3086
3087
3088
3089
3090
3091
3092
3093 NullFields []string `json:"-"`
3094 }
3095
3096 func (s *CompanionSetting) MarshalJSON() ([]byte, error) {
3097 type NoMethod CompanionSetting
3098 raw := NoMethod(*s)
3099 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3100 }
3101
3102
3103
3104 type CompatibleFields struct {
3105
3106
3107
3108 CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"`
3109
3110
3111
3112 FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"`
3113
3114
3115
3116 Kind string `json:"kind,omitempty"`
3117
3118
3119
3120 PathAttributionReportCompatibleFields *PathReportCompatibleFields `json:"pathAttributionReportCompatibleFields,omitempty"`
3121
3122
3123
3124 PathReportCompatibleFields *PathReportCompatibleFields `json:"pathReportCompatibleFields,omitempty"`
3125
3126
3127
3128 PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"`
3129
3130
3131
3132 ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"`
3133
3134
3135
3136 ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"`
3137
3138
3139
3140 googleapi.ServerResponse `json:"-"`
3141
3142
3143
3144
3145
3146
3147
3148
3149 ForceSendFields []string `json:"-"`
3150
3151
3152
3153
3154
3155
3156
3157
3158 NullFields []string `json:"-"`
3159 }
3160
3161 func (s *CompatibleFields) MarshalJSON() ([]byte, error) {
3162 type NoMethod CompatibleFields
3163 raw := NoMethod(*s)
3164 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3165 }
3166
3167
3168
3169
3170 type ConnectionType struct {
3171
3172 Id int64 `json:"id,omitempty,string"`
3173
3174
3175
3176 Kind string `json:"kind,omitempty"`
3177
3178
3179 Name string `json:"name,omitempty"`
3180
3181
3182
3183 googleapi.ServerResponse `json:"-"`
3184
3185
3186
3187
3188
3189
3190
3191 ForceSendFields []string `json:"-"`
3192
3193
3194
3195
3196
3197
3198
3199 NullFields []string `json:"-"`
3200 }
3201
3202 func (s *ConnectionType) MarshalJSON() ([]byte, error) {
3203 type NoMethod ConnectionType
3204 raw := NoMethod(*s)
3205 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3206 }
3207
3208
3209 type ConnectionTypesListResponse struct {
3210
3211
3212 ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`
3213
3214
3215
3216 Kind string `json:"kind,omitempty"`
3217
3218
3219
3220 googleapi.ServerResponse `json:"-"`
3221
3222
3223
3224
3225
3226
3227
3228 ForceSendFields []string `json:"-"`
3229
3230
3231
3232
3233
3234
3235
3236
3237 NullFields []string `json:"-"`
3238 }
3239
3240 func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) {
3241 type NoMethod ConnectionTypesListResponse
3242 raw := NoMethod(*s)
3243 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3244 }
3245
3246
3247 type ContentCategoriesListResponse struct {
3248
3249 ContentCategories []*ContentCategory `json:"contentCategories,omitempty"`
3250
3251
3252
3253 Kind string `json:"kind,omitempty"`
3254
3255
3256
3257 NextPageToken string `json:"nextPageToken,omitempty"`
3258
3259
3260
3261 googleapi.ServerResponse `json:"-"`
3262
3263
3264
3265
3266
3267
3268
3269 ForceSendFields []string `json:"-"`
3270
3271
3272
3273
3274
3275
3276
3277
3278 NullFields []string `json:"-"`
3279 }
3280
3281 func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) {
3282 type NoMethod ContentCategoriesListResponse
3283 raw := NoMethod(*s)
3284 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3285 }
3286
3287
3288
3289 type ContentCategory struct {
3290
3291
3292 AccountId int64 `json:"accountId,omitempty,string"`
3293
3294
3295
3296 Id int64 `json:"id,omitempty,string"`
3297
3298
3299
3300 Kind string `json:"kind,omitempty"`
3301
3302
3303
3304
3305 Name string `json:"name,omitempty"`
3306
3307
3308
3309 googleapi.ServerResponse `json:"-"`
3310
3311
3312
3313
3314
3315
3316
3317 ForceSendFields []string `json:"-"`
3318
3319
3320
3321
3322
3323
3324
3325 NullFields []string `json:"-"`
3326 }
3327
3328 func (s *ContentCategory) MarshalJSON() ([]byte, error) {
3329 type NoMethod ContentCategory
3330 raw := NoMethod(*s)
3331 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3332 }
3333
3334
3335
3336 type Conversion struct {
3337
3338
3339 ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"`
3340
3341
3342
3343 CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"`
3344
3345
3346
3347
3348
3349 Dclid string `json:"dclid,omitempty"`
3350
3351
3352
3353
3354
3355
3356 EncryptedUserId string `json:"encryptedUserId,omitempty"`
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367 EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"`
3368
3369
3370
3371 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
3372
3373
3374
3375 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
3376
3377
3378
3379
3380
3381 Gclid string `json:"gclid,omitempty"`
3382
3383
3384
3385 Kind string `json:"kind,omitempty"`
3386
3387
3388
3389
3390 LimitAdTracking bool `json:"limitAdTracking,omitempty"`
3391
3392
3393
3394
3395
3396
3397
3398 MatchId string `json:"matchId,omitempty"`
3399
3400
3401
3402
3403
3404
3405 MobileDeviceId string `json:"mobileDeviceId,omitempty"`
3406
3407
3408
3409 NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"`
3410
3411
3412
3413
3414 Ordinal string `json:"ordinal,omitempty"`
3415
3416
3417 Quantity int64 `json:"quantity,omitempty,string"`
3418
3419
3420
3421 TimestampMicros int64 `json:"timestampMicros,omitempty,string"`
3422
3423
3424
3425
3426 TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"`
3427
3428
3429 Value float64 `json:"value,omitempty"`
3430
3431
3432
3433
3434
3435
3436
3437
3438 ForceSendFields []string `json:"-"`
3439
3440
3441
3442
3443
3444
3445
3446
3447 NullFields []string `json:"-"`
3448 }
3449
3450 func (s *Conversion) MarshalJSON() ([]byte, error) {
3451 type NoMethod Conversion
3452 raw := NoMethod(*s)
3453 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3454 }
3455
3456 func (s *Conversion) UnmarshalJSON(data []byte) error {
3457 type NoMethod Conversion
3458 var s1 struct {
3459 Value gensupport.JSONFloat64 `json:"value"`
3460 *NoMethod
3461 }
3462 s1.NoMethod = (*NoMethod)(s)
3463 if err := json.Unmarshal(data, &s1); err != nil {
3464 return err
3465 }
3466 s.Value = float64(s1.Value)
3467 return nil
3468 }
3469
3470
3471
3472 type ConversionError struct {
3473
3474
3475
3476
3477
3478
3479
3480 Code string `json:"code,omitempty"`
3481
3482
3483
3484 Kind string `json:"kind,omitempty"`
3485
3486
3487 Message string `json:"message,omitempty"`
3488
3489
3490
3491
3492
3493
3494
3495 ForceSendFields []string `json:"-"`
3496
3497
3498
3499
3500
3501
3502
3503 NullFields []string `json:"-"`
3504 }
3505
3506 func (s *ConversionError) MarshalJSON() ([]byte, error) {
3507 type NoMethod ConversionError
3508 raw := NoMethod(*s)
3509 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3510 }
3511
3512
3513
3514 type ConversionStatus struct {
3515
3516 Conversion *Conversion `json:"conversion,omitempty"`
3517
3518
3519 Errors []*ConversionError `json:"errors,omitempty"`
3520
3521
3522
3523 Kind string `json:"kind,omitempty"`
3524
3525
3526
3527
3528
3529
3530
3531 ForceSendFields []string `json:"-"`
3532
3533
3534
3535
3536
3537
3538
3539 NullFields []string `json:"-"`
3540 }
3541
3542 func (s *ConversionStatus) MarshalJSON() ([]byte, error) {
3543 type NoMethod ConversionStatus
3544 raw := NoMethod(*s)
3545 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3546 }
3547
3548
3549 type ConversionsBatchInsertRequest struct {
3550
3551 Conversions []*Conversion `json:"conversions,omitempty"`
3552
3553
3554
3555
3556 EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`
3557
3558
3559
3560 Kind string `json:"kind,omitempty"`
3561
3562
3563
3564
3565
3566
3567
3568 ForceSendFields []string `json:"-"`
3569
3570
3571
3572
3573
3574
3575
3576 NullFields []string `json:"-"`
3577 }
3578
3579 func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) {
3580 type NoMethod ConversionsBatchInsertRequest
3581 raw := NoMethod(*s)
3582 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3583 }
3584
3585
3586 type ConversionsBatchInsertResponse struct {
3587
3588 HasFailures bool `json:"hasFailures,omitempty"`
3589
3590
3591
3592 Kind string `json:"kind,omitempty"`
3593
3594
3595
3596 Status []*ConversionStatus `json:"status,omitempty"`
3597
3598
3599
3600 googleapi.ServerResponse `json:"-"`
3601
3602
3603
3604
3605
3606
3607
3608 ForceSendFields []string `json:"-"`
3609
3610
3611
3612
3613
3614
3615
3616 NullFields []string `json:"-"`
3617 }
3618
3619 func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) {
3620 type NoMethod ConversionsBatchInsertResponse
3621 raw := NoMethod(*s)
3622 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3623 }
3624
3625
3626 type ConversionsBatchUpdateRequest struct {
3627
3628 Conversions []*Conversion `json:"conversions,omitempty"`
3629
3630
3631
3632 EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`
3633
3634
3635
3636 Kind string `json:"kind,omitempty"`
3637
3638
3639
3640
3641
3642
3643
3644 ForceSendFields []string `json:"-"`
3645
3646
3647
3648
3649
3650
3651
3652 NullFields []string `json:"-"`
3653 }
3654
3655 func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) {
3656 type NoMethod ConversionsBatchUpdateRequest
3657 raw := NoMethod(*s)
3658 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3659 }
3660
3661
3662 type ConversionsBatchUpdateResponse struct {
3663
3664 HasFailures bool `json:"hasFailures,omitempty"`
3665
3666
3667
3668 Kind string `json:"kind,omitempty"`
3669
3670
3671
3672 Status []*ConversionStatus `json:"status,omitempty"`
3673
3674
3675
3676 googleapi.ServerResponse `json:"-"`
3677
3678
3679
3680
3681
3682
3683
3684 ForceSendFields []string `json:"-"`
3685
3686
3687
3688
3689
3690
3691
3692 NullFields []string `json:"-"`
3693 }
3694
3695 func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) {
3696 type NoMethod ConversionsBatchUpdateResponse
3697 raw := NoMethod(*s)
3698 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3699 }
3700
3701
3702 type CountriesListResponse struct {
3703
3704 Countries []*Country `json:"countries,omitempty"`
3705
3706
3707
3708 Kind string `json:"kind,omitempty"`
3709
3710
3711
3712 googleapi.ServerResponse `json:"-"`
3713
3714
3715
3716
3717
3718
3719
3720 ForceSendFields []string `json:"-"`
3721
3722
3723
3724
3725
3726
3727
3728 NullFields []string `json:"-"`
3729 }
3730
3731 func (s *CountriesListResponse) MarshalJSON() ([]byte, error) {
3732 type NoMethod CountriesListResponse
3733 raw := NoMethod(*s)
3734 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3735 }
3736
3737
3738
3739 type Country struct {
3740
3741 CountryCode string `json:"countryCode,omitempty"`
3742
3743
3744
3745 DartId int64 `json:"dartId,omitempty,string"`
3746
3747
3748
3749 Kind string `json:"kind,omitempty"`
3750
3751
3752 Name string `json:"name,omitempty"`
3753
3754
3755
3756 SslEnabled bool `json:"sslEnabled,omitempty"`
3757
3758
3759
3760 googleapi.ServerResponse `json:"-"`
3761
3762
3763
3764
3765
3766
3767
3768 ForceSendFields []string `json:"-"`
3769
3770
3771
3772
3773
3774
3775
3776 NullFields []string `json:"-"`
3777 }
3778
3779 func (s *Country) MarshalJSON() ([]byte, error) {
3780 type NoMethod Country
3781 raw := NoMethod(*s)
3782 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3783 }
3784
3785
3786 type Creative struct {
3787
3788
3789
3790 AccountId int64 `json:"accountId,omitempty,string"`
3791
3792
3793
3794 Active bool `json:"active,omitempty"`
3795
3796
3797
3798
3799 AdParameters string `json:"adParameters,omitempty"`
3800
3801
3802
3803
3804
3805
3806
3807 AdTagKeys []string `json:"adTagKeys,omitempty"`
3808
3809
3810
3811
3812
3813 AdditionalSizes []*Size `json:"additionalSizes,omitempty"`
3814
3815
3816
3817 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
3818
3819
3820
3821
3822
3823 AllowScriptAccess bool `json:"allowScriptAccess,omitempty"`
3824
3825
3826
3827 Archived bool `json:"archived,omitempty"`
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838 ArtworkType string `json:"artworkType,omitempty"`
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849 AuthoringSource string `json:"authoringSource,omitempty"`
3850
3851
3852
3853
3854
3855
3856
3857
3858 AuthoringTool string `json:"authoringTool,omitempty"`
3859
3860
3861
3862
3863 AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"`
3864
3865
3866
3867
3868
3869 BackgroundColor string `json:"backgroundColor,omitempty"`
3870
3871
3872
3873
3874 BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"`
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954 BackupImageFeatures []string `json:"backupImageFeatures,omitempty"`
3955
3956
3957
3958
3959 BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"`
3960
3961
3962
3963
3964 BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"`
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979 ClickTags []*ClickTag `json:"clickTags,omitempty"`
3980
3981
3982
3983 CommercialId string `json:"commercialId,omitempty"`
3984
3985
3986
3987
3988
3989
3990 CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"`
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013 Compatibility []string `json:"compatibility,omitempty"`
4014
4015
4016
4017
4018
4019
4020
4021 ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"`
4022
4023
4024
4025
4026
4027 CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"`
4028
4029
4030 CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"`
4031
4032
4033
4034
4035 CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"`
4036
4037
4038
4039 CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"`
4040
4041
4042
4043
4044
4045
4046
4047 CustomKeyValues []string `json:"customKeyValues,omitempty"`
4048
4049
4050
4051
4052
4053
4054
4055 DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"`
4056
4057
4058
4059
4060
4061
4062
4063
4064 ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"`
4065
4066
4067
4068
4069
4070
4071 FsCommand *FsCommand `json:"fsCommand,omitempty"`
4072
4073
4074
4075
4076
4077 HtmlCode string `json:"htmlCode,omitempty"`
4078
4079
4080
4081
4082
4083 HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"`
4084
4085
4086
4087 Id int64 `json:"id,omitempty,string"`
4088
4089
4090
4091 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
4092
4093
4094
4095 Kind string `json:"kind,omitempty"`
4096
4097
4098
4099 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
4100
4101
4102
4103
4104
4105 LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"`
4106
4107
4108
4109
4110 MediaDescription string `json:"mediaDescription,omitempty"`
4111
4112
4113
4114
4115 MediaDuration float64 `json:"mediaDuration,omitempty"`
4116
4117
4118
4119 Name string `json:"name,omitempty"`
4120
4121
4122
4123
4124 ObaIcon *ObaIcon `json:"obaIcon,omitempty"`
4125
4126
4127
4128 OverrideCss string `json:"overrideCss,omitempty"`
4129
4130
4131
4132 ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`
4133
4134
4135
4136
4137
4138
4139
4140
4141 RedirectUrl string `json:"redirectUrl,omitempty"`
4142
4143
4144
4145 RenderingId int64 `json:"renderingId,omitempty,string"`
4146
4147
4148
4149
4150 RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"`
4151
4152
4153
4154
4155
4156 RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"`
4157
4158
4159
4160
4161
4162 RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"`
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173 Size *Size `json:"size,omitempty"`
4174
4175
4176
4177
4178 SkipOffset *VideoOffset `json:"skipOffset,omitempty"`
4179
4180
4181
4182
4183 Skippable bool `json:"skippable,omitempty"`
4184
4185
4186
4187 SslCompliant bool `json:"sslCompliant,omitempty"`
4188
4189
4190
4191 SslOverride bool `json:"sslOverride,omitempty"`
4192
4193
4194
4195
4196 StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"`
4197
4198
4199
4200
4201 StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"`
4202
4203
4204
4205
4206
4207 StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"`
4208
4209
4210
4211
4212 SubaccountId int64 `json:"subaccountId,omitempty,string"`
4213
4214
4215
4216
4217 ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"`
4218
4219
4220
4221
4222 ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"`
4223
4224
4225
4226
4227 ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"`
4228
4229
4230
4231
4232
4233
4234 TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"`
4235
4236
4237
4238
4239 TotalFileSize int64 `json:"totalFileSize,omitempty,string"`
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272 Type string `json:"type,omitempty"`
4273
4274
4275
4276
4277 UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"`
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 Version int64 `json:"version,omitempty"`
4288
4289
4290
4291 googleapi.ServerResponse `json:"-"`
4292
4293
4294
4295
4296
4297
4298
4299 ForceSendFields []string `json:"-"`
4300
4301
4302
4303
4304
4305
4306
4307 NullFields []string `json:"-"`
4308 }
4309
4310 func (s *Creative) MarshalJSON() ([]byte, error) {
4311 type NoMethod Creative
4312 raw := NoMethod(*s)
4313 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4314 }
4315
4316 func (s *Creative) UnmarshalJSON(data []byte) error {
4317 type NoMethod Creative
4318 var s1 struct {
4319 MediaDuration gensupport.JSONFloat64 `json:"mediaDuration"`
4320 *NoMethod
4321 }
4322 s1.NoMethod = (*NoMethod)(s)
4323 if err := json.Unmarshal(data, &s1); err != nil {
4324 return err
4325 }
4326 s.MediaDuration = float64(s1.MediaDuration)
4327 return nil
4328 }
4329
4330
4331 type CreativeAsset struct {
4332
4333
4334
4335
4336 ActionScript3 bool `json:"actionScript3,omitempty"`
4337
4338
4339
4340
4341
4342 Active bool `json:"active,omitempty"`
4343
4344
4345
4346
4347 AdditionalSizes []*Size `json:"additionalSizes,omitempty"`
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358 Alignment string `json:"alignment,omitempty"`
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368 ArtworkType string `json:"artworkType,omitempty"`
4369
4370
4371
4372
4373
4374 AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`
4375
4376
4377
4378
4379 AudioBitRate int64 `json:"audioBitRate,omitempty"`
4380
4381
4382
4383
4384 AudioSampleRate int64 `json:"audioSampleRate,omitempty"`
4385
4386
4387
4388 BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"`
4389
4390
4391
4392
4393 BitRate int64 `json:"bitRate,omitempty"`
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403 ChildAssetType string `json:"childAssetType,omitempty"`
4404
4405
4406
4407
4408
4409 CollapsedSize *Size `json:"collapsedSize,omitempty"`
4410
4411
4412
4413
4414
4415 CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"`
4416
4417
4418
4419
4420 CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"`
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496 DetectedFeatures []string `json:"detectedFeatures,omitempty"`
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512 DisplayType string `json:"displayType,omitempty"`
4513
4514
4515
4516
4517
4518 Duration int64 `json:"duration,omitempty"`
4519
4520
4521
4522
4523
4524
4525
4526
4527 DurationType string `json:"durationType,omitempty"`
4528
4529
4530
4531
4532 ExpandedDimension *Size `json:"expandedDimension,omitempty"`
4533
4534
4535
4536
4537 FileSize int64 `json:"fileSize,omitempty,string"`
4538
4539
4540
4541
4542
4543 FlashVersion int64 `json:"flashVersion,omitempty"`
4544
4545
4546
4547
4548 FrameRate float64 `json:"frameRate,omitempty"`
4549
4550
4551
4552 HideFlashObjects bool `json:"hideFlashObjects,omitempty"`
4553
4554
4555
4556 HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"`
4557
4558
4559
4560
4561 HorizontallyLocked bool `json:"horizontallyLocked,omitempty"`
4562
4563
4564
4565
4566 Id int64 `json:"id,omitempty,string"`
4567
4568
4569
4570 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
4571
4572
4573
4574
4575 MediaDuration float64 `json:"mediaDuration,omitempty"`
4576
4577
4578
4579
4580 MimeType string `json:"mimeType,omitempty"`
4581
4582
4583
4584
4585
4586
4587 Offset *OffsetPosition `json:"offset,omitempty"`
4588
4589
4590
4591
4592
4593
4594
4595
4596 Orientation string `json:"orientation,omitempty"`
4597
4598
4599
4600
4601 OriginalBackup bool `json:"originalBackup,omitempty"`
4602
4603
4604 PoliteLoad bool `json:"politeLoad,omitempty"`
4605
4606
4607
4608 Position *OffsetPosition `json:"position,omitempty"`
4609
4610
4611
4612
4613
4614
4615
4616
4617 PositionLeftUnit string `json:"positionLeftUnit,omitempty"`
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627 PositionTopUnit string `json:"positionTopUnit,omitempty"`
4628
4629
4630
4631
4632 ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"`
4633
4634
4635
4636
4637
4638
4639 Pushdown bool `json:"pushdown,omitempty"`
4640
4641
4642
4643
4644
4645
4646
4647 PushdownDuration float64 `json:"pushdownDuration,omitempty"`
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
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 Role string `json:"role,omitempty"`
4689
4690
4691
4692
4693
4694
4695
4696
4697 Size *Size `json:"size,omitempty"`
4698
4699
4700
4701
4702 SslCompliant bool `json:"sslCompliant,omitempty"`
4703
4704
4705
4706
4707
4708
4709
4710 StartTimeType string `json:"startTimeType,omitempty"`
4711
4712
4713
4714
4715 StreamingServingUrl string `json:"streamingServingUrl,omitempty"`
4716
4717
4718
4719
4720 Transparency bool `json:"transparency,omitempty"`
4721
4722
4723
4724
4725 VerticallyLocked bool `json:"verticallyLocked,omitempty"`
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 WindowMode string `json:"windowMode,omitempty"`
4737
4738
4739
4740
4741
4742
4743 ZIndex int64 `json:"zIndex,omitempty"`
4744
4745
4746
4747 ZipFilename string `json:"zipFilename,omitempty"`
4748
4749
4750
4751 ZipFilesize string `json:"zipFilesize,omitempty"`
4752
4753
4754
4755
4756
4757
4758
4759 ForceSendFields []string `json:"-"`
4760
4761
4762
4763
4764
4765
4766
4767 NullFields []string `json:"-"`
4768 }
4769
4770 func (s *CreativeAsset) MarshalJSON() ([]byte, error) {
4771 type NoMethod CreativeAsset
4772 raw := NoMethod(*s)
4773 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4774 }
4775
4776 func (s *CreativeAsset) UnmarshalJSON(data []byte) error {
4777 type NoMethod CreativeAsset
4778 var s1 struct {
4779 FrameRate gensupport.JSONFloat64 `json:"frameRate"`
4780 MediaDuration gensupport.JSONFloat64 `json:"mediaDuration"`
4781 PushdownDuration gensupport.JSONFloat64 `json:"pushdownDuration"`
4782 *NoMethod
4783 }
4784 s1.NoMethod = (*NoMethod)(s)
4785 if err := json.Unmarshal(data, &s1); err != nil {
4786 return err
4787 }
4788 s.FrameRate = float64(s1.FrameRate)
4789 s.MediaDuration = float64(s1.MediaDuration)
4790 s.PushdownDuration = float64(s1.PushdownDuration)
4791 return nil
4792 }
4793
4794
4795 type CreativeAssetId struct {
4796
4797
4798
4799
4800 Name string `json:"name,omitempty"`
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 Type string `json:"type,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 *CreativeAssetId) MarshalJSON() ([]byte, error) {
4833 type NoMethod CreativeAssetId
4834 raw := NoMethod(*s)
4835 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4836 }
4837
4838
4839
4840
4841
4842 type CreativeAssetMetadata struct {
4843
4844 AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`
4845
4846
4847
4848
4849 ClickTags []*ClickTag `json:"clickTags,omitempty"`
4850
4851
4852
4853
4854 CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"`
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 DetectedFeatures []string `json:"detectedFeatures,omitempty"`
4930
4931
4932
4933
4934 ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"`
4935
4936
4937
4938 Id int64 `json:"id,omitempty,string"`
4939
4940
4941
4942 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
4943
4944
4945
4946 Kind string `json:"kind,omitempty"`
4947
4948
4949
4950 RichMedia bool `json:"richMedia,omitempty"`
4951
4952
4953
4954
4955 TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"`
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 WarnedValidationRules []string `json:"warnedValidationRules,omitempty"`
4998
4999
5000
5001 googleapi.ServerResponse `json:"-"`
5002
5003
5004
5005
5006
5007
5008
5009 ForceSendFields []string `json:"-"`
5010
5011
5012
5013
5014
5015
5016
5017
5018 NullFields []string `json:"-"`
5019 }
5020
5021 func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) {
5022 type NoMethod CreativeAssetMetadata
5023 raw := NoMethod(*s)
5024 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5025 }
5026
5027
5028
5029
5030 type CreativeAssetSelection struct {
5031
5032
5033
5034 DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"`
5035
5036
5037
5038
5039
5040 Rules []*Rule `json:"rules,omitempty"`
5041
5042
5043
5044
5045
5046
5047
5048 ForceSendFields []string `json:"-"`
5049
5050
5051
5052
5053
5054
5055
5056
5057 NullFields []string `json:"-"`
5058 }
5059
5060 func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) {
5061 type NoMethod CreativeAssetSelection
5062 raw := NoMethod(*s)
5063 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5064 }
5065
5066
5067 type CreativeAssignment struct {
5068
5069
5070 Active bool `json:"active,omitempty"`
5071
5072
5073
5074
5075
5076
5077 ApplyEventTags bool `json:"applyEventTags,omitempty"`
5078
5079
5080 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
5081
5082
5083
5084 CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"`
5085
5086
5087
5088
5089 CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`
5090
5091
5092
5093 CreativeId int64 `json:"creativeId,omitempty,string"`
5094
5095
5096
5097 CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"`
5098
5099 EndTime string `json:"endTime,omitempty"`
5100
5101
5102
5103
5104
5105
5106
5107
5108 RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"`
5109
5110
5111
5112
5113 Sequence int64 `json:"sequence,omitempty"`
5114
5115
5116
5117
5118 SslCompliant bool `json:"sslCompliant,omitempty"`
5119
5120 StartTime string `json:"startTime,omitempty"`
5121
5122
5123
5124
5125 Weight int64 `json:"weight,omitempty"`
5126
5127
5128
5129
5130
5131
5132
5133 ForceSendFields []string `json:"-"`
5134
5135
5136
5137
5138
5139
5140
5141 NullFields []string `json:"-"`
5142 }
5143
5144 func (s *CreativeAssignment) MarshalJSON() ([]byte, error) {
5145 type NoMethod CreativeAssignment
5146 raw := NoMethod(*s)
5147 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5148 }
5149
5150
5151 type CreativeClickThroughUrl struct {
5152
5153
5154
5155
5156
5157 ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"`
5158
5159
5160
5161 CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"`
5162
5163
5164 LandingPageId int64 `json:"landingPageId,omitempty,string"`
5165
5166
5167
5168
5169
5170
5171
5172
5173 ForceSendFields []string `json:"-"`
5174
5175
5176
5177
5178
5179
5180
5181
5182 NullFields []string `json:"-"`
5183 }
5184
5185 func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) {
5186 type NoMethod CreativeClickThroughUrl
5187 raw := NoMethod(*s)
5188 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5189 }
5190
5191
5192 type CreativeCustomEvent struct {
5193
5194
5195 AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"`
5196
5197
5198 AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"`
5199
5200
5201
5202
5203
5204
5205
5206
5207 AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"`
5208
5209
5210
5211
5212 ArtworkLabel string `json:"artworkLabel,omitempty"`
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 ArtworkType string `json:"artworkType,omitempty"`
5223
5224
5225
5226 ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"`
5227
5228
5229
5230 Id int64 `json:"id,omitempty,string"`
5231
5232
5233
5234 PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"`
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 TargetType string `json:"targetType,omitempty"`
5245
5246
5247
5248 VideoReportingId string `json:"videoReportingId,omitempty"`
5249
5250
5251
5252
5253
5254
5255
5256
5257 ForceSendFields []string `json:"-"`
5258
5259
5260
5261
5262
5263
5264
5265
5266 NullFields []string `json:"-"`
5267 }
5268
5269 func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) {
5270 type NoMethod CreativeCustomEvent
5271 raw := NoMethod(*s)
5272 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5273 }
5274
5275
5276 type CreativeField struct {
5277
5278
5279 AccountId int64 `json:"accountId,omitempty,string"`
5280
5281
5282
5283 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
5284
5285
5286
5287 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
5288
5289
5290
5291 Id int64 `json:"id,omitempty,string"`
5292
5293
5294
5295 Kind string `json:"kind,omitempty"`
5296
5297
5298
5299
5300 Name string `json:"name,omitempty"`
5301
5302
5303
5304 SubaccountId int64 `json:"subaccountId,omitempty,string"`
5305
5306
5307
5308 googleapi.ServerResponse `json:"-"`
5309
5310
5311
5312
5313
5314
5315
5316 ForceSendFields []string `json:"-"`
5317
5318
5319
5320
5321
5322
5323
5324 NullFields []string `json:"-"`
5325 }
5326
5327 func (s *CreativeField) MarshalJSON() ([]byte, error) {
5328 type NoMethod CreativeField
5329 raw := NoMethod(*s)
5330 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5331 }
5332
5333
5334 type CreativeFieldAssignment struct {
5335
5336 CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"`
5337
5338
5339 CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"`
5340
5341
5342
5343
5344
5345
5346
5347 ForceSendFields []string `json:"-"`
5348
5349
5350
5351
5352
5353
5354
5355
5356 NullFields []string `json:"-"`
5357 }
5358
5359 func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) {
5360 type NoMethod CreativeFieldAssignment
5361 raw := NoMethod(*s)
5362 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5363 }
5364
5365
5366 type CreativeFieldValue struct {
5367
5368
5369 Id int64 `json:"id,omitempty,string"`
5370
5371
5372
5373 Kind string `json:"kind,omitempty"`
5374
5375
5376
5377 Value string `json:"value,omitempty"`
5378
5379
5380
5381 googleapi.ServerResponse `json:"-"`
5382
5383
5384
5385
5386
5387
5388
5389 ForceSendFields []string `json:"-"`
5390
5391
5392
5393
5394
5395
5396
5397 NullFields []string `json:"-"`
5398 }
5399
5400 func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) {
5401 type NoMethod CreativeFieldValue
5402 raw := NoMethod(*s)
5403 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5404 }
5405
5406
5407 type CreativeFieldValuesListResponse struct {
5408
5409 CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"`
5410
5411
5412
5413 Kind string `json:"kind,omitempty"`
5414
5415
5416
5417 NextPageToken string `json:"nextPageToken,omitempty"`
5418
5419
5420
5421 googleapi.ServerResponse `json:"-"`
5422
5423
5424
5425
5426
5427
5428
5429 ForceSendFields []string `json:"-"`
5430
5431
5432
5433
5434
5435
5436
5437
5438 NullFields []string `json:"-"`
5439 }
5440
5441 func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) {
5442 type NoMethod CreativeFieldValuesListResponse
5443 raw := NoMethod(*s)
5444 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5445 }
5446
5447
5448 type CreativeFieldsListResponse struct {
5449
5450 CreativeFields []*CreativeField `json:"creativeFields,omitempty"`
5451
5452
5453
5454 Kind string `json:"kind,omitempty"`
5455
5456
5457
5458 NextPageToken string `json:"nextPageToken,omitempty"`
5459
5460
5461
5462 googleapi.ServerResponse `json:"-"`
5463
5464
5465
5466
5467
5468
5469
5470 ForceSendFields []string `json:"-"`
5471
5472
5473
5474
5475
5476
5477
5478
5479 NullFields []string `json:"-"`
5480 }
5481
5482 func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) {
5483 type NoMethod CreativeFieldsListResponse
5484 raw := NoMethod(*s)
5485 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5486 }
5487
5488
5489 type CreativeGroup struct {
5490
5491
5492 AccountId int64 `json:"accountId,omitempty,string"`
5493
5494
5495
5496 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
5497
5498
5499
5500 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
5501
5502
5503
5504
5505
5506 GroupNumber int64 `json:"groupNumber,omitempty"`
5507
5508
5509
5510 Id int64 `json:"id,omitempty,string"`
5511
5512
5513
5514 Kind string `json:"kind,omitempty"`
5515
5516
5517
5518
5519 Name string `json:"name,omitempty"`
5520
5521
5522
5523 SubaccountId int64 `json:"subaccountId,omitempty,string"`
5524
5525
5526
5527 googleapi.ServerResponse `json:"-"`
5528
5529
5530
5531
5532
5533
5534
5535 ForceSendFields []string `json:"-"`
5536
5537
5538
5539
5540
5541
5542
5543 NullFields []string `json:"-"`
5544 }
5545
5546 func (s *CreativeGroup) MarshalJSON() ([]byte, error) {
5547 type NoMethod CreativeGroup
5548 raw := NoMethod(*s)
5549 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5550 }
5551
5552
5553 type CreativeGroupAssignment struct {
5554
5555 CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"`
5556
5557
5558
5559
5560
5561
5562
5563 CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"`
5564
5565
5566
5567
5568
5569
5570
5571 ForceSendFields []string `json:"-"`
5572
5573
5574
5575
5576
5577
5578
5579
5580 NullFields []string `json:"-"`
5581 }
5582
5583 func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) {
5584 type NoMethod CreativeGroupAssignment
5585 raw := NoMethod(*s)
5586 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5587 }
5588
5589
5590 type CreativeGroupsListResponse struct {
5591
5592 CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"`
5593
5594
5595
5596 Kind string `json:"kind,omitempty"`
5597
5598
5599
5600 NextPageToken string `json:"nextPageToken,omitempty"`
5601
5602
5603
5604 googleapi.ServerResponse `json:"-"`
5605
5606
5607
5608
5609
5610
5611
5612 ForceSendFields []string `json:"-"`
5613
5614
5615
5616
5617
5618
5619
5620
5621 NullFields []string `json:"-"`
5622 }
5623
5624 func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) {
5625 type NoMethod CreativeGroupsListResponse
5626 raw := NoMethod(*s)
5627 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5628 }
5629
5630
5631 type CreativeOptimizationConfiguration struct {
5632
5633
5634
5635 Id int64 `json:"id,omitempty,string"`
5636
5637
5638
5639 Name string `json:"name,omitempty"`
5640
5641
5642
5643 OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"`
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 OptimizationModel string `json:"optimizationModel,omitempty"`
5654
5655
5656
5657
5658
5659
5660
5661 ForceSendFields []string `json:"-"`
5662
5663
5664
5665
5666
5667
5668
5669 NullFields []string `json:"-"`
5670 }
5671
5672 func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) {
5673 type NoMethod CreativeOptimizationConfiguration
5674 raw := NoMethod(*s)
5675 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5676 }
5677
5678
5679 type CreativeRotation struct {
5680
5681 CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"`
5682
5683
5684
5685
5686
5687
5688 CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"`
5689
5690
5691
5692
5693
5694
5695
5696 Type string `json:"type,omitempty"`
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"`
5707
5708
5709
5710
5711
5712
5713
5714 ForceSendFields []string `json:"-"`
5715
5716
5717
5718
5719
5720
5721
5722
5723 NullFields []string `json:"-"`
5724 }
5725
5726 func (s *CreativeRotation) MarshalJSON() ([]byte, error) {
5727 type NoMethod CreativeRotation
5728 raw := NoMethod(*s)
5729 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5730 }
5731
5732
5733 type CreativesListResponse struct {
5734
5735 Creatives []*Creative `json:"creatives,omitempty"`
5736
5737
5738
5739 Kind string `json:"kind,omitempty"`
5740
5741
5742
5743 NextPageToken string `json:"nextPageToken,omitempty"`
5744
5745
5746
5747 googleapi.ServerResponse `json:"-"`
5748
5749
5750
5751
5752
5753
5754
5755 ForceSendFields []string `json:"-"`
5756
5757
5758
5759
5760
5761
5762
5763 NullFields []string `json:"-"`
5764 }
5765
5766 func (s *CreativesListResponse) MarshalJSON() ([]byte, error) {
5767 type NoMethod CreativesListResponse
5768 raw := NoMethod(*s)
5769 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5770 }
5771
5772
5773
5774
5775 type CrossDimensionReachReportCompatibleFields struct {
5776
5777
5778 Breakdown []*Dimension `json:"breakdown,omitempty"`
5779
5780
5781
5782 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
5783
5784
5785
5786 Kind string `json:"kind,omitempty"`
5787
5788
5789
5790 Metrics []*Metric `json:"metrics,omitempty"`
5791
5792
5793
5794 OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"`
5795
5796
5797
5798
5799
5800
5801
5802 ForceSendFields []string `json:"-"`
5803
5804
5805
5806
5807
5808
5809
5810 NullFields []string `json:"-"`
5811 }
5812
5813 func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) {
5814 type NoMethod CrossDimensionReachReportCompatibleFields
5815 raw := NoMethod(*s)
5816 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5817 }
5818
5819
5820
5821
5822
5823 type CustomEvent struct {
5824
5825
5826
5827 AnnotateClickEvent *CustomEventClickAnnotation `json:"annotateClickEvent,omitempty"`
5828
5829
5830
5831
5832 AnnotateImpressionEvent *CustomEventImpressionAnnotation `json:"annotateImpressionEvent,omitempty"`
5833
5834
5835 CustomVariables []*CustomVariable `json:"customVariables,omitempty"`
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 EventType string `json:"eventType,omitempty"`
5846
5847
5848
5849 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
5850
5851
5852
5853
5854 InsertEvent *CustomEventInsert `json:"insertEvent,omitempty"`
5855
5856
5857
5858 Kind string `json:"kind,omitempty"`
5859
5860
5861 Ordinal string `json:"ordinal,omitempty"`
5862
5863
5864
5865 TimestampMicros int64 `json:"timestampMicros,omitempty,string"`
5866
5867
5868
5869
5870
5871
5872
5873 ForceSendFields []string `json:"-"`
5874
5875
5876
5877
5878
5879
5880
5881
5882 NullFields []string `json:"-"`
5883 }
5884
5885 func (s *CustomEvent) MarshalJSON() ([]byte, error) {
5886 type NoMethod CustomEvent
5887 raw := NoMethod(*s)
5888 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5889 }
5890
5891
5892 type CustomEventClickAnnotation struct {
5893
5894
5895 Gclid string `json:"gclid,omitempty"`
5896
5897
5898
5899 Kind string `json:"kind,omitempty"`
5900
5901
5902
5903
5904
5905
5906
5907 ForceSendFields []string `json:"-"`
5908
5909
5910
5911
5912
5913
5914
5915 NullFields []string `json:"-"`
5916 }
5917
5918 func (s *CustomEventClickAnnotation) MarshalJSON() ([]byte, error) {
5919 type NoMethod CustomEventClickAnnotation
5920 raw := NoMethod(*s)
5921 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5922 }
5923
5924
5925
5926 type CustomEventError struct {
5927
5928
5929
5930
5931
5932
5933
5934
5935 Code string `json:"code,omitempty"`
5936
5937
5938
5939 Kind string `json:"kind,omitempty"`
5940
5941
5942 Message string `json:"message,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 *CustomEventError) MarshalJSON() ([]byte, error) {
5962 type NoMethod CustomEventError
5963 raw := NoMethod(*s)
5964 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5965 }
5966
5967
5968 type CustomEventImpressionAnnotation struct {
5969
5970
5971 Kind string `json:"kind,omitempty"`
5972
5973
5974
5975 PathImpressionId string `json:"pathImpressionId,omitempty"`
5976
5977
5978
5979
5980
5981
5982
5983 ForceSendFields []string `json:"-"`
5984
5985
5986
5987
5988
5989
5990
5991 NullFields []string `json:"-"`
5992 }
5993
5994 func (s *CustomEventImpressionAnnotation) MarshalJSON() ([]byte, error) {
5995 type NoMethod CustomEventImpressionAnnotation
5996 raw := NoMethod(*s)
5997 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5998 }
5999
6000
6001 type CustomEventInsert struct {
6002
6003 CmDimensions *CampaignManagerIds `json:"cmDimensions,omitempty"`
6004
6005
6006 Dv3Dimensions *DV3Ids `json:"dv3Dimensions,omitempty"`
6007
6008
6009
6010
6011
6012
6013
6014 InsertEventType string `json:"insertEventType,omitempty"`
6015
6016
6017
6018 Kind string `json:"kind,omitempty"`
6019
6020
6021
6022
6023
6024 MatchId string `json:"matchId,omitempty"`
6025
6026
6027
6028
6029 MobileDeviceId string `json:"mobileDeviceId,omitempty"`
6030
6031
6032
6033
6034
6035
6036
6037 ForceSendFields []string `json:"-"`
6038
6039
6040
6041
6042
6043
6044
6045 NullFields []string `json:"-"`
6046 }
6047
6048 func (s *CustomEventInsert) MarshalJSON() ([]byte, error) {
6049 type NoMethod CustomEventInsert
6050 raw := NoMethod(*s)
6051 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6052 }
6053
6054
6055
6056 type CustomEventStatus struct {
6057
6058 CustomEvent *CustomEvent `json:"customEvent,omitempty"`
6059
6060
6061 Errors []*CustomEventError `json:"errors,omitempty"`
6062
6063
6064
6065 Kind string `json:"kind,omitempty"`
6066
6067
6068
6069
6070
6071
6072
6073 ForceSendFields []string `json:"-"`
6074
6075
6076
6077
6078
6079
6080
6081 NullFields []string `json:"-"`
6082 }
6083
6084 func (s *CustomEventStatus) MarshalJSON() ([]byte, error) {
6085 type NoMethod CustomEventStatus
6086 raw := NoMethod(*s)
6087 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6088 }
6089
6090
6091 type CustomEventsBatchInsertRequest struct {
6092
6093 CustomEvents []*CustomEvent `json:"customEvents,omitempty"`
6094
6095
6096
6097 Kind string `json:"kind,omitempty"`
6098
6099
6100
6101
6102
6103
6104
6105 ForceSendFields []string `json:"-"`
6106
6107
6108
6109
6110
6111
6112
6113 NullFields []string `json:"-"`
6114 }
6115
6116 func (s *CustomEventsBatchInsertRequest) MarshalJSON() ([]byte, error) {
6117 type NoMethod CustomEventsBatchInsertRequest
6118 raw := NoMethod(*s)
6119 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6120 }
6121
6122
6123 type CustomEventsBatchInsertResponse struct {
6124
6125
6126 HasFailures bool `json:"hasFailures,omitempty"`
6127
6128
6129
6130 Kind string `json:"kind,omitempty"`
6131
6132
6133
6134 Status []*CustomEventStatus `json:"status,omitempty"`
6135
6136
6137
6138 googleapi.ServerResponse `json:"-"`
6139
6140
6141
6142
6143
6144
6145
6146 ForceSendFields []string `json:"-"`
6147
6148
6149
6150
6151
6152
6153
6154 NullFields []string `json:"-"`
6155 }
6156
6157 func (s *CustomEventsBatchInsertResponse) MarshalJSON() ([]byte, error) {
6158 type NoMethod CustomEventsBatchInsertResponse
6159 raw := NoMethod(*s)
6160 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6161 }
6162
6163
6164
6165
6166 type CustomFloodlightVariable struct {
6167
6168
6169 Kind string `json:"kind,omitempty"`
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
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275 Type string `json:"type,omitempty"`
6276
6277
6278
6279 Value string `json:"value,omitempty"`
6280
6281
6282
6283
6284
6285
6286
6287 ForceSendFields []string `json:"-"`
6288
6289
6290
6291
6292
6293
6294
6295 NullFields []string `json:"-"`
6296 }
6297
6298 func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) {
6299 type NoMethod CustomFloodlightVariable
6300 raw := NoMethod(*s)
6301 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6302 }
6303
6304
6305 type CustomRichMediaEvents struct {
6306
6307
6308 FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"`
6309
6310
6311
6312 Kind string `json:"kind,omitempty"`
6313
6314
6315
6316
6317
6318
6319
6320 ForceSendFields []string `json:"-"`
6321
6322
6323
6324
6325
6326
6327
6328
6329 NullFields []string `json:"-"`
6330 }
6331
6332 func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) {
6333 type NoMethod CustomRichMediaEvents
6334 raw := NoMethod(*s)
6335 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6336 }
6337
6338
6339 type CustomVariable struct {
6340
6341 Index int64 `json:"index,omitempty,string"`
6342
6343
6344
6345 Kind string `json:"kind,omitempty"`
6346
6347
6348
6349 Value string `json:"value,omitempty"`
6350
6351
6352
6353
6354
6355
6356
6357 ForceSendFields []string `json:"-"`
6358
6359
6360
6361
6362
6363
6364
6365 NullFields []string `json:"-"`
6366 }
6367
6368 func (s *CustomVariable) MarshalJSON() ([]byte, error) {
6369 type NoMethod CustomVariable
6370 raw := NoMethod(*s)
6371 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6372 }
6373
6374
6375 type CustomViewabilityMetric struct {
6376
6377 Configuration *CustomViewabilityMetricConfiguration `json:"configuration,omitempty"`
6378
6379
6380 Id int64 `json:"id,omitempty,string"`
6381
6382
6383 Name string `json:"name,omitempty"`
6384
6385
6386
6387
6388
6389
6390
6391 ForceSendFields []string `json:"-"`
6392
6393
6394
6395
6396
6397
6398
6399 NullFields []string `json:"-"`
6400 }
6401
6402 func (s *CustomViewabilityMetric) MarshalJSON() ([]byte, error) {
6403 type NoMethod CustomViewabilityMetric
6404 raw := NoMethod(*s)
6405 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6406 }
6407
6408
6409
6410 type CustomViewabilityMetricConfiguration struct {
6411
6412 Audible bool `json:"audible,omitempty"`
6413
6414
6415
6416
6417 TimeMillis int64 `json:"timeMillis,omitempty"`
6418
6419
6420
6421
6422 TimePercent int64 `json:"timePercent,omitempty"`
6423
6424
6425
6426 ViewabilityPercent int64 `json:"viewabilityPercent,omitempty"`
6427
6428
6429
6430
6431
6432
6433
6434 ForceSendFields []string `json:"-"`
6435
6436
6437
6438
6439
6440
6441
6442 NullFields []string `json:"-"`
6443 }
6444
6445 func (s *CustomViewabilityMetricConfiguration) MarshalJSON() ([]byte, error) {
6446 type NoMethod CustomViewabilityMetricConfiguration
6447 raw := NoMethod(*s)
6448 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6449 }
6450
6451
6452 type DV3Ids struct {
6453
6454 DvCampaignId int64 `json:"dvCampaignId,omitempty,string"`
6455
6456
6457 DvCreativeId int64 `json:"dvCreativeId,omitempty,string"`
6458
6459
6460 DvInsertionOrderId int64 `json:"dvInsertionOrderId,omitempty,string"`
6461
6462
6463 DvLineItemId int64 `json:"dvLineItemId,omitempty,string"`
6464
6465
6466 DvSiteId int64 `json:"dvSiteId,omitempty,string"`
6467
6468
6469
6470 Kind string `json:"kind,omitempty"`
6471
6472
6473
6474
6475
6476
6477
6478 ForceSendFields []string `json:"-"`
6479
6480
6481
6482
6483
6484
6485
6486 NullFields []string `json:"-"`
6487 }
6488
6489 func (s *DV3Ids) MarshalJSON() ([]byte, error) {
6490 type NoMethod DV3Ids
6491 raw := NoMethod(*s)
6492 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6493 }
6494
6495
6496 type DateRange struct {
6497 EndDate string `json:"endDate,omitempty"`
6498
6499
6500
6501 Kind string `json:"kind,omitempty"`
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 RelativeDateRange string `json:"relativeDateRange,omitempty"`
6525
6526 StartDate string `json:"startDate,omitempty"`
6527
6528
6529
6530
6531
6532
6533
6534 ForceSendFields []string `json:"-"`
6535
6536
6537
6538
6539
6540
6541
6542 NullFields []string `json:"-"`
6543 }
6544
6545 func (s *DateRange) MarshalJSON() ([]byte, error) {
6546 type NoMethod DateRange
6547 raw := NoMethod(*s)
6548 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6549 }
6550
6551
6552 type DayPartTargeting struct {
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 DaysOfWeek []string `json:"daysOfWeek,omitempty"`
6566
6567
6568
6569
6570
6571
6572
6573
6574 HoursOfDay []int64 `json:"hoursOfDay,omitempty"`
6575
6576
6577
6578 UserLocalTime bool `json:"userLocalTime,omitempty"`
6579
6580
6581
6582
6583
6584
6585
6586 ForceSendFields []string `json:"-"`
6587
6588
6589
6590
6591
6592
6593
6594 NullFields []string `json:"-"`
6595 }
6596
6597 func (s *DayPartTargeting) MarshalJSON() ([]byte, error) {
6598 type NoMethod DayPartTargeting
6599 raw := NoMethod(*s)
6600 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6601 }
6602
6603
6604 type DeepLink struct {
6605
6606 AppUrl string `json:"appUrl,omitempty"`
6607
6608
6609
6610 FallbackUrl string `json:"fallbackUrl,omitempty"`
6611
6612
6613
6614 Kind string `json:"kind,omitempty"`
6615
6616
6617 MobileApp *MobileApp `json:"mobileApp,omitempty"`
6618
6619
6620
6621
6622 RemarketingListIds googleapi.Int64s `json:"remarketingListIds,omitempty"`
6623
6624
6625
6626
6627
6628
6629
6630 ForceSendFields []string `json:"-"`
6631
6632
6633
6634
6635
6636
6637
6638 NullFields []string `json:"-"`
6639 }
6640
6641 func (s *DeepLink) MarshalJSON() ([]byte, error) {
6642 type NoMethod DeepLink
6643 raw := NoMethod(*s)
6644 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6645 }
6646
6647
6648
6649
6650
6651 type DefaultClickThroughEventTagProperties struct {
6652
6653
6654 DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"`
6655
6656
6657
6658 OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"`
6659
6660
6661
6662
6663
6664
6665
6666
6667 ForceSendFields []string `json:"-"`
6668
6669
6670
6671
6672
6673
6674
6675
6676 NullFields []string `json:"-"`
6677 }
6678
6679 func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) {
6680 type NoMethod DefaultClickThroughEventTagProperties
6681 raw := NoMethod(*s)
6682 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6683 }
6684
6685
6686 type DeliverySchedule struct {
6687
6688
6689 FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"`
6690
6691
6692
6693
6694 HardCutoff bool `json:"hardCutoff,omitempty"`
6695
6696
6697
6698
6699
6700
6701 ImpressionRatio int64 `json:"impressionRatio,omitempty,string"`
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724 Priority string `json:"priority,omitempty"`
6725
6726
6727
6728
6729
6730
6731
6732 ForceSendFields []string `json:"-"`
6733
6734
6735
6736
6737
6738
6739
6740 NullFields []string `json:"-"`
6741 }
6742
6743 func (s *DeliverySchedule) MarshalJSON() ([]byte, error) {
6744 type NoMethod DeliverySchedule
6745 raw := NoMethod(*s)
6746 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6747 }
6748
6749
6750 type DfpSettings struct {
6751
6752 DfpNetworkCode string `json:"dfpNetworkCode,omitempty"`
6753
6754
6755 DfpNetworkName string `json:"dfpNetworkName,omitempty"`
6756
6757
6758
6759 ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"`
6760
6761
6762
6763 PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"`
6764
6765
6766
6767 PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"`
6768
6769
6770
6771
6772
6773
6774
6775 ForceSendFields []string `json:"-"`
6776
6777
6778
6779
6780
6781
6782
6783
6784 NullFields []string `json:"-"`
6785 }
6786
6787 func (s *DfpSettings) MarshalJSON() ([]byte, error) {
6788 type NoMethod DfpSettings
6789 raw := NoMethod(*s)
6790 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6791 }
6792
6793
6794 type Dimension struct {
6795
6796
6797 Kind string `json:"kind,omitempty"`
6798
6799
6800 Name string `json:"name,omitempty"`
6801
6802
6803
6804
6805
6806
6807
6808 ForceSendFields []string `json:"-"`
6809
6810
6811
6812
6813
6814
6815
6816 NullFields []string `json:"-"`
6817 }
6818
6819 func (s *Dimension) MarshalJSON() ([]byte, error) {
6820 type NoMethod Dimension
6821 raw := NoMethod(*s)
6822 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6823 }
6824
6825
6826 type DimensionFilter struct {
6827
6828 DimensionName string `json:"dimensionName,omitempty"`
6829
6830
6831
6832 Kind string `json:"kind,omitempty"`
6833
6834
6835 Value string `json:"value,omitempty"`
6836
6837
6838
6839
6840
6841
6842
6843 ForceSendFields []string `json:"-"`
6844
6845
6846
6847
6848
6849
6850
6851 NullFields []string `json:"-"`
6852 }
6853
6854 func (s *DimensionFilter) MarshalJSON() ([]byte, error) {
6855 type NoMethod DimensionFilter
6856 raw := NoMethod(*s)
6857 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6858 }
6859
6860
6861 type DimensionValue struct {
6862
6863 DimensionName string `json:"dimensionName,omitempty"`
6864
6865
6866 Etag string `json:"etag,omitempty"`
6867
6868
6869 Id string `json:"id,omitempty"`
6870
6871
6872
6873 Kind string `json:"kind,omitempty"`
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 MatchType string `json:"matchType,omitempty"`
6888
6889
6890 Value string `json:"value,omitempty"`
6891
6892
6893
6894
6895
6896
6897
6898 ForceSendFields []string `json:"-"`
6899
6900
6901
6902
6903
6904
6905
6906 NullFields []string `json:"-"`
6907 }
6908
6909 func (s *DimensionValue) MarshalJSON() ([]byte, error) {
6910 type NoMethod DimensionValue
6911 raw := NoMethod(*s)
6912 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6913 }
6914
6915
6916 type DimensionValueList struct {
6917
6918 Etag string `json:"etag,omitempty"`
6919
6920
6921 Items []*DimensionValue `json:"items,omitempty"`
6922
6923
6924
6925 Kind string `json:"kind,omitempty"`
6926
6927
6928
6929
6930
6931 NextPageToken string `json:"nextPageToken,omitempty"`
6932
6933
6934
6935 googleapi.ServerResponse `json:"-"`
6936
6937
6938
6939
6940
6941
6942
6943 ForceSendFields []string `json:"-"`
6944
6945
6946
6947
6948
6949
6950
6951 NullFields []string `json:"-"`
6952 }
6953
6954 func (s *DimensionValueList) MarshalJSON() ([]byte, error) {
6955 type NoMethod DimensionValueList
6956 raw := NoMethod(*s)
6957 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6958 }
6959
6960
6961 type DimensionValueRequest struct {
6962
6963
6964 DimensionName string `json:"dimensionName,omitempty"`
6965
6966 EndDate string `json:"endDate,omitempty"`
6967
6968
6969
6970 Filters []*DimensionFilter `json:"filters,omitempty"`
6971
6972
6973
6974 Kind string `json:"kind,omitempty"`
6975
6976 StartDate string `json:"startDate,omitempty"`
6977
6978
6979
6980
6981
6982
6983
6984 ForceSendFields []string `json:"-"`
6985
6986
6987
6988
6989
6990
6991
6992 NullFields []string `json:"-"`
6993 }
6994
6995 func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) {
6996 type NoMethod DimensionValueRequest
6997 raw := NoMethod(*s)
6998 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6999 }
7000
7001
7002
7003
7004 type DirectorySite struct {
7005
7006
7007 Id int64 `json:"id,omitempty,string"`
7008
7009
7010
7011 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022 InpageTagFormats []string `json:"inpageTagFormats,omitempty"`
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"`
7033
7034
7035
7036 Kind string `json:"kind,omitempty"`
7037
7038
7039 Name string `json:"name,omitempty"`
7040
7041
7042 Settings *DirectorySiteSettings `json:"settings,omitempty"`
7043
7044
7045 Url string `json:"url,omitempty"`
7046
7047
7048
7049 googleapi.ServerResponse `json:"-"`
7050
7051
7052
7053
7054
7055
7056
7057 ForceSendFields []string `json:"-"`
7058
7059
7060
7061
7062
7063
7064
7065 NullFields []string `json:"-"`
7066 }
7067
7068 func (s *DirectorySite) MarshalJSON() ([]byte, error) {
7069 type NoMethod DirectorySite
7070 raw := NoMethod(*s)
7071 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7072 }
7073
7074
7075 type DirectorySiteSettings struct {
7076
7077
7078 ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
7079
7080
7081 DfpSettings *DfpSettings `json:"dfpSettings,omitempty"`
7082
7083
7084
7085 InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"`
7086
7087
7088
7089 InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"`
7090
7091
7092
7093
7094
7095
7096
7097 ForceSendFields []string `json:"-"`
7098
7099
7100
7101
7102
7103
7104
7105
7106 NullFields []string `json:"-"`
7107 }
7108
7109 func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) {
7110 type NoMethod DirectorySiteSettings
7111 raw := NoMethod(*s)
7112 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7113 }
7114
7115
7116 type DirectorySitesListResponse struct {
7117
7118 DirectorySites []*DirectorySite `json:"directorySites,omitempty"`
7119
7120
7121
7122 Kind string `json:"kind,omitempty"`
7123
7124
7125
7126 NextPageToken string `json:"nextPageToken,omitempty"`
7127
7128
7129
7130 googleapi.ServerResponse `json:"-"`
7131
7132
7133
7134
7135
7136
7137
7138 ForceSendFields []string `json:"-"`
7139
7140
7141
7142
7143
7144
7145
7146
7147 NullFields []string `json:"-"`
7148 }
7149
7150 func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) {
7151 type NoMethod DirectorySitesListResponse
7152 raw := NoMethod(*s)
7153 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7154 }
7155
7156
7157
7158
7159 type DisjunctiveMatchStatement struct {
7160
7161
7162 EventFilters []*EventFilter `json:"eventFilters,omitempty"`
7163
7164
7165
7166 Kind string `json:"kind,omitempty"`
7167
7168
7169
7170
7171
7172
7173
7174 ForceSendFields []string `json:"-"`
7175
7176
7177
7178
7179
7180
7181
7182 NullFields []string `json:"-"`
7183 }
7184
7185 func (s *DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) {
7186 type NoMethod DisjunctiveMatchStatement
7187 raw := NoMethod(*s)
7188 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7189 }
7190
7191
7192
7193
7194
7195
7196
7197 type DynamicTargetingKey struct {
7198
7199
7200 Kind string `json:"kind,omitempty"`
7201
7202
7203
7204
7205 Name string `json:"name,omitempty"`
7206
7207
7208
7209 ObjectId int64 `json:"objectId,omitempty,string"`
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 ObjectType string `json:"objectType,omitempty"`
7220
7221
7222
7223 googleapi.ServerResponse `json:"-"`
7224
7225
7226
7227
7228
7229
7230
7231 ForceSendFields []string `json:"-"`
7232
7233
7234
7235
7236
7237
7238
7239 NullFields []string `json:"-"`
7240 }
7241
7242 func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) {
7243 type NoMethod DynamicTargetingKey
7244 raw := NoMethod(*s)
7245 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7246 }
7247
7248
7249 type DynamicTargetingKeysListResponse struct {
7250
7251 DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"`
7252
7253
7254
7255 Kind string `json:"kind,omitempty"`
7256
7257
7258
7259 googleapi.ServerResponse `json:"-"`
7260
7261
7262
7263
7264
7265
7266
7267
7268 ForceSendFields []string `json:"-"`
7269
7270
7271
7272
7273
7274
7275
7276
7277 NullFields []string `json:"-"`
7278 }
7279
7280 func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) {
7281 type NoMethod DynamicTargetingKeysListResponse
7282 raw := NoMethod(*s)
7283 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7284 }
7285
7286
7287 type EncryptionInfo struct {
7288
7289
7290 EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"`
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 EncryptionEntityType string `json:"encryptionEntityType,omitempty"`
7304
7305
7306
7307
7308
7309
7310
7311
7312 EncryptionSource string `json:"encryptionSource,omitempty"`
7313
7314
7315
7316 Kind string `json:"kind,omitempty"`
7317
7318
7319
7320
7321
7322
7323
7324 ForceSendFields []string `json:"-"`
7325
7326
7327
7328
7329
7330
7331
7332
7333 NullFields []string `json:"-"`
7334 }
7335
7336 func (s *EncryptionInfo) MarshalJSON() ([]byte, error) {
7337 type NoMethod EncryptionInfo
7338 raw := NoMethod(*s)
7339 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7340 }
7341
7342
7343 type EventFilter struct {
7344
7345
7346 DimensionFilter *PathReportDimensionValue `json:"dimensionFilter,omitempty"`
7347
7348
7349
7350 Kind string `json:"kind,omitempty"`
7351
7352
7353
7354
7355
7356
7357
7358 ForceSendFields []string `json:"-"`
7359
7360
7361
7362
7363
7364
7365
7366
7367 NullFields []string `json:"-"`
7368 }
7369
7370 func (s *EventFilter) MarshalJSON() ([]byte, error) {
7371 type NoMethod EventFilter
7372 raw := NoMethod(*s)
7373 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7374 }
7375
7376
7377 type EventTag struct {
7378
7379
7380 AccountId int64 `json:"accountId,omitempty,string"`
7381
7382
7383
7384 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
7385
7386
7387
7388 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
7389
7390
7391
7392 CampaignId int64 `json:"campaignId,omitempty,string"`
7393
7394
7395
7396 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
7397
7398
7399
7400 EnabledByDefault bool `json:"enabledByDefault,omitempty"`
7401
7402
7403
7404
7405
7406
7407 ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"`
7408
7409
7410 Id int64 `json:"id,omitempty,string"`
7411
7412
7413
7414 Kind string `json:"kind,omitempty"`
7415
7416
7417
7418 Name string `json:"name,omitempty"`
7419
7420
7421
7422
7423
7424
7425
7426 SiteFilterType string `json:"siteFilterType,omitempty"`
7427
7428
7429
7430
7431 SiteIds googleapi.Int64s `json:"siteIds,omitempty"`
7432
7433
7434
7435 SslCompliant bool `json:"sslCompliant,omitempty"`
7436
7437
7438
7439
7440
7441
7442
7443 Status string `json:"status,omitempty"`
7444
7445
7446
7447 SubaccountId int64 `json:"subaccountId,omitempty,string"`
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 Type string `json:"type,omitempty"`
7459
7460
7461
7462
7463 Url string `json:"url,omitempty"`
7464
7465
7466
7467
7468
7469 UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"`
7470
7471
7472
7473 googleapi.ServerResponse `json:"-"`
7474
7475
7476
7477
7478
7479
7480
7481 ForceSendFields []string `json:"-"`
7482
7483
7484
7485
7486
7487
7488
7489 NullFields []string `json:"-"`
7490 }
7491
7492 func (s *EventTag) MarshalJSON() ([]byte, error) {
7493 type NoMethod EventTag
7494 raw := NoMethod(*s)
7495 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7496 }
7497
7498
7499 type EventTagOverride struct {
7500
7501 Enabled bool `json:"enabled,omitempty"`
7502
7503
7504
7505 Id int64 `json:"id,omitempty,string"`
7506
7507
7508
7509
7510
7511
7512
7513 ForceSendFields []string `json:"-"`
7514
7515
7516
7517
7518
7519
7520
7521 NullFields []string `json:"-"`
7522 }
7523
7524 func (s *EventTagOverride) MarshalJSON() ([]byte, error) {
7525 type NoMethod EventTagOverride
7526 raw := NoMethod(*s)
7527 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7528 }
7529
7530
7531 type EventTagsListResponse struct {
7532
7533 EventTags []*EventTag `json:"eventTags,omitempty"`
7534
7535
7536
7537 Kind string `json:"kind,omitempty"`
7538
7539
7540
7541 googleapi.ServerResponse `json:"-"`
7542
7543
7544
7545
7546
7547
7548
7549 ForceSendFields []string `json:"-"`
7550
7551
7552
7553
7554
7555
7556
7557 NullFields []string `json:"-"`
7558 }
7559
7560 func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) {
7561 type NoMethod EventTagsListResponse
7562 raw := NoMethod(*s)
7563 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7564 }
7565
7566
7567
7568
7569
7570 type File struct {
7571
7572
7573
7574 DateRange *DateRange `json:"dateRange,omitempty"`
7575
7576
7577 Etag string `json:"etag,omitempty"`
7578
7579
7580 FileName string `json:"fileName,omitempty"`
7581
7582
7583
7584
7585
7586
7587
7588 Format string `json:"format,omitempty"`
7589
7590
7591 Id int64 `json:"id,omitempty,string"`
7592
7593
7594
7595 Kind string `json:"kind,omitempty"`
7596
7597
7598
7599 LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"`
7600
7601
7602 ReportId int64 `json:"reportId,omitempty,string"`
7603
7604
7605
7606
7607
7608
7609
7610
7611 Status string `json:"status,omitempty"`
7612
7613
7614 Urls *FileUrls `json:"urls,omitempty"`
7615
7616
7617
7618 googleapi.ServerResponse `json:"-"`
7619
7620
7621
7622
7623
7624
7625
7626 ForceSendFields []string `json:"-"`
7627
7628
7629
7630
7631
7632
7633
7634 NullFields []string `json:"-"`
7635 }
7636
7637 func (s *File) MarshalJSON() ([]byte, error) {
7638 type NoMethod File
7639 raw := NoMethod(*s)
7640 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7641 }
7642
7643
7644 type FileUrls struct {
7645
7646 ApiUrl string `json:"apiUrl,omitempty"`
7647
7648
7649
7650 BrowserUrl string `json:"browserUrl,omitempty"`
7651
7652
7653
7654
7655
7656
7657
7658 ForceSendFields []string `json:"-"`
7659
7660
7661
7662
7663
7664
7665
7666 NullFields []string `json:"-"`
7667 }
7668
7669 func (s *FileUrls) MarshalJSON() ([]byte, error) {
7670 type NoMethod FileUrls
7671 raw := NoMethod(*s)
7672 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7673 }
7674
7675
7676 type FileList struct {
7677
7678 Etag string `json:"etag,omitempty"`
7679
7680
7681 Items []*File `json:"items,omitempty"`
7682
7683
7684
7685 Kind string `json:"kind,omitempty"`
7686
7687
7688
7689
7690
7691 NextPageToken string `json:"nextPageToken,omitempty"`
7692
7693
7694
7695 googleapi.ServerResponse `json:"-"`
7696
7697
7698
7699
7700
7701
7702
7703 ForceSendFields []string `json:"-"`
7704
7705
7706
7707
7708
7709
7710
7711 NullFields []string `json:"-"`
7712 }
7713
7714 func (s *FileList) MarshalJSON() ([]byte, error) {
7715 type NoMethod FileList
7716 raw := NoMethod(*s)
7717 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7718 }
7719
7720
7721 type Flight struct {
7722 EndDate string `json:"endDate,omitempty"`
7723
7724
7725 RateOrCost int64 `json:"rateOrCost,omitempty,string"`
7726
7727 StartDate string `json:"startDate,omitempty"`
7728
7729
7730 Units int64 `json:"units,omitempty,string"`
7731
7732
7733
7734
7735
7736
7737
7738 ForceSendFields []string `json:"-"`
7739
7740
7741
7742
7743
7744
7745
7746 NullFields []string `json:"-"`
7747 }
7748
7749 func (s *Flight) MarshalJSON() ([]byte, error) {
7750 type NoMethod Flight
7751 raw := NoMethod(*s)
7752 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7753 }
7754
7755
7756
7757 type FloodlightActivitiesGenerateTagResponse struct {
7758
7759
7760 FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"`
7761
7762
7763
7764
7765
7766 GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"`
7767
7768
7769
7770 Kind string `json:"kind,omitempty"`
7771
7772
7773
7774 googleapi.ServerResponse `json:"-"`
7775
7776
7777
7778
7779
7780
7781
7782
7783 ForceSendFields []string `json:"-"`
7784
7785
7786
7787
7788
7789
7790
7791
7792 NullFields []string `json:"-"`
7793 }
7794
7795 func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) {
7796 type NoMethod FloodlightActivitiesGenerateTagResponse
7797 raw := NoMethod(*s)
7798 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7799 }
7800
7801
7802 type FloodlightActivitiesListResponse struct {
7803
7804 FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"`
7805
7806
7807
7808 Kind string `json:"kind,omitempty"`
7809
7810
7811
7812 NextPageToken string `json:"nextPageToken,omitempty"`
7813
7814
7815
7816 googleapi.ServerResponse `json:"-"`
7817
7818
7819
7820
7821
7822
7823
7824
7825 ForceSendFields []string `json:"-"`
7826
7827
7828
7829
7830
7831
7832
7833
7834 NullFields []string `json:"-"`
7835 }
7836
7837 func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) {
7838 type NoMethod FloodlightActivitiesListResponse
7839 raw := NoMethod(*s)
7840 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7841 }
7842
7843
7844 type FloodlightActivity struct {
7845
7846
7847 AccountId int64 `json:"accountId,omitempty,string"`
7848
7849
7850
7851
7852 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
7853
7854
7855
7856 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
7857
7858
7859 AttributionEnabled bool `json:"attributionEnabled,omitempty"`
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 CacheBustingType string `json:"cacheBustingType,omitempty"`
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882 CountingMethod string `json:"countingMethod,omitempty"`
7883
7884
7885 DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"`
7886
7887
7888
7889 ExpectedUrl string `json:"expectedUrl,omitempty"`
7890
7891
7892
7893 FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"`
7894
7895
7896
7897 FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"`
7898
7899
7900
7901 FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"`
7902
7903
7904
7905
7906
7907
7908
7909 FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"`
7910
7911
7912
7913
7914
7915 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
7916
7917
7918
7919
7920 FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
7921
7922
7923
7924
7925
7926
7927
7928
7929 FloodlightTagType string `json:"floodlightTagType,omitempty"`
7930
7931
7932
7933 Id int64 `json:"id,omitempty,string"`
7934
7935
7936
7937 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
7938
7939
7940
7941 Kind string `json:"kind,omitempty"`
7942
7943
7944
7945 Name string `json:"name,omitempty"`
7946
7947
7948 Notes string `json:"notes,omitempty"`
7949
7950
7951 PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"`
7952
7953
7954 Secure bool `json:"secure,omitempty"`
7955
7956
7957
7958
7959 SslCompliant bool `json:"sslCompliant,omitempty"`
7960
7961
7962 SslRequired bool `json:"sslRequired,omitempty"`
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 Status string `json:"status,omitempty"`
7976
7977
7978
7979 SubaccountId int64 `json:"subaccountId,omitempty,string"`
7980
7981
7982
7983
7984
7985
7986
7987 TagFormat string `json:"tagFormat,omitempty"`
7988
7989
7990
7991
7992
7993
7994
7995 TagString string `json:"tagString,omitempty"`
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103 UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"`
8104
8105
8106
8107 googleapi.ServerResponse `json:"-"`
8108
8109
8110
8111
8112
8113
8114
8115 ForceSendFields []string `json:"-"`
8116
8117
8118
8119
8120
8121
8122
8123 NullFields []string `json:"-"`
8124 }
8125
8126 func (s *FloodlightActivity) MarshalJSON() ([]byte, error) {
8127 type NoMethod FloodlightActivity
8128 raw := NoMethod(*s)
8129 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8130 }
8131
8132
8133 type FloodlightActivityDynamicTag struct {
8134
8135
8136 Id int64 `json:"id,omitempty,string"`
8137
8138
8139 Name string `json:"name,omitempty"`
8140
8141
8142 Tag string `json:"tag,omitempty"`
8143
8144
8145
8146
8147
8148
8149
8150 ForceSendFields []string `json:"-"`
8151
8152
8153
8154
8155
8156
8157
8158 NullFields []string `json:"-"`
8159 }
8160
8161 func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) {
8162 type NoMethod FloodlightActivityDynamicTag
8163 raw := NoMethod(*s)
8164 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8165 }
8166
8167
8168
8169 type FloodlightActivityGroup struct {
8170
8171
8172 AccountId int64 `json:"accountId,omitempty,string"`
8173
8174
8175
8176
8177
8178 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
8179
8180
8181
8182 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
8183
8184
8185
8186 FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
8187
8188
8189
8190
8191 FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
8192
8193
8194
8195 Id int64 `json:"id,omitempty,string"`
8196
8197
8198
8199 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
8200
8201
8202
8203 Kind string `json:"kind,omitempty"`
8204
8205
8206
8207
8208 Name string `json:"name,omitempty"`
8209
8210
8211
8212 SubaccountId int64 `json:"subaccountId,omitempty,string"`
8213
8214
8215
8216
8217
8218
8219
8220
8221 TagString string `json:"tagString,omitempty"`
8222
8223
8224
8225
8226
8227
8228
8229 Type string `json:"type,omitempty"`
8230
8231
8232
8233 googleapi.ServerResponse `json:"-"`
8234
8235
8236
8237
8238
8239
8240
8241 ForceSendFields []string `json:"-"`
8242
8243
8244
8245
8246
8247
8248
8249 NullFields []string `json:"-"`
8250 }
8251
8252 func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) {
8253 type NoMethod FloodlightActivityGroup
8254 raw := NoMethod(*s)
8255 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8256 }
8257
8258
8259
8260 type FloodlightActivityGroupsListResponse struct {
8261
8262 FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"`
8263
8264
8265
8266 Kind string `json:"kind,omitempty"`
8267
8268
8269
8270 NextPageToken string `json:"nextPageToken,omitempty"`
8271
8272
8273
8274 googleapi.ServerResponse `json:"-"`
8275
8276
8277
8278
8279
8280
8281
8282
8283 ForceSendFields []string `json:"-"`
8284
8285
8286
8287
8288
8289
8290
8291
8292 NullFields []string `json:"-"`
8293 }
8294
8295 func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) {
8296 type NoMethod FloodlightActivityGroupsListResponse
8297 raw := NoMethod(*s)
8298 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8299 }
8300
8301
8302 type FloodlightActivityPublisherDynamicTag struct {
8303
8304 ClickThrough bool `json:"clickThrough,omitempty"`
8305
8306
8307
8308
8309
8310 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
8311
8312
8313 DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"`
8314
8315
8316 SiteId int64 `json:"siteId,omitempty,string"`
8317
8318
8319
8320 SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`
8321
8322
8323 ViewThrough bool `json:"viewThrough,omitempty"`
8324
8325
8326
8327
8328
8329
8330
8331 ForceSendFields []string `json:"-"`
8332
8333
8334
8335
8336
8337
8338
8339 NullFields []string `json:"-"`
8340 }
8341
8342 func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) {
8343 type NoMethod FloodlightActivityPublisherDynamicTag
8344 raw := NoMethod(*s)
8345 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8346 }
8347
8348
8349
8350 type FloodlightConfiguration struct {
8351
8352
8353 AccountId int64 `json:"accountId,omitempty,string"`
8354
8355
8356
8357 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
8358
8359
8360
8361 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
8362
8363
8364
8365 AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"`
8366
8367
8368
8369 CustomViewabilityMetric *CustomViewabilityMetric `json:"customViewabilityMetric,omitempty"`
8370
8371
8372
8373
8374
8375 ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"`
8376
8377
8378
8379
8380
8381
8382
8383 FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"`
8384
8385
8386
8387 Id int64 `json:"id,omitempty,string"`
8388
8389
8390
8391 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
8392
8393
8394
8395 InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"`
8396
8397
8398
8399 Kind string `json:"kind,omitempty"`
8400
8401
8402
8403 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
8404
8405
8406
8407
8408
8409
8410
8411
8412 NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"`
8413
8414
8415 OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"`
8416
8417
8418
8419 SubaccountId int64 `json:"subaccountId,omitempty,string"`
8420
8421
8422
8423 TagSettings *TagSettings `json:"tagSettings,omitempty"`
8424
8425
8426
8427 ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"`
8428
8429
8430
8431 UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"`
8432
8433
8434
8435 googleapi.ServerResponse `json:"-"`
8436
8437
8438
8439
8440
8441
8442
8443 ForceSendFields []string `json:"-"`
8444
8445
8446
8447
8448
8449
8450
8451 NullFields []string `json:"-"`
8452 }
8453
8454 func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) {
8455 type NoMethod FloodlightConfiguration
8456 raw := NoMethod(*s)
8457 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8458 }
8459
8460
8461
8462 type FloodlightConfigurationsListResponse struct {
8463
8464 FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"`
8465
8466
8467
8468 Kind string `json:"kind,omitempty"`
8469
8470
8471
8472 googleapi.ServerResponse `json:"-"`
8473
8474
8475
8476
8477
8478
8479
8480
8481 ForceSendFields []string `json:"-"`
8482
8483
8484
8485
8486
8487
8488
8489
8490 NullFields []string `json:"-"`
8491 }
8492
8493 func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) {
8494 type NoMethod FloodlightConfigurationsListResponse
8495 raw := NoMethod(*s)
8496 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8497 }
8498
8499
8500
8501 type FloodlightReportCompatibleFields struct {
8502
8503
8504 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
8505
8506
8507
8508 Dimensions []*Dimension `json:"dimensions,omitempty"`
8509
8510
8511
8512 Kind string `json:"kind,omitempty"`
8513
8514
8515
8516 Metrics []*Metric `json:"metrics,omitempty"`
8517
8518
8519
8520
8521
8522
8523
8524 ForceSendFields []string `json:"-"`
8525
8526
8527
8528
8529
8530
8531
8532
8533 NullFields []string `json:"-"`
8534 }
8535
8536 func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) {
8537 type NoMethod FloodlightReportCompatibleFields
8538 raw := NoMethod(*s)
8539 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8540 }
8541
8542
8543 type FrequencyCap struct {
8544
8545
8546
8547 Duration int64 `json:"duration,omitempty,string"`
8548
8549
8550
8551
8552 Impressions int64 `json:"impressions,omitempty,string"`
8553
8554
8555
8556
8557
8558
8559
8560 ForceSendFields []string `json:"-"`
8561
8562
8563
8564
8565
8566
8567
8568 NullFields []string `json:"-"`
8569 }
8570
8571 func (s *FrequencyCap) MarshalJSON() ([]byte, error) {
8572 type NoMethod FrequencyCap
8573 raw := NoMethod(*s)
8574 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8575 }
8576
8577
8578 type FsCommand struct {
8579
8580
8581 Left int64 `json:"left,omitempty"`
8582
8583
8584
8585
8586
8587
8588 PositionOption string `json:"positionOption,omitempty"`
8589
8590
8591
8592 Top int64 `json:"top,omitempty"`
8593
8594
8595 WindowHeight int64 `json:"windowHeight,omitempty"`
8596
8597
8598 WindowWidth int64 `json:"windowWidth,omitempty"`
8599
8600
8601
8602
8603
8604
8605
8606 ForceSendFields []string `json:"-"`
8607
8608
8609
8610
8611
8612
8613
8614 NullFields []string `json:"-"`
8615 }
8616
8617 func (s *FsCommand) MarshalJSON() ([]byte, error) {
8618 type NoMethod FsCommand
8619 raw := NoMethod(*s)
8620 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8621 }
8622
8623
8624 type GeoTargeting struct {
8625
8626
8627
8628
8629 Cities []*City `json:"cities,omitempty"`
8630
8631
8632
8633
8634
8635
8636
8637 Countries []*Country `json:"countries,omitempty"`
8638
8639
8640
8641
8642 ExcludeCountries bool `json:"excludeCountries,omitempty"`
8643
8644
8645
8646
8647
8648 Metros []*Metro `json:"metros,omitempty"`
8649
8650
8651
8652
8653
8654 PostalCodes []*PostalCode `json:"postalCodes,omitempty"`
8655
8656
8657
8658
8659
8660 Regions []*Region `json:"regions,omitempty"`
8661
8662
8663
8664
8665
8666
8667
8668 ForceSendFields []string `json:"-"`
8669
8670
8671
8672
8673
8674
8675
8676 NullFields []string `json:"-"`
8677 }
8678
8679 func (s *GeoTargeting) MarshalJSON() ([]byte, error) {
8680 type NoMethod GeoTargeting
8681 raw := NoMethod(*s)
8682 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8683 }
8684
8685
8686 type InventoryItem struct {
8687
8688 AccountId int64 `json:"accountId,omitempty,string"`
8689
8690
8691
8692
8693
8694
8695 AdSlots []*AdSlot `json:"adSlots,omitempty"`
8696
8697
8698 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
8699
8700
8701 ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`
8702
8703
8704
8705 EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"`
8706
8707
8708
8709 EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"`
8710
8711
8712 Id int64 `json:"id,omitempty,string"`
8713
8714
8715 InPlan bool `json:"inPlan,omitempty"`
8716
8717
8718
8719 Kind string `json:"kind,omitempty"`
8720
8721
8722
8723 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
8724
8725
8726
8727
8728
8729 Name string `json:"name,omitempty"`
8730
8731
8732 NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"`
8733
8734
8735 OrderId int64 `json:"orderId,omitempty,string"`
8736
8737
8738 PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`
8739
8740
8741 Pricing *Pricing `json:"pricing,omitempty"`
8742
8743
8744 ProjectId int64 `json:"projectId,omitempty,string"`
8745
8746
8747 RfpId int64 `json:"rfpId,omitempty,string"`
8748
8749
8750 SiteId int64 `json:"siteId,omitempty,string"`
8751
8752
8753 SubaccountId int64 `json:"subaccountId,omitempty,string"`
8754
8755
8756
8757
8758
8759
8760 Type string `json:"type,omitempty"`
8761
8762
8763
8764 googleapi.ServerResponse `json:"-"`
8765
8766
8767
8768
8769
8770
8771
8772 ForceSendFields []string `json:"-"`
8773
8774
8775
8776
8777
8778
8779
8780 NullFields []string `json:"-"`
8781 }
8782
8783 func (s *InventoryItem) MarshalJSON() ([]byte, error) {
8784 type NoMethod InventoryItem
8785 raw := NoMethod(*s)
8786 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8787 }
8788
8789
8790 type InventoryItemsListResponse struct {
8791
8792 InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"`
8793
8794
8795
8796 Kind string `json:"kind,omitempty"`
8797
8798
8799
8800 NextPageToken string `json:"nextPageToken,omitempty"`
8801
8802
8803
8804 googleapi.ServerResponse `json:"-"`
8805
8806
8807
8808
8809
8810
8811
8812 ForceSendFields []string `json:"-"`
8813
8814
8815
8816
8817
8818
8819
8820
8821 NullFields []string `json:"-"`
8822 }
8823
8824 func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) {
8825 type NoMethod InventoryItemsListResponse
8826 raw := NoMethod(*s)
8827 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8828 }
8829
8830
8831 type KeyValueTargetingExpression struct {
8832
8833 Expression string `json:"expression,omitempty"`
8834
8835
8836
8837
8838
8839
8840
8841 ForceSendFields []string `json:"-"`
8842
8843
8844
8845
8846
8847
8848
8849 NullFields []string `json:"-"`
8850 }
8851
8852 func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) {
8853 type NoMethod KeyValueTargetingExpression
8854 raw := NoMethod(*s)
8855 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8856 }
8857
8858
8859
8860 type LandingPage struct {
8861
8862
8863 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
8864
8865
8866 Archived bool `json:"archived,omitempty"`
8867
8868
8869
8870 DeepLinks []*DeepLink `json:"deepLinks,omitempty"`
8871
8872
8873
8874 Id int64 `json:"id,omitempty,string"`
8875
8876
8877
8878 Kind string `json:"kind,omitempty"`
8879
8880
8881
8882 Name string `json:"name,omitempty"`
8883
8884
8885 Url string `json:"url,omitempty"`
8886
8887
8888
8889 googleapi.ServerResponse `json:"-"`
8890
8891
8892
8893
8894
8895
8896
8897 ForceSendFields []string `json:"-"`
8898
8899
8900
8901
8902
8903
8904
8905 NullFields []string `json:"-"`
8906 }
8907
8908 func (s *LandingPage) MarshalJSON() ([]byte, error) {
8909 type NoMethod LandingPage
8910 raw := NoMethod(*s)
8911 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8912 }
8913
8914
8915
8916 type Language struct {
8917
8918
8919 Id int64 `json:"id,omitempty,string"`
8920
8921
8922
8923 Kind string `json:"kind,omitempty"`
8924
8925
8926
8927
8928
8929 LanguageCode string `json:"languageCode,omitempty"`
8930
8931
8932 Name string `json:"name,omitempty"`
8933
8934
8935
8936
8937
8938
8939
8940 ForceSendFields []string `json:"-"`
8941
8942
8943
8944
8945
8946
8947
8948 NullFields []string `json:"-"`
8949 }
8950
8951 func (s *Language) MarshalJSON() ([]byte, error) {
8952 type NoMethod Language
8953 raw := NoMethod(*s)
8954 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8955 }
8956
8957
8958 type LanguageTargeting struct {
8959
8960
8961
8962 Languages []*Language `json:"languages,omitempty"`
8963
8964
8965
8966
8967
8968
8969
8970 ForceSendFields []string `json:"-"`
8971
8972
8973
8974
8975
8976
8977
8978 NullFields []string `json:"-"`
8979 }
8980
8981 func (s *LanguageTargeting) MarshalJSON() ([]byte, error) {
8982 type NoMethod LanguageTargeting
8983 raw := NoMethod(*s)
8984 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8985 }
8986
8987
8988 type LanguagesListResponse struct {
8989
8990
8991 Kind string `json:"kind,omitempty"`
8992
8993
8994 Languages []*Language `json:"languages,omitempty"`
8995
8996
8997
8998 googleapi.ServerResponse `json:"-"`
8999
9000
9001
9002
9003
9004
9005
9006 ForceSendFields []string `json:"-"`
9007
9008
9009
9010
9011
9012
9013
9014 NullFields []string `json:"-"`
9015 }
9016
9017 func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) {
9018 type NoMethod LanguagesListResponse
9019 raw := NoMethod(*s)
9020 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9021 }
9022
9023
9024 type LastModifiedInfo struct {
9025
9026 Time int64 `json:"time,omitempty,string"`
9027
9028
9029
9030
9031
9032
9033
9034 ForceSendFields []string `json:"-"`
9035
9036
9037
9038
9039
9040
9041
9042 NullFields []string `json:"-"`
9043 }
9044
9045 func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) {
9046 type NoMethod LastModifiedInfo
9047 raw := NoMethod(*s)
9048 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9049 }
9050
9051
9052
9053 type ListPopulationClause struct {
9054
9055
9056
9057 Terms []*ListPopulationTerm `json:"terms,omitempty"`
9058
9059
9060
9061
9062
9063
9064
9065 ForceSendFields []string `json:"-"`
9066
9067
9068
9069
9070
9071
9072
9073 NullFields []string `json:"-"`
9074 }
9075
9076 func (s *ListPopulationClause) MarshalJSON() ([]byte, error) {
9077 type NoMethod ListPopulationClause
9078 raw := NoMethod(*s)
9079 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9080 }
9081
9082
9083 type ListPopulationRule struct {
9084
9085
9086 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
9087
9088
9089
9090 FloodlightActivityName string `json:"floodlightActivityName,omitempty"`
9091
9092
9093
9094
9095 ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"`
9096
9097
9098
9099
9100
9101
9102
9103
9104 ForceSendFields []string `json:"-"`
9105
9106
9107
9108
9109
9110
9111
9112
9113 NullFields []string `json:"-"`
9114 }
9115
9116 func (s *ListPopulationRule) MarshalJSON() ([]byte, error) {
9117 type NoMethod ListPopulationRule
9118 raw := NoMethod(*s)
9119 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9120 }
9121
9122
9123 type ListPopulationTerm struct {
9124
9125
9126
9127
9128 Contains bool `json:"contains,omitempty"`
9129
9130
9131
9132
9133 Negation bool `json:"negation,omitempty"`
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 Operator string `json:"operator,omitempty"`
9148
9149
9150
9151 RemarketingListId int64 `json:"remarketingListId,omitempty,string"`
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164 Type string `json:"type,omitempty"`
9165
9166
9167
9168
9169 Value string `json:"value,omitempty"`
9170
9171
9172
9173
9174 VariableFriendlyName string `json:"variableFriendlyName,omitempty"`
9175
9176
9177
9178
9179 VariableName string `json:"variableName,omitempty"`
9180
9181
9182
9183
9184
9185
9186
9187 ForceSendFields []string `json:"-"`
9188
9189
9190
9191
9192
9193
9194
9195 NullFields []string `json:"-"`
9196 }
9197
9198 func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) {
9199 type NoMethod ListPopulationTerm
9200 raw := NoMethod(*s)
9201 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9202 }
9203
9204
9205 type ListTargetingExpression struct {
9206
9207
9208 Expression string `json:"expression,omitempty"`
9209
9210
9211
9212
9213
9214
9215
9216 ForceSendFields []string `json:"-"`
9217
9218
9219
9220
9221
9222
9223
9224 NullFields []string `json:"-"`
9225 }
9226
9227 func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) {
9228 type NoMethod ListTargetingExpression
9229 raw := NoMethod(*s)
9230 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9231 }
9232
9233
9234 type LookbackConfiguration struct {
9235
9236
9237
9238
9239
9240 ClickDuration int64 `json:"clickDuration,omitempty"`
9241
9242
9243
9244
9245
9246
9247
9248 PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"`
9249
9250
9251
9252
9253
9254
9255
9256 ForceSendFields []string `json:"-"`
9257
9258
9259
9260
9261
9262
9263
9264 NullFields []string `json:"-"`
9265 }
9266
9267 func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) {
9268 type NoMethod LookbackConfiguration
9269 raw := NoMethod(*s)
9270 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9271 }
9272
9273
9274 type Metric struct {
9275
9276 Kind string `json:"kind,omitempty"`
9277
9278
9279 Name string `json:"name,omitempty"`
9280
9281
9282
9283
9284
9285
9286
9287 ForceSendFields []string `json:"-"`
9288
9289
9290
9291
9292
9293
9294
9295 NullFields []string `json:"-"`
9296 }
9297
9298 func (s *Metric) MarshalJSON() ([]byte, error) {
9299 type NoMethod Metric
9300 raw := NoMethod(*s)
9301 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9302 }
9303
9304
9305
9306 type Metro struct {
9307
9308
9309 CountryCode string `json:"countryCode,omitempty"`
9310
9311
9312
9313 CountryDartId int64 `json:"countryDartId,omitempty,string"`
9314
9315
9316 DartId int64 `json:"dartId,omitempty,string"`
9317
9318
9319
9320 DmaId int64 `json:"dmaId,omitempty,string"`
9321
9322
9323
9324 Kind string `json:"kind,omitempty"`
9325
9326
9327
9328 MetroCode string `json:"metroCode,omitempty"`
9329
9330
9331 Name string `json:"name,omitempty"`
9332
9333
9334
9335
9336
9337
9338
9339 ForceSendFields []string `json:"-"`
9340
9341
9342
9343
9344
9345
9346
9347 NullFields []string `json:"-"`
9348 }
9349
9350 func (s *Metro) MarshalJSON() ([]byte, error) {
9351 type NoMethod Metro
9352 raw := NoMethod(*s)
9353 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9354 }
9355
9356
9357 type MetrosListResponse struct {
9358
9359
9360 Kind string `json:"kind,omitempty"`
9361
9362
9363 Metros []*Metro `json:"metros,omitempty"`
9364
9365
9366
9367 googleapi.ServerResponse `json:"-"`
9368
9369
9370
9371
9372
9373
9374
9375 ForceSendFields []string `json:"-"`
9376
9377
9378
9379
9380
9381
9382
9383 NullFields []string `json:"-"`
9384 }
9385
9386 func (s *MetrosListResponse) MarshalJSON() ([]byte, error) {
9387 type NoMethod MetrosListResponse
9388 raw := NoMethod(*s)
9389 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9390 }
9391
9392
9393
9394 type MobileApp struct {
9395
9396
9397
9398
9399
9400
9401 Directory string `json:"directory,omitempty"`
9402
9403
9404 Id string `json:"id,omitempty"`
9405
9406
9407
9408 Kind string `json:"kind,omitempty"`
9409
9410
9411 PublisherName string `json:"publisherName,omitempty"`
9412
9413
9414 Title string `json:"title,omitempty"`
9415
9416
9417
9418 googleapi.ServerResponse `json:"-"`
9419
9420
9421
9422
9423
9424
9425
9426 ForceSendFields []string `json:"-"`
9427
9428
9429
9430
9431
9432
9433
9434 NullFields []string `json:"-"`
9435 }
9436
9437 func (s *MobileApp) MarshalJSON() ([]byte, error) {
9438 type NoMethod MobileApp
9439 raw := NoMethod(*s)
9440 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9441 }
9442
9443
9444 type MobileAppsListResponse struct {
9445
9446
9447 Kind string `json:"kind,omitempty"`
9448
9449
9450 MobileApps []*MobileApp `json:"mobileApps,omitempty"`
9451
9452
9453
9454 NextPageToken string `json:"nextPageToken,omitempty"`
9455
9456
9457
9458 googleapi.ServerResponse `json:"-"`
9459
9460
9461
9462
9463
9464
9465
9466 ForceSendFields []string `json:"-"`
9467
9468
9469
9470
9471
9472
9473
9474 NullFields []string `json:"-"`
9475 }
9476
9477 func (s *MobileAppsListResponse) MarshalJSON() ([]byte, error) {
9478 type NoMethod MobileAppsListResponse
9479 raw := NoMethod(*s)
9480 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9481 }
9482
9483
9484
9485 type MobileCarrier struct {
9486
9487
9488 CountryCode string `json:"countryCode,omitempty"`
9489
9490
9491
9492 CountryDartId int64 `json:"countryDartId,omitempty,string"`
9493
9494
9495 Id int64 `json:"id,omitempty,string"`
9496
9497
9498
9499 Kind string `json:"kind,omitempty"`
9500
9501
9502 Name string `json:"name,omitempty"`
9503
9504
9505
9506 googleapi.ServerResponse `json:"-"`
9507
9508
9509
9510
9511
9512
9513
9514 ForceSendFields []string `json:"-"`
9515
9516
9517
9518
9519
9520
9521
9522 NullFields []string `json:"-"`
9523 }
9524
9525 func (s *MobileCarrier) MarshalJSON() ([]byte, error) {
9526 type NoMethod MobileCarrier
9527 raw := NoMethod(*s)
9528 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9529 }
9530
9531
9532 type MobileCarriersListResponse struct {
9533
9534
9535 Kind string `json:"kind,omitempty"`
9536
9537
9538 MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`
9539
9540
9541
9542 googleapi.ServerResponse `json:"-"`
9543
9544
9545
9546
9547
9548
9549
9550 ForceSendFields []string `json:"-"`
9551
9552
9553
9554
9555
9556
9557
9558 NullFields []string `json:"-"`
9559 }
9560
9561 func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) {
9562 type NoMethod MobileCarriersListResponse
9563 raw := NoMethod(*s)
9564 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9565 }
9566
9567
9568 type ObaIcon struct {
9569
9570 IconClickThroughUrl string `json:"iconClickThroughUrl,omitempty"`
9571
9572
9573 IconClickTrackingUrl string `json:"iconClickTrackingUrl,omitempty"`
9574
9575
9576 IconViewTrackingUrl string `json:"iconViewTrackingUrl,omitempty"`
9577
9578
9579
9580 Program string `json:"program,omitempty"`
9581
9582
9583
9584 ResourceUrl string `json:"resourceUrl,omitempty"`
9585
9586
9587 Size *Size `json:"size,omitempty"`
9588
9589
9590
9591 XPosition string `json:"xPosition,omitempty"`
9592
9593
9594
9595 YPosition string `json:"yPosition,omitempty"`
9596
9597
9598
9599
9600
9601
9602
9603 ForceSendFields []string `json:"-"`
9604
9605
9606
9607
9608
9609
9610
9611
9612 NullFields []string `json:"-"`
9613 }
9614
9615 func (s *ObaIcon) MarshalJSON() ([]byte, error) {
9616 type NoMethod ObaIcon
9617 raw := NoMethod(*s)
9618 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9619 }
9620
9621
9622 type ObjectFilter struct {
9623
9624
9625 Kind string `json:"kind,omitempty"`
9626
9627
9628
9629 ObjectIds googleapi.Int64s `json:"objectIds,omitempty"`
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640 Status string `json:"status,omitempty"`
9641
9642
9643
9644
9645
9646
9647
9648 ForceSendFields []string `json:"-"`
9649
9650
9651
9652
9653
9654
9655
9656 NullFields []string `json:"-"`
9657 }
9658
9659 func (s *ObjectFilter) MarshalJSON() ([]byte, error) {
9660 type NoMethod ObjectFilter
9661 raw := NoMethod(*s)
9662 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9663 }
9664
9665
9666 type OffsetPosition struct {
9667
9668 Left int64 `json:"left,omitempty"`
9669
9670
9671 Top int64 `json:"top,omitempty"`
9672
9673
9674
9675
9676
9677
9678
9679 ForceSendFields []string `json:"-"`
9680
9681
9682
9683
9684
9685
9686
9687 NullFields []string `json:"-"`
9688 }
9689
9690 func (s *OffsetPosition) MarshalJSON() ([]byte, error) {
9691 type NoMethod OffsetPosition
9692 raw := NoMethod(*s)
9693 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9694 }
9695
9696
9697 type OmnitureSettings struct {
9698
9699
9700
9701 OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"`
9702
9703
9704
9705
9706 OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"`
9707
9708
9709
9710
9711
9712
9713
9714
9715 ForceSendFields []string `json:"-"`
9716
9717
9718
9719
9720
9721
9722
9723
9724 NullFields []string `json:"-"`
9725 }
9726
9727 func (s *OmnitureSettings) MarshalJSON() ([]byte, error) {
9728 type NoMethod OmnitureSettings
9729 raw := NoMethod(*s)
9730 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9731 }
9732
9733
9734
9735 type OperatingSystem struct {
9736
9737
9738 DartId int64 `json:"dartId,omitempty,string"`
9739
9740
9741 Desktop bool `json:"desktop,omitempty"`
9742
9743
9744
9745 Kind string `json:"kind,omitempty"`
9746
9747
9748 Mobile bool `json:"mobile,omitempty"`
9749
9750
9751 Name string `json:"name,omitempty"`
9752
9753
9754
9755 googleapi.ServerResponse `json:"-"`
9756
9757
9758
9759
9760
9761
9762
9763 ForceSendFields []string `json:"-"`
9764
9765
9766
9767
9768
9769
9770
9771 NullFields []string `json:"-"`
9772 }
9773
9774 func (s *OperatingSystem) MarshalJSON() ([]byte, error) {
9775 type NoMethod OperatingSystem
9776 raw := NoMethod(*s)
9777 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9778 }
9779
9780
9781
9782 type OperatingSystemVersion struct {
9783
9784 Id int64 `json:"id,omitempty,string"`
9785
9786
9787
9788 Kind string `json:"kind,omitempty"`
9789
9790
9791
9792 MajorVersion string `json:"majorVersion,omitempty"`
9793
9794
9795
9796 MinorVersion string `json:"minorVersion,omitempty"`
9797
9798
9799 Name string `json:"name,omitempty"`
9800
9801
9802 OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"`
9803
9804
9805
9806 googleapi.ServerResponse `json:"-"`
9807
9808
9809
9810
9811
9812
9813
9814 ForceSendFields []string `json:"-"`
9815
9816
9817
9818
9819
9820
9821
9822 NullFields []string `json:"-"`
9823 }
9824
9825 func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) {
9826 type NoMethod OperatingSystemVersion
9827 raw := NoMethod(*s)
9828 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9829 }
9830
9831
9832
9833 type OperatingSystemVersionsListResponse struct {
9834
9835
9836 Kind string `json:"kind,omitempty"`
9837
9838
9839 OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`
9840
9841
9842
9843 googleapi.ServerResponse `json:"-"`
9844
9845
9846
9847
9848
9849
9850
9851 ForceSendFields []string `json:"-"`
9852
9853
9854
9855
9856
9857
9858
9859 NullFields []string `json:"-"`
9860 }
9861
9862 func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) {
9863 type NoMethod OperatingSystemVersionsListResponse
9864 raw := NoMethod(*s)
9865 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9866 }
9867
9868
9869 type OperatingSystemsListResponse struct {
9870
9871
9872 Kind string `json:"kind,omitempty"`
9873
9874
9875 OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`
9876
9877
9878
9879 googleapi.ServerResponse `json:"-"`
9880
9881
9882
9883
9884
9885
9886
9887 ForceSendFields []string `json:"-"`
9888
9889
9890
9891
9892
9893
9894
9895 NullFields []string `json:"-"`
9896 }
9897
9898 func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) {
9899 type NoMethod OperatingSystemsListResponse
9900 raw := NoMethod(*s)
9901 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9902 }
9903
9904
9905 type OptimizationActivity struct {
9906
9907
9908 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
9909
9910
9911
9912 FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"`
9913
9914
9915
9916
9917 Weight int64 `json:"weight,omitempty"`
9918
9919
9920
9921
9922
9923
9924
9925
9926 ForceSendFields []string `json:"-"`
9927
9928
9929
9930
9931
9932
9933
9934
9935 NullFields []string `json:"-"`
9936 }
9937
9938 func (s *OptimizationActivity) MarshalJSON() ([]byte, error) {
9939 type NoMethod OptimizationActivity
9940 raw := NoMethod(*s)
9941 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9942 }
9943
9944
9945 type Order struct {
9946
9947 AccountId int64 `json:"accountId,omitempty,string"`
9948
9949
9950 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
9951
9952
9953
9954 ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"`
9955
9956
9957 BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"`
9958
9959
9960 BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"`
9961
9962
9963 Comments string `json:"comments,omitempty"`
9964
9965
9966 Contacts []*OrderContact `json:"contacts,omitempty"`
9967
9968
9969 Id int64 `json:"id,omitempty,string"`
9970
9971
9972
9973 Kind string `json:"kind,omitempty"`
9974
9975
9976
9977 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
9978
9979
9980 Name string `json:"name,omitempty"`
9981
9982
9983 Notes string `json:"notes,omitempty"`
9984
9985
9986
9987 PlanningTermId int64 `json:"planningTermId,omitempty,string"`
9988
9989
9990 ProjectId int64 `json:"projectId,omitempty,string"`
9991
9992
9993 SellerOrderId string `json:"sellerOrderId,omitempty"`
9994
9995
9996 SellerOrganizationName string `json:"sellerOrganizationName,omitempty"`
9997
9998
9999 SiteId googleapi.Int64s `json:"siteId,omitempty"`
10000
10001
10002 SiteNames []string `json:"siteNames,omitempty"`
10003
10004
10005 SubaccountId int64 `json:"subaccountId,omitempty,string"`
10006
10007
10008 TermsAndConditions string `json:"termsAndConditions,omitempty"`
10009
10010
10011
10012 googleapi.ServerResponse `json:"-"`
10013
10014
10015
10016
10017
10018
10019
10020 ForceSendFields []string `json:"-"`
10021
10022
10023
10024
10025
10026
10027
10028 NullFields []string `json:"-"`
10029 }
10030
10031 func (s *Order) MarshalJSON() ([]byte, error) {
10032 type NoMethod Order
10033 raw := NoMethod(*s)
10034 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10035 }
10036
10037
10038 type OrderContact struct {
10039
10040
10041
10042 ContactInfo string `json:"contactInfo,omitempty"`
10043
10044
10045 ContactName string `json:"contactName,omitempty"`
10046
10047
10048 ContactTitle string `json:"contactTitle,omitempty"`
10049
10050
10051
10052
10053
10054
10055
10056 ContactType string `json:"contactType,omitempty"`
10057
10058
10059
10060 SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"`
10061
10062
10063
10064
10065
10066
10067
10068 ForceSendFields []string `json:"-"`
10069
10070
10071
10072
10073
10074
10075
10076 NullFields []string `json:"-"`
10077 }
10078
10079 func (s *OrderContact) MarshalJSON() ([]byte, error) {
10080 type NoMethod OrderContact
10081 raw := NoMethod(*s)
10082 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10083 }
10084
10085
10086 type OrderDocument struct {
10087
10088 AccountId int64 `json:"accountId,omitempty,string"`
10089
10090
10091 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
10092
10093
10094
10095
10096 AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"`
10097
10098
10099
10100 ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"`
10101
10102
10103 Cancelled bool `json:"cancelled,omitempty"`
10104
10105
10106 CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"`
10107
10108 EffectiveDate string `json:"effectiveDate,omitempty"`
10109
10110
10111 Id int64 `json:"id,omitempty,string"`
10112
10113
10114
10115 Kind string `json:"kind,omitempty"`
10116
10117
10118
10119 LastSentRecipients []string `json:"lastSentRecipients,omitempty"`
10120
10121 LastSentTime string `json:"lastSentTime,omitempty"`
10122
10123
10124 OrderId int64 `json:"orderId,omitempty,string"`
10125
10126
10127 ProjectId int64 `json:"projectId,omitempty,string"`
10128
10129
10130 Signed bool `json:"signed,omitempty"`
10131
10132
10133 SubaccountId int64 `json:"subaccountId,omitempty,string"`
10134
10135
10136 Title string `json:"title,omitempty"`
10137
10138
10139
10140
10141
10142
10143 Type string `json:"type,omitempty"`
10144
10145
10146
10147 googleapi.ServerResponse `json:"-"`
10148
10149
10150
10151
10152
10153
10154
10155 ForceSendFields []string `json:"-"`
10156
10157
10158
10159
10160
10161
10162
10163 NullFields []string `json:"-"`
10164 }
10165
10166 func (s *OrderDocument) MarshalJSON() ([]byte, error) {
10167 type NoMethod OrderDocument
10168 raw := NoMethod(*s)
10169 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10170 }
10171
10172
10173 type OrderDocumentsListResponse struct {
10174
10175
10176 Kind string `json:"kind,omitempty"`
10177
10178
10179
10180 NextPageToken string `json:"nextPageToken,omitempty"`
10181
10182
10183 OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"`
10184
10185
10186
10187 googleapi.ServerResponse `json:"-"`
10188
10189
10190
10191
10192
10193
10194
10195 ForceSendFields []string `json:"-"`
10196
10197
10198
10199
10200
10201
10202
10203 NullFields []string `json:"-"`
10204 }
10205
10206 func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) {
10207 type NoMethod OrderDocumentsListResponse
10208 raw := NoMethod(*s)
10209 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10210 }
10211
10212
10213 type OrdersListResponse struct {
10214
10215
10216 Kind string `json:"kind,omitempty"`
10217
10218
10219
10220 NextPageToken string `json:"nextPageToken,omitempty"`
10221
10222
10223 Orders []*Order `json:"orders,omitempty"`
10224
10225
10226
10227 googleapi.ServerResponse `json:"-"`
10228
10229
10230
10231
10232
10233
10234
10235 ForceSendFields []string `json:"-"`
10236
10237
10238
10239
10240
10241
10242
10243 NullFields []string `json:"-"`
10244 }
10245
10246 func (s *OrdersListResponse) MarshalJSON() ([]byte, error) {
10247 type NoMethod OrdersListResponse
10248 raw := NoMethod(*s)
10249 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10250 }
10251
10252
10253 type PathFilter struct {
10254
10255 EventFilters []*EventFilter `json:"eventFilters,omitempty"`
10256
10257
10258
10259 Kind string `json:"kind,omitempty"`
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273 PathMatchPosition string `json:"pathMatchPosition,omitempty"`
10274
10275
10276
10277
10278
10279
10280
10281 ForceSendFields []string `json:"-"`
10282
10283
10284
10285
10286
10287
10288
10289 NullFields []string `json:"-"`
10290 }
10291
10292 func (s *PathFilter) MarshalJSON() ([]byte, error) {
10293 type NoMethod PathFilter
10294 raw := NoMethod(*s)
10295 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10296 }
10297
10298
10299
10300 type PathReportCompatibleFields struct {
10301
10302
10303 ChannelGroupings []*Dimension `json:"channelGroupings,omitempty"`
10304
10305
10306
10307 Dimensions []*Dimension `json:"dimensions,omitempty"`
10308
10309
10310
10311 Kind string `json:"kind,omitempty"`
10312
10313
10314
10315 Metrics []*Metric `json:"metrics,omitempty"`
10316
10317
10318
10319 PathFilters []*Dimension `json:"pathFilters,omitempty"`
10320
10321
10322
10323
10324
10325
10326
10327 ForceSendFields []string `json:"-"`
10328
10329
10330
10331
10332
10333
10334
10335
10336 NullFields []string `json:"-"`
10337 }
10338
10339 func (s *PathReportCompatibleFields) MarshalJSON() ([]byte, error) {
10340 type NoMethod PathReportCompatibleFields
10341 raw := NoMethod(*s)
10342 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10343 }
10344
10345
10346
10347 type PathReportDimensionValue struct {
10348
10349 DimensionName string `json:"dimensionName,omitempty"`
10350
10351
10352 Ids []string `json:"ids,omitempty"`
10353
10354
10355
10356 Kind string `json:"kind,omitempty"`
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370 MatchType string `json:"matchType,omitempty"`
10371
10372
10373 Values []string `json:"values,omitempty"`
10374
10375
10376
10377
10378
10379
10380
10381 ForceSendFields []string `json:"-"`
10382
10383
10384
10385
10386
10387
10388
10389 NullFields []string `json:"-"`
10390 }
10391
10392 func (s *PathReportDimensionValue) MarshalJSON() ([]byte, error) {
10393 type NoMethod PathReportDimensionValue
10394 raw := NoMethod(*s)
10395 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10396 }
10397
10398
10399
10400 type PathToConversionReportCompatibleFields struct {
10401
10402
10403 ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"`
10404
10405
10406
10407
10408 CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"`
10409
10410
10411
10412 Kind string `json:"kind,omitempty"`
10413
10414
10415
10416 Metrics []*Metric `json:"metrics,omitempty"`
10417
10418
10419
10420
10421 PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"`
10422
10423
10424
10425
10426
10427
10428
10429
10430 ForceSendFields []string `json:"-"`
10431
10432
10433
10434
10435
10436
10437
10438
10439 NullFields []string `json:"-"`
10440 }
10441
10442 func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) {
10443 type NoMethod PathToConversionReportCompatibleFields
10444 raw := NoMethod(*s)
10445 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10446 }
10447
10448
10449 type Placement struct {
10450
10451
10452 AccountId int64 `json:"accountId,omitempty,string"`
10453
10454
10455
10456
10457 AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"`
10458
10459
10460
10461
10462 AdditionalSizes []*Size `json:"additionalSizes,omitempty"`
10463
10464
10465
10466 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
10467
10468
10469
10470 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
10471
10472
10473 Archived bool `json:"archived,omitempty"`
10474
10475
10476
10477 CampaignId int64 `json:"campaignId,omitempty,string"`
10478
10479
10480
10481 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
10482
10483
10484 Comment string `json:"comment,omitempty"`
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501 Compatibility string `json:"compatibility,omitempty"`
10502
10503
10504
10505 ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`
10506
10507
10508
10509 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
10510
10511
10512
10513
10514
10515 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
10516
10517
10518
10519 DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`
10520
10521
10522 ExternalId string `json:"externalId,omitempty"`
10523
10524
10525 Id int64 `json:"id,omitempty,string"`
10526
10527
10528
10529 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
10530
10531
10532
10533 KeyName string `json:"keyName,omitempty"`
10534
10535
10536
10537 Kind string `json:"kind,omitempty"`
10538
10539
10540
10541 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
10542
10543
10544 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
10545
10546
10547
10548 Name string `json:"name,omitempty"`
10549
10550
10551
10552 PaymentApproved bool `json:"paymentApproved,omitempty"`
10553
10554
10555
10556
10557
10558
10559
10560 PaymentSource string `json:"paymentSource,omitempty"`
10561
10562
10563 PlacementGroupId int64 `json:"placementGroupId,omitempty,string"`
10564
10565
10566
10567 PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"`
10568
10569
10570
10571 PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`
10572
10573
10574
10575
10576 PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"`
10577
10578
10579
10580
10581
10582
10583
10584 Primary bool `json:"primary,omitempty"`
10585
10586
10587
10588 PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"`
10589
10590
10591
10592
10593
10594 SiteId int64 `json:"siteId,omitempty,string"`
10595
10596
10597
10598 SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`
10599
10600
10601
10602
10603 Size *Size `json:"size,omitempty"`
10604
10605
10606
10607 SslRequired bool `json:"sslRequired,omitempty"`
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618 Status string `json:"status,omitempty"`
10619
10620
10621
10622 SubaccountId int64 `json:"subaccountId,omitempty,string"`
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660 TagFormats []string `json:"tagFormats,omitempty"`
10661
10662
10663 TagSetting *TagSetting `json:"tagSetting,omitempty"`
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673 VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"`
10674
10675
10676
10677
10678 VideoSettings *VideoSettings `json:"videoSettings,omitempty"`
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691 VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"`
10692
10693
10694
10695 googleapi.ServerResponse `json:"-"`
10696
10697
10698
10699
10700
10701
10702
10703 ForceSendFields []string `json:"-"`
10704
10705
10706
10707
10708
10709
10710
10711 NullFields []string `json:"-"`
10712 }
10713
10714 func (s *Placement) MarshalJSON() ([]byte, error) {
10715 type NoMethod Placement
10716 raw := NoMethod(*s)
10717 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10718 }
10719
10720
10721 type PlacementAssignment struct {
10722
10723
10724 Active bool `json:"active,omitempty"`
10725
10726
10727
10728 PlacementId int64 `json:"placementId,omitempty,string"`
10729
10730
10731
10732 PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"`
10733
10734
10735
10736
10737 SslRequired bool `json:"sslRequired,omitempty"`
10738
10739
10740
10741
10742
10743
10744
10745 ForceSendFields []string `json:"-"`
10746
10747
10748
10749
10750
10751
10752
10753 NullFields []string `json:"-"`
10754 }
10755
10756 func (s *PlacementAssignment) MarshalJSON() ([]byte, error) {
10757 type NoMethod PlacementAssignment
10758 raw := NoMethod(*s)
10759 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10760 }
10761
10762
10763 type PlacementGroup struct {
10764
10765
10766 AccountId int64 `json:"accountId,omitempty,string"`
10767
10768
10769
10770 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
10771
10772
10773
10774 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
10775
10776
10777 Archived bool `json:"archived,omitempty"`
10778
10779
10780
10781 CampaignId int64 `json:"campaignId,omitempty,string"`
10782
10783
10784
10785 CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
10786
10787
10788
10789 ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"`
10790
10791
10792 Comment string `json:"comment,omitempty"`
10793
10794
10795
10796 ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`
10797
10798
10799
10800 CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
10801
10802
10803
10804
10805
10806 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
10807
10808
10809
10810 DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`
10811
10812
10813 ExternalId string `json:"externalId,omitempty"`
10814
10815
10816
10817 Id int64 `json:"id,omitempty,string"`
10818
10819
10820
10821 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
10822
10823
10824
10825 Kind string `json:"kind,omitempty"`
10826
10827
10828
10829 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
10830
10831
10832
10833 Name string `json:"name,omitempty"`
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846 PlacementGroupType string `json:"placementGroupType,omitempty"`
10847
10848
10849
10850 PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`
10851
10852
10853
10854 PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"`
10855
10856
10857
10858
10859
10860 PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"`
10861
10862
10863
10864 PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"`
10865
10866
10867
10868
10869
10870 SiteId int64 `json:"siteId,omitempty,string"`
10871
10872
10873
10874 SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`
10875
10876
10877
10878 SubaccountId int64 `json:"subaccountId,omitempty,string"`
10879
10880
10881
10882 googleapi.ServerResponse `json:"-"`
10883
10884
10885
10886
10887
10888
10889
10890 ForceSendFields []string `json:"-"`
10891
10892
10893
10894
10895
10896
10897
10898 NullFields []string `json:"-"`
10899 }
10900
10901 func (s *PlacementGroup) MarshalJSON() ([]byte, error) {
10902 type NoMethod PlacementGroup
10903 raw := NoMethod(*s)
10904 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10905 }
10906
10907
10908 type PlacementGroupsListResponse struct {
10909
10910
10911 Kind string `json:"kind,omitempty"`
10912
10913
10914
10915 NextPageToken string `json:"nextPageToken,omitempty"`
10916
10917
10918 PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"`
10919
10920
10921
10922 googleapi.ServerResponse `json:"-"`
10923
10924
10925
10926
10927
10928
10929
10930 ForceSendFields []string `json:"-"`
10931
10932
10933
10934
10935
10936
10937
10938 NullFields []string `json:"-"`
10939 }
10940
10941 func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) {
10942 type NoMethod PlacementGroupsListResponse
10943 raw := NoMethod(*s)
10944 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10945 }
10946
10947
10948 type PlacementStrategiesListResponse struct {
10949
10950
10951 Kind string `json:"kind,omitempty"`
10952
10953
10954
10955 NextPageToken string `json:"nextPageToken,omitempty"`
10956
10957
10958 PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"`
10959
10960
10961
10962 googleapi.ServerResponse `json:"-"`
10963
10964
10965
10966
10967
10968
10969
10970 ForceSendFields []string `json:"-"`
10971
10972
10973
10974
10975
10976
10977
10978 NullFields []string `json:"-"`
10979 }
10980
10981 func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) {
10982 type NoMethod PlacementStrategiesListResponse
10983 raw := NoMethod(*s)
10984 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
10985 }
10986
10987
10988 type PlacementStrategy struct {
10989
10990
10991 AccountId int64 `json:"accountId,omitempty,string"`
10992
10993
10994
10995 Id int64 `json:"id,omitempty,string"`
10996
10997
10998
10999 Kind string `json:"kind,omitempty"`
11000
11001
11002
11003
11004 Name string `json:"name,omitempty"`
11005
11006
11007
11008 googleapi.ServerResponse `json:"-"`
11009
11010
11011
11012
11013
11014
11015
11016 ForceSendFields []string `json:"-"`
11017
11018
11019
11020
11021
11022
11023
11024 NullFields []string `json:"-"`
11025 }
11026
11027 func (s *PlacementStrategy) MarshalJSON() ([]byte, error) {
11028 type NoMethod PlacementStrategy
11029 raw := NoMethod(*s)
11030 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11031 }
11032
11033
11034 type PlacementTag struct {
11035
11036 PlacementId int64 `json:"placementId,omitempty,string"`
11037
11038
11039 TagDatas []*TagData `json:"tagDatas,omitempty"`
11040
11041
11042
11043
11044
11045
11046
11047 ForceSendFields []string `json:"-"`
11048
11049
11050
11051
11052
11053
11054
11055 NullFields []string `json:"-"`
11056 }
11057
11058 func (s *PlacementTag) MarshalJSON() ([]byte, error) {
11059 type NoMethod PlacementTag
11060 raw := NoMethod(*s)
11061 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11062 }
11063
11064
11065 type PlacementsGenerateTagsResponse struct {
11066
11067
11068 Kind string `json:"kind,omitempty"`
11069
11070
11071 PlacementTags []*PlacementTag `json:"placementTags,omitempty"`
11072
11073
11074
11075 googleapi.ServerResponse `json:"-"`
11076
11077
11078
11079
11080
11081
11082
11083 ForceSendFields []string `json:"-"`
11084
11085
11086
11087
11088
11089
11090
11091 NullFields []string `json:"-"`
11092 }
11093
11094 func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) {
11095 type NoMethod PlacementsGenerateTagsResponse
11096 raw := NoMethod(*s)
11097 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11098 }
11099
11100
11101 type PlacementsListResponse struct {
11102
11103
11104 Kind string `json:"kind,omitempty"`
11105
11106
11107
11108 NextPageToken string `json:"nextPageToken,omitempty"`
11109
11110
11111 Placements []*Placement `json:"placements,omitempty"`
11112
11113
11114
11115 googleapi.ServerResponse `json:"-"`
11116
11117
11118
11119
11120
11121
11122
11123 ForceSendFields []string `json:"-"`
11124
11125
11126
11127
11128
11129
11130
11131 NullFields []string `json:"-"`
11132 }
11133
11134 func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) {
11135 type NoMethod PlacementsListResponse
11136 raw := NoMethod(*s)
11137 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11138 }
11139
11140
11141
11142 type PlatformType struct {
11143
11144 Id int64 `json:"id,omitempty,string"`
11145
11146
11147
11148 Kind string `json:"kind,omitempty"`
11149
11150
11151 Name string `json:"name,omitempty"`
11152
11153
11154
11155 googleapi.ServerResponse `json:"-"`
11156
11157
11158
11159
11160
11161
11162
11163 ForceSendFields []string `json:"-"`
11164
11165
11166
11167
11168
11169
11170
11171 NullFields []string `json:"-"`
11172 }
11173
11174 func (s *PlatformType) MarshalJSON() ([]byte, error) {
11175 type NoMethod PlatformType
11176 raw := NoMethod(*s)
11177 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11178 }
11179
11180
11181 type PlatformTypesListResponse struct {
11182
11183
11184 Kind string `json:"kind,omitempty"`
11185
11186
11187 PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`
11188
11189
11190
11191 googleapi.ServerResponse `json:"-"`
11192
11193
11194
11195
11196
11197
11198
11199 ForceSendFields []string `json:"-"`
11200
11201
11202
11203
11204
11205
11206
11207 NullFields []string `json:"-"`
11208 }
11209
11210 func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) {
11211 type NoMethod PlatformTypesListResponse
11212 raw := NoMethod(*s)
11213 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11214 }
11215
11216
11217 type PopupWindowProperties struct {
11218
11219
11220
11221 Dimension *Size `json:"dimension,omitempty"`
11222
11223
11224
11225 Offset *OffsetPosition `json:"offset,omitempty"`
11226
11227
11228
11229
11230
11231
11232
11233 PositionType string `json:"positionType,omitempty"`
11234
11235
11236 ShowAddressBar bool `json:"showAddressBar,omitempty"`
11237
11238
11239 ShowMenuBar bool `json:"showMenuBar,omitempty"`
11240
11241
11242 ShowScrollBar bool `json:"showScrollBar,omitempty"`
11243
11244
11245 ShowStatusBar bool `json:"showStatusBar,omitempty"`
11246
11247
11248 ShowToolBar bool `json:"showToolBar,omitempty"`
11249
11250
11251 Title string `json:"title,omitempty"`
11252
11253
11254
11255
11256
11257
11258
11259 ForceSendFields []string `json:"-"`
11260
11261
11262
11263
11264
11265
11266
11267 NullFields []string `json:"-"`
11268 }
11269
11270 func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) {
11271 type NoMethod PopupWindowProperties
11272 raw := NoMethod(*s)
11273 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11274 }
11275
11276
11277
11278 type PostalCode struct {
11279
11280 Code string `json:"code,omitempty"`
11281
11282
11283
11284 CountryCode string `json:"countryCode,omitempty"`
11285
11286
11287
11288 CountryDartId int64 `json:"countryDartId,omitempty,string"`
11289
11290
11291 Id string `json:"id,omitempty"`
11292
11293
11294
11295 Kind string `json:"kind,omitempty"`
11296
11297
11298
11299 googleapi.ServerResponse `json:"-"`
11300
11301
11302
11303
11304
11305
11306
11307 ForceSendFields []string `json:"-"`
11308
11309
11310
11311
11312
11313
11314
11315 NullFields []string `json:"-"`
11316 }
11317
11318 func (s *PostalCode) MarshalJSON() ([]byte, error) {
11319 type NoMethod PostalCode
11320 raw := NoMethod(*s)
11321 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11322 }
11323
11324
11325 type PostalCodesListResponse struct {
11326
11327
11328 Kind string `json:"kind,omitempty"`
11329
11330
11331 PostalCodes []*PostalCode `json:"postalCodes,omitempty"`
11332
11333
11334
11335 googleapi.ServerResponse `json:"-"`
11336
11337
11338
11339
11340
11341
11342
11343 ForceSendFields []string `json:"-"`
11344
11345
11346
11347
11348
11349
11350
11351 NullFields []string `json:"-"`
11352 }
11353
11354 func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) {
11355 type NoMethod PostalCodesListResponse
11356 raw := NoMethod(*s)
11357 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11358 }
11359
11360
11361 type Pricing struct {
11362
11363
11364
11365
11366
11367
11368 CapCostType string `json:"capCostType,omitempty"`
11369
11370 EndDate string `json:"endDate,omitempty"`
11371
11372
11373
11374
11375 Flights []*Flight `json:"flights,omitempty"`
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389 GroupType string `json:"groupType,omitempty"`
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402 PricingType string `json:"pricingType,omitempty"`
11403
11404 StartDate string `json:"startDate,omitempty"`
11405
11406
11407
11408
11409
11410
11411
11412 ForceSendFields []string `json:"-"`
11413
11414
11415
11416
11417
11418
11419
11420 NullFields []string `json:"-"`
11421 }
11422
11423 func (s *Pricing) MarshalJSON() ([]byte, error) {
11424 type NoMethod Pricing
11425 raw := NoMethod(*s)
11426 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11427 }
11428
11429
11430 type PricingSchedule struct {
11431
11432
11433
11434
11435
11436
11437 CapCostOption string `json:"capCostOption,omitempty"`
11438
11439 EndDate string `json:"endDate,omitempty"`
11440
11441
11442
11443 Flighted bool `json:"flighted,omitempty"`
11444
11445
11446
11447
11448 FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
11449
11450
11451 PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"`
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 PricingType string `json:"pricingType,omitempty"`
11464
11465 StartDate string `json:"startDate,omitempty"`
11466
11467 TestingStartDate string `json:"testingStartDate,omitempty"`
11468
11469
11470
11471
11472
11473
11474
11475 ForceSendFields []string `json:"-"`
11476
11477
11478
11479
11480
11481
11482
11483 NullFields []string `json:"-"`
11484 }
11485
11486 func (s *PricingSchedule) MarshalJSON() ([]byte, error) {
11487 type NoMethod PricingSchedule
11488 raw := NoMethod(*s)
11489 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11490 }
11491
11492
11493 type PricingSchedulePricingPeriod struct {
11494 EndDate string `json:"endDate,omitempty"`
11495
11496
11497 PricingComment string `json:"pricingComment,omitempty"`
11498
11499
11500
11501
11502 RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"`
11503
11504 StartDate string `json:"startDate,omitempty"`
11505
11506
11507
11508 Units int64 `json:"units,omitempty,string"`
11509
11510
11511
11512
11513
11514
11515
11516 ForceSendFields []string `json:"-"`
11517
11518
11519
11520
11521
11522
11523
11524 NullFields []string `json:"-"`
11525 }
11526
11527 func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) {
11528 type NoMethod PricingSchedulePricingPeriod
11529 raw := NoMethod(*s)
11530 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11531 }
11532
11533
11534 type Project struct {
11535
11536 AccountId int64 `json:"accountId,omitempty,string"`
11537
11538
11539 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551 AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"`
11552
11553
11554
11555
11556
11557
11558 AudienceGender string `json:"audienceGender,omitempty"`
11559
11560
11561
11562
11563
11564 Budget int64 `json:"budget,omitempty,string"`
11565
11566
11567 ClientBillingCode string `json:"clientBillingCode,omitempty"`
11568
11569
11570 ClientName string `json:"clientName,omitempty"`
11571
11572 EndDate string `json:"endDate,omitempty"`
11573
11574
11575 Id int64 `json:"id,omitempty,string"`
11576
11577
11578
11579 Kind string `json:"kind,omitempty"`
11580
11581
11582
11583 LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
11584
11585
11586 Name string `json:"name,omitempty"`
11587
11588
11589 Overview string `json:"overview,omitempty"`
11590
11591 StartDate string `json:"startDate,omitempty"`
11592
11593
11594 SubaccountId int64 `json:"subaccountId,omitempty,string"`
11595
11596
11597 TargetClicks int64 `json:"targetClicks,omitempty,string"`
11598
11599
11600
11601 TargetConversions int64 `json:"targetConversions,omitempty,string"`
11602
11603
11604 TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"`
11605
11606
11607 TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"`
11608
11609
11610
11611 TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"`
11612
11613
11614 TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"`
11615
11616
11617
11618 TargetImpressions int64 `json:"targetImpressions,omitempty,string"`
11619
11620
11621
11622 googleapi.ServerResponse `json:"-"`
11623
11624
11625
11626
11627
11628
11629
11630 ForceSendFields []string `json:"-"`
11631
11632
11633
11634
11635
11636
11637
11638 NullFields []string `json:"-"`
11639 }
11640
11641 func (s *Project) MarshalJSON() ([]byte, error) {
11642 type NoMethod Project
11643 raw := NoMethod(*s)
11644 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11645 }
11646
11647
11648 type ProjectsListResponse struct {
11649
11650
11651 Kind string `json:"kind,omitempty"`
11652
11653
11654
11655 NextPageToken string `json:"nextPageToken,omitempty"`
11656
11657
11658 Projects []*Project `json:"projects,omitempty"`
11659
11660
11661
11662 googleapi.ServerResponse `json:"-"`
11663
11664
11665
11666
11667
11668
11669
11670 ForceSendFields []string `json:"-"`
11671
11672
11673
11674
11675
11676
11677
11678 NullFields []string `json:"-"`
11679 }
11680
11681 func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) {
11682 type NoMethod ProjectsListResponse
11683 raw := NoMethod(*s)
11684 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11685 }
11686
11687
11688
11689 type ReachReportCompatibleFields struct {
11690
11691
11692 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
11693
11694
11695
11696 Dimensions []*Dimension `json:"dimensions,omitempty"`
11697
11698
11699
11700 Kind string `json:"kind,omitempty"`
11701
11702
11703
11704 Metrics []*Metric `json:"metrics,omitempty"`
11705
11706
11707
11708
11709 PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"`
11710
11711
11712
11713 ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"`
11714
11715
11716
11717
11718
11719
11720
11721 ForceSendFields []string `json:"-"`
11722
11723
11724
11725
11726
11727
11728
11729
11730 NullFields []string `json:"-"`
11731 }
11732
11733 func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) {
11734 type NoMethod ReachReportCompatibleFields
11735 raw := NoMethod(*s)
11736 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11737 }
11738
11739
11740 type Recipient struct {
11741
11742
11743
11744
11745
11746 DeliveryType string `json:"deliveryType,omitempty"`
11747
11748
11749 Email string `json:"email,omitempty"`
11750
11751
11752
11753 Kind string `json:"kind,omitempty"`
11754
11755
11756
11757
11758
11759
11760
11761 ForceSendFields []string `json:"-"`
11762
11763
11764
11765
11766
11767
11768
11769 NullFields []string `json:"-"`
11770 }
11771
11772 func (s *Recipient) MarshalJSON() ([]byte, error) {
11773 type NoMethod Recipient
11774 raw := NoMethod(*s)
11775 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11776 }
11777
11778
11779
11780 type Region struct {
11781
11782
11783 CountryCode string `json:"countryCode,omitempty"`
11784
11785
11786 CountryDartId int64 `json:"countryDartId,omitempty,string"`
11787
11788
11789 DartId int64 `json:"dartId,omitempty,string"`
11790
11791
11792
11793 Kind string `json:"kind,omitempty"`
11794
11795
11796 Name string `json:"name,omitempty"`
11797
11798
11799 RegionCode string `json:"regionCode,omitempty"`
11800
11801
11802
11803
11804
11805
11806
11807 ForceSendFields []string `json:"-"`
11808
11809
11810
11811
11812
11813
11814
11815 NullFields []string `json:"-"`
11816 }
11817
11818 func (s *Region) MarshalJSON() ([]byte, error) {
11819 type NoMethod Region
11820 raw := NoMethod(*s)
11821 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11822 }
11823
11824
11825 type RegionsListResponse struct {
11826
11827
11828 Kind string `json:"kind,omitempty"`
11829
11830
11831 Regions []*Region `json:"regions,omitempty"`
11832
11833
11834
11835 googleapi.ServerResponse `json:"-"`
11836
11837
11838
11839
11840
11841
11842
11843 ForceSendFields []string `json:"-"`
11844
11845
11846
11847
11848
11849
11850
11851 NullFields []string `json:"-"`
11852 }
11853
11854 func (s *RegionsListResponse) MarshalJSON() ([]byte, error) {
11855 type NoMethod RegionsListResponse
11856 raw := NoMethod(*s)
11857 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11858 }
11859
11860
11861
11862
11863
11864
11865
11866
11867 type RemarketingList struct {
11868
11869
11870 AccountId int64 `json:"accountId,omitempty,string"`
11871
11872
11873 Active bool `json:"active,omitempty"`
11874
11875
11876
11877 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
11878
11879
11880
11881 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
11882
11883
11884 Description string `json:"description,omitempty"`
11885
11886
11887 Id int64 `json:"id,omitempty,string"`
11888
11889
11890
11891 Kind string `json:"kind,omitempty"`
11892
11893
11894
11895
11896 LifeSpan int64 `json:"lifeSpan,omitempty,string"`
11897
11898
11899
11900 ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"`
11901
11902
11903
11904 ListSize int64 `json:"listSize,omitempty,string"`
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920 ListSource string `json:"listSource,omitempty"`
11921
11922
11923
11924 Name string `json:"name,omitempty"`
11925
11926
11927
11928
11929 SubaccountId int64 `json:"subaccountId,omitempty,string"`
11930
11931
11932
11933 googleapi.ServerResponse `json:"-"`
11934
11935
11936
11937
11938
11939
11940
11941 ForceSendFields []string `json:"-"`
11942
11943
11944
11945
11946
11947
11948
11949 NullFields []string `json:"-"`
11950 }
11951
11952 func (s *RemarketingList) MarshalJSON() ([]byte, error) {
11953 type NoMethod RemarketingList
11954 raw := NoMethod(*s)
11955 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
11956 }
11957
11958
11959
11960
11961
11962 type RemarketingListShare struct {
11963
11964
11965 Kind string `json:"kind,omitempty"`
11966
11967
11968
11969 RemarketingListId int64 `json:"remarketingListId,omitempty,string"`
11970
11971
11972 SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"`
11973
11974
11975
11976 SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"`
11977
11978
11979
11980 googleapi.ServerResponse `json:"-"`
11981
11982
11983
11984
11985
11986
11987
11988 ForceSendFields []string `json:"-"`
11989
11990
11991
11992
11993
11994
11995
11996 NullFields []string `json:"-"`
11997 }
11998
11999 func (s *RemarketingListShare) MarshalJSON() ([]byte, error) {
12000 type NoMethod RemarketingListShare
12001 raw := NoMethod(*s)
12002 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12003 }
12004
12005
12006 type RemarketingListsListResponse struct {
12007
12008
12009 Kind string `json:"kind,omitempty"`
12010
12011
12012
12013 NextPageToken string `json:"nextPageToken,omitempty"`
12014
12015
12016 RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"`
12017
12018
12019
12020 googleapi.ServerResponse `json:"-"`
12021
12022
12023
12024
12025
12026
12027
12028 ForceSendFields []string `json:"-"`
12029
12030
12031
12032
12033
12034
12035
12036 NullFields []string `json:"-"`
12037 }
12038
12039 func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) {
12040 type NoMethod RemarketingListsListResponse
12041 raw := NoMethod(*s)
12042 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12043 }
12044
12045
12046 type Report struct {
12047
12048 AccountId int64 `json:"accountId,omitempty,string"`
12049
12050
12051 Criteria *ReportCriteria `json:"criteria,omitempty"`
12052
12053
12054
12055 CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"`
12056
12057
12058 Delivery *ReportDelivery `json:"delivery,omitempty"`
12059
12060
12061 Etag string `json:"etag,omitempty"`
12062
12063
12064
12065 FileName string `json:"fileName,omitempty"`
12066
12067
12068
12069 FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"`
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079 Format string `json:"format,omitempty"`
12080
12081
12082 Id int64 `json:"id,omitempty,string"`
12083
12084
12085 Kind string `json:"kind,omitempty"`
12086
12087
12088
12089 LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"`
12090
12091
12092 Name string `json:"name,omitempty"`
12093
12094
12095 OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"`
12096
12097
12098
12099 PathAttributionCriteria *ReportPathAttributionCriteria `json:"pathAttributionCriteria,omitempty"`
12100
12101
12102 PathCriteria *ReportPathCriteria `json:"pathCriteria,omitempty"`
12103
12104
12105
12106 PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"`
12107
12108
12109 ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"`
12110
12111
12112
12113
12114 Schedule *ReportSchedule `json:"schedule,omitempty"`
12115
12116
12117
12118 SubAccountId int64 `json:"subAccountId,omitempty,string"`
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130 Type string `json:"type,omitempty"`
12131
12132
12133
12134 googleapi.ServerResponse `json:"-"`
12135
12136
12137
12138
12139
12140
12141
12142 ForceSendFields []string `json:"-"`
12143
12144
12145
12146
12147
12148
12149
12150 NullFields []string `json:"-"`
12151 }
12152
12153 func (s *Report) MarshalJSON() ([]byte, error) {
12154 type NoMethod Report
12155 raw := NoMethod(*s)
12156 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12157 }
12158
12159
12160 type ReportCriteria struct {
12161
12162 Activities *Activities `json:"activities,omitempty"`
12163
12164
12165 CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"`
12166
12167
12168 DateRange *DateRange `json:"dateRange,omitempty"`
12169
12170
12171
12172
12173 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
12174
12175
12176
12177 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
12178
12179
12180 MetricNames []string `json:"metricNames,omitempty"`
12181
12182
12183
12184
12185
12186
12187
12188 ForceSendFields []string `json:"-"`
12189
12190
12191
12192
12193
12194
12195
12196 NullFields []string `json:"-"`
12197 }
12198
12199 func (s *ReportCriteria) MarshalJSON() ([]byte, error) {
12200 type NoMethod ReportCriteria
12201 raw := NoMethod(*s)
12202 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12203 }
12204
12205
12206
12207 type ReportCrossDimensionReachCriteria struct {
12208
12209 Breakdown []*SortedDimension `json:"breakdown,omitempty"`
12210
12211
12212 DateRange *DateRange `json:"dateRange,omitempty"`
12213
12214
12215
12216
12217
12218
12219
12220
12221 Dimension string `json:"dimension,omitempty"`
12222
12223
12224
12225 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
12226
12227
12228 MetricNames []string `json:"metricNames,omitempty"`
12229
12230
12231
12232 OverlapMetricNames []string `json:"overlapMetricNames,omitempty"`
12233
12234
12235 Pivoted bool `json:"pivoted,omitempty"`
12236
12237
12238
12239
12240
12241
12242
12243 ForceSendFields []string `json:"-"`
12244
12245
12246
12247
12248
12249
12250
12251 NullFields []string `json:"-"`
12252 }
12253
12254 func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) {
12255 type NoMethod ReportCrossDimensionReachCriteria
12256 raw := NoMethod(*s)
12257 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12258 }
12259
12260
12261 type ReportDelivery struct {
12262
12263 EmailOwner bool `json:"emailOwner,omitempty"`
12264
12265
12266
12267
12268
12269
12270
12271 EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"`
12272
12273
12274 Message string `json:"message,omitempty"`
12275
12276
12277 Recipients []*Recipient `json:"recipients,omitempty"`
12278
12279
12280
12281
12282
12283
12284
12285 ForceSendFields []string `json:"-"`
12286
12287
12288
12289
12290
12291
12292
12293 NullFields []string `json:"-"`
12294 }
12295
12296 func (s *ReportDelivery) MarshalJSON() ([]byte, error) {
12297 type NoMethod ReportDelivery
12298 raw := NoMethod(*s)
12299 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12300 }
12301
12302
12303
12304 type ReportFloodlightCriteria struct {
12305
12306
12307 CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"`
12308
12309
12310 DateRange *DateRange `json:"dateRange,omitempty"`
12311
12312
12313
12314
12315 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
12316
12317
12318 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
12319
12320
12321
12322
12323
12324 FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`
12325
12326
12327 MetricNames []string `json:"metricNames,omitempty"`
12328
12329
12330 ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"`
12331
12332
12333
12334
12335
12336
12337
12338
12339 ForceSendFields []string `json:"-"`
12340
12341
12342
12343
12344
12345
12346
12347
12348 NullFields []string `json:"-"`
12349 }
12350
12351 func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) {
12352 type NoMethod ReportFloodlightCriteria
12353 raw := NoMethod(*s)
12354 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12355 }
12356
12357
12358
12359 type ReportFloodlightCriteriaReportProperties struct {
12360
12361
12362 IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"`
12363
12364
12365
12366
12367
12368
12369 IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"`
12370
12371
12372
12373
12374
12375 IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"`
12376
12377
12378
12379
12380
12381
12382
12383
12384 ForceSendFields []string `json:"-"`
12385
12386
12387
12388
12389
12390
12391
12392
12393 NullFields []string `json:"-"`
12394 }
12395
12396 func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) {
12397 type NoMethod ReportFloodlightCriteriaReportProperties
12398 raw := NoMethod(*s)
12399 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12400 }
12401
12402
12403
12404 type ReportPathAttributionCriteria struct {
12405
12406 ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"`
12407
12408
12409 CustomChannelGrouping *ChannelGrouping `json:"customChannelGrouping,omitempty"`
12410
12411
12412 DateRange *DateRange `json:"dateRange,omitempty"`
12413
12414
12415 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
12416
12417
12418
12419
12420
12421 FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`
12422
12423
12424 MetricNames []string `json:"metricNames,omitempty"`
12425
12426
12427 PathFilters []*PathFilter `json:"pathFilters,omitempty"`
12428
12429
12430
12431
12432
12433
12434
12435 ForceSendFields []string `json:"-"`
12436
12437
12438
12439
12440
12441
12442
12443
12444 NullFields []string `json:"-"`
12445 }
12446
12447 func (s *ReportPathAttributionCriteria) MarshalJSON() ([]byte, error) {
12448 type NoMethod ReportPathAttributionCriteria
12449 raw := NoMethod(*s)
12450 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12451 }
12452
12453
12454 type ReportPathCriteria struct {
12455
12456 ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"`
12457
12458
12459 CustomChannelGrouping *ChannelGrouping `json:"customChannelGrouping,omitempty"`
12460
12461
12462 DateRange *DateRange `json:"dateRange,omitempty"`
12463
12464
12465 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
12466
12467
12468
12469
12470
12471 FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`
12472
12473
12474 MetricNames []string `json:"metricNames,omitempty"`
12475
12476
12477 PathFilters []*PathFilter `json:"pathFilters,omitempty"`
12478
12479
12480
12481
12482
12483
12484
12485 ForceSendFields []string `json:"-"`
12486
12487
12488
12489
12490
12491
12492
12493
12494 NullFields []string `json:"-"`
12495 }
12496
12497 func (s *ReportPathCriteria) MarshalJSON() ([]byte, error) {
12498 type NoMethod ReportPathCriteria
12499 raw := NoMethod(*s)
12500 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12501 }
12502
12503
12504
12505 type ReportPathToConversionCriteria struct {
12506
12507 ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"`
12508
12509
12510
12511 ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"`
12512
12513
12514
12515 CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"`
12516
12517
12518
12519 CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"`
12520
12521
12522 DateRange *DateRange `json:"dateRange,omitempty"`
12523
12524
12525
12526
12527
12528 FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`
12529
12530
12531 MetricNames []string `json:"metricNames,omitempty"`
12532
12533
12534
12535 PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"`
12536
12537
12538 ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"`
12539
12540
12541
12542
12543
12544
12545
12546 ForceSendFields []string `json:"-"`
12547
12548
12549
12550
12551
12552
12553
12554
12555 NullFields []string `json:"-"`
12556 }
12557
12558 func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) {
12559 type NoMethod ReportPathToConversionCriteria
12560 raw := NoMethod(*s)
12561 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12562 }
12563
12564
12565
12566 type ReportPathToConversionCriteriaReportProperties struct {
12567
12568
12569
12570
12571 ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"`
12572
12573
12574
12575
12576
12577 ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"`
12578
12579
12580 IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"`
12581
12582
12583
12584
12585
12586
12587 IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"`
12588
12589
12590
12591
12592
12593 IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"`
12594
12595
12596
12597
12598
12599
12600 MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"`
12601
12602
12603
12604
12605
12606
12607 MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"`
12608
12609
12610
12611
12612 MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"`
12613
12614
12615 PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"`
12616
12617
12618
12619
12620
12621
12622
12623
12624 ForceSendFields []string `json:"-"`
12625
12626
12627
12628
12629
12630
12631
12632
12633 NullFields []string `json:"-"`
12634 }
12635
12636 func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) {
12637 type NoMethod ReportPathToConversionCriteriaReportProperties
12638 raw := NoMethod(*s)
12639 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12640 }
12641
12642
12643
12644 type ReportReachCriteria struct {
12645
12646 Activities *Activities `json:"activities,omitempty"`
12647
12648
12649 CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"`
12650
12651
12652 DateRange *DateRange `json:"dateRange,omitempty"`
12653
12654
12655
12656
12657 DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`
12658
12659
12660 Dimensions []*SortedDimension `json:"dimensions,omitempty"`
12661
12662
12663
12664
12665 EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"`
12666
12667
12668 MetricNames []string `json:"metricNames,omitempty"`
12669
12670
12671
12672 ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"`
12673
12674
12675
12676
12677
12678
12679
12680 ForceSendFields []string `json:"-"`
12681
12682
12683
12684
12685
12686
12687
12688 NullFields []string `json:"-"`
12689 }
12690
12691 func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) {
12692 type NoMethod ReportReachCriteria
12693 raw := NoMethod(*s)
12694 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12695 }
12696
12697
12698
12699
12700 type ReportSchedule struct {
12701
12702
12703 Active bool `json:"active,omitempty"`
12704
12705
12706
12707
12708 Every int64 `json:"every,omitempty"`
12709
12710 ExpirationDate string `json:"expirationDate,omitempty"`
12711
12712
12713
12714
12715
12716
12717 Repeats string `json:"repeats,omitempty"`
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730 RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"`
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743 RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"`
12744
12745 StartDate string `json:"startDate,omitempty"`
12746
12747
12748
12749
12750
12751
12752
12753 ForceSendFields []string `json:"-"`
12754
12755
12756
12757
12758
12759
12760
12761 NullFields []string `json:"-"`
12762 }
12763
12764 func (s *ReportSchedule) MarshalJSON() ([]byte, error) {
12765 type NoMethod ReportSchedule
12766 raw := NoMethod(*s)
12767 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12768 }
12769
12770
12771
12772 type ReportCompatibleFields struct {
12773
12774
12775 DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`
12776
12777
12778
12779 Dimensions []*Dimension `json:"dimensions,omitempty"`
12780
12781
12782
12783 Kind string `json:"kind,omitempty"`
12784
12785
12786
12787 Metrics []*Metric `json:"metrics,omitempty"`
12788
12789
12790
12791
12792 PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"`
12793
12794
12795
12796
12797
12798
12799
12800 ForceSendFields []string `json:"-"`
12801
12802
12803
12804
12805
12806
12807
12808
12809 NullFields []string `json:"-"`
12810 }
12811
12812 func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) {
12813 type NoMethod ReportCompatibleFields
12814 raw := NoMethod(*s)
12815 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12816 }
12817
12818
12819 type ReportList struct {
12820
12821 Etag string `json:"etag,omitempty"`
12822
12823
12824 Items []*Report `json:"items,omitempty"`
12825
12826
12827 Kind string `json:"kind,omitempty"`
12828
12829
12830
12831
12832
12833 NextPageToken string `json:"nextPageToken,omitempty"`
12834
12835
12836
12837 googleapi.ServerResponse `json:"-"`
12838
12839
12840
12841
12842
12843
12844
12845 ForceSendFields []string `json:"-"`
12846
12847
12848
12849
12850
12851
12852
12853 NullFields []string `json:"-"`
12854 }
12855
12856 func (s *ReportList) MarshalJSON() ([]byte, error) {
12857 type NoMethod ReportList
12858 raw := NoMethod(*s)
12859 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12860 }
12861
12862
12863 type ReportsConfiguration struct {
12864
12865
12866
12867
12868 ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"`
12869
12870
12871
12872 LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891 ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"`
12892
12893
12894
12895
12896
12897
12898
12899
12900 ForceSendFields []string `json:"-"`
12901
12902
12903
12904
12905
12906
12907
12908
12909 NullFields []string `json:"-"`
12910 }
12911
12912 func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) {
12913 type NoMethod ReportsConfiguration
12914 raw := NoMethod(*s)
12915 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12916 }
12917
12918
12919 type RichMediaExitOverride struct {
12920
12921
12922 ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
12923
12924
12925
12926 Enabled bool `json:"enabled,omitempty"`
12927
12928
12929
12930 ExitId int64 `json:"exitId,omitempty,string"`
12931
12932
12933
12934
12935
12936
12937
12938 ForceSendFields []string `json:"-"`
12939
12940
12941
12942
12943
12944
12945
12946
12947 NullFields []string `json:"-"`
12948 }
12949
12950 func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) {
12951 type NoMethod RichMediaExitOverride
12952 raw := NoMethod(*s)
12953 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12954 }
12955
12956
12957
12958 type Rule struct {
12959
12960
12961 AssetId int64 `json:"assetId,omitempty,string"`
12962
12963
12964 Name string `json:"name,omitempty"`
12965
12966
12967
12968
12969 TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"`
12970
12971
12972
12973
12974
12975
12976
12977 ForceSendFields []string `json:"-"`
12978
12979
12980
12981
12982
12983
12984
12985 NullFields []string `json:"-"`
12986 }
12987
12988 func (s *Rule) MarshalJSON() ([]byte, error) {
12989 type NoMethod Rule
12990 raw := NoMethod(*s)
12991 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
12992 }
12993
12994
12995 type Site struct {
12996
12997
12998 AccountId int64 `json:"accountId,omitempty,string"`
12999
13000
13001 Approved bool `json:"approved,omitempty"`
13002
13003
13004
13005 DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`
13006
13007
13008
13009 DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`
13010
13011
13012 Id int64 `json:"id,omitempty,string"`
13013
13014
13015
13016 IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
13017
13018
13019
13020 KeyName string `json:"keyName,omitempty"`
13021
13022
13023
13024 Kind string `json:"kind,omitempty"`
13025
13026
13027
13028
13029
13030
13031 Name string `json:"name,omitempty"`
13032
13033
13034 SiteContacts []*SiteContact `json:"siteContacts,omitempty"`
13035
13036
13037 SiteSettings *SiteSettings `json:"siteSettings,omitempty"`
13038
13039
13040
13041 SubaccountId int64 `json:"subaccountId,omitempty,string"`
13042
13043
13044
13045
13046
13047 VideoSettings *SiteVideoSettings `json:"videoSettings,omitempty"`
13048
13049
13050
13051 googleapi.ServerResponse `json:"-"`
13052
13053
13054
13055
13056
13057
13058
13059 ForceSendFields []string `json:"-"`
13060
13061
13062
13063
13064
13065
13066
13067 NullFields []string `json:"-"`
13068 }
13069
13070 func (s *Site) MarshalJSON() ([]byte, error) {
13071 type NoMethod Site
13072 raw := NoMethod(*s)
13073 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13074 }
13075
13076
13077 type SiteCompanionSetting struct {
13078
13079
13080 CompanionsDisabled bool `json:"companionsDisabled,omitempty"`
13081
13082
13083
13084
13085 EnabledSizes []*Size `json:"enabledSizes,omitempty"`
13086
13087
13088 ImageOnly bool `json:"imageOnly,omitempty"`
13089
13090
13091
13092 Kind string `json:"kind,omitempty"`
13093
13094
13095
13096
13097
13098
13099
13100 ForceSendFields []string `json:"-"`
13101
13102
13103
13104
13105
13106
13107
13108
13109 NullFields []string `json:"-"`
13110 }
13111
13112 func (s *SiteCompanionSetting) MarshalJSON() ([]byte, error) {
13113 type NoMethod SiteCompanionSetting
13114 raw := NoMethod(*s)
13115 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13116 }
13117
13118
13119 type SiteContact struct {
13120
13121 Address string `json:"address,omitempty"`
13122
13123
13124
13125
13126
13127
13128 ContactType string `json:"contactType,omitempty"`
13129
13130
13131 Email string `json:"email,omitempty"`
13132
13133
13134 FirstName string `json:"firstName,omitempty"`
13135
13136
13137
13138 Id int64 `json:"id,omitempty,string"`
13139
13140
13141 LastName string `json:"lastName,omitempty"`
13142
13143
13144 Phone string `json:"phone,omitempty"`
13145
13146
13147 Title string `json:"title,omitempty"`
13148
13149
13150
13151
13152
13153
13154
13155 ForceSendFields []string `json:"-"`
13156
13157
13158
13159
13160
13161
13162
13163 NullFields []string `json:"-"`
13164 }
13165
13166 func (s *SiteContact) MarshalJSON() ([]byte, error) {
13167 type NoMethod SiteContact
13168 raw := NoMethod(*s)
13169 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13170 }
13171
13172
13173 type SiteSettings struct {
13174
13175
13176 ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
13177
13178
13179
13180
13181
13182 AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"`
13183
13184
13185 DisableNewCookie bool `json:"disableNewCookie,omitempty"`
13186
13187
13188
13189 TagSetting *TagSetting `json:"tagSetting,omitempty"`
13190
13191
13192
13193
13194
13195
13196 VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"`
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214 VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"`
13215
13216
13217
13218
13219
13220
13221
13222 ForceSendFields []string `json:"-"`
13223
13224
13225
13226
13227
13228
13229
13230
13231 NullFields []string `json:"-"`
13232 }
13233
13234 func (s *SiteSettings) MarshalJSON() ([]byte, error) {
13235 type NoMethod SiteSettings
13236 raw := NoMethod(*s)
13237 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13238 }
13239
13240
13241 type SiteSkippableSetting struct {
13242
13243
13244 Kind string `json:"kind,omitempty"`
13245
13246
13247
13248 ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`
13249
13250
13251
13252 SkipOffset *VideoOffset `json:"skipOffset,omitempty"`
13253
13254
13255
13256 Skippable bool `json:"skippable,omitempty"`
13257
13258
13259
13260
13261
13262
13263
13264 ForceSendFields []string `json:"-"`
13265
13266
13267
13268
13269
13270
13271
13272 NullFields []string `json:"-"`
13273 }
13274
13275 func (s *SiteSkippableSetting) MarshalJSON() ([]byte, error) {
13276 type NoMethod SiteSkippableSetting
13277 raw := NoMethod(*s)
13278 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13279 }
13280
13281
13282 type SiteTranscodeSetting struct {
13283
13284
13285
13286 EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"`
13287
13288
13289
13290 Kind string `json:"kind,omitempty"`
13291
13292
13293
13294
13295
13296
13297
13298 ForceSendFields []string `json:"-"`
13299
13300
13301
13302
13303
13304
13305
13306
13307 NullFields []string `json:"-"`
13308 }
13309
13310 func (s *SiteTranscodeSetting) MarshalJSON() ([]byte, error) {
13311 type NoMethod SiteTranscodeSetting
13312 raw := NoMethod(*s)
13313 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13314 }
13315
13316
13317 type SiteVideoSettings struct {
13318
13319
13320 CompanionSettings *SiteCompanionSetting `json:"companionSettings,omitempty"`
13321
13322
13323
13324 Kind string `json:"kind,omitempty"`
13325
13326
13327 ObaEnabled bool `json:"obaEnabled,omitempty"`
13328
13329
13330
13331
13332 ObaSettings *ObaIcon `json:"obaSettings,omitempty"`
13333
13334
13335
13336
13337
13338
13339
13340
13341 Orientation string `json:"orientation,omitempty"`
13342
13343
13344
13345
13346 SkippableSettings *SiteSkippableSetting `json:"skippableSettings,omitempty"`
13347
13348
13349
13350
13351 TranscodeSettings *SiteTranscodeSetting `json:"transcodeSettings,omitempty"`
13352
13353
13354
13355
13356
13357
13358
13359 ForceSendFields []string `json:"-"`
13360
13361
13362
13363
13364
13365
13366
13367
13368 NullFields []string `json:"-"`
13369 }
13370
13371 func (s *SiteVideoSettings) MarshalJSON() ([]byte, error) {
13372 type NoMethod SiteVideoSettings
13373 raw := NoMethod(*s)
13374 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13375 }
13376
13377
13378 type SitesListResponse struct {
13379
13380
13381 Kind string `json:"kind,omitempty"`
13382
13383
13384
13385 NextPageToken string `json:"nextPageToken,omitempty"`
13386
13387
13388 Sites []*Site `json:"sites,omitempty"`
13389
13390
13391
13392 googleapi.ServerResponse `json:"-"`
13393
13394
13395
13396
13397
13398
13399
13400 ForceSendFields []string `json:"-"`
13401
13402
13403
13404
13405
13406
13407
13408 NullFields []string `json:"-"`
13409 }
13410
13411 func (s *SitesListResponse) MarshalJSON() ([]byte, error) {
13412 type NoMethod SitesListResponse
13413 raw := NoMethod(*s)
13414 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13415 }
13416
13417
13418
13419 type Size struct {
13420
13421
13422 Height int64 `json:"height,omitempty"`
13423
13424
13425 Iab bool `json:"iab,omitempty"`
13426
13427
13428 Id int64 `json:"id,omitempty,string"`
13429
13430
13431
13432 Kind string `json:"kind,omitempty"`
13433
13434
13435
13436 Width int64 `json:"width,omitempty"`
13437
13438
13439
13440 googleapi.ServerResponse `json:"-"`
13441
13442
13443
13444
13445
13446
13447
13448 ForceSendFields []string `json:"-"`
13449
13450
13451
13452
13453
13454
13455
13456 NullFields []string `json:"-"`
13457 }
13458
13459 func (s *Size) MarshalJSON() ([]byte, error) {
13460 type NoMethod Size
13461 raw := NoMethod(*s)
13462 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13463 }
13464
13465
13466 type SizesListResponse struct {
13467
13468
13469 Kind string `json:"kind,omitempty"`
13470
13471
13472 Sizes []*Size `json:"sizes,omitempty"`
13473
13474
13475
13476 googleapi.ServerResponse `json:"-"`
13477
13478
13479
13480
13481
13482
13483
13484 ForceSendFields []string `json:"-"`
13485
13486
13487
13488
13489
13490
13491
13492 NullFields []string `json:"-"`
13493 }
13494
13495 func (s *SizesListResponse) MarshalJSON() ([]byte, error) {
13496 type NoMethod SizesListResponse
13497 raw := NoMethod(*s)
13498 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13499 }
13500
13501
13502 type SkippableSetting struct {
13503
13504
13505 Kind string `json:"kind,omitempty"`
13506
13507
13508
13509 ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`
13510
13511
13512
13513
13514 SkipOffset *VideoOffset `json:"skipOffset,omitempty"`
13515
13516
13517
13518 Skippable bool `json:"skippable,omitempty"`
13519
13520
13521
13522
13523
13524
13525
13526 ForceSendFields []string `json:"-"`
13527
13528
13529
13530
13531
13532
13533
13534 NullFields []string `json:"-"`
13535 }
13536
13537 func (s *SkippableSetting) MarshalJSON() ([]byte, error) {
13538 type NoMethod SkippableSetting
13539 raw := NoMethod(*s)
13540 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13541 }
13542
13543
13544 type SortedDimension struct {
13545
13546
13547 Kind string `json:"kind,omitempty"`
13548
13549
13550 Name string `json:"name,omitempty"`
13551
13552
13553
13554
13555
13556
13557 SortOrder string `json:"sortOrder,omitempty"`
13558
13559
13560
13561
13562
13563
13564
13565 ForceSendFields []string `json:"-"`
13566
13567
13568
13569
13570
13571
13572
13573 NullFields []string `json:"-"`
13574 }
13575
13576 func (s *SortedDimension) MarshalJSON() ([]byte, error) {
13577 type NoMethod SortedDimension
13578 raw := NoMethod(*s)
13579 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13580 }
13581
13582
13583 type Subaccount struct {
13584
13585
13586 AccountId int64 `json:"accountId,omitempty,string"`
13587
13588
13589
13590 AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`
13591
13592
13593 Id int64 `json:"id,omitempty,string"`
13594
13595
13596
13597 Kind string `json:"kind,omitempty"`
13598
13599
13600
13601
13602 Name string `json:"name,omitempty"`
13603
13604
13605
13606 googleapi.ServerResponse `json:"-"`
13607
13608
13609
13610
13611
13612
13613
13614 ForceSendFields []string `json:"-"`
13615
13616
13617
13618
13619
13620
13621
13622 NullFields []string `json:"-"`
13623 }
13624
13625 func (s *Subaccount) MarshalJSON() ([]byte, error) {
13626 type NoMethod Subaccount
13627 raw := NoMethod(*s)
13628 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13629 }
13630
13631
13632 type SubaccountsListResponse struct {
13633
13634
13635 Kind string `json:"kind,omitempty"`
13636
13637
13638
13639 NextPageToken string `json:"nextPageToken,omitempty"`
13640
13641
13642 Subaccounts []*Subaccount `json:"subaccounts,omitempty"`
13643
13644
13645
13646 googleapi.ServerResponse `json:"-"`
13647
13648
13649
13650
13651
13652
13653
13654 ForceSendFields []string `json:"-"`
13655
13656
13657
13658
13659
13660
13661
13662 NullFields []string `json:"-"`
13663 }
13664
13665 func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) {
13666 type NoMethod SubaccountsListResponse
13667 raw := NoMethod(*s)
13668 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13669 }
13670
13671
13672 type TagData struct {
13673
13674
13675 AdId int64 `json:"adId,omitempty,string"`
13676
13677
13678 ClickTag string `json:"clickTag,omitempty"`
13679
13680
13681
13682 CreativeId int64 `json:"creativeId,omitempty,string"`
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707 Format string `json:"format,omitempty"`
13708
13709
13710 ImpressionTag string `json:"impressionTag,omitempty"`
13711
13712
13713
13714
13715
13716
13717
13718 ForceSendFields []string `json:"-"`
13719
13720
13721
13722
13723
13724
13725
13726 NullFields []string `json:"-"`
13727 }
13728
13729 func (s *TagData) MarshalJSON() ([]byte, error) {
13730 type NoMethod TagData
13731 raw := NoMethod(*s)
13732 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13733 }
13734
13735
13736 type TagSetting struct {
13737
13738
13739
13740
13741 AdditionalKeyValues string `json:"additionalKeyValues,omitempty"`
13742
13743
13744
13745 IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"`
13746
13747
13748
13749 IncludeClickTracking bool `json:"includeClickTracking,omitempty"`
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760 KeywordOption string `json:"keywordOption,omitempty"`
13761
13762
13763
13764
13765
13766
13767
13768 ForceSendFields []string `json:"-"`
13769
13770
13771
13772
13773
13774
13775
13776
13777 NullFields []string `json:"-"`
13778 }
13779
13780 func (s *TagSetting) MarshalJSON() ([]byte, error) {
13781 type NoMethod TagSetting
13782 raw := NoMethod(*s)
13783 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13784 }
13785
13786
13787 type TagSettings struct {
13788
13789 DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"`
13790
13791
13792 ImageTagEnabled bool `json:"imageTagEnabled,omitempty"`
13793
13794
13795
13796
13797
13798
13799
13800 ForceSendFields []string `json:"-"`
13801
13802
13803
13804
13805
13806
13807
13808
13809 NullFields []string `json:"-"`
13810 }
13811
13812 func (s *TagSettings) MarshalJSON() ([]byte, error) {
13813 type NoMethod TagSettings
13814 raw := NoMethod(*s)
13815 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13816 }
13817
13818
13819 type TargetWindow struct {
13820
13821 CustomHtml string `json:"customHtml,omitempty"`
13822
13823
13824
13825
13826
13827
13828
13829
13830 TargetWindowOption string `json:"targetWindowOption,omitempty"`
13831
13832
13833
13834
13835
13836
13837
13838 ForceSendFields []string `json:"-"`
13839
13840
13841
13842
13843
13844
13845
13846 NullFields []string `json:"-"`
13847 }
13848
13849 func (s *TargetWindow) MarshalJSON() ([]byte, error) {
13850 type NoMethod TargetWindow
13851 raw := NoMethod(*s)
13852 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13853 }
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864 type TargetableRemarketingList struct {
13865
13866
13867 AccountId int64 `json:"accountId,omitempty,string"`
13868
13869
13870 Active bool `json:"active,omitempty"`
13871
13872
13873
13874 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
13875
13876
13877
13878 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
13879
13880
13881 Description string `json:"description,omitempty"`
13882
13883
13884 Id int64 `json:"id,omitempty,string"`
13885
13886
13887
13888 Kind string `json:"kind,omitempty"`
13889
13890
13891
13892 LifeSpan int64 `json:"lifeSpan,omitempty,string"`
13893
13894
13895
13896 ListSize int64 `json:"listSize,omitempty,string"`
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913 ListSource string `json:"listSource,omitempty"`
13914
13915
13916
13917 Name string `json:"name,omitempty"`
13918
13919
13920
13921
13922 SubaccountId int64 `json:"subaccountId,omitempty,string"`
13923
13924
13925
13926 googleapi.ServerResponse `json:"-"`
13927
13928
13929
13930
13931
13932
13933
13934 ForceSendFields []string `json:"-"`
13935
13936
13937
13938
13939
13940
13941
13942 NullFields []string `json:"-"`
13943 }
13944
13945 func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) {
13946 type NoMethod TargetableRemarketingList
13947 raw := NoMethod(*s)
13948 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13949 }
13950
13951
13952
13953 type TargetableRemarketingListsListResponse struct {
13954
13955
13956 Kind string `json:"kind,omitempty"`
13957
13958
13959
13960 NextPageToken string `json:"nextPageToken,omitempty"`
13961
13962
13963 TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"`
13964
13965
13966
13967 googleapi.ServerResponse `json:"-"`
13968
13969
13970
13971
13972
13973
13974
13975 ForceSendFields []string `json:"-"`
13976
13977
13978
13979
13980
13981
13982
13983 NullFields []string `json:"-"`
13984 }
13985
13986 func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) {
13987 type NoMethod TargetableRemarketingListsListResponse
13988 raw := NoMethod(*s)
13989 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
13990 }
13991
13992
13993
13994
13995 type TargetingTemplate struct {
13996
13997
13998
13999 AccountId int64 `json:"accountId,omitempty,string"`
14000
14001
14002
14003 AdvertiserId int64 `json:"advertiserId,omitempty,string"`
14004
14005
14006
14007 AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
14008
14009
14010 DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`
14011
14012
14013 GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`
14014
14015
14016
14017 Id int64 `json:"id,omitempty,string"`
14018
14019
14020 KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`
14021
14022
14023
14024 Kind string `json:"kind,omitempty"`
14025
14026
14027 LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`
14028
14029
14030 ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"`
14031
14032
14033
14034
14035 Name string `json:"name,omitempty"`
14036
14037
14038
14039
14040 SubaccountId int64 `json:"subaccountId,omitempty,string"`
14041
14042
14043 TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
14044
14045
14046
14047 googleapi.ServerResponse `json:"-"`
14048
14049
14050
14051
14052
14053
14054
14055 ForceSendFields []string `json:"-"`
14056
14057
14058
14059
14060
14061
14062
14063 NullFields []string `json:"-"`
14064 }
14065
14066 func (s *TargetingTemplate) MarshalJSON() ([]byte, error) {
14067 type NoMethod TargetingTemplate
14068 raw := NoMethod(*s)
14069 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14070 }
14071
14072
14073 type TargetingTemplatesListResponse struct {
14074
14075
14076 Kind string `json:"kind,omitempty"`
14077
14078
14079
14080 NextPageToken string `json:"nextPageToken,omitempty"`
14081
14082
14083 TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"`
14084
14085
14086
14087 googleapi.ServerResponse `json:"-"`
14088
14089
14090
14091
14092
14093
14094
14095 ForceSendFields []string `json:"-"`
14096
14097
14098
14099
14100
14101
14102
14103 NullFields []string `json:"-"`
14104 }
14105
14106 func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) {
14107 type NoMethod TargetingTemplatesListResponse
14108 raw := NoMethod(*s)
14109 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14110 }
14111
14112
14113 type TechnologyTargeting struct {
14114
14115
14116
14117
14118 Browsers []*Browser `json:"browsers,omitempty"`
14119
14120
14121
14122
14123 ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`
14124
14125
14126
14127
14128
14129 MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`
14130
14131
14132
14133
14134
14135
14136
14137 OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`
14138
14139
14140
14141
14142
14143
14144
14145 OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`
14146
14147
14148
14149
14150
14151 PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`
14152
14153
14154
14155
14156
14157
14158
14159 ForceSendFields []string `json:"-"`
14160
14161
14162
14163
14164
14165
14166
14167 NullFields []string `json:"-"`
14168 }
14169
14170 func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) {
14171 type NoMethod TechnologyTargeting
14172 raw := NoMethod(*s)
14173 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14174 }
14175
14176
14177 type ThirdPartyAuthenticationToken struct {
14178
14179 Name string `json:"name,omitempty"`
14180
14181
14182
14183 Value string `json:"value,omitempty"`
14184
14185
14186
14187
14188
14189
14190
14191 ForceSendFields []string `json:"-"`
14192
14193
14194
14195
14196
14197
14198
14199 NullFields []string `json:"-"`
14200 }
14201
14202 func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) {
14203 type NoMethod ThirdPartyAuthenticationToken
14204 raw := NoMethod(*s)
14205 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14206 }
14207
14208
14209 type ThirdPartyTrackingUrl struct {
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233 ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"`
14234
14235
14236 Url string `json:"url,omitempty"`
14237
14238
14239
14240
14241
14242
14243
14244 ForceSendFields []string `json:"-"`
14245
14246
14247
14248
14249
14250
14251
14252
14253 NullFields []string `json:"-"`
14254 }
14255
14256 func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) {
14257 type NoMethod ThirdPartyTrackingUrl
14258 raw := NoMethod(*s)
14259 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14260 }
14261
14262
14263 type TranscodeSetting struct {
14264
14265
14266 EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"`
14267
14268
14269
14270 Kind string `json:"kind,omitempty"`
14271
14272
14273
14274
14275
14276
14277
14278 ForceSendFields []string `json:"-"`
14279
14280
14281
14282
14283
14284
14285
14286
14287 NullFields []string `json:"-"`
14288 }
14289
14290 func (s *TranscodeSetting) MarshalJSON() ([]byte, error) {
14291 type NoMethod TranscodeSetting
14292 raw := NoMethod(*s)
14293 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14294 }
14295
14296
14297
14298
14299 type UniversalAdId struct {
14300
14301
14302
14303
14304
14305
14306
14307 Registry string `json:"registry,omitempty"`
14308
14309
14310
14311
14312 Value string `json:"value,omitempty"`
14313
14314
14315
14316
14317
14318
14319
14320 ForceSendFields []string `json:"-"`
14321
14322
14323
14324
14325
14326
14327
14328 NullFields []string `json:"-"`
14329 }
14330
14331 func (s *UniversalAdId) MarshalJSON() ([]byte, error) {
14332 type NoMethod UniversalAdId
14333 raw := NoMethod(*s)
14334 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14335 }
14336
14337
14338
14339 type UserDefinedVariableConfiguration struct {
14340
14341
14342
14343
14344
14345 DataType string `json:"dataType,omitempty"`
14346
14347
14348
14349
14350 ReportName string `json:"reportName,omitempty"`
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
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455 VariableType string `json:"variableType,omitempty"`
14456
14457
14458
14459
14460
14461
14462
14463 ForceSendFields []string `json:"-"`
14464
14465
14466
14467
14468
14469
14470
14471 NullFields []string `json:"-"`
14472 }
14473
14474 func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) {
14475 type NoMethod UserDefinedVariableConfiguration
14476 raw := NoMethod(*s)
14477 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14478 }
14479
14480
14481
14482
14483 type UserProfile struct {
14484
14485 AccountId int64 `json:"accountId,omitempty,string"`
14486
14487
14488 AccountName string `json:"accountName,omitempty"`
14489
14490
14491 Etag string `json:"etag,omitempty"`
14492
14493
14494
14495 Kind string `json:"kind,omitempty"`
14496
14497
14498 ProfileId int64 `json:"profileId,omitempty,string"`
14499
14500
14501
14502 SubAccountId int64 `json:"subAccountId,omitempty,string"`
14503
14504
14505
14506 SubAccountName string `json:"subAccountName,omitempty"`
14507
14508
14509 UserName string `json:"userName,omitempty"`
14510
14511
14512
14513 googleapi.ServerResponse `json:"-"`
14514
14515
14516
14517
14518
14519
14520
14521 ForceSendFields []string `json:"-"`
14522
14523
14524
14525
14526
14527
14528
14529 NullFields []string `json:"-"`
14530 }
14531
14532 func (s *UserProfile) MarshalJSON() ([]byte, error) {
14533 type NoMethod UserProfile
14534 raw := NoMethod(*s)
14535 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14536 }
14537
14538
14539 type UserProfileList struct {
14540
14541 Etag string `json:"etag,omitempty"`
14542
14543
14544 Items []*UserProfile `json:"items,omitempty"`
14545
14546
14547
14548 Kind string `json:"kind,omitempty"`
14549
14550
14551
14552 googleapi.ServerResponse `json:"-"`
14553
14554
14555
14556
14557
14558
14559
14560 ForceSendFields []string `json:"-"`
14561
14562
14563
14564
14565
14566
14567
14568 NullFields []string `json:"-"`
14569 }
14570
14571 func (s *UserProfileList) MarshalJSON() ([]byte, error) {
14572 type NoMethod UserProfileList
14573 raw := NoMethod(*s)
14574 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14575 }
14576
14577
14578
14579 type UserRole struct {
14580
14581
14582 AccountId int64 `json:"accountId,omitempty,string"`
14583
14584
14585
14586
14587
14588 DefaultUserRole bool `json:"defaultUserRole,omitempty"`
14589
14590
14591 Id int64 `json:"id,omitempty,string"`
14592
14593
14594
14595 Kind string `json:"kind,omitempty"`
14596
14597
14598
14599
14600
14601
14602 Name string `json:"name,omitempty"`
14603
14604
14605
14606 ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"`
14607
14608
14609 Permissions []*UserRolePermission `json:"permissions,omitempty"`
14610
14611
14612
14613 SubaccountId int64 `json:"subaccountId,omitempty,string"`
14614
14615
14616
14617 googleapi.ServerResponse `json:"-"`
14618
14619
14620
14621
14622
14623
14624
14625 ForceSendFields []string `json:"-"`
14626
14627
14628
14629
14630
14631
14632
14633 NullFields []string `json:"-"`
14634 }
14635
14636 func (s *UserRole) MarshalJSON() ([]byte, error) {
14637 type NoMethod UserRole
14638 raw := NoMethod(*s)
14639 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14640 }
14641
14642
14643 type UserRolePermission struct {
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653 Availability string `json:"availability,omitempty"`
14654
14655
14656 Id int64 `json:"id,omitempty,string"`
14657
14658
14659
14660 Kind string `json:"kind,omitempty"`
14661
14662
14663 Name string `json:"name,omitempty"`
14664
14665
14666
14667 PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"`
14668
14669
14670
14671 googleapi.ServerResponse `json:"-"`
14672
14673
14674
14675
14676
14677
14678
14679 ForceSendFields []string `json:"-"`
14680
14681
14682
14683
14684
14685
14686
14687 NullFields []string `json:"-"`
14688 }
14689
14690 func (s *UserRolePermission) MarshalJSON() ([]byte, error) {
14691 type NoMethod UserRolePermission
14692 raw := NoMethod(*s)
14693 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14694 }
14695
14696
14697
14698 type UserRolePermissionGroup struct {
14699
14700 Id int64 `json:"id,omitempty,string"`
14701
14702
14703
14704 Kind string `json:"kind,omitempty"`
14705
14706
14707 Name string `json:"name,omitempty"`
14708
14709
14710
14711 googleapi.ServerResponse `json:"-"`
14712
14713
14714
14715
14716
14717
14718
14719 ForceSendFields []string `json:"-"`
14720
14721
14722
14723
14724
14725
14726
14727 NullFields []string `json:"-"`
14728 }
14729
14730 func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) {
14731 type NoMethod UserRolePermissionGroup
14732 raw := NoMethod(*s)
14733 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14734 }
14735
14736
14737
14738 type UserRolePermissionGroupsListResponse struct {
14739
14740
14741 Kind string `json:"kind,omitempty"`
14742
14743
14744 UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"`
14745
14746
14747
14748 googleapi.ServerResponse `json:"-"`
14749
14750
14751
14752
14753
14754
14755
14756 ForceSendFields []string `json:"-"`
14757
14758
14759
14760
14761
14762
14763
14764 NullFields []string `json:"-"`
14765 }
14766
14767 func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) {
14768 type NoMethod UserRolePermissionGroupsListResponse
14769 raw := NoMethod(*s)
14770 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14771 }
14772
14773
14774 type UserRolePermissionsListResponse struct {
14775
14776
14777 Kind string `json:"kind,omitempty"`
14778
14779
14780 UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"`
14781
14782
14783
14784 googleapi.ServerResponse `json:"-"`
14785
14786
14787
14788
14789
14790
14791
14792 ForceSendFields []string `json:"-"`
14793
14794
14795
14796
14797
14798
14799
14800 NullFields []string `json:"-"`
14801 }
14802
14803 func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) {
14804 type NoMethod UserRolePermissionsListResponse
14805 raw := NoMethod(*s)
14806 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14807 }
14808
14809
14810 type UserRolesListResponse struct {
14811
14812
14813 Kind string `json:"kind,omitempty"`
14814
14815
14816
14817 NextPageToken string `json:"nextPageToken,omitempty"`
14818
14819
14820 UserRoles []*UserRole `json:"userRoles,omitempty"`
14821
14822
14823
14824 googleapi.ServerResponse `json:"-"`
14825
14826
14827
14828
14829
14830
14831
14832 ForceSendFields []string `json:"-"`
14833
14834
14835
14836
14837
14838
14839
14840 NullFields []string `json:"-"`
14841 }
14842
14843 func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) {
14844 type NoMethod UserRolesListResponse
14845 raw := NoMethod(*s)
14846 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14847 }
14848
14849
14850 type VideoFormat struct {
14851
14852
14853
14854
14855
14856
14857
14858
14859 FileType string `json:"fileType,omitempty"`
14860
14861
14862 Id int64 `json:"id,omitempty"`
14863
14864
14865
14866 Kind string `json:"kind,omitempty"`
14867
14868
14869 Resolution *Size `json:"resolution,omitempty"`
14870
14871
14872 TargetBitRate int64 `json:"targetBitRate,omitempty"`
14873
14874
14875
14876 googleapi.ServerResponse `json:"-"`
14877
14878
14879
14880
14881
14882
14883
14884 ForceSendFields []string `json:"-"`
14885
14886
14887
14888
14889
14890
14891
14892 NullFields []string `json:"-"`
14893 }
14894
14895 func (s *VideoFormat) MarshalJSON() ([]byte, error) {
14896 type NoMethod VideoFormat
14897 raw := NoMethod(*s)
14898 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14899 }
14900
14901
14902 type VideoFormatsListResponse struct {
14903
14904
14905 Kind string `json:"kind,omitempty"`
14906
14907
14908 VideoFormats []*VideoFormat `json:"videoFormats,omitempty"`
14909
14910
14911
14912 googleapi.ServerResponse `json:"-"`
14913
14914
14915
14916
14917
14918
14919
14920 ForceSendFields []string `json:"-"`
14921
14922
14923
14924
14925
14926
14927
14928 NullFields []string `json:"-"`
14929 }
14930
14931 func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) {
14932 type NoMethod VideoFormatsListResponse
14933 raw := NoMethod(*s)
14934 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14935 }
14936
14937
14938 type VideoOffset struct {
14939
14940
14941
14942 OffsetPercentage int64 `json:"offsetPercentage,omitempty"`
14943
14944
14945
14946 OffsetSeconds int64 `json:"offsetSeconds,omitempty"`
14947
14948
14949
14950
14951
14952
14953
14954 ForceSendFields []string `json:"-"`
14955
14956
14957
14958
14959
14960
14961
14962
14963 NullFields []string `json:"-"`
14964 }
14965
14966 func (s *VideoOffset) MarshalJSON() ([]byte, error) {
14967 type NoMethod VideoOffset
14968 raw := NoMethod(*s)
14969 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
14970 }
14971
14972
14973 type VideoSettings struct {
14974
14975
14976 CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"`
14977
14978
14979
14980 Kind string `json:"kind,omitempty"`
14981
14982
14983 ObaEnabled bool `json:"obaEnabled,omitempty"`
14984
14985
14986
14987
14988 ObaSettings *ObaIcon `json:"obaSettings,omitempty"`
14989
14990
14991
14992
14993
14994
14995
14996
14997 Orientation string `json:"orientation,omitempty"`
14998
14999
15000
15001
15002 SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"`
15003
15004
15005
15006
15007 TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"`
15008
15009
15010
15011
15012
15013
15014
15015 ForceSendFields []string `json:"-"`
15016
15017
15018
15019
15020
15021
15022
15023
15024 NullFields []string `json:"-"`
15025 }
15026
15027 func (s *VideoSettings) MarshalJSON() ([]byte, error) {
15028 type NoMethod VideoSettings
15029 raw := NoMethod(*s)
15030 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
15031 }
15032
15033
15034
15035 type AccountActiveAdSummariesGetCall struct {
15036 s *Service
15037 profileId int64
15038 summaryAccountId int64
15039 urlParams_ gensupport.URLParams
15040 ifNoneMatch_ string
15041 ctx_ context.Context
15042 header_ http.Header
15043 }
15044
15045
15046
15047
15048
15049 func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall {
15050 c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15051 c.profileId = profileId
15052 c.summaryAccountId = summaryAccountId
15053 return c
15054 }
15055
15056
15057
15058
15059 func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall {
15060 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15061 return c
15062 }
15063
15064
15065
15066
15067
15068
15069 func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall {
15070 c.ifNoneMatch_ = entityTag
15071 return c
15072 }
15073
15074
15075
15076
15077 func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall {
15078 c.ctx_ = ctx
15079 return c
15080 }
15081
15082
15083
15084 func (c *AccountActiveAdSummariesGetCall) Header() http.Header {
15085 if c.header_ == nil {
15086 c.header_ = make(http.Header)
15087 }
15088 return c.header_
15089 }
15090
15091 func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) {
15092 reqHeaders := make(http.Header)
15093 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
15094 for k, v := range c.header_ {
15095 reqHeaders[k] = v
15096 }
15097 reqHeaders.Set("User-Agent", c.s.userAgent())
15098 if c.ifNoneMatch_ != "" {
15099 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15100 }
15101 var body io.Reader = nil
15102 c.urlParams_.Set("alt", alt)
15103 c.urlParams_.Set("prettyPrint", "false")
15104 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}")
15105 urls += "?" + c.urlParams_.Encode()
15106 req, err := http.NewRequest("GET", urls, body)
15107 if err != nil {
15108 return nil, err
15109 }
15110 req.Header = reqHeaders
15111 googleapi.Expand(req.URL, map[string]string{
15112 "profileId": strconv.FormatInt(c.profileId, 10),
15113 "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10),
15114 })
15115 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15116 }
15117
15118
15119
15120
15121
15122
15123
15124
15125 func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) {
15126 gensupport.SetOptions(c.urlParams_, opts...)
15127 res, err := c.doRequest("json")
15128 if res != nil && res.StatusCode == http.StatusNotModified {
15129 if res.Body != nil {
15130 res.Body.Close()
15131 }
15132 return nil, &googleapi.Error{
15133 Code: res.StatusCode,
15134 Header: res.Header,
15135 }
15136 }
15137 if err != nil {
15138 return nil, err
15139 }
15140 defer googleapi.CloseBody(res)
15141 if err := googleapi.CheckResponse(res); err != nil {
15142 return nil, err
15143 }
15144 ret := &AccountActiveAdSummary{
15145 ServerResponse: googleapi.ServerResponse{
15146 Header: res.Header,
15147 HTTPStatusCode: res.StatusCode,
15148 },
15149 }
15150 target := &ret
15151 if err := gensupport.DecodeResponse(target, res); err != nil {
15152 return nil, err
15153 }
15154 return ret, nil
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189 }
15190
15191
15192
15193 type AccountPermissionGroupsGetCall struct {
15194 s *Service
15195 profileId int64
15196 id int64
15197 urlParams_ gensupport.URLParams
15198 ifNoneMatch_ string
15199 ctx_ context.Context
15200 header_ http.Header
15201 }
15202
15203
15204
15205
15206
15207 func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall {
15208 c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15209 c.profileId = profileId
15210 c.id = id
15211 return c
15212 }
15213
15214
15215
15216
15217 func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall {
15218 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15219 return c
15220 }
15221
15222
15223
15224
15225
15226
15227 func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall {
15228 c.ifNoneMatch_ = entityTag
15229 return c
15230 }
15231
15232
15233
15234
15235 func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall {
15236 c.ctx_ = ctx
15237 return c
15238 }
15239
15240
15241
15242 func (c *AccountPermissionGroupsGetCall) Header() http.Header {
15243 if c.header_ == nil {
15244 c.header_ = make(http.Header)
15245 }
15246 return c.header_
15247 }
15248
15249 func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) {
15250 reqHeaders := make(http.Header)
15251 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
15252 for k, v := range c.header_ {
15253 reqHeaders[k] = v
15254 }
15255 reqHeaders.Set("User-Agent", c.s.userAgent())
15256 if c.ifNoneMatch_ != "" {
15257 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15258 }
15259 var body io.Reader = nil
15260 c.urlParams_.Set("alt", alt)
15261 c.urlParams_.Set("prettyPrint", "false")
15262 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups/{id}")
15263 urls += "?" + c.urlParams_.Encode()
15264 req, err := http.NewRequest("GET", urls, body)
15265 if err != nil {
15266 return nil, err
15267 }
15268 req.Header = reqHeaders
15269 googleapi.Expand(req.URL, map[string]string{
15270 "profileId": strconv.FormatInt(c.profileId, 10),
15271 "id": strconv.FormatInt(c.id, 10),
15272 })
15273 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15274 }
15275
15276
15277
15278
15279
15280
15281
15282
15283 func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) {
15284 gensupport.SetOptions(c.urlParams_, opts...)
15285 res, err := c.doRequest("json")
15286 if res != nil && res.StatusCode == http.StatusNotModified {
15287 if res.Body != nil {
15288 res.Body.Close()
15289 }
15290 return nil, &googleapi.Error{
15291 Code: res.StatusCode,
15292 Header: res.Header,
15293 }
15294 }
15295 if err != nil {
15296 return nil, err
15297 }
15298 defer googleapi.CloseBody(res)
15299 if err := googleapi.CheckResponse(res); err != nil {
15300 return nil, err
15301 }
15302 ret := &AccountPermissionGroup{
15303 ServerResponse: googleapi.ServerResponse{
15304 Header: res.Header,
15305 HTTPStatusCode: res.StatusCode,
15306 },
15307 }
15308 target := &ret
15309 if err := gensupport.DecodeResponse(target, res); err != nil {
15310 return nil, err
15311 }
15312 return ret, nil
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347 }
15348
15349
15350
15351 type AccountPermissionGroupsListCall struct {
15352 s *Service
15353 profileId int64
15354 urlParams_ gensupport.URLParams
15355 ifNoneMatch_ string
15356 ctx_ context.Context
15357 header_ http.Header
15358 }
15359
15360
15361
15362
15363 func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall {
15364 c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15365 c.profileId = profileId
15366 return c
15367 }
15368
15369
15370
15371
15372 func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall {
15373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15374 return c
15375 }
15376
15377
15378
15379
15380
15381
15382 func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall {
15383 c.ifNoneMatch_ = entityTag
15384 return c
15385 }
15386
15387
15388
15389
15390 func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall {
15391 c.ctx_ = ctx
15392 return c
15393 }
15394
15395
15396
15397 func (c *AccountPermissionGroupsListCall) Header() http.Header {
15398 if c.header_ == nil {
15399 c.header_ = make(http.Header)
15400 }
15401 return c.header_
15402 }
15403
15404 func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) {
15405 reqHeaders := make(http.Header)
15406 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
15407 for k, v := range c.header_ {
15408 reqHeaders[k] = v
15409 }
15410 reqHeaders.Set("User-Agent", c.s.userAgent())
15411 if c.ifNoneMatch_ != "" {
15412 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15413 }
15414 var body io.Reader = nil
15415 c.urlParams_.Set("alt", alt)
15416 c.urlParams_.Set("prettyPrint", "false")
15417 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissionGroups")
15418 urls += "?" + c.urlParams_.Encode()
15419 req, err := http.NewRequest("GET", urls, body)
15420 if err != nil {
15421 return nil, err
15422 }
15423 req.Header = reqHeaders
15424 googleapi.Expand(req.URL, map[string]string{
15425 "profileId": strconv.FormatInt(c.profileId, 10),
15426 })
15427 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15428 }
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438 func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) {
15439 gensupport.SetOptions(c.urlParams_, opts...)
15440 res, err := c.doRequest("json")
15441 if res != nil && res.StatusCode == http.StatusNotModified {
15442 if res.Body != nil {
15443 res.Body.Close()
15444 }
15445 return nil, &googleapi.Error{
15446 Code: res.StatusCode,
15447 Header: res.Header,
15448 }
15449 }
15450 if err != nil {
15451 return nil, err
15452 }
15453 defer googleapi.CloseBody(res)
15454 if err := googleapi.CheckResponse(res); err != nil {
15455 return nil, err
15456 }
15457 ret := &AccountPermissionGroupsListResponse{
15458 ServerResponse: googleapi.ServerResponse{
15459 Header: res.Header,
15460 HTTPStatusCode: res.StatusCode,
15461 },
15462 }
15463 target := &ret
15464 if err := gensupport.DecodeResponse(target, res); err != nil {
15465 return nil, err
15466 }
15467 return ret, nil
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494 }
15495
15496
15497
15498 type AccountPermissionsGetCall struct {
15499 s *Service
15500 profileId int64
15501 id int64
15502 urlParams_ gensupport.URLParams
15503 ifNoneMatch_ string
15504 ctx_ context.Context
15505 header_ http.Header
15506 }
15507
15508
15509
15510
15511
15512 func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall {
15513 c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15514 c.profileId = profileId
15515 c.id = id
15516 return c
15517 }
15518
15519
15520
15521
15522 func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall {
15523 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15524 return c
15525 }
15526
15527
15528
15529
15530
15531
15532 func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall {
15533 c.ifNoneMatch_ = entityTag
15534 return c
15535 }
15536
15537
15538
15539
15540 func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall {
15541 c.ctx_ = ctx
15542 return c
15543 }
15544
15545
15546
15547 func (c *AccountPermissionsGetCall) Header() http.Header {
15548 if c.header_ == nil {
15549 c.header_ = make(http.Header)
15550 }
15551 return c.header_
15552 }
15553
15554 func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) {
15555 reqHeaders := make(http.Header)
15556 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
15557 for k, v := range c.header_ {
15558 reqHeaders[k] = v
15559 }
15560 reqHeaders.Set("User-Agent", c.s.userAgent())
15561 if c.ifNoneMatch_ != "" {
15562 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15563 }
15564 var body io.Reader = nil
15565 c.urlParams_.Set("alt", alt)
15566 c.urlParams_.Set("prettyPrint", "false")
15567 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions/{id}")
15568 urls += "?" + c.urlParams_.Encode()
15569 req, err := http.NewRequest("GET", urls, body)
15570 if err != nil {
15571 return nil, err
15572 }
15573 req.Header = reqHeaders
15574 googleapi.Expand(req.URL, map[string]string{
15575 "profileId": strconv.FormatInt(c.profileId, 10),
15576 "id": strconv.FormatInt(c.id, 10),
15577 })
15578 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15579 }
15580
15581
15582
15583
15584
15585
15586
15587
15588 func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) {
15589 gensupport.SetOptions(c.urlParams_, opts...)
15590 res, err := c.doRequest("json")
15591 if res != nil && res.StatusCode == http.StatusNotModified {
15592 if res.Body != nil {
15593 res.Body.Close()
15594 }
15595 return nil, &googleapi.Error{
15596 Code: res.StatusCode,
15597 Header: res.Header,
15598 }
15599 }
15600 if err != nil {
15601 return nil, err
15602 }
15603 defer googleapi.CloseBody(res)
15604 if err := googleapi.CheckResponse(res); err != nil {
15605 return nil, err
15606 }
15607 ret := &AccountPermission{
15608 ServerResponse: googleapi.ServerResponse{
15609 Header: res.Header,
15610 HTTPStatusCode: res.StatusCode,
15611 },
15612 }
15613 target := &ret
15614 if err := gensupport.DecodeResponse(target, res); err != nil {
15615 return nil, err
15616 }
15617 return ret, nil
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652 }
15653
15654
15655
15656 type AccountPermissionsListCall struct {
15657 s *Service
15658 profileId int64
15659 urlParams_ gensupport.URLParams
15660 ifNoneMatch_ string
15661 ctx_ context.Context
15662 header_ http.Header
15663 }
15664
15665
15666
15667
15668 func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall {
15669 c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15670 c.profileId = profileId
15671 return c
15672 }
15673
15674
15675
15676
15677 func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall {
15678 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15679 return c
15680 }
15681
15682
15683
15684
15685
15686
15687 func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall {
15688 c.ifNoneMatch_ = entityTag
15689 return c
15690 }
15691
15692
15693
15694
15695 func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall {
15696 c.ctx_ = ctx
15697 return c
15698 }
15699
15700
15701
15702 func (c *AccountPermissionsListCall) Header() http.Header {
15703 if c.header_ == nil {
15704 c.header_ = make(http.Header)
15705 }
15706 return c.header_
15707 }
15708
15709 func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) {
15710 reqHeaders := make(http.Header)
15711 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
15712 for k, v := range c.header_ {
15713 reqHeaders[k] = v
15714 }
15715 reqHeaders.Set("User-Agent", c.s.userAgent())
15716 if c.ifNoneMatch_ != "" {
15717 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15718 }
15719 var body io.Reader = nil
15720 c.urlParams_.Set("alt", alt)
15721 c.urlParams_.Set("prettyPrint", "false")
15722 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountPermissions")
15723 urls += "?" + c.urlParams_.Encode()
15724 req, err := http.NewRequest("GET", urls, body)
15725 if err != nil {
15726 return nil, err
15727 }
15728 req.Header = reqHeaders
15729 googleapi.Expand(req.URL, map[string]string{
15730 "profileId": strconv.FormatInt(c.profileId, 10),
15731 })
15732 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15733 }
15734
15735
15736
15737
15738
15739
15740
15741
15742 func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) {
15743 gensupport.SetOptions(c.urlParams_, opts...)
15744 res, err := c.doRequest("json")
15745 if res != nil && res.StatusCode == http.StatusNotModified {
15746 if res.Body != nil {
15747 res.Body.Close()
15748 }
15749 return nil, &googleapi.Error{
15750 Code: res.StatusCode,
15751 Header: res.Header,
15752 }
15753 }
15754 if err != nil {
15755 return nil, err
15756 }
15757 defer googleapi.CloseBody(res)
15758 if err := googleapi.CheckResponse(res); err != nil {
15759 return nil, err
15760 }
15761 ret := &AccountPermissionsListResponse{
15762 ServerResponse: googleapi.ServerResponse{
15763 Header: res.Header,
15764 HTTPStatusCode: res.StatusCode,
15765 },
15766 }
15767 target := &ret
15768 if err := gensupport.DecodeResponse(target, res); err != nil {
15769 return nil, err
15770 }
15771 return ret, nil
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 type AccountUserProfilesGetCall struct {
15803 s *Service
15804 profileId int64
15805 id int64
15806 urlParams_ gensupport.URLParams
15807 ifNoneMatch_ string
15808 ctx_ context.Context
15809 header_ http.Header
15810 }
15811
15812
15813
15814
15815
15816 func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall {
15817 c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15818 c.profileId = profileId
15819 c.id = id
15820 return c
15821 }
15822
15823
15824
15825
15826 func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall {
15827 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15828 return c
15829 }
15830
15831
15832
15833
15834
15835
15836 func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall {
15837 c.ifNoneMatch_ = entityTag
15838 return c
15839 }
15840
15841
15842
15843
15844 func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall {
15845 c.ctx_ = ctx
15846 return c
15847 }
15848
15849
15850
15851 func (c *AccountUserProfilesGetCall) Header() http.Header {
15852 if c.header_ == nil {
15853 c.header_ = make(http.Header)
15854 }
15855 return c.header_
15856 }
15857
15858 func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) {
15859 reqHeaders := make(http.Header)
15860 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
15861 for k, v := range c.header_ {
15862 reqHeaders[k] = v
15863 }
15864 reqHeaders.Set("User-Agent", c.s.userAgent())
15865 if c.ifNoneMatch_ != "" {
15866 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15867 }
15868 var body io.Reader = nil
15869 c.urlParams_.Set("alt", alt)
15870 c.urlParams_.Set("prettyPrint", "false")
15871 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles/{id}")
15872 urls += "?" + c.urlParams_.Encode()
15873 req, err := http.NewRequest("GET", urls, body)
15874 if err != nil {
15875 return nil, err
15876 }
15877 req.Header = reqHeaders
15878 googleapi.Expand(req.URL, map[string]string{
15879 "profileId": strconv.FormatInt(c.profileId, 10),
15880 "id": strconv.FormatInt(c.id, 10),
15881 })
15882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15883 }
15884
15885
15886
15887
15888
15889
15890
15891
15892 func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
15893 gensupport.SetOptions(c.urlParams_, opts...)
15894 res, err := c.doRequest("json")
15895 if res != nil && res.StatusCode == http.StatusNotModified {
15896 if res.Body != nil {
15897 res.Body.Close()
15898 }
15899 return nil, &googleapi.Error{
15900 Code: res.StatusCode,
15901 Header: res.Header,
15902 }
15903 }
15904 if err != nil {
15905 return nil, err
15906 }
15907 defer googleapi.CloseBody(res)
15908 if err := googleapi.CheckResponse(res); err != nil {
15909 return nil, err
15910 }
15911 ret := &AccountUserProfile{
15912 ServerResponse: googleapi.ServerResponse{
15913 Header: res.Header,
15914 HTTPStatusCode: res.StatusCode,
15915 },
15916 }
15917 target := &ret
15918 if err := gensupport.DecodeResponse(target, res); err != nil {
15919 return nil, err
15920 }
15921 return ret, nil
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956 }
15957
15958
15959
15960 type AccountUserProfilesInsertCall struct {
15961 s *Service
15962 profileId int64
15963 accountuserprofile *AccountUserProfile
15964 urlParams_ gensupport.URLParams
15965 ctx_ context.Context
15966 header_ http.Header
15967 }
15968
15969
15970
15971
15972 func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall {
15973 c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15974 c.profileId = profileId
15975 c.accountuserprofile = accountuserprofile
15976 return c
15977 }
15978
15979
15980
15981
15982 func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall {
15983 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15984 return c
15985 }
15986
15987
15988
15989
15990 func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall {
15991 c.ctx_ = ctx
15992 return c
15993 }
15994
15995
15996
15997 func (c *AccountUserProfilesInsertCall) Header() http.Header {
15998 if c.header_ == nil {
15999 c.header_ = make(http.Header)
16000 }
16001 return c.header_
16002 }
16003
16004 func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) {
16005 reqHeaders := make(http.Header)
16006 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
16007 for k, v := range c.header_ {
16008 reqHeaders[k] = v
16009 }
16010 reqHeaders.Set("User-Agent", c.s.userAgent())
16011 var body io.Reader = nil
16012 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile)
16013 if err != nil {
16014 return nil, err
16015 }
16016 reqHeaders.Set("Content-Type", "application/json")
16017 c.urlParams_.Set("alt", alt)
16018 c.urlParams_.Set("prettyPrint", "false")
16019 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
16020 urls += "?" + c.urlParams_.Encode()
16021 req, err := http.NewRequest("POST", urls, body)
16022 if err != nil {
16023 return nil, err
16024 }
16025 req.Header = reqHeaders
16026 googleapi.Expand(req.URL, map[string]string{
16027 "profileId": strconv.FormatInt(c.profileId, 10),
16028 })
16029 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16030 }
16031
16032
16033
16034
16035
16036
16037
16038
16039 func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
16040 gensupport.SetOptions(c.urlParams_, opts...)
16041 res, err := c.doRequest("json")
16042 if res != nil && res.StatusCode == http.StatusNotModified {
16043 if res.Body != nil {
16044 res.Body.Close()
16045 }
16046 return nil, &googleapi.Error{
16047 Code: res.StatusCode,
16048 Header: res.Header,
16049 }
16050 }
16051 if err != nil {
16052 return nil, err
16053 }
16054 defer googleapi.CloseBody(res)
16055 if err := googleapi.CheckResponse(res); err != nil {
16056 return nil, err
16057 }
16058 ret := &AccountUserProfile{
16059 ServerResponse: googleapi.ServerResponse{
16060 Header: res.Header,
16061 HTTPStatusCode: res.StatusCode,
16062 },
16063 }
16064 target := &ret
16065 if err := gensupport.DecodeResponse(target, res); err != nil {
16066 return nil, err
16067 }
16068 return ret, nil
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098 }
16099
16100
16101
16102 type AccountUserProfilesListCall struct {
16103 s *Service
16104 profileId int64
16105 urlParams_ gensupport.URLParams
16106 ifNoneMatch_ string
16107 ctx_ context.Context
16108 header_ http.Header
16109 }
16110
16111
16112
16113
16114
16115 func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall {
16116 c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16117 c.profileId = profileId
16118 return c
16119 }
16120
16121
16122
16123 func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesListCall {
16124 c.urlParams_.Set("active", fmt.Sprint(active))
16125 return c
16126 }
16127
16128
16129
16130 func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall {
16131 var ids_ []string
16132 for _, v := range ids {
16133 ids_ = append(ids_, fmt.Sprint(v))
16134 }
16135 c.urlParams_.SetMulti("ids", ids_)
16136 return c
16137 }
16138
16139
16140
16141 func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall {
16142 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
16143 return c
16144 }
16145
16146
16147
16148 func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserProfilesListCall {
16149 c.urlParams_.Set("pageToken", pageToken)
16150 return c
16151 }
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162 func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall {
16163 c.urlParams_.Set("searchString", searchString)
16164 return c
16165 }
16166
16167
16168
16169
16170
16171
16172
16173
16174 func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserProfilesListCall {
16175 c.urlParams_.Set("sortField", sortField)
16176 return c
16177 }
16178
16179
16180
16181
16182
16183
16184
16185
16186 func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserProfilesListCall {
16187 c.urlParams_.Set("sortOrder", sortOrder)
16188 return c
16189 }
16190
16191
16192
16193 func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall {
16194 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
16195 return c
16196 }
16197
16198
16199
16200 func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserProfilesListCall {
16201 c.urlParams_.Set("userRoleId", fmt.Sprint(userRoleId))
16202 return c
16203 }
16204
16205
16206
16207
16208 func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall {
16209 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16210 return c
16211 }
16212
16213
16214
16215
16216
16217
16218 func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall {
16219 c.ifNoneMatch_ = entityTag
16220 return c
16221 }
16222
16223
16224
16225
16226 func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall {
16227 c.ctx_ = ctx
16228 return c
16229 }
16230
16231
16232
16233 func (c *AccountUserProfilesListCall) Header() http.Header {
16234 if c.header_ == nil {
16235 c.header_ = make(http.Header)
16236 }
16237 return c.header_
16238 }
16239
16240 func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) {
16241 reqHeaders := make(http.Header)
16242 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
16243 for k, v := range c.header_ {
16244 reqHeaders[k] = v
16245 }
16246 reqHeaders.Set("User-Agent", c.s.userAgent())
16247 if c.ifNoneMatch_ != "" {
16248 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16249 }
16250 var body io.Reader = nil
16251 c.urlParams_.Set("alt", alt)
16252 c.urlParams_.Set("prettyPrint", "false")
16253 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
16254 urls += "?" + c.urlParams_.Encode()
16255 req, err := http.NewRequest("GET", urls, body)
16256 if err != nil {
16257 return nil, err
16258 }
16259 req.Header = reqHeaders
16260 googleapi.Expand(req.URL, map[string]string{
16261 "profileId": strconv.FormatInt(c.profileId, 10),
16262 })
16263 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16264 }
16265
16266
16267
16268
16269
16270
16271
16272
16273 func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) {
16274 gensupport.SetOptions(c.urlParams_, opts...)
16275 res, err := c.doRequest("json")
16276 if res != nil && res.StatusCode == http.StatusNotModified {
16277 if res.Body != nil {
16278 res.Body.Close()
16279 }
16280 return nil, &googleapi.Error{
16281 Code: res.StatusCode,
16282 Header: res.Header,
16283 }
16284 }
16285 if err != nil {
16286 return nil, err
16287 }
16288 defer googleapi.CloseBody(res)
16289 if err := googleapi.CheckResponse(res); err != nil {
16290 return nil, err
16291 }
16292 ret := &AccountUserProfilesListResponse{
16293 ServerResponse: googleapi.ServerResponse{
16294 Header: res.Header,
16295 HTTPStatusCode: res.StatusCode,
16296 },
16297 }
16298 target := &ret
16299 if err := gensupport.DecodeResponse(target, res); err != nil {
16300 return nil, err
16301 }
16302 return ret, nil
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400 }
16401
16402
16403
16404
16405 func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error {
16406 c.ctx_ = ctx
16407 defer c.PageToken(c.urlParams_.Get("pageToken"))
16408 for {
16409 x, err := c.Do()
16410 if err != nil {
16411 return err
16412 }
16413 if err := f(x); err != nil {
16414 return err
16415 }
16416 if x.NextPageToken == "" {
16417 return nil
16418 }
16419 c.PageToken(x.NextPageToken)
16420 }
16421 }
16422
16423
16424
16425 type AccountUserProfilesPatchCall struct {
16426 s *Service
16427 profileId int64
16428 accountuserprofile *AccountUserProfile
16429 urlParams_ gensupport.URLParams
16430 ctx_ context.Context
16431 header_ http.Header
16432 }
16433
16434
16435
16436
16437
16438
16439 func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall {
16440 c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16441 c.profileId = profileId
16442 c.urlParams_.Set("id", fmt.Sprint(id))
16443 c.accountuserprofile = accountuserprofile
16444 return c
16445 }
16446
16447
16448
16449
16450 func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall {
16451 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16452 return c
16453 }
16454
16455
16456
16457
16458 func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall {
16459 c.ctx_ = ctx
16460 return c
16461 }
16462
16463
16464
16465 func (c *AccountUserProfilesPatchCall) Header() http.Header {
16466 if c.header_ == nil {
16467 c.header_ = make(http.Header)
16468 }
16469 return c.header_
16470 }
16471
16472 func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
16473 reqHeaders := make(http.Header)
16474 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
16475 for k, v := range c.header_ {
16476 reqHeaders[k] = v
16477 }
16478 reqHeaders.Set("User-Agent", c.s.userAgent())
16479 var body io.Reader = nil
16480 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile)
16481 if err != nil {
16482 return nil, err
16483 }
16484 reqHeaders.Set("Content-Type", "application/json")
16485 c.urlParams_.Set("alt", alt)
16486 c.urlParams_.Set("prettyPrint", "false")
16487 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
16488 urls += "?" + c.urlParams_.Encode()
16489 req, err := http.NewRequest("PATCH", urls, body)
16490 if err != nil {
16491 return nil, err
16492 }
16493 req.Header = reqHeaders
16494 googleapi.Expand(req.URL, map[string]string{
16495 "profileId": strconv.FormatInt(c.profileId, 10),
16496 })
16497 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16498 }
16499
16500
16501
16502
16503
16504
16505
16506
16507 func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
16508 gensupport.SetOptions(c.urlParams_, opts...)
16509 res, err := c.doRequest("json")
16510 if res != nil && res.StatusCode == http.StatusNotModified {
16511 if res.Body != nil {
16512 res.Body.Close()
16513 }
16514 return nil, &googleapi.Error{
16515 Code: res.StatusCode,
16516 Header: res.Header,
16517 }
16518 }
16519 if err != nil {
16520 return nil, err
16521 }
16522 defer googleapi.CloseBody(res)
16523 if err := googleapi.CheckResponse(res); err != nil {
16524 return nil, err
16525 }
16526 ret := &AccountUserProfile{
16527 ServerResponse: googleapi.ServerResponse{
16528 Header: res.Header,
16529 HTTPStatusCode: res.StatusCode,
16530 },
16531 }
16532 target := &ret
16533 if err := gensupport.DecodeResponse(target, res); err != nil {
16534 return nil, err
16535 }
16536 return ret, nil
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574 }
16575
16576
16577
16578 type AccountUserProfilesUpdateCall struct {
16579 s *Service
16580 profileId int64
16581 accountuserprofile *AccountUserProfile
16582 urlParams_ gensupport.URLParams
16583 ctx_ context.Context
16584 header_ http.Header
16585 }
16586
16587
16588
16589
16590 func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall {
16591 c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16592 c.profileId = profileId
16593 c.accountuserprofile = accountuserprofile
16594 return c
16595 }
16596
16597
16598
16599
16600 func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall {
16601 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16602 return c
16603 }
16604
16605
16606
16607
16608 func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall {
16609 c.ctx_ = ctx
16610 return c
16611 }
16612
16613
16614
16615 func (c *AccountUserProfilesUpdateCall) Header() http.Header {
16616 if c.header_ == nil {
16617 c.header_ = make(http.Header)
16618 }
16619 return c.header_
16620 }
16621
16622 func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) {
16623 reqHeaders := make(http.Header)
16624 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
16625 for k, v := range c.header_ {
16626 reqHeaders[k] = v
16627 }
16628 reqHeaders.Set("User-Agent", c.s.userAgent())
16629 var body io.Reader = nil
16630 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile)
16631 if err != nil {
16632 return nil, err
16633 }
16634 reqHeaders.Set("Content-Type", "application/json")
16635 c.urlParams_.Set("alt", alt)
16636 c.urlParams_.Set("prettyPrint", "false")
16637 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles")
16638 urls += "?" + c.urlParams_.Encode()
16639 req, err := http.NewRequest("PUT", urls, body)
16640 if err != nil {
16641 return nil, err
16642 }
16643 req.Header = reqHeaders
16644 googleapi.Expand(req.URL, map[string]string{
16645 "profileId": strconv.FormatInt(c.profileId, 10),
16646 })
16647 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16648 }
16649
16650
16651
16652
16653
16654
16655
16656
16657 func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) {
16658 gensupport.SetOptions(c.urlParams_, opts...)
16659 res, err := c.doRequest("json")
16660 if res != nil && res.StatusCode == http.StatusNotModified {
16661 if res.Body != nil {
16662 res.Body.Close()
16663 }
16664 return nil, &googleapi.Error{
16665 Code: res.StatusCode,
16666 Header: res.Header,
16667 }
16668 }
16669 if err != nil {
16670 return nil, err
16671 }
16672 defer googleapi.CloseBody(res)
16673 if err := googleapi.CheckResponse(res); err != nil {
16674 return nil, err
16675 }
16676 ret := &AccountUserProfile{
16677 ServerResponse: googleapi.ServerResponse{
16678 Header: res.Header,
16679 HTTPStatusCode: res.StatusCode,
16680 },
16681 }
16682 target := &ret
16683 if err := gensupport.DecodeResponse(target, res); err != nil {
16684 return nil, err
16685 }
16686 return ret, nil
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716 }
16717
16718
16719
16720 type AccountsGetCall struct {
16721 s *Service
16722 profileId int64
16723 id int64
16724 urlParams_ gensupport.URLParams
16725 ifNoneMatch_ string
16726 ctx_ context.Context
16727 header_ http.Header
16728 }
16729
16730
16731
16732
16733
16734 func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall {
16735 c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16736 c.profileId = profileId
16737 c.id = id
16738 return c
16739 }
16740
16741
16742
16743
16744 func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall {
16745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16746 return c
16747 }
16748
16749
16750
16751
16752
16753
16754 func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall {
16755 c.ifNoneMatch_ = entityTag
16756 return c
16757 }
16758
16759
16760
16761
16762 func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall {
16763 c.ctx_ = ctx
16764 return c
16765 }
16766
16767
16768
16769 func (c *AccountsGetCall) Header() http.Header {
16770 if c.header_ == nil {
16771 c.header_ = make(http.Header)
16772 }
16773 return c.header_
16774 }
16775
16776 func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) {
16777 reqHeaders := make(http.Header)
16778 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
16779 for k, v := range c.header_ {
16780 reqHeaders[k] = v
16781 }
16782 reqHeaders.Set("User-Agent", c.s.userAgent())
16783 if c.ifNoneMatch_ != "" {
16784 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16785 }
16786 var body io.Reader = nil
16787 c.urlParams_.Set("alt", alt)
16788 c.urlParams_.Set("prettyPrint", "false")
16789 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts/{id}")
16790 urls += "?" + c.urlParams_.Encode()
16791 req, err := http.NewRequest("GET", urls, body)
16792 if err != nil {
16793 return nil, err
16794 }
16795 req.Header = reqHeaders
16796 googleapi.Expand(req.URL, map[string]string{
16797 "profileId": strconv.FormatInt(c.profileId, 10),
16798 "id": strconv.FormatInt(c.id, 10),
16799 })
16800 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16801 }
16802
16803
16804
16805
16806
16807
16808
16809
16810 func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
16811 gensupport.SetOptions(c.urlParams_, opts...)
16812 res, err := c.doRequest("json")
16813 if res != nil && res.StatusCode == http.StatusNotModified {
16814 if res.Body != nil {
16815 res.Body.Close()
16816 }
16817 return nil, &googleapi.Error{
16818 Code: res.StatusCode,
16819 Header: res.Header,
16820 }
16821 }
16822 if err != nil {
16823 return nil, err
16824 }
16825 defer googleapi.CloseBody(res)
16826 if err := googleapi.CheckResponse(res); err != nil {
16827 return nil, err
16828 }
16829 ret := &Account{
16830 ServerResponse: googleapi.ServerResponse{
16831 Header: res.Header,
16832 HTTPStatusCode: res.StatusCode,
16833 },
16834 }
16835 target := &ret
16836 if err := gensupport.DecodeResponse(target, res); err != nil {
16837 return nil, err
16838 }
16839 return ret, nil
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 type AccountsListCall struct {
16879 s *Service
16880 profileId int64
16881 urlParams_ gensupport.URLParams
16882 ifNoneMatch_ string
16883 ctx_ context.Context
16884 header_ http.Header
16885 }
16886
16887
16888
16889
16890
16891 func (r *AccountsService) List(profileId int64) *AccountsListCall {
16892 c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16893 c.profileId = profileId
16894 return c
16895 }
16896
16897
16898
16899
16900 func (c *AccountsListCall) Active(active bool) *AccountsListCall {
16901 c.urlParams_.Set("active", fmt.Sprint(active))
16902 return c
16903 }
16904
16905
16906
16907 func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall {
16908 var ids_ []string
16909 for _, v := range ids {
16910 ids_ = append(ids_, fmt.Sprint(v))
16911 }
16912 c.urlParams_.SetMulti("ids", ids_)
16913 return c
16914 }
16915
16916
16917
16918 func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall {
16919 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
16920 return c
16921 }
16922
16923
16924
16925 func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall {
16926 c.urlParams_.Set("pageToken", pageToken)
16927 return c
16928 }
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938 func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall {
16939 c.urlParams_.Set("searchString", searchString)
16940 return c
16941 }
16942
16943
16944
16945
16946
16947
16948
16949
16950 func (c *AccountsListCall) SortField(sortField string) *AccountsListCall {
16951 c.urlParams_.Set("sortField", sortField)
16952 return c
16953 }
16954
16955
16956
16957
16958
16959
16960
16961
16962 func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall {
16963 c.urlParams_.Set("sortOrder", sortOrder)
16964 return c
16965 }
16966
16967
16968
16969
16970 func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall {
16971 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16972 return c
16973 }
16974
16975
16976
16977
16978
16979
16980 func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall {
16981 c.ifNoneMatch_ = entityTag
16982 return c
16983 }
16984
16985
16986
16987
16988 func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall {
16989 c.ctx_ = ctx
16990 return c
16991 }
16992
16993
16994
16995 func (c *AccountsListCall) Header() http.Header {
16996 if c.header_ == nil {
16997 c.header_ = make(http.Header)
16998 }
16999 return c.header_
17000 }
17001
17002 func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) {
17003 reqHeaders := make(http.Header)
17004 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
17005 for k, v := range c.header_ {
17006 reqHeaders[k] = v
17007 }
17008 reqHeaders.Set("User-Agent", c.s.userAgent())
17009 if c.ifNoneMatch_ != "" {
17010 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17011 }
17012 var body io.Reader = nil
17013 c.urlParams_.Set("alt", alt)
17014 c.urlParams_.Set("prettyPrint", "false")
17015 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts")
17016 urls += "?" + c.urlParams_.Encode()
17017 req, err := http.NewRequest("GET", urls, body)
17018 if err != nil {
17019 return nil, err
17020 }
17021 req.Header = reqHeaders
17022 googleapi.Expand(req.URL, map[string]string{
17023 "profileId": strconv.FormatInt(c.profileId, 10),
17024 })
17025 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17026 }
17027
17028
17029
17030
17031
17032
17033
17034
17035 func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) {
17036 gensupport.SetOptions(c.urlParams_, opts...)
17037 res, err := c.doRequest("json")
17038 if res != nil && res.StatusCode == http.StatusNotModified {
17039 if res.Body != nil {
17040 res.Body.Close()
17041 }
17042 return nil, &googleapi.Error{
17043 Code: res.StatusCode,
17044 Header: res.Header,
17045 }
17046 }
17047 if err != nil {
17048 return nil, err
17049 }
17050 defer googleapi.CloseBody(res)
17051 if err := googleapi.CheckResponse(res); err != nil {
17052 return nil, err
17053 }
17054 ret := &AccountsListResponse{
17055 ServerResponse: googleapi.ServerResponse{
17056 Header: res.Header,
17057 HTTPStatusCode: res.StatusCode,
17058 },
17059 }
17060 target := &ret
17061 if err := gensupport.DecodeResponse(target, res); err != nil {
17062 return nil, err
17063 }
17064 return ret, nil
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150 }
17151
17152
17153
17154
17155 func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error {
17156 c.ctx_ = ctx
17157 defer c.PageToken(c.urlParams_.Get("pageToken"))
17158 for {
17159 x, err := c.Do()
17160 if err != nil {
17161 return err
17162 }
17163 if err := f(x); err != nil {
17164 return err
17165 }
17166 if x.NextPageToken == "" {
17167 return nil
17168 }
17169 c.PageToken(x.NextPageToken)
17170 }
17171 }
17172
17173
17174
17175 type AccountsPatchCall struct {
17176 s *Service
17177 profileId int64
17178 account *Account
17179 urlParams_ gensupport.URLParams
17180 ctx_ context.Context
17181 header_ http.Header
17182 }
17183
17184
17185
17186
17187
17188
17189 func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall {
17190 c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17191 c.profileId = profileId
17192 c.urlParams_.Set("id", fmt.Sprint(id))
17193 c.account = account
17194 return c
17195 }
17196
17197
17198
17199
17200 func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall {
17201 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17202 return c
17203 }
17204
17205
17206
17207
17208 func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall {
17209 c.ctx_ = ctx
17210 return c
17211 }
17212
17213
17214
17215 func (c *AccountsPatchCall) Header() http.Header {
17216 if c.header_ == nil {
17217 c.header_ = make(http.Header)
17218 }
17219 return c.header_
17220 }
17221
17222 func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) {
17223 reqHeaders := make(http.Header)
17224 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
17225 for k, v := range c.header_ {
17226 reqHeaders[k] = v
17227 }
17228 reqHeaders.Set("User-Agent", c.s.userAgent())
17229 var body io.Reader = nil
17230 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
17231 if err != nil {
17232 return nil, err
17233 }
17234 reqHeaders.Set("Content-Type", "application/json")
17235 c.urlParams_.Set("alt", alt)
17236 c.urlParams_.Set("prettyPrint", "false")
17237 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts")
17238 urls += "?" + c.urlParams_.Encode()
17239 req, err := http.NewRequest("PATCH", urls, body)
17240 if err != nil {
17241 return nil, err
17242 }
17243 req.Header = reqHeaders
17244 googleapi.Expand(req.URL, map[string]string{
17245 "profileId": strconv.FormatInt(c.profileId, 10),
17246 })
17247 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17248 }
17249
17250
17251
17252
17253
17254
17255
17256
17257 func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) {
17258 gensupport.SetOptions(c.urlParams_, opts...)
17259 res, err := c.doRequest("json")
17260 if res != nil && res.StatusCode == http.StatusNotModified {
17261 if res.Body != nil {
17262 res.Body.Close()
17263 }
17264 return nil, &googleapi.Error{
17265 Code: res.StatusCode,
17266 Header: res.Header,
17267 }
17268 }
17269 if err != nil {
17270 return nil, err
17271 }
17272 defer googleapi.CloseBody(res)
17273 if err := googleapi.CheckResponse(res); err != nil {
17274 return nil, err
17275 }
17276 ret := &Account{
17277 ServerResponse: googleapi.ServerResponse{
17278 Header: res.Header,
17279 HTTPStatusCode: res.StatusCode,
17280 },
17281 }
17282 target := &ret
17283 if err := gensupport.DecodeResponse(target, res); err != nil {
17284 return nil, err
17285 }
17286 return ret, nil
17287
17288
17289
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
17323
17324 }
17325
17326
17327
17328 type AccountsUpdateCall struct {
17329 s *Service
17330 profileId int64
17331 account *Account
17332 urlParams_ gensupport.URLParams
17333 ctx_ context.Context
17334 header_ http.Header
17335 }
17336
17337
17338
17339
17340 func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall {
17341 c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17342 c.profileId = profileId
17343 c.account = account
17344 return c
17345 }
17346
17347
17348
17349
17350 func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall {
17351 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17352 return c
17353 }
17354
17355
17356
17357
17358 func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall {
17359 c.ctx_ = ctx
17360 return c
17361 }
17362
17363
17364
17365 func (c *AccountsUpdateCall) Header() http.Header {
17366 if c.header_ == nil {
17367 c.header_ = make(http.Header)
17368 }
17369 return c.header_
17370 }
17371
17372 func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
17373 reqHeaders := make(http.Header)
17374 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
17375 for k, v := range c.header_ {
17376 reqHeaders[k] = v
17377 }
17378 reqHeaders.Set("User-Agent", c.s.userAgent())
17379 var body io.Reader = nil
17380 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
17381 if err != nil {
17382 return nil, err
17383 }
17384 reqHeaders.Set("Content-Type", "application/json")
17385 c.urlParams_.Set("alt", alt)
17386 c.urlParams_.Set("prettyPrint", "false")
17387 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts")
17388 urls += "?" + c.urlParams_.Encode()
17389 req, err := http.NewRequest("PUT", urls, body)
17390 if err != nil {
17391 return nil, err
17392 }
17393 req.Header = reqHeaders
17394 googleapi.Expand(req.URL, map[string]string{
17395 "profileId": strconv.FormatInt(c.profileId, 10),
17396 })
17397 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17398 }
17399
17400
17401
17402
17403
17404
17405
17406
17407 func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) {
17408 gensupport.SetOptions(c.urlParams_, opts...)
17409 res, err := c.doRequest("json")
17410 if res != nil && res.StatusCode == http.StatusNotModified {
17411 if res.Body != nil {
17412 res.Body.Close()
17413 }
17414 return nil, &googleapi.Error{
17415 Code: res.StatusCode,
17416 Header: res.Header,
17417 }
17418 }
17419 if err != nil {
17420 return nil, err
17421 }
17422 defer googleapi.CloseBody(res)
17423 if err := googleapi.CheckResponse(res); err != nil {
17424 return nil, err
17425 }
17426 ret := &Account{
17427 ServerResponse: googleapi.ServerResponse{
17428 Header: res.Header,
17429 HTTPStatusCode: res.StatusCode,
17430 },
17431 }
17432 target := &ret
17433 if err := gensupport.DecodeResponse(target, res); err != nil {
17434 return nil, err
17435 }
17436 return ret, nil
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466 }
17467
17468
17469
17470 type AdsGetCall struct {
17471 s *Service
17472 profileId int64
17473 id int64
17474 urlParams_ gensupport.URLParams
17475 ifNoneMatch_ string
17476 ctx_ context.Context
17477 header_ http.Header
17478 }
17479
17480
17481
17482
17483
17484 func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall {
17485 c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17486 c.profileId = profileId
17487 c.id = id
17488 return c
17489 }
17490
17491
17492
17493
17494 func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall {
17495 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17496 return c
17497 }
17498
17499
17500
17501
17502
17503
17504 func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall {
17505 c.ifNoneMatch_ = entityTag
17506 return c
17507 }
17508
17509
17510
17511
17512 func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall {
17513 c.ctx_ = ctx
17514 return c
17515 }
17516
17517
17518
17519 func (c *AdsGetCall) Header() http.Header {
17520 if c.header_ == nil {
17521 c.header_ = make(http.Header)
17522 }
17523 return c.header_
17524 }
17525
17526 func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) {
17527 reqHeaders := make(http.Header)
17528 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
17529 for k, v := range c.header_ {
17530 reqHeaders[k] = v
17531 }
17532 reqHeaders.Set("User-Agent", c.s.userAgent())
17533 if c.ifNoneMatch_ != "" {
17534 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17535 }
17536 var body io.Reader = nil
17537 c.urlParams_.Set("alt", alt)
17538 c.urlParams_.Set("prettyPrint", "false")
17539 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads/{id}")
17540 urls += "?" + c.urlParams_.Encode()
17541 req, err := http.NewRequest("GET", urls, body)
17542 if err != nil {
17543 return nil, err
17544 }
17545 req.Header = reqHeaders
17546 googleapi.Expand(req.URL, map[string]string{
17547 "profileId": strconv.FormatInt(c.profileId, 10),
17548 "id": strconv.FormatInt(c.id, 10),
17549 })
17550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17551 }
17552
17553
17554
17555
17556
17557
17558
17559
17560 func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
17561 gensupport.SetOptions(c.urlParams_, opts...)
17562 res, err := c.doRequest("json")
17563 if res != nil && res.StatusCode == http.StatusNotModified {
17564 if res.Body != nil {
17565 res.Body.Close()
17566 }
17567 return nil, &googleapi.Error{
17568 Code: res.StatusCode,
17569 Header: res.Header,
17570 }
17571 }
17572 if err != nil {
17573 return nil, err
17574 }
17575 defer googleapi.CloseBody(res)
17576 if err := googleapi.CheckResponse(res); err != nil {
17577 return nil, err
17578 }
17579 ret := &Ad{
17580 ServerResponse: googleapi.ServerResponse{
17581 Header: res.Header,
17582 HTTPStatusCode: res.StatusCode,
17583 },
17584 }
17585 target := &ret
17586 if err := gensupport.DecodeResponse(target, res); err != nil {
17587 return nil, err
17588 }
17589 return ret, nil
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624 }
17625
17626
17627
17628 type AdsInsertCall struct {
17629 s *Service
17630 profileId int64
17631 ad *Ad
17632 urlParams_ gensupport.URLParams
17633 ctx_ context.Context
17634 header_ http.Header
17635 }
17636
17637
17638
17639
17640 func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall {
17641 c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17642 c.profileId = profileId
17643 c.ad = ad
17644 return c
17645 }
17646
17647
17648
17649
17650 func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall {
17651 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17652 return c
17653 }
17654
17655
17656
17657
17658 func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall {
17659 c.ctx_ = ctx
17660 return c
17661 }
17662
17663
17664
17665 func (c *AdsInsertCall) Header() http.Header {
17666 if c.header_ == nil {
17667 c.header_ = make(http.Header)
17668 }
17669 return c.header_
17670 }
17671
17672 func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) {
17673 reqHeaders := make(http.Header)
17674 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
17675 for k, v := range c.header_ {
17676 reqHeaders[k] = v
17677 }
17678 reqHeaders.Set("User-Agent", c.s.userAgent())
17679 var body io.Reader = nil
17680 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad)
17681 if err != nil {
17682 return nil, err
17683 }
17684 reqHeaders.Set("Content-Type", "application/json")
17685 c.urlParams_.Set("alt", alt)
17686 c.urlParams_.Set("prettyPrint", "false")
17687 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
17688 urls += "?" + c.urlParams_.Encode()
17689 req, err := http.NewRequest("POST", urls, body)
17690 if err != nil {
17691 return nil, err
17692 }
17693 req.Header = reqHeaders
17694 googleapi.Expand(req.URL, map[string]string{
17695 "profileId": strconv.FormatInt(c.profileId, 10),
17696 })
17697 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17698 }
17699
17700
17701
17702
17703
17704
17705
17706
17707 func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
17708 gensupport.SetOptions(c.urlParams_, opts...)
17709 res, err := c.doRequest("json")
17710 if res != nil && res.StatusCode == http.StatusNotModified {
17711 if res.Body != nil {
17712 res.Body.Close()
17713 }
17714 return nil, &googleapi.Error{
17715 Code: res.StatusCode,
17716 Header: res.Header,
17717 }
17718 }
17719 if err != nil {
17720 return nil, err
17721 }
17722 defer googleapi.CloseBody(res)
17723 if err := googleapi.CheckResponse(res); err != nil {
17724 return nil, err
17725 }
17726 ret := &Ad{
17727 ServerResponse: googleapi.ServerResponse{
17728 Header: res.Header,
17729 HTTPStatusCode: res.StatusCode,
17730 },
17731 }
17732 target := &ret
17733 if err := gensupport.DecodeResponse(target, res); err != nil {
17734 return nil, err
17735 }
17736 return ret, nil
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766 }
17767
17768
17769
17770 type AdsListCall struct {
17771 s *Service
17772 profileId int64
17773 urlParams_ gensupport.URLParams
17774 ifNoneMatch_ string
17775 ctx_ context.Context
17776 header_ http.Header
17777 }
17778
17779
17780
17781
17782
17783 func (r *AdsService) List(profileId int64) *AdsListCall {
17784 c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17785 c.profileId = profileId
17786 return c
17787 }
17788
17789
17790 func (c *AdsListCall) Active(active bool) *AdsListCall {
17791 c.urlParams_.Set("active", fmt.Sprint(active))
17792 return c
17793 }
17794
17795
17796
17797 func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall {
17798 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
17799 return c
17800 }
17801
17802
17803
17804 func (c *AdsListCall) Archived(archived bool) *AdsListCall {
17805 c.urlParams_.Set("archived", fmt.Sprint(archived))
17806 return c
17807 }
17808
17809
17810
17811 func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall {
17812 var audienceSegmentIds_ []string
17813 for _, v := range audienceSegmentIds {
17814 audienceSegmentIds_ = append(audienceSegmentIds_, fmt.Sprint(v))
17815 }
17816 c.urlParams_.SetMulti("audienceSegmentIds", audienceSegmentIds_)
17817 return c
17818 }
17819
17820
17821
17822 func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall {
17823 var campaignIds_ []string
17824 for _, v := range campaignIds {
17825 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
17826 }
17827 c.urlParams_.SetMulti("campaignIds", campaignIds_)
17828 return c
17829 }
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847 func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall {
17848 c.urlParams_.Set("compatibility", compatibility)
17849 return c
17850 }
17851
17852
17853
17854 func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall {
17855 var creativeIds_ []string
17856 for _, v := range creativeIds {
17857 creativeIds_ = append(creativeIds_, fmt.Sprint(v))
17858 }
17859 c.urlParams_.SetMulti("creativeIds", creativeIds_)
17860 return c
17861 }
17862
17863
17864
17865
17866 func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall {
17867 var creativeOptimizationConfigurationIds_ []string
17868 for _, v := range creativeOptimizationConfigurationIds {
17869 creativeOptimizationConfigurationIds_ = append(creativeOptimizationConfigurationIds_, fmt.Sprint(v))
17870 }
17871 c.urlParams_.SetMulti("creativeOptimizationConfigurationIds", creativeOptimizationConfigurationIds_)
17872 return c
17873 }
17874
17875
17876
17877
17878
17879
17880 func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall {
17881 c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker))
17882 return c
17883 }
17884
17885
17886
17887 func (c *AdsListCall) Ids(ids ...int64) *AdsListCall {
17888 var ids_ []string
17889 for _, v := range ids {
17890 ids_ = append(ids_, fmt.Sprint(v))
17891 }
17892 c.urlParams_.SetMulti("ids", ids_)
17893 return c
17894 }
17895
17896
17897
17898 func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall {
17899 var landingPageIds_ []string
17900 for _, v := range landingPageIds {
17901 landingPageIds_ = append(landingPageIds_, fmt.Sprint(v))
17902 }
17903 c.urlParams_.SetMulti("landingPageIds", landingPageIds_)
17904 return c
17905 }
17906
17907
17908
17909 func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall {
17910 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
17911 return c
17912 }
17913
17914
17915
17916
17917 func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall {
17918 c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId))
17919 return c
17920 }
17921
17922
17923
17924 func (c *AdsListCall) PageToken(pageToken string) *AdsListCall {
17925 c.urlParams_.Set("pageToken", pageToken)
17926 return c
17927 }
17928
17929
17930
17931 func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall {
17932 var placementIds_ []string
17933 for _, v := range placementIds {
17934 placementIds_ = append(placementIds_, fmt.Sprint(v))
17935 }
17936 c.urlParams_.SetMulti("placementIds", placementIds_)
17937 return c
17938 }
17939
17940
17941
17942
17943 func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall {
17944 var remarketingListIds_ []string
17945 for _, v := range remarketingListIds {
17946 remarketingListIds_ = append(remarketingListIds_, fmt.Sprint(v))
17947 }
17948 c.urlParams_.SetMulti("remarketingListIds", remarketingListIds_)
17949 return c
17950 }
17951
17952
17953
17954
17955
17956
17957
17958
17959 func (c *AdsListCall) SearchString(searchString string) *AdsListCall {
17960 c.urlParams_.Set("searchString", searchString)
17961 return c
17962 }
17963
17964
17965
17966 func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall {
17967 var sizeIds_ []string
17968 for _, v := range sizeIds {
17969 sizeIds_ = append(sizeIds_, fmt.Sprint(v))
17970 }
17971 c.urlParams_.SetMulti("sizeIds", sizeIds_)
17972 return c
17973 }
17974
17975
17976
17977
17978
17979
17980
17981
17982 func (c *AdsListCall) SortField(sortField string) *AdsListCall {
17983 c.urlParams_.Set("sortField", sortField)
17984 return c
17985 }
17986
17987
17988
17989
17990
17991
17992
17993
17994 func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall {
17995 c.urlParams_.Set("sortOrder", sortOrder)
17996 return c
17997 }
17998
17999
18000
18001 func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall {
18002 c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant))
18003 return c
18004 }
18005
18006
18007
18008 func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall {
18009 c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired))
18010 return c
18011 }
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023 func (c *AdsListCall) Type(type_ ...string) *AdsListCall {
18024 c.urlParams_.SetMulti("type", append([]string{}, type_...))
18025 return c
18026 }
18027
18028
18029
18030
18031 func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall {
18032 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18033 return c
18034 }
18035
18036
18037
18038
18039
18040
18041 func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall {
18042 c.ifNoneMatch_ = entityTag
18043 return c
18044 }
18045
18046
18047
18048
18049 func (c *AdsListCall) Context(ctx context.Context) *AdsListCall {
18050 c.ctx_ = ctx
18051 return c
18052 }
18053
18054
18055
18056 func (c *AdsListCall) Header() http.Header {
18057 if c.header_ == nil {
18058 c.header_ = make(http.Header)
18059 }
18060 return c.header_
18061 }
18062
18063 func (c *AdsListCall) doRequest(alt string) (*http.Response, error) {
18064 reqHeaders := make(http.Header)
18065 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
18066 for k, v := range c.header_ {
18067 reqHeaders[k] = v
18068 }
18069 reqHeaders.Set("User-Agent", c.s.userAgent())
18070 if c.ifNoneMatch_ != "" {
18071 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18072 }
18073 var body io.Reader = nil
18074 c.urlParams_.Set("alt", alt)
18075 c.urlParams_.Set("prettyPrint", "false")
18076 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
18077 urls += "?" + c.urlParams_.Encode()
18078 req, err := http.NewRequest("GET", urls, body)
18079 if err != nil {
18080 return nil, err
18081 }
18082 req.Header = reqHeaders
18083 googleapi.Expand(req.URL, map[string]string{
18084 "profileId": strconv.FormatInt(c.profileId, 10),
18085 })
18086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18087 }
18088
18089
18090
18091
18092
18093
18094
18095
18096 func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) {
18097 gensupport.SetOptions(c.urlParams_, opts...)
18098 res, err := c.doRequest("json")
18099 if res != nil && res.StatusCode == http.StatusNotModified {
18100 if res.Body != nil {
18101 res.Body.Close()
18102 }
18103 return nil, &googleapi.Error{
18104 Code: res.StatusCode,
18105 Header: res.Header,
18106 }
18107 }
18108 if err != nil {
18109 return nil, err
18110 }
18111 defer googleapi.CloseBody(res)
18112 if err := googleapi.CheckResponse(res); err != nil {
18113 return nil, err
18114 }
18115 ret := &AdsListResponse{
18116 ServerResponse: googleapi.ServerResponse{
18117 Header: res.Header,
18118 HTTPStatusCode: res.StatusCode,
18119 },
18120 }
18121 target := &ret
18122 if err := gensupport.DecodeResponse(target, res); err != nil {
18123 return nil, err
18124 }
18125 return ret, nil
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
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
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
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340 }
18341
18342
18343
18344
18345 func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error {
18346 c.ctx_ = ctx
18347 defer c.PageToken(c.urlParams_.Get("pageToken"))
18348 for {
18349 x, err := c.Do()
18350 if err != nil {
18351 return err
18352 }
18353 if err := f(x); err != nil {
18354 return err
18355 }
18356 if x.NextPageToken == "" {
18357 return nil
18358 }
18359 c.PageToken(x.NextPageToken)
18360 }
18361 }
18362
18363
18364
18365 type AdsPatchCall struct {
18366 s *Service
18367 profileId int64
18368 ad *Ad
18369 urlParams_ gensupport.URLParams
18370 ctx_ context.Context
18371 header_ http.Header
18372 }
18373
18374
18375
18376
18377
18378 func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall {
18379 c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18380 c.profileId = profileId
18381 c.urlParams_.Set("id", fmt.Sprint(id))
18382 c.ad = ad
18383 return c
18384 }
18385
18386
18387
18388
18389 func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall {
18390 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18391 return c
18392 }
18393
18394
18395
18396
18397 func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall {
18398 c.ctx_ = ctx
18399 return c
18400 }
18401
18402
18403
18404 func (c *AdsPatchCall) Header() http.Header {
18405 if c.header_ == nil {
18406 c.header_ = make(http.Header)
18407 }
18408 return c.header_
18409 }
18410
18411 func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) {
18412 reqHeaders := make(http.Header)
18413 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
18414 for k, v := range c.header_ {
18415 reqHeaders[k] = v
18416 }
18417 reqHeaders.Set("User-Agent", c.s.userAgent())
18418 var body io.Reader = nil
18419 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad)
18420 if err != nil {
18421 return nil, err
18422 }
18423 reqHeaders.Set("Content-Type", "application/json")
18424 c.urlParams_.Set("alt", alt)
18425 c.urlParams_.Set("prettyPrint", "false")
18426 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
18427 urls += "?" + c.urlParams_.Encode()
18428 req, err := http.NewRequest("PATCH", urls, body)
18429 if err != nil {
18430 return nil, err
18431 }
18432 req.Header = reqHeaders
18433 googleapi.Expand(req.URL, map[string]string{
18434 "profileId": strconv.FormatInt(c.profileId, 10),
18435 })
18436 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18437 }
18438
18439
18440
18441
18442
18443
18444
18445
18446 func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
18447 gensupport.SetOptions(c.urlParams_, opts...)
18448 res, err := c.doRequest("json")
18449 if res != nil && res.StatusCode == http.StatusNotModified {
18450 if res.Body != nil {
18451 res.Body.Close()
18452 }
18453 return nil, &googleapi.Error{
18454 Code: res.StatusCode,
18455 Header: res.Header,
18456 }
18457 }
18458 if err != nil {
18459 return nil, err
18460 }
18461 defer googleapi.CloseBody(res)
18462 if err := googleapi.CheckResponse(res); err != nil {
18463 return nil, err
18464 }
18465 ret := &Ad{
18466 ServerResponse: googleapi.ServerResponse{
18467 Header: res.Header,
18468 HTTPStatusCode: res.StatusCode,
18469 },
18470 }
18471 target := &ret
18472 if err := gensupport.DecodeResponse(target, res); err != nil {
18473 return nil, err
18474 }
18475 return ret, nil
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513 }
18514
18515
18516
18517 type AdsUpdateCall struct {
18518 s *Service
18519 profileId int64
18520 ad *Ad
18521 urlParams_ gensupport.URLParams
18522 ctx_ context.Context
18523 header_ http.Header
18524 }
18525
18526
18527
18528
18529 func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall {
18530 c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18531 c.profileId = profileId
18532 c.ad = ad
18533 return c
18534 }
18535
18536
18537
18538
18539 func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall {
18540 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18541 return c
18542 }
18543
18544
18545
18546
18547 func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall {
18548 c.ctx_ = ctx
18549 return c
18550 }
18551
18552
18553
18554 func (c *AdsUpdateCall) Header() http.Header {
18555 if c.header_ == nil {
18556 c.header_ = make(http.Header)
18557 }
18558 return c.header_
18559 }
18560
18561 func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) {
18562 reqHeaders := make(http.Header)
18563 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
18564 for k, v := range c.header_ {
18565 reqHeaders[k] = v
18566 }
18567 reqHeaders.Set("User-Agent", c.s.userAgent())
18568 var body io.Reader = nil
18569 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad)
18570 if err != nil {
18571 return nil, err
18572 }
18573 reqHeaders.Set("Content-Type", "application/json")
18574 c.urlParams_.Set("alt", alt)
18575 c.urlParams_.Set("prettyPrint", "false")
18576 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads")
18577 urls += "?" + c.urlParams_.Encode()
18578 req, err := http.NewRequest("PUT", urls, body)
18579 if err != nil {
18580 return nil, err
18581 }
18582 req.Header = reqHeaders
18583 googleapi.Expand(req.URL, map[string]string{
18584 "profileId": strconv.FormatInt(c.profileId, 10),
18585 })
18586 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18587 }
18588
18589
18590
18591
18592
18593
18594
18595
18596 func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) {
18597 gensupport.SetOptions(c.urlParams_, opts...)
18598 res, err := c.doRequest("json")
18599 if res != nil && res.StatusCode == http.StatusNotModified {
18600 if res.Body != nil {
18601 res.Body.Close()
18602 }
18603 return nil, &googleapi.Error{
18604 Code: res.StatusCode,
18605 Header: res.Header,
18606 }
18607 }
18608 if err != nil {
18609 return nil, err
18610 }
18611 defer googleapi.CloseBody(res)
18612 if err := googleapi.CheckResponse(res); err != nil {
18613 return nil, err
18614 }
18615 ret := &Ad{
18616 ServerResponse: googleapi.ServerResponse{
18617 Header: res.Header,
18618 HTTPStatusCode: res.StatusCode,
18619 },
18620 }
18621 target := &ret
18622 if err := gensupport.DecodeResponse(target, res); err != nil {
18623 return nil, err
18624 }
18625 return ret, nil
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655 }
18656
18657
18658
18659 type AdvertiserGroupsDeleteCall struct {
18660 s *Service
18661 profileId int64
18662 id int64
18663 urlParams_ gensupport.URLParams
18664 ctx_ context.Context
18665 header_ http.Header
18666 }
18667
18668
18669
18670
18671
18672 func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall {
18673 c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18674 c.profileId = profileId
18675 c.id = id
18676 return c
18677 }
18678
18679
18680
18681
18682 func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall {
18683 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18684 return c
18685 }
18686
18687
18688
18689
18690 func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall {
18691 c.ctx_ = ctx
18692 return c
18693 }
18694
18695
18696
18697 func (c *AdvertiserGroupsDeleteCall) Header() http.Header {
18698 if c.header_ == nil {
18699 c.header_ = make(http.Header)
18700 }
18701 return c.header_
18702 }
18703
18704 func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
18705 reqHeaders := make(http.Header)
18706 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
18707 for k, v := range c.header_ {
18708 reqHeaders[k] = v
18709 }
18710 reqHeaders.Set("User-Agent", c.s.userAgent())
18711 var body io.Reader = nil
18712 c.urlParams_.Set("alt", alt)
18713 c.urlParams_.Set("prettyPrint", "false")
18714 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}")
18715 urls += "?" + c.urlParams_.Encode()
18716 req, err := http.NewRequest("DELETE", urls, body)
18717 if err != nil {
18718 return nil, err
18719 }
18720 req.Header = reqHeaders
18721 googleapi.Expand(req.URL, map[string]string{
18722 "profileId": strconv.FormatInt(c.profileId, 10),
18723 "id": strconv.FormatInt(c.id, 10),
18724 })
18725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18726 }
18727
18728
18729 func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error {
18730 gensupport.SetOptions(c.urlParams_, opts...)
18731 res, err := c.doRequest("json")
18732 if err != nil {
18733 return err
18734 }
18735 defer googleapi.CloseBody(res)
18736 if err := googleapi.CheckResponse(res); err != nil {
18737 return err
18738 }
18739 return nil
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771 }
18772
18773
18774
18775 type AdvertiserGroupsGetCall struct {
18776 s *Service
18777 profileId int64
18778 id int64
18779 urlParams_ gensupport.URLParams
18780 ifNoneMatch_ string
18781 ctx_ context.Context
18782 header_ http.Header
18783 }
18784
18785
18786
18787
18788
18789 func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall {
18790 c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18791 c.profileId = profileId
18792 c.id = id
18793 return c
18794 }
18795
18796
18797
18798
18799 func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall {
18800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18801 return c
18802 }
18803
18804
18805
18806
18807
18808
18809 func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall {
18810 c.ifNoneMatch_ = entityTag
18811 return c
18812 }
18813
18814
18815
18816
18817 func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall {
18818 c.ctx_ = ctx
18819 return c
18820 }
18821
18822
18823
18824 func (c *AdvertiserGroupsGetCall) Header() http.Header {
18825 if c.header_ == nil {
18826 c.header_ = make(http.Header)
18827 }
18828 return c.header_
18829 }
18830
18831 func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) {
18832 reqHeaders := make(http.Header)
18833 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
18834 for k, v := range c.header_ {
18835 reqHeaders[k] = v
18836 }
18837 reqHeaders.Set("User-Agent", c.s.userAgent())
18838 if c.ifNoneMatch_ != "" {
18839 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18840 }
18841 var body io.Reader = nil
18842 c.urlParams_.Set("alt", alt)
18843 c.urlParams_.Set("prettyPrint", "false")
18844 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups/{id}")
18845 urls += "?" + c.urlParams_.Encode()
18846 req, err := http.NewRequest("GET", urls, body)
18847 if err != nil {
18848 return nil, err
18849 }
18850 req.Header = reqHeaders
18851 googleapi.Expand(req.URL, map[string]string{
18852 "profileId": strconv.FormatInt(c.profileId, 10),
18853 "id": strconv.FormatInt(c.id, 10),
18854 })
18855 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18856 }
18857
18858
18859
18860
18861
18862
18863
18864
18865 func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
18866 gensupport.SetOptions(c.urlParams_, opts...)
18867 res, err := c.doRequest("json")
18868 if res != nil && res.StatusCode == http.StatusNotModified {
18869 if res.Body != nil {
18870 res.Body.Close()
18871 }
18872 return nil, &googleapi.Error{
18873 Code: res.StatusCode,
18874 Header: res.Header,
18875 }
18876 }
18877 if err != nil {
18878 return nil, err
18879 }
18880 defer googleapi.CloseBody(res)
18881 if err := googleapi.CheckResponse(res); err != nil {
18882 return nil, err
18883 }
18884 ret := &AdvertiserGroup{
18885 ServerResponse: googleapi.ServerResponse{
18886 Header: res.Header,
18887 HTTPStatusCode: res.StatusCode,
18888 },
18889 }
18890 target := &ret
18891 if err := gensupport.DecodeResponse(target, res); err != nil {
18892 return nil, err
18893 }
18894 return ret, nil
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 type AdvertiserGroupsInsertCall struct {
18934 s *Service
18935 profileId int64
18936 advertisergroup *AdvertiserGroup
18937 urlParams_ gensupport.URLParams
18938 ctx_ context.Context
18939 header_ http.Header
18940 }
18941
18942
18943
18944
18945 func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall {
18946 c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18947 c.profileId = profileId
18948 c.advertisergroup = advertisergroup
18949 return c
18950 }
18951
18952
18953
18954
18955 func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall {
18956 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18957 return c
18958 }
18959
18960
18961
18962
18963 func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall {
18964 c.ctx_ = ctx
18965 return c
18966 }
18967
18968
18969
18970 func (c *AdvertiserGroupsInsertCall) Header() http.Header {
18971 if c.header_ == nil {
18972 c.header_ = make(http.Header)
18973 }
18974 return c.header_
18975 }
18976
18977 func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
18978 reqHeaders := make(http.Header)
18979 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
18980 for k, v := range c.header_ {
18981 reqHeaders[k] = v
18982 }
18983 reqHeaders.Set("User-Agent", c.s.userAgent())
18984 var body io.Reader = nil
18985 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup)
18986 if err != nil {
18987 return nil, err
18988 }
18989 reqHeaders.Set("Content-Type", "application/json")
18990 c.urlParams_.Set("alt", alt)
18991 c.urlParams_.Set("prettyPrint", "false")
18992 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
18993 urls += "?" + c.urlParams_.Encode()
18994 req, err := http.NewRequest("POST", urls, body)
18995 if err != nil {
18996 return nil, err
18997 }
18998 req.Header = reqHeaders
18999 googleapi.Expand(req.URL, map[string]string{
19000 "profileId": strconv.FormatInt(c.profileId, 10),
19001 })
19002 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19003 }
19004
19005
19006
19007
19008
19009
19010
19011
19012 func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
19013 gensupport.SetOptions(c.urlParams_, opts...)
19014 res, err := c.doRequest("json")
19015 if res != nil && res.StatusCode == http.StatusNotModified {
19016 if res.Body != nil {
19017 res.Body.Close()
19018 }
19019 return nil, &googleapi.Error{
19020 Code: res.StatusCode,
19021 Header: res.Header,
19022 }
19023 }
19024 if err != nil {
19025 return nil, err
19026 }
19027 defer googleapi.CloseBody(res)
19028 if err := googleapi.CheckResponse(res); err != nil {
19029 return nil, err
19030 }
19031 ret := &AdvertiserGroup{
19032 ServerResponse: googleapi.ServerResponse{
19033 Header: res.Header,
19034 HTTPStatusCode: res.StatusCode,
19035 },
19036 }
19037 target := &ret
19038 if err := gensupport.DecodeResponse(target, res); err != nil {
19039 return nil, err
19040 }
19041 return ret, nil
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071 }
19072
19073
19074
19075 type AdvertiserGroupsListCall struct {
19076 s *Service
19077 profileId int64
19078 urlParams_ gensupport.URLParams
19079 ifNoneMatch_ string
19080 ctx_ context.Context
19081 header_ http.Header
19082 }
19083
19084
19085
19086
19087
19088 func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall {
19089 c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19090 c.profileId = profileId
19091 return c
19092 }
19093
19094
19095
19096 func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall {
19097 var ids_ []string
19098 for _, v := range ids {
19099 ids_ = append(ids_, fmt.Sprint(v))
19100 }
19101 c.urlParams_.SetMulti("ids", ids_)
19102 return c
19103 }
19104
19105
19106
19107 func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall {
19108 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
19109 return c
19110 }
19111
19112
19113
19114 func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroupsListCall {
19115 c.urlParams_.Set("pageToken", pageToken)
19116 return c
19117 }
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128 func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall {
19129 c.urlParams_.Set("searchString", searchString)
19130 return c
19131 }
19132
19133
19134
19135
19136
19137
19138
19139
19140 func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroupsListCall {
19141 c.urlParams_.Set("sortField", sortField)
19142 return c
19143 }
19144
19145
19146
19147
19148
19149
19150
19151
19152 func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroupsListCall {
19153 c.urlParams_.Set("sortOrder", sortOrder)
19154 return c
19155 }
19156
19157
19158
19159
19160 func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall {
19161 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19162 return c
19163 }
19164
19165
19166
19167
19168
19169
19170 func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall {
19171 c.ifNoneMatch_ = entityTag
19172 return c
19173 }
19174
19175
19176
19177
19178 func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall {
19179 c.ctx_ = ctx
19180 return c
19181 }
19182
19183
19184
19185 func (c *AdvertiserGroupsListCall) Header() http.Header {
19186 if c.header_ == nil {
19187 c.header_ = make(http.Header)
19188 }
19189 return c.header_
19190 }
19191
19192 func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) {
19193 reqHeaders := make(http.Header)
19194 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
19195 for k, v := range c.header_ {
19196 reqHeaders[k] = v
19197 }
19198 reqHeaders.Set("User-Agent", c.s.userAgent())
19199 if c.ifNoneMatch_ != "" {
19200 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19201 }
19202 var body io.Reader = nil
19203 c.urlParams_.Set("alt", alt)
19204 c.urlParams_.Set("prettyPrint", "false")
19205 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
19206 urls += "?" + c.urlParams_.Encode()
19207 req, err := http.NewRequest("GET", urls, body)
19208 if err != nil {
19209 return nil, err
19210 }
19211 req.Header = reqHeaders
19212 googleapi.Expand(req.URL, map[string]string{
19213 "profileId": strconv.FormatInt(c.profileId, 10),
19214 })
19215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19216 }
19217
19218
19219
19220
19221
19222
19223
19224
19225 func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) {
19226 gensupport.SetOptions(c.urlParams_, opts...)
19227 res, err := c.doRequest("json")
19228 if res != nil && res.StatusCode == http.StatusNotModified {
19229 if res.Body != nil {
19230 res.Body.Close()
19231 }
19232 return nil, &googleapi.Error{
19233 Code: res.StatusCode,
19234 Header: res.Header,
19235 }
19236 }
19237 if err != nil {
19238 return nil, err
19239 }
19240 defer googleapi.CloseBody(res)
19241 if err := googleapi.CheckResponse(res); err != nil {
19242 return nil, err
19243 }
19244 ret := &AdvertiserGroupsListResponse{
19245 ServerResponse: googleapi.ServerResponse{
19246 Header: res.Header,
19247 HTTPStatusCode: res.StatusCode,
19248 },
19249 }
19250 target := &ret
19251 if err := gensupport.DecodeResponse(target, res); err != nil {
19252 return nil, err
19253 }
19254 return ret, nil
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335 }
19336
19337
19338
19339
19340 func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error {
19341 c.ctx_ = ctx
19342 defer c.PageToken(c.urlParams_.Get("pageToken"))
19343 for {
19344 x, err := c.Do()
19345 if err != nil {
19346 return err
19347 }
19348 if err := f(x); err != nil {
19349 return err
19350 }
19351 if x.NextPageToken == "" {
19352 return nil
19353 }
19354 c.PageToken(x.NextPageToken)
19355 }
19356 }
19357
19358
19359
19360 type AdvertiserGroupsPatchCall struct {
19361 s *Service
19362 profileId int64
19363 advertisergroup *AdvertiserGroup
19364 urlParams_ gensupport.URLParams
19365 ctx_ context.Context
19366 header_ http.Header
19367 }
19368
19369
19370
19371
19372
19373
19374 func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall {
19375 c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19376 c.profileId = profileId
19377 c.urlParams_.Set("id", fmt.Sprint(id))
19378 c.advertisergroup = advertisergroup
19379 return c
19380 }
19381
19382
19383
19384
19385 func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall {
19386 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19387 return c
19388 }
19389
19390
19391
19392
19393 func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall {
19394 c.ctx_ = ctx
19395 return c
19396 }
19397
19398
19399
19400 func (c *AdvertiserGroupsPatchCall) Header() http.Header {
19401 if c.header_ == nil {
19402 c.header_ = make(http.Header)
19403 }
19404 return c.header_
19405 }
19406
19407 func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
19408 reqHeaders := make(http.Header)
19409 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
19410 for k, v := range c.header_ {
19411 reqHeaders[k] = v
19412 }
19413 reqHeaders.Set("User-Agent", c.s.userAgent())
19414 var body io.Reader = nil
19415 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup)
19416 if err != nil {
19417 return nil, err
19418 }
19419 reqHeaders.Set("Content-Type", "application/json")
19420 c.urlParams_.Set("alt", alt)
19421 c.urlParams_.Set("prettyPrint", "false")
19422 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
19423 urls += "?" + c.urlParams_.Encode()
19424 req, err := http.NewRequest("PATCH", urls, body)
19425 if err != nil {
19426 return nil, err
19427 }
19428 req.Header = reqHeaders
19429 googleapi.Expand(req.URL, map[string]string{
19430 "profileId": strconv.FormatInt(c.profileId, 10),
19431 })
19432 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19433 }
19434
19435
19436
19437
19438
19439
19440
19441
19442 func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
19443 gensupport.SetOptions(c.urlParams_, opts...)
19444 res, err := c.doRequest("json")
19445 if res != nil && res.StatusCode == http.StatusNotModified {
19446 if res.Body != nil {
19447 res.Body.Close()
19448 }
19449 return nil, &googleapi.Error{
19450 Code: res.StatusCode,
19451 Header: res.Header,
19452 }
19453 }
19454 if err != nil {
19455 return nil, err
19456 }
19457 defer googleapi.CloseBody(res)
19458 if err := googleapi.CheckResponse(res); err != nil {
19459 return nil, err
19460 }
19461 ret := &AdvertiserGroup{
19462 ServerResponse: googleapi.ServerResponse{
19463 Header: res.Header,
19464 HTTPStatusCode: res.StatusCode,
19465 },
19466 }
19467 target := &ret
19468 if err := gensupport.DecodeResponse(target, res); err != nil {
19469 return nil, err
19470 }
19471 return ret, nil
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509 }
19510
19511
19512
19513 type AdvertiserGroupsUpdateCall struct {
19514 s *Service
19515 profileId int64
19516 advertisergroup *AdvertiserGroup
19517 urlParams_ gensupport.URLParams
19518 ctx_ context.Context
19519 header_ http.Header
19520 }
19521
19522
19523
19524
19525 func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall {
19526 c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19527 c.profileId = profileId
19528 c.advertisergroup = advertisergroup
19529 return c
19530 }
19531
19532
19533
19534
19535 func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall {
19536 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19537 return c
19538 }
19539
19540
19541
19542
19543 func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall {
19544 c.ctx_ = ctx
19545 return c
19546 }
19547
19548
19549
19550 func (c *AdvertiserGroupsUpdateCall) Header() http.Header {
19551 if c.header_ == nil {
19552 c.header_ = make(http.Header)
19553 }
19554 return c.header_
19555 }
19556
19557 func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
19558 reqHeaders := make(http.Header)
19559 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
19560 for k, v := range c.header_ {
19561 reqHeaders[k] = v
19562 }
19563 reqHeaders.Set("User-Agent", c.s.userAgent())
19564 var body io.Reader = nil
19565 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup)
19566 if err != nil {
19567 return nil, err
19568 }
19569 reqHeaders.Set("Content-Type", "application/json")
19570 c.urlParams_.Set("alt", alt)
19571 c.urlParams_.Set("prettyPrint", "false")
19572 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups")
19573 urls += "?" + c.urlParams_.Encode()
19574 req, err := http.NewRequest("PUT", urls, body)
19575 if err != nil {
19576 return nil, err
19577 }
19578 req.Header = reqHeaders
19579 googleapi.Expand(req.URL, map[string]string{
19580 "profileId": strconv.FormatInt(c.profileId, 10),
19581 })
19582 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19583 }
19584
19585
19586
19587
19588
19589
19590
19591
19592 func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) {
19593 gensupport.SetOptions(c.urlParams_, opts...)
19594 res, err := c.doRequest("json")
19595 if res != nil && res.StatusCode == http.StatusNotModified {
19596 if res.Body != nil {
19597 res.Body.Close()
19598 }
19599 return nil, &googleapi.Error{
19600 Code: res.StatusCode,
19601 Header: res.Header,
19602 }
19603 }
19604 if err != nil {
19605 return nil, err
19606 }
19607 defer googleapi.CloseBody(res)
19608 if err := googleapi.CheckResponse(res); err != nil {
19609 return nil, err
19610 }
19611 ret := &AdvertiserGroup{
19612 ServerResponse: googleapi.ServerResponse{
19613 Header: res.Header,
19614 HTTPStatusCode: res.StatusCode,
19615 },
19616 }
19617 target := &ret
19618 if err := gensupport.DecodeResponse(target, res); err != nil {
19619 return nil, err
19620 }
19621 return ret, nil
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651 }
19652
19653
19654
19655 type AdvertiserLandingPagesGetCall struct {
19656 s *Service
19657 profileId int64
19658 id int64
19659 urlParams_ gensupport.URLParams
19660 ifNoneMatch_ string
19661 ctx_ context.Context
19662 header_ http.Header
19663 }
19664
19665
19666
19667
19668
19669 func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *AdvertiserLandingPagesGetCall {
19670 c := &AdvertiserLandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19671 c.profileId = profileId
19672 c.id = id
19673 return c
19674 }
19675
19676
19677
19678
19679 func (c *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall {
19680 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19681 return c
19682 }
19683
19684
19685
19686
19687
19688
19689 func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall {
19690 c.ifNoneMatch_ = entityTag
19691 return c
19692 }
19693
19694
19695
19696
19697 func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall {
19698 c.ctx_ = ctx
19699 return c
19700 }
19701
19702
19703
19704 func (c *AdvertiserLandingPagesGetCall) Header() http.Header {
19705 if c.header_ == nil {
19706 c.header_ = make(http.Header)
19707 }
19708 return c.header_
19709 }
19710
19711 func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) {
19712 reqHeaders := make(http.Header)
19713 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
19714 for k, v := range c.header_ {
19715 reqHeaders[k] = v
19716 }
19717 reqHeaders.Set("User-Agent", c.s.userAgent())
19718 if c.ifNoneMatch_ != "" {
19719 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19720 }
19721 var body io.Reader = nil
19722 c.urlParams_.Set("alt", alt)
19723 c.urlParams_.Set("prettyPrint", "false")
19724 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages/{id}")
19725 urls += "?" + c.urlParams_.Encode()
19726 req, err := http.NewRequest("GET", urls, body)
19727 if err != nil {
19728 return nil, err
19729 }
19730 req.Header = reqHeaders
19731 googleapi.Expand(req.URL, map[string]string{
19732 "profileId": strconv.FormatInt(c.profileId, 10),
19733 "id": strconv.FormatInt(c.id, 10),
19734 })
19735 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19736 }
19737
19738
19739
19740
19741
19742
19743
19744
19745 func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
19746 gensupport.SetOptions(c.urlParams_, opts...)
19747 res, err := c.doRequest("json")
19748 if res != nil && res.StatusCode == http.StatusNotModified {
19749 if res.Body != nil {
19750 res.Body.Close()
19751 }
19752 return nil, &googleapi.Error{
19753 Code: res.StatusCode,
19754 Header: res.Header,
19755 }
19756 }
19757 if err != nil {
19758 return nil, err
19759 }
19760 defer googleapi.CloseBody(res)
19761 if err := googleapi.CheckResponse(res); err != nil {
19762 return nil, err
19763 }
19764 ret := &LandingPage{
19765 ServerResponse: googleapi.ServerResponse{
19766 Header: res.Header,
19767 HTTPStatusCode: res.StatusCode,
19768 },
19769 }
19770 target := &ret
19771 if err := gensupport.DecodeResponse(target, res); err != nil {
19772 return nil, err
19773 }
19774 return ret, nil
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809 }
19810
19811
19812
19813 type AdvertiserLandingPagesInsertCall struct {
19814 s *Service
19815 profileId int64
19816 landingpage *LandingPage
19817 urlParams_ gensupport.URLParams
19818 ctx_ context.Context
19819 header_ http.Header
19820 }
19821
19822
19823
19824
19825 func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesInsertCall {
19826 c := &AdvertiserLandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19827 c.profileId = profileId
19828 c.landingpage = landingpage
19829 return c
19830 }
19831
19832
19833
19834
19835 func (c *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall {
19836 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19837 return c
19838 }
19839
19840
19841
19842
19843 func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall {
19844 c.ctx_ = ctx
19845 return c
19846 }
19847
19848
19849
19850 func (c *AdvertiserLandingPagesInsertCall) Header() http.Header {
19851 if c.header_ == nil {
19852 c.header_ = make(http.Header)
19853 }
19854 return c.header_
19855 }
19856
19857 func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) {
19858 reqHeaders := make(http.Header)
19859 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
19860 for k, v := range c.header_ {
19861 reqHeaders[k] = v
19862 }
19863 reqHeaders.Set("User-Agent", c.s.userAgent())
19864 var body io.Reader = nil
19865 body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage)
19866 if err != nil {
19867 return nil, err
19868 }
19869 reqHeaders.Set("Content-Type", "application/json")
19870 c.urlParams_.Set("alt", alt)
19871 c.urlParams_.Set("prettyPrint", "false")
19872 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages")
19873 urls += "?" + c.urlParams_.Encode()
19874 req, err := http.NewRequest("POST", urls, body)
19875 if err != nil {
19876 return nil, err
19877 }
19878 req.Header = reqHeaders
19879 googleapi.Expand(req.URL, map[string]string{
19880 "profileId": strconv.FormatInt(c.profileId, 10),
19881 })
19882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19883 }
19884
19885
19886
19887
19888
19889
19890
19891
19892 func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
19893 gensupport.SetOptions(c.urlParams_, opts...)
19894 res, err := c.doRequest("json")
19895 if res != nil && res.StatusCode == http.StatusNotModified {
19896 if res.Body != nil {
19897 res.Body.Close()
19898 }
19899 return nil, &googleapi.Error{
19900 Code: res.StatusCode,
19901 Header: res.Header,
19902 }
19903 }
19904 if err != nil {
19905 return nil, err
19906 }
19907 defer googleapi.CloseBody(res)
19908 if err := googleapi.CheckResponse(res); err != nil {
19909 return nil, err
19910 }
19911 ret := &LandingPage{
19912 ServerResponse: googleapi.ServerResponse{
19913 Header: res.Header,
19914 HTTPStatusCode: res.StatusCode,
19915 },
19916 }
19917 target := &ret
19918 if err := gensupport.DecodeResponse(target, res); err != nil {
19919 return nil, err
19920 }
19921 return ret, nil
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951 }
19952
19953
19954
19955 type AdvertiserLandingPagesListCall struct {
19956 s *Service
19957 profileId int64
19958 urlParams_ gensupport.URLParams
19959 ifNoneMatch_ string
19960 ctx_ context.Context
19961 header_ http.Header
19962 }
19963
19964
19965
19966
19967 func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLandingPagesListCall {
19968 c := &AdvertiserLandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19969 c.profileId = profileId
19970 return c
19971 }
19972
19973
19974
19975 func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall {
19976 var advertiserIds_ []string
19977 for _, v := range advertiserIds {
19978 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
19979 }
19980 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
19981 return c
19982 }
19983
19984
19985
19986
19987 func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall {
19988 c.urlParams_.Set("archived", fmt.Sprint(archived))
19989 return c
19990 }
19991
19992
19993
19994 func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall {
19995 var campaignIds_ []string
19996 for _, v := range campaignIds {
19997 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
19998 }
19999 c.urlParams_.SetMulti("campaignIds", campaignIds_)
20000 return c
20001 }
20002
20003
20004
20005 func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall {
20006 var ids_ []string
20007 for _, v := range ids {
20008 ids_ = append(ids_, fmt.Sprint(v))
20009 }
20010 c.urlParams_.SetMulti("ids", ids_)
20011 return c
20012 }
20013
20014
20015
20016 func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall {
20017 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
20018 return c
20019 }
20020
20021
20022
20023 func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *AdvertiserLandingPagesListCall {
20024 c.urlParams_.Set("pageToken", pageToken)
20025 return c
20026 }
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036 func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall {
20037 c.urlParams_.Set("searchString", searchString)
20038 return c
20039 }
20040
20041
20042
20043
20044
20045
20046
20047
20048 func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *AdvertiserLandingPagesListCall {
20049 c.urlParams_.Set("sortField", sortField)
20050 return c
20051 }
20052
20053
20054
20055
20056
20057
20058
20059
20060 func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *AdvertiserLandingPagesListCall {
20061 c.urlParams_.Set("sortOrder", sortOrder)
20062 return c
20063 }
20064
20065
20066
20067 func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall {
20068 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
20069 return c
20070 }
20071
20072
20073
20074
20075 func (c *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall {
20076 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20077 return c
20078 }
20079
20080
20081
20082
20083
20084
20085 func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall {
20086 c.ifNoneMatch_ = entityTag
20087 return c
20088 }
20089
20090
20091
20092
20093 func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall {
20094 c.ctx_ = ctx
20095 return c
20096 }
20097
20098
20099
20100 func (c *AdvertiserLandingPagesListCall) Header() http.Header {
20101 if c.header_ == nil {
20102 c.header_ = make(http.Header)
20103 }
20104 return c.header_
20105 }
20106
20107 func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) {
20108 reqHeaders := make(http.Header)
20109 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
20110 for k, v := range c.header_ {
20111 reqHeaders[k] = v
20112 }
20113 reqHeaders.Set("User-Agent", c.s.userAgent())
20114 if c.ifNoneMatch_ != "" {
20115 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20116 }
20117 var body io.Reader = nil
20118 c.urlParams_.Set("alt", alt)
20119 c.urlParams_.Set("prettyPrint", "false")
20120 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages")
20121 urls += "?" + c.urlParams_.Encode()
20122 req, err := http.NewRequest("GET", urls, body)
20123 if err != nil {
20124 return nil, err
20125 }
20126 req.Header = reqHeaders
20127 googleapi.Expand(req.URL, map[string]string{
20128 "profileId": strconv.FormatInt(c.profileId, 10),
20129 })
20130 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20131 }
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141 func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) {
20142 gensupport.SetOptions(c.urlParams_, opts...)
20143 res, err := c.doRequest("json")
20144 if res != nil && res.StatusCode == http.StatusNotModified {
20145 if res.Body != nil {
20146 res.Body.Close()
20147 }
20148 return nil, &googleapi.Error{
20149 Code: res.StatusCode,
20150 Header: res.Header,
20151 }
20152 }
20153 if err != nil {
20154 return nil, err
20155 }
20156 defer googleapi.CloseBody(res)
20157 if err := googleapi.CheckResponse(res); err != nil {
20158 return nil, err
20159 }
20160 ret := &AdvertiserLandingPagesListResponse{
20161 ServerResponse: googleapi.ServerResponse{
20162 Header: res.Header,
20163 HTTPStatusCode: res.StatusCode,
20164 },
20165 }
20166 target := &ret
20167 if err := gensupport.DecodeResponse(target, res); err != nil {
20168 return nil, err
20169 }
20170 return ret, nil
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276 }
20277
20278
20279
20280
20281 func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) error) error {
20282 c.ctx_ = ctx
20283 defer c.PageToken(c.urlParams_.Get("pageToken"))
20284 for {
20285 x, err := c.Do()
20286 if err != nil {
20287 return err
20288 }
20289 if err := f(x); err != nil {
20290 return err
20291 }
20292 if x.NextPageToken == "" {
20293 return nil
20294 }
20295 c.PageToken(x.NextPageToken)
20296 }
20297 }
20298
20299
20300
20301 type AdvertiserLandingPagesPatchCall struct {
20302 s *Service
20303 profileId int64
20304 landingpage *LandingPage
20305 urlParams_ gensupport.URLParams
20306 ctx_ context.Context
20307 header_ http.Header
20308 }
20309
20310
20311
20312
20313
20314
20315 func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall {
20316 c := &AdvertiserLandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20317 c.profileId = profileId
20318 c.urlParams_.Set("id", fmt.Sprint(id))
20319 c.landingpage = landingpage
20320 return c
20321 }
20322
20323
20324
20325
20326 func (c *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall {
20327 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20328 return c
20329 }
20330
20331
20332
20333
20334 func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall {
20335 c.ctx_ = ctx
20336 return c
20337 }
20338
20339
20340
20341 func (c *AdvertiserLandingPagesPatchCall) Header() http.Header {
20342 if c.header_ == nil {
20343 c.header_ = make(http.Header)
20344 }
20345 return c.header_
20346 }
20347
20348 func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) {
20349 reqHeaders := make(http.Header)
20350 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
20351 for k, v := range c.header_ {
20352 reqHeaders[k] = v
20353 }
20354 reqHeaders.Set("User-Agent", c.s.userAgent())
20355 var body io.Reader = nil
20356 body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage)
20357 if err != nil {
20358 return nil, err
20359 }
20360 reqHeaders.Set("Content-Type", "application/json")
20361 c.urlParams_.Set("alt", alt)
20362 c.urlParams_.Set("prettyPrint", "false")
20363 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages")
20364 urls += "?" + c.urlParams_.Encode()
20365 req, err := http.NewRequest("PATCH", urls, body)
20366 if err != nil {
20367 return nil, err
20368 }
20369 req.Header = reqHeaders
20370 googleapi.Expand(req.URL, map[string]string{
20371 "profileId": strconv.FormatInt(c.profileId, 10),
20372 })
20373 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20374 }
20375
20376
20377
20378
20379
20380
20381
20382
20383 func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
20384 gensupport.SetOptions(c.urlParams_, opts...)
20385 res, err := c.doRequest("json")
20386 if res != nil && res.StatusCode == http.StatusNotModified {
20387 if res.Body != nil {
20388 res.Body.Close()
20389 }
20390 return nil, &googleapi.Error{
20391 Code: res.StatusCode,
20392 Header: res.Header,
20393 }
20394 }
20395 if err != nil {
20396 return nil, err
20397 }
20398 defer googleapi.CloseBody(res)
20399 if err := googleapi.CheckResponse(res); err != nil {
20400 return nil, err
20401 }
20402 ret := &LandingPage{
20403 ServerResponse: googleapi.ServerResponse{
20404 Header: res.Header,
20405 HTTPStatusCode: res.StatusCode,
20406 },
20407 }
20408 target := &ret
20409 if err := gensupport.DecodeResponse(target, res); err != nil {
20410 return nil, err
20411 }
20412 return ret, nil
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 type AdvertiserLandingPagesUpdateCall struct {
20455 s *Service
20456 profileId int64
20457 landingpage *LandingPage
20458 urlParams_ gensupport.URLParams
20459 ctx_ context.Context
20460 header_ http.Header
20461 }
20462
20463
20464
20465
20466 func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesUpdateCall {
20467 c := &AdvertiserLandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20468 c.profileId = profileId
20469 c.landingpage = landingpage
20470 return c
20471 }
20472
20473
20474
20475
20476 func (c *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall {
20477 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20478 return c
20479 }
20480
20481
20482
20483
20484 func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall {
20485 c.ctx_ = ctx
20486 return c
20487 }
20488
20489
20490
20491 func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header {
20492 if c.header_ == nil {
20493 c.header_ = make(http.Header)
20494 }
20495 return c.header_
20496 }
20497
20498 func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) {
20499 reqHeaders := make(http.Header)
20500 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
20501 for k, v := range c.header_ {
20502 reqHeaders[k] = v
20503 }
20504 reqHeaders.Set("User-Agent", c.s.userAgent())
20505 var body io.Reader = nil
20506 body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage)
20507 if err != nil {
20508 return nil, err
20509 }
20510 reqHeaders.Set("Content-Type", "application/json")
20511 c.urlParams_.Set("alt", alt)
20512 c.urlParams_.Set("prettyPrint", "false")
20513 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages")
20514 urls += "?" + c.urlParams_.Encode()
20515 req, err := http.NewRequest("PUT", urls, body)
20516 if err != nil {
20517 return nil, err
20518 }
20519 req.Header = reqHeaders
20520 googleapi.Expand(req.URL, map[string]string{
20521 "profileId": strconv.FormatInt(c.profileId, 10),
20522 })
20523 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20524 }
20525
20526
20527
20528
20529
20530
20531
20532
20533 func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) {
20534 gensupport.SetOptions(c.urlParams_, opts...)
20535 res, err := c.doRequest("json")
20536 if res != nil && res.StatusCode == http.StatusNotModified {
20537 if res.Body != nil {
20538 res.Body.Close()
20539 }
20540 return nil, &googleapi.Error{
20541 Code: res.StatusCode,
20542 Header: res.Header,
20543 }
20544 }
20545 if err != nil {
20546 return nil, err
20547 }
20548 defer googleapi.CloseBody(res)
20549 if err := googleapi.CheckResponse(res); err != nil {
20550 return nil, err
20551 }
20552 ret := &LandingPage{
20553 ServerResponse: googleapi.ServerResponse{
20554 Header: res.Header,
20555 HTTPStatusCode: res.StatusCode,
20556 },
20557 }
20558 target := &ret
20559 if err := gensupport.DecodeResponse(target, res); err != nil {
20560 return nil, err
20561 }
20562 return ret, nil
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592 }
20593
20594
20595
20596 type AdvertisersGetCall struct {
20597 s *Service
20598 profileId int64
20599 id int64
20600 urlParams_ gensupport.URLParams
20601 ifNoneMatch_ string
20602 ctx_ context.Context
20603 header_ http.Header
20604 }
20605
20606
20607
20608
20609
20610 func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall {
20611 c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20612 c.profileId = profileId
20613 c.id = id
20614 return c
20615 }
20616
20617
20618
20619
20620 func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall {
20621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20622 return c
20623 }
20624
20625
20626
20627
20628
20629
20630 func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall {
20631 c.ifNoneMatch_ = entityTag
20632 return c
20633 }
20634
20635
20636
20637
20638 func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall {
20639 c.ctx_ = ctx
20640 return c
20641 }
20642
20643
20644
20645 func (c *AdvertisersGetCall) Header() http.Header {
20646 if c.header_ == nil {
20647 c.header_ = make(http.Header)
20648 }
20649 return c.header_
20650 }
20651
20652 func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) {
20653 reqHeaders := make(http.Header)
20654 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
20655 for k, v := range c.header_ {
20656 reqHeaders[k] = v
20657 }
20658 reqHeaders.Set("User-Agent", c.s.userAgent())
20659 if c.ifNoneMatch_ != "" {
20660 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20661 }
20662 var body io.Reader = nil
20663 c.urlParams_.Set("alt", alt)
20664 c.urlParams_.Set("prettyPrint", "false")
20665 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers/{id}")
20666 urls += "?" + c.urlParams_.Encode()
20667 req, err := http.NewRequest("GET", urls, body)
20668 if err != nil {
20669 return nil, err
20670 }
20671 req.Header = reqHeaders
20672 googleapi.Expand(req.URL, map[string]string{
20673 "profileId": strconv.FormatInt(c.profileId, 10),
20674 "id": strconv.FormatInt(c.id, 10),
20675 })
20676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20677 }
20678
20679
20680
20681
20682
20683
20684
20685
20686 func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
20687 gensupport.SetOptions(c.urlParams_, opts...)
20688 res, err := c.doRequest("json")
20689 if res != nil && res.StatusCode == http.StatusNotModified {
20690 if res.Body != nil {
20691 res.Body.Close()
20692 }
20693 return nil, &googleapi.Error{
20694 Code: res.StatusCode,
20695 Header: res.Header,
20696 }
20697 }
20698 if err != nil {
20699 return nil, err
20700 }
20701 defer googleapi.CloseBody(res)
20702 if err := googleapi.CheckResponse(res); err != nil {
20703 return nil, err
20704 }
20705 ret := &Advertiser{
20706 ServerResponse: googleapi.ServerResponse{
20707 Header: res.Header,
20708 HTTPStatusCode: res.StatusCode,
20709 },
20710 }
20711 target := &ret
20712 if err := gensupport.DecodeResponse(target, res); err != nil {
20713 return nil, err
20714 }
20715 return ret, nil
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750 }
20751
20752
20753
20754 type AdvertisersInsertCall struct {
20755 s *Service
20756 profileId int64
20757 advertiser *Advertiser
20758 urlParams_ gensupport.URLParams
20759 ctx_ context.Context
20760 header_ http.Header
20761 }
20762
20763
20764
20765
20766 func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall {
20767 c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20768 c.profileId = profileId
20769 c.advertiser = advertiser
20770 return c
20771 }
20772
20773
20774
20775
20776 func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall {
20777 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20778 return c
20779 }
20780
20781
20782
20783
20784 func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall {
20785 c.ctx_ = ctx
20786 return c
20787 }
20788
20789
20790
20791 func (c *AdvertisersInsertCall) Header() http.Header {
20792 if c.header_ == nil {
20793 c.header_ = make(http.Header)
20794 }
20795 return c.header_
20796 }
20797
20798 func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) {
20799 reqHeaders := make(http.Header)
20800 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
20801 for k, v := range c.header_ {
20802 reqHeaders[k] = v
20803 }
20804 reqHeaders.Set("User-Agent", c.s.userAgent())
20805 var body io.Reader = nil
20806 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser)
20807 if err != nil {
20808 return nil, err
20809 }
20810 reqHeaders.Set("Content-Type", "application/json")
20811 c.urlParams_.Set("alt", alt)
20812 c.urlParams_.Set("prettyPrint", "false")
20813 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
20814 urls += "?" + c.urlParams_.Encode()
20815 req, err := http.NewRequest("POST", urls, body)
20816 if err != nil {
20817 return nil, err
20818 }
20819 req.Header = reqHeaders
20820 googleapi.Expand(req.URL, map[string]string{
20821 "profileId": strconv.FormatInt(c.profileId, 10),
20822 })
20823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20824 }
20825
20826
20827
20828
20829
20830
20831
20832
20833 func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
20834 gensupport.SetOptions(c.urlParams_, opts...)
20835 res, err := c.doRequest("json")
20836 if res != nil && res.StatusCode == http.StatusNotModified {
20837 if res.Body != nil {
20838 res.Body.Close()
20839 }
20840 return nil, &googleapi.Error{
20841 Code: res.StatusCode,
20842 Header: res.Header,
20843 }
20844 }
20845 if err != nil {
20846 return nil, err
20847 }
20848 defer googleapi.CloseBody(res)
20849 if err := googleapi.CheckResponse(res); err != nil {
20850 return nil, err
20851 }
20852 ret := &Advertiser{
20853 ServerResponse: googleapi.ServerResponse{
20854 Header: res.Header,
20855 HTTPStatusCode: res.StatusCode,
20856 },
20857 }
20858 target := &ret
20859 if err := gensupport.DecodeResponse(target, res); err != nil {
20860 return nil, err
20861 }
20862 return ret, nil
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892 }
20893
20894
20895
20896 type AdvertisersListCall struct {
20897 s *Service
20898 profileId int64
20899 urlParams_ gensupport.URLParams
20900 ifNoneMatch_ string
20901 ctx_ context.Context
20902 header_ http.Header
20903 }
20904
20905
20906
20907
20908
20909 func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall {
20910 c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20911 c.profileId = profileId
20912 return c
20913 }
20914
20915
20916
20917 func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall {
20918 var advertiserGroupIds_ []string
20919 for _, v := range advertiserGroupIds {
20920 advertiserGroupIds_ = append(advertiserGroupIds_, fmt.Sprint(v))
20921 }
20922 c.urlParams_.SetMulti("advertiserGroupIds", advertiserGroupIds_)
20923 return c
20924 }
20925
20926
20927
20928
20929 func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall {
20930 var floodlightConfigurationIds_ []string
20931 for _, v := range floodlightConfigurationIds {
20932 floodlightConfigurationIds_ = append(floodlightConfigurationIds_, fmt.Sprint(v))
20933 }
20934 c.urlParams_.SetMulti("floodlightConfigurationIds", floodlightConfigurationIds_)
20935 return c
20936 }
20937
20938
20939
20940 func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall {
20941 var ids_ []string
20942 for _, v := range ids {
20943 ids_ = append(ids_, fmt.Sprint(v))
20944 }
20945 c.urlParams_.SetMulti("ids", ids_)
20946 return c
20947 }
20948
20949
20950
20951
20952 func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall {
20953 c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly))
20954 return c
20955 }
20956
20957
20958
20959 func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall {
20960 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
20961 return c
20962 }
20963
20964
20965
20966 func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall {
20967 c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent))
20968 return c
20969 }
20970
20971
20972
20973 func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall {
20974 c.urlParams_.Set("pageToken", pageToken)
20975 return c
20976 }
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986 func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall {
20987 c.urlParams_.Set("searchString", searchString)
20988 return c
20989 }
20990
20991
20992
20993
20994
20995
20996
20997
20998 func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall {
20999 c.urlParams_.Set("sortField", sortField)
21000 return c
21001 }
21002
21003
21004
21005
21006
21007
21008
21009
21010 func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall {
21011 c.urlParams_.Set("sortOrder", sortOrder)
21012 return c
21013 }
21014
21015
21016
21017
21018
21019
21020
21021
21022 func (c *AdvertisersListCall) Status(status string) *AdvertisersListCall {
21023 c.urlParams_.Set("status", status)
21024 return c
21025 }
21026
21027
21028
21029 func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListCall {
21030 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
21031 return c
21032 }
21033
21034
21035
21036
21037 func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall {
21038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21039 return c
21040 }
21041
21042
21043
21044
21045
21046
21047 func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall {
21048 c.ifNoneMatch_ = entityTag
21049 return c
21050 }
21051
21052
21053
21054
21055 func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall {
21056 c.ctx_ = ctx
21057 return c
21058 }
21059
21060
21061
21062 func (c *AdvertisersListCall) Header() http.Header {
21063 if c.header_ == nil {
21064 c.header_ = make(http.Header)
21065 }
21066 return c.header_
21067 }
21068
21069 func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) {
21070 reqHeaders := make(http.Header)
21071 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
21072 for k, v := range c.header_ {
21073 reqHeaders[k] = v
21074 }
21075 reqHeaders.Set("User-Agent", c.s.userAgent())
21076 if c.ifNoneMatch_ != "" {
21077 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21078 }
21079 var body io.Reader = nil
21080 c.urlParams_.Set("alt", alt)
21081 c.urlParams_.Set("prettyPrint", "false")
21082 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
21083 urls += "?" + c.urlParams_.Encode()
21084 req, err := http.NewRequest("GET", urls, body)
21085 if err != nil {
21086 return nil, err
21087 }
21088 req.Header = reqHeaders
21089 googleapi.Expand(req.URL, map[string]string{
21090 "profileId": strconv.FormatInt(c.profileId, 10),
21091 })
21092 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21093 }
21094
21095
21096
21097
21098
21099
21100
21101
21102 func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) {
21103 gensupport.SetOptions(c.urlParams_, opts...)
21104 res, err := c.doRequest("json")
21105 if res != nil && res.StatusCode == http.StatusNotModified {
21106 if res.Body != nil {
21107 res.Body.Close()
21108 }
21109 return nil, &googleapi.Error{
21110 Code: res.StatusCode,
21111 Header: res.Header,
21112 }
21113 }
21114 if err != nil {
21115 return nil, err
21116 }
21117 defer googleapi.CloseBody(res)
21118 if err := googleapi.CheckResponse(res); err != nil {
21119 return nil, err
21120 }
21121 ret := &AdvertisersListResponse{
21122 ServerResponse: googleapi.ServerResponse{
21123 Header: res.Header,
21124 HTTPStatusCode: res.StatusCode,
21125 },
21126 }
21127 target := &ret
21128 if err := gensupport.DecodeResponse(target, res); err != nil {
21129 return nil, err
21130 }
21131 return ret, nil
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
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 func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error {
21261 c.ctx_ = ctx
21262 defer c.PageToken(c.urlParams_.Get("pageToken"))
21263 for {
21264 x, err := c.Do()
21265 if err != nil {
21266 return err
21267 }
21268 if err := f(x); err != nil {
21269 return err
21270 }
21271 if x.NextPageToken == "" {
21272 return nil
21273 }
21274 c.PageToken(x.NextPageToken)
21275 }
21276 }
21277
21278
21279
21280 type AdvertisersPatchCall struct {
21281 s *Service
21282 profileId int64
21283 advertiser *Advertiser
21284 urlParams_ gensupport.URLParams
21285 ctx_ context.Context
21286 header_ http.Header
21287 }
21288
21289
21290
21291
21292
21293
21294 func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall {
21295 c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21296 c.profileId = profileId
21297 c.urlParams_.Set("id", fmt.Sprint(id))
21298 c.advertiser = advertiser
21299 return c
21300 }
21301
21302
21303
21304
21305 func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall {
21306 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21307 return c
21308 }
21309
21310
21311
21312
21313 func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall {
21314 c.ctx_ = ctx
21315 return c
21316 }
21317
21318
21319
21320 func (c *AdvertisersPatchCall) Header() http.Header {
21321 if c.header_ == nil {
21322 c.header_ = make(http.Header)
21323 }
21324 return c.header_
21325 }
21326
21327 func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) {
21328 reqHeaders := make(http.Header)
21329 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
21330 for k, v := range c.header_ {
21331 reqHeaders[k] = v
21332 }
21333 reqHeaders.Set("User-Agent", c.s.userAgent())
21334 var body io.Reader = nil
21335 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser)
21336 if err != nil {
21337 return nil, err
21338 }
21339 reqHeaders.Set("Content-Type", "application/json")
21340 c.urlParams_.Set("alt", alt)
21341 c.urlParams_.Set("prettyPrint", "false")
21342 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
21343 urls += "?" + c.urlParams_.Encode()
21344 req, err := http.NewRequest("PATCH", urls, body)
21345 if err != nil {
21346 return nil, err
21347 }
21348 req.Header = reqHeaders
21349 googleapi.Expand(req.URL, map[string]string{
21350 "profileId": strconv.FormatInt(c.profileId, 10),
21351 })
21352 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21353 }
21354
21355
21356
21357
21358
21359
21360
21361
21362 func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
21363 gensupport.SetOptions(c.urlParams_, opts...)
21364 res, err := c.doRequest("json")
21365 if res != nil && res.StatusCode == http.StatusNotModified {
21366 if res.Body != nil {
21367 res.Body.Close()
21368 }
21369 return nil, &googleapi.Error{
21370 Code: res.StatusCode,
21371 Header: res.Header,
21372 }
21373 }
21374 if err != nil {
21375 return nil, err
21376 }
21377 defer googleapi.CloseBody(res)
21378 if err := googleapi.CheckResponse(res); err != nil {
21379 return nil, err
21380 }
21381 ret := &Advertiser{
21382 ServerResponse: googleapi.ServerResponse{
21383 Header: res.Header,
21384 HTTPStatusCode: res.StatusCode,
21385 },
21386 }
21387 target := &ret
21388 if err := gensupport.DecodeResponse(target, res); err != nil {
21389 return nil, err
21390 }
21391 return ret, nil
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429 }
21430
21431
21432
21433 type AdvertisersUpdateCall struct {
21434 s *Service
21435 profileId int64
21436 advertiser *Advertiser
21437 urlParams_ gensupport.URLParams
21438 ctx_ context.Context
21439 header_ http.Header
21440 }
21441
21442
21443
21444
21445 func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall {
21446 c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21447 c.profileId = profileId
21448 c.advertiser = advertiser
21449 return c
21450 }
21451
21452
21453
21454
21455 func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall {
21456 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21457 return c
21458 }
21459
21460
21461
21462
21463 func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall {
21464 c.ctx_ = ctx
21465 return c
21466 }
21467
21468
21469
21470 func (c *AdvertisersUpdateCall) Header() http.Header {
21471 if c.header_ == nil {
21472 c.header_ = make(http.Header)
21473 }
21474 return c.header_
21475 }
21476
21477 func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) {
21478 reqHeaders := make(http.Header)
21479 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
21480 for k, v := range c.header_ {
21481 reqHeaders[k] = v
21482 }
21483 reqHeaders.Set("User-Agent", c.s.userAgent())
21484 var body io.Reader = nil
21485 body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser)
21486 if err != nil {
21487 return nil, err
21488 }
21489 reqHeaders.Set("Content-Type", "application/json")
21490 c.urlParams_.Set("alt", alt)
21491 c.urlParams_.Set("prettyPrint", "false")
21492 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers")
21493 urls += "?" + c.urlParams_.Encode()
21494 req, err := http.NewRequest("PUT", urls, body)
21495 if err != nil {
21496 return nil, err
21497 }
21498 req.Header = reqHeaders
21499 googleapi.Expand(req.URL, map[string]string{
21500 "profileId": strconv.FormatInt(c.profileId, 10),
21501 })
21502 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21503 }
21504
21505
21506
21507
21508
21509
21510
21511
21512 func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) {
21513 gensupport.SetOptions(c.urlParams_, opts...)
21514 res, err := c.doRequest("json")
21515 if res != nil && res.StatusCode == http.StatusNotModified {
21516 if res.Body != nil {
21517 res.Body.Close()
21518 }
21519 return nil, &googleapi.Error{
21520 Code: res.StatusCode,
21521 Header: res.Header,
21522 }
21523 }
21524 if err != nil {
21525 return nil, err
21526 }
21527 defer googleapi.CloseBody(res)
21528 if err := googleapi.CheckResponse(res); err != nil {
21529 return nil, err
21530 }
21531 ret := &Advertiser{
21532 ServerResponse: googleapi.ServerResponse{
21533 Header: res.Header,
21534 HTTPStatusCode: res.StatusCode,
21535 },
21536 }
21537 target := &ret
21538 if err := gensupport.DecodeResponse(target, res); err != nil {
21539 return nil, err
21540 }
21541 return ret, nil
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571 }
21572
21573
21574
21575 type BrowsersListCall struct {
21576 s *Service
21577 profileId int64
21578 urlParams_ gensupport.URLParams
21579 ifNoneMatch_ string
21580 ctx_ context.Context
21581 header_ http.Header
21582 }
21583
21584
21585
21586
21587 func (r *BrowsersService) List(profileId int64) *BrowsersListCall {
21588 c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21589 c.profileId = profileId
21590 return c
21591 }
21592
21593
21594
21595
21596 func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall {
21597 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21598 return c
21599 }
21600
21601
21602
21603
21604
21605
21606 func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall {
21607 c.ifNoneMatch_ = entityTag
21608 return c
21609 }
21610
21611
21612
21613
21614 func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall {
21615 c.ctx_ = ctx
21616 return c
21617 }
21618
21619
21620
21621 func (c *BrowsersListCall) Header() http.Header {
21622 if c.header_ == nil {
21623 c.header_ = make(http.Header)
21624 }
21625 return c.header_
21626 }
21627
21628 func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) {
21629 reqHeaders := make(http.Header)
21630 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
21631 for k, v := range c.header_ {
21632 reqHeaders[k] = v
21633 }
21634 reqHeaders.Set("User-Agent", c.s.userAgent())
21635 if c.ifNoneMatch_ != "" {
21636 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21637 }
21638 var body io.Reader = nil
21639 c.urlParams_.Set("alt", alt)
21640 c.urlParams_.Set("prettyPrint", "false")
21641 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/browsers")
21642 urls += "?" + c.urlParams_.Encode()
21643 req, err := http.NewRequest("GET", urls, body)
21644 if err != nil {
21645 return nil, err
21646 }
21647 req.Header = reqHeaders
21648 googleapi.Expand(req.URL, map[string]string{
21649 "profileId": strconv.FormatInt(c.profileId, 10),
21650 })
21651 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21652 }
21653
21654
21655
21656
21657
21658
21659
21660
21661 func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) {
21662 gensupport.SetOptions(c.urlParams_, opts...)
21663 res, err := c.doRequest("json")
21664 if res != nil && res.StatusCode == http.StatusNotModified {
21665 if res.Body != nil {
21666 res.Body.Close()
21667 }
21668 return nil, &googleapi.Error{
21669 Code: res.StatusCode,
21670 Header: res.Header,
21671 }
21672 }
21673 if err != nil {
21674 return nil, err
21675 }
21676 defer googleapi.CloseBody(res)
21677 if err := googleapi.CheckResponse(res); err != nil {
21678 return nil, err
21679 }
21680 ret := &BrowsersListResponse{
21681 ServerResponse: googleapi.ServerResponse{
21682 Header: res.Header,
21683 HTTPStatusCode: res.StatusCode,
21684 },
21685 }
21686 target := &ret
21687 if err := gensupport.DecodeResponse(target, res); err != nil {
21688 return nil, err
21689 }
21690 return ret, nil
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717 }
21718
21719
21720
21721 type CampaignCreativeAssociationsInsertCall struct {
21722 s *Service
21723 profileId int64
21724 campaignId int64
21725 campaigncreativeassociation *CampaignCreativeAssociation
21726 urlParams_ gensupport.URLParams
21727 ctx_ context.Context
21728 header_ http.Header
21729 }
21730
21731
21732
21733
21734
21735
21736
21737 func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall {
21738 c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21739 c.profileId = profileId
21740 c.campaignId = campaignId
21741 c.campaigncreativeassociation = campaigncreativeassociation
21742 return c
21743 }
21744
21745
21746
21747
21748 func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall {
21749 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21750 return c
21751 }
21752
21753
21754
21755
21756 func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall {
21757 c.ctx_ = ctx
21758 return c
21759 }
21760
21761
21762
21763 func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header {
21764 if c.header_ == nil {
21765 c.header_ = make(http.Header)
21766 }
21767 return c.header_
21768 }
21769
21770 func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) {
21771 reqHeaders := make(http.Header)
21772 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
21773 for k, v := range c.header_ {
21774 reqHeaders[k] = v
21775 }
21776 reqHeaders.Set("User-Agent", c.s.userAgent())
21777 var body io.Reader = nil
21778 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation)
21779 if err != nil {
21780 return nil, err
21781 }
21782 reqHeaders.Set("Content-Type", "application/json")
21783 c.urlParams_.Set("alt", alt)
21784 c.urlParams_.Set("prettyPrint", "false")
21785 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations")
21786 urls += "?" + c.urlParams_.Encode()
21787 req, err := http.NewRequest("POST", urls, body)
21788 if err != nil {
21789 return nil, err
21790 }
21791 req.Header = reqHeaders
21792 googleapi.Expand(req.URL, map[string]string{
21793 "profileId": strconv.FormatInt(c.profileId, 10),
21794 "campaignId": strconv.FormatInt(c.campaignId, 10),
21795 })
21796 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21797 }
21798
21799
21800
21801
21802
21803
21804
21805
21806 func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) {
21807 gensupport.SetOptions(c.urlParams_, opts...)
21808 res, err := c.doRequest("json")
21809 if res != nil && res.StatusCode == http.StatusNotModified {
21810 if res.Body != nil {
21811 res.Body.Close()
21812 }
21813 return nil, &googleapi.Error{
21814 Code: res.StatusCode,
21815 Header: res.Header,
21816 }
21817 }
21818 if err != nil {
21819 return nil, err
21820 }
21821 defer googleapi.CloseBody(res)
21822 if err := googleapi.CheckResponse(res); err != nil {
21823 return nil, err
21824 }
21825 ret := &CampaignCreativeAssociation{
21826 ServerResponse: googleapi.ServerResponse{
21827 Header: res.Header,
21828 HTTPStatusCode: res.StatusCode,
21829 },
21830 }
21831 target := &ret
21832 if err := gensupport.DecodeResponse(target, res); err != nil {
21833 return nil, err
21834 }
21835 return ret, nil
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873 }
21874
21875
21876
21877 type CampaignCreativeAssociationsListCall struct {
21878 s *Service
21879 profileId int64
21880 campaignId int64
21881 urlParams_ gensupport.URLParams
21882 ifNoneMatch_ string
21883 ctx_ context.Context
21884 header_ http.Header
21885 }
21886
21887
21888
21889
21890
21891
21892 func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall {
21893 c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21894 c.profileId = profileId
21895 c.campaignId = campaignId
21896 return c
21897 }
21898
21899
21900
21901 func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall {
21902 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
21903 return c
21904 }
21905
21906
21907
21908 func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *CampaignCreativeAssociationsListCall {
21909 c.urlParams_.Set("pageToken", pageToken)
21910 return c
21911 }
21912
21913
21914
21915
21916
21917
21918
21919
21920 func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *CampaignCreativeAssociationsListCall {
21921 c.urlParams_.Set("sortOrder", sortOrder)
21922 return c
21923 }
21924
21925
21926
21927
21928 func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall {
21929 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21930 return c
21931 }
21932
21933
21934
21935
21936
21937
21938 func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall {
21939 c.ifNoneMatch_ = entityTag
21940 return c
21941 }
21942
21943
21944
21945
21946 func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall {
21947 c.ctx_ = ctx
21948 return c
21949 }
21950
21951
21952
21953 func (c *CampaignCreativeAssociationsListCall) Header() http.Header {
21954 if c.header_ == nil {
21955 c.header_ = make(http.Header)
21956 }
21957 return c.header_
21958 }
21959
21960 func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) {
21961 reqHeaders := make(http.Header)
21962 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
21963 for k, v := range c.header_ {
21964 reqHeaders[k] = v
21965 }
21966 reqHeaders.Set("User-Agent", c.s.userAgent())
21967 if c.ifNoneMatch_ != "" {
21968 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21969 }
21970 var body io.Reader = nil
21971 c.urlParams_.Set("alt", alt)
21972 c.urlParams_.Set("prettyPrint", "false")
21973 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations")
21974 urls += "?" + c.urlParams_.Encode()
21975 req, err := http.NewRequest("GET", urls, body)
21976 if err != nil {
21977 return nil, err
21978 }
21979 req.Header = reqHeaders
21980 googleapi.Expand(req.URL, map[string]string{
21981 "profileId": strconv.FormatInt(c.profileId, 10),
21982 "campaignId": strconv.FormatInt(c.campaignId, 10),
21983 })
21984 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21985 }
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996 func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) {
21997 gensupport.SetOptions(c.urlParams_, opts...)
21998 res, err := c.doRequest("json")
21999 if res != nil && res.StatusCode == http.StatusNotModified {
22000 if res.Body != nil {
22001 res.Body.Close()
22002 }
22003 return nil, &googleapi.Error{
22004 Code: res.StatusCode,
22005 Header: res.Header,
22006 }
22007 }
22008 if err != nil {
22009 return nil, err
22010 }
22011 defer googleapi.CloseBody(res)
22012 if err := googleapi.CheckResponse(res); err != nil {
22013 return nil, err
22014 }
22015 ret := &CampaignCreativeAssociationsListResponse{
22016 ServerResponse: googleapi.ServerResponse{
22017 Header: res.Header,
22018 HTTPStatusCode: res.StatusCode,
22019 },
22020 }
22021 target := &ret
22022 if err := gensupport.DecodeResponse(target, res); err != nil {
22023 return nil, err
22024 }
22025 return ret, nil
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088 }
22089
22090
22091
22092
22093 func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error {
22094 c.ctx_ = ctx
22095 defer c.PageToken(c.urlParams_.Get("pageToken"))
22096 for {
22097 x, err := c.Do()
22098 if err != nil {
22099 return err
22100 }
22101 if err := f(x); err != nil {
22102 return err
22103 }
22104 if x.NextPageToken == "" {
22105 return nil
22106 }
22107 c.PageToken(x.NextPageToken)
22108 }
22109 }
22110
22111
22112
22113 type CampaignsGetCall struct {
22114 s *Service
22115 profileId int64
22116 id int64
22117 urlParams_ gensupport.URLParams
22118 ifNoneMatch_ string
22119 ctx_ context.Context
22120 header_ http.Header
22121 }
22122
22123
22124
22125
22126
22127 func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall {
22128 c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22129 c.profileId = profileId
22130 c.id = id
22131 return c
22132 }
22133
22134
22135
22136
22137 func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall {
22138 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22139 return c
22140 }
22141
22142
22143
22144
22145
22146
22147 func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall {
22148 c.ifNoneMatch_ = entityTag
22149 return c
22150 }
22151
22152
22153
22154
22155 func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall {
22156 c.ctx_ = ctx
22157 return c
22158 }
22159
22160
22161
22162 func (c *CampaignsGetCall) Header() http.Header {
22163 if c.header_ == nil {
22164 c.header_ = make(http.Header)
22165 }
22166 return c.header_
22167 }
22168
22169 func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) {
22170 reqHeaders := make(http.Header)
22171 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
22172 for k, v := range c.header_ {
22173 reqHeaders[k] = v
22174 }
22175 reqHeaders.Set("User-Agent", c.s.userAgent())
22176 if c.ifNoneMatch_ != "" {
22177 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22178 }
22179 var body io.Reader = nil
22180 c.urlParams_.Set("alt", alt)
22181 c.urlParams_.Set("prettyPrint", "false")
22182 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{id}")
22183 urls += "?" + c.urlParams_.Encode()
22184 req, err := http.NewRequest("GET", urls, body)
22185 if err != nil {
22186 return nil, err
22187 }
22188 req.Header = reqHeaders
22189 googleapi.Expand(req.URL, map[string]string{
22190 "profileId": strconv.FormatInt(c.profileId, 10),
22191 "id": strconv.FormatInt(c.id, 10),
22192 })
22193 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22194 }
22195
22196
22197
22198
22199
22200
22201
22202
22203 func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
22204 gensupport.SetOptions(c.urlParams_, opts...)
22205 res, err := c.doRequest("json")
22206 if res != nil && res.StatusCode == http.StatusNotModified {
22207 if res.Body != nil {
22208 res.Body.Close()
22209 }
22210 return nil, &googleapi.Error{
22211 Code: res.StatusCode,
22212 Header: res.Header,
22213 }
22214 }
22215 if err != nil {
22216 return nil, err
22217 }
22218 defer googleapi.CloseBody(res)
22219 if err := googleapi.CheckResponse(res); err != nil {
22220 return nil, err
22221 }
22222 ret := &Campaign{
22223 ServerResponse: googleapi.ServerResponse{
22224 Header: res.Header,
22225 HTTPStatusCode: res.StatusCode,
22226 },
22227 }
22228 target := &ret
22229 if err := gensupport.DecodeResponse(target, res); err != nil {
22230 return nil, err
22231 }
22232 return ret, nil
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267 }
22268
22269
22270
22271 type CampaignsInsertCall struct {
22272 s *Service
22273 profileId int64
22274 campaign *Campaign
22275 urlParams_ gensupport.URLParams
22276 ctx_ context.Context
22277 header_ http.Header
22278 }
22279
22280
22281
22282
22283 func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *CampaignsInsertCall {
22284 c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22285 c.profileId = profileId
22286 c.campaign = campaign
22287 return c
22288 }
22289
22290
22291
22292
22293 func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall {
22294 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22295 return c
22296 }
22297
22298
22299
22300
22301 func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall {
22302 c.ctx_ = ctx
22303 return c
22304 }
22305
22306
22307
22308 func (c *CampaignsInsertCall) Header() http.Header {
22309 if c.header_ == nil {
22310 c.header_ = make(http.Header)
22311 }
22312 return c.header_
22313 }
22314
22315 func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) {
22316 reqHeaders := make(http.Header)
22317 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
22318 for k, v := range c.header_ {
22319 reqHeaders[k] = v
22320 }
22321 reqHeaders.Set("User-Agent", c.s.userAgent())
22322 var body io.Reader = nil
22323 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign)
22324 if err != nil {
22325 return nil, err
22326 }
22327 reqHeaders.Set("Content-Type", "application/json")
22328 c.urlParams_.Set("alt", alt)
22329 c.urlParams_.Set("prettyPrint", "false")
22330 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
22331 urls += "?" + c.urlParams_.Encode()
22332 req, err := http.NewRequest("POST", urls, body)
22333 if err != nil {
22334 return nil, err
22335 }
22336 req.Header = reqHeaders
22337 googleapi.Expand(req.URL, map[string]string{
22338 "profileId": strconv.FormatInt(c.profileId, 10),
22339 })
22340 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22341 }
22342
22343
22344
22345
22346
22347
22348
22349
22350 func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
22351 gensupport.SetOptions(c.urlParams_, opts...)
22352 res, err := c.doRequest("json")
22353 if res != nil && res.StatusCode == http.StatusNotModified {
22354 if res.Body != nil {
22355 res.Body.Close()
22356 }
22357 return nil, &googleapi.Error{
22358 Code: res.StatusCode,
22359 Header: res.Header,
22360 }
22361 }
22362 if err != nil {
22363 return nil, err
22364 }
22365 defer googleapi.CloseBody(res)
22366 if err := googleapi.CheckResponse(res); err != nil {
22367 return nil, err
22368 }
22369 ret := &Campaign{
22370 ServerResponse: googleapi.ServerResponse{
22371 Header: res.Header,
22372 HTTPStatusCode: res.StatusCode,
22373 },
22374 }
22375 target := &ret
22376 if err := gensupport.DecodeResponse(target, res); err != nil {
22377 return nil, err
22378 }
22379 return ret, nil
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409 }
22410
22411
22412
22413 type CampaignsListCall struct {
22414 s *Service
22415 profileId int64
22416 urlParams_ gensupport.URLParams
22417 ifNoneMatch_ string
22418 ctx_ context.Context
22419 header_ http.Header
22420 }
22421
22422
22423
22424
22425
22426 func (r *CampaignsService) List(profileId int64) *CampaignsListCall {
22427 c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22428 c.profileId = profileId
22429 return c
22430 }
22431
22432
22433
22434
22435 func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall {
22436 var advertiserGroupIds_ []string
22437 for _, v := range advertiserGroupIds {
22438 advertiserGroupIds_ = append(advertiserGroupIds_, fmt.Sprint(v))
22439 }
22440 c.urlParams_.SetMulti("advertiserGroupIds", advertiserGroupIds_)
22441 return c
22442 }
22443
22444
22445
22446 func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall {
22447 var advertiserIds_ []string
22448 for _, v := range advertiserIds {
22449 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
22450 }
22451 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
22452 return c
22453 }
22454
22455
22456
22457
22458 func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall {
22459 c.urlParams_.Set("archived", fmt.Sprint(archived))
22460 return c
22461 }
22462
22463
22464
22465
22466 func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall {
22467 c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity))
22468 return c
22469 }
22470
22471
22472
22473 func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall {
22474 var excludedIds_ []string
22475 for _, v := range excludedIds {
22476 excludedIds_ = append(excludedIds_, fmt.Sprint(v))
22477 }
22478 c.urlParams_.SetMulti("excludedIds", excludedIds_)
22479 return c
22480 }
22481
22482
22483
22484 func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall {
22485 var ids_ []string
22486 for _, v := range ids {
22487 ids_ = append(ids_, fmt.Sprint(v))
22488 }
22489 c.urlParams_.SetMulti("ids", ids_)
22490 return c
22491 }
22492
22493
22494
22495 func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall {
22496 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
22497 return c
22498 }
22499
22500
22501
22502
22503 func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall {
22504 c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId))
22505 return c
22506 }
22507
22508
22509
22510 func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall {
22511 c.urlParams_.Set("pageToken", pageToken)
22512 return c
22513 }
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523 func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall {
22524 c.urlParams_.Set("searchString", searchString)
22525 return c
22526 }
22527
22528
22529
22530
22531
22532
22533
22534
22535 func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall {
22536 c.urlParams_.Set("sortField", sortField)
22537 return c
22538 }
22539
22540
22541
22542
22543
22544
22545
22546
22547 func (c *CampaignsListCall) SortOrder(sortOrder string) *CampaignsListCall {
22548 c.urlParams_.Set("sortOrder", sortOrder)
22549 return c
22550 }
22551
22552
22553
22554 func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall {
22555 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
22556 return c
22557 }
22558
22559
22560
22561
22562 func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall {
22563 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22564 return c
22565 }
22566
22567
22568
22569
22570
22571
22572 func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall {
22573 c.ifNoneMatch_ = entityTag
22574 return c
22575 }
22576
22577
22578
22579
22580 func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall {
22581 c.ctx_ = ctx
22582 return c
22583 }
22584
22585
22586
22587 func (c *CampaignsListCall) Header() http.Header {
22588 if c.header_ == nil {
22589 c.header_ = make(http.Header)
22590 }
22591 return c.header_
22592 }
22593
22594 func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) {
22595 reqHeaders := make(http.Header)
22596 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
22597 for k, v := range c.header_ {
22598 reqHeaders[k] = v
22599 }
22600 reqHeaders.Set("User-Agent", c.s.userAgent())
22601 if c.ifNoneMatch_ != "" {
22602 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22603 }
22604 var body io.Reader = nil
22605 c.urlParams_.Set("alt", alt)
22606 c.urlParams_.Set("prettyPrint", "false")
22607 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
22608 urls += "?" + c.urlParams_.Encode()
22609 req, err := http.NewRequest("GET", urls, body)
22610 if err != nil {
22611 return nil, err
22612 }
22613 req.Header = reqHeaders
22614 googleapi.Expand(req.URL, map[string]string{
22615 "profileId": strconv.FormatInt(c.profileId, 10),
22616 })
22617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22618 }
22619
22620
22621
22622
22623
22624
22625
22626
22627 func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) {
22628 gensupport.SetOptions(c.urlParams_, opts...)
22629 res, err := c.doRequest("json")
22630 if res != nil && res.StatusCode == http.StatusNotModified {
22631 if res.Body != nil {
22632 res.Body.Close()
22633 }
22634 return nil, &googleapi.Error{
22635 Code: res.StatusCode,
22636 Header: res.Header,
22637 }
22638 }
22639 if err != nil {
22640 return nil, err
22641 }
22642 defer googleapi.CloseBody(res)
22643 if err := googleapi.CheckResponse(res); err != nil {
22644 return nil, err
22645 }
22646 ret := &CampaignsListResponse{
22647 ServerResponse: googleapi.ServerResponse{
22648 Header: res.Header,
22649 HTTPStatusCode: res.StatusCode,
22650 },
22651 }
22652 target := &ret
22653 if err := gensupport.DecodeResponse(target, res); err != nil {
22654 return nil, err
22655 }
22656 return ret, nil
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
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
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780 }
22781
22782
22783
22784
22785 func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error {
22786 c.ctx_ = ctx
22787 defer c.PageToken(c.urlParams_.Get("pageToken"))
22788 for {
22789 x, err := c.Do()
22790 if err != nil {
22791 return err
22792 }
22793 if err := f(x); err != nil {
22794 return err
22795 }
22796 if x.NextPageToken == "" {
22797 return nil
22798 }
22799 c.PageToken(x.NextPageToken)
22800 }
22801 }
22802
22803
22804
22805 type CampaignsPatchCall struct {
22806 s *Service
22807 profileId int64
22808 campaign *Campaign
22809 urlParams_ gensupport.URLParams
22810 ctx_ context.Context
22811 header_ http.Header
22812 }
22813
22814
22815
22816
22817
22818
22819 func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall {
22820 c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22821 c.profileId = profileId
22822 c.urlParams_.Set("id", fmt.Sprint(id))
22823 c.campaign = campaign
22824 return c
22825 }
22826
22827
22828
22829
22830 func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall {
22831 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22832 return c
22833 }
22834
22835
22836
22837
22838 func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall {
22839 c.ctx_ = ctx
22840 return c
22841 }
22842
22843
22844
22845 func (c *CampaignsPatchCall) Header() http.Header {
22846 if c.header_ == nil {
22847 c.header_ = make(http.Header)
22848 }
22849 return c.header_
22850 }
22851
22852 func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) {
22853 reqHeaders := make(http.Header)
22854 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
22855 for k, v := range c.header_ {
22856 reqHeaders[k] = v
22857 }
22858 reqHeaders.Set("User-Agent", c.s.userAgent())
22859 var body io.Reader = nil
22860 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign)
22861 if err != nil {
22862 return nil, err
22863 }
22864 reqHeaders.Set("Content-Type", "application/json")
22865 c.urlParams_.Set("alt", alt)
22866 c.urlParams_.Set("prettyPrint", "false")
22867 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
22868 urls += "?" + c.urlParams_.Encode()
22869 req, err := http.NewRequest("PATCH", urls, body)
22870 if err != nil {
22871 return nil, err
22872 }
22873 req.Header = reqHeaders
22874 googleapi.Expand(req.URL, map[string]string{
22875 "profileId": strconv.FormatInt(c.profileId, 10),
22876 })
22877 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22878 }
22879
22880
22881
22882
22883
22884
22885
22886
22887 func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
22888 gensupport.SetOptions(c.urlParams_, opts...)
22889 res, err := c.doRequest("json")
22890 if res != nil && res.StatusCode == http.StatusNotModified {
22891 if res.Body != nil {
22892 res.Body.Close()
22893 }
22894 return nil, &googleapi.Error{
22895 Code: res.StatusCode,
22896 Header: res.Header,
22897 }
22898 }
22899 if err != nil {
22900 return nil, err
22901 }
22902 defer googleapi.CloseBody(res)
22903 if err := googleapi.CheckResponse(res); err != nil {
22904 return nil, err
22905 }
22906 ret := &Campaign{
22907 ServerResponse: googleapi.ServerResponse{
22908 Header: res.Header,
22909 HTTPStatusCode: res.StatusCode,
22910 },
22911 }
22912 target := &ret
22913 if err := gensupport.DecodeResponse(target, res); err != nil {
22914 return nil, err
22915 }
22916 return ret, nil
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954 }
22955
22956
22957
22958 type CampaignsUpdateCall struct {
22959 s *Service
22960 profileId int64
22961 campaign *Campaign
22962 urlParams_ gensupport.URLParams
22963 ctx_ context.Context
22964 header_ http.Header
22965 }
22966
22967
22968
22969
22970 func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall {
22971 c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22972 c.profileId = profileId
22973 c.campaign = campaign
22974 return c
22975 }
22976
22977
22978
22979
22980 func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall {
22981 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22982 return c
22983 }
22984
22985
22986
22987
22988 func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall {
22989 c.ctx_ = ctx
22990 return c
22991 }
22992
22993
22994
22995 func (c *CampaignsUpdateCall) Header() http.Header {
22996 if c.header_ == nil {
22997 c.header_ = make(http.Header)
22998 }
22999 return c.header_
23000 }
23001
23002 func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) {
23003 reqHeaders := make(http.Header)
23004 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
23005 for k, v := range c.header_ {
23006 reqHeaders[k] = v
23007 }
23008 reqHeaders.Set("User-Agent", c.s.userAgent())
23009 var body io.Reader = nil
23010 body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign)
23011 if err != nil {
23012 return nil, err
23013 }
23014 reqHeaders.Set("Content-Type", "application/json")
23015 c.urlParams_.Set("alt", alt)
23016 c.urlParams_.Set("prettyPrint", "false")
23017 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns")
23018 urls += "?" + c.urlParams_.Encode()
23019 req, err := http.NewRequest("PUT", urls, body)
23020 if err != nil {
23021 return nil, err
23022 }
23023 req.Header = reqHeaders
23024 googleapi.Expand(req.URL, map[string]string{
23025 "profileId": strconv.FormatInt(c.profileId, 10),
23026 })
23027 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23028 }
23029
23030
23031
23032
23033
23034
23035
23036
23037 func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) {
23038 gensupport.SetOptions(c.urlParams_, opts...)
23039 res, err := c.doRequest("json")
23040 if res != nil && res.StatusCode == http.StatusNotModified {
23041 if res.Body != nil {
23042 res.Body.Close()
23043 }
23044 return nil, &googleapi.Error{
23045 Code: res.StatusCode,
23046 Header: res.Header,
23047 }
23048 }
23049 if err != nil {
23050 return nil, err
23051 }
23052 defer googleapi.CloseBody(res)
23053 if err := googleapi.CheckResponse(res); err != nil {
23054 return nil, err
23055 }
23056 ret := &Campaign{
23057 ServerResponse: googleapi.ServerResponse{
23058 Header: res.Header,
23059 HTTPStatusCode: res.StatusCode,
23060 },
23061 }
23062 target := &ret
23063 if err := gensupport.DecodeResponse(target, res); err != nil {
23064 return nil, err
23065 }
23066 return ret, nil
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096 }
23097
23098
23099
23100 type ChangeLogsGetCall struct {
23101 s *Service
23102 profileId int64
23103 id int64
23104 urlParams_ gensupport.URLParams
23105 ifNoneMatch_ string
23106 ctx_ context.Context
23107 header_ http.Header
23108 }
23109
23110
23111
23112
23113
23114 func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall {
23115 c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23116 c.profileId = profileId
23117 c.id = id
23118 return c
23119 }
23120
23121
23122
23123
23124 func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall {
23125 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23126 return c
23127 }
23128
23129
23130
23131
23132
23133
23134 func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall {
23135 c.ifNoneMatch_ = entityTag
23136 return c
23137 }
23138
23139
23140
23141
23142 func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall {
23143 c.ctx_ = ctx
23144 return c
23145 }
23146
23147
23148
23149 func (c *ChangeLogsGetCall) Header() http.Header {
23150 if c.header_ == nil {
23151 c.header_ = make(http.Header)
23152 }
23153 return c.header_
23154 }
23155
23156 func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) {
23157 reqHeaders := make(http.Header)
23158 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
23159 for k, v := range c.header_ {
23160 reqHeaders[k] = v
23161 }
23162 reqHeaders.Set("User-Agent", c.s.userAgent())
23163 if c.ifNoneMatch_ != "" {
23164 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23165 }
23166 var body io.Reader = nil
23167 c.urlParams_.Set("alt", alt)
23168 c.urlParams_.Set("prettyPrint", "false")
23169 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs/{id}")
23170 urls += "?" + c.urlParams_.Encode()
23171 req, err := http.NewRequest("GET", urls, body)
23172 if err != nil {
23173 return nil, err
23174 }
23175 req.Header = reqHeaders
23176 googleapi.Expand(req.URL, map[string]string{
23177 "profileId": strconv.FormatInt(c.profileId, 10),
23178 "id": strconv.FormatInt(c.id, 10),
23179 })
23180 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23181 }
23182
23183
23184
23185
23186
23187
23188
23189
23190 func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) {
23191 gensupport.SetOptions(c.urlParams_, opts...)
23192 res, err := c.doRequest("json")
23193 if res != nil && res.StatusCode == http.StatusNotModified {
23194 if res.Body != nil {
23195 res.Body.Close()
23196 }
23197 return nil, &googleapi.Error{
23198 Code: res.StatusCode,
23199 Header: res.Header,
23200 }
23201 }
23202 if err != nil {
23203 return nil, err
23204 }
23205 defer googleapi.CloseBody(res)
23206 if err := googleapi.CheckResponse(res); err != nil {
23207 return nil, err
23208 }
23209 ret := &ChangeLog{
23210 ServerResponse: googleapi.ServerResponse{
23211 Header: res.Header,
23212 HTTPStatusCode: res.StatusCode,
23213 },
23214 }
23215 target := &ret
23216 if err := gensupport.DecodeResponse(target, res); err != nil {
23217 return nil, err
23218 }
23219 return ret, nil
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254 }
23255
23256
23257
23258 type ChangeLogsListCall struct {
23259 s *Service
23260 profileId int64
23261 urlParams_ gensupport.URLParams
23262 ifNoneMatch_ string
23263 ctx_ context.Context
23264 header_ http.Header
23265 }
23266
23267
23268
23269
23270 func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall {
23271 c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23272 c.profileId = profileId
23273 return c
23274 }
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298 func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall {
23299 c.urlParams_.Set("action", action)
23300 return c
23301 }
23302
23303
23304
23305 func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall {
23306 var ids_ []string
23307 for _, v := range ids {
23308 ids_ = append(ids_, fmt.Sprint(v))
23309 }
23310 c.urlParams_.SetMulti("ids", ids_)
23311 return c
23312 }
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322 func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall {
23323 c.urlParams_.Set("maxChangeTime", maxChangeTime)
23324 return c
23325 }
23326
23327
23328
23329 func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall {
23330 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
23331 return c
23332 }
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342 func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall {
23343 c.urlParams_.Set("minChangeTime", minChangeTime)
23344 return c
23345 }
23346
23347
23348
23349 func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall {
23350 var objectIds_ []string
23351 for _, v := range objectIds {
23352 objectIds_ = append(objectIds_, fmt.Sprint(v))
23353 }
23354 c.urlParams_.SetMulti("objectIds", objectIds_)
23355 return c
23356 }
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403 func (c *ChangeLogsListCall) ObjectType(objectType string) *ChangeLogsListCall {
23404 c.urlParams_.Set("objectType", objectType)
23405 return c
23406 }
23407
23408
23409
23410 func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall {
23411 c.urlParams_.Set("pageToken", pageToken)
23412 return c
23413 }
23414
23415
23416
23417
23418 func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall {
23419 c.urlParams_.Set("searchString", searchString)
23420 return c
23421 }
23422
23423
23424
23425 func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall {
23426 var userProfileIds_ []string
23427 for _, v := range userProfileIds {
23428 userProfileIds_ = append(userProfileIds_, fmt.Sprint(v))
23429 }
23430 c.urlParams_.SetMulti("userProfileIds", userProfileIds_)
23431 return c
23432 }
23433
23434
23435
23436
23437 func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall {
23438 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23439 return c
23440 }
23441
23442
23443
23444
23445
23446
23447 func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall {
23448 c.ifNoneMatch_ = entityTag
23449 return c
23450 }
23451
23452
23453
23454
23455 func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall {
23456 c.ctx_ = ctx
23457 return c
23458 }
23459
23460
23461
23462 func (c *ChangeLogsListCall) Header() http.Header {
23463 if c.header_ == nil {
23464 c.header_ = make(http.Header)
23465 }
23466 return c.header_
23467 }
23468
23469 func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) {
23470 reqHeaders := make(http.Header)
23471 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
23472 for k, v := range c.header_ {
23473 reqHeaders[k] = v
23474 }
23475 reqHeaders.Set("User-Agent", c.s.userAgent())
23476 if c.ifNoneMatch_ != "" {
23477 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23478 }
23479 var body io.Reader = nil
23480 c.urlParams_.Set("alt", alt)
23481 c.urlParams_.Set("prettyPrint", "false")
23482 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/changeLogs")
23483 urls += "?" + c.urlParams_.Encode()
23484 req, err := http.NewRequest("GET", urls, body)
23485 if err != nil {
23486 return nil, err
23487 }
23488 req.Header = reqHeaders
23489 googleapi.Expand(req.URL, map[string]string{
23490 "profileId": strconv.FormatInt(c.profileId, 10),
23491 })
23492 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23493 }
23494
23495
23496
23497
23498
23499
23500
23501
23502 func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) {
23503 gensupport.SetOptions(c.urlParams_, opts...)
23504 res, err := c.doRequest("json")
23505 if res != nil && res.StatusCode == http.StatusNotModified {
23506 if res.Body != nil {
23507 res.Body.Close()
23508 }
23509 return nil, &googleapi.Error{
23510 Code: res.StatusCode,
23511 Header: res.Header,
23512 }
23513 }
23514 if err != nil {
23515 return nil, err
23516 }
23517 defer googleapi.CloseBody(res)
23518 if err := googleapi.CheckResponse(res); err != nil {
23519 return nil, err
23520 }
23521 ret := &ChangeLogsListResponse{
23522 ServerResponse: googleapi.ServerResponse{
23523 Header: res.Header,
23524 HTTPStatusCode: res.StatusCode,
23525 },
23526 }
23527 target := &ret
23528 if err := gensupport.DecodeResponse(target, res); err != nil {
23529 return nil, err
23530 }
23531 return ret, nil
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
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
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
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740 }
23741
23742
23743
23744
23745 func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error {
23746 c.ctx_ = ctx
23747 defer c.PageToken(c.urlParams_.Get("pageToken"))
23748 for {
23749 x, err := c.Do()
23750 if err != nil {
23751 return err
23752 }
23753 if err := f(x); err != nil {
23754 return err
23755 }
23756 if x.NextPageToken == "" {
23757 return nil
23758 }
23759 c.PageToken(x.NextPageToken)
23760 }
23761 }
23762
23763
23764
23765 type CitiesListCall struct {
23766 s *Service
23767 profileId int64
23768 urlParams_ gensupport.URLParams
23769 ifNoneMatch_ string
23770 ctx_ context.Context
23771 header_ http.Header
23772 }
23773
23774
23775
23776
23777 func (r *CitiesService) List(profileId int64) *CitiesListCall {
23778 c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23779 c.profileId = profileId
23780 return c
23781 }
23782
23783
23784
23785 func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall {
23786 var countryDartIds_ []string
23787 for _, v := range countryDartIds {
23788 countryDartIds_ = append(countryDartIds_, fmt.Sprint(v))
23789 }
23790 c.urlParams_.SetMulti("countryDartIds", countryDartIds_)
23791 return c
23792 }
23793
23794
23795
23796 func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall {
23797 var dartIds_ []string
23798 for _, v := range dartIds {
23799 dartIds_ = append(dartIds_, fmt.Sprint(v))
23800 }
23801 c.urlParams_.SetMulti("dartIds", dartIds_)
23802 return c
23803 }
23804
23805
23806
23807 func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall {
23808 c.urlParams_.Set("namePrefix", namePrefix)
23809 return c
23810 }
23811
23812
23813
23814 func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall {
23815 var regionDartIds_ []string
23816 for _, v := range regionDartIds {
23817 regionDartIds_ = append(regionDartIds_, fmt.Sprint(v))
23818 }
23819 c.urlParams_.SetMulti("regionDartIds", regionDartIds_)
23820 return c
23821 }
23822
23823
23824
23825
23826 func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall {
23827 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23828 return c
23829 }
23830
23831
23832
23833
23834
23835
23836 func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall {
23837 c.ifNoneMatch_ = entityTag
23838 return c
23839 }
23840
23841
23842
23843
23844 func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall {
23845 c.ctx_ = ctx
23846 return c
23847 }
23848
23849
23850
23851 func (c *CitiesListCall) Header() http.Header {
23852 if c.header_ == nil {
23853 c.header_ = make(http.Header)
23854 }
23855 return c.header_
23856 }
23857
23858 func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) {
23859 reqHeaders := make(http.Header)
23860 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
23861 for k, v := range c.header_ {
23862 reqHeaders[k] = v
23863 }
23864 reqHeaders.Set("User-Agent", c.s.userAgent())
23865 if c.ifNoneMatch_ != "" {
23866 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23867 }
23868 var body io.Reader = nil
23869 c.urlParams_.Set("alt", alt)
23870 c.urlParams_.Set("prettyPrint", "false")
23871 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/cities")
23872 urls += "?" + c.urlParams_.Encode()
23873 req, err := http.NewRequest("GET", urls, body)
23874 if err != nil {
23875 return nil, err
23876 }
23877 req.Header = reqHeaders
23878 googleapi.Expand(req.URL, map[string]string{
23879 "profileId": strconv.FormatInt(c.profileId, 10),
23880 })
23881 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23882 }
23883
23884
23885
23886
23887
23888
23889
23890
23891 func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) {
23892 gensupport.SetOptions(c.urlParams_, opts...)
23893 res, err := c.doRequest("json")
23894 if res != nil && res.StatusCode == http.StatusNotModified {
23895 if res.Body != nil {
23896 res.Body.Close()
23897 }
23898 return nil, &googleapi.Error{
23899 Code: res.StatusCode,
23900 Header: res.Header,
23901 }
23902 }
23903 if err != nil {
23904 return nil, err
23905 }
23906 defer googleapi.CloseBody(res)
23907 if err := googleapi.CheckResponse(res); err != nil {
23908 return nil, err
23909 }
23910 ret := &CitiesListResponse{
23911 ServerResponse: googleapi.ServerResponse{
23912 Header: res.Header,
23913 HTTPStatusCode: res.StatusCode,
23914 },
23915 }
23916 target := &ret
23917 if err := gensupport.DecodeResponse(target, res); err != nil {
23918 return nil, err
23919 }
23920 return ret, nil
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973 }
23974
23975
23976
23977 type ConnectionTypesGetCall struct {
23978 s *Service
23979 profileId int64
23980 id int64
23981 urlParams_ gensupport.URLParams
23982 ifNoneMatch_ string
23983 ctx_ context.Context
23984 header_ http.Header
23985 }
23986
23987
23988
23989
23990
23991 func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall {
23992 c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23993 c.profileId = profileId
23994 c.id = id
23995 return c
23996 }
23997
23998
23999
24000
24001 func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall {
24002 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24003 return c
24004 }
24005
24006
24007
24008
24009
24010
24011 func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall {
24012 c.ifNoneMatch_ = entityTag
24013 return c
24014 }
24015
24016
24017
24018
24019 func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall {
24020 c.ctx_ = ctx
24021 return c
24022 }
24023
24024
24025
24026 func (c *ConnectionTypesGetCall) Header() http.Header {
24027 if c.header_ == nil {
24028 c.header_ = make(http.Header)
24029 }
24030 return c.header_
24031 }
24032
24033 func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) {
24034 reqHeaders := make(http.Header)
24035 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
24036 for k, v := range c.header_ {
24037 reqHeaders[k] = v
24038 }
24039 reqHeaders.Set("User-Agent", c.s.userAgent())
24040 if c.ifNoneMatch_ != "" {
24041 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24042 }
24043 var body io.Reader = nil
24044 c.urlParams_.Set("alt", alt)
24045 c.urlParams_.Set("prettyPrint", "false")
24046 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes/{id}")
24047 urls += "?" + c.urlParams_.Encode()
24048 req, err := http.NewRequest("GET", urls, body)
24049 if err != nil {
24050 return nil, err
24051 }
24052 req.Header = reqHeaders
24053 googleapi.Expand(req.URL, map[string]string{
24054 "profileId": strconv.FormatInt(c.profileId, 10),
24055 "id": strconv.FormatInt(c.id, 10),
24056 })
24057 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24058 }
24059
24060
24061
24062
24063
24064
24065
24066
24067 func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) {
24068 gensupport.SetOptions(c.urlParams_, opts...)
24069 res, err := c.doRequest("json")
24070 if res != nil && res.StatusCode == http.StatusNotModified {
24071 if res.Body != nil {
24072 res.Body.Close()
24073 }
24074 return nil, &googleapi.Error{
24075 Code: res.StatusCode,
24076 Header: res.Header,
24077 }
24078 }
24079 if err != nil {
24080 return nil, err
24081 }
24082 defer googleapi.CloseBody(res)
24083 if err := googleapi.CheckResponse(res); err != nil {
24084 return nil, err
24085 }
24086 ret := &ConnectionType{
24087 ServerResponse: googleapi.ServerResponse{
24088 Header: res.Header,
24089 HTTPStatusCode: res.StatusCode,
24090 },
24091 }
24092 target := &ret
24093 if err := gensupport.DecodeResponse(target, res); err != nil {
24094 return nil, err
24095 }
24096 return ret, nil
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131 }
24132
24133
24134
24135 type ConnectionTypesListCall struct {
24136 s *Service
24137 profileId int64
24138 urlParams_ gensupport.URLParams
24139 ifNoneMatch_ string
24140 ctx_ context.Context
24141 header_ http.Header
24142 }
24143
24144
24145
24146
24147 func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall {
24148 c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24149 c.profileId = profileId
24150 return c
24151 }
24152
24153
24154
24155
24156 func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall {
24157 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24158 return c
24159 }
24160
24161
24162
24163
24164
24165
24166 func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall {
24167 c.ifNoneMatch_ = entityTag
24168 return c
24169 }
24170
24171
24172
24173
24174 func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall {
24175 c.ctx_ = ctx
24176 return c
24177 }
24178
24179
24180
24181 func (c *ConnectionTypesListCall) Header() http.Header {
24182 if c.header_ == nil {
24183 c.header_ = make(http.Header)
24184 }
24185 return c.header_
24186 }
24187
24188 func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) {
24189 reqHeaders := make(http.Header)
24190 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
24191 for k, v := range c.header_ {
24192 reqHeaders[k] = v
24193 }
24194 reqHeaders.Set("User-Agent", c.s.userAgent())
24195 if c.ifNoneMatch_ != "" {
24196 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24197 }
24198 var body io.Reader = nil
24199 c.urlParams_.Set("alt", alt)
24200 c.urlParams_.Set("prettyPrint", "false")
24201 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/connectionTypes")
24202 urls += "?" + c.urlParams_.Encode()
24203 req, err := http.NewRequest("GET", urls, body)
24204 if err != nil {
24205 return nil, err
24206 }
24207 req.Header = reqHeaders
24208 googleapi.Expand(req.URL, map[string]string{
24209 "profileId": strconv.FormatInt(c.profileId, 10),
24210 })
24211 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24212 }
24213
24214
24215
24216
24217
24218
24219
24220
24221 func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) {
24222 gensupport.SetOptions(c.urlParams_, opts...)
24223 res, err := c.doRequest("json")
24224 if res != nil && res.StatusCode == http.StatusNotModified {
24225 if res.Body != nil {
24226 res.Body.Close()
24227 }
24228 return nil, &googleapi.Error{
24229 Code: res.StatusCode,
24230 Header: res.Header,
24231 }
24232 }
24233 if err != nil {
24234 return nil, err
24235 }
24236 defer googleapi.CloseBody(res)
24237 if err := googleapi.CheckResponse(res); err != nil {
24238 return nil, err
24239 }
24240 ret := &ConnectionTypesListResponse{
24241 ServerResponse: googleapi.ServerResponse{
24242 Header: res.Header,
24243 HTTPStatusCode: res.StatusCode,
24244 },
24245 }
24246 target := &ret
24247 if err := gensupport.DecodeResponse(target, res); err != nil {
24248 return nil, err
24249 }
24250 return ret, nil
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 type ContentCategoriesDeleteCall struct {
24282 s *Service
24283 profileId int64
24284 id int64
24285 urlParams_ gensupport.URLParams
24286 ctx_ context.Context
24287 header_ http.Header
24288 }
24289
24290
24291
24292
24293
24294 func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall {
24295 c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24296 c.profileId = profileId
24297 c.id = id
24298 return c
24299 }
24300
24301
24302
24303
24304 func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall {
24305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24306 return c
24307 }
24308
24309
24310
24311
24312 func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall {
24313 c.ctx_ = ctx
24314 return c
24315 }
24316
24317
24318
24319 func (c *ContentCategoriesDeleteCall) Header() http.Header {
24320 if c.header_ == nil {
24321 c.header_ = make(http.Header)
24322 }
24323 return c.header_
24324 }
24325
24326 func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
24327 reqHeaders := make(http.Header)
24328 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
24329 for k, v := range c.header_ {
24330 reqHeaders[k] = v
24331 }
24332 reqHeaders.Set("User-Agent", c.s.userAgent())
24333 var body io.Reader = nil
24334 c.urlParams_.Set("alt", alt)
24335 c.urlParams_.Set("prettyPrint", "false")
24336 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}")
24337 urls += "?" + c.urlParams_.Encode()
24338 req, err := http.NewRequest("DELETE", urls, body)
24339 if err != nil {
24340 return nil, err
24341 }
24342 req.Header = reqHeaders
24343 googleapi.Expand(req.URL, map[string]string{
24344 "profileId": strconv.FormatInt(c.profileId, 10),
24345 "id": strconv.FormatInt(c.id, 10),
24346 })
24347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24348 }
24349
24350
24351 func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error {
24352 gensupport.SetOptions(c.urlParams_, opts...)
24353 res, err := c.doRequest("json")
24354 if err != nil {
24355 return err
24356 }
24357 defer googleapi.CloseBody(res)
24358 if err := googleapi.CheckResponse(res); err != nil {
24359 return err
24360 }
24361 return nil
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393 }
24394
24395
24396
24397 type ContentCategoriesGetCall struct {
24398 s *Service
24399 profileId int64
24400 id int64
24401 urlParams_ gensupport.URLParams
24402 ifNoneMatch_ string
24403 ctx_ context.Context
24404 header_ http.Header
24405 }
24406
24407
24408
24409
24410
24411 func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall {
24412 c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24413 c.profileId = profileId
24414 c.id = id
24415 return c
24416 }
24417
24418
24419
24420
24421 func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall {
24422 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24423 return c
24424 }
24425
24426
24427
24428
24429
24430
24431 func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall {
24432 c.ifNoneMatch_ = entityTag
24433 return c
24434 }
24435
24436
24437
24438
24439 func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall {
24440 c.ctx_ = ctx
24441 return c
24442 }
24443
24444
24445
24446 func (c *ContentCategoriesGetCall) Header() http.Header {
24447 if c.header_ == nil {
24448 c.header_ = make(http.Header)
24449 }
24450 return c.header_
24451 }
24452
24453 func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) {
24454 reqHeaders := make(http.Header)
24455 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
24456 for k, v := range c.header_ {
24457 reqHeaders[k] = v
24458 }
24459 reqHeaders.Set("User-Agent", c.s.userAgent())
24460 if c.ifNoneMatch_ != "" {
24461 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24462 }
24463 var body io.Reader = nil
24464 c.urlParams_.Set("alt", alt)
24465 c.urlParams_.Set("prettyPrint", "false")
24466 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories/{id}")
24467 urls += "?" + c.urlParams_.Encode()
24468 req, err := http.NewRequest("GET", urls, body)
24469 if err != nil {
24470 return nil, err
24471 }
24472 req.Header = reqHeaders
24473 googleapi.Expand(req.URL, map[string]string{
24474 "profileId": strconv.FormatInt(c.profileId, 10),
24475 "id": strconv.FormatInt(c.id, 10),
24476 })
24477 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24478 }
24479
24480
24481
24482
24483
24484
24485
24486
24487 func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
24488 gensupport.SetOptions(c.urlParams_, opts...)
24489 res, err := c.doRequest("json")
24490 if res != nil && res.StatusCode == http.StatusNotModified {
24491 if res.Body != nil {
24492 res.Body.Close()
24493 }
24494 return nil, &googleapi.Error{
24495 Code: res.StatusCode,
24496 Header: res.Header,
24497 }
24498 }
24499 if err != nil {
24500 return nil, err
24501 }
24502 defer googleapi.CloseBody(res)
24503 if err := googleapi.CheckResponse(res); err != nil {
24504 return nil, err
24505 }
24506 ret := &ContentCategory{
24507 ServerResponse: googleapi.ServerResponse{
24508 Header: res.Header,
24509 HTTPStatusCode: res.StatusCode,
24510 },
24511 }
24512 target := &ret
24513 if err := gensupport.DecodeResponse(target, res); err != nil {
24514 return nil, err
24515 }
24516 return ret, nil
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551 }
24552
24553
24554
24555 type ContentCategoriesInsertCall struct {
24556 s *Service
24557 profileId int64
24558 contentcategory *ContentCategory
24559 urlParams_ gensupport.URLParams
24560 ctx_ context.Context
24561 header_ http.Header
24562 }
24563
24564
24565
24566
24567 func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall {
24568 c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24569 c.profileId = profileId
24570 c.contentcategory = contentcategory
24571 return c
24572 }
24573
24574
24575
24576
24577 func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall {
24578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24579 return c
24580 }
24581
24582
24583
24584
24585 func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall {
24586 c.ctx_ = ctx
24587 return c
24588 }
24589
24590
24591
24592 func (c *ContentCategoriesInsertCall) Header() http.Header {
24593 if c.header_ == nil {
24594 c.header_ = make(http.Header)
24595 }
24596 return c.header_
24597 }
24598
24599 func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) {
24600 reqHeaders := make(http.Header)
24601 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
24602 for k, v := range c.header_ {
24603 reqHeaders[k] = v
24604 }
24605 reqHeaders.Set("User-Agent", c.s.userAgent())
24606 var body io.Reader = nil
24607 body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory)
24608 if err != nil {
24609 return nil, err
24610 }
24611 reqHeaders.Set("Content-Type", "application/json")
24612 c.urlParams_.Set("alt", alt)
24613 c.urlParams_.Set("prettyPrint", "false")
24614 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
24615 urls += "?" + c.urlParams_.Encode()
24616 req, err := http.NewRequest("POST", urls, body)
24617 if err != nil {
24618 return nil, err
24619 }
24620 req.Header = reqHeaders
24621 googleapi.Expand(req.URL, map[string]string{
24622 "profileId": strconv.FormatInt(c.profileId, 10),
24623 })
24624 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24625 }
24626
24627
24628
24629
24630
24631
24632
24633
24634 func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
24635 gensupport.SetOptions(c.urlParams_, opts...)
24636 res, err := c.doRequest("json")
24637 if res != nil && res.StatusCode == http.StatusNotModified {
24638 if res.Body != nil {
24639 res.Body.Close()
24640 }
24641 return nil, &googleapi.Error{
24642 Code: res.StatusCode,
24643 Header: res.Header,
24644 }
24645 }
24646 if err != nil {
24647 return nil, err
24648 }
24649 defer googleapi.CloseBody(res)
24650 if err := googleapi.CheckResponse(res); err != nil {
24651 return nil, err
24652 }
24653 ret := &ContentCategory{
24654 ServerResponse: googleapi.ServerResponse{
24655 Header: res.Header,
24656 HTTPStatusCode: res.StatusCode,
24657 },
24658 }
24659 target := &ret
24660 if err := gensupport.DecodeResponse(target, res); err != nil {
24661 return nil, err
24662 }
24663 return ret, nil
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693 }
24694
24695
24696
24697 type ContentCategoriesListCall struct {
24698 s *Service
24699 profileId int64
24700 urlParams_ gensupport.URLParams
24701 ifNoneMatch_ string
24702 ctx_ context.Context
24703 header_ http.Header
24704 }
24705
24706
24707
24708
24709
24710 func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall {
24711 c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24712 c.profileId = profileId
24713 return c
24714 }
24715
24716
24717
24718 func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall {
24719 var ids_ []string
24720 for _, v := range ids {
24721 ids_ = append(ids_, fmt.Sprint(v))
24722 }
24723 c.urlParams_.SetMulti("ids", ids_)
24724 return c
24725 }
24726
24727
24728
24729 func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall {
24730 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
24731 return c
24732 }
24733
24734
24735
24736 func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategoriesListCall {
24737 c.urlParams_.Set("pageToken", pageToken)
24738 return c
24739 }
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750 func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall {
24751 c.urlParams_.Set("searchString", searchString)
24752 return c
24753 }
24754
24755
24756
24757
24758
24759
24760
24761
24762 func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategoriesListCall {
24763 c.urlParams_.Set("sortField", sortField)
24764 return c
24765 }
24766
24767
24768
24769
24770
24771
24772
24773
24774 func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategoriesListCall {
24775 c.urlParams_.Set("sortOrder", sortOrder)
24776 return c
24777 }
24778
24779
24780
24781
24782 func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall {
24783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24784 return c
24785 }
24786
24787
24788
24789
24790
24791
24792 func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall {
24793 c.ifNoneMatch_ = entityTag
24794 return c
24795 }
24796
24797
24798
24799
24800 func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall {
24801 c.ctx_ = ctx
24802 return c
24803 }
24804
24805
24806
24807 func (c *ContentCategoriesListCall) Header() http.Header {
24808 if c.header_ == nil {
24809 c.header_ = make(http.Header)
24810 }
24811 return c.header_
24812 }
24813
24814 func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) {
24815 reqHeaders := make(http.Header)
24816 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
24817 for k, v := range c.header_ {
24818 reqHeaders[k] = v
24819 }
24820 reqHeaders.Set("User-Agent", c.s.userAgent())
24821 if c.ifNoneMatch_ != "" {
24822 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24823 }
24824 var body io.Reader = nil
24825 c.urlParams_.Set("alt", alt)
24826 c.urlParams_.Set("prettyPrint", "false")
24827 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
24828 urls += "?" + c.urlParams_.Encode()
24829 req, err := http.NewRequest("GET", urls, body)
24830 if err != nil {
24831 return nil, err
24832 }
24833 req.Header = reqHeaders
24834 googleapi.Expand(req.URL, map[string]string{
24835 "profileId": strconv.FormatInt(c.profileId, 10),
24836 })
24837 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24838 }
24839
24840
24841
24842
24843
24844
24845
24846
24847 func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) {
24848 gensupport.SetOptions(c.urlParams_, opts...)
24849 res, err := c.doRequest("json")
24850 if res != nil && res.StatusCode == http.StatusNotModified {
24851 if res.Body != nil {
24852 res.Body.Close()
24853 }
24854 return nil, &googleapi.Error{
24855 Code: res.StatusCode,
24856 Header: res.Header,
24857 }
24858 }
24859 if err != nil {
24860 return nil, err
24861 }
24862 defer googleapi.CloseBody(res)
24863 if err := googleapi.CheckResponse(res); err != nil {
24864 return nil, err
24865 }
24866 ret := &ContentCategoriesListResponse{
24867 ServerResponse: googleapi.ServerResponse{
24868 Header: res.Header,
24869 HTTPStatusCode: res.StatusCode,
24870 },
24871 }
24872 target := &ret
24873 if err := gensupport.DecodeResponse(target, res); err != nil {
24874 return nil, err
24875 }
24876 return ret, nil
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957 }
24958
24959
24960
24961
24962 func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error {
24963 c.ctx_ = ctx
24964 defer c.PageToken(c.urlParams_.Get("pageToken"))
24965 for {
24966 x, err := c.Do()
24967 if err != nil {
24968 return err
24969 }
24970 if err := f(x); err != nil {
24971 return err
24972 }
24973 if x.NextPageToken == "" {
24974 return nil
24975 }
24976 c.PageToken(x.NextPageToken)
24977 }
24978 }
24979
24980
24981
24982 type ContentCategoriesPatchCall struct {
24983 s *Service
24984 profileId int64
24985 contentcategory *ContentCategory
24986 urlParams_ gensupport.URLParams
24987 ctx_ context.Context
24988 header_ http.Header
24989 }
24990
24991
24992
24993
24994
24995
24996 func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall {
24997 c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24998 c.profileId = profileId
24999 c.urlParams_.Set("id", fmt.Sprint(id))
25000 c.contentcategory = contentcategory
25001 return c
25002 }
25003
25004
25005
25006
25007 func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall {
25008 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25009 return c
25010 }
25011
25012
25013
25014
25015 func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall {
25016 c.ctx_ = ctx
25017 return c
25018 }
25019
25020
25021
25022 func (c *ContentCategoriesPatchCall) Header() http.Header {
25023 if c.header_ == nil {
25024 c.header_ = make(http.Header)
25025 }
25026 return c.header_
25027 }
25028
25029 func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
25030 reqHeaders := make(http.Header)
25031 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25032 for k, v := range c.header_ {
25033 reqHeaders[k] = v
25034 }
25035 reqHeaders.Set("User-Agent", c.s.userAgent())
25036 var body io.Reader = nil
25037 body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory)
25038 if err != nil {
25039 return nil, err
25040 }
25041 reqHeaders.Set("Content-Type", "application/json")
25042 c.urlParams_.Set("alt", alt)
25043 c.urlParams_.Set("prettyPrint", "false")
25044 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
25045 urls += "?" + c.urlParams_.Encode()
25046 req, err := http.NewRequest("PATCH", urls, body)
25047 if err != nil {
25048 return nil, err
25049 }
25050 req.Header = reqHeaders
25051 googleapi.Expand(req.URL, map[string]string{
25052 "profileId": strconv.FormatInt(c.profileId, 10),
25053 })
25054 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25055 }
25056
25057
25058
25059
25060
25061
25062
25063
25064 func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
25065 gensupport.SetOptions(c.urlParams_, opts...)
25066 res, err := c.doRequest("json")
25067 if res != nil && res.StatusCode == http.StatusNotModified {
25068 if res.Body != nil {
25069 res.Body.Close()
25070 }
25071 return nil, &googleapi.Error{
25072 Code: res.StatusCode,
25073 Header: res.Header,
25074 }
25075 }
25076 if err != nil {
25077 return nil, err
25078 }
25079 defer googleapi.CloseBody(res)
25080 if err := googleapi.CheckResponse(res); err != nil {
25081 return nil, err
25082 }
25083 ret := &ContentCategory{
25084 ServerResponse: googleapi.ServerResponse{
25085 Header: res.Header,
25086 HTTPStatusCode: res.StatusCode,
25087 },
25088 }
25089 target := &ret
25090 if err := gensupport.DecodeResponse(target, res); err != nil {
25091 return nil, err
25092 }
25093 return ret, nil
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131 }
25132
25133
25134
25135 type ContentCategoriesUpdateCall struct {
25136 s *Service
25137 profileId int64
25138 contentcategory *ContentCategory
25139 urlParams_ gensupport.URLParams
25140 ctx_ context.Context
25141 header_ http.Header
25142 }
25143
25144
25145
25146
25147 func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall {
25148 c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25149 c.profileId = profileId
25150 c.contentcategory = contentcategory
25151 return c
25152 }
25153
25154
25155
25156
25157 func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall {
25158 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25159 return c
25160 }
25161
25162
25163
25164
25165 func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall {
25166 c.ctx_ = ctx
25167 return c
25168 }
25169
25170
25171
25172 func (c *ContentCategoriesUpdateCall) Header() http.Header {
25173 if c.header_ == nil {
25174 c.header_ = make(http.Header)
25175 }
25176 return c.header_
25177 }
25178
25179 func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) {
25180 reqHeaders := make(http.Header)
25181 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25182 for k, v := range c.header_ {
25183 reqHeaders[k] = v
25184 }
25185 reqHeaders.Set("User-Agent", c.s.userAgent())
25186 var body io.Reader = nil
25187 body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory)
25188 if err != nil {
25189 return nil, err
25190 }
25191 reqHeaders.Set("Content-Type", "application/json")
25192 c.urlParams_.Set("alt", alt)
25193 c.urlParams_.Set("prettyPrint", "false")
25194 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories")
25195 urls += "?" + c.urlParams_.Encode()
25196 req, err := http.NewRequest("PUT", urls, body)
25197 if err != nil {
25198 return nil, err
25199 }
25200 req.Header = reqHeaders
25201 googleapi.Expand(req.URL, map[string]string{
25202 "profileId": strconv.FormatInt(c.profileId, 10),
25203 })
25204 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25205 }
25206
25207
25208
25209
25210
25211
25212
25213
25214 func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) {
25215 gensupport.SetOptions(c.urlParams_, opts...)
25216 res, err := c.doRequest("json")
25217 if res != nil && res.StatusCode == http.StatusNotModified {
25218 if res.Body != nil {
25219 res.Body.Close()
25220 }
25221 return nil, &googleapi.Error{
25222 Code: res.StatusCode,
25223 Header: res.Header,
25224 }
25225 }
25226 if err != nil {
25227 return nil, err
25228 }
25229 defer googleapi.CloseBody(res)
25230 if err := googleapi.CheckResponse(res); err != nil {
25231 return nil, err
25232 }
25233 ret := &ContentCategory{
25234 ServerResponse: googleapi.ServerResponse{
25235 Header: res.Header,
25236 HTTPStatusCode: res.StatusCode,
25237 },
25238 }
25239 target := &ret
25240 if err := gensupport.DecodeResponse(target, res); err != nil {
25241 return nil, err
25242 }
25243 return ret, nil
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 type ConversionsBatchinsertCall struct {
25278 s *Service
25279 profileId int64
25280 conversionsbatchinsertrequest *ConversionsBatchInsertRequest
25281 urlParams_ gensupport.URLParams
25282 ctx_ context.Context
25283 header_ http.Header
25284 }
25285
25286
25287
25288
25289 func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall {
25290 c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25291 c.profileId = profileId
25292 c.conversionsbatchinsertrequest = conversionsbatchinsertrequest
25293 return c
25294 }
25295
25296
25297
25298
25299 func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall {
25300 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25301 return c
25302 }
25303
25304
25305
25306
25307 func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall {
25308 c.ctx_ = ctx
25309 return c
25310 }
25311
25312
25313
25314 func (c *ConversionsBatchinsertCall) Header() http.Header {
25315 if c.header_ == nil {
25316 c.header_ = make(http.Header)
25317 }
25318 return c.header_
25319 }
25320
25321 func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) {
25322 reqHeaders := make(http.Header)
25323 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25324 for k, v := range c.header_ {
25325 reqHeaders[k] = v
25326 }
25327 reqHeaders.Set("User-Agent", c.s.userAgent())
25328 var body io.Reader = nil
25329 body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest)
25330 if err != nil {
25331 return nil, err
25332 }
25333 reqHeaders.Set("Content-Type", "application/json")
25334 c.urlParams_.Set("alt", alt)
25335 c.urlParams_.Set("prettyPrint", "false")
25336 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert")
25337 urls += "?" + c.urlParams_.Encode()
25338 req, err := http.NewRequest("POST", urls, body)
25339 if err != nil {
25340 return nil, err
25341 }
25342 req.Header = reqHeaders
25343 googleapi.Expand(req.URL, map[string]string{
25344 "profileId": strconv.FormatInt(c.profileId, 10),
25345 })
25346 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25347 }
25348
25349
25350
25351
25352
25353
25354
25355
25356 func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) {
25357 gensupport.SetOptions(c.urlParams_, opts...)
25358 res, err := c.doRequest("json")
25359 if res != nil && res.StatusCode == http.StatusNotModified {
25360 if res.Body != nil {
25361 res.Body.Close()
25362 }
25363 return nil, &googleapi.Error{
25364 Code: res.StatusCode,
25365 Header: res.Header,
25366 }
25367 }
25368 if err != nil {
25369 return nil, err
25370 }
25371 defer googleapi.CloseBody(res)
25372 if err := googleapi.CheckResponse(res); err != nil {
25373 return nil, err
25374 }
25375 ret := &ConversionsBatchInsertResponse{
25376 ServerResponse: googleapi.ServerResponse{
25377 Header: res.Header,
25378 HTTPStatusCode: res.StatusCode,
25379 },
25380 }
25381 target := &ret
25382 if err := gensupport.DecodeResponse(target, res); err != nil {
25383 return nil, err
25384 }
25385 return ret, nil
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415 }
25416
25417
25418
25419 type ConversionsBatchupdateCall struct {
25420 s *Service
25421 profileId int64
25422 conversionsbatchupdaterequest *ConversionsBatchUpdateRequest
25423 urlParams_ gensupport.URLParams
25424 ctx_ context.Context
25425 header_ http.Header
25426 }
25427
25428
25429
25430
25431 func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdaterequest *ConversionsBatchUpdateRequest) *ConversionsBatchupdateCall {
25432 c := &ConversionsBatchupdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25433 c.profileId = profileId
25434 c.conversionsbatchupdaterequest = conversionsbatchupdaterequest
25435 return c
25436 }
25437
25438
25439
25440
25441 func (c *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall {
25442 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25443 return c
25444 }
25445
25446
25447
25448
25449 func (c *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall {
25450 c.ctx_ = ctx
25451 return c
25452 }
25453
25454
25455
25456 func (c *ConversionsBatchupdateCall) Header() http.Header {
25457 if c.header_ == nil {
25458 c.header_ = make(http.Header)
25459 }
25460 return c.header_
25461 }
25462
25463 func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) {
25464 reqHeaders := make(http.Header)
25465 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25466 for k, v := range c.header_ {
25467 reqHeaders[k] = v
25468 }
25469 reqHeaders.Set("User-Agent", c.s.userAgent())
25470 var body io.Reader = nil
25471 body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchupdaterequest)
25472 if err != nil {
25473 return nil, err
25474 }
25475 reqHeaders.Set("Content-Type", "application/json")
25476 c.urlParams_.Set("alt", alt)
25477 c.urlParams_.Set("prettyPrint", "false")
25478 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate")
25479 urls += "?" + c.urlParams_.Encode()
25480 req, err := http.NewRequest("POST", urls, body)
25481 if err != nil {
25482 return nil, err
25483 }
25484 req.Header = reqHeaders
25485 googleapi.Expand(req.URL, map[string]string{
25486 "profileId": strconv.FormatInt(c.profileId, 10),
25487 })
25488 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25489 }
25490
25491
25492
25493
25494
25495
25496
25497
25498 func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) {
25499 gensupport.SetOptions(c.urlParams_, opts...)
25500 res, err := c.doRequest("json")
25501 if res != nil && res.StatusCode == http.StatusNotModified {
25502 if res.Body != nil {
25503 res.Body.Close()
25504 }
25505 return nil, &googleapi.Error{
25506 Code: res.StatusCode,
25507 Header: res.Header,
25508 }
25509 }
25510 if err != nil {
25511 return nil, err
25512 }
25513 defer googleapi.CloseBody(res)
25514 if err := googleapi.CheckResponse(res); err != nil {
25515 return nil, err
25516 }
25517 ret := &ConversionsBatchUpdateResponse{
25518 ServerResponse: googleapi.ServerResponse{
25519 Header: res.Header,
25520 HTTPStatusCode: res.StatusCode,
25521 },
25522 }
25523 target := &ret
25524 if err := gensupport.DecodeResponse(target, res); err != nil {
25525 return nil, err
25526 }
25527 return ret, nil
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557 }
25558
25559
25560
25561 type CountriesGetCall struct {
25562 s *Service
25563 profileId int64
25564 dartId int64
25565 urlParams_ gensupport.URLParams
25566 ifNoneMatch_ string
25567 ctx_ context.Context
25568 header_ http.Header
25569 }
25570
25571
25572
25573
25574
25575 func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall {
25576 c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25577 c.profileId = profileId
25578 c.dartId = dartId
25579 return c
25580 }
25581
25582
25583
25584
25585 func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall {
25586 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25587 return c
25588 }
25589
25590
25591
25592
25593
25594
25595 func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall {
25596 c.ifNoneMatch_ = entityTag
25597 return c
25598 }
25599
25600
25601
25602
25603 func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall {
25604 c.ctx_ = ctx
25605 return c
25606 }
25607
25608
25609
25610 func (c *CountriesGetCall) Header() http.Header {
25611 if c.header_ == nil {
25612 c.header_ = make(http.Header)
25613 }
25614 return c.header_
25615 }
25616
25617 func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) {
25618 reqHeaders := make(http.Header)
25619 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25620 for k, v := range c.header_ {
25621 reqHeaders[k] = v
25622 }
25623 reqHeaders.Set("User-Agent", c.s.userAgent())
25624 if c.ifNoneMatch_ != "" {
25625 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25626 }
25627 var body io.Reader = nil
25628 c.urlParams_.Set("alt", alt)
25629 c.urlParams_.Set("prettyPrint", "false")
25630 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries/{dartId}")
25631 urls += "?" + c.urlParams_.Encode()
25632 req, err := http.NewRequest("GET", urls, body)
25633 if err != nil {
25634 return nil, err
25635 }
25636 req.Header = reqHeaders
25637 googleapi.Expand(req.URL, map[string]string{
25638 "profileId": strconv.FormatInt(c.profileId, 10),
25639 "dartId": strconv.FormatInt(c.dartId, 10),
25640 })
25641 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25642 }
25643
25644
25645
25646
25647
25648
25649
25650
25651 func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) {
25652 gensupport.SetOptions(c.urlParams_, opts...)
25653 res, err := c.doRequest("json")
25654 if res != nil && res.StatusCode == http.StatusNotModified {
25655 if res.Body != nil {
25656 res.Body.Close()
25657 }
25658 return nil, &googleapi.Error{
25659 Code: res.StatusCode,
25660 Header: res.Header,
25661 }
25662 }
25663 if err != nil {
25664 return nil, err
25665 }
25666 defer googleapi.CloseBody(res)
25667 if err := googleapi.CheckResponse(res); err != nil {
25668 return nil, err
25669 }
25670 ret := &Country{
25671 ServerResponse: googleapi.ServerResponse{
25672 Header: res.Header,
25673 HTTPStatusCode: res.StatusCode,
25674 },
25675 }
25676 target := &ret
25677 if err := gensupport.DecodeResponse(target, res); err != nil {
25678 return nil, err
25679 }
25680 return ret, nil
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715 }
25716
25717
25718
25719 type CountriesListCall struct {
25720 s *Service
25721 profileId int64
25722 urlParams_ gensupport.URLParams
25723 ifNoneMatch_ string
25724 ctx_ context.Context
25725 header_ http.Header
25726 }
25727
25728
25729
25730
25731 func (r *CountriesService) List(profileId int64) *CountriesListCall {
25732 c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25733 c.profileId = profileId
25734 return c
25735 }
25736
25737
25738
25739
25740 func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall {
25741 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25742 return c
25743 }
25744
25745
25746
25747
25748
25749
25750 func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall {
25751 c.ifNoneMatch_ = entityTag
25752 return c
25753 }
25754
25755
25756
25757
25758 func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall {
25759 c.ctx_ = ctx
25760 return c
25761 }
25762
25763
25764
25765 func (c *CountriesListCall) Header() http.Header {
25766 if c.header_ == nil {
25767 c.header_ = make(http.Header)
25768 }
25769 return c.header_
25770 }
25771
25772 func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) {
25773 reqHeaders := make(http.Header)
25774 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25775 for k, v := range c.header_ {
25776 reqHeaders[k] = v
25777 }
25778 reqHeaders.Set("User-Agent", c.s.userAgent())
25779 if c.ifNoneMatch_ != "" {
25780 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25781 }
25782 var body io.Reader = nil
25783 c.urlParams_.Set("alt", alt)
25784 c.urlParams_.Set("prettyPrint", "false")
25785 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/countries")
25786 urls += "?" + c.urlParams_.Encode()
25787 req, err := http.NewRequest("GET", urls, body)
25788 if err != nil {
25789 return nil, err
25790 }
25791 req.Header = reqHeaders
25792 googleapi.Expand(req.URL, map[string]string{
25793 "profileId": strconv.FormatInt(c.profileId, 10),
25794 })
25795 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25796 }
25797
25798
25799
25800
25801
25802
25803
25804
25805 func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) {
25806 gensupport.SetOptions(c.urlParams_, opts...)
25807 res, err := c.doRequest("json")
25808 if res != nil && res.StatusCode == http.StatusNotModified {
25809 if res.Body != nil {
25810 res.Body.Close()
25811 }
25812 return nil, &googleapi.Error{
25813 Code: res.StatusCode,
25814 Header: res.Header,
25815 }
25816 }
25817 if err != nil {
25818 return nil, err
25819 }
25820 defer googleapi.CloseBody(res)
25821 if err := googleapi.CheckResponse(res); err != nil {
25822 return nil, err
25823 }
25824 ret := &CountriesListResponse{
25825 ServerResponse: googleapi.ServerResponse{
25826 Header: res.Header,
25827 HTTPStatusCode: res.StatusCode,
25828 },
25829 }
25830 target := &ret
25831 if err := gensupport.DecodeResponse(target, res); err != nil {
25832 return nil, err
25833 }
25834 return ret, nil
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861 }
25862
25863
25864
25865 type CreativeAssetsInsertCall struct {
25866 s *Service
25867 profileId int64
25868 advertiserId int64
25869 creativeassetmetadata *CreativeAssetMetadata
25870 urlParams_ gensupport.URLParams
25871 mediaInfo_ *gensupport.MediaInfo
25872 ctx_ context.Context
25873 header_ http.Header
25874 }
25875
25876
25877
25878
25879
25880
25881 func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall {
25882 c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25883 c.profileId = profileId
25884 c.advertiserId = advertiserId
25885 c.creativeassetmetadata = creativeassetmetadata
25886 return c
25887 }
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897 func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall {
25898 c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
25899 return c
25900 }
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911 func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall {
25912 c.ctx_ = ctx
25913 c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
25914 return c
25915 }
25916
25917
25918
25919
25920
25921 func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall {
25922 c.mediaInfo_.SetProgressUpdater(pu)
25923 return c
25924 }
25925
25926
25927
25928
25929 func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall {
25930 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25931 return c
25932 }
25933
25934
25935
25936
25937
25938
25939 func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall {
25940 c.ctx_ = ctx
25941 return c
25942 }
25943
25944
25945
25946 func (c *CreativeAssetsInsertCall) Header() http.Header {
25947 if c.header_ == nil {
25948 c.header_ = make(http.Header)
25949 }
25950 return c.header_
25951 }
25952
25953 func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) {
25954 reqHeaders := make(http.Header)
25955 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
25956 for k, v := range c.header_ {
25957 reqHeaders[k] = v
25958 }
25959 reqHeaders.Set("User-Agent", c.s.userAgent())
25960 var body io.Reader = nil
25961 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata)
25962 if err != nil {
25963 return nil, err
25964 }
25965 reqHeaders.Set("Content-Type", "application/json")
25966 c.urlParams_.Set("alt", alt)
25967 c.urlParams_.Set("prettyPrint", "false")
25968 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets")
25969 if c.mediaInfo_ != nil {
25970 urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets")
25971 c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
25972 }
25973 if body == nil {
25974 body = new(bytes.Buffer)
25975 reqHeaders.Set("Content-Type", "application/json")
25976 }
25977 body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
25978 defer cleanup()
25979 urls += "?" + c.urlParams_.Encode()
25980 req, err := http.NewRequest("POST", urls, body)
25981 if err != nil {
25982 return nil, err
25983 }
25984 req.Header = reqHeaders
25985 req.GetBody = getBody
25986 googleapi.Expand(req.URL, map[string]string{
25987 "profileId": strconv.FormatInt(c.profileId, 10),
25988 "advertiserId": strconv.FormatInt(c.advertiserId, 10),
25989 })
25990 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25991 }
25992
25993
25994
25995
25996
25997
25998
25999
26000 func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) {
26001 gensupport.SetOptions(c.urlParams_, opts...)
26002 res, err := c.doRequest("json")
26003 if res != nil && res.StatusCode == http.StatusNotModified {
26004 if res.Body != nil {
26005 res.Body.Close()
26006 }
26007 return nil, &googleapi.Error{
26008 Code: res.StatusCode,
26009 Header: res.Header,
26010 }
26011 }
26012 if err != nil {
26013 return nil, err
26014 }
26015 defer googleapi.CloseBody(res)
26016 if err := googleapi.CheckResponse(res); err != nil {
26017 return nil, err
26018 }
26019 rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
26020 if rx != nil {
26021 rx.Client = c.s.client
26022 rx.UserAgent = c.s.userAgent()
26023 ctx := c.ctx_
26024 if ctx == nil {
26025 ctx = context.TODO()
26026 }
26027 res, err = rx.Upload(ctx)
26028 if err != nil {
26029 return nil, err
26030 }
26031 defer res.Body.Close()
26032 if err := googleapi.CheckResponse(res); err != nil {
26033 return nil, err
26034 }
26035 }
26036 ret := &CreativeAssetMetadata{
26037 ServerResponse: googleapi.ServerResponse{
26038 Header: res.Header,
26039 HTTPStatusCode: res.StatusCode,
26040 },
26041 }
26042 target := &ret
26043 if err := gensupport.DecodeResponse(target, res); err != nil {
26044 return nil, err
26045 }
26046 return ret, nil
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097 }
26098
26099
26100
26101 type CreativeFieldValuesDeleteCall struct {
26102 s *Service
26103 profileId int64
26104 creativeFieldId int64
26105 id int64
26106 urlParams_ gensupport.URLParams
26107 ctx_ context.Context
26108 header_ http.Header
26109 }
26110
26111
26112
26113
26114
26115
26116 func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall {
26117 c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26118 c.profileId = profileId
26119 c.creativeFieldId = creativeFieldId
26120 c.id = id
26121 return c
26122 }
26123
26124
26125
26126
26127 func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall {
26128 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26129 return c
26130 }
26131
26132
26133
26134
26135 func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall {
26136 c.ctx_ = ctx
26137 return c
26138 }
26139
26140
26141
26142 func (c *CreativeFieldValuesDeleteCall) Header() http.Header {
26143 if c.header_ == nil {
26144 c.header_ = make(http.Header)
26145 }
26146 return c.header_
26147 }
26148
26149 func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) {
26150 reqHeaders := make(http.Header)
26151 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
26152 for k, v := range c.header_ {
26153 reqHeaders[k] = v
26154 }
26155 reqHeaders.Set("User-Agent", c.s.userAgent())
26156 var body io.Reader = nil
26157 c.urlParams_.Set("alt", alt)
26158 c.urlParams_.Set("prettyPrint", "false")
26159 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}")
26160 urls += "?" + c.urlParams_.Encode()
26161 req, err := http.NewRequest("DELETE", urls, body)
26162 if err != nil {
26163 return nil, err
26164 }
26165 req.Header = reqHeaders
26166 googleapi.Expand(req.URL, map[string]string{
26167 "profileId": strconv.FormatInt(c.profileId, 10),
26168 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
26169 "id": strconv.FormatInt(c.id, 10),
26170 })
26171 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26172 }
26173
26174
26175 func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error {
26176 gensupport.SetOptions(c.urlParams_, opts...)
26177 res, err := c.doRequest("json")
26178 if err != nil {
26179 return err
26180 }
26181 defer googleapi.CloseBody(res)
26182 if err := googleapi.CheckResponse(res); err != nil {
26183 return err
26184 }
26185 return nil
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225 }
26226
26227
26228
26229 type CreativeFieldValuesGetCall struct {
26230 s *Service
26231 profileId int64
26232 creativeFieldId int64
26233 id int64
26234 urlParams_ gensupport.URLParams
26235 ifNoneMatch_ string
26236 ctx_ context.Context
26237 header_ http.Header
26238 }
26239
26240
26241
26242
26243
26244
26245 func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall {
26246 c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26247 c.profileId = profileId
26248 c.creativeFieldId = creativeFieldId
26249 c.id = id
26250 return c
26251 }
26252
26253
26254
26255
26256 func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall {
26257 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26258 return c
26259 }
26260
26261
26262
26263
26264
26265
26266 func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall {
26267 c.ifNoneMatch_ = entityTag
26268 return c
26269 }
26270
26271
26272
26273
26274 func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall {
26275 c.ctx_ = ctx
26276 return c
26277 }
26278
26279
26280
26281 func (c *CreativeFieldValuesGetCall) Header() http.Header {
26282 if c.header_ == nil {
26283 c.header_ = make(http.Header)
26284 }
26285 return c.header_
26286 }
26287
26288 func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) {
26289 reqHeaders := make(http.Header)
26290 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
26291 for k, v := range c.header_ {
26292 reqHeaders[k] = v
26293 }
26294 reqHeaders.Set("User-Agent", c.s.userAgent())
26295 if c.ifNoneMatch_ != "" {
26296 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26297 }
26298 var body io.Reader = nil
26299 c.urlParams_.Set("alt", alt)
26300 c.urlParams_.Set("prettyPrint", "false")
26301 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}")
26302 urls += "?" + c.urlParams_.Encode()
26303 req, err := http.NewRequest("GET", urls, body)
26304 if err != nil {
26305 return nil, err
26306 }
26307 req.Header = reqHeaders
26308 googleapi.Expand(req.URL, map[string]string{
26309 "profileId": strconv.FormatInt(c.profileId, 10),
26310 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
26311 "id": strconv.FormatInt(c.id, 10),
26312 })
26313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26314 }
26315
26316
26317
26318
26319
26320
26321
26322
26323 func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
26324 gensupport.SetOptions(c.urlParams_, opts...)
26325 res, err := c.doRequest("json")
26326 if res != nil && res.StatusCode == http.StatusNotModified {
26327 if res.Body != nil {
26328 res.Body.Close()
26329 }
26330 return nil, &googleapi.Error{
26331 Code: res.StatusCode,
26332 Header: res.Header,
26333 }
26334 }
26335 if err != nil {
26336 return nil, err
26337 }
26338 defer googleapi.CloseBody(res)
26339 if err := googleapi.CheckResponse(res); err != nil {
26340 return nil, err
26341 }
26342 ret := &CreativeFieldValue{
26343 ServerResponse: googleapi.ServerResponse{
26344 Header: res.Header,
26345 HTTPStatusCode: res.StatusCode,
26346 },
26347 }
26348 target := &ret
26349 if err := gensupport.DecodeResponse(target, res); err != nil {
26350 return nil, err
26351 }
26352 return ret, nil
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395 }
26396
26397
26398
26399 type CreativeFieldValuesInsertCall struct {
26400 s *Service
26401 profileId int64
26402 creativeFieldId int64
26403 creativefieldvalue *CreativeFieldValue
26404 urlParams_ gensupport.URLParams
26405 ctx_ context.Context
26406 header_ http.Header
26407 }
26408
26409
26410
26411
26412
26413 func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall {
26414 c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26415 c.profileId = profileId
26416 c.creativeFieldId = creativeFieldId
26417 c.creativefieldvalue = creativefieldvalue
26418 return c
26419 }
26420
26421
26422
26423
26424 func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall {
26425 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26426 return c
26427 }
26428
26429
26430
26431
26432 func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall {
26433 c.ctx_ = ctx
26434 return c
26435 }
26436
26437
26438
26439 func (c *CreativeFieldValuesInsertCall) Header() http.Header {
26440 if c.header_ == nil {
26441 c.header_ = make(http.Header)
26442 }
26443 return c.header_
26444 }
26445
26446 func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) {
26447 reqHeaders := make(http.Header)
26448 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
26449 for k, v := range c.header_ {
26450 reqHeaders[k] = v
26451 }
26452 reqHeaders.Set("User-Agent", c.s.userAgent())
26453 var body io.Reader = nil
26454 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue)
26455 if err != nil {
26456 return nil, err
26457 }
26458 reqHeaders.Set("Content-Type", "application/json")
26459 c.urlParams_.Set("alt", alt)
26460 c.urlParams_.Set("prettyPrint", "false")
26461 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
26462 urls += "?" + c.urlParams_.Encode()
26463 req, err := http.NewRequest("POST", urls, body)
26464 if err != nil {
26465 return nil, err
26466 }
26467 req.Header = reqHeaders
26468 googleapi.Expand(req.URL, map[string]string{
26469 "profileId": strconv.FormatInt(c.profileId, 10),
26470 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
26471 })
26472 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26473 }
26474
26475
26476
26477
26478
26479
26480
26481
26482 func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
26483 gensupport.SetOptions(c.urlParams_, opts...)
26484 res, err := c.doRequest("json")
26485 if res != nil && res.StatusCode == http.StatusNotModified {
26486 if res.Body != nil {
26487 res.Body.Close()
26488 }
26489 return nil, &googleapi.Error{
26490 Code: res.StatusCode,
26491 Header: res.Header,
26492 }
26493 }
26494 if err != nil {
26495 return nil, err
26496 }
26497 defer googleapi.CloseBody(res)
26498 if err := googleapi.CheckResponse(res); err != nil {
26499 return nil, err
26500 }
26501 ret := &CreativeFieldValue{
26502 ServerResponse: googleapi.ServerResponse{
26503 Header: res.Header,
26504 HTTPStatusCode: res.StatusCode,
26505 },
26506 }
26507 target := &ret
26508 if err := gensupport.DecodeResponse(target, res); err != nil {
26509 return nil, err
26510 }
26511 return ret, nil
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549 }
26550
26551
26552
26553 type CreativeFieldValuesListCall struct {
26554 s *Service
26555 profileId int64
26556 creativeFieldId int64
26557 urlParams_ gensupport.URLParams
26558 ifNoneMatch_ string
26559 ctx_ context.Context
26560 header_ http.Header
26561 }
26562
26563
26564
26565
26566
26567
26568 func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall {
26569 c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26570 c.profileId = profileId
26571 c.creativeFieldId = creativeFieldId
26572 return c
26573 }
26574
26575
26576
26577 func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall {
26578 var ids_ []string
26579 for _, v := range ids {
26580 ids_ = append(ids_, fmt.Sprint(v))
26581 }
26582 c.urlParams_.SetMulti("ids", ids_)
26583 return c
26584 }
26585
26586
26587
26588 func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall {
26589 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
26590 return c
26591 }
26592
26593
26594
26595 func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeFieldValuesListCall {
26596 c.urlParams_.Set("pageToken", pageToken)
26597 return c
26598 }
26599
26600
26601
26602
26603 func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall {
26604 c.urlParams_.Set("searchString", searchString)
26605 return c
26606 }
26607
26608
26609
26610
26611
26612
26613
26614
26615 func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeFieldValuesListCall {
26616 c.urlParams_.Set("sortField", sortField)
26617 return c
26618 }
26619
26620
26621
26622
26623
26624
26625
26626
26627 func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeFieldValuesListCall {
26628 c.urlParams_.Set("sortOrder", sortOrder)
26629 return c
26630 }
26631
26632
26633
26634
26635 func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall {
26636 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26637 return c
26638 }
26639
26640
26641
26642
26643
26644
26645 func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall {
26646 c.ifNoneMatch_ = entityTag
26647 return c
26648 }
26649
26650
26651
26652
26653 func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall {
26654 c.ctx_ = ctx
26655 return c
26656 }
26657
26658
26659
26660 func (c *CreativeFieldValuesListCall) Header() http.Header {
26661 if c.header_ == nil {
26662 c.header_ = make(http.Header)
26663 }
26664 return c.header_
26665 }
26666
26667 func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) {
26668 reqHeaders := make(http.Header)
26669 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
26670 for k, v := range c.header_ {
26671 reqHeaders[k] = v
26672 }
26673 reqHeaders.Set("User-Agent", c.s.userAgent())
26674 if c.ifNoneMatch_ != "" {
26675 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26676 }
26677 var body io.Reader = nil
26678 c.urlParams_.Set("alt", alt)
26679 c.urlParams_.Set("prettyPrint", "false")
26680 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
26681 urls += "?" + c.urlParams_.Encode()
26682 req, err := http.NewRequest("GET", urls, body)
26683 if err != nil {
26684 return nil, err
26685 }
26686 req.Header = reqHeaders
26687 googleapi.Expand(req.URL, map[string]string{
26688 "profileId": strconv.FormatInt(c.profileId, 10),
26689 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
26690 })
26691 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26692 }
26693
26694
26695
26696
26697
26698
26699
26700
26701 func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) {
26702 gensupport.SetOptions(c.urlParams_, opts...)
26703 res, err := c.doRequest("json")
26704 if res != nil && res.StatusCode == http.StatusNotModified {
26705 if res.Body != nil {
26706 res.Body.Close()
26707 }
26708 return nil, &googleapi.Error{
26709 Code: res.StatusCode,
26710 Header: res.Header,
26711 }
26712 }
26713 if err != nil {
26714 return nil, err
26715 }
26716 defer googleapi.CloseBody(res)
26717 if err := googleapi.CheckResponse(res); err != nil {
26718 return nil, err
26719 }
26720 ret := &CreativeFieldValuesListResponse{
26721 ServerResponse: googleapi.ServerResponse{
26722 Header: res.Header,
26723 HTTPStatusCode: res.StatusCode,
26724 },
26725 }
26726 target := &ret
26727 if err := gensupport.DecodeResponse(target, res); err != nil {
26728 return nil, err
26729 }
26730 return ret, nil
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
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
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819 }
26820
26821
26822
26823
26824 func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error {
26825 c.ctx_ = ctx
26826 defer c.PageToken(c.urlParams_.Get("pageToken"))
26827 for {
26828 x, err := c.Do()
26829 if err != nil {
26830 return err
26831 }
26832 if err := f(x); err != nil {
26833 return err
26834 }
26835 if x.NextPageToken == "" {
26836 return nil
26837 }
26838 c.PageToken(x.NextPageToken)
26839 }
26840 }
26841
26842
26843
26844 type CreativeFieldValuesPatchCall struct {
26845 s *Service
26846 profileId int64
26847 creativeFieldId int64
26848 creativefieldvalue *CreativeFieldValue
26849 urlParams_ gensupport.URLParams
26850 ctx_ context.Context
26851 header_ http.Header
26852 }
26853
26854
26855
26856
26857
26858
26859
26860 func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall {
26861 c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26862 c.profileId = profileId
26863 c.creativeFieldId = creativeFieldId
26864 c.urlParams_.Set("id", fmt.Sprint(id))
26865 c.creativefieldvalue = creativefieldvalue
26866 return c
26867 }
26868
26869
26870
26871
26872 func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall {
26873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26874 return c
26875 }
26876
26877
26878
26879
26880 func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall {
26881 c.ctx_ = ctx
26882 return c
26883 }
26884
26885
26886
26887 func (c *CreativeFieldValuesPatchCall) Header() http.Header {
26888 if c.header_ == nil {
26889 c.header_ = make(http.Header)
26890 }
26891 return c.header_
26892 }
26893
26894 func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) {
26895 reqHeaders := make(http.Header)
26896 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
26897 for k, v := range c.header_ {
26898 reqHeaders[k] = v
26899 }
26900 reqHeaders.Set("User-Agent", c.s.userAgent())
26901 var body io.Reader = nil
26902 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue)
26903 if err != nil {
26904 return nil, err
26905 }
26906 reqHeaders.Set("Content-Type", "application/json")
26907 c.urlParams_.Set("alt", alt)
26908 c.urlParams_.Set("prettyPrint", "false")
26909 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
26910 urls += "?" + c.urlParams_.Encode()
26911 req, err := http.NewRequest("PATCH", urls, body)
26912 if err != nil {
26913 return nil, err
26914 }
26915 req.Header = reqHeaders
26916 googleapi.Expand(req.URL, map[string]string{
26917 "profileId": strconv.FormatInt(c.profileId, 10),
26918 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
26919 })
26920 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26921 }
26922
26923
26924
26925
26926
26927
26928
26929
26930 func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
26931 gensupport.SetOptions(c.urlParams_, opts...)
26932 res, err := c.doRequest("json")
26933 if res != nil && res.StatusCode == http.StatusNotModified {
26934 if res.Body != nil {
26935 res.Body.Close()
26936 }
26937 return nil, &googleapi.Error{
26938 Code: res.StatusCode,
26939 Header: res.Header,
26940 }
26941 }
26942 if err != nil {
26943 return nil, err
26944 }
26945 defer googleapi.CloseBody(res)
26946 if err := googleapi.CheckResponse(res); err != nil {
26947 return nil, err
26948 }
26949 ret := &CreativeFieldValue{
26950 ServerResponse: googleapi.ServerResponse{
26951 Header: res.Header,
26952 HTTPStatusCode: res.StatusCode,
26953 },
26954 }
26955 target := &ret
26956 if err := gensupport.DecodeResponse(target, res); err != nil {
26957 return nil, err
26958 }
26959 return ret, nil
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
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005 }
27006
27007
27008
27009 type CreativeFieldValuesUpdateCall struct {
27010 s *Service
27011 profileId int64
27012 creativeFieldId int64
27013 creativefieldvalue *CreativeFieldValue
27014 urlParams_ gensupport.URLParams
27015 ctx_ context.Context
27016 header_ http.Header
27017 }
27018
27019
27020
27021
27022
27023 func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall {
27024 c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27025 c.profileId = profileId
27026 c.creativeFieldId = creativeFieldId
27027 c.creativefieldvalue = creativefieldvalue
27028 return c
27029 }
27030
27031
27032
27033
27034 func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall {
27035 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27036 return c
27037 }
27038
27039
27040
27041
27042 func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall {
27043 c.ctx_ = ctx
27044 return c
27045 }
27046
27047
27048
27049 func (c *CreativeFieldValuesUpdateCall) Header() http.Header {
27050 if c.header_ == nil {
27051 c.header_ = make(http.Header)
27052 }
27053 return c.header_
27054 }
27055
27056 func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) {
27057 reqHeaders := make(http.Header)
27058 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
27059 for k, v := range c.header_ {
27060 reqHeaders[k] = v
27061 }
27062 reqHeaders.Set("User-Agent", c.s.userAgent())
27063 var body io.Reader = nil
27064 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue)
27065 if err != nil {
27066 return nil, err
27067 }
27068 reqHeaders.Set("Content-Type", "application/json")
27069 c.urlParams_.Set("alt", alt)
27070 c.urlParams_.Set("prettyPrint", "false")
27071 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues")
27072 urls += "?" + c.urlParams_.Encode()
27073 req, err := http.NewRequest("PUT", urls, body)
27074 if err != nil {
27075 return nil, err
27076 }
27077 req.Header = reqHeaders
27078 googleapi.Expand(req.URL, map[string]string{
27079 "profileId": strconv.FormatInt(c.profileId, 10),
27080 "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10),
27081 })
27082 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27083 }
27084
27085
27086
27087
27088
27089
27090
27091
27092 func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) {
27093 gensupport.SetOptions(c.urlParams_, opts...)
27094 res, err := c.doRequest("json")
27095 if res != nil && res.StatusCode == http.StatusNotModified {
27096 if res.Body != nil {
27097 res.Body.Close()
27098 }
27099 return nil, &googleapi.Error{
27100 Code: res.StatusCode,
27101 Header: res.Header,
27102 }
27103 }
27104 if err != nil {
27105 return nil, err
27106 }
27107 defer googleapi.CloseBody(res)
27108 if err := googleapi.CheckResponse(res); err != nil {
27109 return nil, err
27110 }
27111 ret := &CreativeFieldValue{
27112 ServerResponse: googleapi.ServerResponse{
27113 Header: res.Header,
27114 HTTPStatusCode: res.StatusCode,
27115 },
27116 }
27117 target := &ret
27118 if err := gensupport.DecodeResponse(target, res); err != nil {
27119 return nil, err
27120 }
27121 return ret, nil
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 type CreativeFieldsDeleteCall struct {
27164 s *Service
27165 profileId int64
27166 id int64
27167 urlParams_ gensupport.URLParams
27168 ctx_ context.Context
27169 header_ http.Header
27170 }
27171
27172
27173
27174
27175
27176 func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall {
27177 c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27178 c.profileId = profileId
27179 c.id = id
27180 return c
27181 }
27182
27183
27184
27185
27186 func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall {
27187 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27188 return c
27189 }
27190
27191
27192
27193
27194 func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall {
27195 c.ctx_ = ctx
27196 return c
27197 }
27198
27199
27200
27201 func (c *CreativeFieldsDeleteCall) Header() http.Header {
27202 if c.header_ == nil {
27203 c.header_ = make(http.Header)
27204 }
27205 return c.header_
27206 }
27207
27208 func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) {
27209 reqHeaders := make(http.Header)
27210 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
27211 for k, v := range c.header_ {
27212 reqHeaders[k] = v
27213 }
27214 reqHeaders.Set("User-Agent", c.s.userAgent())
27215 var body io.Reader = nil
27216 c.urlParams_.Set("alt", alt)
27217 c.urlParams_.Set("prettyPrint", "false")
27218 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}")
27219 urls += "?" + c.urlParams_.Encode()
27220 req, err := http.NewRequest("DELETE", urls, body)
27221 if err != nil {
27222 return nil, err
27223 }
27224 req.Header = reqHeaders
27225 googleapi.Expand(req.URL, map[string]string{
27226 "profileId": strconv.FormatInt(c.profileId, 10),
27227 "id": strconv.FormatInt(c.id, 10),
27228 })
27229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27230 }
27231
27232
27233 func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error {
27234 gensupport.SetOptions(c.urlParams_, opts...)
27235 res, err := c.doRequest("json")
27236 if err != nil {
27237 return err
27238 }
27239 defer googleapi.CloseBody(res)
27240 if err := googleapi.CheckResponse(res); err != nil {
27241 return err
27242 }
27243 return nil
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 type CreativeFieldsGetCall struct {
27280 s *Service
27281 profileId int64
27282 id int64
27283 urlParams_ gensupport.URLParams
27284 ifNoneMatch_ string
27285 ctx_ context.Context
27286 header_ http.Header
27287 }
27288
27289
27290
27291
27292
27293 func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall {
27294 c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27295 c.profileId = profileId
27296 c.id = id
27297 return c
27298 }
27299
27300
27301
27302
27303 func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall {
27304 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27305 return c
27306 }
27307
27308
27309
27310
27311
27312
27313 func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall {
27314 c.ifNoneMatch_ = entityTag
27315 return c
27316 }
27317
27318
27319
27320
27321 func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall {
27322 c.ctx_ = ctx
27323 return c
27324 }
27325
27326
27327
27328 func (c *CreativeFieldsGetCall) Header() http.Header {
27329 if c.header_ == nil {
27330 c.header_ = make(http.Header)
27331 }
27332 return c.header_
27333 }
27334
27335 func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) {
27336 reqHeaders := make(http.Header)
27337 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
27338 for k, v := range c.header_ {
27339 reqHeaders[k] = v
27340 }
27341 reqHeaders.Set("User-Agent", c.s.userAgent())
27342 if c.ifNoneMatch_ != "" {
27343 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27344 }
27345 var body io.Reader = nil
27346 c.urlParams_.Set("alt", alt)
27347 c.urlParams_.Set("prettyPrint", "false")
27348 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{id}")
27349 urls += "?" + c.urlParams_.Encode()
27350 req, err := http.NewRequest("GET", urls, body)
27351 if err != nil {
27352 return nil, err
27353 }
27354 req.Header = reqHeaders
27355 googleapi.Expand(req.URL, map[string]string{
27356 "profileId": strconv.FormatInt(c.profileId, 10),
27357 "id": strconv.FormatInt(c.id, 10),
27358 })
27359 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27360 }
27361
27362
27363
27364
27365
27366
27367
27368
27369 func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
27370 gensupport.SetOptions(c.urlParams_, opts...)
27371 res, err := c.doRequest("json")
27372 if res != nil && res.StatusCode == http.StatusNotModified {
27373 if res.Body != nil {
27374 res.Body.Close()
27375 }
27376 return nil, &googleapi.Error{
27377 Code: res.StatusCode,
27378 Header: res.Header,
27379 }
27380 }
27381 if err != nil {
27382 return nil, err
27383 }
27384 defer googleapi.CloseBody(res)
27385 if err := googleapi.CheckResponse(res); err != nil {
27386 return nil, err
27387 }
27388 ret := &CreativeField{
27389 ServerResponse: googleapi.ServerResponse{
27390 Header: res.Header,
27391 HTTPStatusCode: res.StatusCode,
27392 },
27393 }
27394 target := &ret
27395 if err := gensupport.DecodeResponse(target, res); err != nil {
27396 return nil, err
27397 }
27398 return ret, nil
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433 }
27434
27435
27436
27437 type CreativeFieldsInsertCall struct {
27438 s *Service
27439 profileId int64
27440 creativefield *CreativeField
27441 urlParams_ gensupport.URLParams
27442 ctx_ context.Context
27443 header_ http.Header
27444 }
27445
27446
27447
27448
27449 func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall {
27450 c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27451 c.profileId = profileId
27452 c.creativefield = creativefield
27453 return c
27454 }
27455
27456
27457
27458
27459 func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall {
27460 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27461 return c
27462 }
27463
27464
27465
27466
27467 func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall {
27468 c.ctx_ = ctx
27469 return c
27470 }
27471
27472
27473
27474 func (c *CreativeFieldsInsertCall) Header() http.Header {
27475 if c.header_ == nil {
27476 c.header_ = make(http.Header)
27477 }
27478 return c.header_
27479 }
27480
27481 func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) {
27482 reqHeaders := make(http.Header)
27483 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
27484 for k, v := range c.header_ {
27485 reqHeaders[k] = v
27486 }
27487 reqHeaders.Set("User-Agent", c.s.userAgent())
27488 var body io.Reader = nil
27489 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield)
27490 if err != nil {
27491 return nil, err
27492 }
27493 reqHeaders.Set("Content-Type", "application/json")
27494 c.urlParams_.Set("alt", alt)
27495 c.urlParams_.Set("prettyPrint", "false")
27496 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
27497 urls += "?" + c.urlParams_.Encode()
27498 req, err := http.NewRequest("POST", urls, body)
27499 if err != nil {
27500 return nil, err
27501 }
27502 req.Header = reqHeaders
27503 googleapi.Expand(req.URL, map[string]string{
27504 "profileId": strconv.FormatInt(c.profileId, 10),
27505 })
27506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27507 }
27508
27509
27510
27511
27512
27513
27514
27515
27516 func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
27517 gensupport.SetOptions(c.urlParams_, opts...)
27518 res, err := c.doRequest("json")
27519 if res != nil && res.StatusCode == http.StatusNotModified {
27520 if res.Body != nil {
27521 res.Body.Close()
27522 }
27523 return nil, &googleapi.Error{
27524 Code: res.StatusCode,
27525 Header: res.Header,
27526 }
27527 }
27528 if err != nil {
27529 return nil, err
27530 }
27531 defer googleapi.CloseBody(res)
27532 if err := googleapi.CheckResponse(res); err != nil {
27533 return nil, err
27534 }
27535 ret := &CreativeField{
27536 ServerResponse: googleapi.ServerResponse{
27537 Header: res.Header,
27538 HTTPStatusCode: res.StatusCode,
27539 },
27540 }
27541 target := &ret
27542 if err := gensupport.DecodeResponse(target, res); err != nil {
27543 return nil, err
27544 }
27545 return ret, nil
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575 }
27576
27577
27578
27579 type CreativeFieldsListCall struct {
27580 s *Service
27581 profileId int64
27582 urlParams_ gensupport.URLParams
27583 ifNoneMatch_ string
27584 ctx_ context.Context
27585 header_ http.Header
27586 }
27587
27588
27589
27590
27591
27592 func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall {
27593 c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27594 c.profileId = profileId
27595 return c
27596 }
27597
27598
27599
27600 func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall {
27601 var advertiserIds_ []string
27602 for _, v := range advertiserIds {
27603 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
27604 }
27605 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
27606 return c
27607 }
27608
27609
27610
27611 func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall {
27612 var ids_ []string
27613 for _, v := range ids {
27614 ids_ = append(ids_, fmt.Sprint(v))
27615 }
27616 c.urlParams_.SetMulti("ids", ids_)
27617 return c
27618 }
27619
27620
27621
27622 func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall {
27623 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
27624 return c
27625 }
27626
27627
27628
27629 func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsListCall {
27630 c.urlParams_.Set("pageToken", pageToken)
27631 return c
27632 }
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643 func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall {
27644 c.urlParams_.Set("searchString", searchString)
27645 return c
27646 }
27647
27648
27649
27650
27651
27652
27653
27654
27655 func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsListCall {
27656 c.urlParams_.Set("sortField", sortField)
27657 return c
27658 }
27659
27660
27661
27662
27663
27664
27665
27666
27667 func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsListCall {
27668 c.urlParams_.Set("sortOrder", sortOrder)
27669 return c
27670 }
27671
27672
27673
27674
27675 func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall {
27676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27677 return c
27678 }
27679
27680
27681
27682
27683
27684
27685 func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall {
27686 c.ifNoneMatch_ = entityTag
27687 return c
27688 }
27689
27690
27691
27692
27693 func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall {
27694 c.ctx_ = ctx
27695 return c
27696 }
27697
27698
27699
27700 func (c *CreativeFieldsListCall) Header() http.Header {
27701 if c.header_ == nil {
27702 c.header_ = make(http.Header)
27703 }
27704 return c.header_
27705 }
27706
27707 func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) {
27708 reqHeaders := make(http.Header)
27709 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
27710 for k, v := range c.header_ {
27711 reqHeaders[k] = v
27712 }
27713 reqHeaders.Set("User-Agent", c.s.userAgent())
27714 if c.ifNoneMatch_ != "" {
27715 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27716 }
27717 var body io.Reader = nil
27718 c.urlParams_.Set("alt", alt)
27719 c.urlParams_.Set("prettyPrint", "false")
27720 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
27721 urls += "?" + c.urlParams_.Encode()
27722 req, err := http.NewRequest("GET", urls, body)
27723 if err != nil {
27724 return nil, err
27725 }
27726 req.Header = reqHeaders
27727 googleapi.Expand(req.URL, map[string]string{
27728 "profileId": strconv.FormatInt(c.profileId, 10),
27729 })
27730 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27731 }
27732
27733
27734
27735
27736
27737
27738
27739
27740 func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) {
27741 gensupport.SetOptions(c.urlParams_, opts...)
27742 res, err := c.doRequest("json")
27743 if res != nil && res.StatusCode == http.StatusNotModified {
27744 if res.Body != nil {
27745 res.Body.Close()
27746 }
27747 return nil, &googleapi.Error{
27748 Code: res.StatusCode,
27749 Header: res.Header,
27750 }
27751 }
27752 if err != nil {
27753 return nil, err
27754 }
27755 defer googleapi.CloseBody(res)
27756 if err := googleapi.CheckResponse(res); err != nil {
27757 return nil, err
27758 }
27759 ret := &CreativeFieldsListResponse{
27760 ServerResponse: googleapi.ServerResponse{
27761 Header: res.Header,
27762 HTTPStatusCode: res.StatusCode,
27763 },
27764 }
27765 target := &ret
27766 if err := gensupport.DecodeResponse(target, res); err != nil {
27767 return nil, err
27768 }
27769 return ret, nil
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857 }
27858
27859
27860
27861
27862 func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error {
27863 c.ctx_ = ctx
27864 defer c.PageToken(c.urlParams_.Get("pageToken"))
27865 for {
27866 x, err := c.Do()
27867 if err != nil {
27868 return err
27869 }
27870 if err := f(x); err != nil {
27871 return err
27872 }
27873 if x.NextPageToken == "" {
27874 return nil
27875 }
27876 c.PageToken(x.NextPageToken)
27877 }
27878 }
27879
27880
27881
27882 type CreativeFieldsPatchCall struct {
27883 s *Service
27884 profileId int64
27885 creativefield *CreativeField
27886 urlParams_ gensupport.URLParams
27887 ctx_ context.Context
27888 header_ http.Header
27889 }
27890
27891
27892
27893
27894
27895
27896 func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall {
27897 c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27898 c.profileId = profileId
27899 c.urlParams_.Set("id", fmt.Sprint(id))
27900 c.creativefield = creativefield
27901 return c
27902 }
27903
27904
27905
27906
27907 func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall {
27908 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27909 return c
27910 }
27911
27912
27913
27914
27915 func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall {
27916 c.ctx_ = ctx
27917 return c
27918 }
27919
27920
27921
27922 func (c *CreativeFieldsPatchCall) Header() http.Header {
27923 if c.header_ == nil {
27924 c.header_ = make(http.Header)
27925 }
27926 return c.header_
27927 }
27928
27929 func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) {
27930 reqHeaders := make(http.Header)
27931 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
27932 for k, v := range c.header_ {
27933 reqHeaders[k] = v
27934 }
27935 reqHeaders.Set("User-Agent", c.s.userAgent())
27936 var body io.Reader = nil
27937 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield)
27938 if err != nil {
27939 return nil, err
27940 }
27941 reqHeaders.Set("Content-Type", "application/json")
27942 c.urlParams_.Set("alt", alt)
27943 c.urlParams_.Set("prettyPrint", "false")
27944 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
27945 urls += "?" + c.urlParams_.Encode()
27946 req, err := http.NewRequest("PATCH", urls, body)
27947 if err != nil {
27948 return nil, err
27949 }
27950 req.Header = reqHeaders
27951 googleapi.Expand(req.URL, map[string]string{
27952 "profileId": strconv.FormatInt(c.profileId, 10),
27953 })
27954 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27955 }
27956
27957
27958
27959
27960
27961
27962
27963
27964 func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
27965 gensupport.SetOptions(c.urlParams_, opts...)
27966 res, err := c.doRequest("json")
27967 if res != nil && res.StatusCode == http.StatusNotModified {
27968 if res.Body != nil {
27969 res.Body.Close()
27970 }
27971 return nil, &googleapi.Error{
27972 Code: res.StatusCode,
27973 Header: res.Header,
27974 }
27975 }
27976 if err != nil {
27977 return nil, err
27978 }
27979 defer googleapi.CloseBody(res)
27980 if err := googleapi.CheckResponse(res); err != nil {
27981 return nil, err
27982 }
27983 ret := &CreativeField{
27984 ServerResponse: googleapi.ServerResponse{
27985 Header: res.Header,
27986 HTTPStatusCode: res.StatusCode,
27987 },
27988 }
27989 target := &ret
27990 if err := gensupport.DecodeResponse(target, res); err != nil {
27991 return nil, err
27992 }
27993 return ret, nil
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031 }
28032
28033
28034
28035 type CreativeFieldsUpdateCall struct {
28036 s *Service
28037 profileId int64
28038 creativefield *CreativeField
28039 urlParams_ gensupport.URLParams
28040 ctx_ context.Context
28041 header_ http.Header
28042 }
28043
28044
28045
28046
28047 func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall {
28048 c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28049 c.profileId = profileId
28050 c.creativefield = creativefield
28051 return c
28052 }
28053
28054
28055
28056
28057 func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall {
28058 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28059 return c
28060 }
28061
28062
28063
28064
28065 func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall {
28066 c.ctx_ = ctx
28067 return c
28068 }
28069
28070
28071
28072 func (c *CreativeFieldsUpdateCall) Header() http.Header {
28073 if c.header_ == nil {
28074 c.header_ = make(http.Header)
28075 }
28076 return c.header_
28077 }
28078
28079 func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) {
28080 reqHeaders := make(http.Header)
28081 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
28082 for k, v := range c.header_ {
28083 reqHeaders[k] = v
28084 }
28085 reqHeaders.Set("User-Agent", c.s.userAgent())
28086 var body io.Reader = nil
28087 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield)
28088 if err != nil {
28089 return nil, err
28090 }
28091 reqHeaders.Set("Content-Type", "application/json")
28092 c.urlParams_.Set("alt", alt)
28093 c.urlParams_.Set("prettyPrint", "false")
28094 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields")
28095 urls += "?" + c.urlParams_.Encode()
28096 req, err := http.NewRequest("PUT", urls, body)
28097 if err != nil {
28098 return nil, err
28099 }
28100 req.Header = reqHeaders
28101 googleapi.Expand(req.URL, map[string]string{
28102 "profileId": strconv.FormatInt(c.profileId, 10),
28103 })
28104 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28105 }
28106
28107
28108
28109
28110
28111
28112
28113
28114 func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) {
28115 gensupport.SetOptions(c.urlParams_, opts...)
28116 res, err := c.doRequest("json")
28117 if res != nil && res.StatusCode == http.StatusNotModified {
28118 if res.Body != nil {
28119 res.Body.Close()
28120 }
28121 return nil, &googleapi.Error{
28122 Code: res.StatusCode,
28123 Header: res.Header,
28124 }
28125 }
28126 if err != nil {
28127 return nil, err
28128 }
28129 defer googleapi.CloseBody(res)
28130 if err := googleapi.CheckResponse(res); err != nil {
28131 return nil, err
28132 }
28133 ret := &CreativeField{
28134 ServerResponse: googleapi.ServerResponse{
28135 Header: res.Header,
28136 HTTPStatusCode: res.StatusCode,
28137 },
28138 }
28139 target := &ret
28140 if err := gensupport.DecodeResponse(target, res); err != nil {
28141 return nil, err
28142 }
28143 return ret, nil
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 type CreativeGroupsGetCall struct {
28178 s *Service
28179 profileId int64
28180 id int64
28181 urlParams_ gensupport.URLParams
28182 ifNoneMatch_ string
28183 ctx_ context.Context
28184 header_ http.Header
28185 }
28186
28187
28188
28189
28190
28191 func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall {
28192 c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28193 c.profileId = profileId
28194 c.id = id
28195 return c
28196 }
28197
28198
28199
28200
28201 func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall {
28202 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28203 return c
28204 }
28205
28206
28207
28208
28209
28210
28211 func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall {
28212 c.ifNoneMatch_ = entityTag
28213 return c
28214 }
28215
28216
28217
28218
28219 func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall {
28220 c.ctx_ = ctx
28221 return c
28222 }
28223
28224
28225
28226 func (c *CreativeGroupsGetCall) Header() http.Header {
28227 if c.header_ == nil {
28228 c.header_ = make(http.Header)
28229 }
28230 return c.header_
28231 }
28232
28233 func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) {
28234 reqHeaders := make(http.Header)
28235 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
28236 for k, v := range c.header_ {
28237 reqHeaders[k] = v
28238 }
28239 reqHeaders.Set("User-Agent", c.s.userAgent())
28240 if c.ifNoneMatch_ != "" {
28241 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28242 }
28243 var body io.Reader = nil
28244 c.urlParams_.Set("alt", alt)
28245 c.urlParams_.Set("prettyPrint", "false")
28246 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups/{id}")
28247 urls += "?" + c.urlParams_.Encode()
28248 req, err := http.NewRequest("GET", urls, body)
28249 if err != nil {
28250 return nil, err
28251 }
28252 req.Header = reqHeaders
28253 googleapi.Expand(req.URL, map[string]string{
28254 "profileId": strconv.FormatInt(c.profileId, 10),
28255 "id": strconv.FormatInt(c.id, 10),
28256 })
28257 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28258 }
28259
28260
28261
28262
28263
28264
28265
28266
28267 func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
28268 gensupport.SetOptions(c.urlParams_, opts...)
28269 res, err := c.doRequest("json")
28270 if res != nil && res.StatusCode == http.StatusNotModified {
28271 if res.Body != nil {
28272 res.Body.Close()
28273 }
28274 return nil, &googleapi.Error{
28275 Code: res.StatusCode,
28276 Header: res.Header,
28277 }
28278 }
28279 if err != nil {
28280 return nil, err
28281 }
28282 defer googleapi.CloseBody(res)
28283 if err := googleapi.CheckResponse(res); err != nil {
28284 return nil, err
28285 }
28286 ret := &CreativeGroup{
28287 ServerResponse: googleapi.ServerResponse{
28288 Header: res.Header,
28289 HTTPStatusCode: res.StatusCode,
28290 },
28291 }
28292 target := &ret
28293 if err := gensupport.DecodeResponse(target, res); err != nil {
28294 return nil, err
28295 }
28296 return ret, nil
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331 }
28332
28333
28334
28335 type CreativeGroupsInsertCall struct {
28336 s *Service
28337 profileId int64
28338 creativegroup *CreativeGroup
28339 urlParams_ gensupport.URLParams
28340 ctx_ context.Context
28341 header_ http.Header
28342 }
28343
28344
28345
28346
28347 func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall {
28348 c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28349 c.profileId = profileId
28350 c.creativegroup = creativegroup
28351 return c
28352 }
28353
28354
28355
28356
28357 func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall {
28358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28359 return c
28360 }
28361
28362
28363
28364
28365 func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall {
28366 c.ctx_ = ctx
28367 return c
28368 }
28369
28370
28371
28372 func (c *CreativeGroupsInsertCall) Header() http.Header {
28373 if c.header_ == nil {
28374 c.header_ = make(http.Header)
28375 }
28376 return c.header_
28377 }
28378
28379 func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
28380 reqHeaders := make(http.Header)
28381 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
28382 for k, v := range c.header_ {
28383 reqHeaders[k] = v
28384 }
28385 reqHeaders.Set("User-Agent", c.s.userAgent())
28386 var body io.Reader = nil
28387 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup)
28388 if err != nil {
28389 return nil, err
28390 }
28391 reqHeaders.Set("Content-Type", "application/json")
28392 c.urlParams_.Set("alt", alt)
28393 c.urlParams_.Set("prettyPrint", "false")
28394 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
28395 urls += "?" + c.urlParams_.Encode()
28396 req, err := http.NewRequest("POST", urls, body)
28397 if err != nil {
28398 return nil, err
28399 }
28400 req.Header = reqHeaders
28401 googleapi.Expand(req.URL, map[string]string{
28402 "profileId": strconv.FormatInt(c.profileId, 10),
28403 })
28404 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28405 }
28406
28407
28408
28409
28410
28411
28412
28413
28414 func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
28415 gensupport.SetOptions(c.urlParams_, opts...)
28416 res, err := c.doRequest("json")
28417 if res != nil && res.StatusCode == http.StatusNotModified {
28418 if res.Body != nil {
28419 res.Body.Close()
28420 }
28421 return nil, &googleapi.Error{
28422 Code: res.StatusCode,
28423 Header: res.Header,
28424 }
28425 }
28426 if err != nil {
28427 return nil, err
28428 }
28429 defer googleapi.CloseBody(res)
28430 if err := googleapi.CheckResponse(res); err != nil {
28431 return nil, err
28432 }
28433 ret := &CreativeGroup{
28434 ServerResponse: googleapi.ServerResponse{
28435 Header: res.Header,
28436 HTTPStatusCode: res.StatusCode,
28437 },
28438 }
28439 target := &ret
28440 if err := gensupport.DecodeResponse(target, res); err != nil {
28441 return nil, err
28442 }
28443 return ret, nil
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473 }
28474
28475
28476
28477 type CreativeGroupsListCall struct {
28478 s *Service
28479 profileId int64
28480 urlParams_ gensupport.URLParams
28481 ifNoneMatch_ string
28482 ctx_ context.Context
28483 header_ http.Header
28484 }
28485
28486
28487
28488
28489
28490 func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall {
28491 c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28492 c.profileId = profileId
28493 return c
28494 }
28495
28496
28497
28498 func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall {
28499 var advertiserIds_ []string
28500 for _, v := range advertiserIds {
28501 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
28502 }
28503 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
28504 return c
28505 }
28506
28507
28508
28509 func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall {
28510 c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber))
28511 return c
28512 }
28513
28514
28515
28516 func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall {
28517 var ids_ []string
28518 for _, v := range ids {
28519 ids_ = append(ids_, fmt.Sprint(v))
28520 }
28521 c.urlParams_.SetMulti("ids", ids_)
28522 return c
28523 }
28524
28525
28526
28527 func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall {
28528 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
28529 return c
28530 }
28531
28532
28533
28534 func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsListCall {
28535 c.urlParams_.Set("pageToken", pageToken)
28536 return c
28537 }
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548 func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall {
28549 c.urlParams_.Set("searchString", searchString)
28550 return c
28551 }
28552
28553
28554
28555
28556
28557
28558
28559
28560 func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsListCall {
28561 c.urlParams_.Set("sortField", sortField)
28562 return c
28563 }
28564
28565
28566
28567
28568
28569
28570
28571
28572 func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsListCall {
28573 c.urlParams_.Set("sortOrder", sortOrder)
28574 return c
28575 }
28576
28577
28578
28579
28580 func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall {
28581 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28582 return c
28583 }
28584
28585
28586
28587
28588
28589
28590 func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall {
28591 c.ifNoneMatch_ = entityTag
28592 return c
28593 }
28594
28595
28596
28597
28598 func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall {
28599 c.ctx_ = ctx
28600 return c
28601 }
28602
28603
28604
28605 func (c *CreativeGroupsListCall) Header() http.Header {
28606 if c.header_ == nil {
28607 c.header_ = make(http.Header)
28608 }
28609 return c.header_
28610 }
28611
28612 func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) {
28613 reqHeaders := make(http.Header)
28614 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
28615 for k, v := range c.header_ {
28616 reqHeaders[k] = v
28617 }
28618 reqHeaders.Set("User-Agent", c.s.userAgent())
28619 if c.ifNoneMatch_ != "" {
28620 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28621 }
28622 var body io.Reader = nil
28623 c.urlParams_.Set("alt", alt)
28624 c.urlParams_.Set("prettyPrint", "false")
28625 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
28626 urls += "?" + c.urlParams_.Encode()
28627 req, err := http.NewRequest("GET", urls, body)
28628 if err != nil {
28629 return nil, err
28630 }
28631 req.Header = reqHeaders
28632 googleapi.Expand(req.URL, map[string]string{
28633 "profileId": strconv.FormatInt(c.profileId, 10),
28634 })
28635 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28636 }
28637
28638
28639
28640
28641
28642
28643
28644
28645 func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) {
28646 gensupport.SetOptions(c.urlParams_, opts...)
28647 res, err := c.doRequest("json")
28648 if res != nil && res.StatusCode == http.StatusNotModified {
28649 if res.Body != nil {
28650 res.Body.Close()
28651 }
28652 return nil, &googleapi.Error{
28653 Code: res.StatusCode,
28654 Header: res.Header,
28655 }
28656 }
28657 if err != nil {
28658 return nil, err
28659 }
28660 defer googleapi.CloseBody(res)
28661 if err := googleapi.CheckResponse(res); err != nil {
28662 return nil, err
28663 }
28664 ret := &CreativeGroupsListResponse{
28665 ServerResponse: googleapi.ServerResponse{
28666 Header: res.Header,
28667 HTTPStatusCode: res.StatusCode,
28668 },
28669 }
28670 target := &ret
28671 if err := gensupport.DecodeResponse(target, res); err != nil {
28672 return nil, err
28673 }
28674 return ret, nil
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770 }
28771
28772
28773
28774
28775 func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error {
28776 c.ctx_ = ctx
28777 defer c.PageToken(c.urlParams_.Get("pageToken"))
28778 for {
28779 x, err := c.Do()
28780 if err != nil {
28781 return err
28782 }
28783 if err := f(x); err != nil {
28784 return err
28785 }
28786 if x.NextPageToken == "" {
28787 return nil
28788 }
28789 c.PageToken(x.NextPageToken)
28790 }
28791 }
28792
28793
28794
28795 type CreativeGroupsPatchCall struct {
28796 s *Service
28797 profileId int64
28798 creativegroup *CreativeGroup
28799 urlParams_ gensupport.URLParams
28800 ctx_ context.Context
28801 header_ http.Header
28802 }
28803
28804
28805
28806
28807
28808
28809 func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall {
28810 c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28811 c.profileId = profileId
28812 c.urlParams_.Set("id", fmt.Sprint(id))
28813 c.creativegroup = creativegroup
28814 return c
28815 }
28816
28817
28818
28819
28820 func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall {
28821 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28822 return c
28823 }
28824
28825
28826
28827
28828 func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall {
28829 c.ctx_ = ctx
28830 return c
28831 }
28832
28833
28834
28835 func (c *CreativeGroupsPatchCall) Header() http.Header {
28836 if c.header_ == nil {
28837 c.header_ = make(http.Header)
28838 }
28839 return c.header_
28840 }
28841
28842 func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
28843 reqHeaders := make(http.Header)
28844 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
28845 for k, v := range c.header_ {
28846 reqHeaders[k] = v
28847 }
28848 reqHeaders.Set("User-Agent", c.s.userAgent())
28849 var body io.Reader = nil
28850 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup)
28851 if err != nil {
28852 return nil, err
28853 }
28854 reqHeaders.Set("Content-Type", "application/json")
28855 c.urlParams_.Set("alt", alt)
28856 c.urlParams_.Set("prettyPrint", "false")
28857 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
28858 urls += "?" + c.urlParams_.Encode()
28859 req, err := http.NewRequest("PATCH", urls, body)
28860 if err != nil {
28861 return nil, err
28862 }
28863 req.Header = reqHeaders
28864 googleapi.Expand(req.URL, map[string]string{
28865 "profileId": strconv.FormatInt(c.profileId, 10),
28866 })
28867 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28868 }
28869
28870
28871
28872
28873
28874
28875
28876
28877 func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
28878 gensupport.SetOptions(c.urlParams_, opts...)
28879 res, err := c.doRequest("json")
28880 if res != nil && res.StatusCode == http.StatusNotModified {
28881 if res.Body != nil {
28882 res.Body.Close()
28883 }
28884 return nil, &googleapi.Error{
28885 Code: res.StatusCode,
28886 Header: res.Header,
28887 }
28888 }
28889 if err != nil {
28890 return nil, err
28891 }
28892 defer googleapi.CloseBody(res)
28893 if err := googleapi.CheckResponse(res); err != nil {
28894 return nil, err
28895 }
28896 ret := &CreativeGroup{
28897 ServerResponse: googleapi.ServerResponse{
28898 Header: res.Header,
28899 HTTPStatusCode: res.StatusCode,
28900 },
28901 }
28902 target := &ret
28903 if err := gensupport.DecodeResponse(target, res); err != nil {
28904 return nil, err
28905 }
28906 return ret, nil
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944 }
28945
28946
28947
28948 type CreativeGroupsUpdateCall struct {
28949 s *Service
28950 profileId int64
28951 creativegroup *CreativeGroup
28952 urlParams_ gensupport.URLParams
28953 ctx_ context.Context
28954 header_ http.Header
28955 }
28956
28957
28958
28959
28960 func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall {
28961 c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28962 c.profileId = profileId
28963 c.creativegroup = creativegroup
28964 return c
28965 }
28966
28967
28968
28969
28970 func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall {
28971 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28972 return c
28973 }
28974
28975
28976
28977
28978 func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall {
28979 c.ctx_ = ctx
28980 return c
28981 }
28982
28983
28984
28985 func (c *CreativeGroupsUpdateCall) Header() http.Header {
28986 if c.header_ == nil {
28987 c.header_ = make(http.Header)
28988 }
28989 return c.header_
28990 }
28991
28992 func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
28993 reqHeaders := make(http.Header)
28994 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
28995 for k, v := range c.header_ {
28996 reqHeaders[k] = v
28997 }
28998 reqHeaders.Set("User-Agent", c.s.userAgent())
28999 var body io.Reader = nil
29000 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup)
29001 if err != nil {
29002 return nil, err
29003 }
29004 reqHeaders.Set("Content-Type", "application/json")
29005 c.urlParams_.Set("alt", alt)
29006 c.urlParams_.Set("prettyPrint", "false")
29007 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups")
29008 urls += "?" + c.urlParams_.Encode()
29009 req, err := http.NewRequest("PUT", urls, body)
29010 if err != nil {
29011 return nil, err
29012 }
29013 req.Header = reqHeaders
29014 googleapi.Expand(req.URL, map[string]string{
29015 "profileId": strconv.FormatInt(c.profileId, 10),
29016 })
29017 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29018 }
29019
29020
29021
29022
29023
29024
29025
29026
29027 func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) {
29028 gensupport.SetOptions(c.urlParams_, opts...)
29029 res, err := c.doRequest("json")
29030 if res != nil && res.StatusCode == http.StatusNotModified {
29031 if res.Body != nil {
29032 res.Body.Close()
29033 }
29034 return nil, &googleapi.Error{
29035 Code: res.StatusCode,
29036 Header: res.Header,
29037 }
29038 }
29039 if err != nil {
29040 return nil, err
29041 }
29042 defer googleapi.CloseBody(res)
29043 if err := googleapi.CheckResponse(res); err != nil {
29044 return nil, err
29045 }
29046 ret := &CreativeGroup{
29047 ServerResponse: googleapi.ServerResponse{
29048 Header: res.Header,
29049 HTTPStatusCode: res.StatusCode,
29050 },
29051 }
29052 target := &ret
29053 if err := gensupport.DecodeResponse(target, res); err != nil {
29054 return nil, err
29055 }
29056 return ret, nil
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086 }
29087
29088
29089
29090 type CreativesGetCall struct {
29091 s *Service
29092 profileId int64
29093 id int64
29094 urlParams_ gensupport.URLParams
29095 ifNoneMatch_ string
29096 ctx_ context.Context
29097 header_ http.Header
29098 }
29099
29100
29101
29102
29103
29104 func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall {
29105 c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29106 c.profileId = profileId
29107 c.id = id
29108 return c
29109 }
29110
29111
29112
29113
29114 func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall {
29115 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29116 return c
29117 }
29118
29119
29120
29121
29122
29123
29124 func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall {
29125 c.ifNoneMatch_ = entityTag
29126 return c
29127 }
29128
29129
29130
29131
29132 func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall {
29133 c.ctx_ = ctx
29134 return c
29135 }
29136
29137
29138
29139 func (c *CreativesGetCall) Header() http.Header {
29140 if c.header_ == nil {
29141 c.header_ = make(http.Header)
29142 }
29143 return c.header_
29144 }
29145
29146 func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) {
29147 reqHeaders := make(http.Header)
29148 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
29149 for k, v := range c.header_ {
29150 reqHeaders[k] = v
29151 }
29152 reqHeaders.Set("User-Agent", c.s.userAgent())
29153 if c.ifNoneMatch_ != "" {
29154 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29155 }
29156 var body io.Reader = nil
29157 c.urlParams_.Set("alt", alt)
29158 c.urlParams_.Set("prettyPrint", "false")
29159 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives/{id}")
29160 urls += "?" + c.urlParams_.Encode()
29161 req, err := http.NewRequest("GET", urls, body)
29162 if err != nil {
29163 return nil, err
29164 }
29165 req.Header = reqHeaders
29166 googleapi.Expand(req.URL, map[string]string{
29167 "profileId": strconv.FormatInt(c.profileId, 10),
29168 "id": strconv.FormatInt(c.id, 10),
29169 })
29170 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29171 }
29172
29173
29174
29175
29176
29177
29178
29179
29180 func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
29181 gensupport.SetOptions(c.urlParams_, opts...)
29182 res, err := c.doRequest("json")
29183 if res != nil && res.StatusCode == http.StatusNotModified {
29184 if res.Body != nil {
29185 res.Body.Close()
29186 }
29187 return nil, &googleapi.Error{
29188 Code: res.StatusCode,
29189 Header: res.Header,
29190 }
29191 }
29192 if err != nil {
29193 return nil, err
29194 }
29195 defer googleapi.CloseBody(res)
29196 if err := googleapi.CheckResponse(res); err != nil {
29197 return nil, err
29198 }
29199 ret := &Creative{
29200 ServerResponse: googleapi.ServerResponse{
29201 Header: res.Header,
29202 HTTPStatusCode: res.StatusCode,
29203 },
29204 }
29205 target := &ret
29206 if err := gensupport.DecodeResponse(target, res); err != nil {
29207 return nil, err
29208 }
29209 return ret, nil
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244 }
29245
29246
29247
29248 type CreativesInsertCall struct {
29249 s *Service
29250 profileId int64
29251 creative *Creative
29252 urlParams_ gensupport.URLParams
29253 ctx_ context.Context
29254 header_ http.Header
29255 }
29256
29257
29258
29259
29260 func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall {
29261 c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29262 c.profileId = profileId
29263 c.creative = creative
29264 return c
29265 }
29266
29267
29268
29269
29270 func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall {
29271 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29272 return c
29273 }
29274
29275
29276
29277
29278 func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall {
29279 c.ctx_ = ctx
29280 return c
29281 }
29282
29283
29284
29285 func (c *CreativesInsertCall) Header() http.Header {
29286 if c.header_ == nil {
29287 c.header_ = make(http.Header)
29288 }
29289 return c.header_
29290 }
29291
29292 func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) {
29293 reqHeaders := make(http.Header)
29294 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
29295 for k, v := range c.header_ {
29296 reqHeaders[k] = v
29297 }
29298 reqHeaders.Set("User-Agent", c.s.userAgent())
29299 var body io.Reader = nil
29300 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
29301 if err != nil {
29302 return nil, err
29303 }
29304 reqHeaders.Set("Content-Type", "application/json")
29305 c.urlParams_.Set("alt", alt)
29306 c.urlParams_.Set("prettyPrint", "false")
29307 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
29308 urls += "?" + c.urlParams_.Encode()
29309 req, err := http.NewRequest("POST", urls, body)
29310 if err != nil {
29311 return nil, err
29312 }
29313 req.Header = reqHeaders
29314 googleapi.Expand(req.URL, map[string]string{
29315 "profileId": strconv.FormatInt(c.profileId, 10),
29316 })
29317 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29318 }
29319
29320
29321
29322
29323
29324
29325
29326
29327 func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
29328 gensupport.SetOptions(c.urlParams_, opts...)
29329 res, err := c.doRequest("json")
29330 if res != nil && res.StatusCode == http.StatusNotModified {
29331 if res.Body != nil {
29332 res.Body.Close()
29333 }
29334 return nil, &googleapi.Error{
29335 Code: res.StatusCode,
29336 Header: res.Header,
29337 }
29338 }
29339 if err != nil {
29340 return nil, err
29341 }
29342 defer googleapi.CloseBody(res)
29343 if err := googleapi.CheckResponse(res); err != nil {
29344 return nil, err
29345 }
29346 ret := &Creative{
29347 ServerResponse: googleapi.ServerResponse{
29348 Header: res.Header,
29349 HTTPStatusCode: res.StatusCode,
29350 },
29351 }
29352 target := &ret
29353 if err := gensupport.DecodeResponse(target, res); err != nil {
29354 return nil, err
29355 }
29356 return ret, nil
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 type CreativesListCall struct {
29391 s *Service
29392 profileId int64
29393 urlParams_ gensupport.URLParams
29394 ifNoneMatch_ string
29395 ctx_ context.Context
29396 header_ http.Header
29397 }
29398
29399
29400
29401
29402
29403 func (r *CreativesService) List(profileId int64) *CreativesListCall {
29404 c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29405 c.profileId = profileId
29406 return c
29407 }
29408
29409
29410
29411 func (c *CreativesListCall) Active(active bool) *CreativesListCall {
29412 c.urlParams_.Set("active", fmt.Sprint(active))
29413 return c
29414 }
29415
29416
29417
29418 func (c *CreativesListCall) AdvertiserId(advertiserId int64) *CreativesListCall {
29419 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
29420 return c
29421 }
29422
29423
29424
29425 func (c *CreativesListCall) Archived(archived bool) *CreativesListCall {
29426 c.urlParams_.Set("archived", fmt.Sprint(archived))
29427 return c
29428 }
29429
29430
29431
29432 func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall {
29433 c.urlParams_.Set("campaignId", fmt.Sprint(campaignId))
29434 return c
29435 }
29436
29437
29438
29439
29440 func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall {
29441 var companionCreativeIds_ []string
29442 for _, v := range companionCreativeIds {
29443 companionCreativeIds_ = append(companionCreativeIds_, fmt.Sprint(v))
29444 }
29445 c.urlParams_.SetMulti("companionCreativeIds", companionCreativeIds_)
29446 return c
29447 }
29448
29449
29450
29451 func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall {
29452 var creativeFieldIds_ []string
29453 for _, v := range creativeFieldIds {
29454 creativeFieldIds_ = append(creativeFieldIds_, fmt.Sprint(v))
29455 }
29456 c.urlParams_.SetMulti("creativeFieldIds", creativeFieldIds_)
29457 return c
29458 }
29459
29460
29461
29462 func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall {
29463 var ids_ []string
29464 for _, v := range ids {
29465 ids_ = append(ids_, fmt.Sprint(v))
29466 }
29467 c.urlParams_.SetMulti("ids", ids_)
29468 return c
29469 }
29470
29471
29472
29473 func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall {
29474 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
29475 return c
29476 }
29477
29478
29479
29480 func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall {
29481 c.urlParams_.Set("pageToken", pageToken)
29482 return c
29483 }
29484
29485
29486
29487 func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCall {
29488 var renderingIds_ []string
29489 for _, v := range renderingIds {
29490 renderingIds_ = append(renderingIds_, fmt.Sprint(v))
29491 }
29492 c.urlParams_.SetMulti("renderingIds", renderingIds_)
29493 return c
29494 }
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504 func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall {
29505 c.urlParams_.Set("searchString", searchString)
29506 return c
29507 }
29508
29509
29510
29511 func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall {
29512 var sizeIds_ []string
29513 for _, v := range sizeIds {
29514 sizeIds_ = append(sizeIds_, fmt.Sprint(v))
29515 }
29516 c.urlParams_.SetMulti("sizeIds", sizeIds_)
29517 return c
29518 }
29519
29520
29521
29522
29523
29524
29525
29526
29527 func (c *CreativesListCall) SortField(sortField string) *CreativesListCall {
29528 c.urlParams_.Set("sortField", sortField)
29529 return c
29530 }
29531
29532
29533
29534
29535
29536
29537
29538
29539 func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall {
29540 c.urlParams_.Set("sortOrder", sortOrder)
29541 return c
29542 }
29543
29544
29545
29546 func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall {
29547 c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId))
29548 return c
29549 }
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581 func (c *CreativesListCall) Types(types ...string) *CreativesListCall {
29582 c.urlParams_.SetMulti("types", append([]string{}, types...))
29583 return c
29584 }
29585
29586
29587
29588
29589 func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall {
29590 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29591 return c
29592 }
29593
29594
29595
29596
29597
29598
29599 func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall {
29600 c.ifNoneMatch_ = entityTag
29601 return c
29602 }
29603
29604
29605
29606
29607 func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall {
29608 c.ctx_ = ctx
29609 return c
29610 }
29611
29612
29613
29614 func (c *CreativesListCall) Header() http.Header {
29615 if c.header_ == nil {
29616 c.header_ = make(http.Header)
29617 }
29618 return c.header_
29619 }
29620
29621 func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) {
29622 reqHeaders := make(http.Header)
29623 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
29624 for k, v := range c.header_ {
29625 reqHeaders[k] = v
29626 }
29627 reqHeaders.Set("User-Agent", c.s.userAgent())
29628 if c.ifNoneMatch_ != "" {
29629 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29630 }
29631 var body io.Reader = nil
29632 c.urlParams_.Set("alt", alt)
29633 c.urlParams_.Set("prettyPrint", "false")
29634 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
29635 urls += "?" + c.urlParams_.Encode()
29636 req, err := http.NewRequest("GET", urls, body)
29637 if err != nil {
29638 return nil, err
29639 }
29640 req.Header = reqHeaders
29641 googleapi.Expand(req.URL, map[string]string{
29642 "profileId": strconv.FormatInt(c.profileId, 10),
29643 })
29644 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29645 }
29646
29647
29648
29649
29650
29651
29652
29653
29654 func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) {
29655 gensupport.SetOptions(c.urlParams_, opts...)
29656 res, err := c.doRequest("json")
29657 if res != nil && res.StatusCode == http.StatusNotModified {
29658 if res.Body != nil {
29659 res.Body.Close()
29660 }
29661 return nil, &googleapi.Error{
29662 Code: res.StatusCode,
29663 Header: res.Header,
29664 }
29665 }
29666 if err != nil {
29667 return nil, err
29668 }
29669 defer googleapi.CloseBody(res)
29670 if err := googleapi.CheckResponse(res); err != nil {
29671 return nil, err
29672 }
29673 ret := &CreativesListResponse{
29674 ServerResponse: googleapi.ServerResponse{
29675 Header: res.Header,
29676 HTTPStatusCode: res.StatusCode,
29677 },
29678 }
29679 target := &ret
29680 if err := gensupport.DecodeResponse(target, res); err != nil {
29681 return nil, err
29682 }
29683 return ret, nil
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
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
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880 }
29881
29882
29883
29884
29885 func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error {
29886 c.ctx_ = ctx
29887 defer c.PageToken(c.urlParams_.Get("pageToken"))
29888 for {
29889 x, err := c.Do()
29890 if err != nil {
29891 return err
29892 }
29893 if err := f(x); err != nil {
29894 return err
29895 }
29896 if x.NextPageToken == "" {
29897 return nil
29898 }
29899 c.PageToken(x.NextPageToken)
29900 }
29901 }
29902
29903
29904
29905 type CreativesPatchCall struct {
29906 s *Service
29907 profileId int64
29908 creative *Creative
29909 urlParams_ gensupport.URLParams
29910 ctx_ context.Context
29911 header_ http.Header
29912 }
29913
29914
29915
29916
29917
29918
29919 func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall {
29920 c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29921 c.profileId = profileId
29922 c.urlParams_.Set("id", fmt.Sprint(id))
29923 c.creative = creative
29924 return c
29925 }
29926
29927
29928
29929
29930 func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall {
29931 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29932 return c
29933 }
29934
29935
29936
29937
29938 func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall {
29939 c.ctx_ = ctx
29940 return c
29941 }
29942
29943
29944
29945 func (c *CreativesPatchCall) Header() http.Header {
29946 if c.header_ == nil {
29947 c.header_ = make(http.Header)
29948 }
29949 return c.header_
29950 }
29951
29952 func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) {
29953 reqHeaders := make(http.Header)
29954 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
29955 for k, v := range c.header_ {
29956 reqHeaders[k] = v
29957 }
29958 reqHeaders.Set("User-Agent", c.s.userAgent())
29959 var body io.Reader = nil
29960 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
29961 if err != nil {
29962 return nil, err
29963 }
29964 reqHeaders.Set("Content-Type", "application/json")
29965 c.urlParams_.Set("alt", alt)
29966 c.urlParams_.Set("prettyPrint", "false")
29967 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
29968 urls += "?" + c.urlParams_.Encode()
29969 req, err := http.NewRequest("PATCH", urls, body)
29970 if err != nil {
29971 return nil, err
29972 }
29973 req.Header = reqHeaders
29974 googleapi.Expand(req.URL, map[string]string{
29975 "profileId": strconv.FormatInt(c.profileId, 10),
29976 })
29977 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29978 }
29979
29980
29981
29982
29983
29984
29985
29986
29987 func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
29988 gensupport.SetOptions(c.urlParams_, opts...)
29989 res, err := c.doRequest("json")
29990 if res != nil && res.StatusCode == http.StatusNotModified {
29991 if res.Body != nil {
29992 res.Body.Close()
29993 }
29994 return nil, &googleapi.Error{
29995 Code: res.StatusCode,
29996 Header: res.Header,
29997 }
29998 }
29999 if err != nil {
30000 return nil, err
30001 }
30002 defer googleapi.CloseBody(res)
30003 if err := googleapi.CheckResponse(res); err != nil {
30004 return nil, err
30005 }
30006 ret := &Creative{
30007 ServerResponse: googleapi.ServerResponse{
30008 Header: res.Header,
30009 HTTPStatusCode: res.StatusCode,
30010 },
30011 }
30012 target := &ret
30013 if err := gensupport.DecodeResponse(target, res); err != nil {
30014 return nil, err
30015 }
30016 return ret, nil
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
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 type CreativesUpdateCall struct {
30059 s *Service
30060 profileId int64
30061 creative *Creative
30062 urlParams_ gensupport.URLParams
30063 ctx_ context.Context
30064 header_ http.Header
30065 }
30066
30067
30068
30069
30070 func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall {
30071 c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30072 c.profileId = profileId
30073 c.creative = creative
30074 return c
30075 }
30076
30077
30078
30079
30080 func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall {
30081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30082 return c
30083 }
30084
30085
30086
30087
30088 func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall {
30089 c.ctx_ = ctx
30090 return c
30091 }
30092
30093
30094
30095 func (c *CreativesUpdateCall) Header() http.Header {
30096 if c.header_ == nil {
30097 c.header_ = make(http.Header)
30098 }
30099 return c.header_
30100 }
30101
30102 func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) {
30103 reqHeaders := make(http.Header)
30104 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
30105 for k, v := range c.header_ {
30106 reqHeaders[k] = v
30107 }
30108 reqHeaders.Set("User-Agent", c.s.userAgent())
30109 var body io.Reader = nil
30110 body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative)
30111 if err != nil {
30112 return nil, err
30113 }
30114 reqHeaders.Set("Content-Type", "application/json")
30115 c.urlParams_.Set("alt", alt)
30116 c.urlParams_.Set("prettyPrint", "false")
30117 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives")
30118 urls += "?" + c.urlParams_.Encode()
30119 req, err := http.NewRequest("PUT", urls, body)
30120 if err != nil {
30121 return nil, err
30122 }
30123 req.Header = reqHeaders
30124 googleapi.Expand(req.URL, map[string]string{
30125 "profileId": strconv.FormatInt(c.profileId, 10),
30126 })
30127 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30128 }
30129
30130
30131
30132
30133
30134
30135
30136
30137 func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) {
30138 gensupport.SetOptions(c.urlParams_, opts...)
30139 res, err := c.doRequest("json")
30140 if res != nil && res.StatusCode == http.StatusNotModified {
30141 if res.Body != nil {
30142 res.Body.Close()
30143 }
30144 return nil, &googleapi.Error{
30145 Code: res.StatusCode,
30146 Header: res.Header,
30147 }
30148 }
30149 if err != nil {
30150 return nil, err
30151 }
30152 defer googleapi.CloseBody(res)
30153 if err := googleapi.CheckResponse(res); err != nil {
30154 return nil, err
30155 }
30156 ret := &Creative{
30157 ServerResponse: googleapi.ServerResponse{
30158 Header: res.Header,
30159 HTTPStatusCode: res.StatusCode,
30160 },
30161 }
30162 target := &ret
30163 if err := gensupport.DecodeResponse(target, res); err != nil {
30164 return nil, err
30165 }
30166 return ret, nil
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196 }
30197
30198
30199
30200 type CustomEventsBatchinsertCall struct {
30201 s *Service
30202 profileId int64
30203 customeventsbatchinsertrequest *CustomEventsBatchInsertRequest
30204 urlParams_ gensupport.URLParams
30205 ctx_ context.Context
30206 header_ http.Header
30207 }
30208
30209
30210
30211
30212 func (r *CustomEventsService) Batchinsert(profileId int64, customeventsbatchinsertrequest *CustomEventsBatchInsertRequest) *CustomEventsBatchinsertCall {
30213 c := &CustomEventsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30214 c.profileId = profileId
30215 c.customeventsbatchinsertrequest = customeventsbatchinsertrequest
30216 return c
30217 }
30218
30219
30220
30221
30222 func (c *CustomEventsBatchinsertCall) Fields(s ...googleapi.Field) *CustomEventsBatchinsertCall {
30223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30224 return c
30225 }
30226
30227
30228
30229
30230 func (c *CustomEventsBatchinsertCall) Context(ctx context.Context) *CustomEventsBatchinsertCall {
30231 c.ctx_ = ctx
30232 return c
30233 }
30234
30235
30236
30237 func (c *CustomEventsBatchinsertCall) Header() http.Header {
30238 if c.header_ == nil {
30239 c.header_ = make(http.Header)
30240 }
30241 return c.header_
30242 }
30243
30244 func (c *CustomEventsBatchinsertCall) doRequest(alt string) (*http.Response, error) {
30245 reqHeaders := make(http.Header)
30246 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
30247 for k, v := range c.header_ {
30248 reqHeaders[k] = v
30249 }
30250 reqHeaders.Set("User-Agent", c.s.userAgent())
30251 var body io.Reader = nil
30252 body, err := googleapi.WithoutDataWrapper.JSONReader(c.customeventsbatchinsertrequest)
30253 if err != nil {
30254 return nil, err
30255 }
30256 reqHeaders.Set("Content-Type", "application/json")
30257 c.urlParams_.Set("alt", alt)
30258 c.urlParams_.Set("prettyPrint", "false")
30259 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/customEvents/batchinsert")
30260 urls += "?" + c.urlParams_.Encode()
30261 req, err := http.NewRequest("POST", urls, body)
30262 if err != nil {
30263 return nil, err
30264 }
30265 req.Header = reqHeaders
30266 googleapi.Expand(req.URL, map[string]string{
30267 "profileId": strconv.FormatInt(c.profileId, 10),
30268 })
30269 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30270 }
30271
30272
30273
30274
30275
30276
30277
30278
30279 func (c *CustomEventsBatchinsertCall) Do(opts ...googleapi.CallOption) (*CustomEventsBatchInsertResponse, error) {
30280 gensupport.SetOptions(c.urlParams_, opts...)
30281 res, err := c.doRequest("json")
30282 if res != nil && res.StatusCode == http.StatusNotModified {
30283 if res.Body != nil {
30284 res.Body.Close()
30285 }
30286 return nil, &googleapi.Error{
30287 Code: res.StatusCode,
30288 Header: res.Header,
30289 }
30290 }
30291 if err != nil {
30292 return nil, err
30293 }
30294 defer googleapi.CloseBody(res)
30295 if err := googleapi.CheckResponse(res); err != nil {
30296 return nil, err
30297 }
30298 ret := &CustomEventsBatchInsertResponse{
30299 ServerResponse: googleapi.ServerResponse{
30300 Header: res.Header,
30301 HTTPStatusCode: res.StatusCode,
30302 },
30303 }
30304 target := &ret
30305 if err := gensupport.DecodeResponse(target, res); err != nil {
30306 return nil, err
30307 }
30308 return ret, nil
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338 }
30339
30340
30341
30342 type DimensionValuesQueryCall struct {
30343 s *Service
30344 profileId int64
30345 dimensionvaluerequest *DimensionValueRequest
30346 urlParams_ gensupport.URLParams
30347 ctx_ context.Context
30348 header_ http.Header
30349 }
30350
30351
30352
30353
30354
30355 func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall {
30356 c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30357 c.profileId = profileId
30358 c.dimensionvaluerequest = dimensionvaluerequest
30359 return c
30360 }
30361
30362
30363
30364 func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall {
30365 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
30366 return c
30367 }
30368
30369
30370
30371 func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQueryCall {
30372 c.urlParams_.Set("pageToken", pageToken)
30373 return c
30374 }
30375
30376
30377
30378
30379 func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall {
30380 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30381 return c
30382 }
30383
30384
30385
30386
30387 func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall {
30388 c.ctx_ = ctx
30389 return c
30390 }
30391
30392
30393
30394 func (c *DimensionValuesQueryCall) Header() http.Header {
30395 if c.header_ == nil {
30396 c.header_ = make(http.Header)
30397 }
30398 return c.header_
30399 }
30400
30401 func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) {
30402 reqHeaders := make(http.Header)
30403 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
30404 for k, v := range c.header_ {
30405 reqHeaders[k] = v
30406 }
30407 reqHeaders.Set("User-Agent", c.s.userAgent())
30408 var body io.Reader = nil
30409 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest)
30410 if err != nil {
30411 return nil, err
30412 }
30413 reqHeaders.Set("Content-Type", "application/json")
30414 c.urlParams_.Set("alt", alt)
30415 c.urlParams_.Set("prettyPrint", "false")
30416 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query")
30417 urls += "?" + c.urlParams_.Encode()
30418 req, err := http.NewRequest("POST", urls, body)
30419 if err != nil {
30420 return nil, err
30421 }
30422 req.Header = reqHeaders
30423 googleapi.Expand(req.URL, map[string]string{
30424 "profileId": strconv.FormatInt(c.profileId, 10),
30425 })
30426 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30427 }
30428
30429
30430
30431
30432
30433
30434
30435
30436 func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) {
30437 gensupport.SetOptions(c.urlParams_, opts...)
30438 res, err := c.doRequest("json")
30439 if res != nil && res.StatusCode == http.StatusNotModified {
30440 if res.Body != nil {
30441 res.Body.Close()
30442 }
30443 return nil, &googleapi.Error{
30444 Code: res.StatusCode,
30445 Header: res.Header,
30446 }
30447 }
30448 if err != nil {
30449 return nil, err
30450 }
30451 defer googleapi.CloseBody(res)
30452 if err := googleapi.CheckResponse(res); err != nil {
30453 return nil, err
30454 }
30455 ret := &DimensionValueList{
30456 ServerResponse: googleapi.ServerResponse{
30457 Header: res.Header,
30458 HTTPStatusCode: res.StatusCode,
30459 },
30460 }
30461 target := &ret
30462 if err := gensupport.DecodeResponse(target, res); err != nil {
30463 return nil, err
30464 }
30465 return ret, nil
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509 }
30510
30511
30512
30513
30514 func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error {
30515 c.ctx_ = ctx
30516 defer c.PageToken(c.urlParams_.Get("pageToken"))
30517 for {
30518 x, err := c.Do()
30519 if err != nil {
30520 return err
30521 }
30522 if err := f(x); err != nil {
30523 return err
30524 }
30525 if x.NextPageToken == "" {
30526 return nil
30527 }
30528 c.PageToken(x.NextPageToken)
30529 }
30530 }
30531
30532
30533
30534 type DirectorySitesGetCall struct {
30535 s *Service
30536 profileId int64
30537 id int64
30538 urlParams_ gensupport.URLParams
30539 ifNoneMatch_ string
30540 ctx_ context.Context
30541 header_ http.Header
30542 }
30543
30544
30545
30546
30547
30548 func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall {
30549 c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30550 c.profileId = profileId
30551 c.id = id
30552 return c
30553 }
30554
30555
30556
30557
30558 func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall {
30559 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30560 return c
30561 }
30562
30563
30564
30565
30566
30567
30568 func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall {
30569 c.ifNoneMatch_ = entityTag
30570 return c
30571 }
30572
30573
30574
30575
30576 func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall {
30577 c.ctx_ = ctx
30578 return c
30579 }
30580
30581
30582
30583 func (c *DirectorySitesGetCall) Header() http.Header {
30584 if c.header_ == nil {
30585 c.header_ = make(http.Header)
30586 }
30587 return c.header_
30588 }
30589
30590 func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) {
30591 reqHeaders := make(http.Header)
30592 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
30593 for k, v := range c.header_ {
30594 reqHeaders[k] = v
30595 }
30596 reqHeaders.Set("User-Agent", c.s.userAgent())
30597 if c.ifNoneMatch_ != "" {
30598 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30599 }
30600 var body io.Reader = nil
30601 c.urlParams_.Set("alt", alt)
30602 c.urlParams_.Set("prettyPrint", "false")
30603 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites/{id}")
30604 urls += "?" + c.urlParams_.Encode()
30605 req, err := http.NewRequest("GET", urls, body)
30606 if err != nil {
30607 return nil, err
30608 }
30609 req.Header = reqHeaders
30610 googleapi.Expand(req.URL, map[string]string{
30611 "profileId": strconv.FormatInt(c.profileId, 10),
30612 "id": strconv.FormatInt(c.id, 10),
30613 })
30614 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30615 }
30616
30617
30618
30619
30620
30621
30622
30623
30624 func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) {
30625 gensupport.SetOptions(c.urlParams_, opts...)
30626 res, err := c.doRequest("json")
30627 if res != nil && res.StatusCode == http.StatusNotModified {
30628 if res.Body != nil {
30629 res.Body.Close()
30630 }
30631 return nil, &googleapi.Error{
30632 Code: res.StatusCode,
30633 Header: res.Header,
30634 }
30635 }
30636 if err != nil {
30637 return nil, err
30638 }
30639 defer googleapi.CloseBody(res)
30640 if err := googleapi.CheckResponse(res); err != nil {
30641 return nil, err
30642 }
30643 ret := &DirectorySite{
30644 ServerResponse: googleapi.ServerResponse{
30645 Header: res.Header,
30646 HTTPStatusCode: res.StatusCode,
30647 },
30648 }
30649 target := &ret
30650 if err := gensupport.DecodeResponse(target, res); err != nil {
30651 return nil, err
30652 }
30653 return ret, nil
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688 }
30689
30690
30691
30692 type DirectorySitesInsertCall struct {
30693 s *Service
30694 profileId int64
30695 directorysite *DirectorySite
30696 urlParams_ gensupport.URLParams
30697 ctx_ context.Context
30698 header_ http.Header
30699 }
30700
30701
30702
30703
30704 func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall {
30705 c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30706 c.profileId = profileId
30707 c.directorysite = directorysite
30708 return c
30709 }
30710
30711
30712
30713
30714 func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall {
30715 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30716 return c
30717 }
30718
30719
30720
30721
30722 func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall {
30723 c.ctx_ = ctx
30724 return c
30725 }
30726
30727
30728
30729 func (c *DirectorySitesInsertCall) Header() http.Header {
30730 if c.header_ == nil {
30731 c.header_ = make(http.Header)
30732 }
30733 return c.header_
30734 }
30735
30736 func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) {
30737 reqHeaders := make(http.Header)
30738 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
30739 for k, v := range c.header_ {
30740 reqHeaders[k] = v
30741 }
30742 reqHeaders.Set("User-Agent", c.s.userAgent())
30743 var body io.Reader = nil
30744 body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite)
30745 if err != nil {
30746 return nil, err
30747 }
30748 reqHeaders.Set("Content-Type", "application/json")
30749 c.urlParams_.Set("alt", alt)
30750 c.urlParams_.Set("prettyPrint", "false")
30751 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites")
30752 urls += "?" + c.urlParams_.Encode()
30753 req, err := http.NewRequest("POST", urls, body)
30754 if err != nil {
30755 return nil, err
30756 }
30757 req.Header = reqHeaders
30758 googleapi.Expand(req.URL, map[string]string{
30759 "profileId": strconv.FormatInt(c.profileId, 10),
30760 })
30761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30762 }
30763
30764
30765
30766
30767
30768
30769
30770
30771 func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) {
30772 gensupport.SetOptions(c.urlParams_, opts...)
30773 res, err := c.doRequest("json")
30774 if res != nil && res.StatusCode == http.StatusNotModified {
30775 if res.Body != nil {
30776 res.Body.Close()
30777 }
30778 return nil, &googleapi.Error{
30779 Code: res.StatusCode,
30780 Header: res.Header,
30781 }
30782 }
30783 if err != nil {
30784 return nil, err
30785 }
30786 defer googleapi.CloseBody(res)
30787 if err := googleapi.CheckResponse(res); err != nil {
30788 return nil, err
30789 }
30790 ret := &DirectorySite{
30791 ServerResponse: googleapi.ServerResponse{
30792 Header: res.Header,
30793 HTTPStatusCode: res.StatusCode,
30794 },
30795 }
30796 target := &ret
30797 if err := gensupport.DecodeResponse(target, res); err != nil {
30798 return nil, err
30799 }
30800 return ret, nil
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 type DirectorySitesListCall struct {
30835 s *Service
30836 profileId int64
30837 urlParams_ gensupport.URLParams
30838 ifNoneMatch_ string
30839 ctx_ context.Context
30840 header_ http.Header
30841 }
30842
30843
30844
30845
30846
30847 func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall {
30848 c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30849 c.profileId = profileId
30850 return c
30851 }
30852
30853
30854
30855
30856 func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall {
30857 c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements))
30858 return c
30859 }
30860
30861
30862
30863
30864 func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall {
30865 c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements))
30866 return c
30867 }
30868
30869
30870
30871
30872 func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall {
30873 c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements))
30874 return c
30875 }
30876
30877
30878
30879
30880 func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall {
30881 c.urlParams_.Set("active", fmt.Sprint(active))
30882 return c
30883 }
30884
30885
30886
30887 func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall {
30888 c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode)
30889 return c
30890 }
30891
30892
30893
30894 func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall {
30895 var ids_ []string
30896 for _, v := range ids {
30897 ids_ = append(ids_, fmt.Sprint(v))
30898 }
30899 c.urlParams_.SetMulti("ids", ids_)
30900 return c
30901 }
30902
30903
30904
30905 func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall {
30906 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
30907 return c
30908 }
30909
30910
30911
30912 func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesListCall {
30913 c.urlParams_.Set("pageToken", pageToken)
30914 return c
30915 }
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926 func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall {
30927 c.urlParams_.Set("searchString", searchString)
30928 return c
30929 }
30930
30931
30932
30933
30934
30935
30936
30937
30938 func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesListCall {
30939 c.urlParams_.Set("sortField", sortField)
30940 return c
30941 }
30942
30943
30944
30945
30946
30947
30948
30949
30950 func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesListCall {
30951 c.urlParams_.Set("sortOrder", sortOrder)
30952 return c
30953 }
30954
30955
30956
30957
30958 func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall {
30959 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30960 return c
30961 }
30962
30963
30964
30965
30966
30967
30968 func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall {
30969 c.ifNoneMatch_ = entityTag
30970 return c
30971 }
30972
30973
30974
30975
30976 func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall {
30977 c.ctx_ = ctx
30978 return c
30979 }
30980
30981
30982
30983 func (c *DirectorySitesListCall) Header() http.Header {
30984 if c.header_ == nil {
30985 c.header_ = make(http.Header)
30986 }
30987 return c.header_
30988 }
30989
30990 func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) {
30991 reqHeaders := make(http.Header)
30992 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
30993 for k, v := range c.header_ {
30994 reqHeaders[k] = v
30995 }
30996 reqHeaders.Set("User-Agent", c.s.userAgent())
30997 if c.ifNoneMatch_ != "" {
30998 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30999 }
31000 var body io.Reader = nil
31001 c.urlParams_.Set("alt", alt)
31002 c.urlParams_.Set("prettyPrint", "false")
31003 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites")
31004 urls += "?" + c.urlParams_.Encode()
31005 req, err := http.NewRequest("GET", urls, body)
31006 if err != nil {
31007 return nil, err
31008 }
31009 req.Header = reqHeaders
31010 googleapi.Expand(req.URL, map[string]string{
31011 "profileId": strconv.FormatInt(c.profileId, 10),
31012 })
31013 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31014 }
31015
31016
31017
31018
31019
31020
31021
31022
31023 func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) {
31024 gensupport.SetOptions(c.urlParams_, opts...)
31025 res, err := c.doRequest("json")
31026 if res != nil && res.StatusCode == http.StatusNotModified {
31027 if res.Body != nil {
31028 res.Body.Close()
31029 }
31030 return nil, &googleapi.Error{
31031 Code: res.StatusCode,
31032 Header: res.Header,
31033 }
31034 }
31035 if err != nil {
31036 return nil, err
31037 }
31038 defer googleapi.CloseBody(res)
31039 if err := googleapi.CheckResponse(res); err != nil {
31040 return nil, err
31041 }
31042 ret := &DirectorySitesListResponse{
31043 ServerResponse: googleapi.ServerResponse{
31044 Header: res.Header,
31045 HTTPStatusCode: res.StatusCode,
31046 },
31047 }
31048 target := &ret
31049 if err := gensupport.DecodeResponse(target, res); err != nil {
31050 return nil, err
31051 }
31052 return ret, nil
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
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
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158 }
31159
31160
31161
31162
31163 func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error {
31164 c.ctx_ = ctx
31165 defer c.PageToken(c.urlParams_.Get("pageToken"))
31166 for {
31167 x, err := c.Do()
31168 if err != nil {
31169 return err
31170 }
31171 if err := f(x); err != nil {
31172 return err
31173 }
31174 if x.NextPageToken == "" {
31175 return nil
31176 }
31177 c.PageToken(x.NextPageToken)
31178 }
31179 }
31180
31181
31182
31183 type DynamicTargetingKeysDeleteCall struct {
31184 s *Service
31185 profileId int64
31186 objectId int64
31187 urlParams_ gensupport.URLParams
31188 ctx_ context.Context
31189 header_ http.Header
31190 }
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202 func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall {
31203 c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31204 c.profileId = profileId
31205 c.objectId = objectId
31206 c.urlParams_.Set("name", name)
31207 c.urlParams_.Set("objectType", objectType)
31208 return c
31209 }
31210
31211
31212
31213
31214 func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall {
31215 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31216 return c
31217 }
31218
31219
31220
31221
31222 func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall {
31223 c.ctx_ = ctx
31224 return c
31225 }
31226
31227
31228
31229 func (c *DynamicTargetingKeysDeleteCall) Header() http.Header {
31230 if c.header_ == nil {
31231 c.header_ = make(http.Header)
31232 }
31233 return c.header_
31234 }
31235
31236 func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
31237 reqHeaders := make(http.Header)
31238 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
31239 for k, v := range c.header_ {
31240 reqHeaders[k] = v
31241 }
31242 reqHeaders.Set("User-Agent", c.s.userAgent())
31243 var body io.Reader = nil
31244 c.urlParams_.Set("alt", alt)
31245 c.urlParams_.Set("prettyPrint", "false")
31246 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}")
31247 urls += "?" + c.urlParams_.Encode()
31248 req, err := http.NewRequest("DELETE", urls, body)
31249 if err != nil {
31250 return nil, err
31251 }
31252 req.Header = reqHeaders
31253 googleapi.Expand(req.URL, map[string]string{
31254 "profileId": strconv.FormatInt(c.profileId, 10),
31255 "objectId": strconv.FormatInt(c.objectId, 10),
31256 })
31257 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31258 }
31259
31260
31261 func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error {
31262 gensupport.SetOptions(c.urlParams_, opts...)
31263 res, err := c.doRequest("json")
31264 if err != nil {
31265 return err
31266 }
31267 defer googleapi.CloseBody(res)
31268 if err := googleapi.CheckResponse(res); err != nil {
31269 return err
31270 }
31271 return nil
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329 }
31330
31331
31332
31333 type DynamicTargetingKeysInsertCall struct {
31334 s *Service
31335 profileId int64
31336 dynamictargetingkey *DynamicTargetingKey
31337 urlParams_ gensupport.URLParams
31338 ctx_ context.Context
31339 header_ http.Header
31340 }
31341
31342
31343
31344
31345
31346
31347
31348
31349 func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall {
31350 c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31351 c.profileId = profileId
31352 c.dynamictargetingkey = dynamictargetingkey
31353 return c
31354 }
31355
31356
31357
31358
31359 func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall {
31360 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31361 return c
31362 }
31363
31364
31365
31366
31367 func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall {
31368 c.ctx_ = ctx
31369 return c
31370 }
31371
31372
31373
31374 func (c *DynamicTargetingKeysInsertCall) Header() http.Header {
31375 if c.header_ == nil {
31376 c.header_ = make(http.Header)
31377 }
31378 return c.header_
31379 }
31380
31381 func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) {
31382 reqHeaders := make(http.Header)
31383 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
31384 for k, v := range c.header_ {
31385 reqHeaders[k] = v
31386 }
31387 reqHeaders.Set("User-Agent", c.s.userAgent())
31388 var body io.Reader = nil
31389 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey)
31390 if err != nil {
31391 return nil, err
31392 }
31393 reqHeaders.Set("Content-Type", "application/json")
31394 c.urlParams_.Set("alt", alt)
31395 c.urlParams_.Set("prettyPrint", "false")
31396 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys")
31397 urls += "?" + c.urlParams_.Encode()
31398 req, err := http.NewRequest("POST", urls, body)
31399 if err != nil {
31400 return nil, err
31401 }
31402 req.Header = reqHeaders
31403 googleapi.Expand(req.URL, map[string]string{
31404 "profileId": strconv.FormatInt(c.profileId, 10),
31405 })
31406 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31407 }
31408
31409
31410
31411
31412
31413
31414
31415
31416 func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) {
31417 gensupport.SetOptions(c.urlParams_, opts...)
31418 res, err := c.doRequest("json")
31419 if res != nil && res.StatusCode == http.StatusNotModified {
31420 if res.Body != nil {
31421 res.Body.Close()
31422 }
31423 return nil, &googleapi.Error{
31424 Code: res.StatusCode,
31425 Header: res.Header,
31426 }
31427 }
31428 if err != nil {
31429 return nil, err
31430 }
31431 defer googleapi.CloseBody(res)
31432 if err := googleapi.CheckResponse(res); err != nil {
31433 return nil, err
31434 }
31435 ret := &DynamicTargetingKey{
31436 ServerResponse: googleapi.ServerResponse{
31437 Header: res.Header,
31438 HTTPStatusCode: res.StatusCode,
31439 },
31440 }
31441 target := &ret
31442 if err := gensupport.DecodeResponse(target, res); err != nil {
31443 return nil, err
31444 }
31445 return ret, nil
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475 }
31476
31477
31478
31479 type DynamicTargetingKeysListCall struct {
31480 s *Service
31481 profileId int64
31482 urlParams_ gensupport.URLParams
31483 ifNoneMatch_ string
31484 ctx_ context.Context
31485 header_ http.Header
31486 }
31487
31488
31489
31490
31491 func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall {
31492 c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31493 c.profileId = profileId
31494 return c
31495 }
31496
31497
31498
31499 func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall {
31500 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
31501 return c
31502 }
31503
31504
31505
31506 func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall {
31507 c.urlParams_.SetMulti("names", append([]string{}, names...))
31508 return c
31509 }
31510
31511
31512
31513 func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetingKeysListCall {
31514 c.urlParams_.Set("objectId", fmt.Sprint(objectId))
31515 return c
31516 }
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527 func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTargetingKeysListCall {
31528 c.urlParams_.Set("objectType", objectType)
31529 return c
31530 }
31531
31532
31533
31534
31535 func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall {
31536 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31537 return c
31538 }
31539
31540
31541
31542
31543
31544
31545 func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall {
31546 c.ifNoneMatch_ = entityTag
31547 return c
31548 }
31549
31550
31551
31552
31553 func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall {
31554 c.ctx_ = ctx
31555 return c
31556 }
31557
31558
31559
31560 func (c *DynamicTargetingKeysListCall) Header() http.Header {
31561 if c.header_ == nil {
31562 c.header_ = make(http.Header)
31563 }
31564 return c.header_
31565 }
31566
31567 func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) {
31568 reqHeaders := make(http.Header)
31569 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
31570 for k, v := range c.header_ {
31571 reqHeaders[k] = v
31572 }
31573 reqHeaders.Set("User-Agent", c.s.userAgent())
31574 if c.ifNoneMatch_ != "" {
31575 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31576 }
31577 var body io.Reader = nil
31578 c.urlParams_.Set("alt", alt)
31579 c.urlParams_.Set("prettyPrint", "false")
31580 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys")
31581 urls += "?" + c.urlParams_.Encode()
31582 req, err := http.NewRequest("GET", urls, body)
31583 if err != nil {
31584 return nil, err
31585 }
31586 req.Header = reqHeaders
31587 googleapi.Expand(req.URL, map[string]string{
31588 "profileId": strconv.FormatInt(c.profileId, 10),
31589 })
31590 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31591 }
31592
31593
31594
31595
31596
31597
31598
31599
31600 func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) {
31601 gensupport.SetOptions(c.urlParams_, opts...)
31602 res, err := c.doRequest("json")
31603 if res != nil && res.StatusCode == http.StatusNotModified {
31604 if res.Body != nil {
31605 res.Body.Close()
31606 }
31607 return nil, &googleapi.Error{
31608 Code: res.StatusCode,
31609 Header: res.Header,
31610 }
31611 }
31612 if err != nil {
31613 return nil, err
31614 }
31615 defer googleapi.CloseBody(res)
31616 if err := googleapi.CheckResponse(res); err != nil {
31617 return nil, err
31618 }
31619 ret := &DynamicTargetingKeysListResponse{
31620 ServerResponse: googleapi.ServerResponse{
31621 Header: res.Header,
31622 HTTPStatusCode: res.StatusCode,
31623 },
31624 }
31625 target := &ret
31626 if err := gensupport.DecodeResponse(target, res); err != nil {
31627 return nil, err
31628 }
31629 return ret, nil
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
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 type EventTagsDeleteCall struct {
31696 s *Service
31697 profileId int64
31698 id int64
31699 urlParams_ gensupport.URLParams
31700 ctx_ context.Context
31701 header_ http.Header
31702 }
31703
31704
31705
31706
31707
31708 func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall {
31709 c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31710 c.profileId = profileId
31711 c.id = id
31712 return c
31713 }
31714
31715
31716
31717
31718 func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall {
31719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31720 return c
31721 }
31722
31723
31724
31725
31726 func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall {
31727 c.ctx_ = ctx
31728 return c
31729 }
31730
31731
31732
31733 func (c *EventTagsDeleteCall) Header() http.Header {
31734 if c.header_ == nil {
31735 c.header_ = make(http.Header)
31736 }
31737 return c.header_
31738 }
31739
31740 func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
31741 reqHeaders := make(http.Header)
31742 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
31743 for k, v := range c.header_ {
31744 reqHeaders[k] = v
31745 }
31746 reqHeaders.Set("User-Agent", c.s.userAgent())
31747 var body io.Reader = nil
31748 c.urlParams_.Set("alt", alt)
31749 c.urlParams_.Set("prettyPrint", "false")
31750 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}")
31751 urls += "?" + c.urlParams_.Encode()
31752 req, err := http.NewRequest("DELETE", urls, body)
31753 if err != nil {
31754 return nil, err
31755 }
31756 req.Header = reqHeaders
31757 googleapi.Expand(req.URL, map[string]string{
31758 "profileId": strconv.FormatInt(c.profileId, 10),
31759 "id": strconv.FormatInt(c.id, 10),
31760 })
31761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31762 }
31763
31764
31765 func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error {
31766 gensupport.SetOptions(c.urlParams_, opts...)
31767 res, err := c.doRequest("json")
31768 if err != nil {
31769 return err
31770 }
31771 defer googleapi.CloseBody(res)
31772 if err := googleapi.CheckResponse(res); err != nil {
31773 return err
31774 }
31775 return nil
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
31802
31803
31804
31805
31806
31807 }
31808
31809
31810
31811 type EventTagsGetCall struct {
31812 s *Service
31813 profileId int64
31814 id int64
31815 urlParams_ gensupport.URLParams
31816 ifNoneMatch_ string
31817 ctx_ context.Context
31818 header_ http.Header
31819 }
31820
31821
31822
31823
31824
31825 func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall {
31826 c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31827 c.profileId = profileId
31828 c.id = id
31829 return c
31830 }
31831
31832
31833
31834
31835 func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall {
31836 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31837 return c
31838 }
31839
31840
31841
31842
31843
31844
31845 func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall {
31846 c.ifNoneMatch_ = entityTag
31847 return c
31848 }
31849
31850
31851
31852
31853 func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall {
31854 c.ctx_ = ctx
31855 return c
31856 }
31857
31858
31859
31860 func (c *EventTagsGetCall) Header() http.Header {
31861 if c.header_ == nil {
31862 c.header_ = make(http.Header)
31863 }
31864 return c.header_
31865 }
31866
31867 func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) {
31868 reqHeaders := make(http.Header)
31869 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
31870 for k, v := range c.header_ {
31871 reqHeaders[k] = v
31872 }
31873 reqHeaders.Set("User-Agent", c.s.userAgent())
31874 if c.ifNoneMatch_ != "" {
31875 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31876 }
31877 var body io.Reader = nil
31878 c.urlParams_.Set("alt", alt)
31879 c.urlParams_.Set("prettyPrint", "false")
31880 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags/{id}")
31881 urls += "?" + c.urlParams_.Encode()
31882 req, err := http.NewRequest("GET", 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 "id": strconv.FormatInt(c.id, 10),
31890 })
31891 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31892 }
31893
31894
31895
31896
31897
31898
31899
31900
31901 func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
31902 gensupport.SetOptions(c.urlParams_, opts...)
31903 res, err := c.doRequest("json")
31904 if res != nil && res.StatusCode == http.StatusNotModified {
31905 if res.Body != nil {
31906 res.Body.Close()
31907 }
31908 return nil, &googleapi.Error{
31909 Code: res.StatusCode,
31910 Header: res.Header,
31911 }
31912 }
31913 if err != nil {
31914 return nil, err
31915 }
31916 defer googleapi.CloseBody(res)
31917 if err := googleapi.CheckResponse(res); err != nil {
31918 return nil, err
31919 }
31920 ret := &EventTag{
31921 ServerResponse: googleapi.ServerResponse{
31922 Header: res.Header,
31923 HTTPStatusCode: res.StatusCode,
31924 },
31925 }
31926 target := &ret
31927 if err := gensupport.DecodeResponse(target, res); err != nil {
31928 return nil, err
31929 }
31930 return ret, nil
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 type EventTagsInsertCall struct {
31970 s *Service
31971 profileId int64
31972 eventtag *EventTag
31973 urlParams_ gensupport.URLParams
31974 ctx_ context.Context
31975 header_ http.Header
31976 }
31977
31978
31979
31980
31981 func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall {
31982 c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31983 c.profileId = profileId
31984 c.eventtag = eventtag
31985 return c
31986 }
31987
31988
31989
31990
31991 func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall {
31992 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31993 return c
31994 }
31995
31996
31997
31998
31999 func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall {
32000 c.ctx_ = ctx
32001 return c
32002 }
32003
32004
32005
32006 func (c *EventTagsInsertCall) Header() http.Header {
32007 if c.header_ == nil {
32008 c.header_ = make(http.Header)
32009 }
32010 return c.header_
32011 }
32012
32013 func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) {
32014 reqHeaders := make(http.Header)
32015 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
32016 for k, v := range c.header_ {
32017 reqHeaders[k] = v
32018 }
32019 reqHeaders.Set("User-Agent", c.s.userAgent())
32020 var body io.Reader = nil
32021 body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag)
32022 if err != nil {
32023 return nil, err
32024 }
32025 reqHeaders.Set("Content-Type", "application/json")
32026 c.urlParams_.Set("alt", alt)
32027 c.urlParams_.Set("prettyPrint", "false")
32028 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
32029 urls += "?" + c.urlParams_.Encode()
32030 req, err := http.NewRequest("POST", urls, body)
32031 if err != nil {
32032 return nil, err
32033 }
32034 req.Header = reqHeaders
32035 googleapi.Expand(req.URL, map[string]string{
32036 "profileId": strconv.FormatInt(c.profileId, 10),
32037 })
32038 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32039 }
32040
32041
32042
32043
32044
32045
32046
32047
32048 func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
32049 gensupport.SetOptions(c.urlParams_, opts...)
32050 res, err := c.doRequest("json")
32051 if res != nil && res.StatusCode == http.StatusNotModified {
32052 if res.Body != nil {
32053 res.Body.Close()
32054 }
32055 return nil, &googleapi.Error{
32056 Code: res.StatusCode,
32057 Header: res.Header,
32058 }
32059 }
32060 if err != nil {
32061 return nil, err
32062 }
32063 defer googleapi.CloseBody(res)
32064 if err := googleapi.CheckResponse(res); err != nil {
32065 return nil, err
32066 }
32067 ret := &EventTag{
32068 ServerResponse: googleapi.ServerResponse{
32069 Header: res.Header,
32070 HTTPStatusCode: res.StatusCode,
32071 },
32072 }
32073 target := &ret
32074 if err := gensupport.DecodeResponse(target, res); err != nil {
32075 return nil, err
32076 }
32077 return ret, nil
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
32110
32111 type EventTagsListCall struct {
32112 s *Service
32113 profileId int64
32114 urlParams_ gensupport.URLParams
32115 ifNoneMatch_ string
32116 ctx_ context.Context
32117 header_ http.Header
32118 }
32119
32120
32121
32122
32123 func (r *EventTagsService) List(profileId int64) *EventTagsListCall {
32124 c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32125 c.profileId = profileId
32126 return c
32127 }
32128
32129
32130
32131 func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall {
32132 c.urlParams_.Set("adId", fmt.Sprint(adId))
32133 return c
32134 }
32135
32136
32137
32138 func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall {
32139 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
32140 return c
32141 }
32142
32143
32144
32145 func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall {
32146 c.urlParams_.Set("campaignId", fmt.Sprint(campaignId))
32147 return c
32148 }
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158 func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall {
32159 c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly))
32160 return c
32161 }
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171 func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall {
32172 c.urlParams_.Set("enabled", fmt.Sprint(enabled))
32173 return c
32174 }
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187 func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsListCall {
32188 c.urlParams_.SetMulti("eventTagTypes", append([]string{}, eventTagTypes...))
32189 return c
32190 }
32191
32192
32193
32194 func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall {
32195 var ids_ []string
32196 for _, v := range ids {
32197 ids_ = append(ids_, fmt.Sprint(v))
32198 }
32199 c.urlParams_.SetMulti("ids", ids_)
32200 return c
32201 }
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211 func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall {
32212 c.urlParams_.Set("searchString", searchString)
32213 return c
32214 }
32215
32216
32217
32218
32219
32220
32221
32222
32223 func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall {
32224 c.urlParams_.Set("sortField", sortField)
32225 return c
32226 }
32227
32228
32229
32230
32231
32232
32233
32234
32235 func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall {
32236 c.urlParams_.Set("sortOrder", sortOrder)
32237 return c
32238 }
32239
32240
32241
32242
32243 func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall {
32244 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32245 return c
32246 }
32247
32248
32249
32250
32251
32252
32253 func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall {
32254 c.ifNoneMatch_ = entityTag
32255 return c
32256 }
32257
32258
32259
32260
32261 func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall {
32262 c.ctx_ = ctx
32263 return c
32264 }
32265
32266
32267
32268 func (c *EventTagsListCall) Header() http.Header {
32269 if c.header_ == nil {
32270 c.header_ = make(http.Header)
32271 }
32272 return c.header_
32273 }
32274
32275 func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) {
32276 reqHeaders := make(http.Header)
32277 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
32278 for k, v := range c.header_ {
32279 reqHeaders[k] = v
32280 }
32281 reqHeaders.Set("User-Agent", c.s.userAgent())
32282 if c.ifNoneMatch_ != "" {
32283 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32284 }
32285 var body io.Reader = nil
32286 c.urlParams_.Set("alt", alt)
32287 c.urlParams_.Set("prettyPrint", "false")
32288 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
32289 urls += "?" + c.urlParams_.Encode()
32290 req, err := http.NewRequest("GET", urls, body)
32291 if err != nil {
32292 return nil, err
32293 }
32294 req.Header = reqHeaders
32295 googleapi.Expand(req.URL, map[string]string{
32296 "profileId": strconv.FormatInt(c.profileId, 10),
32297 })
32298 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32299 }
32300
32301
32302
32303
32304
32305
32306
32307
32308 func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) {
32309 gensupport.SetOptions(c.urlParams_, opts...)
32310 res, err := c.doRequest("json")
32311 if res != nil && res.StatusCode == http.StatusNotModified {
32312 if res.Body != nil {
32313 res.Body.Close()
32314 }
32315 return nil, &googleapi.Error{
32316 Code: res.StatusCode,
32317 Header: res.Header,
32318 }
32319 }
32320 if err != nil {
32321 return nil, err
32322 }
32323 defer googleapi.CloseBody(res)
32324 if err := googleapi.CheckResponse(res); err != nil {
32325 return nil, err
32326 }
32327 ret := &EventTagsListResponse{
32328 ServerResponse: googleapi.ServerResponse{
32329 Header: res.Header,
32330 HTTPStatusCode: res.StatusCode,
32331 },
32332 }
32333 target := &ret
32334 if err := gensupport.DecodeResponse(target, res); err != nil {
32335 return nil, err
32336 }
32337 return ret, nil
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
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
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448 }
32449
32450
32451
32452 type EventTagsPatchCall struct {
32453 s *Service
32454 profileId int64
32455 eventtag *EventTag
32456 urlParams_ gensupport.URLParams
32457 ctx_ context.Context
32458 header_ http.Header
32459 }
32460
32461
32462
32463
32464
32465
32466 func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall {
32467 c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32468 c.profileId = profileId
32469 c.urlParams_.Set("id", fmt.Sprint(id))
32470 c.eventtag = eventtag
32471 return c
32472 }
32473
32474
32475
32476
32477 func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall {
32478 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32479 return c
32480 }
32481
32482
32483
32484
32485 func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall {
32486 c.ctx_ = ctx
32487 return c
32488 }
32489
32490
32491
32492 func (c *EventTagsPatchCall) Header() http.Header {
32493 if c.header_ == nil {
32494 c.header_ = make(http.Header)
32495 }
32496 return c.header_
32497 }
32498
32499 func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) {
32500 reqHeaders := make(http.Header)
32501 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
32502 for k, v := range c.header_ {
32503 reqHeaders[k] = v
32504 }
32505 reqHeaders.Set("User-Agent", c.s.userAgent())
32506 var body io.Reader = nil
32507 body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag)
32508 if err != nil {
32509 return nil, err
32510 }
32511 reqHeaders.Set("Content-Type", "application/json")
32512 c.urlParams_.Set("alt", alt)
32513 c.urlParams_.Set("prettyPrint", "false")
32514 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
32515 urls += "?" + c.urlParams_.Encode()
32516 req, err := http.NewRequest("PATCH", urls, body)
32517 if err != nil {
32518 return nil, err
32519 }
32520 req.Header = reqHeaders
32521 googleapi.Expand(req.URL, map[string]string{
32522 "profileId": strconv.FormatInt(c.profileId, 10),
32523 })
32524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32525 }
32526
32527
32528
32529
32530
32531
32532
32533
32534 func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
32535 gensupport.SetOptions(c.urlParams_, opts...)
32536 res, err := c.doRequest("json")
32537 if res != nil && res.StatusCode == http.StatusNotModified {
32538 if res.Body != nil {
32539 res.Body.Close()
32540 }
32541 return nil, &googleapi.Error{
32542 Code: res.StatusCode,
32543 Header: res.Header,
32544 }
32545 }
32546 if err != nil {
32547 return nil, err
32548 }
32549 defer googleapi.CloseBody(res)
32550 if err := googleapi.CheckResponse(res); err != nil {
32551 return nil, err
32552 }
32553 ret := &EventTag{
32554 ServerResponse: googleapi.ServerResponse{
32555 Header: res.Header,
32556 HTTPStatusCode: res.StatusCode,
32557 },
32558 }
32559 target := &ret
32560 if err := gensupport.DecodeResponse(target, res); err != nil {
32561 return nil, err
32562 }
32563 return ret, nil
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601 }
32602
32603
32604
32605 type EventTagsUpdateCall struct {
32606 s *Service
32607 profileId int64
32608 eventtag *EventTag
32609 urlParams_ gensupport.URLParams
32610 ctx_ context.Context
32611 header_ http.Header
32612 }
32613
32614
32615
32616
32617 func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall {
32618 c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32619 c.profileId = profileId
32620 c.eventtag = eventtag
32621 return c
32622 }
32623
32624
32625
32626
32627 func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall {
32628 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32629 return c
32630 }
32631
32632
32633
32634
32635 func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall {
32636 c.ctx_ = ctx
32637 return c
32638 }
32639
32640
32641
32642 func (c *EventTagsUpdateCall) Header() http.Header {
32643 if c.header_ == nil {
32644 c.header_ = make(http.Header)
32645 }
32646 return c.header_
32647 }
32648
32649 func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) {
32650 reqHeaders := make(http.Header)
32651 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
32652 for k, v := range c.header_ {
32653 reqHeaders[k] = v
32654 }
32655 reqHeaders.Set("User-Agent", c.s.userAgent())
32656 var body io.Reader = nil
32657 body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag)
32658 if err != nil {
32659 return nil, err
32660 }
32661 reqHeaders.Set("Content-Type", "application/json")
32662 c.urlParams_.Set("alt", alt)
32663 c.urlParams_.Set("prettyPrint", "false")
32664 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags")
32665 urls += "?" + c.urlParams_.Encode()
32666 req, err := http.NewRequest("PUT", urls, body)
32667 if err != nil {
32668 return nil, err
32669 }
32670 req.Header = reqHeaders
32671 googleapi.Expand(req.URL, map[string]string{
32672 "profileId": strconv.FormatInt(c.profileId, 10),
32673 })
32674 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32675 }
32676
32677
32678
32679
32680
32681
32682
32683
32684 func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) {
32685 gensupport.SetOptions(c.urlParams_, opts...)
32686 res, err := c.doRequest("json")
32687 if res != nil && res.StatusCode == http.StatusNotModified {
32688 if res.Body != nil {
32689 res.Body.Close()
32690 }
32691 return nil, &googleapi.Error{
32692 Code: res.StatusCode,
32693 Header: res.Header,
32694 }
32695 }
32696 if err != nil {
32697 return nil, err
32698 }
32699 defer googleapi.CloseBody(res)
32700 if err := googleapi.CheckResponse(res); err != nil {
32701 return nil, err
32702 }
32703 ret := &EventTag{
32704 ServerResponse: googleapi.ServerResponse{
32705 Header: res.Header,
32706 HTTPStatusCode: res.StatusCode,
32707 },
32708 }
32709 target := &ret
32710 if err := gensupport.DecodeResponse(target, res); err != nil {
32711 return nil, err
32712 }
32713 return ret, nil
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743 }
32744
32745
32746
32747 type FilesGetCall struct {
32748 s *Service
32749 reportId int64
32750 fileId int64
32751 urlParams_ gensupport.URLParams
32752 ifNoneMatch_ string
32753 ctx_ context.Context
32754 header_ http.Header
32755 }
32756
32757
32758
32759
32760
32761
32762 func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall {
32763 c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32764 c.reportId = reportId
32765 c.fileId = fileId
32766 return c
32767 }
32768
32769
32770
32771
32772 func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall {
32773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32774 return c
32775 }
32776
32777
32778
32779
32780
32781
32782 func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall {
32783 c.ifNoneMatch_ = entityTag
32784 return c
32785 }
32786
32787
32788
32789
32790 func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall {
32791 c.ctx_ = ctx
32792 return c
32793 }
32794
32795
32796
32797 func (c *FilesGetCall) Header() http.Header {
32798 if c.header_ == nil {
32799 c.header_ = make(http.Header)
32800 }
32801 return c.header_
32802 }
32803
32804 func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
32805 reqHeaders := make(http.Header)
32806 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
32807 for k, v := range c.header_ {
32808 reqHeaders[k] = v
32809 }
32810 reqHeaders.Set("User-Agent", c.s.userAgent())
32811 if c.ifNoneMatch_ != "" {
32812 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32813 }
32814 var body io.Reader = nil
32815 c.urlParams_.Set("alt", alt)
32816 c.urlParams_.Set("prettyPrint", "false")
32817 urls := googleapi.ResolveRelative(c.s.BasePath, "reports/{reportId}/files/{fileId}")
32818 urls += "?" + c.urlParams_.Encode()
32819 req, err := http.NewRequest("GET", urls, body)
32820 if err != nil {
32821 return nil, err
32822 }
32823 req.Header = reqHeaders
32824 googleapi.Expand(req.URL, map[string]string{
32825 "reportId": strconv.FormatInt(c.reportId, 10),
32826 "fileId": strconv.FormatInt(c.fileId, 10),
32827 })
32828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32829 }
32830
32831
32832
32833
32834 func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
32835 gensupport.SetOptions(c.urlParams_, opts...)
32836 res, err := c.doRequest("media")
32837 if err != nil {
32838 return nil, err
32839 }
32840 if err := googleapi.CheckResponse(res); err != nil {
32841 res.Body.Close()
32842 return nil, err
32843 }
32844 return res, nil
32845 }
32846
32847
32848
32849
32850
32851
32852
32853
32854 func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) {
32855 gensupport.SetOptions(c.urlParams_, opts...)
32856 res, err := c.doRequest("json")
32857 if res != nil && res.StatusCode == http.StatusNotModified {
32858 if res.Body != nil {
32859 res.Body.Close()
32860 }
32861 return nil, &googleapi.Error{
32862 Code: res.StatusCode,
32863 Header: res.Header,
32864 }
32865 }
32866 if err != nil {
32867 return nil, err
32868 }
32869 defer googleapi.CloseBody(res)
32870 if err := googleapi.CheckResponse(res); err != nil {
32871 return nil, err
32872 }
32873 ret := &File{
32874 ServerResponse: googleapi.ServerResponse{
32875 Header: res.Header,
32876 HTTPStatusCode: res.StatusCode,
32877 },
32878 }
32879 target := &ret
32880 if err := gensupport.DecodeResponse(target, res); err != nil {
32881 return nil, err
32882 }
32883 return ret, nil
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919 }
32920
32921
32922
32923 type FilesListCall struct {
32924 s *Service
32925 profileId int64
32926 urlParams_ gensupport.URLParams
32927 ifNoneMatch_ string
32928 ctx_ context.Context
32929 header_ http.Header
32930 }
32931
32932
32933
32934
32935 func (r *FilesService) List(profileId int64) *FilesListCall {
32936 c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32937 c.profileId = profileId
32938 return c
32939 }
32940
32941
32942
32943 func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall {
32944 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
32945 return c
32946 }
32947
32948
32949
32950 func (c *FilesListCall) PageToken(pageToken string) *FilesListCall {
32951 c.urlParams_.Set("pageToken", pageToken)
32952 return c
32953 }
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963 func (c *FilesListCall) Scope(scope string) *FilesListCall {
32964 c.urlParams_.Set("scope", scope)
32965 return c
32966 }
32967
32968
32969
32970
32971
32972
32973
32974
32975 func (c *FilesListCall) SortField(sortField string) *FilesListCall {
32976 c.urlParams_.Set("sortField", sortField)
32977 return c
32978 }
32979
32980
32981
32982
32983
32984
32985
32986
32987 func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall {
32988 c.urlParams_.Set("sortOrder", sortOrder)
32989 return c
32990 }
32991
32992
32993
32994
32995 func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall {
32996 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32997 return c
32998 }
32999
33000
33001
33002
33003
33004
33005 func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall {
33006 c.ifNoneMatch_ = entityTag
33007 return c
33008 }
33009
33010
33011
33012
33013 func (c *FilesListCall) Context(ctx context.Context) *FilesListCall {
33014 c.ctx_ = ctx
33015 return c
33016 }
33017
33018
33019
33020 func (c *FilesListCall) Header() http.Header {
33021 if c.header_ == nil {
33022 c.header_ = make(http.Header)
33023 }
33024 return c.header_
33025 }
33026
33027 func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
33028 reqHeaders := make(http.Header)
33029 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
33030 for k, v := range c.header_ {
33031 reqHeaders[k] = v
33032 }
33033 reqHeaders.Set("User-Agent", c.s.userAgent())
33034 if c.ifNoneMatch_ != "" {
33035 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33036 }
33037 var body io.Reader = nil
33038 c.urlParams_.Set("alt", alt)
33039 c.urlParams_.Set("prettyPrint", "false")
33040 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/files")
33041 urls += "?" + c.urlParams_.Encode()
33042 req, err := http.NewRequest("GET", urls, body)
33043 if err != nil {
33044 return nil, err
33045 }
33046 req.Header = reqHeaders
33047 googleapi.Expand(req.URL, map[string]string{
33048 "profileId": strconv.FormatInt(c.profileId, 10),
33049 })
33050 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33051 }
33052
33053
33054
33055
33056
33057
33058
33059
33060 func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) {
33061 gensupport.SetOptions(c.urlParams_, opts...)
33062 res, err := c.doRequest("json")
33063 if res != nil && res.StatusCode == http.StatusNotModified {
33064 if res.Body != nil {
33065 res.Body.Close()
33066 }
33067 return nil, &googleapi.Error{
33068 Code: res.StatusCode,
33069 Header: res.Header,
33070 }
33071 }
33072 if err != nil {
33073 return nil, err
33074 }
33075 defer googleapi.CloseBody(res)
33076 if err := googleapi.CheckResponse(res); err != nil {
33077 return nil, err
33078 }
33079 ret := &FileList{
33080 ServerResponse: googleapi.ServerResponse{
33081 Header: res.Header,
33082 HTTPStatusCode: res.StatusCode,
33083 },
33084 }
33085 target := &ret
33086 if err := gensupport.DecodeResponse(target, res); err != nil {
33087 return nil, err
33088 }
33089 return ret, nil
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
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 func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error {
33180 c.ctx_ = ctx
33181 defer c.PageToken(c.urlParams_.Get("pageToken"))
33182 for {
33183 x, err := c.Do()
33184 if err != nil {
33185 return err
33186 }
33187 if err := f(x); err != nil {
33188 return err
33189 }
33190 if x.NextPageToken == "" {
33191 return nil
33192 }
33193 c.PageToken(x.NextPageToken)
33194 }
33195 }
33196
33197
33198
33199 type FloodlightActivitiesDeleteCall struct {
33200 s *Service
33201 profileId int64
33202 id int64
33203 urlParams_ gensupport.URLParams
33204 ctx_ context.Context
33205 header_ http.Header
33206 }
33207
33208
33209
33210
33211
33212 func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall {
33213 c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33214 c.profileId = profileId
33215 c.id = id
33216 return c
33217 }
33218
33219
33220
33221
33222 func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall {
33223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33224 return c
33225 }
33226
33227
33228
33229
33230 func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall {
33231 c.ctx_ = ctx
33232 return c
33233 }
33234
33235
33236
33237 func (c *FloodlightActivitiesDeleteCall) Header() http.Header {
33238 if c.header_ == nil {
33239 c.header_ = make(http.Header)
33240 }
33241 return c.header_
33242 }
33243
33244 func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) {
33245 reqHeaders := make(http.Header)
33246 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
33247 for k, v := range c.header_ {
33248 reqHeaders[k] = v
33249 }
33250 reqHeaders.Set("User-Agent", c.s.userAgent())
33251 var body io.Reader = nil
33252 c.urlParams_.Set("alt", alt)
33253 c.urlParams_.Set("prettyPrint", "false")
33254 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}")
33255 urls += "?" + c.urlParams_.Encode()
33256 req, err := http.NewRequest("DELETE", urls, body)
33257 if err != nil {
33258 return nil, err
33259 }
33260 req.Header = reqHeaders
33261 googleapi.Expand(req.URL, map[string]string{
33262 "profileId": strconv.FormatInt(c.profileId, 10),
33263 "id": strconv.FormatInt(c.id, 10),
33264 })
33265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33266 }
33267
33268
33269 func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error {
33270 gensupport.SetOptions(c.urlParams_, opts...)
33271 res, err := c.doRequest("json")
33272 if err != nil {
33273 return err
33274 }
33275 defer googleapi.CloseBody(res)
33276 if err := googleapi.CheckResponse(res); err != nil {
33277 return err
33278 }
33279 return nil
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311 }
33312
33313
33314
33315 type FloodlightActivitiesGeneratetagCall struct {
33316 s *Service
33317 profileId int64
33318 urlParams_ gensupport.URLParams
33319 ctx_ context.Context
33320 header_ http.Header
33321 }
33322
33323
33324
33325
33326 func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall {
33327 c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33328 c.profileId = profileId
33329 return c
33330 }
33331
33332
33333
33334
33335 func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall {
33336 c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId))
33337 return c
33338 }
33339
33340
33341
33342
33343 func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall {
33344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33345 return c
33346 }
33347
33348
33349
33350
33351 func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall {
33352 c.ctx_ = ctx
33353 return c
33354 }
33355
33356
33357
33358 func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header {
33359 if c.header_ == nil {
33360 c.header_ = make(http.Header)
33361 }
33362 return c.header_
33363 }
33364
33365 func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) {
33366 reqHeaders := make(http.Header)
33367 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
33368 for k, v := range c.header_ {
33369 reqHeaders[k] = v
33370 }
33371 reqHeaders.Set("User-Agent", c.s.userAgent())
33372 var body io.Reader = nil
33373 c.urlParams_.Set("alt", alt)
33374 c.urlParams_.Set("prettyPrint", "false")
33375 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/generatetag")
33376 urls += "?" + c.urlParams_.Encode()
33377 req, err := http.NewRequest("POST", urls, body)
33378 if err != nil {
33379 return nil, err
33380 }
33381 req.Header = reqHeaders
33382 googleapi.Expand(req.URL, map[string]string{
33383 "profileId": strconv.FormatInt(c.profileId, 10),
33384 })
33385 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33386 }
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396 func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) {
33397 gensupport.SetOptions(c.urlParams_, opts...)
33398 res, err := c.doRequest("json")
33399 if res != nil && res.StatusCode == http.StatusNotModified {
33400 if res.Body != nil {
33401 res.Body.Close()
33402 }
33403 return nil, &googleapi.Error{
33404 Code: res.StatusCode,
33405 Header: res.Header,
33406 }
33407 }
33408 if err != nil {
33409 return nil, err
33410 }
33411 defer googleapi.CloseBody(res)
33412 if err := googleapi.CheckResponse(res); err != nil {
33413 return nil, err
33414 }
33415 ret := &FloodlightActivitiesGenerateTagResponse{
33416 ServerResponse: googleapi.ServerResponse{
33417 Header: res.Header,
33418 HTTPStatusCode: res.StatusCode,
33419 },
33420 }
33421 target := &ret
33422 if err := gensupport.DecodeResponse(target, res); err != nil {
33423 return nil, err
33424 }
33425 return ret, nil
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458 }
33459
33460
33461
33462 type FloodlightActivitiesGetCall struct {
33463 s *Service
33464 profileId int64
33465 id int64
33466 urlParams_ gensupport.URLParams
33467 ifNoneMatch_ string
33468 ctx_ context.Context
33469 header_ http.Header
33470 }
33471
33472
33473
33474
33475
33476 func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall {
33477 c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33478 c.profileId = profileId
33479 c.id = id
33480 return c
33481 }
33482
33483
33484
33485
33486 func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall {
33487 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33488 return c
33489 }
33490
33491
33492
33493
33494
33495
33496 func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall {
33497 c.ifNoneMatch_ = entityTag
33498 return c
33499 }
33500
33501
33502
33503
33504 func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall {
33505 c.ctx_ = ctx
33506 return c
33507 }
33508
33509
33510
33511 func (c *FloodlightActivitiesGetCall) Header() http.Header {
33512 if c.header_ == nil {
33513 c.header_ = make(http.Header)
33514 }
33515 return c.header_
33516 }
33517
33518 func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) {
33519 reqHeaders := make(http.Header)
33520 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
33521 for k, v := range c.header_ {
33522 reqHeaders[k] = v
33523 }
33524 reqHeaders.Set("User-Agent", c.s.userAgent())
33525 if c.ifNoneMatch_ != "" {
33526 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33527 }
33528 var body io.Reader = nil
33529 c.urlParams_.Set("alt", alt)
33530 c.urlParams_.Set("prettyPrint", "false")
33531 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities/{id}")
33532 urls += "?" + c.urlParams_.Encode()
33533 req, err := http.NewRequest("GET", urls, body)
33534 if err != nil {
33535 return nil, err
33536 }
33537 req.Header = reqHeaders
33538 googleapi.Expand(req.URL, map[string]string{
33539 "profileId": strconv.FormatInt(c.profileId, 10),
33540 "id": strconv.FormatInt(c.id, 10),
33541 })
33542 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33543 }
33544
33545
33546
33547
33548
33549
33550
33551
33552 func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
33553 gensupport.SetOptions(c.urlParams_, opts...)
33554 res, err := c.doRequest("json")
33555 if res != nil && res.StatusCode == http.StatusNotModified {
33556 if res.Body != nil {
33557 res.Body.Close()
33558 }
33559 return nil, &googleapi.Error{
33560 Code: res.StatusCode,
33561 Header: res.Header,
33562 }
33563 }
33564 if err != nil {
33565 return nil, err
33566 }
33567 defer googleapi.CloseBody(res)
33568 if err := googleapi.CheckResponse(res); err != nil {
33569 return nil, err
33570 }
33571 ret := &FloodlightActivity{
33572 ServerResponse: googleapi.ServerResponse{
33573 Header: res.Header,
33574 HTTPStatusCode: res.StatusCode,
33575 },
33576 }
33577 target := &ret
33578 if err := gensupport.DecodeResponse(target, res); err != nil {
33579 return nil, err
33580 }
33581 return ret, nil
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616 }
33617
33618
33619
33620 type FloodlightActivitiesInsertCall struct {
33621 s *Service
33622 profileId int64
33623 floodlightactivity *FloodlightActivity
33624 urlParams_ gensupport.URLParams
33625 ctx_ context.Context
33626 header_ http.Header
33627 }
33628
33629
33630
33631
33632 func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall {
33633 c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33634 c.profileId = profileId
33635 c.floodlightactivity = floodlightactivity
33636 return c
33637 }
33638
33639
33640
33641
33642 func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall {
33643 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33644 return c
33645 }
33646
33647
33648
33649
33650 func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall {
33651 c.ctx_ = ctx
33652 return c
33653 }
33654
33655
33656
33657 func (c *FloodlightActivitiesInsertCall) Header() http.Header {
33658 if c.header_ == nil {
33659 c.header_ = make(http.Header)
33660 }
33661 return c.header_
33662 }
33663
33664 func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) {
33665 reqHeaders := make(http.Header)
33666 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
33667 for k, v := range c.header_ {
33668 reqHeaders[k] = v
33669 }
33670 reqHeaders.Set("User-Agent", c.s.userAgent())
33671 var body io.Reader = nil
33672 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity)
33673 if err != nil {
33674 return nil, err
33675 }
33676 reqHeaders.Set("Content-Type", "application/json")
33677 c.urlParams_.Set("alt", alt)
33678 c.urlParams_.Set("prettyPrint", "false")
33679 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
33680 urls += "?" + c.urlParams_.Encode()
33681 req, err := http.NewRequest("POST", urls, body)
33682 if err != nil {
33683 return nil, err
33684 }
33685 req.Header = reqHeaders
33686 googleapi.Expand(req.URL, map[string]string{
33687 "profileId": strconv.FormatInt(c.profileId, 10),
33688 })
33689 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33690 }
33691
33692
33693
33694
33695
33696
33697
33698
33699 func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
33700 gensupport.SetOptions(c.urlParams_, opts...)
33701 res, err := c.doRequest("json")
33702 if res != nil && res.StatusCode == http.StatusNotModified {
33703 if res.Body != nil {
33704 res.Body.Close()
33705 }
33706 return nil, &googleapi.Error{
33707 Code: res.StatusCode,
33708 Header: res.Header,
33709 }
33710 }
33711 if err != nil {
33712 return nil, err
33713 }
33714 defer googleapi.CloseBody(res)
33715 if err := googleapi.CheckResponse(res); err != nil {
33716 return nil, err
33717 }
33718 ret := &FloodlightActivity{
33719 ServerResponse: googleapi.ServerResponse{
33720 Header: res.Header,
33721 HTTPStatusCode: res.StatusCode,
33722 },
33723 }
33724 target := &ret
33725 if err := gensupport.DecodeResponse(target, res); err != nil {
33726 return nil, err
33727 }
33728 return ret, nil
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758 }
33759
33760
33761
33762 type FloodlightActivitiesListCall struct {
33763 s *Service
33764 profileId int64
33765 urlParams_ gensupport.URLParams
33766 ifNoneMatch_ string
33767 ctx_ context.Context
33768 header_ http.Header
33769 }
33770
33771
33772
33773
33774
33775 func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall {
33776 c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33777 c.profileId = profileId
33778 return c
33779 }
33780
33781
33782
33783
33784
33785 func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall {
33786 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
33787 return c
33788 }
33789
33790
33791
33792
33793 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall {
33794 var floodlightActivityGroupIds_ []string
33795 for _, v := range floodlightActivityGroupIds {
33796 floodlightActivityGroupIds_ = append(floodlightActivityGroupIds_, fmt.Sprint(v))
33797 }
33798 c.urlParams_.SetMulti("floodlightActivityGroupIds", floodlightActivityGroupIds_)
33799 return c
33800 }
33801
33802
33803
33804
33805 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall {
33806 c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName)
33807 return c
33808 }
33809
33810
33811
33812
33813 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall {
33814 c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString)
33815 return c
33816 }
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826 func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightActivityGroupType string) *FloodlightActivitiesListCall {
33827 c.urlParams_.Set("floodlightActivityGroupType", floodlightActivityGroupType)
33828 return c
33829 }
33830
33831
33832
33833
33834
33835 func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall {
33836 c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId))
33837 return c
33838 }
33839
33840
33841
33842
33843 func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall {
33844 var ids_ []string
33845 for _, v := range ids {
33846 ids_ = append(ids_, fmt.Sprint(v))
33847 }
33848 c.urlParams_.SetMulti("ids", ids_)
33849 return c
33850 }
33851
33852
33853
33854 func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall {
33855 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
33856 return c
33857 }
33858
33859
33860
33861 func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightActivitiesListCall {
33862 c.urlParams_.Set("pageToken", pageToken)
33863 return c
33864 }
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875 func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall {
33876 c.urlParams_.Set("searchString", searchString)
33877 return c
33878 }
33879
33880
33881
33882
33883
33884
33885
33886
33887 func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightActivitiesListCall {
33888 c.urlParams_.Set("sortField", sortField)
33889 return c
33890 }
33891
33892
33893
33894
33895
33896
33897
33898
33899 func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightActivitiesListCall {
33900 c.urlParams_.Set("sortOrder", sortOrder)
33901 return c
33902 }
33903
33904
33905
33906 func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall {
33907 c.urlParams_.Set("tagString", tagString)
33908 return c
33909 }
33910
33911
33912
33913
33914 func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall {
33915 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33916 return c
33917 }
33918
33919
33920
33921
33922
33923
33924 func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall {
33925 c.ifNoneMatch_ = entityTag
33926 return c
33927 }
33928
33929
33930
33931
33932 func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall {
33933 c.ctx_ = ctx
33934 return c
33935 }
33936
33937
33938
33939 func (c *FloodlightActivitiesListCall) Header() http.Header {
33940 if c.header_ == nil {
33941 c.header_ = make(http.Header)
33942 }
33943 return c.header_
33944 }
33945
33946 func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) {
33947 reqHeaders := make(http.Header)
33948 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
33949 for k, v := range c.header_ {
33950 reqHeaders[k] = v
33951 }
33952 reqHeaders.Set("User-Agent", c.s.userAgent())
33953 if c.ifNoneMatch_ != "" {
33954 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33955 }
33956 var body io.Reader = nil
33957 c.urlParams_.Set("alt", alt)
33958 c.urlParams_.Set("prettyPrint", "false")
33959 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
33960 urls += "?" + c.urlParams_.Encode()
33961 req, err := http.NewRequest("GET", urls, body)
33962 if err != nil {
33963 return nil, err
33964 }
33965 req.Header = reqHeaders
33966 googleapi.Expand(req.URL, map[string]string{
33967 "profileId": strconv.FormatInt(c.profileId, 10),
33968 })
33969 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33970 }
33971
33972
33973
33974
33975
33976
33977
33978
33979 func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, 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 := &FloodlightActivitiesListResponse{
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
34129
34130
34131
34132
34133
34134
34135
34136 }
34137
34138
34139
34140
34141 func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error {
34142 c.ctx_ = ctx
34143 defer c.PageToken(c.urlParams_.Get("pageToken"))
34144 for {
34145 x, err := c.Do()
34146 if err != nil {
34147 return err
34148 }
34149 if err := f(x); err != nil {
34150 return err
34151 }
34152 if x.NextPageToken == "" {
34153 return nil
34154 }
34155 c.PageToken(x.NextPageToken)
34156 }
34157 }
34158
34159
34160
34161 type FloodlightActivitiesPatchCall struct {
34162 s *Service
34163 profileId int64
34164 floodlightactivity *FloodlightActivity
34165 urlParams_ gensupport.URLParams
34166 ctx_ context.Context
34167 header_ http.Header
34168 }
34169
34170
34171
34172
34173
34174
34175 func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall {
34176 c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34177 c.profileId = profileId
34178 c.urlParams_.Set("id", fmt.Sprint(id))
34179 c.floodlightactivity = floodlightactivity
34180 return c
34181 }
34182
34183
34184
34185
34186 func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall {
34187 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34188 return c
34189 }
34190
34191
34192
34193
34194 func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall {
34195 c.ctx_ = ctx
34196 return c
34197 }
34198
34199
34200
34201 func (c *FloodlightActivitiesPatchCall) Header() http.Header {
34202 if c.header_ == nil {
34203 c.header_ = make(http.Header)
34204 }
34205 return c.header_
34206 }
34207
34208 func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) {
34209 reqHeaders := make(http.Header)
34210 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
34211 for k, v := range c.header_ {
34212 reqHeaders[k] = v
34213 }
34214 reqHeaders.Set("User-Agent", c.s.userAgent())
34215 var body io.Reader = nil
34216 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity)
34217 if err != nil {
34218 return nil, err
34219 }
34220 reqHeaders.Set("Content-Type", "application/json")
34221 c.urlParams_.Set("alt", alt)
34222 c.urlParams_.Set("prettyPrint", "false")
34223 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
34224 urls += "?" + c.urlParams_.Encode()
34225 req, err := http.NewRequest("PATCH", urls, body)
34226 if err != nil {
34227 return nil, err
34228 }
34229 req.Header = reqHeaders
34230 googleapi.Expand(req.URL, map[string]string{
34231 "profileId": strconv.FormatInt(c.profileId, 10),
34232 })
34233 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34234 }
34235
34236
34237
34238
34239
34240
34241
34242
34243 func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
34244 gensupport.SetOptions(c.urlParams_, opts...)
34245 res, err := c.doRequest("json")
34246 if res != nil && res.StatusCode == http.StatusNotModified {
34247 if res.Body != nil {
34248 res.Body.Close()
34249 }
34250 return nil, &googleapi.Error{
34251 Code: res.StatusCode,
34252 Header: res.Header,
34253 }
34254 }
34255 if err != nil {
34256 return nil, err
34257 }
34258 defer googleapi.CloseBody(res)
34259 if err := googleapi.CheckResponse(res); err != nil {
34260 return nil, err
34261 }
34262 ret := &FloodlightActivity{
34263 ServerResponse: googleapi.ServerResponse{
34264 Header: res.Header,
34265 HTTPStatusCode: res.StatusCode,
34266 },
34267 }
34268 target := &ret
34269 if err := gensupport.DecodeResponse(target, res); err != nil {
34270 return nil, err
34271 }
34272 return ret, nil
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310 }
34311
34312
34313
34314 type FloodlightActivitiesUpdateCall struct {
34315 s *Service
34316 profileId int64
34317 floodlightactivity *FloodlightActivity
34318 urlParams_ gensupport.URLParams
34319 ctx_ context.Context
34320 header_ http.Header
34321 }
34322
34323
34324
34325
34326 func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall {
34327 c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34328 c.profileId = profileId
34329 c.floodlightactivity = floodlightactivity
34330 return c
34331 }
34332
34333
34334
34335
34336 func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall {
34337 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34338 return c
34339 }
34340
34341
34342
34343
34344 func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall {
34345 c.ctx_ = ctx
34346 return c
34347 }
34348
34349
34350
34351 func (c *FloodlightActivitiesUpdateCall) Header() http.Header {
34352 if c.header_ == nil {
34353 c.header_ = make(http.Header)
34354 }
34355 return c.header_
34356 }
34357
34358 func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) {
34359 reqHeaders := make(http.Header)
34360 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
34361 for k, v := range c.header_ {
34362 reqHeaders[k] = v
34363 }
34364 reqHeaders.Set("User-Agent", c.s.userAgent())
34365 var body io.Reader = nil
34366 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity)
34367 if err != nil {
34368 return nil, err
34369 }
34370 reqHeaders.Set("Content-Type", "application/json")
34371 c.urlParams_.Set("alt", alt)
34372 c.urlParams_.Set("prettyPrint", "false")
34373 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities")
34374 urls += "?" + c.urlParams_.Encode()
34375 req, err := http.NewRequest("PUT", urls, body)
34376 if err != nil {
34377 return nil, err
34378 }
34379 req.Header = reqHeaders
34380 googleapi.Expand(req.URL, map[string]string{
34381 "profileId": strconv.FormatInt(c.profileId, 10),
34382 })
34383 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34384 }
34385
34386
34387
34388
34389
34390
34391
34392
34393 func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) {
34394 gensupport.SetOptions(c.urlParams_, opts...)
34395 res, err := c.doRequest("json")
34396 if res != nil && res.StatusCode == http.StatusNotModified {
34397 if res.Body != nil {
34398 res.Body.Close()
34399 }
34400 return nil, &googleapi.Error{
34401 Code: res.StatusCode,
34402 Header: res.Header,
34403 }
34404 }
34405 if err != nil {
34406 return nil, err
34407 }
34408 defer googleapi.CloseBody(res)
34409 if err := googleapi.CheckResponse(res); err != nil {
34410 return nil, err
34411 }
34412 ret := &FloodlightActivity{
34413 ServerResponse: googleapi.ServerResponse{
34414 Header: res.Header,
34415 HTTPStatusCode: res.StatusCode,
34416 },
34417 }
34418 target := &ret
34419 if err := gensupport.DecodeResponse(target, res); err != nil {
34420 return nil, err
34421 }
34422 return ret, nil
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452 }
34453
34454
34455
34456 type FloodlightActivityGroupsGetCall struct {
34457 s *Service
34458 profileId int64
34459 id int64
34460 urlParams_ gensupport.URLParams
34461 ifNoneMatch_ string
34462 ctx_ context.Context
34463 header_ http.Header
34464 }
34465
34466
34467
34468
34469
34470 func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall {
34471 c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34472 c.profileId = profileId
34473 c.id = id
34474 return c
34475 }
34476
34477
34478
34479
34480 func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall {
34481 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34482 return c
34483 }
34484
34485
34486
34487
34488
34489
34490 func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall {
34491 c.ifNoneMatch_ = entityTag
34492 return c
34493 }
34494
34495
34496
34497
34498 func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall {
34499 c.ctx_ = ctx
34500 return c
34501 }
34502
34503
34504
34505 func (c *FloodlightActivityGroupsGetCall) Header() http.Header {
34506 if c.header_ == nil {
34507 c.header_ = make(http.Header)
34508 }
34509 return c.header_
34510 }
34511
34512 func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) {
34513 reqHeaders := make(http.Header)
34514 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
34515 for k, v := range c.header_ {
34516 reqHeaders[k] = v
34517 }
34518 reqHeaders.Set("User-Agent", c.s.userAgent())
34519 if c.ifNoneMatch_ != "" {
34520 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34521 }
34522 var body io.Reader = nil
34523 c.urlParams_.Set("alt", alt)
34524 c.urlParams_.Set("prettyPrint", "false")
34525 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups/{id}")
34526 urls += "?" + c.urlParams_.Encode()
34527 req, err := http.NewRequest("GET", urls, body)
34528 if err != nil {
34529 return nil, err
34530 }
34531 req.Header = reqHeaders
34532 googleapi.Expand(req.URL, map[string]string{
34533 "profileId": strconv.FormatInt(c.profileId, 10),
34534 "id": strconv.FormatInt(c.id, 10),
34535 })
34536 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34537 }
34538
34539
34540
34541
34542
34543
34544
34545
34546 func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
34547 gensupport.SetOptions(c.urlParams_, opts...)
34548 res, err := c.doRequest("json")
34549 if res != nil && res.StatusCode == http.StatusNotModified {
34550 if res.Body != nil {
34551 res.Body.Close()
34552 }
34553 return nil, &googleapi.Error{
34554 Code: res.StatusCode,
34555 Header: res.Header,
34556 }
34557 }
34558 if err != nil {
34559 return nil, err
34560 }
34561 defer googleapi.CloseBody(res)
34562 if err := googleapi.CheckResponse(res); err != nil {
34563 return nil, err
34564 }
34565 ret := &FloodlightActivityGroup{
34566 ServerResponse: googleapi.ServerResponse{
34567 Header: res.Header,
34568 HTTPStatusCode: res.StatusCode,
34569 },
34570 }
34571 target := &ret
34572 if err := gensupport.DecodeResponse(target, res); err != nil {
34573 return nil, err
34574 }
34575 return ret, nil
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610 }
34611
34612
34613
34614 type FloodlightActivityGroupsInsertCall struct {
34615 s *Service
34616 profileId int64
34617 floodlightactivitygroup *FloodlightActivityGroup
34618 urlParams_ gensupport.URLParams
34619 ctx_ context.Context
34620 header_ http.Header
34621 }
34622
34623
34624
34625
34626 func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall {
34627 c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34628 c.profileId = profileId
34629 c.floodlightactivitygroup = floodlightactivitygroup
34630 return c
34631 }
34632
34633
34634
34635
34636 func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall {
34637 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34638 return c
34639 }
34640
34641
34642
34643
34644 func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall {
34645 c.ctx_ = ctx
34646 return c
34647 }
34648
34649
34650
34651 func (c *FloodlightActivityGroupsInsertCall) Header() http.Header {
34652 if c.header_ == nil {
34653 c.header_ = make(http.Header)
34654 }
34655 return c.header_
34656 }
34657
34658 func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
34659 reqHeaders := make(http.Header)
34660 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
34661 for k, v := range c.header_ {
34662 reqHeaders[k] = v
34663 }
34664 reqHeaders.Set("User-Agent", c.s.userAgent())
34665 var body io.Reader = nil
34666 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup)
34667 if err != nil {
34668 return nil, err
34669 }
34670 reqHeaders.Set("Content-Type", "application/json")
34671 c.urlParams_.Set("alt", alt)
34672 c.urlParams_.Set("prettyPrint", "false")
34673 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
34674 urls += "?" + c.urlParams_.Encode()
34675 req, err := http.NewRequest("POST", urls, body)
34676 if err != nil {
34677 return nil, err
34678 }
34679 req.Header = reqHeaders
34680 googleapi.Expand(req.URL, map[string]string{
34681 "profileId": strconv.FormatInt(c.profileId, 10),
34682 })
34683 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34684 }
34685
34686
34687
34688
34689
34690
34691
34692
34693 func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
34694 gensupport.SetOptions(c.urlParams_, opts...)
34695 res, err := c.doRequest("json")
34696 if res != nil && res.StatusCode == http.StatusNotModified {
34697 if res.Body != nil {
34698 res.Body.Close()
34699 }
34700 return nil, &googleapi.Error{
34701 Code: res.StatusCode,
34702 Header: res.Header,
34703 }
34704 }
34705 if err != nil {
34706 return nil, err
34707 }
34708 defer googleapi.CloseBody(res)
34709 if err := googleapi.CheckResponse(res); err != nil {
34710 return nil, err
34711 }
34712 ret := &FloodlightActivityGroup{
34713 ServerResponse: googleapi.ServerResponse{
34714 Header: res.Header,
34715 HTTPStatusCode: res.StatusCode,
34716 },
34717 }
34718 target := &ret
34719 if err := gensupport.DecodeResponse(target, res); err != nil {
34720 return nil, err
34721 }
34722 return ret, nil
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752 }
34753
34754
34755
34756 type FloodlightActivityGroupsListCall struct {
34757 s *Service
34758 profileId int64
34759 urlParams_ gensupport.URLParams
34760 ifNoneMatch_ string
34761 ctx_ context.Context
34762 header_ http.Header
34763 }
34764
34765
34766
34767
34768
34769 func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall {
34770 c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34771 c.profileId = profileId
34772 return c
34773 }
34774
34775
34776
34777
34778
34779 func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall {
34780 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
34781 return c
34782 }
34783
34784
34785
34786
34787
34788 func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall {
34789 c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId))
34790 return c
34791 }
34792
34793
34794
34795
34796 func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall {
34797 var ids_ []string
34798 for _, v := range ids {
34799 ids_ = append(ids_, fmt.Sprint(v))
34800 }
34801 c.urlParams_.SetMulti("ids", ids_)
34802 return c
34803 }
34804
34805
34806
34807 func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall {
34808 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
34809 return c
34810 }
34811
34812
34813
34814 func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *FloodlightActivityGroupsListCall {
34815 c.urlParams_.Set("pageToken", pageToken)
34816 return c
34817 }
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829 func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall {
34830 c.urlParams_.Set("searchString", searchString)
34831 return c
34832 }
34833
34834
34835
34836
34837
34838
34839
34840
34841 func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *FloodlightActivityGroupsListCall {
34842 c.urlParams_.Set("sortField", sortField)
34843 return c
34844 }
34845
34846
34847
34848
34849
34850
34851
34852
34853 func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *FloodlightActivityGroupsListCall {
34854 c.urlParams_.Set("sortOrder", sortOrder)
34855 return c
34856 }
34857
34858
34859
34860
34861
34862
34863
34864
34865 func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivityGroupsListCall {
34866 c.urlParams_.Set("type", type_)
34867 return c
34868 }
34869
34870
34871
34872
34873 func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall {
34874 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34875 return c
34876 }
34877
34878
34879
34880
34881
34882
34883 func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall {
34884 c.ifNoneMatch_ = entityTag
34885 return c
34886 }
34887
34888
34889
34890
34891 func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall {
34892 c.ctx_ = ctx
34893 return c
34894 }
34895
34896
34897
34898 func (c *FloodlightActivityGroupsListCall) Header() http.Header {
34899 if c.header_ == nil {
34900 c.header_ = make(http.Header)
34901 }
34902 return c.header_
34903 }
34904
34905 func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) {
34906 reqHeaders := make(http.Header)
34907 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
34908 for k, v := range c.header_ {
34909 reqHeaders[k] = v
34910 }
34911 reqHeaders.Set("User-Agent", c.s.userAgent())
34912 if c.ifNoneMatch_ != "" {
34913 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34914 }
34915 var body io.Reader = nil
34916 c.urlParams_.Set("alt", alt)
34917 c.urlParams_.Set("prettyPrint", "false")
34918 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
34919 urls += "?" + c.urlParams_.Encode()
34920 req, err := http.NewRequest("GET", urls, body)
34921 if err != nil {
34922 return nil, err
34923 }
34924 req.Header = reqHeaders
34925 googleapi.Expand(req.URL, map[string]string{
34926 "profileId": strconv.FormatInt(c.profileId, 10),
34927 })
34928 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34929 }
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939 func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) {
34940 gensupport.SetOptions(c.urlParams_, opts...)
34941 res, err := c.doRequest("json")
34942 if res != nil && res.StatusCode == http.StatusNotModified {
34943 if res.Body != nil {
34944 res.Body.Close()
34945 }
34946 return nil, &googleapi.Error{
34947 Code: res.StatusCode,
34948 Header: res.Header,
34949 }
34950 }
34951 if err != nil {
34952 return nil, err
34953 }
34954 defer googleapi.CloseBody(res)
34955 if err := googleapi.CheckResponse(res); err != nil {
34956 return nil, err
34957 }
34958 ret := &FloodlightActivityGroupsListResponse{
34959 ServerResponse: googleapi.ServerResponse{
34960 Header: res.Header,
34961 HTTPStatusCode: res.StatusCode,
34962 },
34963 }
34964 target := &ret
34965 if err := gensupport.DecodeResponse(target, res); err != nil {
34966 return nil, err
34967 }
34968 return ret, nil
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
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
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074 }
35075
35076
35077
35078
35079 func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error {
35080 c.ctx_ = ctx
35081 defer c.PageToken(c.urlParams_.Get("pageToken"))
35082 for {
35083 x, err := c.Do()
35084 if err != nil {
35085 return err
35086 }
35087 if err := f(x); err != nil {
35088 return err
35089 }
35090 if x.NextPageToken == "" {
35091 return nil
35092 }
35093 c.PageToken(x.NextPageToken)
35094 }
35095 }
35096
35097
35098
35099 type FloodlightActivityGroupsPatchCall struct {
35100 s *Service
35101 profileId int64
35102 floodlightactivitygroup *FloodlightActivityGroup
35103 urlParams_ gensupport.URLParams
35104 ctx_ context.Context
35105 header_ http.Header
35106 }
35107
35108
35109
35110
35111
35112
35113 func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall {
35114 c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35115 c.profileId = profileId
35116 c.urlParams_.Set("id", fmt.Sprint(id))
35117 c.floodlightactivitygroup = floodlightactivitygroup
35118 return c
35119 }
35120
35121
35122
35123
35124 func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall {
35125 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35126 return c
35127 }
35128
35129
35130
35131
35132 func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall {
35133 c.ctx_ = ctx
35134 return c
35135 }
35136
35137
35138
35139 func (c *FloodlightActivityGroupsPatchCall) Header() http.Header {
35140 if c.header_ == nil {
35141 c.header_ = make(http.Header)
35142 }
35143 return c.header_
35144 }
35145
35146 func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
35147 reqHeaders := make(http.Header)
35148 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
35149 for k, v := range c.header_ {
35150 reqHeaders[k] = v
35151 }
35152 reqHeaders.Set("User-Agent", c.s.userAgent())
35153 var body io.Reader = nil
35154 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup)
35155 if err != nil {
35156 return nil, err
35157 }
35158 reqHeaders.Set("Content-Type", "application/json")
35159 c.urlParams_.Set("alt", alt)
35160 c.urlParams_.Set("prettyPrint", "false")
35161 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
35162 urls += "?" + c.urlParams_.Encode()
35163 req, err := http.NewRequest("PATCH", urls, body)
35164 if err != nil {
35165 return nil, err
35166 }
35167 req.Header = reqHeaders
35168 googleapi.Expand(req.URL, map[string]string{
35169 "profileId": strconv.FormatInt(c.profileId, 10),
35170 })
35171 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35172 }
35173
35174
35175
35176
35177
35178
35179
35180
35181 func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
35182 gensupport.SetOptions(c.urlParams_, opts...)
35183 res, err := c.doRequest("json")
35184 if res != nil && res.StatusCode == http.StatusNotModified {
35185 if res.Body != nil {
35186 res.Body.Close()
35187 }
35188 return nil, &googleapi.Error{
35189 Code: res.StatusCode,
35190 Header: res.Header,
35191 }
35192 }
35193 if err != nil {
35194 return nil, err
35195 }
35196 defer googleapi.CloseBody(res)
35197 if err := googleapi.CheckResponse(res); err != nil {
35198 return nil, err
35199 }
35200 ret := &FloodlightActivityGroup{
35201 ServerResponse: googleapi.ServerResponse{
35202 Header: res.Header,
35203 HTTPStatusCode: res.StatusCode,
35204 },
35205 }
35206 target := &ret
35207 if err := gensupport.DecodeResponse(target, res); err != nil {
35208 return nil, err
35209 }
35210 return ret, nil
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248 }
35249
35250
35251
35252 type FloodlightActivityGroupsUpdateCall struct {
35253 s *Service
35254 profileId int64
35255 floodlightactivitygroup *FloodlightActivityGroup
35256 urlParams_ gensupport.URLParams
35257 ctx_ context.Context
35258 header_ http.Header
35259 }
35260
35261
35262
35263
35264 func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall {
35265 c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35266 c.profileId = profileId
35267 c.floodlightactivitygroup = floodlightactivitygroup
35268 return c
35269 }
35270
35271
35272
35273
35274 func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall {
35275 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35276 return c
35277 }
35278
35279
35280
35281
35282 func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall {
35283 c.ctx_ = ctx
35284 return c
35285 }
35286
35287
35288
35289 func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header {
35290 if c.header_ == nil {
35291 c.header_ = make(http.Header)
35292 }
35293 return c.header_
35294 }
35295
35296 func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
35297 reqHeaders := make(http.Header)
35298 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
35299 for k, v := range c.header_ {
35300 reqHeaders[k] = v
35301 }
35302 reqHeaders.Set("User-Agent", c.s.userAgent())
35303 var body io.Reader = nil
35304 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup)
35305 if err != nil {
35306 return nil, err
35307 }
35308 reqHeaders.Set("Content-Type", "application/json")
35309 c.urlParams_.Set("alt", alt)
35310 c.urlParams_.Set("prettyPrint", "false")
35311 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups")
35312 urls += "?" + c.urlParams_.Encode()
35313 req, err := http.NewRequest("PUT", urls, body)
35314 if err != nil {
35315 return nil, err
35316 }
35317 req.Header = reqHeaders
35318 googleapi.Expand(req.URL, map[string]string{
35319 "profileId": strconv.FormatInt(c.profileId, 10),
35320 })
35321 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35322 }
35323
35324
35325
35326
35327
35328
35329
35330
35331 func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) {
35332 gensupport.SetOptions(c.urlParams_, opts...)
35333 res, err := c.doRequest("json")
35334 if res != nil && res.StatusCode == http.StatusNotModified {
35335 if res.Body != nil {
35336 res.Body.Close()
35337 }
35338 return nil, &googleapi.Error{
35339 Code: res.StatusCode,
35340 Header: res.Header,
35341 }
35342 }
35343 if err != nil {
35344 return nil, err
35345 }
35346 defer googleapi.CloseBody(res)
35347 if err := googleapi.CheckResponse(res); err != nil {
35348 return nil, err
35349 }
35350 ret := &FloodlightActivityGroup{
35351 ServerResponse: googleapi.ServerResponse{
35352 Header: res.Header,
35353 HTTPStatusCode: res.StatusCode,
35354 },
35355 }
35356 target := &ret
35357 if err := gensupport.DecodeResponse(target, res); err != nil {
35358 return nil, err
35359 }
35360 return ret, nil
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390 }
35391
35392
35393
35394 type FloodlightConfigurationsGetCall struct {
35395 s *Service
35396 profileId int64
35397 id int64
35398 urlParams_ gensupport.URLParams
35399 ifNoneMatch_ string
35400 ctx_ context.Context
35401 header_ http.Header
35402 }
35403
35404
35405
35406
35407
35408 func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall {
35409 c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35410 c.profileId = profileId
35411 c.id = id
35412 return c
35413 }
35414
35415
35416
35417
35418 func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall {
35419 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35420 return c
35421 }
35422
35423
35424
35425
35426
35427
35428 func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall {
35429 c.ifNoneMatch_ = entityTag
35430 return c
35431 }
35432
35433
35434
35435
35436 func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall {
35437 c.ctx_ = ctx
35438 return c
35439 }
35440
35441
35442
35443 func (c *FloodlightConfigurationsGetCall) Header() http.Header {
35444 if c.header_ == nil {
35445 c.header_ = make(http.Header)
35446 }
35447 return c.header_
35448 }
35449
35450 func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
35451 reqHeaders := make(http.Header)
35452 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
35453 for k, v := range c.header_ {
35454 reqHeaders[k] = v
35455 }
35456 reqHeaders.Set("User-Agent", c.s.userAgent())
35457 if c.ifNoneMatch_ != "" {
35458 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35459 }
35460 var body io.Reader = nil
35461 c.urlParams_.Set("alt", alt)
35462 c.urlParams_.Set("prettyPrint", "false")
35463 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations/{id}")
35464 urls += "?" + c.urlParams_.Encode()
35465 req, err := http.NewRequest("GET", urls, body)
35466 if err != nil {
35467 return nil, err
35468 }
35469 req.Header = reqHeaders
35470 googleapi.Expand(req.URL, map[string]string{
35471 "profileId": strconv.FormatInt(c.profileId, 10),
35472 "id": strconv.FormatInt(c.id, 10),
35473 })
35474 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35475 }
35476
35477
35478
35479
35480
35481
35482
35483
35484 func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) {
35485 gensupport.SetOptions(c.urlParams_, opts...)
35486 res, err := c.doRequest("json")
35487 if res != nil && res.StatusCode == http.StatusNotModified {
35488 if res.Body != nil {
35489 res.Body.Close()
35490 }
35491 return nil, &googleapi.Error{
35492 Code: res.StatusCode,
35493 Header: res.Header,
35494 }
35495 }
35496 if err != nil {
35497 return nil, err
35498 }
35499 defer googleapi.CloseBody(res)
35500 if err := googleapi.CheckResponse(res); err != nil {
35501 return nil, err
35502 }
35503 ret := &FloodlightConfiguration{
35504 ServerResponse: googleapi.ServerResponse{
35505 Header: res.Header,
35506 HTTPStatusCode: res.StatusCode,
35507 },
35508 }
35509 target := &ret
35510 if err := gensupport.DecodeResponse(target, res); err != nil {
35511 return nil, err
35512 }
35513 return ret, nil
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548 }
35549
35550
35551
35552 type FloodlightConfigurationsListCall struct {
35553 s *Service
35554 profileId int64
35555 urlParams_ gensupport.URLParams
35556 ifNoneMatch_ string
35557 ctx_ context.Context
35558 header_ http.Header
35559 }
35560
35561
35562
35563
35564
35565 func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall {
35566 c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35567 c.profileId = profileId
35568 return c
35569 }
35570
35571
35572
35573
35574 func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall {
35575 var ids_ []string
35576 for _, v := range ids {
35577 ids_ = append(ids_, fmt.Sprint(v))
35578 }
35579 c.urlParams_.SetMulti("ids", ids_)
35580 return c
35581 }
35582
35583
35584
35585
35586 func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall {
35587 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35588 return c
35589 }
35590
35591
35592
35593
35594
35595
35596 func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall {
35597 c.ifNoneMatch_ = entityTag
35598 return c
35599 }
35600
35601
35602
35603
35604 func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall {
35605 c.ctx_ = ctx
35606 return c
35607 }
35608
35609
35610
35611 func (c *FloodlightConfigurationsListCall) Header() http.Header {
35612 if c.header_ == nil {
35613 c.header_ = make(http.Header)
35614 }
35615 return c.header_
35616 }
35617
35618 func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
35619 reqHeaders := make(http.Header)
35620 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
35621 for k, v := range c.header_ {
35622 reqHeaders[k] = v
35623 }
35624 reqHeaders.Set("User-Agent", c.s.userAgent())
35625 if c.ifNoneMatch_ != "" {
35626 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35627 }
35628 var body io.Reader = nil
35629 c.urlParams_.Set("alt", alt)
35630 c.urlParams_.Set("prettyPrint", "false")
35631 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations")
35632 urls += "?" + c.urlParams_.Encode()
35633 req, err := http.NewRequest("GET", urls, body)
35634 if err != nil {
35635 return nil, err
35636 }
35637 req.Header = reqHeaders
35638 googleapi.Expand(req.URL, map[string]string{
35639 "profileId": strconv.FormatInt(c.profileId, 10),
35640 })
35641 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35642 }
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652 func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) {
35653 gensupport.SetOptions(c.urlParams_, opts...)
35654 res, err := c.doRequest("json")
35655 if res != nil && res.StatusCode == http.StatusNotModified {
35656 if res.Body != nil {
35657 res.Body.Close()
35658 }
35659 return nil, &googleapi.Error{
35660 Code: res.StatusCode,
35661 Header: res.Header,
35662 }
35663 }
35664 if err != nil {
35665 return nil, err
35666 }
35667 defer googleapi.CloseBody(res)
35668 if err := googleapi.CheckResponse(res); err != nil {
35669 return nil, err
35670 }
35671 ret := &FloodlightConfigurationsListResponse{
35672 ServerResponse: googleapi.ServerResponse{
35673 Header: res.Header,
35674 HTTPStatusCode: res.StatusCode,
35675 },
35676 }
35677 target := &ret
35678 if err := gensupport.DecodeResponse(target, res); err != nil {
35679 return nil, err
35680 }
35681 return ret, nil
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715 }
35716
35717
35718
35719 type FloodlightConfigurationsPatchCall struct {
35720 s *Service
35721 profileId int64
35722 floodlightconfiguration *FloodlightConfiguration
35723 urlParams_ gensupport.URLParams
35724 ctx_ context.Context
35725 header_ http.Header
35726 }
35727
35728
35729
35730
35731
35732
35733 func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall {
35734 c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35735 c.profileId = profileId
35736 c.urlParams_.Set("id", fmt.Sprint(id))
35737 c.floodlightconfiguration = floodlightconfiguration
35738 return c
35739 }
35740
35741
35742
35743
35744 func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall {
35745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35746 return c
35747 }
35748
35749
35750
35751
35752 func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall {
35753 c.ctx_ = ctx
35754 return c
35755 }
35756
35757
35758
35759 func (c *FloodlightConfigurationsPatchCall) Header() http.Header {
35760 if c.header_ == nil {
35761 c.header_ = make(http.Header)
35762 }
35763 return c.header_
35764 }
35765
35766 func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) {
35767 reqHeaders := make(http.Header)
35768 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
35769 for k, v := range c.header_ {
35770 reqHeaders[k] = v
35771 }
35772 reqHeaders.Set("User-Agent", c.s.userAgent())
35773 var body io.Reader = nil
35774 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration)
35775 if err != nil {
35776 return nil, err
35777 }
35778 reqHeaders.Set("Content-Type", "application/json")
35779 c.urlParams_.Set("alt", alt)
35780 c.urlParams_.Set("prettyPrint", "false")
35781 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations")
35782 urls += "?" + c.urlParams_.Encode()
35783 req, err := http.NewRequest("PATCH", urls, body)
35784 if err != nil {
35785 return nil, err
35786 }
35787 req.Header = reqHeaders
35788 googleapi.Expand(req.URL, map[string]string{
35789 "profileId": strconv.FormatInt(c.profileId, 10),
35790 })
35791 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35792 }
35793
35794
35795
35796
35797
35798
35799
35800
35801 func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) {
35802 gensupport.SetOptions(c.urlParams_, opts...)
35803 res, err := c.doRequest("json")
35804 if res != nil && res.StatusCode == http.StatusNotModified {
35805 if res.Body != nil {
35806 res.Body.Close()
35807 }
35808 return nil, &googleapi.Error{
35809 Code: res.StatusCode,
35810 Header: res.Header,
35811 }
35812 }
35813 if err != nil {
35814 return nil, err
35815 }
35816 defer googleapi.CloseBody(res)
35817 if err := googleapi.CheckResponse(res); err != nil {
35818 return nil, err
35819 }
35820 ret := &FloodlightConfiguration{
35821 ServerResponse: googleapi.ServerResponse{
35822 Header: res.Header,
35823 HTTPStatusCode: res.StatusCode,
35824 },
35825 }
35826 target := &ret
35827 if err := gensupport.DecodeResponse(target, res); err != nil {
35828 return nil, err
35829 }
35830 return ret, nil
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868 }
35869
35870
35871
35872 type FloodlightConfigurationsUpdateCall struct {
35873 s *Service
35874 profileId int64
35875 floodlightconfiguration *FloodlightConfiguration
35876 urlParams_ gensupport.URLParams
35877 ctx_ context.Context
35878 header_ http.Header
35879 }
35880
35881
35882
35883
35884 func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall {
35885 c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35886 c.profileId = profileId
35887 c.floodlightconfiguration = floodlightconfiguration
35888 return c
35889 }
35890
35891
35892
35893
35894 func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall {
35895 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35896 return c
35897 }
35898
35899
35900
35901
35902 func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall {
35903 c.ctx_ = ctx
35904 return c
35905 }
35906
35907
35908
35909 func (c *FloodlightConfigurationsUpdateCall) Header() http.Header {
35910 if c.header_ == nil {
35911 c.header_ = make(http.Header)
35912 }
35913 return c.header_
35914 }
35915
35916 func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) {
35917 reqHeaders := make(http.Header)
35918 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
35919 for k, v := range c.header_ {
35920 reqHeaders[k] = v
35921 }
35922 reqHeaders.Set("User-Agent", c.s.userAgent())
35923 var body io.Reader = nil
35924 body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration)
35925 if err != nil {
35926 return nil, err
35927 }
35928 reqHeaders.Set("Content-Type", "application/json")
35929 c.urlParams_.Set("alt", alt)
35930 c.urlParams_.Set("prettyPrint", "false")
35931 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations")
35932 urls += "?" + c.urlParams_.Encode()
35933 req, err := http.NewRequest("PUT", urls, body)
35934 if err != nil {
35935 return nil, err
35936 }
35937 req.Header = reqHeaders
35938 googleapi.Expand(req.URL, map[string]string{
35939 "profileId": strconv.FormatInt(c.profileId, 10),
35940 })
35941 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35942 }
35943
35944
35945
35946
35947
35948
35949
35950
35951 func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) {
35952 gensupport.SetOptions(c.urlParams_, opts...)
35953 res, err := c.doRequest("json")
35954 if res != nil && res.StatusCode == http.StatusNotModified {
35955 if res.Body != nil {
35956 res.Body.Close()
35957 }
35958 return nil, &googleapi.Error{
35959 Code: res.StatusCode,
35960 Header: res.Header,
35961 }
35962 }
35963 if err != nil {
35964 return nil, err
35965 }
35966 defer googleapi.CloseBody(res)
35967 if err := googleapi.CheckResponse(res); err != nil {
35968 return nil, err
35969 }
35970 ret := &FloodlightConfiguration{
35971 ServerResponse: googleapi.ServerResponse{
35972 Header: res.Header,
35973 HTTPStatusCode: res.StatusCode,
35974 },
35975 }
35976 target := &ret
35977 if err := gensupport.DecodeResponse(target, res); err != nil {
35978 return nil, err
35979 }
35980 return ret, nil
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010 }
36011
36012
36013
36014 type InventoryItemsGetCall struct {
36015 s *Service
36016 profileId int64
36017 projectId int64
36018 id int64
36019 urlParams_ gensupport.URLParams
36020 ifNoneMatch_ string
36021 ctx_ context.Context
36022 header_ http.Header
36023 }
36024
36025
36026
36027
36028
36029
36030 func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall {
36031 c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36032 c.profileId = profileId
36033 c.projectId = projectId
36034 c.id = id
36035 return c
36036 }
36037
36038
36039
36040
36041 func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall {
36042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36043 return c
36044 }
36045
36046
36047
36048
36049
36050
36051 func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall {
36052 c.ifNoneMatch_ = entityTag
36053 return c
36054 }
36055
36056
36057
36058
36059 func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall {
36060 c.ctx_ = ctx
36061 return c
36062 }
36063
36064
36065
36066 func (c *InventoryItemsGetCall) Header() http.Header {
36067 if c.header_ == nil {
36068 c.header_ = make(http.Header)
36069 }
36070 return c.header_
36071 }
36072
36073 func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) {
36074 reqHeaders := make(http.Header)
36075 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
36076 for k, v := range c.header_ {
36077 reqHeaders[k] = v
36078 }
36079 reqHeaders.Set("User-Agent", c.s.userAgent())
36080 if c.ifNoneMatch_ != "" {
36081 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36082 }
36083 var body io.Reader = nil
36084 c.urlParams_.Set("alt", alt)
36085 c.urlParams_.Set("prettyPrint", "false")
36086 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}")
36087 urls += "?" + c.urlParams_.Encode()
36088 req, err := http.NewRequest("GET", urls, body)
36089 if err != nil {
36090 return nil, err
36091 }
36092 req.Header = reqHeaders
36093 googleapi.Expand(req.URL, map[string]string{
36094 "profileId": strconv.FormatInt(c.profileId, 10),
36095 "projectId": strconv.FormatInt(c.projectId, 10),
36096 "id": strconv.FormatInt(c.id, 10),
36097 })
36098 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36099 }
36100
36101
36102
36103
36104
36105
36106
36107
36108 func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) {
36109 gensupport.SetOptions(c.urlParams_, opts...)
36110 res, err := c.doRequest("json")
36111 if res != nil && res.StatusCode == http.StatusNotModified {
36112 if res.Body != nil {
36113 res.Body.Close()
36114 }
36115 return nil, &googleapi.Error{
36116 Code: res.StatusCode,
36117 Header: res.Header,
36118 }
36119 }
36120 if err != nil {
36121 return nil, err
36122 }
36123 defer googleapi.CloseBody(res)
36124 if err := googleapi.CheckResponse(res); err != nil {
36125 return nil, err
36126 }
36127 ret := &InventoryItem{
36128 ServerResponse: googleapi.ServerResponse{
36129 Header: res.Header,
36130 HTTPStatusCode: res.StatusCode,
36131 },
36132 }
36133 target := &ret
36134 if err := gensupport.DecodeResponse(target, res); err != nil {
36135 return nil, err
36136 }
36137 return ret, nil
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180 }
36181
36182
36183
36184 type InventoryItemsListCall struct {
36185 s *Service
36186 profileId int64
36187 projectId int64
36188 urlParams_ gensupport.URLParams
36189 ifNoneMatch_ string
36190 ctx_ context.Context
36191 header_ http.Header
36192 }
36193
36194
36195
36196
36197
36198
36199 func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall {
36200 c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36201 c.profileId = profileId
36202 c.projectId = projectId
36203 return c
36204 }
36205
36206
36207
36208 func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall {
36209 var ids_ []string
36210 for _, v := range ids {
36211 ids_ = append(ids_, fmt.Sprint(v))
36212 }
36213 c.urlParams_.SetMulti("ids", ids_)
36214 return c
36215 }
36216
36217
36218
36219 func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall {
36220 c.urlParams_.Set("inPlan", fmt.Sprint(inPlan))
36221 return c
36222 }
36223
36224
36225
36226 func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall {
36227 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
36228 return c
36229 }
36230
36231
36232
36233 func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall {
36234 var orderId_ []string
36235 for _, v := range orderId {
36236 orderId_ = append(orderId_, fmt.Sprint(v))
36237 }
36238 c.urlParams_.SetMulti("orderId", orderId_)
36239 return c
36240 }
36241
36242
36243
36244 func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsListCall {
36245 c.urlParams_.Set("pageToken", pageToken)
36246 return c
36247 }
36248
36249
36250
36251 func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall {
36252 var siteId_ []string
36253 for _, v := range siteId {
36254 siteId_ = append(siteId_, fmt.Sprint(v))
36255 }
36256 c.urlParams_.SetMulti("siteId", siteId_)
36257 return c
36258 }
36259
36260
36261
36262
36263
36264
36265
36266
36267 func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsListCall {
36268 c.urlParams_.Set("sortField", sortField)
36269 return c
36270 }
36271
36272
36273
36274
36275
36276
36277
36278
36279 func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsListCall {
36280 c.urlParams_.Set("sortOrder", sortOrder)
36281 return c
36282 }
36283
36284
36285
36286
36287
36288
36289
36290
36291 func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall {
36292 c.urlParams_.Set("type", type_)
36293 return c
36294 }
36295
36296
36297
36298
36299 func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall {
36300 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36301 return c
36302 }
36303
36304
36305
36306
36307
36308
36309 func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall {
36310 c.ifNoneMatch_ = entityTag
36311 return c
36312 }
36313
36314
36315
36316
36317 func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall {
36318 c.ctx_ = ctx
36319 return c
36320 }
36321
36322
36323
36324 func (c *InventoryItemsListCall) Header() http.Header {
36325 if c.header_ == nil {
36326 c.header_ = make(http.Header)
36327 }
36328 return c.header_
36329 }
36330
36331 func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) {
36332 reqHeaders := make(http.Header)
36333 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
36334 for k, v := range c.header_ {
36335 reqHeaders[k] = v
36336 }
36337 reqHeaders.Set("User-Agent", c.s.userAgent())
36338 if c.ifNoneMatch_ != "" {
36339 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36340 }
36341 var body io.Reader = nil
36342 c.urlParams_.Set("alt", alt)
36343 c.urlParams_.Set("prettyPrint", "false")
36344 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/inventoryItems")
36345 urls += "?" + c.urlParams_.Encode()
36346 req, err := http.NewRequest("GET", urls, body)
36347 if err != nil {
36348 return nil, err
36349 }
36350 req.Header = reqHeaders
36351 googleapi.Expand(req.URL, map[string]string{
36352 "profileId": strconv.FormatInt(c.profileId, 10),
36353 "projectId": strconv.FormatInt(c.projectId, 10),
36354 })
36355 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36356 }
36357
36358
36359
36360
36361
36362
36363
36364
36365 func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) {
36366 gensupport.SetOptions(c.urlParams_, opts...)
36367 res, err := c.doRequest("json")
36368 if res != nil && res.StatusCode == http.StatusNotModified {
36369 if res.Body != nil {
36370 res.Body.Close()
36371 }
36372 return nil, &googleapi.Error{
36373 Code: res.StatusCode,
36374 Header: res.Header,
36375 }
36376 }
36377 if err != nil {
36378 return nil, err
36379 }
36380 defer googleapi.CloseBody(res)
36381 if err := googleapi.CheckResponse(res); err != nil {
36382 return nil, err
36383 }
36384 ret := &InventoryItemsListResponse{
36385 ServerResponse: googleapi.ServerResponse{
36386 Header: res.Header,
36387 HTTPStatusCode: res.StatusCode,
36388 },
36389 }
36390 target := &ret
36391 if err := gensupport.DecodeResponse(target, res); err != nil {
36392 return nil, err
36393 }
36394 return ret, nil
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510 }
36511
36512
36513
36514
36515 func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error {
36516 c.ctx_ = ctx
36517 defer c.PageToken(c.urlParams_.Get("pageToken"))
36518 for {
36519 x, err := c.Do()
36520 if err != nil {
36521 return err
36522 }
36523 if err := f(x); err != nil {
36524 return err
36525 }
36526 if x.NextPageToken == "" {
36527 return nil
36528 }
36529 c.PageToken(x.NextPageToken)
36530 }
36531 }
36532
36533
36534
36535 type LanguagesListCall struct {
36536 s *Service
36537 profileId int64
36538 urlParams_ gensupport.URLParams
36539 ifNoneMatch_ string
36540 ctx_ context.Context
36541 header_ http.Header
36542 }
36543
36544
36545
36546
36547 func (r *LanguagesService) List(profileId int64) *LanguagesListCall {
36548 c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36549 c.profileId = profileId
36550 return c
36551 }
36552
36553
36554
36555
36556 func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall {
36557 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36558 return c
36559 }
36560
36561
36562
36563
36564
36565
36566 func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall {
36567 c.ifNoneMatch_ = entityTag
36568 return c
36569 }
36570
36571
36572
36573
36574 func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall {
36575 c.ctx_ = ctx
36576 return c
36577 }
36578
36579
36580
36581 func (c *LanguagesListCall) Header() http.Header {
36582 if c.header_ == nil {
36583 c.header_ = make(http.Header)
36584 }
36585 return c.header_
36586 }
36587
36588 func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) {
36589 reqHeaders := make(http.Header)
36590 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
36591 for k, v := range c.header_ {
36592 reqHeaders[k] = v
36593 }
36594 reqHeaders.Set("User-Agent", c.s.userAgent())
36595 if c.ifNoneMatch_ != "" {
36596 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36597 }
36598 var body io.Reader = nil
36599 c.urlParams_.Set("alt", alt)
36600 c.urlParams_.Set("prettyPrint", "false")
36601 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/languages")
36602 urls += "?" + c.urlParams_.Encode()
36603 req, err := http.NewRequest("GET", urls, body)
36604 if err != nil {
36605 return nil, err
36606 }
36607 req.Header = reqHeaders
36608 googleapi.Expand(req.URL, map[string]string{
36609 "profileId": strconv.FormatInt(c.profileId, 10),
36610 })
36611 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36612 }
36613
36614
36615
36616
36617
36618
36619
36620
36621 func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) {
36622 gensupport.SetOptions(c.urlParams_, opts...)
36623 res, err := c.doRequest("json")
36624 if res != nil && res.StatusCode == http.StatusNotModified {
36625 if res.Body != nil {
36626 res.Body.Close()
36627 }
36628 return nil, &googleapi.Error{
36629 Code: res.StatusCode,
36630 Header: res.Header,
36631 }
36632 }
36633 if err != nil {
36634 return nil, err
36635 }
36636 defer googleapi.CloseBody(res)
36637 if err := googleapi.CheckResponse(res); err != nil {
36638 return nil, err
36639 }
36640 ret := &LanguagesListResponse{
36641 ServerResponse: googleapi.ServerResponse{
36642 Header: res.Header,
36643 HTTPStatusCode: res.StatusCode,
36644 },
36645 }
36646 target := &ret
36647 if err := gensupport.DecodeResponse(target, res); err != nil {
36648 return nil, err
36649 }
36650 return ret, nil
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 type MetrosListCall struct {
36682 s *Service
36683 profileId int64
36684 urlParams_ gensupport.URLParams
36685 ifNoneMatch_ string
36686 ctx_ context.Context
36687 header_ http.Header
36688 }
36689
36690
36691
36692
36693 func (r *MetrosService) List(profileId int64) *MetrosListCall {
36694 c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36695 c.profileId = profileId
36696 return c
36697 }
36698
36699
36700
36701
36702 func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall {
36703 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36704 return c
36705 }
36706
36707
36708
36709
36710
36711
36712 func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall {
36713 c.ifNoneMatch_ = entityTag
36714 return c
36715 }
36716
36717
36718
36719
36720 func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall {
36721 c.ctx_ = ctx
36722 return c
36723 }
36724
36725
36726
36727 func (c *MetrosListCall) Header() http.Header {
36728 if c.header_ == nil {
36729 c.header_ = make(http.Header)
36730 }
36731 return c.header_
36732 }
36733
36734 func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) {
36735 reqHeaders := make(http.Header)
36736 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
36737 for k, v := range c.header_ {
36738 reqHeaders[k] = v
36739 }
36740 reqHeaders.Set("User-Agent", c.s.userAgent())
36741 if c.ifNoneMatch_ != "" {
36742 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36743 }
36744 var body io.Reader = nil
36745 c.urlParams_.Set("alt", alt)
36746 c.urlParams_.Set("prettyPrint", "false")
36747 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/metros")
36748 urls += "?" + c.urlParams_.Encode()
36749 req, err := http.NewRequest("GET", urls, body)
36750 if err != nil {
36751 return nil, err
36752 }
36753 req.Header = reqHeaders
36754 googleapi.Expand(req.URL, map[string]string{
36755 "profileId": strconv.FormatInt(c.profileId, 10),
36756 })
36757 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36758 }
36759
36760
36761
36762
36763
36764
36765
36766
36767 func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) {
36768 gensupport.SetOptions(c.urlParams_, opts...)
36769 res, err := c.doRequest("json")
36770 if res != nil && res.StatusCode == http.StatusNotModified {
36771 if res.Body != nil {
36772 res.Body.Close()
36773 }
36774 return nil, &googleapi.Error{
36775 Code: res.StatusCode,
36776 Header: res.Header,
36777 }
36778 }
36779 if err != nil {
36780 return nil, err
36781 }
36782 defer googleapi.CloseBody(res)
36783 if err := googleapi.CheckResponse(res); err != nil {
36784 return nil, err
36785 }
36786 ret := &MetrosListResponse{
36787 ServerResponse: googleapi.ServerResponse{
36788 Header: res.Header,
36789 HTTPStatusCode: res.StatusCode,
36790 },
36791 }
36792 target := &ret
36793 if err := gensupport.DecodeResponse(target, res); err != nil {
36794 return nil, err
36795 }
36796 return ret, nil
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823 }
36824
36825
36826
36827 type MobileAppsGetCall struct {
36828 s *Service
36829 profileId int64
36830 id string
36831 urlParams_ gensupport.URLParams
36832 ifNoneMatch_ string
36833 ctx_ context.Context
36834 header_ http.Header
36835 }
36836
36837
36838
36839
36840
36841 func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall {
36842 c := &MobileAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36843 c.profileId = profileId
36844 c.id = id
36845 return c
36846 }
36847
36848
36849
36850
36851 func (c *MobileAppsGetCall) Fields(s ...googleapi.Field) *MobileAppsGetCall {
36852 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36853 return c
36854 }
36855
36856
36857
36858
36859
36860
36861 func (c *MobileAppsGetCall) IfNoneMatch(entityTag string) *MobileAppsGetCall {
36862 c.ifNoneMatch_ = entityTag
36863 return c
36864 }
36865
36866
36867
36868
36869 func (c *MobileAppsGetCall) Context(ctx context.Context) *MobileAppsGetCall {
36870 c.ctx_ = ctx
36871 return c
36872 }
36873
36874
36875
36876 func (c *MobileAppsGetCall) Header() http.Header {
36877 if c.header_ == nil {
36878 c.header_ = make(http.Header)
36879 }
36880 return c.header_
36881 }
36882
36883 func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) {
36884 reqHeaders := make(http.Header)
36885 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
36886 for k, v := range c.header_ {
36887 reqHeaders[k] = v
36888 }
36889 reqHeaders.Set("User-Agent", c.s.userAgent())
36890 if c.ifNoneMatch_ != "" {
36891 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36892 }
36893 var body io.Reader = nil
36894 c.urlParams_.Set("alt", alt)
36895 c.urlParams_.Set("prettyPrint", "false")
36896 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileApps/{id}")
36897 urls += "?" + c.urlParams_.Encode()
36898 req, err := http.NewRequest("GET", urls, body)
36899 if err != nil {
36900 return nil, err
36901 }
36902 req.Header = reqHeaders
36903 googleapi.Expand(req.URL, map[string]string{
36904 "profileId": strconv.FormatInt(c.profileId, 10),
36905 "id": c.id,
36906 })
36907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36908 }
36909
36910
36911
36912
36913
36914
36915
36916
36917 func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) {
36918 gensupport.SetOptions(c.urlParams_, opts...)
36919 res, err := c.doRequest("json")
36920 if res != nil && res.StatusCode == http.StatusNotModified {
36921 if res.Body != nil {
36922 res.Body.Close()
36923 }
36924 return nil, &googleapi.Error{
36925 Code: res.StatusCode,
36926 Header: res.Header,
36927 }
36928 }
36929 if err != nil {
36930 return nil, err
36931 }
36932 defer googleapi.CloseBody(res)
36933 if err := googleapi.CheckResponse(res); err != nil {
36934 return nil, err
36935 }
36936 ret := &MobileApp{
36937 ServerResponse: googleapi.ServerResponse{
36938 Header: res.Header,
36939 HTTPStatusCode: res.StatusCode,
36940 },
36941 }
36942 target := &ret
36943 if err := gensupport.DecodeResponse(target, res); err != nil {
36944 return nil, err
36945 }
36946 return ret, nil
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980 }
36981
36982
36983
36984 type MobileAppsListCall struct {
36985 s *Service
36986 profileId int64
36987 urlParams_ gensupport.URLParams
36988 ifNoneMatch_ string
36989 ctx_ context.Context
36990 header_ http.Header
36991 }
36992
36993
36994
36995
36996 func (r *MobileAppsService) List(profileId int64) *MobileAppsListCall {
36997 c := &MobileAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36998 c.profileId = profileId
36999 return c
37000 }
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010 func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListCall {
37011 c.urlParams_.SetMulti("directories", append([]string{}, directories...))
37012 return c
37013 }
37014
37015
37016
37017 func (c *MobileAppsListCall) Ids(ids ...string) *MobileAppsListCall {
37018 c.urlParams_.SetMulti("ids", append([]string{}, ids...))
37019 return c
37020 }
37021
37022
37023
37024 func (c *MobileAppsListCall) MaxResults(maxResults int64) *MobileAppsListCall {
37025 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
37026 return c
37027 }
37028
37029
37030
37031 func (c *MobileAppsListCall) PageToken(pageToken string) *MobileAppsListCall {
37032 c.urlParams_.Set("pageToken", pageToken)
37033 return c
37034 }
37035
37036
37037
37038
37039
37040
37041
37042
37043 func (c *MobileAppsListCall) SearchString(searchString string) *MobileAppsListCall {
37044 c.urlParams_.Set("searchString", searchString)
37045 return c
37046 }
37047
37048
37049
37050
37051 func (c *MobileAppsListCall) Fields(s ...googleapi.Field) *MobileAppsListCall {
37052 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37053 return c
37054 }
37055
37056
37057
37058
37059
37060
37061 func (c *MobileAppsListCall) IfNoneMatch(entityTag string) *MobileAppsListCall {
37062 c.ifNoneMatch_ = entityTag
37063 return c
37064 }
37065
37066
37067
37068
37069 func (c *MobileAppsListCall) Context(ctx context.Context) *MobileAppsListCall {
37070 c.ctx_ = ctx
37071 return c
37072 }
37073
37074
37075
37076 func (c *MobileAppsListCall) Header() http.Header {
37077 if c.header_ == nil {
37078 c.header_ = make(http.Header)
37079 }
37080 return c.header_
37081 }
37082
37083 func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) {
37084 reqHeaders := make(http.Header)
37085 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
37086 for k, v := range c.header_ {
37087 reqHeaders[k] = v
37088 }
37089 reqHeaders.Set("User-Agent", c.s.userAgent())
37090 if c.ifNoneMatch_ != "" {
37091 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37092 }
37093 var body io.Reader = nil
37094 c.urlParams_.Set("alt", alt)
37095 c.urlParams_.Set("prettyPrint", "false")
37096 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileApps")
37097 urls += "?" + c.urlParams_.Encode()
37098 req, err := http.NewRequest("GET", urls, body)
37099 if err != nil {
37100 return nil, err
37101 }
37102 req.Header = reqHeaders
37103 googleapi.Expand(req.URL, map[string]string{
37104 "profileId": strconv.FormatInt(c.profileId, 10),
37105 })
37106 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37107 }
37108
37109
37110
37111
37112
37113
37114
37115
37116 func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListResponse, error) {
37117 gensupport.SetOptions(c.urlParams_, opts...)
37118 res, err := c.doRequest("json")
37119 if res != nil && res.StatusCode == http.StatusNotModified {
37120 if res.Body != nil {
37121 res.Body.Close()
37122 }
37123 return nil, &googleapi.Error{
37124 Code: res.StatusCode,
37125 Header: res.Header,
37126 }
37127 }
37128 if err != nil {
37129 return nil, err
37130 }
37131 defer googleapi.CloseBody(res)
37132 if err := googleapi.CheckResponse(res); err != nil {
37133 return nil, err
37134 }
37135 ret := &MobileAppsListResponse{
37136 ServerResponse: googleapi.ServerResponse{
37137 Header: res.Header,
37138 HTTPStatusCode: res.StatusCode,
37139 },
37140 }
37141 target := &ret
37142 if err := gensupport.DecodeResponse(target, res); err != nil {
37143 return nil, err
37144 }
37145 return ret, nil
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
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213 }
37214
37215
37216
37217
37218 func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListResponse) error) error {
37219 c.ctx_ = ctx
37220 defer c.PageToken(c.urlParams_.Get("pageToken"))
37221 for {
37222 x, err := c.Do()
37223 if err != nil {
37224 return err
37225 }
37226 if err := f(x); err != nil {
37227 return err
37228 }
37229 if x.NextPageToken == "" {
37230 return nil
37231 }
37232 c.PageToken(x.NextPageToken)
37233 }
37234 }
37235
37236
37237
37238 type MobileCarriersGetCall struct {
37239 s *Service
37240 profileId int64
37241 id int64
37242 urlParams_ gensupport.URLParams
37243 ifNoneMatch_ string
37244 ctx_ context.Context
37245 header_ http.Header
37246 }
37247
37248
37249
37250
37251
37252 func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall {
37253 c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37254 c.profileId = profileId
37255 c.id = id
37256 return c
37257 }
37258
37259
37260
37261
37262 func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall {
37263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37264 return c
37265 }
37266
37267
37268
37269
37270
37271
37272 func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall {
37273 c.ifNoneMatch_ = entityTag
37274 return c
37275 }
37276
37277
37278
37279
37280 func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall {
37281 c.ctx_ = ctx
37282 return c
37283 }
37284
37285
37286
37287 func (c *MobileCarriersGetCall) Header() http.Header {
37288 if c.header_ == nil {
37289 c.header_ = make(http.Header)
37290 }
37291 return c.header_
37292 }
37293
37294 func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) {
37295 reqHeaders := make(http.Header)
37296 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
37297 for k, v := range c.header_ {
37298 reqHeaders[k] = v
37299 }
37300 reqHeaders.Set("User-Agent", c.s.userAgent())
37301 if c.ifNoneMatch_ != "" {
37302 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37303 }
37304 var body io.Reader = nil
37305 c.urlParams_.Set("alt", alt)
37306 c.urlParams_.Set("prettyPrint", "false")
37307 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers/{id}")
37308 urls += "?" + c.urlParams_.Encode()
37309 req, err := http.NewRequest("GET", urls, body)
37310 if err != nil {
37311 return nil, err
37312 }
37313 req.Header = reqHeaders
37314 googleapi.Expand(req.URL, map[string]string{
37315 "profileId": strconv.FormatInt(c.profileId, 10),
37316 "id": strconv.FormatInt(c.id, 10),
37317 })
37318 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37319 }
37320
37321
37322
37323
37324
37325
37326
37327
37328 func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) {
37329 gensupport.SetOptions(c.urlParams_, opts...)
37330 res, err := c.doRequest("json")
37331 if res != nil && res.StatusCode == http.StatusNotModified {
37332 if res.Body != nil {
37333 res.Body.Close()
37334 }
37335 return nil, &googleapi.Error{
37336 Code: res.StatusCode,
37337 Header: res.Header,
37338 }
37339 }
37340 if err != nil {
37341 return nil, err
37342 }
37343 defer googleapi.CloseBody(res)
37344 if err := googleapi.CheckResponse(res); err != nil {
37345 return nil, err
37346 }
37347 ret := &MobileCarrier{
37348 ServerResponse: googleapi.ServerResponse{
37349 Header: res.Header,
37350 HTTPStatusCode: res.StatusCode,
37351 },
37352 }
37353 target := &ret
37354 if err := gensupport.DecodeResponse(target, res); err != nil {
37355 return nil, err
37356 }
37357 return ret, nil
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392 }
37393
37394
37395
37396 type MobileCarriersListCall struct {
37397 s *Service
37398 profileId int64
37399 urlParams_ gensupport.URLParams
37400 ifNoneMatch_ string
37401 ctx_ context.Context
37402 header_ http.Header
37403 }
37404
37405
37406
37407
37408 func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall {
37409 c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37410 c.profileId = profileId
37411 return c
37412 }
37413
37414
37415
37416
37417 func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall {
37418 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37419 return c
37420 }
37421
37422
37423
37424
37425
37426
37427 func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall {
37428 c.ifNoneMatch_ = entityTag
37429 return c
37430 }
37431
37432
37433
37434
37435 func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall {
37436 c.ctx_ = ctx
37437 return c
37438 }
37439
37440
37441
37442 func (c *MobileCarriersListCall) Header() http.Header {
37443 if c.header_ == nil {
37444 c.header_ = make(http.Header)
37445 }
37446 return c.header_
37447 }
37448
37449 func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) {
37450 reqHeaders := make(http.Header)
37451 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
37452 for k, v := range c.header_ {
37453 reqHeaders[k] = v
37454 }
37455 reqHeaders.Set("User-Agent", c.s.userAgent())
37456 if c.ifNoneMatch_ != "" {
37457 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37458 }
37459 var body io.Reader = nil
37460 c.urlParams_.Set("alt", alt)
37461 c.urlParams_.Set("prettyPrint", "false")
37462 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/mobileCarriers")
37463 urls += "?" + c.urlParams_.Encode()
37464 req, err := http.NewRequest("GET", urls, body)
37465 if err != nil {
37466 return nil, err
37467 }
37468 req.Header = reqHeaders
37469 googleapi.Expand(req.URL, map[string]string{
37470 "profileId": strconv.FormatInt(c.profileId, 10),
37471 })
37472 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37473 }
37474
37475
37476
37477
37478
37479
37480
37481
37482 func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) {
37483 gensupport.SetOptions(c.urlParams_, opts...)
37484 res, err := c.doRequest("json")
37485 if res != nil && res.StatusCode == http.StatusNotModified {
37486 if res.Body != nil {
37487 res.Body.Close()
37488 }
37489 return nil, &googleapi.Error{
37490 Code: res.StatusCode,
37491 Header: res.Header,
37492 }
37493 }
37494 if err != nil {
37495 return nil, err
37496 }
37497 defer googleapi.CloseBody(res)
37498 if err := googleapi.CheckResponse(res); err != nil {
37499 return nil, err
37500 }
37501 ret := &MobileCarriersListResponse{
37502 ServerResponse: googleapi.ServerResponse{
37503 Header: res.Header,
37504 HTTPStatusCode: res.StatusCode,
37505 },
37506 }
37507 target := &ret
37508 if err := gensupport.DecodeResponse(target, res); err != nil {
37509 return nil, err
37510 }
37511 return ret, nil
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538 }
37539
37540
37541
37542 type OperatingSystemVersionsGetCall struct {
37543 s *Service
37544 profileId int64
37545 id int64
37546 urlParams_ gensupport.URLParams
37547 ifNoneMatch_ string
37548 ctx_ context.Context
37549 header_ http.Header
37550 }
37551
37552
37553
37554
37555
37556 func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall {
37557 c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37558 c.profileId = profileId
37559 c.id = id
37560 return c
37561 }
37562
37563
37564
37565
37566 func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall {
37567 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37568 return c
37569 }
37570
37571
37572
37573
37574
37575
37576 func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall {
37577 c.ifNoneMatch_ = entityTag
37578 return c
37579 }
37580
37581
37582
37583
37584 func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall {
37585 c.ctx_ = ctx
37586 return c
37587 }
37588
37589
37590
37591 func (c *OperatingSystemVersionsGetCall) Header() http.Header {
37592 if c.header_ == nil {
37593 c.header_ = make(http.Header)
37594 }
37595 return c.header_
37596 }
37597
37598 func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) {
37599 reqHeaders := make(http.Header)
37600 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
37601 for k, v := range c.header_ {
37602 reqHeaders[k] = v
37603 }
37604 reqHeaders.Set("User-Agent", c.s.userAgent())
37605 if c.ifNoneMatch_ != "" {
37606 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37607 }
37608 var body io.Reader = nil
37609 c.urlParams_.Set("alt", alt)
37610 c.urlParams_.Set("prettyPrint", "false")
37611 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions/{id}")
37612 urls += "?" + c.urlParams_.Encode()
37613 req, err := http.NewRequest("GET", urls, body)
37614 if err != nil {
37615 return nil, err
37616 }
37617 req.Header = reqHeaders
37618 googleapi.Expand(req.URL, map[string]string{
37619 "profileId": strconv.FormatInt(c.profileId, 10),
37620 "id": strconv.FormatInt(c.id, 10),
37621 })
37622 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37623 }
37624
37625
37626
37627
37628
37629
37630
37631
37632 func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) {
37633 gensupport.SetOptions(c.urlParams_, opts...)
37634 res, err := c.doRequest("json")
37635 if res != nil && res.StatusCode == http.StatusNotModified {
37636 if res.Body != nil {
37637 res.Body.Close()
37638 }
37639 return nil, &googleapi.Error{
37640 Code: res.StatusCode,
37641 Header: res.Header,
37642 }
37643 }
37644 if err != nil {
37645 return nil, err
37646 }
37647 defer googleapi.CloseBody(res)
37648 if err := googleapi.CheckResponse(res); err != nil {
37649 return nil, err
37650 }
37651 ret := &OperatingSystemVersion{
37652 ServerResponse: googleapi.ServerResponse{
37653 Header: res.Header,
37654 HTTPStatusCode: res.StatusCode,
37655 },
37656 }
37657 target := &ret
37658 if err := gensupport.DecodeResponse(target, res); err != nil {
37659 return nil, err
37660 }
37661 return ret, nil
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696 }
37697
37698
37699
37700 type OperatingSystemVersionsListCall struct {
37701 s *Service
37702 profileId int64
37703 urlParams_ gensupport.URLParams
37704 ifNoneMatch_ string
37705 ctx_ context.Context
37706 header_ http.Header
37707 }
37708
37709
37710
37711
37712 func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall {
37713 c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37714 c.profileId = profileId
37715 return c
37716 }
37717
37718
37719
37720
37721 func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall {
37722 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37723 return c
37724 }
37725
37726
37727
37728
37729
37730
37731 func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall {
37732 c.ifNoneMatch_ = entityTag
37733 return c
37734 }
37735
37736
37737
37738
37739 func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall {
37740 c.ctx_ = ctx
37741 return c
37742 }
37743
37744
37745
37746 func (c *OperatingSystemVersionsListCall) Header() http.Header {
37747 if c.header_ == nil {
37748 c.header_ = make(http.Header)
37749 }
37750 return c.header_
37751 }
37752
37753 func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) {
37754 reqHeaders := make(http.Header)
37755 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
37756 for k, v := range c.header_ {
37757 reqHeaders[k] = v
37758 }
37759 reqHeaders.Set("User-Agent", c.s.userAgent())
37760 if c.ifNoneMatch_ != "" {
37761 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37762 }
37763 var body io.Reader = nil
37764 c.urlParams_.Set("alt", alt)
37765 c.urlParams_.Set("prettyPrint", "false")
37766 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystemVersions")
37767 urls += "?" + c.urlParams_.Encode()
37768 req, err := http.NewRequest("GET", urls, body)
37769 if err != nil {
37770 return nil, err
37771 }
37772 req.Header = reqHeaders
37773 googleapi.Expand(req.URL, map[string]string{
37774 "profileId": strconv.FormatInt(c.profileId, 10),
37775 })
37776 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37777 }
37778
37779
37780
37781
37782
37783
37784
37785
37786
37787 func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) {
37788 gensupport.SetOptions(c.urlParams_, opts...)
37789 res, err := c.doRequest("json")
37790 if res != nil && res.StatusCode == http.StatusNotModified {
37791 if res.Body != nil {
37792 res.Body.Close()
37793 }
37794 return nil, &googleapi.Error{
37795 Code: res.StatusCode,
37796 Header: res.Header,
37797 }
37798 }
37799 if err != nil {
37800 return nil, err
37801 }
37802 defer googleapi.CloseBody(res)
37803 if err := googleapi.CheckResponse(res); err != nil {
37804 return nil, err
37805 }
37806 ret := &OperatingSystemVersionsListResponse{
37807 ServerResponse: googleapi.ServerResponse{
37808 Header: res.Header,
37809 HTTPStatusCode: res.StatusCode,
37810 },
37811 }
37812 target := &ret
37813 if err := gensupport.DecodeResponse(target, res); err != nil {
37814 return nil, err
37815 }
37816 return ret, nil
37817
37818
37819
37820
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 type OperatingSystemsGetCall struct {
37848 s *Service
37849 profileId int64
37850 dartId int64
37851 urlParams_ gensupport.URLParams
37852 ifNoneMatch_ string
37853 ctx_ context.Context
37854 header_ http.Header
37855 }
37856
37857
37858
37859
37860
37861 func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall {
37862 c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37863 c.profileId = profileId
37864 c.dartId = dartId
37865 return c
37866 }
37867
37868
37869
37870
37871 func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall {
37872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37873 return c
37874 }
37875
37876
37877
37878
37879
37880
37881 func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall {
37882 c.ifNoneMatch_ = entityTag
37883 return c
37884 }
37885
37886
37887
37888
37889 func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall {
37890 c.ctx_ = ctx
37891 return c
37892 }
37893
37894
37895
37896 func (c *OperatingSystemsGetCall) Header() http.Header {
37897 if c.header_ == nil {
37898 c.header_ = make(http.Header)
37899 }
37900 return c.header_
37901 }
37902
37903 func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) {
37904 reqHeaders := make(http.Header)
37905 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
37906 for k, v := range c.header_ {
37907 reqHeaders[k] = v
37908 }
37909 reqHeaders.Set("User-Agent", c.s.userAgent())
37910 if c.ifNoneMatch_ != "" {
37911 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37912 }
37913 var body io.Reader = nil
37914 c.urlParams_.Set("alt", alt)
37915 c.urlParams_.Set("prettyPrint", "false")
37916 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems/{dartId}")
37917 urls += "?" + c.urlParams_.Encode()
37918 req, err := http.NewRequest("GET", urls, body)
37919 if err != nil {
37920 return nil, err
37921 }
37922 req.Header = reqHeaders
37923 googleapi.Expand(req.URL, map[string]string{
37924 "profileId": strconv.FormatInt(c.profileId, 10),
37925 "dartId": strconv.FormatInt(c.dartId, 10),
37926 })
37927 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37928 }
37929
37930
37931
37932
37933
37934
37935
37936
37937 func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) {
37938 gensupport.SetOptions(c.urlParams_, opts...)
37939 res, err := c.doRequest("json")
37940 if res != nil && res.StatusCode == http.StatusNotModified {
37941 if res.Body != nil {
37942 res.Body.Close()
37943 }
37944 return nil, &googleapi.Error{
37945 Code: res.StatusCode,
37946 Header: res.Header,
37947 }
37948 }
37949 if err != nil {
37950 return nil, err
37951 }
37952 defer googleapi.CloseBody(res)
37953 if err := googleapi.CheckResponse(res); err != nil {
37954 return nil, err
37955 }
37956 ret := &OperatingSystem{
37957 ServerResponse: googleapi.ServerResponse{
37958 Header: res.Header,
37959 HTTPStatusCode: res.StatusCode,
37960 },
37961 }
37962 target := &ret
37963 if err := gensupport.DecodeResponse(target, res); err != nil {
37964 return nil, err
37965 }
37966 return ret, nil
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 type OperatingSystemsListCall struct {
38006 s *Service
38007 profileId int64
38008 urlParams_ gensupport.URLParams
38009 ifNoneMatch_ string
38010 ctx_ context.Context
38011 header_ http.Header
38012 }
38013
38014
38015
38016
38017 func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall {
38018 c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38019 c.profileId = profileId
38020 return c
38021 }
38022
38023
38024
38025
38026 func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall {
38027 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38028 return c
38029 }
38030
38031
38032
38033
38034
38035
38036 func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall {
38037 c.ifNoneMatch_ = entityTag
38038 return c
38039 }
38040
38041
38042
38043
38044 func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall {
38045 c.ctx_ = ctx
38046 return c
38047 }
38048
38049
38050
38051 func (c *OperatingSystemsListCall) Header() http.Header {
38052 if c.header_ == nil {
38053 c.header_ = make(http.Header)
38054 }
38055 return c.header_
38056 }
38057
38058 func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) {
38059 reqHeaders := make(http.Header)
38060 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
38061 for k, v := range c.header_ {
38062 reqHeaders[k] = v
38063 }
38064 reqHeaders.Set("User-Agent", c.s.userAgent())
38065 if c.ifNoneMatch_ != "" {
38066 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38067 }
38068 var body io.Reader = nil
38069 c.urlParams_.Set("alt", alt)
38070 c.urlParams_.Set("prettyPrint", "false")
38071 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/operatingSystems")
38072 urls += "?" + c.urlParams_.Encode()
38073 req, err := http.NewRequest("GET", urls, body)
38074 if err != nil {
38075 return nil, err
38076 }
38077 req.Header = reqHeaders
38078 googleapi.Expand(req.URL, map[string]string{
38079 "profileId": strconv.FormatInt(c.profileId, 10),
38080 })
38081 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38082 }
38083
38084
38085
38086
38087
38088
38089
38090
38091 func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) {
38092 gensupport.SetOptions(c.urlParams_, opts...)
38093 res, err := c.doRequest("json")
38094 if res != nil && res.StatusCode == http.StatusNotModified {
38095 if res.Body != nil {
38096 res.Body.Close()
38097 }
38098 return nil, &googleapi.Error{
38099 Code: res.StatusCode,
38100 Header: res.Header,
38101 }
38102 }
38103 if err != nil {
38104 return nil, err
38105 }
38106 defer googleapi.CloseBody(res)
38107 if err := googleapi.CheckResponse(res); err != nil {
38108 return nil, err
38109 }
38110 ret := &OperatingSystemsListResponse{
38111 ServerResponse: googleapi.ServerResponse{
38112 Header: res.Header,
38113 HTTPStatusCode: res.StatusCode,
38114 },
38115 }
38116 target := &ret
38117 if err := gensupport.DecodeResponse(target, res); err != nil {
38118 return nil, err
38119 }
38120 return ret, nil
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147 }
38148
38149
38150
38151 type OrderDocumentsGetCall struct {
38152 s *Service
38153 profileId int64
38154 projectId int64
38155 id int64
38156 urlParams_ gensupport.URLParams
38157 ifNoneMatch_ string
38158 ctx_ context.Context
38159 header_ http.Header
38160 }
38161
38162
38163
38164
38165
38166
38167 func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall {
38168 c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38169 c.profileId = profileId
38170 c.projectId = projectId
38171 c.id = id
38172 return c
38173 }
38174
38175
38176
38177
38178 func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall {
38179 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38180 return c
38181 }
38182
38183
38184
38185
38186
38187
38188 func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall {
38189 c.ifNoneMatch_ = entityTag
38190 return c
38191 }
38192
38193
38194
38195
38196 func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall {
38197 c.ctx_ = ctx
38198 return c
38199 }
38200
38201
38202
38203 func (c *OrderDocumentsGetCall) Header() http.Header {
38204 if c.header_ == nil {
38205 c.header_ = make(http.Header)
38206 }
38207 return c.header_
38208 }
38209
38210 func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
38211 reqHeaders := make(http.Header)
38212 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
38213 for k, v := range c.header_ {
38214 reqHeaders[k] = v
38215 }
38216 reqHeaders.Set("User-Agent", c.s.userAgent())
38217 if c.ifNoneMatch_ != "" {
38218 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38219 }
38220 var body io.Reader = nil
38221 c.urlParams_.Set("alt", alt)
38222 c.urlParams_.Set("prettyPrint", "false")
38223 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}")
38224 urls += "?" + c.urlParams_.Encode()
38225 req, err := http.NewRequest("GET", urls, body)
38226 if err != nil {
38227 return nil, err
38228 }
38229 req.Header = reqHeaders
38230 googleapi.Expand(req.URL, map[string]string{
38231 "profileId": strconv.FormatInt(c.profileId, 10),
38232 "projectId": strconv.FormatInt(c.projectId, 10),
38233 "id": strconv.FormatInt(c.id, 10),
38234 })
38235 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38236 }
38237
38238
38239
38240
38241
38242
38243
38244
38245 func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) {
38246 gensupport.SetOptions(c.urlParams_, opts...)
38247 res, err := c.doRequest("json")
38248 if res != nil && res.StatusCode == http.StatusNotModified {
38249 if res.Body != nil {
38250 res.Body.Close()
38251 }
38252 return nil, &googleapi.Error{
38253 Code: res.StatusCode,
38254 Header: res.Header,
38255 }
38256 }
38257 if err != nil {
38258 return nil, err
38259 }
38260 defer googleapi.CloseBody(res)
38261 if err := googleapi.CheckResponse(res); err != nil {
38262 return nil, err
38263 }
38264 ret := &OrderDocument{
38265 ServerResponse: googleapi.ServerResponse{
38266 Header: res.Header,
38267 HTTPStatusCode: res.StatusCode,
38268 },
38269 }
38270 target := &ret
38271 if err := gensupport.DecodeResponse(target, res); err != nil {
38272 return nil, err
38273 }
38274 return ret, nil
38275
38276
38277
38278
38279
38280
38281
38282
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
38316
38317 }
38318
38319
38320
38321 type OrderDocumentsListCall struct {
38322 s *Service
38323 profileId int64
38324 projectId int64
38325 urlParams_ gensupport.URLParams
38326 ifNoneMatch_ string
38327 ctx_ context.Context
38328 header_ http.Header
38329 }
38330
38331
38332
38333
38334
38335
38336 func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall {
38337 c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38338 c.profileId = profileId
38339 c.projectId = projectId
38340 return c
38341 }
38342
38343
38344
38345 func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall {
38346 c.urlParams_.Set("approved", fmt.Sprint(approved))
38347 return c
38348 }
38349
38350
38351
38352 func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall {
38353 var ids_ []string
38354 for _, v := range ids {
38355 ids_ = append(ids_, fmt.Sprint(v))
38356 }
38357 c.urlParams_.SetMulti("ids", ids_)
38358 return c
38359 }
38360
38361
38362
38363 func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall {
38364 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
38365 return c
38366 }
38367
38368
38369
38370 func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall {
38371 var orderId_ []string
38372 for _, v := range orderId {
38373 orderId_ = append(orderId_, fmt.Sprint(v))
38374 }
38375 c.urlParams_.SetMulti("orderId", orderId_)
38376 return c
38377 }
38378
38379
38380
38381 func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsListCall {
38382 c.urlParams_.Set("pageToken", pageToken)
38383 return c
38384 }
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395 func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall {
38396 c.urlParams_.Set("searchString", searchString)
38397 return c
38398 }
38399
38400
38401
38402 func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall {
38403 var siteId_ []string
38404 for _, v := range siteId {
38405 siteId_ = append(siteId_, fmt.Sprint(v))
38406 }
38407 c.urlParams_.SetMulti("siteId", siteId_)
38408 return c
38409 }
38410
38411
38412
38413
38414
38415
38416
38417
38418 func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsListCall {
38419 c.urlParams_.Set("sortField", sortField)
38420 return c
38421 }
38422
38423
38424
38425
38426
38427
38428
38429
38430 func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsListCall {
38431 c.urlParams_.Set("sortOrder", sortOrder)
38432 return c
38433 }
38434
38435
38436
38437
38438 func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall {
38439 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38440 return c
38441 }
38442
38443
38444
38445
38446
38447
38448 func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall {
38449 c.ifNoneMatch_ = entityTag
38450 return c
38451 }
38452
38453
38454
38455
38456 func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall {
38457 c.ctx_ = ctx
38458 return c
38459 }
38460
38461
38462
38463 func (c *OrderDocumentsListCall) Header() http.Header {
38464 if c.header_ == nil {
38465 c.header_ = make(http.Header)
38466 }
38467 return c.header_
38468 }
38469
38470 func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) {
38471 reqHeaders := make(http.Header)
38472 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
38473 for k, v := range c.header_ {
38474 reqHeaders[k] = v
38475 }
38476 reqHeaders.Set("User-Agent", c.s.userAgent())
38477 if c.ifNoneMatch_ != "" {
38478 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38479 }
38480 var body io.Reader = nil
38481 c.urlParams_.Set("alt", alt)
38482 c.urlParams_.Set("prettyPrint", "false")
38483 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orderDocuments")
38484 urls += "?" + c.urlParams_.Encode()
38485 req, err := http.NewRequest("GET", urls, body)
38486 if err != nil {
38487 return nil, err
38488 }
38489 req.Header = reqHeaders
38490 googleapi.Expand(req.URL, map[string]string{
38491 "profileId": strconv.FormatInt(c.profileId, 10),
38492 "projectId": strconv.FormatInt(c.projectId, 10),
38493 })
38494 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38495 }
38496
38497
38498
38499
38500
38501
38502
38503
38504 func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) {
38505 gensupport.SetOptions(c.urlParams_, opts...)
38506 res, err := c.doRequest("json")
38507 if res != nil && res.StatusCode == http.StatusNotModified {
38508 if res.Body != nil {
38509 res.Body.Close()
38510 }
38511 return nil, &googleapi.Error{
38512 Code: res.StatusCode,
38513 Header: res.Header,
38514 }
38515 }
38516 if err != nil {
38517 return nil, err
38518 }
38519 defer googleapi.CloseBody(res)
38520 if err := googleapi.CheckResponse(res); err != nil {
38521 return nil, err
38522 }
38523 ret := &OrderDocumentsListResponse{
38524 ServerResponse: googleapi.ServerResponse{
38525 Header: res.Header,
38526 HTTPStatusCode: res.StatusCode,
38527 },
38528 }
38529 target := &ret
38530 if err := gensupport.DecodeResponse(target, res); err != nil {
38531 return nil, err
38532 }
38533 return ret, nil
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
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
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641 }
38642
38643
38644
38645
38646 func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error {
38647 c.ctx_ = ctx
38648 defer c.PageToken(c.urlParams_.Get("pageToken"))
38649 for {
38650 x, err := c.Do()
38651 if err != nil {
38652 return err
38653 }
38654 if err := f(x); err != nil {
38655 return err
38656 }
38657 if x.NextPageToken == "" {
38658 return nil
38659 }
38660 c.PageToken(x.NextPageToken)
38661 }
38662 }
38663
38664
38665
38666 type OrdersGetCall struct {
38667 s *Service
38668 profileId int64
38669 projectId int64
38670 id int64
38671 urlParams_ gensupport.URLParams
38672 ifNoneMatch_ string
38673 ctx_ context.Context
38674 header_ http.Header
38675 }
38676
38677
38678
38679
38680
38681
38682 func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall {
38683 c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38684 c.profileId = profileId
38685 c.projectId = projectId
38686 c.id = id
38687 return c
38688 }
38689
38690
38691
38692
38693 func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall {
38694 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38695 return c
38696 }
38697
38698
38699
38700
38701
38702
38703 func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall {
38704 c.ifNoneMatch_ = entityTag
38705 return c
38706 }
38707
38708
38709
38710
38711 func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall {
38712 c.ctx_ = ctx
38713 return c
38714 }
38715
38716
38717
38718 func (c *OrdersGetCall) Header() http.Header {
38719 if c.header_ == nil {
38720 c.header_ = make(http.Header)
38721 }
38722 return c.header_
38723 }
38724
38725 func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) {
38726 reqHeaders := make(http.Header)
38727 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
38728 for k, v := range c.header_ {
38729 reqHeaders[k] = v
38730 }
38731 reqHeaders.Set("User-Agent", c.s.userAgent())
38732 if c.ifNoneMatch_ != "" {
38733 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38734 }
38735 var body io.Reader = nil
38736 c.urlParams_.Set("alt", alt)
38737 c.urlParams_.Set("prettyPrint", "false")
38738 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders/{id}")
38739 urls += "?" + c.urlParams_.Encode()
38740 req, err := http.NewRequest("GET", urls, body)
38741 if err != nil {
38742 return nil, err
38743 }
38744 req.Header = reqHeaders
38745 googleapi.Expand(req.URL, map[string]string{
38746 "profileId": strconv.FormatInt(c.profileId, 10),
38747 "projectId": strconv.FormatInt(c.projectId, 10),
38748 "id": strconv.FormatInt(c.id, 10),
38749 })
38750 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38751 }
38752
38753
38754
38755
38756
38757
38758
38759
38760 func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) {
38761 gensupport.SetOptions(c.urlParams_, opts...)
38762 res, err := c.doRequest("json")
38763 if res != nil && res.StatusCode == http.StatusNotModified {
38764 if res.Body != nil {
38765 res.Body.Close()
38766 }
38767 return nil, &googleapi.Error{
38768 Code: res.StatusCode,
38769 Header: res.Header,
38770 }
38771 }
38772 if err != nil {
38773 return nil, err
38774 }
38775 defer googleapi.CloseBody(res)
38776 if err := googleapi.CheckResponse(res); err != nil {
38777 return nil, err
38778 }
38779 ret := &Order{
38780 ServerResponse: googleapi.ServerResponse{
38781 Header: res.Header,
38782 HTTPStatusCode: res.StatusCode,
38783 },
38784 }
38785 target := &ret
38786 if err := gensupport.DecodeResponse(target, res); err != nil {
38787 return nil, err
38788 }
38789 return ret, nil
38790
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831
38832 }
38833
38834
38835
38836 type OrdersListCall struct {
38837 s *Service
38838 profileId int64
38839 projectId int64
38840 urlParams_ gensupport.URLParams
38841 ifNoneMatch_ string
38842 ctx_ context.Context
38843 header_ http.Header
38844 }
38845
38846
38847
38848
38849
38850
38851 func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall {
38852 c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38853 c.profileId = profileId
38854 c.projectId = projectId
38855 return c
38856 }
38857
38858
38859
38860 func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall {
38861 var ids_ []string
38862 for _, v := range ids {
38863 ids_ = append(ids_, fmt.Sprint(v))
38864 }
38865 c.urlParams_.SetMulti("ids", ids_)
38866 return c
38867 }
38868
38869
38870
38871 func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall {
38872 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
38873 return c
38874 }
38875
38876
38877
38878 func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall {
38879 c.urlParams_.Set("pageToken", pageToken)
38880 return c
38881 }
38882
38883
38884
38885
38886
38887
38888
38889
38890 func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall {
38891 c.urlParams_.Set("searchString", searchString)
38892 return c
38893 }
38894
38895
38896
38897 func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall {
38898 var siteId_ []string
38899 for _, v := range siteId {
38900 siteId_ = append(siteId_, fmt.Sprint(v))
38901 }
38902 c.urlParams_.SetMulti("siteId", siteId_)
38903 return c
38904 }
38905
38906
38907
38908
38909
38910
38911
38912
38913 func (c *OrdersListCall) SortField(sortField string) *OrdersListCall {
38914 c.urlParams_.Set("sortField", sortField)
38915 return c
38916 }
38917
38918
38919
38920
38921
38922
38923
38924
38925 func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall {
38926 c.urlParams_.Set("sortOrder", sortOrder)
38927 return c
38928 }
38929
38930
38931
38932
38933 func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall {
38934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38935 return c
38936 }
38937
38938
38939
38940
38941
38942
38943 func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall {
38944 c.ifNoneMatch_ = entityTag
38945 return c
38946 }
38947
38948
38949
38950
38951 func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall {
38952 c.ctx_ = ctx
38953 return c
38954 }
38955
38956
38957
38958 func (c *OrdersListCall) Header() http.Header {
38959 if c.header_ == nil {
38960 c.header_ = make(http.Header)
38961 }
38962 return c.header_
38963 }
38964
38965 func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) {
38966 reqHeaders := make(http.Header)
38967 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
38968 for k, v := range c.header_ {
38969 reqHeaders[k] = v
38970 }
38971 reqHeaders.Set("User-Agent", c.s.userAgent())
38972 if c.ifNoneMatch_ != "" {
38973 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38974 }
38975 var body io.Reader = nil
38976 c.urlParams_.Set("alt", alt)
38977 c.urlParams_.Set("prettyPrint", "false")
38978 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{projectId}/orders")
38979 urls += "?" + c.urlParams_.Encode()
38980 req, err := http.NewRequest("GET", urls, body)
38981 if err != nil {
38982 return nil, err
38983 }
38984 req.Header = reqHeaders
38985 googleapi.Expand(req.URL, map[string]string{
38986 "profileId": strconv.FormatInt(c.profileId, 10),
38987 "projectId": strconv.FormatInt(c.projectId, 10),
38988 })
38989 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38990 }
38991
38992
38993
38994
38995
38996
38997
38998
38999 func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) {
39000 gensupport.SetOptions(c.urlParams_, opts...)
39001 res, err := c.doRequest("json")
39002 if res != nil && res.StatusCode == http.StatusNotModified {
39003 if res.Body != nil {
39004 res.Body.Close()
39005 }
39006 return nil, &googleapi.Error{
39007 Code: res.StatusCode,
39008 Header: res.Header,
39009 }
39010 }
39011 if err != nil {
39012 return nil, err
39013 }
39014 defer googleapi.CloseBody(res)
39015 if err := googleapi.CheckResponse(res); err != nil {
39016 return nil, err
39017 }
39018 ret := &OrdersListResponse{
39019 ServerResponse: googleapi.ServerResponse{
39020 Header: res.Header,
39021 HTTPStatusCode: res.StatusCode,
39022 },
39023 }
39024 target := &ret
39025 if err := gensupport.DecodeResponse(target, res); err != nil {
39026 return nil, err
39027 }
39028 return ret, nil
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090
39091
39092
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124 }
39125
39126
39127
39128
39129 func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error {
39130 c.ctx_ = ctx
39131 defer c.PageToken(c.urlParams_.Get("pageToken"))
39132 for {
39133 x, err := c.Do()
39134 if err != nil {
39135 return err
39136 }
39137 if err := f(x); err != nil {
39138 return err
39139 }
39140 if x.NextPageToken == "" {
39141 return nil
39142 }
39143 c.PageToken(x.NextPageToken)
39144 }
39145 }
39146
39147
39148
39149 type PlacementGroupsGetCall struct {
39150 s *Service
39151 profileId int64
39152 id int64
39153 urlParams_ gensupport.URLParams
39154 ifNoneMatch_ string
39155 ctx_ context.Context
39156 header_ http.Header
39157 }
39158
39159
39160
39161
39162
39163 func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall {
39164 c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39165 c.profileId = profileId
39166 c.id = id
39167 return c
39168 }
39169
39170
39171
39172
39173 func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall {
39174 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39175 return c
39176 }
39177
39178
39179
39180
39181
39182
39183 func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall {
39184 c.ifNoneMatch_ = entityTag
39185 return c
39186 }
39187
39188
39189
39190
39191 func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall {
39192 c.ctx_ = ctx
39193 return c
39194 }
39195
39196
39197
39198 func (c *PlacementGroupsGetCall) Header() http.Header {
39199 if c.header_ == nil {
39200 c.header_ = make(http.Header)
39201 }
39202 return c.header_
39203 }
39204
39205 func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) {
39206 reqHeaders := make(http.Header)
39207 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
39208 for k, v := range c.header_ {
39209 reqHeaders[k] = v
39210 }
39211 reqHeaders.Set("User-Agent", c.s.userAgent())
39212 if c.ifNoneMatch_ != "" {
39213 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39214 }
39215 var body io.Reader = nil
39216 c.urlParams_.Set("alt", alt)
39217 c.urlParams_.Set("prettyPrint", "false")
39218 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups/{id}")
39219 urls += "?" + c.urlParams_.Encode()
39220 req, err := http.NewRequest("GET", urls, body)
39221 if err != nil {
39222 return nil, err
39223 }
39224 req.Header = reqHeaders
39225 googleapi.Expand(req.URL, map[string]string{
39226 "profileId": strconv.FormatInt(c.profileId, 10),
39227 "id": strconv.FormatInt(c.id, 10),
39228 })
39229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39230 }
39231
39232
39233
39234
39235
39236
39237
39238
39239 func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
39240 gensupport.SetOptions(c.urlParams_, opts...)
39241 res, err := c.doRequest("json")
39242 if res != nil && res.StatusCode == http.StatusNotModified {
39243 if res.Body != nil {
39244 res.Body.Close()
39245 }
39246 return nil, &googleapi.Error{
39247 Code: res.StatusCode,
39248 Header: res.Header,
39249 }
39250 }
39251 if err != nil {
39252 return nil, err
39253 }
39254 defer googleapi.CloseBody(res)
39255 if err := googleapi.CheckResponse(res); err != nil {
39256 return nil, err
39257 }
39258 ret := &PlacementGroup{
39259 ServerResponse: googleapi.ServerResponse{
39260 Header: res.Header,
39261 HTTPStatusCode: res.StatusCode,
39262 },
39263 }
39264 target := &ret
39265 if err := gensupport.DecodeResponse(target, res); err != nil {
39266 return nil, err
39267 }
39268 return ret, nil
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303 }
39304
39305
39306
39307 type PlacementGroupsInsertCall struct {
39308 s *Service
39309 profileId int64
39310 placementgroup *PlacementGroup
39311 urlParams_ gensupport.URLParams
39312 ctx_ context.Context
39313 header_ http.Header
39314 }
39315
39316
39317
39318
39319 func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall {
39320 c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39321 c.profileId = profileId
39322 c.placementgroup = placementgroup
39323 return c
39324 }
39325
39326
39327
39328
39329 func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall {
39330 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39331 return c
39332 }
39333
39334
39335
39336
39337 func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall {
39338 c.ctx_ = ctx
39339 return c
39340 }
39341
39342
39343
39344 func (c *PlacementGroupsInsertCall) Header() http.Header {
39345 if c.header_ == nil {
39346 c.header_ = make(http.Header)
39347 }
39348 return c.header_
39349 }
39350
39351 func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) {
39352 reqHeaders := make(http.Header)
39353 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
39354 for k, v := range c.header_ {
39355 reqHeaders[k] = v
39356 }
39357 reqHeaders.Set("User-Agent", c.s.userAgent())
39358 var body io.Reader = nil
39359 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup)
39360 if err != nil {
39361 return nil, err
39362 }
39363 reqHeaders.Set("Content-Type", "application/json")
39364 c.urlParams_.Set("alt", alt)
39365 c.urlParams_.Set("prettyPrint", "false")
39366 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
39367 urls += "?" + c.urlParams_.Encode()
39368 req, err := http.NewRequest("POST", urls, body)
39369 if err != nil {
39370 return nil, err
39371 }
39372 req.Header = reqHeaders
39373 googleapi.Expand(req.URL, map[string]string{
39374 "profileId": strconv.FormatInt(c.profileId, 10),
39375 })
39376 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39377 }
39378
39379
39380
39381
39382
39383
39384
39385
39386 func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
39387 gensupport.SetOptions(c.urlParams_, opts...)
39388 res, err := c.doRequest("json")
39389 if res != nil && res.StatusCode == http.StatusNotModified {
39390 if res.Body != nil {
39391 res.Body.Close()
39392 }
39393 return nil, &googleapi.Error{
39394 Code: res.StatusCode,
39395 Header: res.Header,
39396 }
39397 }
39398 if err != nil {
39399 return nil, err
39400 }
39401 defer googleapi.CloseBody(res)
39402 if err := googleapi.CheckResponse(res); err != nil {
39403 return nil, err
39404 }
39405 ret := &PlacementGroup{
39406 ServerResponse: googleapi.ServerResponse{
39407 Header: res.Header,
39408 HTTPStatusCode: res.StatusCode,
39409 },
39410 }
39411 target := &ret
39412 if err := gensupport.DecodeResponse(target, res); err != nil {
39413 return nil, err
39414 }
39415 return ret, nil
39416
39417
39418
39419
39420
39421
39422
39423
39424
39425
39426
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445 }
39446
39447
39448
39449 type PlacementGroupsListCall struct {
39450 s *Service
39451 profileId int64
39452 urlParams_ gensupport.URLParams
39453 ifNoneMatch_ string
39454 ctx_ context.Context
39455 header_ http.Header
39456 }
39457
39458
39459
39460
39461
39462 func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall {
39463 c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39464 c.profileId = profileId
39465 return c
39466 }
39467
39468
39469
39470 func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall {
39471 var advertiserIds_ []string
39472 for _, v := range advertiserIds {
39473 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
39474 }
39475 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
39476 return c
39477 }
39478
39479
39480
39481
39482 func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall {
39483 c.urlParams_.Set("archived", fmt.Sprint(archived))
39484 return c
39485 }
39486
39487
39488
39489 func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall {
39490 var campaignIds_ []string
39491 for _, v := range campaignIds {
39492 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
39493 }
39494 c.urlParams_.SetMulti("campaignIds", campaignIds_)
39495 return c
39496 }
39497
39498
39499
39500
39501 func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall {
39502 var contentCategoryIds_ []string
39503 for _, v := range contentCategoryIds {
39504 contentCategoryIds_ = append(contentCategoryIds_, fmt.Sprint(v))
39505 }
39506 c.urlParams_.SetMulti("contentCategoryIds", contentCategoryIds_)
39507 return c
39508 }
39509
39510
39511
39512
39513 func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall {
39514 var directorySiteIds_ []string
39515 for _, v := range directorySiteIds {
39516 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
39517 }
39518 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
39519 return c
39520 }
39521
39522
39523
39524 func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall {
39525 var ids_ []string
39526 for _, v := range ids {
39527 ids_ = append(ids_, fmt.Sprint(v))
39528 }
39529 c.urlParams_.SetMulti("ids", ids_)
39530 return c
39531 }
39532
39533
39534
39535
39536 func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall {
39537 c.urlParams_.Set("maxEndDate", maxEndDate)
39538 return c
39539 }
39540
39541
39542
39543 func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall {
39544 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
39545 return c
39546 }
39547
39548
39549
39550
39551 func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGroupsListCall {
39552 c.urlParams_.Set("maxStartDate", maxStartDate)
39553 return c
39554 }
39555
39556
39557
39558
39559 func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall {
39560 c.urlParams_.Set("minEndDate", minEndDate)
39561 return c
39562 }
39563
39564
39565
39566
39567 func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall {
39568 c.urlParams_.Set("minStartDate", minStartDate)
39569 return c
39570 }
39571
39572
39573
39574 func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsListCall {
39575 c.urlParams_.Set("pageToken", pageToken)
39576 return c
39577 }
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591 func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) *PlacementGroupsListCall {
39592 c.urlParams_.Set("placementGroupType", placementGroupType)
39593 return c
39594 }
39595
39596
39597
39598
39599 func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall {
39600 var placementStrategyIds_ []string
39601 for _, v := range placementStrategyIds {
39602 placementStrategyIds_ = append(placementStrategyIds_, fmt.Sprint(v))
39603 }
39604 c.urlParams_.SetMulti("placementStrategyIds", placementStrategyIds_)
39605 return c
39606 }
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619 func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *PlacementGroupsListCall {
39620 c.urlParams_.SetMulti("pricingTypes", append([]string{}, pricingTypes...))
39621 return c
39622 }
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633 func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall {
39634 c.urlParams_.Set("searchString", searchString)
39635 return c
39636 }
39637
39638
39639
39640 func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall {
39641 var siteIds_ []string
39642 for _, v := range siteIds {
39643 siteIds_ = append(siteIds_, fmt.Sprint(v))
39644 }
39645 c.urlParams_.SetMulti("siteIds", siteIds_)
39646 return c
39647 }
39648
39649
39650
39651
39652
39653
39654
39655
39656 func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsListCall {
39657 c.urlParams_.Set("sortField", sortField)
39658 return c
39659 }
39660
39661
39662
39663
39664
39665
39666
39667
39668 func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsListCall {
39669 c.urlParams_.Set("sortOrder", sortOrder)
39670 return c
39671 }
39672
39673
39674
39675
39676 func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall {
39677 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39678 return c
39679 }
39680
39681
39682
39683
39684
39685
39686 func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall {
39687 c.ifNoneMatch_ = entityTag
39688 return c
39689 }
39690
39691
39692
39693
39694 func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall {
39695 c.ctx_ = ctx
39696 return c
39697 }
39698
39699
39700
39701 func (c *PlacementGroupsListCall) Header() http.Header {
39702 if c.header_ == nil {
39703 c.header_ = make(http.Header)
39704 }
39705 return c.header_
39706 }
39707
39708 func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) {
39709 reqHeaders := make(http.Header)
39710 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
39711 for k, v := range c.header_ {
39712 reqHeaders[k] = v
39713 }
39714 reqHeaders.Set("User-Agent", c.s.userAgent())
39715 if c.ifNoneMatch_ != "" {
39716 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39717 }
39718 var body io.Reader = nil
39719 c.urlParams_.Set("alt", alt)
39720 c.urlParams_.Set("prettyPrint", "false")
39721 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
39722 urls += "?" + c.urlParams_.Encode()
39723 req, err := http.NewRequest("GET", urls, body)
39724 if err != nil {
39725 return nil, err
39726 }
39727 req.Header = reqHeaders
39728 googleapi.Expand(req.URL, map[string]string{
39729 "profileId": strconv.FormatInt(c.profileId, 10),
39730 })
39731 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39732 }
39733
39734
39735
39736
39737
39738
39739
39740
39741 func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) {
39742 gensupport.SetOptions(c.urlParams_, opts...)
39743 res, err := c.doRequest("json")
39744 if res != nil && res.StatusCode == http.StatusNotModified {
39745 if res.Body != nil {
39746 res.Body.Close()
39747 }
39748 return nil, &googleapi.Error{
39749 Code: res.StatusCode,
39750 Header: res.Header,
39751 }
39752 }
39753 if err != nil {
39754 return nil, err
39755 }
39756 defer googleapi.CloseBody(res)
39757 if err := googleapi.CheckResponse(res); err != nil {
39758 return nil, err
39759 }
39760 ret := &PlacementGroupsListResponse{
39761 ServerResponse: googleapi.ServerResponse{
39762 Header: res.Header,
39763 HTTPStatusCode: res.StatusCode,
39764 },
39765 }
39766 target := &ret
39767 if err := gensupport.DecodeResponse(target, res); err != nil {
39768 return nil, err
39769 }
39770 return ret, nil
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
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
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
39947
39948
39949
39950
39951
39952
39953 }
39954
39955
39956
39957
39958 func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error {
39959 c.ctx_ = ctx
39960 defer c.PageToken(c.urlParams_.Get("pageToken"))
39961 for {
39962 x, err := c.Do()
39963 if err != nil {
39964 return err
39965 }
39966 if err := f(x); err != nil {
39967 return err
39968 }
39969 if x.NextPageToken == "" {
39970 return nil
39971 }
39972 c.PageToken(x.NextPageToken)
39973 }
39974 }
39975
39976
39977
39978 type PlacementGroupsPatchCall struct {
39979 s *Service
39980 profileId int64
39981 placementgroup *PlacementGroup
39982 urlParams_ gensupport.URLParams
39983 ctx_ context.Context
39984 header_ http.Header
39985 }
39986
39987
39988
39989
39990
39991
39992 func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall {
39993 c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39994 c.profileId = profileId
39995 c.urlParams_.Set("id", fmt.Sprint(id))
39996 c.placementgroup = placementgroup
39997 return c
39998 }
39999
40000
40001
40002
40003 func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall {
40004 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40005 return c
40006 }
40007
40008
40009
40010
40011 func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall {
40012 c.ctx_ = ctx
40013 return c
40014 }
40015
40016
40017
40018 func (c *PlacementGroupsPatchCall) Header() http.Header {
40019 if c.header_ == nil {
40020 c.header_ = make(http.Header)
40021 }
40022 return c.header_
40023 }
40024
40025 func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
40026 reqHeaders := make(http.Header)
40027 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
40028 for k, v := range c.header_ {
40029 reqHeaders[k] = v
40030 }
40031 reqHeaders.Set("User-Agent", c.s.userAgent())
40032 var body io.Reader = nil
40033 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup)
40034 if err != nil {
40035 return nil, err
40036 }
40037 reqHeaders.Set("Content-Type", "application/json")
40038 c.urlParams_.Set("alt", alt)
40039 c.urlParams_.Set("prettyPrint", "false")
40040 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
40041 urls += "?" + c.urlParams_.Encode()
40042 req, err := http.NewRequest("PATCH", urls, body)
40043 if err != nil {
40044 return nil, err
40045 }
40046 req.Header = reqHeaders
40047 googleapi.Expand(req.URL, map[string]string{
40048 "profileId": strconv.FormatInt(c.profileId, 10),
40049 })
40050 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40051 }
40052
40053
40054
40055
40056
40057
40058
40059
40060 func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
40061 gensupport.SetOptions(c.urlParams_, opts...)
40062 res, err := c.doRequest("json")
40063 if res != nil && res.StatusCode == http.StatusNotModified {
40064 if res.Body != nil {
40065 res.Body.Close()
40066 }
40067 return nil, &googleapi.Error{
40068 Code: res.StatusCode,
40069 Header: res.Header,
40070 }
40071 }
40072 if err != nil {
40073 return nil, err
40074 }
40075 defer googleapi.CloseBody(res)
40076 if err := googleapi.CheckResponse(res); err != nil {
40077 return nil, err
40078 }
40079 ret := &PlacementGroup{
40080 ServerResponse: googleapi.ServerResponse{
40081 Header: res.Header,
40082 HTTPStatusCode: res.StatusCode,
40083 },
40084 }
40085 target := &ret
40086 if err := gensupport.DecodeResponse(target, res); err != nil {
40087 return nil, err
40088 }
40089 return ret, nil
40090
40091
40092
40093
40094
40095
40096
40097
40098
40099
40100
40101
40102
40103
40104
40105
40106
40107
40108
40109
40110
40111
40112
40113
40114
40115
40116
40117
40118
40119
40120
40121
40122
40123
40124
40125
40126
40127 }
40128
40129
40130
40131 type PlacementGroupsUpdateCall struct {
40132 s *Service
40133 profileId int64
40134 placementgroup *PlacementGroup
40135 urlParams_ gensupport.URLParams
40136 ctx_ context.Context
40137 header_ http.Header
40138 }
40139
40140
40141
40142
40143 func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall {
40144 c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40145 c.profileId = profileId
40146 c.placementgroup = placementgroup
40147 return c
40148 }
40149
40150
40151
40152
40153 func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall {
40154 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40155 return c
40156 }
40157
40158
40159
40160
40161 func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall {
40162 c.ctx_ = ctx
40163 return c
40164 }
40165
40166
40167
40168 func (c *PlacementGroupsUpdateCall) Header() http.Header {
40169 if c.header_ == nil {
40170 c.header_ = make(http.Header)
40171 }
40172 return c.header_
40173 }
40174
40175 func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
40176 reqHeaders := make(http.Header)
40177 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
40178 for k, v := range c.header_ {
40179 reqHeaders[k] = v
40180 }
40181 reqHeaders.Set("User-Agent", c.s.userAgent())
40182 var body io.Reader = nil
40183 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup)
40184 if err != nil {
40185 return nil, err
40186 }
40187 reqHeaders.Set("Content-Type", "application/json")
40188 c.urlParams_.Set("alt", alt)
40189 c.urlParams_.Set("prettyPrint", "false")
40190 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups")
40191 urls += "?" + c.urlParams_.Encode()
40192 req, err := http.NewRequest("PUT", urls, body)
40193 if err != nil {
40194 return nil, err
40195 }
40196 req.Header = reqHeaders
40197 googleapi.Expand(req.URL, map[string]string{
40198 "profileId": strconv.FormatInt(c.profileId, 10),
40199 })
40200 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40201 }
40202
40203
40204
40205
40206
40207
40208
40209
40210 func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) {
40211 gensupport.SetOptions(c.urlParams_, opts...)
40212 res, err := c.doRequest("json")
40213 if res != nil && res.StatusCode == http.StatusNotModified {
40214 if res.Body != nil {
40215 res.Body.Close()
40216 }
40217 return nil, &googleapi.Error{
40218 Code: res.StatusCode,
40219 Header: res.Header,
40220 }
40221 }
40222 if err != nil {
40223 return nil, err
40224 }
40225 defer googleapi.CloseBody(res)
40226 if err := googleapi.CheckResponse(res); err != nil {
40227 return nil, err
40228 }
40229 ret := &PlacementGroup{
40230 ServerResponse: googleapi.ServerResponse{
40231 Header: res.Header,
40232 HTTPStatusCode: res.StatusCode,
40233 },
40234 }
40235 target := &ret
40236 if err := gensupport.DecodeResponse(target, res); err != nil {
40237 return nil, err
40238 }
40239 return ret, nil
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 type PlacementStrategiesDeleteCall struct {
40274 s *Service
40275 profileId int64
40276 id int64
40277 urlParams_ gensupport.URLParams
40278 ctx_ context.Context
40279 header_ http.Header
40280 }
40281
40282
40283
40284
40285
40286 func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall {
40287 c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40288 c.profileId = profileId
40289 c.id = id
40290 return c
40291 }
40292
40293
40294
40295
40296 func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall {
40297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40298 return c
40299 }
40300
40301
40302
40303
40304 func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall {
40305 c.ctx_ = ctx
40306 return c
40307 }
40308
40309
40310
40311 func (c *PlacementStrategiesDeleteCall) Header() http.Header {
40312 if c.header_ == nil {
40313 c.header_ = make(http.Header)
40314 }
40315 return c.header_
40316 }
40317
40318 func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) {
40319 reqHeaders := make(http.Header)
40320 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
40321 for k, v := range c.header_ {
40322 reqHeaders[k] = v
40323 }
40324 reqHeaders.Set("User-Agent", c.s.userAgent())
40325 var body io.Reader = nil
40326 c.urlParams_.Set("alt", alt)
40327 c.urlParams_.Set("prettyPrint", "false")
40328 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}")
40329 urls += "?" + c.urlParams_.Encode()
40330 req, err := http.NewRequest("DELETE", urls, body)
40331 if err != nil {
40332 return nil, err
40333 }
40334 req.Header = reqHeaders
40335 googleapi.Expand(req.URL, map[string]string{
40336 "profileId": strconv.FormatInt(c.profileId, 10),
40337 "id": strconv.FormatInt(c.id, 10),
40338 })
40339 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40340 }
40341
40342
40343 func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error {
40344 gensupport.SetOptions(c.urlParams_, opts...)
40345 res, err := c.doRequest("json")
40346 if err != nil {
40347 return err
40348 }
40349 defer googleapi.CloseBody(res)
40350 if err := googleapi.CheckResponse(res); err != nil {
40351 return err
40352 }
40353 return nil
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 type PlacementStrategiesGetCall struct {
40390 s *Service
40391 profileId int64
40392 id int64
40393 urlParams_ gensupport.URLParams
40394 ifNoneMatch_ string
40395 ctx_ context.Context
40396 header_ http.Header
40397 }
40398
40399
40400
40401
40402
40403 func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall {
40404 c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40405 c.profileId = profileId
40406 c.id = id
40407 return c
40408 }
40409
40410
40411
40412
40413 func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall {
40414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40415 return c
40416 }
40417
40418
40419
40420
40421
40422
40423 func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall {
40424 c.ifNoneMatch_ = entityTag
40425 return c
40426 }
40427
40428
40429
40430
40431 func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall {
40432 c.ctx_ = ctx
40433 return c
40434 }
40435
40436
40437
40438 func (c *PlacementStrategiesGetCall) Header() http.Header {
40439 if c.header_ == nil {
40440 c.header_ = make(http.Header)
40441 }
40442 return c.header_
40443 }
40444
40445 func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) {
40446 reqHeaders := make(http.Header)
40447 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
40448 for k, v := range c.header_ {
40449 reqHeaders[k] = v
40450 }
40451 reqHeaders.Set("User-Agent", c.s.userAgent())
40452 if c.ifNoneMatch_ != "" {
40453 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40454 }
40455 var body io.Reader = nil
40456 c.urlParams_.Set("alt", alt)
40457 c.urlParams_.Set("prettyPrint", "false")
40458 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies/{id}")
40459 urls += "?" + c.urlParams_.Encode()
40460 req, err := http.NewRequest("GET", urls, body)
40461 if err != nil {
40462 return nil, err
40463 }
40464 req.Header = reqHeaders
40465 googleapi.Expand(req.URL, map[string]string{
40466 "profileId": strconv.FormatInt(c.profileId, 10),
40467 "id": strconv.FormatInt(c.id, 10),
40468 })
40469 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40470 }
40471
40472
40473
40474
40475
40476
40477
40478
40479 func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
40480 gensupport.SetOptions(c.urlParams_, opts...)
40481 res, err := c.doRequest("json")
40482 if res != nil && res.StatusCode == http.StatusNotModified {
40483 if res.Body != nil {
40484 res.Body.Close()
40485 }
40486 return nil, &googleapi.Error{
40487 Code: res.StatusCode,
40488 Header: res.Header,
40489 }
40490 }
40491 if err != nil {
40492 return nil, err
40493 }
40494 defer googleapi.CloseBody(res)
40495 if err := googleapi.CheckResponse(res); err != nil {
40496 return nil, err
40497 }
40498 ret := &PlacementStrategy{
40499 ServerResponse: googleapi.ServerResponse{
40500 Header: res.Header,
40501 HTTPStatusCode: res.StatusCode,
40502 },
40503 }
40504 target := &ret
40505 if err := gensupport.DecodeResponse(target, res); err != nil {
40506 return nil, err
40507 }
40508 return ret, nil
40509
40510
40511
40512
40513
40514
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
40530
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540
40541
40542
40543 }
40544
40545
40546
40547 type PlacementStrategiesInsertCall struct {
40548 s *Service
40549 profileId int64
40550 placementstrategy *PlacementStrategy
40551 urlParams_ gensupport.URLParams
40552 ctx_ context.Context
40553 header_ http.Header
40554 }
40555
40556
40557
40558
40559 func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall {
40560 c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40561 c.profileId = profileId
40562 c.placementstrategy = placementstrategy
40563 return c
40564 }
40565
40566
40567
40568
40569 func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall {
40570 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40571 return c
40572 }
40573
40574
40575
40576
40577 func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall {
40578 c.ctx_ = ctx
40579 return c
40580 }
40581
40582
40583
40584 func (c *PlacementStrategiesInsertCall) Header() http.Header {
40585 if c.header_ == nil {
40586 c.header_ = make(http.Header)
40587 }
40588 return c.header_
40589 }
40590
40591 func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) {
40592 reqHeaders := make(http.Header)
40593 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
40594 for k, v := range c.header_ {
40595 reqHeaders[k] = v
40596 }
40597 reqHeaders.Set("User-Agent", c.s.userAgent())
40598 var body io.Reader = nil
40599 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy)
40600 if err != nil {
40601 return nil, err
40602 }
40603 reqHeaders.Set("Content-Type", "application/json")
40604 c.urlParams_.Set("alt", alt)
40605 c.urlParams_.Set("prettyPrint", "false")
40606 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
40607 urls += "?" + c.urlParams_.Encode()
40608 req, err := http.NewRequest("POST", urls, body)
40609 if err != nil {
40610 return nil, err
40611 }
40612 req.Header = reqHeaders
40613 googleapi.Expand(req.URL, map[string]string{
40614 "profileId": strconv.FormatInt(c.profileId, 10),
40615 })
40616 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40617 }
40618
40619
40620
40621
40622
40623
40624
40625
40626 func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
40627 gensupport.SetOptions(c.urlParams_, opts...)
40628 res, err := c.doRequest("json")
40629 if res != nil && res.StatusCode == http.StatusNotModified {
40630 if res.Body != nil {
40631 res.Body.Close()
40632 }
40633 return nil, &googleapi.Error{
40634 Code: res.StatusCode,
40635 Header: res.Header,
40636 }
40637 }
40638 if err != nil {
40639 return nil, err
40640 }
40641 defer googleapi.CloseBody(res)
40642 if err := googleapi.CheckResponse(res); err != nil {
40643 return nil, err
40644 }
40645 ret := &PlacementStrategy{
40646 ServerResponse: googleapi.ServerResponse{
40647 Header: res.Header,
40648 HTTPStatusCode: res.StatusCode,
40649 },
40650 }
40651 target := &ret
40652 if err := gensupport.DecodeResponse(target, res); err != nil {
40653 return nil, err
40654 }
40655 return ret, nil
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685 }
40686
40687
40688
40689 type PlacementStrategiesListCall struct {
40690 s *Service
40691 profileId int64
40692 urlParams_ gensupport.URLParams
40693 ifNoneMatch_ string
40694 ctx_ context.Context
40695 header_ http.Header
40696 }
40697
40698
40699
40700
40701
40702 func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall {
40703 c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40704 c.profileId = profileId
40705 return c
40706 }
40707
40708
40709
40710 func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall {
40711 var ids_ []string
40712 for _, v := range ids {
40713 ids_ = append(ids_, fmt.Sprint(v))
40714 }
40715 c.urlParams_.SetMulti("ids", ids_)
40716 return c
40717 }
40718
40719
40720
40721 func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall {
40722 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
40723 return c
40724 }
40725
40726
40727
40728 func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStrategiesListCall {
40729 c.urlParams_.Set("pageToken", pageToken)
40730 return c
40731 }
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742 func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall {
40743 c.urlParams_.Set("searchString", searchString)
40744 return c
40745 }
40746
40747
40748
40749
40750
40751
40752
40753
40754 func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStrategiesListCall {
40755 c.urlParams_.Set("sortField", sortField)
40756 return c
40757 }
40758
40759
40760
40761
40762
40763
40764
40765
40766 func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStrategiesListCall {
40767 c.urlParams_.Set("sortOrder", sortOrder)
40768 return c
40769 }
40770
40771
40772
40773
40774 func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall {
40775 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40776 return c
40777 }
40778
40779
40780
40781
40782
40783
40784 func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall {
40785 c.ifNoneMatch_ = entityTag
40786 return c
40787 }
40788
40789
40790
40791
40792 func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall {
40793 c.ctx_ = ctx
40794 return c
40795 }
40796
40797
40798
40799 func (c *PlacementStrategiesListCall) Header() http.Header {
40800 if c.header_ == nil {
40801 c.header_ = make(http.Header)
40802 }
40803 return c.header_
40804 }
40805
40806 func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) {
40807 reqHeaders := make(http.Header)
40808 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
40809 for k, v := range c.header_ {
40810 reqHeaders[k] = v
40811 }
40812 reqHeaders.Set("User-Agent", c.s.userAgent())
40813 if c.ifNoneMatch_ != "" {
40814 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40815 }
40816 var body io.Reader = nil
40817 c.urlParams_.Set("alt", alt)
40818 c.urlParams_.Set("prettyPrint", "false")
40819 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
40820 urls += "?" + c.urlParams_.Encode()
40821 req, err := http.NewRequest("GET", urls, body)
40822 if err != nil {
40823 return nil, err
40824 }
40825 req.Header = reqHeaders
40826 googleapi.Expand(req.URL, map[string]string{
40827 "profileId": strconv.FormatInt(c.profileId, 10),
40828 })
40829 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40830 }
40831
40832
40833
40834
40835
40836
40837
40838
40839 func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) {
40840 gensupport.SetOptions(c.urlParams_, opts...)
40841 res, err := c.doRequest("json")
40842 if res != nil && res.StatusCode == http.StatusNotModified {
40843 if res.Body != nil {
40844 res.Body.Close()
40845 }
40846 return nil, &googleapi.Error{
40847 Code: res.StatusCode,
40848 Header: res.Header,
40849 }
40850 }
40851 if err != nil {
40852 return nil, err
40853 }
40854 defer googleapi.CloseBody(res)
40855 if err := googleapi.CheckResponse(res); err != nil {
40856 return nil, err
40857 }
40858 ret := &PlacementStrategiesListResponse{
40859 ServerResponse: googleapi.ServerResponse{
40860 Header: res.Header,
40861 HTTPStatusCode: res.StatusCode,
40862 },
40863 }
40864 target := &ret
40865 if err := gensupport.DecodeResponse(target, res); err != nil {
40866 return nil, err
40867 }
40868 return ret, nil
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949 }
40950
40951
40952
40953
40954 func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error {
40955 c.ctx_ = ctx
40956 defer c.PageToken(c.urlParams_.Get("pageToken"))
40957 for {
40958 x, err := c.Do()
40959 if err != nil {
40960 return err
40961 }
40962 if err := f(x); err != nil {
40963 return err
40964 }
40965 if x.NextPageToken == "" {
40966 return nil
40967 }
40968 c.PageToken(x.NextPageToken)
40969 }
40970 }
40971
40972
40973
40974 type PlacementStrategiesPatchCall struct {
40975 s *Service
40976 profileId int64
40977 placementstrategy *PlacementStrategy
40978 urlParams_ gensupport.URLParams
40979 ctx_ context.Context
40980 header_ http.Header
40981 }
40982
40983
40984
40985
40986
40987
40988 func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall {
40989 c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40990 c.profileId = profileId
40991 c.urlParams_.Set("id", fmt.Sprint(id))
40992 c.placementstrategy = placementstrategy
40993 return c
40994 }
40995
40996
40997
40998
40999 func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall {
41000 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41001 return c
41002 }
41003
41004
41005
41006
41007 func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall {
41008 c.ctx_ = ctx
41009 return c
41010 }
41011
41012
41013
41014 func (c *PlacementStrategiesPatchCall) Header() http.Header {
41015 if c.header_ == nil {
41016 c.header_ = make(http.Header)
41017 }
41018 return c.header_
41019 }
41020
41021 func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) {
41022 reqHeaders := make(http.Header)
41023 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
41024 for k, v := range c.header_ {
41025 reqHeaders[k] = v
41026 }
41027 reqHeaders.Set("User-Agent", c.s.userAgent())
41028 var body io.Reader = nil
41029 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy)
41030 if err != nil {
41031 return nil, err
41032 }
41033 reqHeaders.Set("Content-Type", "application/json")
41034 c.urlParams_.Set("alt", alt)
41035 c.urlParams_.Set("prettyPrint", "false")
41036 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
41037 urls += "?" + c.urlParams_.Encode()
41038 req, err := http.NewRequest("PATCH", urls, body)
41039 if err != nil {
41040 return nil, err
41041 }
41042 req.Header = reqHeaders
41043 googleapi.Expand(req.URL, map[string]string{
41044 "profileId": strconv.FormatInt(c.profileId, 10),
41045 })
41046 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41047 }
41048
41049
41050
41051
41052
41053
41054
41055
41056 func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
41057 gensupport.SetOptions(c.urlParams_, opts...)
41058 res, err := c.doRequest("json")
41059 if res != nil && res.StatusCode == http.StatusNotModified {
41060 if res.Body != nil {
41061 res.Body.Close()
41062 }
41063 return nil, &googleapi.Error{
41064 Code: res.StatusCode,
41065 Header: res.Header,
41066 }
41067 }
41068 if err != nil {
41069 return nil, err
41070 }
41071 defer googleapi.CloseBody(res)
41072 if err := googleapi.CheckResponse(res); err != nil {
41073 return nil, err
41074 }
41075 ret := &PlacementStrategy{
41076 ServerResponse: googleapi.ServerResponse{
41077 Header: res.Header,
41078 HTTPStatusCode: res.StatusCode,
41079 },
41080 }
41081 target := &ret
41082 if err := gensupport.DecodeResponse(target, res); err != nil {
41083 return nil, err
41084 }
41085 return ret, nil
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123 }
41124
41125
41126
41127 type PlacementStrategiesUpdateCall struct {
41128 s *Service
41129 profileId int64
41130 placementstrategy *PlacementStrategy
41131 urlParams_ gensupport.URLParams
41132 ctx_ context.Context
41133 header_ http.Header
41134 }
41135
41136
41137
41138
41139 func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall {
41140 c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41141 c.profileId = profileId
41142 c.placementstrategy = placementstrategy
41143 return c
41144 }
41145
41146
41147
41148
41149 func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall {
41150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41151 return c
41152 }
41153
41154
41155
41156
41157 func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall {
41158 c.ctx_ = ctx
41159 return c
41160 }
41161
41162
41163
41164 func (c *PlacementStrategiesUpdateCall) Header() http.Header {
41165 if c.header_ == nil {
41166 c.header_ = make(http.Header)
41167 }
41168 return c.header_
41169 }
41170
41171 func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) {
41172 reqHeaders := make(http.Header)
41173 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
41174 for k, v := range c.header_ {
41175 reqHeaders[k] = v
41176 }
41177 reqHeaders.Set("User-Agent", c.s.userAgent())
41178 var body io.Reader = nil
41179 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy)
41180 if err != nil {
41181 return nil, err
41182 }
41183 reqHeaders.Set("Content-Type", "application/json")
41184 c.urlParams_.Set("alt", alt)
41185 c.urlParams_.Set("prettyPrint", "false")
41186 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies")
41187 urls += "?" + c.urlParams_.Encode()
41188 req, err := http.NewRequest("PUT", urls, body)
41189 if err != nil {
41190 return nil, err
41191 }
41192 req.Header = reqHeaders
41193 googleapi.Expand(req.URL, map[string]string{
41194 "profileId": strconv.FormatInt(c.profileId, 10),
41195 })
41196 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41197 }
41198
41199
41200
41201
41202
41203
41204
41205
41206 func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) {
41207 gensupport.SetOptions(c.urlParams_, opts...)
41208 res, err := c.doRequest("json")
41209 if res != nil && res.StatusCode == http.StatusNotModified {
41210 if res.Body != nil {
41211 res.Body.Close()
41212 }
41213 return nil, &googleapi.Error{
41214 Code: res.StatusCode,
41215 Header: res.Header,
41216 }
41217 }
41218 if err != nil {
41219 return nil, err
41220 }
41221 defer googleapi.CloseBody(res)
41222 if err := googleapi.CheckResponse(res); err != nil {
41223 return nil, err
41224 }
41225 ret := &PlacementStrategy{
41226 ServerResponse: googleapi.ServerResponse{
41227 Header: res.Header,
41228 HTTPStatusCode: res.StatusCode,
41229 },
41230 }
41231 target := &ret
41232 if err := gensupport.DecodeResponse(target, res); err != nil {
41233 return nil, err
41234 }
41235 return ret, nil
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264
41265 }
41266
41267
41268
41269 type PlacementsGeneratetagsCall struct {
41270 s *Service
41271 profileId int64
41272 urlParams_ gensupport.URLParams
41273 ctx_ context.Context
41274 header_ http.Header
41275 }
41276
41277
41278
41279
41280 func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall {
41281 c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41282 c.profileId = profileId
41283 return c
41284 }
41285
41286
41287
41288 func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall {
41289 c.urlParams_.Set("campaignId", fmt.Sprint(campaignId))
41290 return c
41291 }
41292
41293
41294
41295 func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall {
41296 var placementIds_ []string
41297 for _, v := range placementIds {
41298 placementIds_ = append(placementIds_, fmt.Sprint(v))
41299 }
41300 c.urlParams_.SetMulti("placementIds", placementIds_)
41301 return c
41302 }
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330 func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *PlacementsGeneratetagsCall {
41331 c.urlParams_.SetMulti("tagFormats", append([]string{}, tagFormats...))
41332 return c
41333 }
41334
41335
41336
41337
41338 func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall {
41339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41340 return c
41341 }
41342
41343
41344
41345
41346 func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall {
41347 c.ctx_ = ctx
41348 return c
41349 }
41350
41351
41352
41353 func (c *PlacementsGeneratetagsCall) Header() http.Header {
41354 if c.header_ == nil {
41355 c.header_ = make(http.Header)
41356 }
41357 return c.header_
41358 }
41359
41360 func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) {
41361 reqHeaders := make(http.Header)
41362 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
41363 for k, v := range c.header_ {
41364 reqHeaders[k] = v
41365 }
41366 reqHeaders.Set("User-Agent", c.s.userAgent())
41367 var body io.Reader = nil
41368 c.urlParams_.Set("alt", alt)
41369 c.urlParams_.Set("prettyPrint", "false")
41370 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/generatetags")
41371 urls += "?" + c.urlParams_.Encode()
41372 req, err := http.NewRequest("POST", urls, body)
41373 if err != nil {
41374 return nil, err
41375 }
41376 req.Header = reqHeaders
41377 googleapi.Expand(req.URL, map[string]string{
41378 "profileId": strconv.FormatInt(c.profileId, 10),
41379 })
41380 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41381 }
41382
41383
41384
41385
41386
41387
41388
41389
41390 func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) {
41391 gensupport.SetOptions(c.urlParams_, opts...)
41392 res, err := c.doRequest("json")
41393 if res != nil && res.StatusCode == http.StatusNotModified {
41394 if res.Body != nil {
41395 res.Body.Close()
41396 }
41397 return nil, &googleapi.Error{
41398 Code: res.StatusCode,
41399 Header: res.Header,
41400 }
41401 }
41402 if err != nil {
41403 return nil, err
41404 }
41405 defer googleapi.CloseBody(res)
41406 if err := googleapi.CheckResponse(res); err != nil {
41407 return nil, err
41408 }
41409 ret := &PlacementsGenerateTagsResponse{
41410 ServerResponse: googleapi.ServerResponse{
41411 Header: res.Header,
41412 HTTPStatusCode: res.StatusCode,
41413 },
41414 }
41415 target := &ret
41416 if err := gensupport.DecodeResponse(target, res); err != nil {
41417 return nil, err
41418 }
41419 return ret, nil
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
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
41490
41491
41492
41493
41494
41495
41496
41497
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507
41508
41509 }
41510
41511
41512
41513 type PlacementsGetCall struct {
41514 s *Service
41515 profileId int64
41516 id int64
41517 urlParams_ gensupport.URLParams
41518 ifNoneMatch_ string
41519 ctx_ context.Context
41520 header_ http.Header
41521 }
41522
41523
41524
41525
41526
41527 func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall {
41528 c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41529 c.profileId = profileId
41530 c.id = id
41531 return c
41532 }
41533
41534
41535
41536
41537 func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall {
41538 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41539 return c
41540 }
41541
41542
41543
41544
41545
41546
41547 func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall {
41548 c.ifNoneMatch_ = entityTag
41549 return c
41550 }
41551
41552
41553
41554
41555 func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall {
41556 c.ctx_ = ctx
41557 return c
41558 }
41559
41560
41561
41562 func (c *PlacementsGetCall) Header() http.Header {
41563 if c.header_ == nil {
41564 c.header_ = make(http.Header)
41565 }
41566 return c.header_
41567 }
41568
41569 func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) {
41570 reqHeaders := make(http.Header)
41571 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
41572 for k, v := range c.header_ {
41573 reqHeaders[k] = v
41574 }
41575 reqHeaders.Set("User-Agent", c.s.userAgent())
41576 if c.ifNoneMatch_ != "" {
41577 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41578 }
41579 var body io.Reader = nil
41580 c.urlParams_.Set("alt", alt)
41581 c.urlParams_.Set("prettyPrint", "false")
41582 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements/{id}")
41583 urls += "?" + c.urlParams_.Encode()
41584 req, err := http.NewRequest("GET", urls, body)
41585 if err != nil {
41586 return nil, err
41587 }
41588 req.Header = reqHeaders
41589 googleapi.Expand(req.URL, map[string]string{
41590 "profileId": strconv.FormatInt(c.profileId, 10),
41591 "id": strconv.FormatInt(c.id, 10),
41592 })
41593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41594 }
41595
41596
41597
41598
41599
41600
41601
41602
41603 func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
41604 gensupport.SetOptions(c.urlParams_, opts...)
41605 res, err := c.doRequest("json")
41606 if res != nil && res.StatusCode == http.StatusNotModified {
41607 if res.Body != nil {
41608 res.Body.Close()
41609 }
41610 return nil, &googleapi.Error{
41611 Code: res.StatusCode,
41612 Header: res.Header,
41613 }
41614 }
41615 if err != nil {
41616 return nil, err
41617 }
41618 defer googleapi.CloseBody(res)
41619 if err := googleapi.CheckResponse(res); err != nil {
41620 return nil, err
41621 }
41622 ret := &Placement{
41623 ServerResponse: googleapi.ServerResponse{
41624 Header: res.Header,
41625 HTTPStatusCode: res.StatusCode,
41626 },
41627 }
41628 target := &ret
41629 if err := gensupport.DecodeResponse(target, res); err != nil {
41630 return nil, err
41631 }
41632 return ret, nil
41633
41634
41635
41636
41637
41638
41639
41640
41641
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 type PlacementsInsertCall struct {
41672 s *Service
41673 profileId int64
41674 placement *Placement
41675 urlParams_ gensupport.URLParams
41676 ctx_ context.Context
41677 header_ http.Header
41678 }
41679
41680
41681
41682
41683 func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall {
41684 c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41685 c.profileId = profileId
41686 c.placement = placement
41687 return c
41688 }
41689
41690
41691
41692
41693 func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall {
41694 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41695 return c
41696 }
41697
41698
41699
41700
41701 func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall {
41702 c.ctx_ = ctx
41703 return c
41704 }
41705
41706
41707
41708 func (c *PlacementsInsertCall) Header() http.Header {
41709 if c.header_ == nil {
41710 c.header_ = make(http.Header)
41711 }
41712 return c.header_
41713 }
41714
41715 func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) {
41716 reqHeaders := make(http.Header)
41717 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
41718 for k, v := range c.header_ {
41719 reqHeaders[k] = v
41720 }
41721 reqHeaders.Set("User-Agent", c.s.userAgent())
41722 var body io.Reader = nil
41723 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement)
41724 if err != nil {
41725 return nil, err
41726 }
41727 reqHeaders.Set("Content-Type", "application/json")
41728 c.urlParams_.Set("alt", alt)
41729 c.urlParams_.Set("prettyPrint", "false")
41730 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
41731 urls += "?" + c.urlParams_.Encode()
41732 req, err := http.NewRequest("POST", urls, body)
41733 if err != nil {
41734 return nil, err
41735 }
41736 req.Header = reqHeaders
41737 googleapi.Expand(req.URL, map[string]string{
41738 "profileId": strconv.FormatInt(c.profileId, 10),
41739 })
41740 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41741 }
41742
41743
41744
41745
41746
41747
41748
41749
41750 func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
41751 gensupport.SetOptions(c.urlParams_, opts...)
41752 res, err := c.doRequest("json")
41753 if res != nil && res.StatusCode == http.StatusNotModified {
41754 if res.Body != nil {
41755 res.Body.Close()
41756 }
41757 return nil, &googleapi.Error{
41758 Code: res.StatusCode,
41759 Header: res.Header,
41760 }
41761 }
41762 if err != nil {
41763 return nil, err
41764 }
41765 defer googleapi.CloseBody(res)
41766 if err := googleapi.CheckResponse(res); err != nil {
41767 return nil, err
41768 }
41769 ret := &Placement{
41770 ServerResponse: googleapi.ServerResponse{
41771 Header: res.Header,
41772 HTTPStatusCode: res.StatusCode,
41773 },
41774 }
41775 target := &ret
41776 if err := gensupport.DecodeResponse(target, res); err != nil {
41777 return nil, err
41778 }
41779 return ret, nil
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809 }
41810
41811
41812
41813 type PlacementsListCall struct {
41814 s *Service
41815 profileId int64
41816 urlParams_ gensupport.URLParams
41817 ifNoneMatch_ string
41818 ctx_ context.Context
41819 header_ http.Header
41820 }
41821
41822
41823
41824
41825
41826 func (r *PlacementsService) List(profileId int64) *PlacementsListCall {
41827 c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41828 c.profileId = profileId
41829 return c
41830 }
41831
41832
41833
41834 func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall {
41835 var advertiserIds_ []string
41836 for _, v := range advertiserIds {
41837 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
41838 }
41839 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
41840 return c
41841 }
41842
41843
41844
41845
41846 func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall {
41847 c.urlParams_.Set("archived", fmt.Sprint(archived))
41848 return c
41849 }
41850
41851
41852
41853 func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCall {
41854 var campaignIds_ []string
41855 for _, v := range campaignIds {
41856 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
41857 }
41858 c.urlParams_.SetMulti("campaignIds", campaignIds_)
41859 return c
41860 }
41861
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878 func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *PlacementsListCall {
41879 c.urlParams_.SetMulti("compatibilities", append([]string{}, compatibilities...))
41880 return c
41881 }
41882
41883
41884
41885
41886 func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall {
41887 var contentCategoryIds_ []string
41888 for _, v := range contentCategoryIds {
41889 contentCategoryIds_ = append(contentCategoryIds_, fmt.Sprint(v))
41890 }
41891 c.urlParams_.SetMulti("contentCategoryIds", contentCategoryIds_)
41892 return c
41893 }
41894
41895
41896
41897
41898 func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall {
41899 var directorySiteIds_ []string
41900 for _, v := range directorySiteIds {
41901 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
41902 }
41903 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
41904 return c
41905 }
41906
41907
41908
41909 func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall {
41910 var groupIds_ []string
41911 for _, v := range groupIds {
41912 groupIds_ = append(groupIds_, fmt.Sprint(v))
41913 }
41914 c.urlParams_.SetMulti("groupIds", groupIds_)
41915 return c
41916 }
41917
41918
41919
41920 func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall {
41921 var ids_ []string
41922 for _, v := range ids {
41923 ids_ = append(ids_, fmt.Sprint(v))
41924 }
41925 c.urlParams_.SetMulti("ids", ids_)
41926 return c
41927 }
41928
41929
41930
41931
41932 func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall {
41933 c.urlParams_.Set("maxEndDate", maxEndDate)
41934 return c
41935 }
41936
41937
41938
41939 func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall {
41940 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
41941 return c
41942 }
41943
41944
41945
41946
41947 func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCall {
41948 c.urlParams_.Set("maxStartDate", maxStartDate)
41949 return c
41950 }
41951
41952
41953
41954
41955 func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall {
41956 c.urlParams_.Set("minEndDate", minEndDate)
41957 return c
41958 }
41959
41960
41961
41962
41963 func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall {
41964 c.urlParams_.Set("minStartDate", minStartDate)
41965 return c
41966 }
41967
41968
41969
41970 func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall {
41971 c.urlParams_.Set("pageToken", pageToken)
41972 return c
41973 }
41974
41975
41976
41977
41978
41979
41980
41981
41982 func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsListCall {
41983 c.urlParams_.Set("paymentSource", paymentSource)
41984 return c
41985 }
41986
41987
41988
41989
41990 func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall {
41991 var placementStrategyIds_ []string
41992 for _, v := range placementStrategyIds {
41993 placementStrategyIds_ = append(placementStrategyIds_, fmt.Sprint(v))
41994 }
41995 c.urlParams_.SetMulti("placementStrategyIds", placementStrategyIds_)
41996 return c
41997 }
41998
41999
42000
42001
42002
42003
42004
42005
42006
42007
42008
42009
42010 func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsListCall {
42011 c.urlParams_.SetMulti("pricingTypes", append([]string{}, pricingTypes...))
42012 return c
42013 }
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023 func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall {
42024 c.urlParams_.Set("searchString", searchString)
42025 return c
42026 }
42027
42028
42029
42030 func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall {
42031 var siteIds_ []string
42032 for _, v := range siteIds {
42033 siteIds_ = append(siteIds_, fmt.Sprint(v))
42034 }
42035 c.urlParams_.SetMulti("siteIds", siteIds_)
42036 return c
42037 }
42038
42039
42040
42041 func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall {
42042 var sizeIds_ []string
42043 for _, v := range sizeIds {
42044 sizeIds_ = append(sizeIds_, fmt.Sprint(v))
42045 }
42046 c.urlParams_.SetMulti("sizeIds", sizeIds_)
42047 return c
42048 }
42049
42050
42051
42052
42053
42054
42055
42056
42057 func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall {
42058 c.urlParams_.Set("sortField", sortField)
42059 return c
42060 }
42061
42062
42063
42064
42065
42066
42067
42068
42069 func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall {
42070 c.urlParams_.Set("sortOrder", sortOrder)
42071 return c
42072 }
42073
42074
42075
42076
42077 func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall {
42078 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42079 return c
42080 }
42081
42082
42083
42084
42085
42086
42087 func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall {
42088 c.ifNoneMatch_ = entityTag
42089 return c
42090 }
42091
42092
42093
42094
42095 func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall {
42096 c.ctx_ = ctx
42097 return c
42098 }
42099
42100
42101
42102 func (c *PlacementsListCall) Header() http.Header {
42103 if c.header_ == nil {
42104 c.header_ = make(http.Header)
42105 }
42106 return c.header_
42107 }
42108
42109 func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) {
42110 reqHeaders := make(http.Header)
42111 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
42112 for k, v := range c.header_ {
42113 reqHeaders[k] = v
42114 }
42115 reqHeaders.Set("User-Agent", c.s.userAgent())
42116 if c.ifNoneMatch_ != "" {
42117 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42118 }
42119 var body io.Reader = nil
42120 c.urlParams_.Set("alt", alt)
42121 c.urlParams_.Set("prettyPrint", "false")
42122 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
42123 urls += "?" + c.urlParams_.Encode()
42124 req, err := http.NewRequest("GET", urls, body)
42125 if err != nil {
42126 return nil, err
42127 }
42128 req.Header = reqHeaders
42129 googleapi.Expand(req.URL, map[string]string{
42130 "profileId": strconv.FormatInt(c.profileId, 10),
42131 })
42132 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42133 }
42134
42135
42136
42137
42138
42139
42140
42141
42142 func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) {
42143 gensupport.SetOptions(c.urlParams_, opts...)
42144 res, err := c.doRequest("json")
42145 if res != nil && res.StatusCode == http.StatusNotModified {
42146 if res.Body != nil {
42147 res.Body.Close()
42148 }
42149 return nil, &googleapi.Error{
42150 Code: res.StatusCode,
42151 Header: res.Header,
42152 }
42153 }
42154 if err != nil {
42155 return nil, err
42156 }
42157 defer googleapi.CloseBody(res)
42158 if err := googleapi.CheckResponse(res); err != nil {
42159 return nil, err
42160 }
42161 ret := &PlacementsListResponse{
42162 ServerResponse: googleapi.ServerResponse{
42163 Header: res.Header,
42164 HTTPStatusCode: res.StatusCode,
42165 },
42166 }
42167 target := &ret
42168 if err := gensupport.DecodeResponse(target, res); err != nil {
42169 return nil, err
42170 }
42171 return ret, nil
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
42200
42201
42202
42203
42204
42205
42206
42207
42208
42209
42210
42211
42212
42213
42214
42215
42216
42217
42218
42219
42220
42221
42222
42223
42224
42225
42226
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
42259
42260
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
42281
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
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
42339
42340
42341
42342
42343
42344
42345
42346
42347
42348
42349
42350
42351
42352
42353
42354
42355
42356
42357
42358
42359
42360
42361
42362
42363
42364
42365
42366
42367
42368
42369
42370
42371
42372
42373
42374
42375
42376
42377
42378
42379
42380
42381
42382
42383
42384
42385
42386
42387
42388
42389
42390 }
42391
42392
42393
42394
42395 func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error {
42396 c.ctx_ = ctx
42397 defer c.PageToken(c.urlParams_.Get("pageToken"))
42398 for {
42399 x, err := c.Do()
42400 if err != nil {
42401 return err
42402 }
42403 if err := f(x); err != nil {
42404 return err
42405 }
42406 if x.NextPageToken == "" {
42407 return nil
42408 }
42409 c.PageToken(x.NextPageToken)
42410 }
42411 }
42412
42413
42414
42415 type PlacementsPatchCall struct {
42416 s *Service
42417 profileId int64
42418 placement *Placement
42419 urlParams_ gensupport.URLParams
42420 ctx_ context.Context
42421 header_ http.Header
42422 }
42423
42424
42425
42426
42427
42428
42429 func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall {
42430 c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42431 c.profileId = profileId
42432 c.urlParams_.Set("id", fmt.Sprint(id))
42433 c.placement = placement
42434 return c
42435 }
42436
42437
42438
42439
42440 func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall {
42441 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42442 return c
42443 }
42444
42445
42446
42447
42448 func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall {
42449 c.ctx_ = ctx
42450 return c
42451 }
42452
42453
42454
42455 func (c *PlacementsPatchCall) Header() http.Header {
42456 if c.header_ == nil {
42457 c.header_ = make(http.Header)
42458 }
42459 return c.header_
42460 }
42461
42462 func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) {
42463 reqHeaders := make(http.Header)
42464 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
42465 for k, v := range c.header_ {
42466 reqHeaders[k] = v
42467 }
42468 reqHeaders.Set("User-Agent", c.s.userAgent())
42469 var body io.Reader = nil
42470 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement)
42471 if err != nil {
42472 return nil, err
42473 }
42474 reqHeaders.Set("Content-Type", "application/json")
42475 c.urlParams_.Set("alt", alt)
42476 c.urlParams_.Set("prettyPrint", "false")
42477 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
42478 urls += "?" + c.urlParams_.Encode()
42479 req, err := http.NewRequest("PATCH", urls, body)
42480 if err != nil {
42481 return nil, err
42482 }
42483 req.Header = reqHeaders
42484 googleapi.Expand(req.URL, map[string]string{
42485 "profileId": strconv.FormatInt(c.profileId, 10),
42486 })
42487 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42488 }
42489
42490
42491
42492
42493
42494
42495
42496
42497 func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
42498 gensupport.SetOptions(c.urlParams_, opts...)
42499 res, err := c.doRequest("json")
42500 if res != nil && res.StatusCode == http.StatusNotModified {
42501 if res.Body != nil {
42502 res.Body.Close()
42503 }
42504 return nil, &googleapi.Error{
42505 Code: res.StatusCode,
42506 Header: res.Header,
42507 }
42508 }
42509 if err != nil {
42510 return nil, err
42511 }
42512 defer googleapi.CloseBody(res)
42513 if err := googleapi.CheckResponse(res); err != nil {
42514 return nil, err
42515 }
42516 ret := &Placement{
42517 ServerResponse: googleapi.ServerResponse{
42518 Header: res.Header,
42519 HTTPStatusCode: res.StatusCode,
42520 },
42521 }
42522 target := &ret
42523 if err := gensupport.DecodeResponse(target, res); err != nil {
42524 return nil, err
42525 }
42526 return ret, nil
42527
42528
42529
42530
42531
42532
42533
42534
42535
42536
42537
42538
42539
42540
42541
42542
42543
42544
42545
42546
42547
42548
42549
42550
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564 }
42565
42566
42567
42568 type PlacementsUpdateCall struct {
42569 s *Service
42570 profileId int64
42571 placement *Placement
42572 urlParams_ gensupport.URLParams
42573 ctx_ context.Context
42574 header_ http.Header
42575 }
42576
42577
42578
42579
42580 func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall {
42581 c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42582 c.profileId = profileId
42583 c.placement = placement
42584 return c
42585 }
42586
42587
42588
42589
42590 func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall {
42591 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42592 return c
42593 }
42594
42595
42596
42597
42598 func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall {
42599 c.ctx_ = ctx
42600 return c
42601 }
42602
42603
42604
42605 func (c *PlacementsUpdateCall) Header() http.Header {
42606 if c.header_ == nil {
42607 c.header_ = make(http.Header)
42608 }
42609 return c.header_
42610 }
42611
42612 func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) {
42613 reqHeaders := make(http.Header)
42614 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
42615 for k, v := range c.header_ {
42616 reqHeaders[k] = v
42617 }
42618 reqHeaders.Set("User-Agent", c.s.userAgent())
42619 var body io.Reader = nil
42620 body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement)
42621 if err != nil {
42622 return nil, err
42623 }
42624 reqHeaders.Set("Content-Type", "application/json")
42625 c.urlParams_.Set("alt", alt)
42626 c.urlParams_.Set("prettyPrint", "false")
42627 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements")
42628 urls += "?" + c.urlParams_.Encode()
42629 req, err := http.NewRequest("PUT", urls, body)
42630 if err != nil {
42631 return nil, err
42632 }
42633 req.Header = reqHeaders
42634 googleapi.Expand(req.URL, map[string]string{
42635 "profileId": strconv.FormatInt(c.profileId, 10),
42636 })
42637 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42638 }
42639
42640
42641
42642
42643
42644
42645
42646
42647 func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) {
42648 gensupport.SetOptions(c.urlParams_, opts...)
42649 res, err := c.doRequest("json")
42650 if res != nil && res.StatusCode == http.StatusNotModified {
42651 if res.Body != nil {
42652 res.Body.Close()
42653 }
42654 return nil, &googleapi.Error{
42655 Code: res.StatusCode,
42656 Header: res.Header,
42657 }
42658 }
42659 if err != nil {
42660 return nil, err
42661 }
42662 defer googleapi.CloseBody(res)
42663 if err := googleapi.CheckResponse(res); err != nil {
42664 return nil, err
42665 }
42666 ret := &Placement{
42667 ServerResponse: googleapi.ServerResponse{
42668 Header: res.Header,
42669 HTTPStatusCode: res.StatusCode,
42670 },
42671 }
42672 target := &ret
42673 if err := gensupport.DecodeResponse(target, res); err != nil {
42674 return nil, err
42675 }
42676 return ret, nil
42677
42678
42679
42680
42681
42682
42683
42684
42685
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695
42696
42697
42698
42699
42700
42701
42702
42703
42704
42705
42706 }
42707
42708
42709
42710 type PlatformTypesGetCall struct {
42711 s *Service
42712 profileId int64
42713 id int64
42714 urlParams_ gensupport.URLParams
42715 ifNoneMatch_ string
42716 ctx_ context.Context
42717 header_ http.Header
42718 }
42719
42720
42721
42722
42723
42724 func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall {
42725 c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42726 c.profileId = profileId
42727 c.id = id
42728 return c
42729 }
42730
42731
42732
42733
42734 func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall {
42735 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42736 return c
42737 }
42738
42739
42740
42741
42742
42743
42744 func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall {
42745 c.ifNoneMatch_ = entityTag
42746 return c
42747 }
42748
42749
42750
42751
42752 func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall {
42753 c.ctx_ = ctx
42754 return c
42755 }
42756
42757
42758
42759 func (c *PlatformTypesGetCall) Header() http.Header {
42760 if c.header_ == nil {
42761 c.header_ = make(http.Header)
42762 }
42763 return c.header_
42764 }
42765
42766 func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) {
42767 reqHeaders := make(http.Header)
42768 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
42769 for k, v := range c.header_ {
42770 reqHeaders[k] = v
42771 }
42772 reqHeaders.Set("User-Agent", c.s.userAgent())
42773 if c.ifNoneMatch_ != "" {
42774 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42775 }
42776 var body io.Reader = nil
42777 c.urlParams_.Set("alt", alt)
42778 c.urlParams_.Set("prettyPrint", "false")
42779 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes/{id}")
42780 urls += "?" + c.urlParams_.Encode()
42781 req, err := http.NewRequest("GET", urls, body)
42782 if err != nil {
42783 return nil, err
42784 }
42785 req.Header = reqHeaders
42786 googleapi.Expand(req.URL, map[string]string{
42787 "profileId": strconv.FormatInt(c.profileId, 10),
42788 "id": strconv.FormatInt(c.id, 10),
42789 })
42790 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42791 }
42792
42793
42794
42795
42796
42797
42798
42799
42800 func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) {
42801 gensupport.SetOptions(c.urlParams_, opts...)
42802 res, err := c.doRequest("json")
42803 if res != nil && res.StatusCode == http.StatusNotModified {
42804 if res.Body != nil {
42805 res.Body.Close()
42806 }
42807 return nil, &googleapi.Error{
42808 Code: res.StatusCode,
42809 Header: res.Header,
42810 }
42811 }
42812 if err != nil {
42813 return nil, err
42814 }
42815 defer googleapi.CloseBody(res)
42816 if err := googleapi.CheckResponse(res); err != nil {
42817 return nil, err
42818 }
42819 ret := &PlatformType{
42820 ServerResponse: googleapi.ServerResponse{
42821 Header: res.Header,
42822 HTTPStatusCode: res.StatusCode,
42823 },
42824 }
42825 target := &ret
42826 if err := gensupport.DecodeResponse(target, res); err != nil {
42827 return nil, err
42828 }
42829 return ret, nil
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 type PlatformTypesListCall struct {
42869 s *Service
42870 profileId int64
42871 urlParams_ gensupport.URLParams
42872 ifNoneMatch_ string
42873 ctx_ context.Context
42874 header_ http.Header
42875 }
42876
42877
42878
42879
42880 func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall {
42881 c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42882 c.profileId = profileId
42883 return c
42884 }
42885
42886
42887
42888
42889 func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall {
42890 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42891 return c
42892 }
42893
42894
42895
42896
42897
42898
42899 func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall {
42900 c.ifNoneMatch_ = entityTag
42901 return c
42902 }
42903
42904
42905
42906
42907 func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall {
42908 c.ctx_ = ctx
42909 return c
42910 }
42911
42912
42913
42914 func (c *PlatformTypesListCall) Header() http.Header {
42915 if c.header_ == nil {
42916 c.header_ = make(http.Header)
42917 }
42918 return c.header_
42919 }
42920
42921 func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) {
42922 reqHeaders := make(http.Header)
42923 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
42924 for k, v := range c.header_ {
42925 reqHeaders[k] = v
42926 }
42927 reqHeaders.Set("User-Agent", c.s.userAgent())
42928 if c.ifNoneMatch_ != "" {
42929 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42930 }
42931 var body io.Reader = nil
42932 c.urlParams_.Set("alt", alt)
42933 c.urlParams_.Set("prettyPrint", "false")
42934 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/platformTypes")
42935 urls += "?" + c.urlParams_.Encode()
42936 req, err := http.NewRequest("GET", urls, body)
42937 if err != nil {
42938 return nil, err
42939 }
42940 req.Header = reqHeaders
42941 googleapi.Expand(req.URL, map[string]string{
42942 "profileId": strconv.FormatInt(c.profileId, 10),
42943 })
42944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42945 }
42946
42947
42948
42949
42950
42951
42952
42953
42954 func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) {
42955 gensupport.SetOptions(c.urlParams_, opts...)
42956 res, err := c.doRequest("json")
42957 if res != nil && res.StatusCode == http.StatusNotModified {
42958 if res.Body != nil {
42959 res.Body.Close()
42960 }
42961 return nil, &googleapi.Error{
42962 Code: res.StatusCode,
42963 Header: res.Header,
42964 }
42965 }
42966 if err != nil {
42967 return nil, err
42968 }
42969 defer googleapi.CloseBody(res)
42970 if err := googleapi.CheckResponse(res); err != nil {
42971 return nil, err
42972 }
42973 ret := &PlatformTypesListResponse{
42974 ServerResponse: googleapi.ServerResponse{
42975 Header: res.Header,
42976 HTTPStatusCode: res.StatusCode,
42977 },
42978 }
42979 target := &ret
42980 if err := gensupport.DecodeResponse(target, res); err != nil {
42981 return nil, err
42982 }
42983 return ret, nil
42984
42985
42986
42987
42988
42989
42990
42991
42992
42993
42994
42995
42996
42997
42998
42999
43000
43001
43002
43003
43004
43005
43006
43007
43008
43009
43010 }
43011
43012
43013
43014 type PostalCodesGetCall struct {
43015 s *Service
43016 profileId int64
43017 code string
43018 urlParams_ gensupport.URLParams
43019 ifNoneMatch_ string
43020 ctx_ context.Context
43021 header_ http.Header
43022 }
43023
43024
43025
43026
43027
43028 func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall {
43029 c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43030 c.profileId = profileId
43031 c.code = code
43032 return c
43033 }
43034
43035
43036
43037
43038 func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall {
43039 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43040 return c
43041 }
43042
43043
43044
43045
43046
43047
43048 func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall {
43049 c.ifNoneMatch_ = entityTag
43050 return c
43051 }
43052
43053
43054
43055
43056 func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall {
43057 c.ctx_ = ctx
43058 return c
43059 }
43060
43061
43062
43063 func (c *PostalCodesGetCall) Header() http.Header {
43064 if c.header_ == nil {
43065 c.header_ = make(http.Header)
43066 }
43067 return c.header_
43068 }
43069
43070 func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) {
43071 reqHeaders := make(http.Header)
43072 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
43073 for k, v := range c.header_ {
43074 reqHeaders[k] = v
43075 }
43076 reqHeaders.Set("User-Agent", c.s.userAgent())
43077 if c.ifNoneMatch_ != "" {
43078 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43079 }
43080 var body io.Reader = nil
43081 c.urlParams_.Set("alt", alt)
43082 c.urlParams_.Set("prettyPrint", "false")
43083 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes/{code}")
43084 urls += "?" + c.urlParams_.Encode()
43085 req, err := http.NewRequest("GET", urls, body)
43086 if err != nil {
43087 return nil, err
43088 }
43089 req.Header = reqHeaders
43090 googleapi.Expand(req.URL, map[string]string{
43091 "profileId": strconv.FormatInt(c.profileId, 10),
43092 "code": c.code,
43093 })
43094 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43095 }
43096
43097
43098
43099
43100
43101
43102
43103
43104 func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) {
43105 gensupport.SetOptions(c.urlParams_, opts...)
43106 res, err := c.doRequest("json")
43107 if res != nil && res.StatusCode == http.StatusNotModified {
43108 if res.Body != nil {
43109 res.Body.Close()
43110 }
43111 return nil, &googleapi.Error{
43112 Code: res.StatusCode,
43113 Header: res.Header,
43114 }
43115 }
43116 if err != nil {
43117 return nil, err
43118 }
43119 defer googleapi.CloseBody(res)
43120 if err := googleapi.CheckResponse(res); err != nil {
43121 return nil, err
43122 }
43123 ret := &PostalCode{
43124 ServerResponse: googleapi.ServerResponse{
43125 Header: res.Header,
43126 HTTPStatusCode: res.StatusCode,
43127 },
43128 }
43129 target := &ret
43130 if err := gensupport.DecodeResponse(target, res); err != nil {
43131 return nil, err
43132 }
43133 return ret, nil
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167 }
43168
43169
43170
43171 type PostalCodesListCall struct {
43172 s *Service
43173 profileId int64
43174 urlParams_ gensupport.URLParams
43175 ifNoneMatch_ string
43176 ctx_ context.Context
43177 header_ http.Header
43178 }
43179
43180
43181
43182
43183 func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall {
43184 c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43185 c.profileId = profileId
43186 return c
43187 }
43188
43189
43190
43191
43192 func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall {
43193 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43194 return c
43195 }
43196
43197
43198
43199
43200
43201
43202 func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall {
43203 c.ifNoneMatch_ = entityTag
43204 return c
43205 }
43206
43207
43208
43209
43210 func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall {
43211 c.ctx_ = ctx
43212 return c
43213 }
43214
43215
43216
43217 func (c *PostalCodesListCall) Header() http.Header {
43218 if c.header_ == nil {
43219 c.header_ = make(http.Header)
43220 }
43221 return c.header_
43222 }
43223
43224 func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) {
43225 reqHeaders := make(http.Header)
43226 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
43227 for k, v := range c.header_ {
43228 reqHeaders[k] = v
43229 }
43230 reqHeaders.Set("User-Agent", c.s.userAgent())
43231 if c.ifNoneMatch_ != "" {
43232 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43233 }
43234 var body io.Reader = nil
43235 c.urlParams_.Set("alt", alt)
43236 c.urlParams_.Set("prettyPrint", "false")
43237 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/postalCodes")
43238 urls += "?" + c.urlParams_.Encode()
43239 req, err := http.NewRequest("GET", urls, body)
43240 if err != nil {
43241 return nil, err
43242 }
43243 req.Header = reqHeaders
43244 googleapi.Expand(req.URL, map[string]string{
43245 "profileId": strconv.FormatInt(c.profileId, 10),
43246 })
43247 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43248 }
43249
43250
43251
43252
43253
43254
43255
43256
43257 func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) {
43258 gensupport.SetOptions(c.urlParams_, opts...)
43259 res, err := c.doRequest("json")
43260 if res != nil && res.StatusCode == http.StatusNotModified {
43261 if res.Body != nil {
43262 res.Body.Close()
43263 }
43264 return nil, &googleapi.Error{
43265 Code: res.StatusCode,
43266 Header: res.Header,
43267 }
43268 }
43269 if err != nil {
43270 return nil, err
43271 }
43272 defer googleapi.CloseBody(res)
43273 if err := googleapi.CheckResponse(res); err != nil {
43274 return nil, err
43275 }
43276 ret := &PostalCodesListResponse{
43277 ServerResponse: googleapi.ServerResponse{
43278 Header: res.Header,
43279 HTTPStatusCode: res.StatusCode,
43280 },
43281 }
43282 target := &ret
43283 if err := gensupport.DecodeResponse(target, res); err != nil {
43284 return nil, err
43285 }
43286 return ret, nil
43287
43288
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
43300
43301
43302
43303
43304
43305
43306
43307
43308
43309
43310
43311
43312
43313 }
43314
43315
43316
43317 type ProjectsGetCall struct {
43318 s *Service
43319 profileId int64
43320 id int64
43321 urlParams_ gensupport.URLParams
43322 ifNoneMatch_ string
43323 ctx_ context.Context
43324 header_ http.Header
43325 }
43326
43327
43328
43329
43330
43331 func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall {
43332 c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43333 c.profileId = profileId
43334 c.id = id
43335 return c
43336 }
43337
43338
43339
43340
43341 func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall {
43342 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43343 return c
43344 }
43345
43346
43347
43348
43349
43350
43351 func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall {
43352 c.ifNoneMatch_ = entityTag
43353 return c
43354 }
43355
43356
43357
43358
43359 func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall {
43360 c.ctx_ = ctx
43361 return c
43362 }
43363
43364
43365
43366 func (c *ProjectsGetCall) Header() http.Header {
43367 if c.header_ == nil {
43368 c.header_ = make(http.Header)
43369 }
43370 return c.header_
43371 }
43372
43373 func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) {
43374 reqHeaders := make(http.Header)
43375 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
43376 for k, v := range c.header_ {
43377 reqHeaders[k] = v
43378 }
43379 reqHeaders.Set("User-Agent", c.s.userAgent())
43380 if c.ifNoneMatch_ != "" {
43381 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43382 }
43383 var body io.Reader = nil
43384 c.urlParams_.Set("alt", alt)
43385 c.urlParams_.Set("prettyPrint", "false")
43386 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects/{id}")
43387 urls += "?" + c.urlParams_.Encode()
43388 req, err := http.NewRequest("GET", urls, body)
43389 if err != nil {
43390 return nil, err
43391 }
43392 req.Header = reqHeaders
43393 googleapi.Expand(req.URL, map[string]string{
43394 "profileId": strconv.FormatInt(c.profileId, 10),
43395 "id": strconv.FormatInt(c.id, 10),
43396 })
43397 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43398 }
43399
43400
43401
43402
43403
43404
43405
43406
43407 func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) {
43408 gensupport.SetOptions(c.urlParams_, opts...)
43409 res, err := c.doRequest("json")
43410 if res != nil && res.StatusCode == http.StatusNotModified {
43411 if res.Body != nil {
43412 res.Body.Close()
43413 }
43414 return nil, &googleapi.Error{
43415 Code: res.StatusCode,
43416 Header: res.Header,
43417 }
43418 }
43419 if err != nil {
43420 return nil, err
43421 }
43422 defer googleapi.CloseBody(res)
43423 if err := googleapi.CheckResponse(res); err != nil {
43424 return nil, err
43425 }
43426 ret := &Project{
43427 ServerResponse: googleapi.ServerResponse{
43428 Header: res.Header,
43429 HTTPStatusCode: res.StatusCode,
43430 },
43431 }
43432 target := &ret
43433 if err := gensupport.DecodeResponse(target, res); err != nil {
43434 return nil, err
43435 }
43436 return ret, nil
43437
43438
43439
43440
43441
43442
43443
43444
43445
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 type ProjectsListCall struct {
43476 s *Service
43477 profileId int64
43478 urlParams_ gensupport.URLParams
43479 ifNoneMatch_ string
43480 ctx_ context.Context
43481 header_ http.Header
43482 }
43483
43484
43485
43486
43487
43488 func (r *ProjectsService) List(profileId int64) *ProjectsListCall {
43489 c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43490 c.profileId = profileId
43491 return c
43492 }
43493
43494
43495
43496 func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall {
43497 var advertiserIds_ []string
43498 for _, v := range advertiserIds {
43499 advertiserIds_ = append(advertiserIds_, fmt.Sprint(v))
43500 }
43501 c.urlParams_.SetMulti("advertiserIds", advertiserIds_)
43502 return c
43503 }
43504
43505
43506
43507 func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall {
43508 var ids_ []string
43509 for _, v := range ids {
43510 ids_ = append(ids_, fmt.Sprint(v))
43511 }
43512 c.urlParams_.SetMulti("ids", ids_)
43513 return c
43514 }
43515
43516
43517
43518 func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall {
43519 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
43520 return c
43521 }
43522
43523
43524
43525 func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall {
43526 c.urlParams_.Set("pageToken", pageToken)
43527 return c
43528 }
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538 func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall {
43539 c.urlParams_.Set("searchString", searchString)
43540 return c
43541 }
43542
43543
43544
43545
43546
43547
43548
43549
43550 func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall {
43551 c.urlParams_.Set("sortField", sortField)
43552 return c
43553 }
43554
43555
43556
43557
43558
43559
43560
43561
43562 func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall {
43563 c.urlParams_.Set("sortOrder", sortOrder)
43564 return c
43565 }
43566
43567
43568
43569
43570 func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall {
43571 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43572 return c
43573 }
43574
43575
43576
43577
43578
43579
43580 func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall {
43581 c.ifNoneMatch_ = entityTag
43582 return c
43583 }
43584
43585
43586
43587
43588 func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall {
43589 c.ctx_ = ctx
43590 return c
43591 }
43592
43593
43594
43595 func (c *ProjectsListCall) Header() http.Header {
43596 if c.header_ == nil {
43597 c.header_ = make(http.Header)
43598 }
43599 return c.header_
43600 }
43601
43602 func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) {
43603 reqHeaders := make(http.Header)
43604 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
43605 for k, v := range c.header_ {
43606 reqHeaders[k] = v
43607 }
43608 reqHeaders.Set("User-Agent", c.s.userAgent())
43609 if c.ifNoneMatch_ != "" {
43610 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43611 }
43612 var body io.Reader = nil
43613 c.urlParams_.Set("alt", alt)
43614 c.urlParams_.Set("prettyPrint", "false")
43615 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/projects")
43616 urls += "?" + c.urlParams_.Encode()
43617 req, err := http.NewRequest("GET", urls, body)
43618 if err != nil {
43619 return nil, err
43620 }
43621 req.Header = reqHeaders
43622 googleapi.Expand(req.URL, map[string]string{
43623 "profileId": strconv.FormatInt(c.profileId, 10),
43624 })
43625 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43626 }
43627
43628
43629
43630
43631
43632
43633
43634
43635 func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) {
43636 gensupport.SetOptions(c.urlParams_, opts...)
43637 res, err := c.doRequest("json")
43638 if res != nil && res.StatusCode == http.StatusNotModified {
43639 if res.Body != nil {
43640 res.Body.Close()
43641 }
43642 return nil, &googleapi.Error{
43643 Code: res.StatusCode,
43644 Header: res.Header,
43645 }
43646 }
43647 if err != nil {
43648 return nil, err
43649 }
43650 defer googleapi.CloseBody(res)
43651 if err := googleapi.CheckResponse(res); err != nil {
43652 return nil, err
43653 }
43654 ret := &ProjectsListResponse{
43655 ServerResponse: googleapi.ServerResponse{
43656 Header: res.Header,
43657 HTTPStatusCode: res.StatusCode,
43658 },
43659 }
43660 target := &ret
43661 if err := gensupport.DecodeResponse(target, res); err != nil {
43662 return nil, err
43663 }
43664 return ret, nil
43665
43666
43667
43668
43669
43670
43671
43672
43673
43674
43675
43676
43677
43678
43679
43680
43681
43682
43683
43684
43685
43686
43687
43688
43689
43690
43691
43692
43693
43694
43695
43696
43697
43698
43699
43700
43701
43702
43703
43704
43705
43706
43707
43708
43709
43710
43711
43712
43713
43714
43715
43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
43727
43728
43729
43730
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752 }
43753
43754
43755
43756
43757 func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error {
43758 c.ctx_ = ctx
43759 defer c.PageToken(c.urlParams_.Get("pageToken"))
43760 for {
43761 x, err := c.Do()
43762 if err != nil {
43763 return err
43764 }
43765 if err := f(x); err != nil {
43766 return err
43767 }
43768 if x.NextPageToken == "" {
43769 return nil
43770 }
43771 c.PageToken(x.NextPageToken)
43772 }
43773 }
43774
43775
43776
43777 type RegionsListCall struct {
43778 s *Service
43779 profileId int64
43780 urlParams_ gensupport.URLParams
43781 ifNoneMatch_ string
43782 ctx_ context.Context
43783 header_ http.Header
43784 }
43785
43786
43787
43788
43789 func (r *RegionsService) List(profileId int64) *RegionsListCall {
43790 c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43791 c.profileId = profileId
43792 return c
43793 }
43794
43795
43796
43797
43798 func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall {
43799 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43800 return c
43801 }
43802
43803
43804
43805
43806
43807
43808 func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall {
43809 c.ifNoneMatch_ = entityTag
43810 return c
43811 }
43812
43813
43814
43815
43816 func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall {
43817 c.ctx_ = ctx
43818 return c
43819 }
43820
43821
43822
43823 func (c *RegionsListCall) Header() http.Header {
43824 if c.header_ == nil {
43825 c.header_ = make(http.Header)
43826 }
43827 return c.header_
43828 }
43829
43830 func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) {
43831 reqHeaders := make(http.Header)
43832 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
43833 for k, v := range c.header_ {
43834 reqHeaders[k] = v
43835 }
43836 reqHeaders.Set("User-Agent", c.s.userAgent())
43837 if c.ifNoneMatch_ != "" {
43838 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43839 }
43840 var body io.Reader = nil
43841 c.urlParams_.Set("alt", alt)
43842 c.urlParams_.Set("prettyPrint", "false")
43843 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/regions")
43844 urls += "?" + c.urlParams_.Encode()
43845 req, err := http.NewRequest("GET", urls, body)
43846 if err != nil {
43847 return nil, err
43848 }
43849 req.Header = reqHeaders
43850 googleapi.Expand(req.URL, map[string]string{
43851 "profileId": strconv.FormatInt(c.profileId, 10),
43852 })
43853 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43854 }
43855
43856
43857
43858
43859
43860
43861
43862
43863 func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) {
43864 gensupport.SetOptions(c.urlParams_, opts...)
43865 res, err := c.doRequest("json")
43866 if res != nil && res.StatusCode == http.StatusNotModified {
43867 if res.Body != nil {
43868 res.Body.Close()
43869 }
43870 return nil, &googleapi.Error{
43871 Code: res.StatusCode,
43872 Header: res.Header,
43873 }
43874 }
43875 if err != nil {
43876 return nil, err
43877 }
43878 defer googleapi.CloseBody(res)
43879 if err := googleapi.CheckResponse(res); err != nil {
43880 return nil, err
43881 }
43882 ret := &RegionsListResponse{
43883 ServerResponse: googleapi.ServerResponse{
43884 Header: res.Header,
43885 HTTPStatusCode: res.StatusCode,
43886 },
43887 }
43888 target := &ret
43889 if err := gensupport.DecodeResponse(target, res); err != nil {
43890 return nil, err
43891 }
43892 return ret, nil
43893
43894
43895
43896
43897
43898
43899
43900
43901
43902
43903
43904
43905
43906
43907
43908
43909
43910
43911
43912
43913
43914
43915
43916
43917
43918
43919 }
43920
43921
43922
43923 type RemarketingListSharesGetCall struct {
43924 s *Service
43925 profileId int64
43926 remarketingListId int64
43927 urlParams_ gensupport.URLParams
43928 ifNoneMatch_ string
43929 ctx_ context.Context
43930 header_ http.Header
43931 }
43932
43933
43934
43935
43936
43937 func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall {
43938 c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43939 c.profileId = profileId
43940 c.remarketingListId = remarketingListId
43941 return c
43942 }
43943
43944
43945
43946
43947 func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall {
43948 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43949 return c
43950 }
43951
43952
43953
43954
43955
43956
43957 func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall {
43958 c.ifNoneMatch_ = entityTag
43959 return c
43960 }
43961
43962
43963
43964
43965 func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall {
43966 c.ctx_ = ctx
43967 return c
43968 }
43969
43970
43971
43972 func (c *RemarketingListSharesGetCall) Header() http.Header {
43973 if c.header_ == nil {
43974 c.header_ = make(http.Header)
43975 }
43976 return c.header_
43977 }
43978
43979 func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) {
43980 reqHeaders := make(http.Header)
43981 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
43982 for k, v := range c.header_ {
43983 reqHeaders[k] = v
43984 }
43985 reqHeaders.Set("User-Agent", c.s.userAgent())
43986 if c.ifNoneMatch_ != "" {
43987 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43988 }
43989 var body io.Reader = nil
43990 c.urlParams_.Set("alt", alt)
43991 c.urlParams_.Set("prettyPrint", "false")
43992 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares/{remarketingListId}")
43993 urls += "?" + c.urlParams_.Encode()
43994 req, err := http.NewRequest("GET", urls, body)
43995 if err != nil {
43996 return nil, err
43997 }
43998 req.Header = reqHeaders
43999 googleapi.Expand(req.URL, map[string]string{
44000 "profileId": strconv.FormatInt(c.profileId, 10),
44001 "remarketingListId": strconv.FormatInt(c.remarketingListId, 10),
44002 })
44003 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44004 }
44005
44006
44007
44008
44009
44010
44011
44012
44013 func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) {
44014 gensupport.SetOptions(c.urlParams_, opts...)
44015 res, err := c.doRequest("json")
44016 if res != nil && res.StatusCode == http.StatusNotModified {
44017 if res.Body != nil {
44018 res.Body.Close()
44019 }
44020 return nil, &googleapi.Error{
44021 Code: res.StatusCode,
44022 Header: res.Header,
44023 }
44024 }
44025 if err != nil {
44026 return nil, err
44027 }
44028 defer googleapi.CloseBody(res)
44029 if err := googleapi.CheckResponse(res); err != nil {
44030 return nil, err
44031 }
44032 ret := &RemarketingListShare{
44033 ServerResponse: googleapi.ServerResponse{
44034 Header: res.Header,
44035 HTTPStatusCode: res.StatusCode,
44036 },
44037 }
44038 target := &ret
44039 if err := gensupport.DecodeResponse(target, res); err != nil {
44040 return nil, err
44041 }
44042 return ret, nil
44043
44044
44045
44046
44047
44048
44049
44050
44051
44052
44053
44054
44055
44056
44057
44058
44059
44060
44061
44062
44063
44064
44065
44066
44067
44068
44069
44070
44071
44072
44073
44074
44075
44076
44077 }
44078
44079
44080
44081 type RemarketingListSharesPatchCall struct {
44082 s *Service
44083 profileId int64
44084 remarketinglistshare *RemarketingListShare
44085 urlParams_ gensupport.URLParams
44086 ctx_ context.Context
44087 header_ http.Header
44088 }
44089
44090
44091
44092
44093
44094
44095 func (r *RemarketingListSharesService) Patch(profileId int64, id int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall {
44096 c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44097 c.profileId = profileId
44098 c.urlParams_.Set("id", fmt.Sprint(id))
44099 c.remarketinglistshare = remarketinglistshare
44100 return c
44101 }
44102
44103
44104
44105
44106 func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall {
44107 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44108 return c
44109 }
44110
44111
44112
44113
44114 func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall {
44115 c.ctx_ = ctx
44116 return c
44117 }
44118
44119
44120
44121 func (c *RemarketingListSharesPatchCall) Header() http.Header {
44122 if c.header_ == nil {
44123 c.header_ = make(http.Header)
44124 }
44125 return c.header_
44126 }
44127
44128 func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) {
44129 reqHeaders := make(http.Header)
44130 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
44131 for k, v := range c.header_ {
44132 reqHeaders[k] = v
44133 }
44134 reqHeaders.Set("User-Agent", c.s.userAgent())
44135 var body io.Reader = nil
44136 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare)
44137 if err != nil {
44138 return nil, err
44139 }
44140 reqHeaders.Set("Content-Type", "application/json")
44141 c.urlParams_.Set("alt", alt)
44142 c.urlParams_.Set("prettyPrint", "false")
44143 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares")
44144 urls += "?" + c.urlParams_.Encode()
44145 req, err := http.NewRequest("PATCH", urls, body)
44146 if err != nil {
44147 return nil, err
44148 }
44149 req.Header = reqHeaders
44150 googleapi.Expand(req.URL, map[string]string{
44151 "profileId": strconv.FormatInt(c.profileId, 10),
44152 })
44153 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44154 }
44155
44156
44157
44158
44159
44160
44161
44162
44163 func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) {
44164 gensupport.SetOptions(c.urlParams_, opts...)
44165 res, err := c.doRequest("json")
44166 if res != nil && res.StatusCode == http.StatusNotModified {
44167 if res.Body != nil {
44168 res.Body.Close()
44169 }
44170 return nil, &googleapi.Error{
44171 Code: res.StatusCode,
44172 Header: res.Header,
44173 }
44174 }
44175 if err != nil {
44176 return nil, err
44177 }
44178 defer googleapi.CloseBody(res)
44179 if err := googleapi.CheckResponse(res); err != nil {
44180 return nil, err
44181 }
44182 ret := &RemarketingListShare{
44183 ServerResponse: googleapi.ServerResponse{
44184 Header: res.Header,
44185 HTTPStatusCode: res.StatusCode,
44186 },
44187 }
44188 target := &ret
44189 if err := gensupport.DecodeResponse(target, res); err != nil {
44190 return nil, err
44191 }
44192 return ret, nil
44193
44194
44195
44196
44197
44198
44199
44200
44201
44202
44203
44204
44205
44206
44207
44208
44209
44210
44211
44212
44213
44214
44215
44216
44217
44218
44219
44220
44221
44222
44223
44224
44225
44226
44227
44228
44229
44230 }
44231
44232
44233
44234 type RemarketingListSharesUpdateCall struct {
44235 s *Service
44236 profileId int64
44237 remarketinglistshare *RemarketingListShare
44238 urlParams_ gensupport.URLParams
44239 ctx_ context.Context
44240 header_ http.Header
44241 }
44242
44243
44244
44245
44246 func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall {
44247 c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44248 c.profileId = profileId
44249 c.remarketinglistshare = remarketinglistshare
44250 return c
44251 }
44252
44253
44254
44255
44256 func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall {
44257 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44258 return c
44259 }
44260
44261
44262
44263
44264 func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall {
44265 c.ctx_ = ctx
44266 return c
44267 }
44268
44269
44270
44271 func (c *RemarketingListSharesUpdateCall) Header() http.Header {
44272 if c.header_ == nil {
44273 c.header_ = make(http.Header)
44274 }
44275 return c.header_
44276 }
44277
44278 func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) {
44279 reqHeaders := make(http.Header)
44280 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
44281 for k, v := range c.header_ {
44282 reqHeaders[k] = v
44283 }
44284 reqHeaders.Set("User-Agent", c.s.userAgent())
44285 var body io.Reader = nil
44286 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare)
44287 if err != nil {
44288 return nil, err
44289 }
44290 reqHeaders.Set("Content-Type", "application/json")
44291 c.urlParams_.Set("alt", alt)
44292 c.urlParams_.Set("prettyPrint", "false")
44293 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares")
44294 urls += "?" + c.urlParams_.Encode()
44295 req, err := http.NewRequest("PUT", urls, body)
44296 if err != nil {
44297 return nil, err
44298 }
44299 req.Header = reqHeaders
44300 googleapi.Expand(req.URL, map[string]string{
44301 "profileId": strconv.FormatInt(c.profileId, 10),
44302 })
44303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44304 }
44305
44306
44307
44308
44309
44310
44311
44312
44313 func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) {
44314 gensupport.SetOptions(c.urlParams_, opts...)
44315 res, err := c.doRequest("json")
44316 if res != nil && res.StatusCode == http.StatusNotModified {
44317 if res.Body != nil {
44318 res.Body.Close()
44319 }
44320 return nil, &googleapi.Error{
44321 Code: res.StatusCode,
44322 Header: res.Header,
44323 }
44324 }
44325 if err != nil {
44326 return nil, err
44327 }
44328 defer googleapi.CloseBody(res)
44329 if err := googleapi.CheckResponse(res); err != nil {
44330 return nil, err
44331 }
44332 ret := &RemarketingListShare{
44333 ServerResponse: googleapi.ServerResponse{
44334 Header: res.Header,
44335 HTTPStatusCode: res.StatusCode,
44336 },
44337 }
44338 target := &ret
44339 if err := gensupport.DecodeResponse(target, res); err != nil {
44340 return nil, err
44341 }
44342 return ret, nil
44343
44344
44345
44346
44347
44348
44349
44350
44351
44352
44353
44354
44355
44356
44357
44358
44359
44360
44361
44362
44363
44364
44365
44366
44367
44368
44369
44370
44371
44372 }
44373
44374
44375
44376 type RemarketingListsGetCall struct {
44377 s *Service
44378 profileId int64
44379 id int64
44380 urlParams_ gensupport.URLParams
44381 ifNoneMatch_ string
44382 ctx_ context.Context
44383 header_ http.Header
44384 }
44385
44386
44387
44388
44389
44390 func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall {
44391 c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44392 c.profileId = profileId
44393 c.id = id
44394 return c
44395 }
44396
44397
44398
44399
44400 func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall {
44401 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44402 return c
44403 }
44404
44405
44406
44407
44408
44409
44410 func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall {
44411 c.ifNoneMatch_ = entityTag
44412 return c
44413 }
44414
44415
44416
44417
44418 func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall {
44419 c.ctx_ = ctx
44420 return c
44421 }
44422
44423
44424
44425 func (c *RemarketingListsGetCall) Header() http.Header {
44426 if c.header_ == nil {
44427 c.header_ = make(http.Header)
44428 }
44429 return c.header_
44430 }
44431
44432 func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) {
44433 reqHeaders := make(http.Header)
44434 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
44435 for k, v := range c.header_ {
44436 reqHeaders[k] = v
44437 }
44438 reqHeaders.Set("User-Agent", c.s.userAgent())
44439 if c.ifNoneMatch_ != "" {
44440 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44441 }
44442 var body io.Reader = nil
44443 c.urlParams_.Set("alt", alt)
44444 c.urlParams_.Set("prettyPrint", "false")
44445 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists/{id}")
44446 urls += "?" + c.urlParams_.Encode()
44447 req, err := http.NewRequest("GET", urls, body)
44448 if err != nil {
44449 return nil, err
44450 }
44451 req.Header = reqHeaders
44452 googleapi.Expand(req.URL, map[string]string{
44453 "profileId": strconv.FormatInt(c.profileId, 10),
44454 "id": strconv.FormatInt(c.id, 10),
44455 })
44456 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44457 }
44458
44459
44460
44461
44462
44463
44464
44465
44466 func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
44467 gensupport.SetOptions(c.urlParams_, opts...)
44468 res, err := c.doRequest("json")
44469 if res != nil && res.StatusCode == http.StatusNotModified {
44470 if res.Body != nil {
44471 res.Body.Close()
44472 }
44473 return nil, &googleapi.Error{
44474 Code: res.StatusCode,
44475 Header: res.Header,
44476 }
44477 }
44478 if err != nil {
44479 return nil, err
44480 }
44481 defer googleapi.CloseBody(res)
44482 if err := googleapi.CheckResponse(res); err != nil {
44483 return nil, err
44484 }
44485 ret := &RemarketingList{
44486 ServerResponse: googleapi.ServerResponse{
44487 Header: res.Header,
44488 HTTPStatusCode: res.StatusCode,
44489 },
44490 }
44491 target := &ret
44492 if err := gensupport.DecodeResponse(target, res); err != nil {
44493 return nil, err
44494 }
44495 return ret, nil
44496
44497
44498
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511
44512
44513
44514
44515
44516
44517
44518
44519
44520
44521
44522
44523
44524
44525
44526
44527
44528
44529
44530 }
44531
44532
44533
44534 type RemarketingListsInsertCall struct {
44535 s *Service
44536 profileId int64
44537 remarketinglist *RemarketingList
44538 urlParams_ gensupport.URLParams
44539 ctx_ context.Context
44540 header_ http.Header
44541 }
44542
44543
44544
44545
44546 func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall {
44547 c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44548 c.profileId = profileId
44549 c.remarketinglist = remarketinglist
44550 return c
44551 }
44552
44553
44554
44555
44556 func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall {
44557 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44558 return c
44559 }
44560
44561
44562
44563
44564 func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall {
44565 c.ctx_ = ctx
44566 return c
44567 }
44568
44569
44570
44571 func (c *RemarketingListsInsertCall) Header() http.Header {
44572 if c.header_ == nil {
44573 c.header_ = make(http.Header)
44574 }
44575 return c.header_
44576 }
44577
44578 func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) {
44579 reqHeaders := make(http.Header)
44580 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
44581 for k, v := range c.header_ {
44582 reqHeaders[k] = v
44583 }
44584 reqHeaders.Set("User-Agent", c.s.userAgent())
44585 var body io.Reader = nil
44586 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist)
44587 if err != nil {
44588 return nil, err
44589 }
44590 reqHeaders.Set("Content-Type", "application/json")
44591 c.urlParams_.Set("alt", alt)
44592 c.urlParams_.Set("prettyPrint", "false")
44593 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
44594 urls += "?" + c.urlParams_.Encode()
44595 req, err := http.NewRequest("POST", urls, body)
44596 if err != nil {
44597 return nil, err
44598 }
44599 req.Header = reqHeaders
44600 googleapi.Expand(req.URL, map[string]string{
44601 "profileId": strconv.FormatInt(c.profileId, 10),
44602 })
44603 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44604 }
44605
44606
44607
44608
44609
44610
44611
44612
44613 func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
44614 gensupport.SetOptions(c.urlParams_, opts...)
44615 res, err := c.doRequest("json")
44616 if res != nil && res.StatusCode == http.StatusNotModified {
44617 if res.Body != nil {
44618 res.Body.Close()
44619 }
44620 return nil, &googleapi.Error{
44621 Code: res.StatusCode,
44622 Header: res.Header,
44623 }
44624 }
44625 if err != nil {
44626 return nil, err
44627 }
44628 defer googleapi.CloseBody(res)
44629 if err := googleapi.CheckResponse(res); err != nil {
44630 return nil, err
44631 }
44632 ret := &RemarketingList{
44633 ServerResponse: googleapi.ServerResponse{
44634 Header: res.Header,
44635 HTTPStatusCode: res.StatusCode,
44636 },
44637 }
44638 target := &ret
44639 if err := gensupport.DecodeResponse(target, res); err != nil {
44640 return nil, err
44641 }
44642 return ret, nil
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
44672 }
44673
44674
44675
44676 type RemarketingListsListCall struct {
44677 s *Service
44678 profileId int64
44679 urlParams_ gensupport.URLParams
44680 ifNoneMatch_ string
44681 ctx_ context.Context
44682 header_ http.Header
44683 }
44684
44685
44686
44687
44688
44689
44690
44691 func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall {
44692 c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44693 c.profileId = profileId
44694 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
44695 return c
44696 }
44697
44698
44699
44700 func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall {
44701 c.urlParams_.Set("active", fmt.Sprint(active))
44702 return c
44703 }
44704
44705
44706
44707
44708 func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall {
44709 c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId))
44710 return c
44711 }
44712
44713
44714
44715 func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall {
44716 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
44717 return c
44718 }
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728 func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall {
44729 c.urlParams_.Set("name", name)
44730 return c
44731 }
44732
44733
44734
44735 func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingListsListCall {
44736 c.urlParams_.Set("pageToken", pageToken)
44737 return c
44738 }
44739
44740
44741
44742
44743
44744
44745
44746
44747 func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingListsListCall {
44748 c.urlParams_.Set("sortField", sortField)
44749 return c
44750 }
44751
44752
44753
44754
44755
44756
44757
44758
44759 func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingListsListCall {
44760 c.urlParams_.Set("sortOrder", sortOrder)
44761 return c
44762 }
44763
44764
44765
44766
44767 func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall {
44768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44769 return c
44770 }
44771
44772
44773
44774
44775
44776
44777 func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall {
44778 c.ifNoneMatch_ = entityTag
44779 return c
44780 }
44781
44782
44783
44784
44785 func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall {
44786 c.ctx_ = ctx
44787 return c
44788 }
44789
44790
44791
44792 func (c *RemarketingListsListCall) Header() http.Header {
44793 if c.header_ == nil {
44794 c.header_ = make(http.Header)
44795 }
44796 return c.header_
44797 }
44798
44799 func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) {
44800 reqHeaders := make(http.Header)
44801 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
44802 for k, v := range c.header_ {
44803 reqHeaders[k] = v
44804 }
44805 reqHeaders.Set("User-Agent", c.s.userAgent())
44806 if c.ifNoneMatch_ != "" {
44807 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44808 }
44809 var body io.Reader = nil
44810 c.urlParams_.Set("alt", alt)
44811 c.urlParams_.Set("prettyPrint", "false")
44812 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
44813 urls += "?" + c.urlParams_.Encode()
44814 req, err := http.NewRequest("GET", urls, body)
44815 if err != nil {
44816 return nil, err
44817 }
44818 req.Header = reqHeaders
44819 googleapi.Expand(req.URL, map[string]string{
44820 "profileId": strconv.FormatInt(c.profileId, 10),
44821 })
44822 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44823 }
44824
44825
44826
44827
44828
44829
44830
44831
44832 func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) {
44833 gensupport.SetOptions(c.urlParams_, opts...)
44834 res, err := c.doRequest("json")
44835 if res != nil && res.StatusCode == http.StatusNotModified {
44836 if res.Body != nil {
44837 res.Body.Close()
44838 }
44839 return nil, &googleapi.Error{
44840 Code: res.StatusCode,
44841 Header: res.Header,
44842 }
44843 }
44844 if err != nil {
44845 return nil, err
44846 }
44847 defer googleapi.CloseBody(res)
44848 if err := googleapi.CheckResponse(res); err != nil {
44849 return nil, err
44850 }
44851 ret := &RemarketingListsListResponse{
44852 ServerResponse: googleapi.ServerResponse{
44853 Header: res.Header,
44854 HTTPStatusCode: res.StatusCode,
44855 },
44856 }
44857 target := &ret
44858 if err := gensupport.DecodeResponse(target, res); err != nil {
44859 return nil, err
44860 }
44861 return ret, nil
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
44907
44908
44909
44910
44911
44912
44913
44914
44915
44916
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954 }
44955
44956
44957
44958
44959 func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error {
44960 c.ctx_ = ctx
44961 defer c.PageToken(c.urlParams_.Get("pageToken"))
44962 for {
44963 x, err := c.Do()
44964 if err != nil {
44965 return err
44966 }
44967 if err := f(x); err != nil {
44968 return err
44969 }
44970 if x.NextPageToken == "" {
44971 return nil
44972 }
44973 c.PageToken(x.NextPageToken)
44974 }
44975 }
44976
44977
44978
44979 type RemarketingListsPatchCall struct {
44980 s *Service
44981 profileId int64
44982 remarketinglist *RemarketingList
44983 urlParams_ gensupport.URLParams
44984 ctx_ context.Context
44985 header_ http.Header
44986 }
44987
44988
44989
44990
44991
44992
44993 func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall {
44994 c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44995 c.profileId = profileId
44996 c.urlParams_.Set("id", fmt.Sprint(id))
44997 c.remarketinglist = remarketinglist
44998 return c
44999 }
45000
45001
45002
45003
45004 func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall {
45005 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45006 return c
45007 }
45008
45009
45010
45011
45012 func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall {
45013 c.ctx_ = ctx
45014 return c
45015 }
45016
45017
45018
45019 func (c *RemarketingListsPatchCall) Header() http.Header {
45020 if c.header_ == nil {
45021 c.header_ = make(http.Header)
45022 }
45023 return c.header_
45024 }
45025
45026 func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) {
45027 reqHeaders := make(http.Header)
45028 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
45029 for k, v := range c.header_ {
45030 reqHeaders[k] = v
45031 }
45032 reqHeaders.Set("User-Agent", c.s.userAgent())
45033 var body io.Reader = nil
45034 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist)
45035 if err != nil {
45036 return nil, err
45037 }
45038 reqHeaders.Set("Content-Type", "application/json")
45039 c.urlParams_.Set("alt", alt)
45040 c.urlParams_.Set("prettyPrint", "false")
45041 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
45042 urls += "?" + c.urlParams_.Encode()
45043 req, err := http.NewRequest("PATCH", urls, body)
45044 if err != nil {
45045 return nil, err
45046 }
45047 req.Header = reqHeaders
45048 googleapi.Expand(req.URL, map[string]string{
45049 "profileId": strconv.FormatInt(c.profileId, 10),
45050 })
45051 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45052 }
45053
45054
45055
45056
45057
45058
45059
45060
45061 func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
45062 gensupport.SetOptions(c.urlParams_, opts...)
45063 res, err := c.doRequest("json")
45064 if res != nil && res.StatusCode == http.StatusNotModified {
45065 if res.Body != nil {
45066 res.Body.Close()
45067 }
45068 return nil, &googleapi.Error{
45069 Code: res.StatusCode,
45070 Header: res.Header,
45071 }
45072 }
45073 if err != nil {
45074 return nil, err
45075 }
45076 defer googleapi.CloseBody(res)
45077 if err := googleapi.CheckResponse(res); err != nil {
45078 return nil, err
45079 }
45080 ret := &RemarketingList{
45081 ServerResponse: googleapi.ServerResponse{
45082 Header: res.Header,
45083 HTTPStatusCode: res.StatusCode,
45084 },
45085 }
45086 target := &ret
45087 if err := gensupport.DecodeResponse(target, res); err != nil {
45088 return nil, err
45089 }
45090 return ret, nil
45091
45092
45093
45094
45095
45096
45097
45098
45099
45100
45101
45102
45103
45104
45105
45106
45107
45108
45109
45110
45111
45112
45113
45114
45115
45116
45117
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128 }
45129
45130
45131
45132 type RemarketingListsUpdateCall struct {
45133 s *Service
45134 profileId int64
45135 remarketinglist *RemarketingList
45136 urlParams_ gensupport.URLParams
45137 ctx_ context.Context
45138 header_ http.Header
45139 }
45140
45141
45142
45143
45144 func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall {
45145 c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45146 c.profileId = profileId
45147 c.remarketinglist = remarketinglist
45148 return c
45149 }
45150
45151
45152
45153
45154 func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall {
45155 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45156 return c
45157 }
45158
45159
45160
45161
45162 func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall {
45163 c.ctx_ = ctx
45164 return c
45165 }
45166
45167
45168
45169 func (c *RemarketingListsUpdateCall) Header() http.Header {
45170 if c.header_ == nil {
45171 c.header_ = make(http.Header)
45172 }
45173 return c.header_
45174 }
45175
45176 func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) {
45177 reqHeaders := make(http.Header)
45178 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
45179 for k, v := range c.header_ {
45180 reqHeaders[k] = v
45181 }
45182 reqHeaders.Set("User-Agent", c.s.userAgent())
45183 var body io.Reader = nil
45184 body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist)
45185 if err != nil {
45186 return nil, err
45187 }
45188 reqHeaders.Set("Content-Type", "application/json")
45189 c.urlParams_.Set("alt", alt)
45190 c.urlParams_.Set("prettyPrint", "false")
45191 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists")
45192 urls += "?" + c.urlParams_.Encode()
45193 req, err := http.NewRequest("PUT", urls, body)
45194 if err != nil {
45195 return nil, err
45196 }
45197 req.Header = reqHeaders
45198 googleapi.Expand(req.URL, map[string]string{
45199 "profileId": strconv.FormatInt(c.profileId, 10),
45200 })
45201 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45202 }
45203
45204
45205
45206
45207
45208
45209
45210
45211 func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) {
45212 gensupport.SetOptions(c.urlParams_, opts...)
45213 res, err := c.doRequest("json")
45214 if res != nil && res.StatusCode == http.StatusNotModified {
45215 if res.Body != nil {
45216 res.Body.Close()
45217 }
45218 return nil, &googleapi.Error{
45219 Code: res.StatusCode,
45220 Header: res.Header,
45221 }
45222 }
45223 if err != nil {
45224 return nil, err
45225 }
45226 defer googleapi.CloseBody(res)
45227 if err := googleapi.CheckResponse(res); err != nil {
45228 return nil, err
45229 }
45230 ret := &RemarketingList{
45231 ServerResponse: googleapi.ServerResponse{
45232 Header: res.Header,
45233 HTTPStatusCode: res.StatusCode,
45234 },
45235 }
45236 target := &ret
45237 if err := gensupport.DecodeResponse(target, res); err != nil {
45238 return nil, err
45239 }
45240 return ret, nil
45241
45242
45243
45244
45245
45246
45247
45248
45249
45250
45251
45252
45253
45254
45255
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265
45266
45267
45268
45269
45270 }
45271
45272
45273
45274 type ReportsDeleteCall struct {
45275 s *Service
45276 profileId int64
45277 reportId int64
45278 urlParams_ gensupport.URLParams
45279 ctx_ context.Context
45280 header_ http.Header
45281 }
45282
45283
45284
45285
45286
45287 func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall {
45288 c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45289 c.profileId = profileId
45290 c.reportId = reportId
45291 return c
45292 }
45293
45294
45295
45296
45297 func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall {
45298 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45299 return c
45300 }
45301
45302
45303
45304
45305 func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall {
45306 c.ctx_ = ctx
45307 return c
45308 }
45309
45310
45311
45312 func (c *ReportsDeleteCall) Header() http.Header {
45313 if c.header_ == nil {
45314 c.header_ = make(http.Header)
45315 }
45316 return c.header_
45317 }
45318
45319 func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
45320 reqHeaders := make(http.Header)
45321 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
45322 for k, v := range c.header_ {
45323 reqHeaders[k] = v
45324 }
45325 reqHeaders.Set("User-Agent", c.s.userAgent())
45326 var body io.Reader = nil
45327 c.urlParams_.Set("alt", alt)
45328 c.urlParams_.Set("prettyPrint", "false")
45329 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
45330 urls += "?" + c.urlParams_.Encode()
45331 req, err := http.NewRequest("DELETE", urls, body)
45332 if err != nil {
45333 return nil, err
45334 }
45335 req.Header = reqHeaders
45336 googleapi.Expand(req.URL, map[string]string{
45337 "profileId": strconv.FormatInt(c.profileId, 10),
45338 "reportId": strconv.FormatInt(c.reportId, 10),
45339 })
45340 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45341 }
45342
45343
45344 func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error {
45345 gensupport.SetOptions(c.urlParams_, opts...)
45346 res, err := c.doRequest("json")
45347 if err != nil {
45348 return err
45349 }
45350 defer googleapi.CloseBody(res)
45351 if err := googleapi.CheckResponse(res); err != nil {
45352 return err
45353 }
45354 return nil
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
45374
45375
45376
45377
45378
45379
45380
45381
45382
45383
45384
45385
45386 }
45387
45388
45389
45390 type ReportsGetCall struct {
45391 s *Service
45392 profileId int64
45393 reportId int64
45394 urlParams_ gensupport.URLParams
45395 ifNoneMatch_ string
45396 ctx_ context.Context
45397 header_ http.Header
45398 }
45399
45400
45401
45402
45403
45404 func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall {
45405 c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45406 c.profileId = profileId
45407 c.reportId = reportId
45408 return c
45409 }
45410
45411
45412
45413
45414 func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall {
45415 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45416 return c
45417 }
45418
45419
45420
45421
45422
45423
45424 func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall {
45425 c.ifNoneMatch_ = entityTag
45426 return c
45427 }
45428
45429
45430
45431
45432 func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall {
45433 c.ctx_ = ctx
45434 return c
45435 }
45436
45437
45438
45439 func (c *ReportsGetCall) Header() http.Header {
45440 if c.header_ == nil {
45441 c.header_ = make(http.Header)
45442 }
45443 return c.header_
45444 }
45445
45446 func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) {
45447 reqHeaders := make(http.Header)
45448 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
45449 for k, v := range c.header_ {
45450 reqHeaders[k] = v
45451 }
45452 reqHeaders.Set("User-Agent", c.s.userAgent())
45453 if c.ifNoneMatch_ != "" {
45454 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45455 }
45456 var body io.Reader = nil
45457 c.urlParams_.Set("alt", alt)
45458 c.urlParams_.Set("prettyPrint", "false")
45459 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
45460 urls += "?" + c.urlParams_.Encode()
45461 req, err := http.NewRequest("GET", urls, body)
45462 if err != nil {
45463 return nil, err
45464 }
45465 req.Header = reqHeaders
45466 googleapi.Expand(req.URL, map[string]string{
45467 "profileId": strconv.FormatInt(c.profileId, 10),
45468 "reportId": strconv.FormatInt(c.reportId, 10),
45469 })
45470 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45471 }
45472
45473
45474
45475
45476
45477
45478
45479
45480 func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) {
45481 gensupport.SetOptions(c.urlParams_, opts...)
45482 res, err := c.doRequest("json")
45483 if res != nil && res.StatusCode == http.StatusNotModified {
45484 if res.Body != nil {
45485 res.Body.Close()
45486 }
45487 return nil, &googleapi.Error{
45488 Code: res.StatusCode,
45489 Header: res.Header,
45490 }
45491 }
45492 if err != nil {
45493 return nil, err
45494 }
45495 defer googleapi.CloseBody(res)
45496 if err := googleapi.CheckResponse(res); err != nil {
45497 return nil, err
45498 }
45499 ret := &Report{
45500 ServerResponse: googleapi.ServerResponse{
45501 Header: res.Header,
45502 HTTPStatusCode: res.StatusCode,
45503 },
45504 }
45505 target := &ret
45506 if err := gensupport.DecodeResponse(target, res); err != nil {
45507 return nil, err
45508 }
45509 return ret, nil
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 type ReportsInsertCall struct {
45549 s *Service
45550 profileId int64
45551 report *Report
45552 urlParams_ gensupport.URLParams
45553 ctx_ context.Context
45554 header_ http.Header
45555 }
45556
45557
45558
45559
45560 func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall {
45561 c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45562 c.profileId = profileId
45563 c.report = report
45564 return c
45565 }
45566
45567
45568
45569
45570 func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall {
45571 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45572 return c
45573 }
45574
45575
45576
45577
45578 func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall {
45579 c.ctx_ = ctx
45580 return c
45581 }
45582
45583
45584
45585 func (c *ReportsInsertCall) Header() http.Header {
45586 if c.header_ == nil {
45587 c.header_ = make(http.Header)
45588 }
45589 return c.header_
45590 }
45591
45592 func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) {
45593 reqHeaders := make(http.Header)
45594 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
45595 for k, v := range c.header_ {
45596 reqHeaders[k] = v
45597 }
45598 reqHeaders.Set("User-Agent", c.s.userAgent())
45599 var body io.Reader = nil
45600 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
45601 if err != nil {
45602 return nil, err
45603 }
45604 reqHeaders.Set("Content-Type", "application/json")
45605 c.urlParams_.Set("alt", alt)
45606 c.urlParams_.Set("prettyPrint", "false")
45607 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports")
45608 urls += "?" + c.urlParams_.Encode()
45609 req, err := http.NewRequest("POST", urls, body)
45610 if err != nil {
45611 return nil, err
45612 }
45613 req.Header = reqHeaders
45614 googleapi.Expand(req.URL, map[string]string{
45615 "profileId": strconv.FormatInt(c.profileId, 10),
45616 })
45617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45618 }
45619
45620
45621
45622
45623
45624
45625
45626
45627 func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) {
45628 gensupport.SetOptions(c.urlParams_, opts...)
45629 res, err := c.doRequest("json")
45630 if res != nil && res.StatusCode == http.StatusNotModified {
45631 if res.Body != nil {
45632 res.Body.Close()
45633 }
45634 return nil, &googleapi.Error{
45635 Code: res.StatusCode,
45636 Header: res.Header,
45637 }
45638 }
45639 if err != nil {
45640 return nil, err
45641 }
45642 defer googleapi.CloseBody(res)
45643 if err := googleapi.CheckResponse(res); err != nil {
45644 return nil, err
45645 }
45646 ret := &Report{
45647 ServerResponse: googleapi.ServerResponse{
45648 Header: res.Header,
45649 HTTPStatusCode: res.StatusCode,
45650 },
45651 }
45652 target := &ret
45653 if err := gensupport.DecodeResponse(target, res); err != nil {
45654 return nil, err
45655 }
45656 return ret, nil
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686 }
45687
45688
45689
45690 type ReportsListCall struct {
45691 s *Service
45692 profileId int64
45693 urlParams_ gensupport.URLParams
45694 ifNoneMatch_ string
45695 ctx_ context.Context
45696 header_ http.Header
45697 }
45698
45699
45700
45701
45702 func (r *ReportsService) List(profileId int64) *ReportsListCall {
45703 c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45704 c.profileId = profileId
45705 return c
45706 }
45707
45708
45709
45710 func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall {
45711 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
45712 return c
45713 }
45714
45715
45716
45717 func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall {
45718 c.urlParams_.Set("pageToken", pageToken)
45719 return c
45720 }
45721
45722
45723
45724
45725
45726
45727
45728
45729 func (c *ReportsListCall) Scope(scope string) *ReportsListCall {
45730 c.urlParams_.Set("scope", scope)
45731 return c
45732 }
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742 func (c *ReportsListCall) SortField(sortField string) *ReportsListCall {
45743 c.urlParams_.Set("sortField", sortField)
45744 return c
45745 }
45746
45747
45748
45749
45750
45751
45752
45753
45754 func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall {
45755 c.urlParams_.Set("sortOrder", sortOrder)
45756 return c
45757 }
45758
45759
45760
45761
45762 func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall {
45763 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45764 return c
45765 }
45766
45767
45768
45769
45770
45771
45772 func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall {
45773 c.ifNoneMatch_ = entityTag
45774 return c
45775 }
45776
45777
45778
45779
45780 func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall {
45781 c.ctx_ = ctx
45782 return c
45783 }
45784
45785
45786
45787 func (c *ReportsListCall) Header() http.Header {
45788 if c.header_ == nil {
45789 c.header_ = make(http.Header)
45790 }
45791 return c.header_
45792 }
45793
45794 func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) {
45795 reqHeaders := make(http.Header)
45796 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
45797 for k, v := range c.header_ {
45798 reqHeaders[k] = v
45799 }
45800 reqHeaders.Set("User-Agent", c.s.userAgent())
45801 if c.ifNoneMatch_ != "" {
45802 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45803 }
45804 var body io.Reader = nil
45805 c.urlParams_.Set("alt", alt)
45806 c.urlParams_.Set("prettyPrint", "false")
45807 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports")
45808 urls += "?" + c.urlParams_.Encode()
45809 req, err := http.NewRequest("GET", urls, body)
45810 if err != nil {
45811 return nil, err
45812 }
45813 req.Header = reqHeaders
45814 googleapi.Expand(req.URL, map[string]string{
45815 "profileId": strconv.FormatInt(c.profileId, 10),
45816 })
45817 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45818 }
45819
45820
45821
45822
45823
45824
45825
45826
45827 func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) {
45828 gensupport.SetOptions(c.urlParams_, opts...)
45829 res, err := c.doRequest("json")
45830 if res != nil && res.StatusCode == http.StatusNotModified {
45831 if res.Body != nil {
45832 res.Body.Close()
45833 }
45834 return nil, &googleapi.Error{
45835 Code: res.StatusCode,
45836 Header: res.Header,
45837 }
45838 }
45839 if err != nil {
45840 return nil, err
45841 }
45842 defer googleapi.CloseBody(res)
45843 if err := googleapi.CheckResponse(res); err != nil {
45844 return nil, err
45845 }
45846 ret := &ReportList{
45847 ServerResponse: googleapi.ServerResponse{
45848 Header: res.Header,
45849 HTTPStatusCode: res.StatusCode,
45850 },
45851 }
45852 target := &ret
45853 if err := gensupport.DecodeResponse(target, res); err != nil {
45854 return nil, err
45855 }
45856 return ret, nil
45857
45858
45859
45860
45861
45862
45863
45864
45865
45866
45867
45868
45869
45870
45871
45872
45873
45874
45875
45876
45877
45878
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
45912
45913
45914
45915
45916
45917
45918
45919
45920
45921
45922
45923
45924
45925
45926
45927
45928
45929
45930
45931
45932
45933
45934
45935
45936
45937
45938
45939
45940
45941 }
45942
45943
45944
45945
45946 func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error {
45947 c.ctx_ = ctx
45948 defer c.PageToken(c.urlParams_.Get("pageToken"))
45949 for {
45950 x, err := c.Do()
45951 if err != nil {
45952 return err
45953 }
45954 if err := f(x); err != nil {
45955 return err
45956 }
45957 if x.NextPageToken == "" {
45958 return nil
45959 }
45960 c.PageToken(x.NextPageToken)
45961 }
45962 }
45963
45964
45965
45966 type ReportsPatchCall struct {
45967 s *Service
45968 profileId int64
45969 reportId int64
45970 report *Report
45971 urlParams_ gensupport.URLParams
45972 ctx_ context.Context
45973 header_ http.Header
45974 }
45975
45976
45977
45978
45979
45980
45981 func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall {
45982 c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45983 c.profileId = profileId
45984 c.reportId = reportId
45985 c.report = report
45986 return c
45987 }
45988
45989
45990
45991
45992 func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall {
45993 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45994 return c
45995 }
45996
45997
45998
45999
46000 func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall {
46001 c.ctx_ = ctx
46002 return c
46003 }
46004
46005
46006
46007 func (c *ReportsPatchCall) Header() http.Header {
46008 if c.header_ == nil {
46009 c.header_ = make(http.Header)
46010 }
46011 return c.header_
46012 }
46013
46014 func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) {
46015 reqHeaders := make(http.Header)
46016 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
46017 for k, v := range c.header_ {
46018 reqHeaders[k] = v
46019 }
46020 reqHeaders.Set("User-Agent", c.s.userAgent())
46021 var body io.Reader = nil
46022 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
46023 if err != nil {
46024 return nil, err
46025 }
46026 reqHeaders.Set("Content-Type", "application/json")
46027 c.urlParams_.Set("alt", alt)
46028 c.urlParams_.Set("prettyPrint", "false")
46029 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
46030 urls += "?" + c.urlParams_.Encode()
46031 req, err := http.NewRequest("PATCH", urls, body)
46032 if err != nil {
46033 return nil, err
46034 }
46035 req.Header = reqHeaders
46036 googleapi.Expand(req.URL, map[string]string{
46037 "profileId": strconv.FormatInt(c.profileId, 10),
46038 "reportId": strconv.FormatInt(c.reportId, 10),
46039 })
46040 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46041 }
46042
46043
46044
46045
46046
46047
46048
46049
46050 func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) {
46051 gensupport.SetOptions(c.urlParams_, opts...)
46052 res, err := c.doRequest("json")
46053 if res != nil && res.StatusCode == http.StatusNotModified {
46054 if res.Body != nil {
46055 res.Body.Close()
46056 }
46057 return nil, &googleapi.Error{
46058 Code: res.StatusCode,
46059 Header: res.Header,
46060 }
46061 }
46062 if err != nil {
46063 return nil, err
46064 }
46065 defer googleapi.CloseBody(res)
46066 if err := googleapi.CheckResponse(res); err != nil {
46067 return nil, err
46068 }
46069 ret := &Report{
46070 ServerResponse: googleapi.ServerResponse{
46071 Header: res.Header,
46072 HTTPStatusCode: res.StatusCode,
46073 },
46074 }
46075 target := &ret
46076 if err := gensupport.DecodeResponse(target, res); err != nil {
46077 return nil, err
46078 }
46079 return ret, nil
46080
46081
46082
46083
46084
46085
46086
46087
46088
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
46108
46109
46110
46111
46112
46113
46114
46115
46116
46117 }
46118
46119
46120
46121 type ReportsRunCall struct {
46122 s *Service
46123 profileId int64
46124 reportId int64
46125 urlParams_ gensupport.URLParams
46126 ctx_ context.Context
46127 header_ http.Header
46128 }
46129
46130
46131
46132
46133
46134 func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall {
46135 c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46136 c.profileId = profileId
46137 c.reportId = reportId
46138 return c
46139 }
46140
46141
46142
46143 func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall {
46144 c.urlParams_.Set("synchronous", fmt.Sprint(synchronous))
46145 return c
46146 }
46147
46148
46149
46150
46151 func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall {
46152 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46153 return c
46154 }
46155
46156
46157
46158
46159 func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall {
46160 c.ctx_ = ctx
46161 return c
46162 }
46163
46164
46165
46166 func (c *ReportsRunCall) Header() http.Header {
46167 if c.header_ == nil {
46168 c.header_ = make(http.Header)
46169 }
46170 return c.header_
46171 }
46172
46173 func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) {
46174 reqHeaders := make(http.Header)
46175 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
46176 for k, v := range c.header_ {
46177 reqHeaders[k] = v
46178 }
46179 reqHeaders.Set("User-Agent", c.s.userAgent())
46180 var body io.Reader = nil
46181 c.urlParams_.Set("alt", alt)
46182 c.urlParams_.Set("prettyPrint", "false")
46183 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/run")
46184 urls += "?" + c.urlParams_.Encode()
46185 req, err := http.NewRequest("POST", urls, body)
46186 if err != nil {
46187 return nil, err
46188 }
46189 req.Header = reqHeaders
46190 googleapi.Expand(req.URL, map[string]string{
46191 "profileId": strconv.FormatInt(c.profileId, 10),
46192 "reportId": strconv.FormatInt(c.reportId, 10),
46193 })
46194 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46195 }
46196
46197
46198
46199
46200
46201
46202
46203
46204 func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) {
46205 gensupport.SetOptions(c.urlParams_, opts...)
46206 res, err := c.doRequest("json")
46207 if res != nil && res.StatusCode == http.StatusNotModified {
46208 if res.Body != nil {
46209 res.Body.Close()
46210 }
46211 return nil, &googleapi.Error{
46212 Code: res.StatusCode,
46213 Header: res.Header,
46214 }
46215 }
46216 if err != nil {
46217 return nil, err
46218 }
46219 defer googleapi.CloseBody(res)
46220 if err := googleapi.CheckResponse(res); err != nil {
46221 return nil, err
46222 }
46223 ret := &File{
46224 ServerResponse: googleapi.ServerResponse{
46225 Header: res.Header,
46226 HTTPStatusCode: res.StatusCode,
46227 },
46228 }
46229 target := &ret
46230 if err := gensupport.DecodeResponse(target, res); err != nil {
46231 return nil, err
46232 }
46233 return ret, nil
46234
46235
46236
46237
46238
46239
46240
46241
46242
46243
46244
46245
46246
46247
46248
46249
46250
46251
46252
46253
46254
46255
46256
46257
46258
46259
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274 }
46275
46276
46277
46278 type ReportsUpdateCall struct {
46279 s *Service
46280 profileId int64
46281 reportId int64
46282 report *Report
46283 urlParams_ gensupport.URLParams
46284 ctx_ context.Context
46285 header_ http.Header
46286 }
46287
46288
46289
46290
46291
46292 func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall {
46293 c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46294 c.profileId = profileId
46295 c.reportId = reportId
46296 c.report = report
46297 return c
46298 }
46299
46300
46301
46302
46303 func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall {
46304 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46305 return c
46306 }
46307
46308
46309
46310
46311 func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall {
46312 c.ctx_ = ctx
46313 return c
46314 }
46315
46316
46317
46318 func (c *ReportsUpdateCall) Header() http.Header {
46319 if c.header_ == nil {
46320 c.header_ = make(http.Header)
46321 }
46322 return c.header_
46323 }
46324
46325 func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
46326 reqHeaders := make(http.Header)
46327 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
46328 for k, v := range c.header_ {
46329 reqHeaders[k] = v
46330 }
46331 reqHeaders.Set("User-Agent", c.s.userAgent())
46332 var body io.Reader = nil
46333 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
46334 if err != nil {
46335 return nil, err
46336 }
46337 reqHeaders.Set("Content-Type", "application/json")
46338 c.urlParams_.Set("alt", alt)
46339 c.urlParams_.Set("prettyPrint", "false")
46340 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}")
46341 urls += "?" + c.urlParams_.Encode()
46342 req, err := http.NewRequest("PUT", urls, body)
46343 if err != nil {
46344 return nil, err
46345 }
46346 req.Header = reqHeaders
46347 googleapi.Expand(req.URL, map[string]string{
46348 "profileId": strconv.FormatInt(c.profileId, 10),
46349 "reportId": strconv.FormatInt(c.reportId, 10),
46350 })
46351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46352 }
46353
46354
46355
46356
46357
46358
46359
46360
46361 func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) {
46362 gensupport.SetOptions(c.urlParams_, opts...)
46363 res, err := c.doRequest("json")
46364 if res != nil && res.StatusCode == http.StatusNotModified {
46365 if res.Body != nil {
46366 res.Body.Close()
46367 }
46368 return nil, &googleapi.Error{
46369 Code: res.StatusCode,
46370 Header: res.Header,
46371 }
46372 }
46373 if err != nil {
46374 return nil, err
46375 }
46376 defer googleapi.CloseBody(res)
46377 if err := googleapi.CheckResponse(res); err != nil {
46378 return nil, err
46379 }
46380 ret := &Report{
46381 ServerResponse: googleapi.ServerResponse{
46382 Header: res.Header,
46383 HTTPStatusCode: res.StatusCode,
46384 },
46385 }
46386 target := &ret
46387 if err := gensupport.DecodeResponse(target, res); err != nil {
46388 return nil, err
46389 }
46390 return ret, nil
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428 }
46429
46430
46431
46432 type ReportsCompatibleFieldsQueryCall struct {
46433 s *Service
46434 profileId int64
46435 report *Report
46436 urlParams_ gensupport.URLParams
46437 ctx_ context.Context
46438 header_ http.Header
46439 }
46440
46441
46442
46443
46444
46445
46446 func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall {
46447 c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46448 c.profileId = profileId
46449 c.report = report
46450 return c
46451 }
46452
46453
46454
46455
46456 func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall {
46457 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46458 return c
46459 }
46460
46461
46462
46463
46464 func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall {
46465 c.ctx_ = ctx
46466 return c
46467 }
46468
46469
46470
46471 func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header {
46472 if c.header_ == nil {
46473 c.header_ = make(http.Header)
46474 }
46475 return c.header_
46476 }
46477
46478 func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) {
46479 reqHeaders := make(http.Header)
46480 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
46481 for k, v := range c.header_ {
46482 reqHeaders[k] = v
46483 }
46484 reqHeaders.Set("User-Agent", c.s.userAgent())
46485 var body io.Reader = nil
46486 body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
46487 if err != nil {
46488 return nil, err
46489 }
46490 reqHeaders.Set("Content-Type", "application/json")
46491 c.urlParams_.Set("alt", alt)
46492 c.urlParams_.Set("prettyPrint", "false")
46493 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query")
46494 urls += "?" + c.urlParams_.Encode()
46495 req, err := http.NewRequest("POST", urls, body)
46496 if err != nil {
46497 return nil, err
46498 }
46499 req.Header = reqHeaders
46500 googleapi.Expand(req.URL, map[string]string{
46501 "profileId": strconv.FormatInt(c.profileId, 10),
46502 })
46503 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46504 }
46505
46506
46507
46508
46509
46510
46511
46512
46513 func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) {
46514 gensupport.SetOptions(c.urlParams_, opts...)
46515 res, err := c.doRequest("json")
46516 if res != nil && res.StatusCode == http.StatusNotModified {
46517 if res.Body != nil {
46518 res.Body.Close()
46519 }
46520 return nil, &googleapi.Error{
46521 Code: res.StatusCode,
46522 Header: res.Header,
46523 }
46524 }
46525 if err != nil {
46526 return nil, err
46527 }
46528 defer googleapi.CloseBody(res)
46529 if err := googleapi.CheckResponse(res); err != nil {
46530 return nil, err
46531 }
46532 ret := &CompatibleFields{
46533 ServerResponse: googleapi.ServerResponse{
46534 Header: res.Header,
46535 HTTPStatusCode: res.StatusCode,
46536 },
46537 }
46538 target := &ret
46539 if err := gensupport.DecodeResponse(target, res); err != nil {
46540 return nil, err
46541 }
46542 return ret, nil
46543
46544
46545
46546
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572 }
46573
46574
46575
46576 type ReportsFilesGetCall struct {
46577 s *Service
46578 profileId int64
46579 reportId int64
46580 fileId int64
46581 urlParams_ gensupport.URLParams
46582 ifNoneMatch_ string
46583 ctx_ context.Context
46584 header_ http.Header
46585 }
46586
46587
46588
46589
46590
46591
46592
46593 func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall {
46594 c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46595 c.profileId = profileId
46596 c.reportId = reportId
46597 c.fileId = fileId
46598 return c
46599 }
46600
46601
46602
46603
46604 func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall {
46605 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46606 return c
46607 }
46608
46609
46610
46611
46612
46613
46614 func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall {
46615 c.ifNoneMatch_ = entityTag
46616 return c
46617 }
46618
46619
46620
46621
46622 func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall {
46623 c.ctx_ = ctx
46624 return c
46625 }
46626
46627
46628
46629 func (c *ReportsFilesGetCall) Header() http.Header {
46630 if c.header_ == nil {
46631 c.header_ = make(http.Header)
46632 }
46633 return c.header_
46634 }
46635
46636 func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) {
46637 reqHeaders := make(http.Header)
46638 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
46639 for k, v := range c.header_ {
46640 reqHeaders[k] = v
46641 }
46642 reqHeaders.Set("User-Agent", c.s.userAgent())
46643 if c.ifNoneMatch_ != "" {
46644 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46645 }
46646 var body io.Reader = nil
46647 c.urlParams_.Set("alt", alt)
46648 c.urlParams_.Set("prettyPrint", "false")
46649 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files/{fileId}")
46650 urls += "?" + c.urlParams_.Encode()
46651 req, err := http.NewRequest("GET", urls, body)
46652 if err != nil {
46653 return nil, err
46654 }
46655 req.Header = reqHeaders
46656 googleapi.Expand(req.URL, map[string]string{
46657 "profileId": strconv.FormatInt(c.profileId, 10),
46658 "reportId": strconv.FormatInt(c.reportId, 10),
46659 "fileId": strconv.FormatInt(c.fileId, 10),
46660 })
46661 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46662 }
46663
46664
46665
46666
46667 func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
46668 gensupport.SetOptions(c.urlParams_, opts...)
46669 res, err := c.doRequest("media")
46670 if err != nil {
46671 return nil, err
46672 }
46673 if err := googleapi.CheckResponse(res); err != nil {
46674 res.Body.Close()
46675 return nil, err
46676 }
46677 return res, nil
46678 }
46679
46680
46681
46682
46683
46684
46685
46686
46687 func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) {
46688 gensupport.SetOptions(c.urlParams_, opts...)
46689 res, err := c.doRequest("json")
46690 if res != nil && res.StatusCode == http.StatusNotModified {
46691 if res.Body != nil {
46692 res.Body.Close()
46693 }
46694 return nil, &googleapi.Error{
46695 Code: res.StatusCode,
46696 Header: res.Header,
46697 }
46698 }
46699 if err != nil {
46700 return nil, err
46701 }
46702 defer googleapi.CloseBody(res)
46703 if err := googleapi.CheckResponse(res); err != nil {
46704 return nil, err
46705 }
46706 ret := &File{
46707 ServerResponse: googleapi.ServerResponse{
46708 Header: res.Header,
46709 HTTPStatusCode: res.StatusCode,
46710 },
46711 }
46712 target := &ret
46713 if err := gensupport.DecodeResponse(target, res); err != nil {
46714 return nil, err
46715 }
46716 return ret, nil
46717
46718
46719
46720
46721
46722
46723
46724
46725
46726
46727
46728
46729
46730
46731
46732
46733
46734
46735
46736
46737
46738
46739
46740
46741
46742
46743
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754
46755
46756
46757
46758
46759
46760 }
46761
46762
46763
46764 type ReportsFilesListCall struct {
46765 s *Service
46766 profileId int64
46767 reportId int64
46768 urlParams_ gensupport.URLParams
46769 ifNoneMatch_ string
46770 ctx_ context.Context
46771 header_ http.Header
46772 }
46773
46774
46775
46776
46777
46778 func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall {
46779 c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46780 c.profileId = profileId
46781 c.reportId = reportId
46782 return c
46783 }
46784
46785
46786
46787 func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall {
46788 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
46789 return c
46790 }
46791
46792
46793
46794 func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall {
46795 c.urlParams_.Set("pageToken", pageToken)
46796 return c
46797 }
46798
46799
46800
46801
46802
46803
46804
46805
46806 func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall {
46807 c.urlParams_.Set("sortField", sortField)
46808 return c
46809 }
46810
46811
46812
46813
46814
46815
46816
46817
46818 func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall {
46819 c.urlParams_.Set("sortOrder", sortOrder)
46820 return c
46821 }
46822
46823
46824
46825
46826 func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall {
46827 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46828 return c
46829 }
46830
46831
46832
46833
46834
46835
46836 func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall {
46837 c.ifNoneMatch_ = entityTag
46838 return c
46839 }
46840
46841
46842
46843
46844 func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall {
46845 c.ctx_ = ctx
46846 return c
46847 }
46848
46849
46850
46851 func (c *ReportsFilesListCall) Header() http.Header {
46852 if c.header_ == nil {
46853 c.header_ = make(http.Header)
46854 }
46855 return c.header_
46856 }
46857
46858 func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) {
46859 reqHeaders := make(http.Header)
46860 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
46861 for k, v := range c.header_ {
46862 reqHeaders[k] = v
46863 }
46864 reqHeaders.Set("User-Agent", c.s.userAgent())
46865 if c.ifNoneMatch_ != "" {
46866 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46867 }
46868 var body io.Reader = nil
46869 c.urlParams_.Set("alt", alt)
46870 c.urlParams_.Set("prettyPrint", "false")
46871 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}/files")
46872 urls += "?" + c.urlParams_.Encode()
46873 req, err := http.NewRequest("GET", urls, body)
46874 if err != nil {
46875 return nil, err
46876 }
46877 req.Header = reqHeaders
46878 googleapi.Expand(req.URL, map[string]string{
46879 "profileId": strconv.FormatInt(c.profileId, 10),
46880 "reportId": strconv.FormatInt(c.reportId, 10),
46881 })
46882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46883 }
46884
46885
46886
46887
46888
46889
46890
46891
46892 func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) {
46893 gensupport.SetOptions(c.urlParams_, opts...)
46894 res, err := c.doRequest("json")
46895 if res != nil && res.StatusCode == http.StatusNotModified {
46896 if res.Body != nil {
46897 res.Body.Close()
46898 }
46899 return nil, &googleapi.Error{
46900 Code: res.StatusCode,
46901 Header: res.Header,
46902 }
46903 }
46904 if err != nil {
46905 return nil, err
46906 }
46907 defer googleapi.CloseBody(res)
46908 if err := googleapi.CheckResponse(res); err != nil {
46909 return nil, err
46910 }
46911 ret := &FileList{
46912 ServerResponse: googleapi.ServerResponse{
46913 Header: res.Header,
46914 HTTPStatusCode: res.StatusCode,
46915 },
46916 }
46917 target := &ret
46918 if err := gensupport.DecodeResponse(target, res); err != nil {
46919 return nil, err
46920 }
46921 return ret, nil
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
46962
46963
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
46982
46983
46984
46985
46986
46987
46988
46989
46990
46991
46992
46993
46994
46995
46996
46997
46998 }
46999
47000
47001
47002
47003 func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error {
47004 c.ctx_ = ctx
47005 defer c.PageToken(c.urlParams_.Get("pageToken"))
47006 for {
47007 x, err := c.Do()
47008 if err != nil {
47009 return err
47010 }
47011 if err := f(x); err != nil {
47012 return err
47013 }
47014 if x.NextPageToken == "" {
47015 return nil
47016 }
47017 c.PageToken(x.NextPageToken)
47018 }
47019 }
47020
47021
47022
47023 type SitesGetCall struct {
47024 s *Service
47025 profileId int64
47026 id int64
47027 urlParams_ gensupport.URLParams
47028 ifNoneMatch_ string
47029 ctx_ context.Context
47030 header_ http.Header
47031 }
47032
47033
47034
47035
47036
47037 func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall {
47038 c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47039 c.profileId = profileId
47040 c.id = id
47041 return c
47042 }
47043
47044
47045
47046
47047 func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall {
47048 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47049 return c
47050 }
47051
47052
47053
47054
47055
47056
47057 func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall {
47058 c.ifNoneMatch_ = entityTag
47059 return c
47060 }
47061
47062
47063
47064
47065 func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall {
47066 c.ctx_ = ctx
47067 return c
47068 }
47069
47070
47071
47072 func (c *SitesGetCall) Header() http.Header {
47073 if c.header_ == nil {
47074 c.header_ = make(http.Header)
47075 }
47076 return c.header_
47077 }
47078
47079 func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) {
47080 reqHeaders := make(http.Header)
47081 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
47082 for k, v := range c.header_ {
47083 reqHeaders[k] = v
47084 }
47085 reqHeaders.Set("User-Agent", c.s.userAgent())
47086 if c.ifNoneMatch_ != "" {
47087 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47088 }
47089 var body io.Reader = nil
47090 c.urlParams_.Set("alt", alt)
47091 c.urlParams_.Set("prettyPrint", "false")
47092 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites/{id}")
47093 urls += "?" + c.urlParams_.Encode()
47094 req, err := http.NewRequest("GET", urls, body)
47095 if err != nil {
47096 return nil, err
47097 }
47098 req.Header = reqHeaders
47099 googleapi.Expand(req.URL, map[string]string{
47100 "profileId": strconv.FormatInt(c.profileId, 10),
47101 "id": strconv.FormatInt(c.id, 10),
47102 })
47103 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47104 }
47105
47106
47107
47108
47109
47110
47111
47112
47113 func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) {
47114 gensupport.SetOptions(c.urlParams_, opts...)
47115 res, err := c.doRequest("json")
47116 if res != nil && res.StatusCode == http.StatusNotModified {
47117 if res.Body != nil {
47118 res.Body.Close()
47119 }
47120 return nil, &googleapi.Error{
47121 Code: res.StatusCode,
47122 Header: res.Header,
47123 }
47124 }
47125 if err != nil {
47126 return nil, err
47127 }
47128 defer googleapi.CloseBody(res)
47129 if err := googleapi.CheckResponse(res); err != nil {
47130 return nil, err
47131 }
47132 ret := &Site{
47133 ServerResponse: googleapi.ServerResponse{
47134 Header: res.Header,
47135 HTTPStatusCode: res.StatusCode,
47136 },
47137 }
47138 target := &ret
47139 if err := gensupport.DecodeResponse(target, res); err != nil {
47140 return nil, err
47141 }
47142 return ret, nil
47143
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177 }
47178
47179
47180
47181 type SitesInsertCall struct {
47182 s *Service
47183 profileId int64
47184 site *Site
47185 urlParams_ gensupport.URLParams
47186 ctx_ context.Context
47187 header_ http.Header
47188 }
47189
47190
47191
47192
47193 func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall {
47194 c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47195 c.profileId = profileId
47196 c.site = site
47197 return c
47198 }
47199
47200
47201
47202
47203 func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall {
47204 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47205 return c
47206 }
47207
47208
47209
47210
47211 func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall {
47212 c.ctx_ = ctx
47213 return c
47214 }
47215
47216
47217
47218 func (c *SitesInsertCall) Header() http.Header {
47219 if c.header_ == nil {
47220 c.header_ = make(http.Header)
47221 }
47222 return c.header_
47223 }
47224
47225 func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) {
47226 reqHeaders := make(http.Header)
47227 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
47228 for k, v := range c.header_ {
47229 reqHeaders[k] = v
47230 }
47231 reqHeaders.Set("User-Agent", c.s.userAgent())
47232 var body io.Reader = nil
47233 body, err := googleapi.WithoutDataWrapper.JSONReader(c.site)
47234 if err != nil {
47235 return nil, err
47236 }
47237 reqHeaders.Set("Content-Type", "application/json")
47238 c.urlParams_.Set("alt", alt)
47239 c.urlParams_.Set("prettyPrint", "false")
47240 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
47241 urls += "?" + c.urlParams_.Encode()
47242 req, err := http.NewRequest("POST", urls, body)
47243 if err != nil {
47244 return nil, err
47245 }
47246 req.Header = reqHeaders
47247 googleapi.Expand(req.URL, map[string]string{
47248 "profileId": strconv.FormatInt(c.profileId, 10),
47249 })
47250 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47251 }
47252
47253
47254
47255
47256
47257
47258
47259
47260 func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) {
47261 gensupport.SetOptions(c.urlParams_, opts...)
47262 res, err := c.doRequest("json")
47263 if res != nil && res.StatusCode == http.StatusNotModified {
47264 if res.Body != nil {
47265 res.Body.Close()
47266 }
47267 return nil, &googleapi.Error{
47268 Code: res.StatusCode,
47269 Header: res.Header,
47270 }
47271 }
47272 if err != nil {
47273 return nil, err
47274 }
47275 defer googleapi.CloseBody(res)
47276 if err := googleapi.CheckResponse(res); err != nil {
47277 return nil, err
47278 }
47279 ret := &Site{
47280 ServerResponse: googleapi.ServerResponse{
47281 Header: res.Header,
47282 HTTPStatusCode: res.StatusCode,
47283 },
47284 }
47285 target := &ret
47286 if err := gensupport.DecodeResponse(target, res); err != nil {
47287 return nil, err
47288 }
47289 return ret, nil
47290
47291
47292
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319 }
47320
47321
47322
47323 type SitesListCall struct {
47324 s *Service
47325 profileId int64
47326 urlParams_ gensupport.URLParams
47327 ifNoneMatch_ string
47328 ctx_ context.Context
47329 header_ http.Header
47330 }
47331
47332
47333
47334
47335
47336 func (r *SitesService) List(profileId int64) *SitesListCall {
47337 c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47338 c.profileId = profileId
47339 return c
47340 }
47341
47342
47343
47344
47345 func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall {
47346 c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements))
47347 return c
47348 }
47349
47350
47351
47352
47353 func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall {
47354 c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements))
47355 return c
47356 }
47357
47358
47359
47360
47361 func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall {
47362 c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements))
47363 return c
47364 }
47365
47366
47367
47368 func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall {
47369 c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite))
47370 return c
47371 }
47372
47373
47374
47375 func (c *SitesListCall) Approved(approved bool) *SitesListCall {
47376 c.urlParams_.Set("approved", fmt.Sprint(approved))
47377 return c
47378 }
47379
47380
47381
47382 func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall {
47383 var campaignIds_ []string
47384 for _, v := range campaignIds {
47385 campaignIds_ = append(campaignIds_, fmt.Sprint(v))
47386 }
47387 c.urlParams_.SetMulti("campaignIds", campaignIds_)
47388 return c
47389 }
47390
47391
47392
47393 func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall {
47394 var directorySiteIds_ []string
47395 for _, v := range directorySiteIds {
47396 directorySiteIds_ = append(directorySiteIds_, fmt.Sprint(v))
47397 }
47398 c.urlParams_.SetMulti("directorySiteIds", directorySiteIds_)
47399 return c
47400 }
47401
47402
47403
47404 func (c *SitesListCall) Ids(ids ...int64) *SitesListCall {
47405 var ids_ []string
47406 for _, v := range ids {
47407 ids_ = append(ids_, fmt.Sprint(v))
47408 }
47409 c.urlParams_.SetMulti("ids", ids_)
47410 return c
47411 }
47412
47413
47414
47415 func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall {
47416 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
47417 return c
47418 }
47419
47420
47421
47422 func (c *SitesListCall) PageToken(pageToken string) *SitesListCall {
47423 c.urlParams_.Set("pageToken", pageToken)
47424 return c
47425 }
47426
47427
47428
47429
47430
47431
47432
47433
47434 func (c *SitesListCall) SearchString(searchString string) *SitesListCall {
47435 c.urlParams_.Set("searchString", searchString)
47436 return c
47437 }
47438
47439
47440
47441
47442
47443
47444
47445
47446 func (c *SitesListCall) SortField(sortField string) *SitesListCall {
47447 c.urlParams_.Set("sortField", sortField)
47448 return c
47449 }
47450
47451
47452
47453
47454
47455
47456
47457
47458 func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall {
47459 c.urlParams_.Set("sortOrder", sortOrder)
47460 return c
47461 }
47462
47463
47464
47465 func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall {
47466 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
47467 return c
47468 }
47469
47470
47471
47472 func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall {
47473 c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite))
47474 return c
47475 }
47476
47477
47478
47479
47480 func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall {
47481 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47482 return c
47483 }
47484
47485
47486
47487
47488
47489
47490 func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall {
47491 c.ifNoneMatch_ = entityTag
47492 return c
47493 }
47494
47495
47496
47497
47498 func (c *SitesListCall) Context(ctx context.Context) *SitesListCall {
47499 c.ctx_ = ctx
47500 return c
47501 }
47502
47503
47504
47505 func (c *SitesListCall) Header() http.Header {
47506 if c.header_ == nil {
47507 c.header_ = make(http.Header)
47508 }
47509 return c.header_
47510 }
47511
47512 func (c *SitesListCall) doRequest(alt string) (*http.Response, error) {
47513 reqHeaders := make(http.Header)
47514 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
47515 for k, v := range c.header_ {
47516 reqHeaders[k] = v
47517 }
47518 reqHeaders.Set("User-Agent", c.s.userAgent())
47519 if c.ifNoneMatch_ != "" {
47520 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47521 }
47522 var body io.Reader = nil
47523 c.urlParams_.Set("alt", alt)
47524 c.urlParams_.Set("prettyPrint", "false")
47525 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
47526 urls += "?" + c.urlParams_.Encode()
47527 req, err := http.NewRequest("GET", urls, body)
47528 if err != nil {
47529 return nil, err
47530 }
47531 req.Header = reqHeaders
47532 googleapi.Expand(req.URL, map[string]string{
47533 "profileId": strconv.FormatInt(c.profileId, 10),
47534 })
47535 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47536 }
47537
47538
47539
47540
47541
47542
47543
47544
47545 func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) {
47546 gensupport.SetOptions(c.urlParams_, opts...)
47547 res, err := c.doRequest("json")
47548 if res != nil && res.StatusCode == http.StatusNotModified {
47549 if res.Body != nil {
47550 res.Body.Close()
47551 }
47552 return nil, &googleapi.Error{
47553 Code: res.StatusCode,
47554 Header: res.Header,
47555 }
47556 }
47557 if err != nil {
47558 return nil, err
47559 }
47560 defer googleapi.CloseBody(res)
47561 if err := googleapi.CheckResponse(res); err != nil {
47562 return nil, err
47563 }
47564 ret := &SitesListResponse{
47565 ServerResponse: googleapi.ServerResponse{
47566 Header: res.Header,
47567 HTTPStatusCode: res.StatusCode,
47568 },
47569 }
47570 target := &ret
47571 if err := gensupport.DecodeResponse(target, res); err != nil {
47572 return nil, err
47573 }
47574 return ret, nil
47575
47576
47577
47578
47579
47580
47581
47582
47583
47584
47585
47586
47587
47588
47589
47590
47591
47592
47593
47594
47595
47596
47597
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
47689
47690
47691
47692
47693
47694
47695
47696
47697
47698
47699
47700
47701
47702
47703
47704
47705 }
47706
47707
47708
47709
47710 func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error {
47711 c.ctx_ = ctx
47712 defer c.PageToken(c.urlParams_.Get("pageToken"))
47713 for {
47714 x, err := c.Do()
47715 if err != nil {
47716 return err
47717 }
47718 if err := f(x); err != nil {
47719 return err
47720 }
47721 if x.NextPageToken == "" {
47722 return nil
47723 }
47724 c.PageToken(x.NextPageToken)
47725 }
47726 }
47727
47728
47729
47730 type SitesPatchCall struct {
47731 s *Service
47732 profileId int64
47733 site *Site
47734 urlParams_ gensupport.URLParams
47735 ctx_ context.Context
47736 header_ http.Header
47737 }
47738
47739
47740
47741
47742
47743
47744 func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall {
47745 c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47746 c.profileId = profileId
47747 c.urlParams_.Set("id", fmt.Sprint(id))
47748 c.site = site
47749 return c
47750 }
47751
47752
47753
47754
47755 func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall {
47756 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47757 return c
47758 }
47759
47760
47761
47762
47763 func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall {
47764 c.ctx_ = ctx
47765 return c
47766 }
47767
47768
47769
47770 func (c *SitesPatchCall) Header() http.Header {
47771 if c.header_ == nil {
47772 c.header_ = make(http.Header)
47773 }
47774 return c.header_
47775 }
47776
47777 func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) {
47778 reqHeaders := make(http.Header)
47779 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
47780 for k, v := range c.header_ {
47781 reqHeaders[k] = v
47782 }
47783 reqHeaders.Set("User-Agent", c.s.userAgent())
47784 var body io.Reader = nil
47785 body, err := googleapi.WithoutDataWrapper.JSONReader(c.site)
47786 if err != nil {
47787 return nil, err
47788 }
47789 reqHeaders.Set("Content-Type", "application/json")
47790 c.urlParams_.Set("alt", alt)
47791 c.urlParams_.Set("prettyPrint", "false")
47792 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
47793 urls += "?" + c.urlParams_.Encode()
47794 req, err := http.NewRequest("PATCH", urls, body)
47795 if err != nil {
47796 return nil, err
47797 }
47798 req.Header = reqHeaders
47799 googleapi.Expand(req.URL, map[string]string{
47800 "profileId": strconv.FormatInt(c.profileId, 10),
47801 })
47802 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47803 }
47804
47805
47806
47807
47808
47809
47810
47811
47812 func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) {
47813 gensupport.SetOptions(c.urlParams_, opts...)
47814 res, err := c.doRequest("json")
47815 if res != nil && res.StatusCode == http.StatusNotModified {
47816 if res.Body != nil {
47817 res.Body.Close()
47818 }
47819 return nil, &googleapi.Error{
47820 Code: res.StatusCode,
47821 Header: res.Header,
47822 }
47823 }
47824 if err != nil {
47825 return nil, err
47826 }
47827 defer googleapi.CloseBody(res)
47828 if err := googleapi.CheckResponse(res); err != nil {
47829 return nil, err
47830 }
47831 ret := &Site{
47832 ServerResponse: googleapi.ServerResponse{
47833 Header: res.Header,
47834 HTTPStatusCode: res.StatusCode,
47835 },
47836 }
47837 target := &ret
47838 if err := gensupport.DecodeResponse(target, res); err != nil {
47839 return nil, err
47840 }
47841 return ret, nil
47842
47843
47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859
47860
47861
47862
47863
47864
47865
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875
47876
47877
47878
47879 }
47880
47881
47882
47883 type SitesUpdateCall struct {
47884 s *Service
47885 profileId int64
47886 site *Site
47887 urlParams_ gensupport.URLParams
47888 ctx_ context.Context
47889 header_ http.Header
47890 }
47891
47892
47893
47894
47895 func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall {
47896 c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47897 c.profileId = profileId
47898 c.site = site
47899 return c
47900 }
47901
47902
47903
47904
47905 func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall {
47906 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47907 return c
47908 }
47909
47910
47911
47912
47913 func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall {
47914 c.ctx_ = ctx
47915 return c
47916 }
47917
47918
47919
47920 func (c *SitesUpdateCall) Header() http.Header {
47921 if c.header_ == nil {
47922 c.header_ = make(http.Header)
47923 }
47924 return c.header_
47925 }
47926
47927 func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) {
47928 reqHeaders := make(http.Header)
47929 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
47930 for k, v := range c.header_ {
47931 reqHeaders[k] = v
47932 }
47933 reqHeaders.Set("User-Agent", c.s.userAgent())
47934 var body io.Reader = nil
47935 body, err := googleapi.WithoutDataWrapper.JSONReader(c.site)
47936 if err != nil {
47937 return nil, err
47938 }
47939 reqHeaders.Set("Content-Type", "application/json")
47940 c.urlParams_.Set("alt", alt)
47941 c.urlParams_.Set("prettyPrint", "false")
47942 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites")
47943 urls += "?" + c.urlParams_.Encode()
47944 req, err := http.NewRequest("PUT", urls, body)
47945 if err != nil {
47946 return nil, err
47947 }
47948 req.Header = reqHeaders
47949 googleapi.Expand(req.URL, map[string]string{
47950 "profileId": strconv.FormatInt(c.profileId, 10),
47951 })
47952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47953 }
47954
47955
47956
47957
47958
47959
47960
47961
47962 func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) {
47963 gensupport.SetOptions(c.urlParams_, opts...)
47964 res, err := c.doRequest("json")
47965 if res != nil && res.StatusCode == http.StatusNotModified {
47966 if res.Body != nil {
47967 res.Body.Close()
47968 }
47969 return nil, &googleapi.Error{
47970 Code: res.StatusCode,
47971 Header: res.Header,
47972 }
47973 }
47974 if err != nil {
47975 return nil, err
47976 }
47977 defer googleapi.CloseBody(res)
47978 if err := googleapi.CheckResponse(res); err != nil {
47979 return nil, err
47980 }
47981 ret := &Site{
47982 ServerResponse: googleapi.ServerResponse{
47983 Header: res.Header,
47984 HTTPStatusCode: res.StatusCode,
47985 },
47986 }
47987 target := &ret
47988 if err := gensupport.DecodeResponse(target, res); err != nil {
47989 return nil, err
47990 }
47991 return ret, nil
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001
48002
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014
48015
48016
48017
48018
48019
48020
48021 }
48022
48023
48024
48025 type SizesGetCall struct {
48026 s *Service
48027 profileId int64
48028 id int64
48029 urlParams_ gensupport.URLParams
48030 ifNoneMatch_ string
48031 ctx_ context.Context
48032 header_ http.Header
48033 }
48034
48035
48036
48037
48038
48039 func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall {
48040 c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48041 c.profileId = profileId
48042 c.id = id
48043 return c
48044 }
48045
48046
48047
48048
48049 func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall {
48050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48051 return c
48052 }
48053
48054
48055
48056
48057
48058
48059 func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall {
48060 c.ifNoneMatch_ = entityTag
48061 return c
48062 }
48063
48064
48065
48066
48067 func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall {
48068 c.ctx_ = ctx
48069 return c
48070 }
48071
48072
48073
48074 func (c *SizesGetCall) Header() http.Header {
48075 if c.header_ == nil {
48076 c.header_ = make(http.Header)
48077 }
48078 return c.header_
48079 }
48080
48081 func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) {
48082 reqHeaders := make(http.Header)
48083 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
48084 for k, v := range c.header_ {
48085 reqHeaders[k] = v
48086 }
48087 reqHeaders.Set("User-Agent", c.s.userAgent())
48088 if c.ifNoneMatch_ != "" {
48089 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48090 }
48091 var body io.Reader = nil
48092 c.urlParams_.Set("alt", alt)
48093 c.urlParams_.Set("prettyPrint", "false")
48094 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes/{id}")
48095 urls += "?" + c.urlParams_.Encode()
48096 req, err := http.NewRequest("GET", urls, body)
48097 if err != nil {
48098 return nil, err
48099 }
48100 req.Header = reqHeaders
48101 googleapi.Expand(req.URL, map[string]string{
48102 "profileId": strconv.FormatInt(c.profileId, 10),
48103 "id": strconv.FormatInt(c.id, 10),
48104 })
48105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48106 }
48107
48108
48109
48110
48111
48112
48113
48114
48115 func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) {
48116 gensupport.SetOptions(c.urlParams_, opts...)
48117 res, err := c.doRequest("json")
48118 if res != nil && res.StatusCode == http.StatusNotModified {
48119 if res.Body != nil {
48120 res.Body.Close()
48121 }
48122 return nil, &googleapi.Error{
48123 Code: res.StatusCode,
48124 Header: res.Header,
48125 }
48126 }
48127 if err != nil {
48128 return nil, err
48129 }
48130 defer googleapi.CloseBody(res)
48131 if err := googleapi.CheckResponse(res); err != nil {
48132 return nil, err
48133 }
48134 ret := &Size{
48135 ServerResponse: googleapi.ServerResponse{
48136 Header: res.Header,
48137 HTTPStatusCode: res.StatusCode,
48138 },
48139 }
48140 target := &ret
48141 if err := gensupport.DecodeResponse(target, res); err != nil {
48142 return nil, err
48143 }
48144 return ret, nil
48145
48146
48147
48148
48149
48150
48151
48152
48153
48154
48155
48156
48157
48158
48159
48160
48161
48162
48163
48164
48165
48166
48167
48168
48169
48170
48171
48172
48173
48174
48175
48176
48177
48178
48179 }
48180
48181
48182
48183 type SizesInsertCall struct {
48184 s *Service
48185 profileId int64
48186 size *Size
48187 urlParams_ gensupport.URLParams
48188 ctx_ context.Context
48189 header_ http.Header
48190 }
48191
48192
48193
48194
48195 func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall {
48196 c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48197 c.profileId = profileId
48198 c.size = size
48199 return c
48200 }
48201
48202
48203
48204
48205 func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall {
48206 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48207 return c
48208 }
48209
48210
48211
48212
48213 func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall {
48214 c.ctx_ = ctx
48215 return c
48216 }
48217
48218
48219
48220 func (c *SizesInsertCall) Header() http.Header {
48221 if c.header_ == nil {
48222 c.header_ = make(http.Header)
48223 }
48224 return c.header_
48225 }
48226
48227 func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) {
48228 reqHeaders := make(http.Header)
48229 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
48230 for k, v := range c.header_ {
48231 reqHeaders[k] = v
48232 }
48233 reqHeaders.Set("User-Agent", c.s.userAgent())
48234 var body io.Reader = nil
48235 body, err := googleapi.WithoutDataWrapper.JSONReader(c.size)
48236 if err != nil {
48237 return nil, err
48238 }
48239 reqHeaders.Set("Content-Type", "application/json")
48240 c.urlParams_.Set("alt", alt)
48241 c.urlParams_.Set("prettyPrint", "false")
48242 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes")
48243 urls += "?" + c.urlParams_.Encode()
48244 req, err := http.NewRequest("POST", urls, body)
48245 if err != nil {
48246 return nil, err
48247 }
48248 req.Header = reqHeaders
48249 googleapi.Expand(req.URL, map[string]string{
48250 "profileId": strconv.FormatInt(c.profileId, 10),
48251 })
48252 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48253 }
48254
48255
48256
48257
48258
48259
48260
48261
48262 func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) {
48263 gensupport.SetOptions(c.urlParams_, opts...)
48264 res, err := c.doRequest("json")
48265 if res != nil && res.StatusCode == http.StatusNotModified {
48266 if res.Body != nil {
48267 res.Body.Close()
48268 }
48269 return nil, &googleapi.Error{
48270 Code: res.StatusCode,
48271 Header: res.Header,
48272 }
48273 }
48274 if err != nil {
48275 return nil, err
48276 }
48277 defer googleapi.CloseBody(res)
48278 if err := googleapi.CheckResponse(res); err != nil {
48279 return nil, err
48280 }
48281 ret := &Size{
48282 ServerResponse: googleapi.ServerResponse{
48283 Header: res.Header,
48284 HTTPStatusCode: res.StatusCode,
48285 },
48286 }
48287 target := &ret
48288 if err := gensupport.DecodeResponse(target, res); err != nil {
48289 return nil, err
48290 }
48291 return ret, nil
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311
48312
48313
48314
48315
48316
48317
48318
48319
48320
48321 }
48322
48323
48324
48325 type SizesListCall struct {
48326 s *Service
48327 profileId int64
48328 urlParams_ gensupport.URLParams
48329 ifNoneMatch_ string
48330 ctx_ context.Context
48331 header_ http.Header
48332 }
48333
48334
48335
48336
48337
48338
48339
48340 func (r *SizesService) List(profileId int64) *SizesListCall {
48341 c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48342 c.profileId = profileId
48343 return c
48344 }
48345
48346
48347
48348 func (c *SizesListCall) Height(height int64) *SizesListCall {
48349 c.urlParams_.Set("height", fmt.Sprint(height))
48350 return c
48351 }
48352
48353
48354
48355 func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall {
48356 c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard))
48357 return c
48358 }
48359
48360
48361
48362 func (c *SizesListCall) Ids(ids ...int64) *SizesListCall {
48363 var ids_ []string
48364 for _, v := range ids {
48365 ids_ = append(ids_, fmt.Sprint(v))
48366 }
48367 c.urlParams_.SetMulti("ids", ids_)
48368 return c
48369 }
48370
48371
48372
48373 func (c *SizesListCall) Width(width int64) *SizesListCall {
48374 c.urlParams_.Set("width", fmt.Sprint(width))
48375 return c
48376 }
48377
48378
48379
48380
48381 func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall {
48382 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48383 return c
48384 }
48385
48386
48387
48388
48389
48390
48391 func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall {
48392 c.ifNoneMatch_ = entityTag
48393 return c
48394 }
48395
48396
48397
48398
48399 func (c *SizesListCall) Context(ctx context.Context) *SizesListCall {
48400 c.ctx_ = ctx
48401 return c
48402 }
48403
48404
48405
48406 func (c *SizesListCall) Header() http.Header {
48407 if c.header_ == nil {
48408 c.header_ = make(http.Header)
48409 }
48410 return c.header_
48411 }
48412
48413 func (c *SizesListCall) doRequest(alt string) (*http.Response, error) {
48414 reqHeaders := make(http.Header)
48415 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
48416 for k, v := range c.header_ {
48417 reqHeaders[k] = v
48418 }
48419 reqHeaders.Set("User-Agent", c.s.userAgent())
48420 if c.ifNoneMatch_ != "" {
48421 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48422 }
48423 var body io.Reader = nil
48424 c.urlParams_.Set("alt", alt)
48425 c.urlParams_.Set("prettyPrint", "false")
48426 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes")
48427 urls += "?" + c.urlParams_.Encode()
48428 req, err := http.NewRequest("GET", urls, body)
48429 if err != nil {
48430 return nil, err
48431 }
48432 req.Header = reqHeaders
48433 googleapi.Expand(req.URL, map[string]string{
48434 "profileId": strconv.FormatInt(c.profileId, 10),
48435 })
48436 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48437 }
48438
48439
48440
48441
48442
48443
48444
48445
48446 func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) {
48447 gensupport.SetOptions(c.urlParams_, opts...)
48448 res, err := c.doRequest("json")
48449 if res != nil && res.StatusCode == http.StatusNotModified {
48450 if res.Body != nil {
48451 res.Body.Close()
48452 }
48453 return nil, &googleapi.Error{
48454 Code: res.StatusCode,
48455 Header: res.Header,
48456 }
48457 }
48458 if err != nil {
48459 return nil, err
48460 }
48461 defer googleapi.CloseBody(res)
48462 if err := googleapi.CheckResponse(res); err != nil {
48463 return nil, err
48464 }
48465 ret := &SizesListResponse{
48466 ServerResponse: googleapi.ServerResponse{
48467 Header: res.Header,
48468 HTTPStatusCode: res.StatusCode,
48469 },
48470 }
48471 target := &ret
48472 if err := gensupport.DecodeResponse(target, res); err != nil {
48473 return nil, err
48474 }
48475 return ret, nil
48476
48477
48478
48479
48480
48481
48482
48483
48484
48485
48486
48487
48488
48489
48490
48491
48492
48493
48494
48495
48496
48497
48498
48499
48500
48501
48502
48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530 }
48531
48532
48533
48534 type SubaccountsGetCall struct {
48535 s *Service
48536 profileId int64
48537 id int64
48538 urlParams_ gensupport.URLParams
48539 ifNoneMatch_ string
48540 ctx_ context.Context
48541 header_ http.Header
48542 }
48543
48544
48545
48546
48547
48548 func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall {
48549 c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48550 c.profileId = profileId
48551 c.id = id
48552 return c
48553 }
48554
48555
48556
48557
48558 func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall {
48559 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48560 return c
48561 }
48562
48563
48564
48565
48566
48567
48568 func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall {
48569 c.ifNoneMatch_ = entityTag
48570 return c
48571 }
48572
48573
48574
48575
48576 func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall {
48577 c.ctx_ = ctx
48578 return c
48579 }
48580
48581
48582
48583 func (c *SubaccountsGetCall) Header() http.Header {
48584 if c.header_ == nil {
48585 c.header_ = make(http.Header)
48586 }
48587 return c.header_
48588 }
48589
48590 func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) {
48591 reqHeaders := make(http.Header)
48592 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
48593 for k, v := range c.header_ {
48594 reqHeaders[k] = v
48595 }
48596 reqHeaders.Set("User-Agent", c.s.userAgent())
48597 if c.ifNoneMatch_ != "" {
48598 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48599 }
48600 var body io.Reader = nil
48601 c.urlParams_.Set("alt", alt)
48602 c.urlParams_.Set("prettyPrint", "false")
48603 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts/{id}")
48604 urls += "?" + c.urlParams_.Encode()
48605 req, err := http.NewRequest("GET", urls, body)
48606 if err != nil {
48607 return nil, err
48608 }
48609 req.Header = reqHeaders
48610 googleapi.Expand(req.URL, map[string]string{
48611 "profileId": strconv.FormatInt(c.profileId, 10),
48612 "id": strconv.FormatInt(c.id, 10),
48613 })
48614 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48615 }
48616
48617
48618
48619
48620
48621
48622
48623
48624 func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
48625 gensupport.SetOptions(c.urlParams_, opts...)
48626 res, err := c.doRequest("json")
48627 if res != nil && res.StatusCode == http.StatusNotModified {
48628 if res.Body != nil {
48629 res.Body.Close()
48630 }
48631 return nil, &googleapi.Error{
48632 Code: res.StatusCode,
48633 Header: res.Header,
48634 }
48635 }
48636 if err != nil {
48637 return nil, err
48638 }
48639 defer googleapi.CloseBody(res)
48640 if err := googleapi.CheckResponse(res); err != nil {
48641 return nil, err
48642 }
48643 ret := &Subaccount{
48644 ServerResponse: googleapi.ServerResponse{
48645 Header: res.Header,
48646 HTTPStatusCode: res.StatusCode,
48647 },
48648 }
48649 target := &ret
48650 if err := gensupport.DecodeResponse(target, res); err != nil {
48651 return nil, err
48652 }
48653 return ret, nil
48654
48655
48656
48657
48658
48659
48660
48661
48662
48663
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679
48680
48681
48682
48683
48684
48685
48686
48687
48688 }
48689
48690
48691
48692 type SubaccountsInsertCall struct {
48693 s *Service
48694 profileId int64
48695 subaccount *Subaccount
48696 urlParams_ gensupport.URLParams
48697 ctx_ context.Context
48698 header_ http.Header
48699 }
48700
48701
48702
48703
48704 func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall {
48705 c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48706 c.profileId = profileId
48707 c.subaccount = subaccount
48708 return c
48709 }
48710
48711
48712
48713
48714 func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall {
48715 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48716 return c
48717 }
48718
48719
48720
48721
48722 func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall {
48723 c.ctx_ = ctx
48724 return c
48725 }
48726
48727
48728
48729 func (c *SubaccountsInsertCall) Header() http.Header {
48730 if c.header_ == nil {
48731 c.header_ = make(http.Header)
48732 }
48733 return c.header_
48734 }
48735
48736 func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) {
48737 reqHeaders := make(http.Header)
48738 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
48739 for k, v := range c.header_ {
48740 reqHeaders[k] = v
48741 }
48742 reqHeaders.Set("User-Agent", c.s.userAgent())
48743 var body io.Reader = nil
48744 body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount)
48745 if err != nil {
48746 return nil, err
48747 }
48748 reqHeaders.Set("Content-Type", "application/json")
48749 c.urlParams_.Set("alt", alt)
48750 c.urlParams_.Set("prettyPrint", "false")
48751 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
48752 urls += "?" + c.urlParams_.Encode()
48753 req, err := http.NewRequest("POST", urls, body)
48754 if err != nil {
48755 return nil, err
48756 }
48757 req.Header = reqHeaders
48758 googleapi.Expand(req.URL, map[string]string{
48759 "profileId": strconv.FormatInt(c.profileId, 10),
48760 })
48761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48762 }
48763
48764
48765
48766
48767
48768
48769
48770
48771 func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
48772 gensupport.SetOptions(c.urlParams_, opts...)
48773 res, err := c.doRequest("json")
48774 if res != nil && res.StatusCode == http.StatusNotModified {
48775 if res.Body != nil {
48776 res.Body.Close()
48777 }
48778 return nil, &googleapi.Error{
48779 Code: res.StatusCode,
48780 Header: res.Header,
48781 }
48782 }
48783 if err != nil {
48784 return nil, err
48785 }
48786 defer googleapi.CloseBody(res)
48787 if err := googleapi.CheckResponse(res); err != nil {
48788 return nil, err
48789 }
48790 ret := &Subaccount{
48791 ServerResponse: googleapi.ServerResponse{
48792 Header: res.Header,
48793 HTTPStatusCode: res.StatusCode,
48794 },
48795 }
48796 target := &ret
48797 if err := gensupport.DecodeResponse(target, res); err != nil {
48798 return nil, err
48799 }
48800 return ret, nil
48801
48802
48803
48804
48805
48806
48807
48808
48809
48810
48811
48812
48813
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830 }
48831
48832
48833
48834 type SubaccountsListCall struct {
48835 s *Service
48836 profileId int64
48837 urlParams_ gensupport.URLParams
48838 ifNoneMatch_ string
48839 ctx_ context.Context
48840 header_ http.Header
48841 }
48842
48843
48844
48845
48846
48847 func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall {
48848 c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48849 c.profileId = profileId
48850 return c
48851 }
48852
48853
48854
48855 func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall {
48856 var ids_ []string
48857 for _, v := range ids {
48858 ids_ = append(ids_, fmt.Sprint(v))
48859 }
48860 c.urlParams_.SetMulti("ids", ids_)
48861 return c
48862 }
48863
48864
48865
48866 func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall {
48867 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
48868 return c
48869 }
48870
48871
48872
48873 func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall {
48874 c.urlParams_.Set("pageToken", pageToken)
48875 return c
48876 }
48877
48878
48879
48880
48881
48882
48883
48884
48885
48886 func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall {
48887 c.urlParams_.Set("searchString", searchString)
48888 return c
48889 }
48890
48891
48892
48893
48894
48895
48896
48897
48898 func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall {
48899 c.urlParams_.Set("sortField", sortField)
48900 return c
48901 }
48902
48903
48904
48905
48906
48907
48908
48909
48910 func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall {
48911 c.urlParams_.Set("sortOrder", sortOrder)
48912 return c
48913 }
48914
48915
48916
48917
48918 func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall {
48919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48920 return c
48921 }
48922
48923
48924
48925
48926
48927
48928 func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall {
48929 c.ifNoneMatch_ = entityTag
48930 return c
48931 }
48932
48933
48934
48935
48936 func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall {
48937 c.ctx_ = ctx
48938 return c
48939 }
48940
48941
48942
48943 func (c *SubaccountsListCall) Header() http.Header {
48944 if c.header_ == nil {
48945 c.header_ = make(http.Header)
48946 }
48947 return c.header_
48948 }
48949
48950 func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) {
48951 reqHeaders := make(http.Header)
48952 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
48953 for k, v := range c.header_ {
48954 reqHeaders[k] = v
48955 }
48956 reqHeaders.Set("User-Agent", c.s.userAgent())
48957 if c.ifNoneMatch_ != "" {
48958 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48959 }
48960 var body io.Reader = nil
48961 c.urlParams_.Set("alt", alt)
48962 c.urlParams_.Set("prettyPrint", "false")
48963 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
48964 urls += "?" + c.urlParams_.Encode()
48965 req, err := http.NewRequest("GET", urls, body)
48966 if err != nil {
48967 return nil, err
48968 }
48969 req.Header = reqHeaders
48970 googleapi.Expand(req.URL, map[string]string{
48971 "profileId": strconv.FormatInt(c.profileId, 10),
48972 })
48973 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48974 }
48975
48976
48977
48978
48979
48980
48981
48982
48983 func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) {
48984 gensupport.SetOptions(c.urlParams_, opts...)
48985 res, err := c.doRequest("json")
48986 if res != nil && res.StatusCode == http.StatusNotModified {
48987 if res.Body != nil {
48988 res.Body.Close()
48989 }
48990 return nil, &googleapi.Error{
48991 Code: res.StatusCode,
48992 Header: res.Header,
48993 }
48994 }
48995 if err != nil {
48996 return nil, err
48997 }
48998 defer googleapi.CloseBody(res)
48999 if err := googleapi.CheckResponse(res); err != nil {
49000 return nil, err
49001 }
49002 ret := &SubaccountsListResponse{
49003 ServerResponse: googleapi.ServerResponse{
49004 Header: res.Header,
49005 HTTPStatusCode: res.StatusCode,
49006 },
49007 }
49008 target := &ret
49009 if err := gensupport.DecodeResponse(target, res); err != nil {
49010 return nil, err
49011 }
49012 return ret, nil
49013
49014
49015
49016
49017
49018
49019
49020
49021
49022
49023
49024
49025
49026
49027
49028
49029
49030
49031
49032
49033
49034
49035
49036
49037
49038
49039
49040
49041
49042
49043
49044
49045
49046
49047
49048
49049
49050
49051
49052
49053
49054
49055
49056
49057
49058
49059
49060
49061
49062
49063
49064
49065
49066
49067
49068
49069
49070
49071
49072
49073
49074
49075
49076
49077
49078
49079
49080
49081
49082
49083
49084
49085
49086
49087
49088
49089
49090
49091
49092
49093 }
49094
49095
49096
49097
49098 func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error {
49099 c.ctx_ = ctx
49100 defer c.PageToken(c.urlParams_.Get("pageToken"))
49101 for {
49102 x, err := c.Do()
49103 if err != nil {
49104 return err
49105 }
49106 if err := f(x); err != nil {
49107 return err
49108 }
49109 if x.NextPageToken == "" {
49110 return nil
49111 }
49112 c.PageToken(x.NextPageToken)
49113 }
49114 }
49115
49116
49117
49118 type SubaccountsPatchCall struct {
49119 s *Service
49120 profileId int64
49121 subaccount *Subaccount
49122 urlParams_ gensupport.URLParams
49123 ctx_ context.Context
49124 header_ http.Header
49125 }
49126
49127
49128
49129
49130
49131
49132 func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall {
49133 c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49134 c.profileId = profileId
49135 c.urlParams_.Set("id", fmt.Sprint(id))
49136 c.subaccount = subaccount
49137 return c
49138 }
49139
49140
49141
49142
49143 func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall {
49144 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49145 return c
49146 }
49147
49148
49149
49150
49151 func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall {
49152 c.ctx_ = ctx
49153 return c
49154 }
49155
49156
49157
49158 func (c *SubaccountsPatchCall) Header() http.Header {
49159 if c.header_ == nil {
49160 c.header_ = make(http.Header)
49161 }
49162 return c.header_
49163 }
49164
49165 func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) {
49166 reqHeaders := make(http.Header)
49167 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
49168 for k, v := range c.header_ {
49169 reqHeaders[k] = v
49170 }
49171 reqHeaders.Set("User-Agent", c.s.userAgent())
49172 var body io.Reader = nil
49173 body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount)
49174 if err != nil {
49175 return nil, err
49176 }
49177 reqHeaders.Set("Content-Type", "application/json")
49178 c.urlParams_.Set("alt", alt)
49179 c.urlParams_.Set("prettyPrint", "false")
49180 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
49181 urls += "?" + c.urlParams_.Encode()
49182 req, err := http.NewRequest("PATCH", urls, body)
49183 if err != nil {
49184 return nil, err
49185 }
49186 req.Header = reqHeaders
49187 googleapi.Expand(req.URL, map[string]string{
49188 "profileId": strconv.FormatInt(c.profileId, 10),
49189 })
49190 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49191 }
49192
49193
49194
49195
49196
49197
49198
49199
49200 func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
49201 gensupport.SetOptions(c.urlParams_, opts...)
49202 res, err := c.doRequest("json")
49203 if res != nil && res.StatusCode == http.StatusNotModified {
49204 if res.Body != nil {
49205 res.Body.Close()
49206 }
49207 return nil, &googleapi.Error{
49208 Code: res.StatusCode,
49209 Header: res.Header,
49210 }
49211 }
49212 if err != nil {
49213 return nil, err
49214 }
49215 defer googleapi.CloseBody(res)
49216 if err := googleapi.CheckResponse(res); err != nil {
49217 return nil, err
49218 }
49219 ret := &Subaccount{
49220 ServerResponse: googleapi.ServerResponse{
49221 Header: res.Header,
49222 HTTPStatusCode: res.StatusCode,
49223 },
49224 }
49225 target := &ret
49226 if err := gensupport.DecodeResponse(target, res); err != nil {
49227 return nil, err
49228 }
49229 return ret, nil
49230
49231
49232
49233
49234
49235
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267 }
49268
49269
49270
49271 type SubaccountsUpdateCall struct {
49272 s *Service
49273 profileId int64
49274 subaccount *Subaccount
49275 urlParams_ gensupport.URLParams
49276 ctx_ context.Context
49277 header_ http.Header
49278 }
49279
49280
49281
49282
49283 func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall {
49284 c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49285 c.profileId = profileId
49286 c.subaccount = subaccount
49287 return c
49288 }
49289
49290
49291
49292
49293 func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall {
49294 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49295 return c
49296 }
49297
49298
49299
49300
49301 func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall {
49302 c.ctx_ = ctx
49303 return c
49304 }
49305
49306
49307
49308 func (c *SubaccountsUpdateCall) Header() http.Header {
49309 if c.header_ == nil {
49310 c.header_ = make(http.Header)
49311 }
49312 return c.header_
49313 }
49314
49315 func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
49316 reqHeaders := make(http.Header)
49317 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
49318 for k, v := range c.header_ {
49319 reqHeaders[k] = v
49320 }
49321 reqHeaders.Set("User-Agent", c.s.userAgent())
49322 var body io.Reader = nil
49323 body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount)
49324 if err != nil {
49325 return nil, err
49326 }
49327 reqHeaders.Set("Content-Type", "application/json")
49328 c.urlParams_.Set("alt", alt)
49329 c.urlParams_.Set("prettyPrint", "false")
49330 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts")
49331 urls += "?" + c.urlParams_.Encode()
49332 req, err := http.NewRequest("PUT", urls, body)
49333 if err != nil {
49334 return nil, err
49335 }
49336 req.Header = reqHeaders
49337 googleapi.Expand(req.URL, map[string]string{
49338 "profileId": strconv.FormatInt(c.profileId, 10),
49339 })
49340 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49341 }
49342
49343
49344
49345
49346
49347
49348
49349
49350 func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) {
49351 gensupport.SetOptions(c.urlParams_, opts...)
49352 res, err := c.doRequest("json")
49353 if res != nil && res.StatusCode == http.StatusNotModified {
49354 if res.Body != nil {
49355 res.Body.Close()
49356 }
49357 return nil, &googleapi.Error{
49358 Code: res.StatusCode,
49359 Header: res.Header,
49360 }
49361 }
49362 if err != nil {
49363 return nil, err
49364 }
49365 defer googleapi.CloseBody(res)
49366 if err := googleapi.CheckResponse(res); err != nil {
49367 return nil, err
49368 }
49369 ret := &Subaccount{
49370 ServerResponse: googleapi.ServerResponse{
49371 Header: res.Header,
49372 HTTPStatusCode: res.StatusCode,
49373 },
49374 }
49375 target := &ret
49376 if err := gensupport.DecodeResponse(target, res); err != nil {
49377 return nil, err
49378 }
49379 return ret, nil
49380
49381
49382
49383
49384
49385
49386
49387
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406
49407
49408
49409 }
49410
49411
49412
49413 type TargetableRemarketingListsGetCall struct {
49414 s *Service
49415 profileId int64
49416 id int64
49417 urlParams_ gensupport.URLParams
49418 ifNoneMatch_ string
49419 ctx_ context.Context
49420 header_ http.Header
49421 }
49422
49423
49424
49425
49426
49427 func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall {
49428 c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49429 c.profileId = profileId
49430 c.id = id
49431 return c
49432 }
49433
49434
49435
49436
49437 func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall {
49438 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49439 return c
49440 }
49441
49442
49443
49444
49445
49446
49447 func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall {
49448 c.ifNoneMatch_ = entityTag
49449 return c
49450 }
49451
49452
49453
49454
49455 func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall {
49456 c.ctx_ = ctx
49457 return c
49458 }
49459
49460
49461
49462 func (c *TargetableRemarketingListsGetCall) Header() http.Header {
49463 if c.header_ == nil {
49464 c.header_ = make(http.Header)
49465 }
49466 return c.header_
49467 }
49468
49469 func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) {
49470 reqHeaders := make(http.Header)
49471 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
49472 for k, v := range c.header_ {
49473 reqHeaders[k] = v
49474 }
49475 reqHeaders.Set("User-Agent", c.s.userAgent())
49476 if c.ifNoneMatch_ != "" {
49477 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49478 }
49479 var body io.Reader = nil
49480 c.urlParams_.Set("alt", alt)
49481 c.urlParams_.Set("prettyPrint", "false")
49482 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists/{id}")
49483 urls += "?" + c.urlParams_.Encode()
49484 req, err := http.NewRequest("GET", urls, body)
49485 if err != nil {
49486 return nil, err
49487 }
49488 req.Header = reqHeaders
49489 googleapi.Expand(req.URL, map[string]string{
49490 "profileId": strconv.FormatInt(c.profileId, 10),
49491 "id": strconv.FormatInt(c.id, 10),
49492 })
49493 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49494 }
49495
49496
49497
49498
49499
49500
49501
49502
49503 func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) {
49504 gensupport.SetOptions(c.urlParams_, opts...)
49505 res, err := c.doRequest("json")
49506 if res != nil && res.StatusCode == http.StatusNotModified {
49507 if res.Body != nil {
49508 res.Body.Close()
49509 }
49510 return nil, &googleapi.Error{
49511 Code: res.StatusCode,
49512 Header: res.Header,
49513 }
49514 }
49515 if err != nil {
49516 return nil, err
49517 }
49518 defer googleapi.CloseBody(res)
49519 if err := googleapi.CheckResponse(res); err != nil {
49520 return nil, err
49521 }
49522 ret := &TargetableRemarketingList{
49523 ServerResponse: googleapi.ServerResponse{
49524 Header: res.Header,
49525 HTTPStatusCode: res.StatusCode,
49526 },
49527 }
49528 target := &ret
49529 if err := gensupport.DecodeResponse(target, res); err != nil {
49530 return nil, err
49531 }
49532 return ret, nil
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542
49543
49544
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 type TargetableRemarketingListsListCall struct {
49572 s *Service
49573 profileId int64
49574 urlParams_ gensupport.URLParams
49575 ifNoneMatch_ string
49576 ctx_ context.Context
49577 header_ http.Header
49578 }
49579
49580
49581
49582
49583
49584
49585
49586 func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall {
49587 c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49588 c.profileId = profileId
49589 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
49590 return c
49591 }
49592
49593
49594
49595 func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall {
49596 c.urlParams_.Set("active", fmt.Sprint(active))
49597 return c
49598 }
49599
49600
49601
49602 func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall {
49603 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
49604 return c
49605 }
49606
49607
49608
49609
49610
49611
49612
49613
49614
49615 func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall {
49616 c.urlParams_.Set("name", name)
49617 return c
49618 }
49619
49620
49621
49622 func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *TargetableRemarketingListsListCall {
49623 c.urlParams_.Set("pageToken", pageToken)
49624 return c
49625 }
49626
49627
49628
49629
49630
49631
49632
49633
49634 func (c *TargetableRemarketingListsListCall) SortField(sortField string) *TargetableRemarketingListsListCall {
49635 c.urlParams_.Set("sortField", sortField)
49636 return c
49637 }
49638
49639
49640
49641
49642
49643
49644
49645
49646 func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *TargetableRemarketingListsListCall {
49647 c.urlParams_.Set("sortOrder", sortOrder)
49648 return c
49649 }
49650
49651
49652
49653
49654 func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall {
49655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49656 return c
49657 }
49658
49659
49660
49661
49662
49663
49664 func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall {
49665 c.ifNoneMatch_ = entityTag
49666 return c
49667 }
49668
49669
49670
49671
49672 func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall {
49673 c.ctx_ = ctx
49674 return c
49675 }
49676
49677
49678
49679 func (c *TargetableRemarketingListsListCall) Header() http.Header {
49680 if c.header_ == nil {
49681 c.header_ = make(http.Header)
49682 }
49683 return c.header_
49684 }
49685
49686 func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) {
49687 reqHeaders := make(http.Header)
49688 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
49689 for k, v := range c.header_ {
49690 reqHeaders[k] = v
49691 }
49692 reqHeaders.Set("User-Agent", c.s.userAgent())
49693 if c.ifNoneMatch_ != "" {
49694 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49695 }
49696 var body io.Reader = nil
49697 c.urlParams_.Set("alt", alt)
49698 c.urlParams_.Set("prettyPrint", "false")
49699 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetableRemarketingLists")
49700 urls += "?" + c.urlParams_.Encode()
49701 req, err := http.NewRequest("GET", urls, body)
49702 if err != nil {
49703 return nil, err
49704 }
49705 req.Header = reqHeaders
49706 googleapi.Expand(req.URL, map[string]string{
49707 "profileId": strconv.FormatInt(c.profileId, 10),
49708 })
49709 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49710 }
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720 func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) {
49721 gensupport.SetOptions(c.urlParams_, opts...)
49722 res, err := c.doRequest("json")
49723 if res != nil && res.StatusCode == http.StatusNotModified {
49724 if res.Body != nil {
49725 res.Body.Close()
49726 }
49727 return nil, &googleapi.Error{
49728 Code: res.StatusCode,
49729 Header: res.Header,
49730 }
49731 }
49732 if err != nil {
49733 return nil, err
49734 }
49735 defer googleapi.CloseBody(res)
49736 if err := googleapi.CheckResponse(res); err != nil {
49737 return nil, err
49738 }
49739 ret := &TargetableRemarketingListsListResponse{
49740 ServerResponse: googleapi.ServerResponse{
49741 Header: res.Header,
49742 HTTPStatusCode: res.StatusCode,
49743 },
49744 }
49745 target := &ret
49746 if err := gensupport.DecodeResponse(target, res); err != nil {
49747 return nil, err
49748 }
49749 return ret, nil
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776
49777
49778
49779
49780
49781
49782
49783
49784
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836 }
49837
49838
49839
49840
49841 func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error {
49842 c.ctx_ = ctx
49843 defer c.PageToken(c.urlParams_.Get("pageToken"))
49844 for {
49845 x, err := c.Do()
49846 if err != nil {
49847 return err
49848 }
49849 if err := f(x); err != nil {
49850 return err
49851 }
49852 if x.NextPageToken == "" {
49853 return nil
49854 }
49855 c.PageToken(x.NextPageToken)
49856 }
49857 }
49858
49859
49860
49861 type TargetingTemplatesGetCall struct {
49862 s *Service
49863 profileId int64
49864 id int64
49865 urlParams_ gensupport.URLParams
49866 ifNoneMatch_ string
49867 ctx_ context.Context
49868 header_ http.Header
49869 }
49870
49871
49872
49873
49874
49875 func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall {
49876 c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
49877 c.profileId = profileId
49878 c.id = id
49879 return c
49880 }
49881
49882
49883
49884
49885 func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall {
49886 c.urlParams_.Set("fields", googleapi.CombineFields(s))
49887 return c
49888 }
49889
49890
49891
49892
49893
49894
49895 func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall {
49896 c.ifNoneMatch_ = entityTag
49897 return c
49898 }
49899
49900
49901
49902
49903 func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall {
49904 c.ctx_ = ctx
49905 return c
49906 }
49907
49908
49909
49910 func (c *TargetingTemplatesGetCall) Header() http.Header {
49911 if c.header_ == nil {
49912 c.header_ = make(http.Header)
49913 }
49914 return c.header_
49915 }
49916
49917 func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
49918 reqHeaders := make(http.Header)
49919 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
49920 for k, v := range c.header_ {
49921 reqHeaders[k] = v
49922 }
49923 reqHeaders.Set("User-Agent", c.s.userAgent())
49924 if c.ifNoneMatch_ != "" {
49925 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
49926 }
49927 var body io.Reader = nil
49928 c.urlParams_.Set("alt", alt)
49929 c.urlParams_.Set("prettyPrint", "false")
49930 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates/{id}")
49931 urls += "?" + c.urlParams_.Encode()
49932 req, err := http.NewRequest("GET", urls, body)
49933 if err != nil {
49934 return nil, err
49935 }
49936 req.Header = reqHeaders
49937 googleapi.Expand(req.URL, map[string]string{
49938 "profileId": strconv.FormatInt(c.profileId, 10),
49939 "id": strconv.FormatInt(c.id, 10),
49940 })
49941 return gensupport.SendRequest(c.ctx_, c.s.client, req)
49942 }
49943
49944
49945
49946
49947
49948
49949
49950
49951 func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
49952 gensupport.SetOptions(c.urlParams_, opts...)
49953 res, err := c.doRequest("json")
49954 if res != nil && res.StatusCode == http.StatusNotModified {
49955 if res.Body != nil {
49956 res.Body.Close()
49957 }
49958 return nil, &googleapi.Error{
49959 Code: res.StatusCode,
49960 Header: res.Header,
49961 }
49962 }
49963 if err != nil {
49964 return nil, err
49965 }
49966 defer googleapi.CloseBody(res)
49967 if err := googleapi.CheckResponse(res); err != nil {
49968 return nil, err
49969 }
49970 ret := &TargetingTemplate{
49971 ServerResponse: googleapi.ServerResponse{
49972 Header: res.Header,
49973 HTTPStatusCode: res.StatusCode,
49974 },
49975 }
49976 target := &ret
49977 if err := gensupport.DecodeResponse(target, res); err != nil {
49978 return nil, err
49979 }
49980 return ret, nil
49981
49982
49983
49984
49985
49986
49987
49988
49989
49990
49991
49992
49993
49994
49995
49996
49997
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007
50008
50009
50010
50011
50012
50013
50014
50015 }
50016
50017
50018
50019 type TargetingTemplatesInsertCall struct {
50020 s *Service
50021 profileId int64
50022 targetingtemplate *TargetingTemplate
50023 urlParams_ gensupport.URLParams
50024 ctx_ context.Context
50025 header_ http.Header
50026 }
50027
50028
50029
50030
50031 func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall {
50032 c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50033 c.profileId = profileId
50034 c.targetingtemplate = targetingtemplate
50035 return c
50036 }
50037
50038
50039
50040
50041 func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall {
50042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50043 return c
50044 }
50045
50046
50047
50048
50049 func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall {
50050 c.ctx_ = ctx
50051 return c
50052 }
50053
50054
50055
50056 func (c *TargetingTemplatesInsertCall) Header() http.Header {
50057 if c.header_ == nil {
50058 c.header_ = make(http.Header)
50059 }
50060 return c.header_
50061 }
50062
50063 func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) {
50064 reqHeaders := make(http.Header)
50065 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
50066 for k, v := range c.header_ {
50067 reqHeaders[k] = v
50068 }
50069 reqHeaders.Set("User-Agent", c.s.userAgent())
50070 var body io.Reader = nil
50071 body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate)
50072 if err != nil {
50073 return nil, err
50074 }
50075 reqHeaders.Set("Content-Type", "application/json")
50076 c.urlParams_.Set("alt", alt)
50077 c.urlParams_.Set("prettyPrint", "false")
50078 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
50079 urls += "?" + c.urlParams_.Encode()
50080 req, err := http.NewRequest("POST", urls, body)
50081 if err != nil {
50082 return nil, err
50083 }
50084 req.Header = reqHeaders
50085 googleapi.Expand(req.URL, map[string]string{
50086 "profileId": strconv.FormatInt(c.profileId, 10),
50087 })
50088 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50089 }
50090
50091
50092
50093
50094
50095
50096
50097
50098 func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
50099 gensupport.SetOptions(c.urlParams_, opts...)
50100 res, err := c.doRequest("json")
50101 if res != nil && res.StatusCode == http.StatusNotModified {
50102 if res.Body != nil {
50103 res.Body.Close()
50104 }
50105 return nil, &googleapi.Error{
50106 Code: res.StatusCode,
50107 Header: res.Header,
50108 }
50109 }
50110 if err != nil {
50111 return nil, err
50112 }
50113 defer googleapi.CloseBody(res)
50114 if err := googleapi.CheckResponse(res); err != nil {
50115 return nil, err
50116 }
50117 ret := &TargetingTemplate{
50118 ServerResponse: googleapi.ServerResponse{
50119 Header: res.Header,
50120 HTTPStatusCode: res.StatusCode,
50121 },
50122 }
50123 target := &ret
50124 if err := gensupport.DecodeResponse(target, res); err != nil {
50125 return nil, err
50126 }
50127 return ret, nil
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
50160
50161 type TargetingTemplatesListCall struct {
50162 s *Service
50163 profileId int64
50164 urlParams_ gensupport.URLParams
50165 ifNoneMatch_ string
50166 ctx_ context.Context
50167 header_ http.Header
50168 }
50169
50170
50171
50172
50173
50174 func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall {
50175 c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50176 c.profileId = profileId
50177 return c
50178 }
50179
50180
50181
50182 func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *TargetingTemplatesListCall {
50183 c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId))
50184 return c
50185 }
50186
50187
50188
50189 func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall {
50190 var ids_ []string
50191 for _, v := range ids {
50192 ids_ = append(ids_, fmt.Sprint(v))
50193 }
50194 c.urlParams_.SetMulti("ids", ids_)
50195 return c
50196 }
50197
50198
50199
50200 func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall {
50201 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
50202 return c
50203 }
50204
50205
50206
50207 func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTemplatesListCall {
50208 c.urlParams_.Set("pageToken", pageToken)
50209 return c
50210 }
50211
50212
50213
50214
50215
50216
50217
50218
50219
50220 func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall {
50221 c.urlParams_.Set("searchString", searchString)
50222 return c
50223 }
50224
50225
50226
50227
50228
50229
50230
50231
50232 func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTemplatesListCall {
50233 c.urlParams_.Set("sortField", sortField)
50234 return c
50235 }
50236
50237
50238
50239
50240
50241
50242
50243
50244 func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTemplatesListCall {
50245 c.urlParams_.Set("sortOrder", sortOrder)
50246 return c
50247 }
50248
50249
50250
50251
50252 func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall {
50253 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50254 return c
50255 }
50256
50257
50258
50259
50260
50261
50262 func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall {
50263 c.ifNoneMatch_ = entityTag
50264 return c
50265 }
50266
50267
50268
50269
50270 func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall {
50271 c.ctx_ = ctx
50272 return c
50273 }
50274
50275
50276
50277 func (c *TargetingTemplatesListCall) Header() http.Header {
50278 if c.header_ == nil {
50279 c.header_ = make(http.Header)
50280 }
50281 return c.header_
50282 }
50283
50284 func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) {
50285 reqHeaders := make(http.Header)
50286 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
50287 for k, v := range c.header_ {
50288 reqHeaders[k] = v
50289 }
50290 reqHeaders.Set("User-Agent", c.s.userAgent())
50291 if c.ifNoneMatch_ != "" {
50292 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50293 }
50294 var body io.Reader = nil
50295 c.urlParams_.Set("alt", alt)
50296 c.urlParams_.Set("prettyPrint", "false")
50297 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
50298 urls += "?" + c.urlParams_.Encode()
50299 req, err := http.NewRequest("GET", urls, body)
50300 if err != nil {
50301 return nil, err
50302 }
50303 req.Header = reqHeaders
50304 googleapi.Expand(req.URL, map[string]string{
50305 "profileId": strconv.FormatInt(c.profileId, 10),
50306 })
50307 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50308 }
50309
50310
50311
50312
50313
50314
50315
50316
50317 func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) {
50318 gensupport.SetOptions(c.urlParams_, opts...)
50319 res, err := c.doRequest("json")
50320 if res != nil && res.StatusCode == http.StatusNotModified {
50321 if res.Body != nil {
50322 res.Body.Close()
50323 }
50324 return nil, &googleapi.Error{
50325 Code: res.StatusCode,
50326 Header: res.Header,
50327 }
50328 }
50329 if err != nil {
50330 return nil, err
50331 }
50332 defer googleapi.CloseBody(res)
50333 if err := googleapi.CheckResponse(res); err != nil {
50334 return nil, err
50335 }
50336 ret := &TargetingTemplatesListResponse{
50337 ServerResponse: googleapi.ServerResponse{
50338 Header: res.Header,
50339 HTTPStatusCode: res.StatusCode,
50340 },
50341 }
50342 target := &ret
50343 if err := gensupport.DecodeResponse(target, res); err != nil {
50344 return nil, err
50345 }
50346 return ret, nil
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386
50387
50388
50389
50390
50391
50392
50393
50394
50395
50396
50397
50398
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
50420
50421
50422
50423
50424
50425
50426
50427
50428
50429
50430
50431
50432
50433 }
50434
50435
50436
50437
50438 func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error {
50439 c.ctx_ = ctx
50440 defer c.PageToken(c.urlParams_.Get("pageToken"))
50441 for {
50442 x, err := c.Do()
50443 if err != nil {
50444 return err
50445 }
50446 if err := f(x); err != nil {
50447 return err
50448 }
50449 if x.NextPageToken == "" {
50450 return nil
50451 }
50452 c.PageToken(x.NextPageToken)
50453 }
50454 }
50455
50456
50457
50458 type TargetingTemplatesPatchCall struct {
50459 s *Service
50460 profileId int64
50461 targetingtemplate *TargetingTemplate
50462 urlParams_ gensupport.URLParams
50463 ctx_ context.Context
50464 header_ http.Header
50465 }
50466
50467
50468
50469
50470
50471
50472 func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall {
50473 c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50474 c.profileId = profileId
50475 c.urlParams_.Set("id", fmt.Sprint(id))
50476 c.targetingtemplate = targetingtemplate
50477 return c
50478 }
50479
50480
50481
50482
50483 func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall {
50484 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50485 return c
50486 }
50487
50488
50489
50490
50491 func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall {
50492 c.ctx_ = ctx
50493 return c
50494 }
50495
50496
50497
50498 func (c *TargetingTemplatesPatchCall) Header() http.Header {
50499 if c.header_ == nil {
50500 c.header_ = make(http.Header)
50501 }
50502 return c.header_
50503 }
50504
50505 func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
50506 reqHeaders := make(http.Header)
50507 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
50508 for k, v := range c.header_ {
50509 reqHeaders[k] = v
50510 }
50511 reqHeaders.Set("User-Agent", c.s.userAgent())
50512 var body io.Reader = nil
50513 body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate)
50514 if err != nil {
50515 return nil, err
50516 }
50517 reqHeaders.Set("Content-Type", "application/json")
50518 c.urlParams_.Set("alt", alt)
50519 c.urlParams_.Set("prettyPrint", "false")
50520 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
50521 urls += "?" + c.urlParams_.Encode()
50522 req, err := http.NewRequest("PATCH", urls, body)
50523 if err != nil {
50524 return nil, err
50525 }
50526 req.Header = reqHeaders
50527 googleapi.Expand(req.URL, map[string]string{
50528 "profileId": strconv.FormatInt(c.profileId, 10),
50529 })
50530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50531 }
50532
50533
50534
50535
50536
50537
50538
50539
50540 func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
50541 gensupport.SetOptions(c.urlParams_, opts...)
50542 res, err := c.doRequest("json")
50543 if res != nil && res.StatusCode == http.StatusNotModified {
50544 if res.Body != nil {
50545 res.Body.Close()
50546 }
50547 return nil, &googleapi.Error{
50548 Code: res.StatusCode,
50549 Header: res.Header,
50550 }
50551 }
50552 if err != nil {
50553 return nil, err
50554 }
50555 defer googleapi.CloseBody(res)
50556 if err := googleapi.CheckResponse(res); err != nil {
50557 return nil, err
50558 }
50559 ret := &TargetingTemplate{
50560 ServerResponse: googleapi.ServerResponse{
50561 Header: res.Header,
50562 HTTPStatusCode: res.StatusCode,
50563 },
50564 }
50565 target := &ret
50566 if err := gensupport.DecodeResponse(target, res); err != nil {
50567 return nil, err
50568 }
50569 return ret, nil
50570
50571
50572
50573
50574
50575
50576
50577
50578
50579
50580
50581
50582
50583
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 type TargetingTemplatesUpdateCall struct {
50612 s *Service
50613 profileId int64
50614 targetingtemplate *TargetingTemplate
50615 urlParams_ gensupport.URLParams
50616 ctx_ context.Context
50617 header_ http.Header
50618 }
50619
50620
50621
50622
50623 func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall {
50624 c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50625 c.profileId = profileId
50626 c.targetingtemplate = targetingtemplate
50627 return c
50628 }
50629
50630
50631
50632
50633 func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall {
50634 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50635 return c
50636 }
50637
50638
50639
50640
50641 func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall {
50642 c.ctx_ = ctx
50643 return c
50644 }
50645
50646
50647
50648 func (c *TargetingTemplatesUpdateCall) Header() http.Header {
50649 if c.header_ == nil {
50650 c.header_ = make(http.Header)
50651 }
50652 return c.header_
50653 }
50654
50655 func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) {
50656 reqHeaders := make(http.Header)
50657 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
50658 for k, v := range c.header_ {
50659 reqHeaders[k] = v
50660 }
50661 reqHeaders.Set("User-Agent", c.s.userAgent())
50662 var body io.Reader = nil
50663 body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate)
50664 if err != nil {
50665 return nil, err
50666 }
50667 reqHeaders.Set("Content-Type", "application/json")
50668 c.urlParams_.Set("alt", alt)
50669 c.urlParams_.Set("prettyPrint", "false")
50670 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates")
50671 urls += "?" + c.urlParams_.Encode()
50672 req, err := http.NewRequest("PUT", urls, body)
50673 if err != nil {
50674 return nil, err
50675 }
50676 req.Header = reqHeaders
50677 googleapi.Expand(req.URL, map[string]string{
50678 "profileId": strconv.FormatInt(c.profileId, 10),
50679 })
50680 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50681 }
50682
50683
50684
50685
50686
50687
50688
50689
50690 func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) {
50691 gensupport.SetOptions(c.urlParams_, opts...)
50692 res, err := c.doRequest("json")
50693 if res != nil && res.StatusCode == http.StatusNotModified {
50694 if res.Body != nil {
50695 res.Body.Close()
50696 }
50697 return nil, &googleapi.Error{
50698 Code: res.StatusCode,
50699 Header: res.Header,
50700 }
50701 }
50702 if err != nil {
50703 return nil, err
50704 }
50705 defer googleapi.CloseBody(res)
50706 if err := googleapi.CheckResponse(res); err != nil {
50707 return nil, err
50708 }
50709 ret := &TargetingTemplate{
50710 ServerResponse: googleapi.ServerResponse{
50711 Header: res.Header,
50712 HTTPStatusCode: res.StatusCode,
50713 },
50714 }
50715 target := &ret
50716 if err := gensupport.DecodeResponse(target, res); err != nil {
50717 return nil, err
50718 }
50719 return ret, nil
50720
50721
50722
50723
50724
50725
50726
50727
50728
50729
50730
50731
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749 }
50750
50751
50752
50753 type UserProfilesGetCall struct {
50754 s *Service
50755 profileId int64
50756 urlParams_ gensupport.URLParams
50757 ifNoneMatch_ string
50758 ctx_ context.Context
50759 header_ http.Header
50760 }
50761
50762
50763
50764
50765 func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall {
50766 c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50767 c.profileId = profileId
50768 return c
50769 }
50770
50771
50772
50773
50774 func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall {
50775 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50776 return c
50777 }
50778
50779
50780
50781
50782
50783
50784 func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall {
50785 c.ifNoneMatch_ = entityTag
50786 return c
50787 }
50788
50789
50790
50791
50792 func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall {
50793 c.ctx_ = ctx
50794 return c
50795 }
50796
50797
50798
50799 func (c *UserProfilesGetCall) Header() http.Header {
50800 if c.header_ == nil {
50801 c.header_ = make(http.Header)
50802 }
50803 return c.header_
50804 }
50805
50806 func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) {
50807 reqHeaders := make(http.Header)
50808 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
50809 for k, v := range c.header_ {
50810 reqHeaders[k] = v
50811 }
50812 reqHeaders.Set("User-Agent", c.s.userAgent())
50813 if c.ifNoneMatch_ != "" {
50814 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50815 }
50816 var body io.Reader = nil
50817 c.urlParams_.Set("alt", alt)
50818 c.urlParams_.Set("prettyPrint", "false")
50819 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}")
50820 urls += "?" + c.urlParams_.Encode()
50821 req, err := http.NewRequest("GET", urls, body)
50822 if err != nil {
50823 return nil, err
50824 }
50825 req.Header = reqHeaders
50826 googleapi.Expand(req.URL, map[string]string{
50827 "profileId": strconv.FormatInt(c.profileId, 10),
50828 })
50829 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50830 }
50831
50832
50833
50834
50835
50836
50837
50838
50839 func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) {
50840 gensupport.SetOptions(c.urlParams_, opts...)
50841 res, err := c.doRequest("json")
50842 if res != nil && res.StatusCode == http.StatusNotModified {
50843 if res.Body != nil {
50844 res.Body.Close()
50845 }
50846 return nil, &googleapi.Error{
50847 Code: res.StatusCode,
50848 Header: res.Header,
50849 }
50850 }
50851 if err != nil {
50852 return nil, err
50853 }
50854 defer googleapi.CloseBody(res)
50855 if err := googleapi.CheckResponse(res); err != nil {
50856 return nil, err
50857 }
50858 ret := &UserProfile{
50859 ServerResponse: googleapi.ServerResponse{
50860 Header: res.Header,
50861 HTTPStatusCode: res.StatusCode,
50862 },
50863 }
50864 target := &ret
50865 if err := gensupport.DecodeResponse(target, res); err != nil {
50866 return nil, err
50867 }
50868 return ret, nil
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897 }
50898
50899
50900
50901 type UserProfilesListCall struct {
50902 s *Service
50903 urlParams_ gensupport.URLParams
50904 ifNoneMatch_ string
50905 ctx_ context.Context
50906 header_ http.Header
50907 }
50908
50909
50910 func (r *UserProfilesService) List() *UserProfilesListCall {
50911 c := &UserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
50912 return c
50913 }
50914
50915
50916
50917
50918 func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall {
50919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
50920 return c
50921 }
50922
50923
50924
50925
50926
50927
50928 func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall {
50929 c.ifNoneMatch_ = entityTag
50930 return c
50931 }
50932
50933
50934
50935
50936 func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall {
50937 c.ctx_ = ctx
50938 return c
50939 }
50940
50941
50942
50943 func (c *UserProfilesListCall) Header() http.Header {
50944 if c.header_ == nil {
50945 c.header_ = make(http.Header)
50946 }
50947 return c.header_
50948 }
50949
50950 func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) {
50951 reqHeaders := make(http.Header)
50952 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
50953 for k, v := range c.header_ {
50954 reqHeaders[k] = v
50955 }
50956 reqHeaders.Set("User-Agent", c.s.userAgent())
50957 if c.ifNoneMatch_ != "" {
50958 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
50959 }
50960 var body io.Reader = nil
50961 c.urlParams_.Set("alt", alt)
50962 c.urlParams_.Set("prettyPrint", "false")
50963 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles")
50964 urls += "?" + c.urlParams_.Encode()
50965 req, err := http.NewRequest("GET", urls, body)
50966 if err != nil {
50967 return nil, err
50968 }
50969 req.Header = reqHeaders
50970 return gensupport.SendRequest(c.ctx_, c.s.client, req)
50971 }
50972
50973
50974
50975
50976
50977
50978
50979
50980 func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) {
50981 gensupport.SetOptions(c.urlParams_, opts...)
50982 res, err := c.doRequest("json")
50983 if res != nil && res.StatusCode == http.StatusNotModified {
50984 if res.Body != nil {
50985 res.Body.Close()
50986 }
50987 return nil, &googleapi.Error{
50988 Code: res.StatusCode,
50989 Header: res.Header,
50990 }
50991 }
50992 if err != nil {
50993 return nil, err
50994 }
50995 defer googleapi.CloseBody(res)
50996 if err := googleapi.CheckResponse(res); err != nil {
50997 return nil, err
50998 }
50999 ret := &UserProfileList{
51000 ServerResponse: googleapi.ServerResponse{
51001 Header: res.Header,
51002 HTTPStatusCode: res.StatusCode,
51003 },
51004 }
51005 target := &ret
51006 if err := gensupport.DecodeResponse(target, res); err != nil {
51007 return nil, err
51008 }
51009 return ret, nil
51010
51011
51012
51013
51014
51015
51016
51017
51018
51019
51020
51021
51022
51023
51024
51025
51026
51027
51028 }
51029
51030
51031
51032 type UserRolePermissionGroupsGetCall struct {
51033 s *Service
51034 profileId int64
51035 id int64
51036 urlParams_ gensupport.URLParams
51037 ifNoneMatch_ string
51038 ctx_ context.Context
51039 header_ http.Header
51040 }
51041
51042
51043
51044
51045
51046 func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall {
51047 c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51048 c.profileId = profileId
51049 c.id = id
51050 return c
51051 }
51052
51053
51054
51055
51056 func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall {
51057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51058 return c
51059 }
51060
51061
51062
51063
51064
51065
51066 func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall {
51067 c.ifNoneMatch_ = entityTag
51068 return c
51069 }
51070
51071
51072
51073
51074 func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall {
51075 c.ctx_ = ctx
51076 return c
51077 }
51078
51079
51080
51081 func (c *UserRolePermissionGroupsGetCall) Header() http.Header {
51082 if c.header_ == nil {
51083 c.header_ = make(http.Header)
51084 }
51085 return c.header_
51086 }
51087
51088 func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) {
51089 reqHeaders := make(http.Header)
51090 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51091 for k, v := range c.header_ {
51092 reqHeaders[k] = v
51093 }
51094 reqHeaders.Set("User-Agent", c.s.userAgent())
51095 if c.ifNoneMatch_ != "" {
51096 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51097 }
51098 var body io.Reader = nil
51099 c.urlParams_.Set("alt", alt)
51100 c.urlParams_.Set("prettyPrint", "false")
51101 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups/{id}")
51102 urls += "?" + c.urlParams_.Encode()
51103 req, err := http.NewRequest("GET", urls, body)
51104 if err != nil {
51105 return nil, err
51106 }
51107 req.Header = reqHeaders
51108 googleapi.Expand(req.URL, map[string]string{
51109 "profileId": strconv.FormatInt(c.profileId, 10),
51110 "id": strconv.FormatInt(c.id, 10),
51111 })
51112 return gensupport.SendRequest(c.ctx_, c.s.client, req)
51113 }
51114
51115
51116
51117
51118
51119
51120
51121
51122 func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) {
51123 gensupport.SetOptions(c.urlParams_, opts...)
51124 res, err := c.doRequest("json")
51125 if res != nil && res.StatusCode == http.StatusNotModified {
51126 if res.Body != nil {
51127 res.Body.Close()
51128 }
51129 return nil, &googleapi.Error{
51130 Code: res.StatusCode,
51131 Header: res.Header,
51132 }
51133 }
51134 if err != nil {
51135 return nil, err
51136 }
51137 defer googleapi.CloseBody(res)
51138 if err := googleapi.CheckResponse(res); err != nil {
51139 return nil, err
51140 }
51141 ret := &UserRolePermissionGroup{
51142 ServerResponse: googleapi.ServerResponse{
51143 Header: res.Header,
51144 HTTPStatusCode: res.StatusCode,
51145 },
51146 }
51147 target := &ret
51148 if err := gensupport.DecodeResponse(target, res); err != nil {
51149 return nil, err
51150 }
51151 return ret, nil
51152
51153
51154
51155
51156
51157
51158
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173
51174
51175
51176
51177
51178
51179
51180
51181
51182
51183
51184
51185
51186 }
51187
51188
51189
51190 type UserRolePermissionGroupsListCall struct {
51191 s *Service
51192 profileId int64
51193 urlParams_ gensupport.URLParams
51194 ifNoneMatch_ string
51195 ctx_ context.Context
51196 header_ http.Header
51197 }
51198
51199
51200
51201
51202 func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall {
51203 c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51204 c.profileId = profileId
51205 return c
51206 }
51207
51208
51209
51210
51211 func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall {
51212 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51213 return c
51214 }
51215
51216
51217
51218
51219
51220
51221 func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall {
51222 c.ifNoneMatch_ = entityTag
51223 return c
51224 }
51225
51226
51227
51228
51229 func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall {
51230 c.ctx_ = ctx
51231 return c
51232 }
51233
51234
51235
51236 func (c *UserRolePermissionGroupsListCall) Header() http.Header {
51237 if c.header_ == nil {
51238 c.header_ = make(http.Header)
51239 }
51240 return c.header_
51241 }
51242
51243 func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) {
51244 reqHeaders := make(http.Header)
51245 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51246 for k, v := range c.header_ {
51247 reqHeaders[k] = v
51248 }
51249 reqHeaders.Set("User-Agent", c.s.userAgent())
51250 if c.ifNoneMatch_ != "" {
51251 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51252 }
51253 var body io.Reader = nil
51254 c.urlParams_.Set("alt", alt)
51255 c.urlParams_.Set("prettyPrint", "false")
51256 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissionGroups")
51257 urls += "?" + c.urlParams_.Encode()
51258 req, err := http.NewRequest("GET", urls, body)
51259 if err != nil {
51260 return nil, err
51261 }
51262 req.Header = reqHeaders
51263 googleapi.Expand(req.URL, map[string]string{
51264 "profileId": strconv.FormatInt(c.profileId, 10),
51265 })
51266 return gensupport.SendRequest(c.ctx_, c.s.client, req)
51267 }
51268
51269
51270
51271
51272
51273
51274
51275
51276
51277 func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) {
51278 gensupport.SetOptions(c.urlParams_, opts...)
51279 res, err := c.doRequest("json")
51280 if res != nil && res.StatusCode == http.StatusNotModified {
51281 if res.Body != nil {
51282 res.Body.Close()
51283 }
51284 return nil, &googleapi.Error{
51285 Code: res.StatusCode,
51286 Header: res.Header,
51287 }
51288 }
51289 if err != nil {
51290 return nil, err
51291 }
51292 defer googleapi.CloseBody(res)
51293 if err := googleapi.CheckResponse(res); err != nil {
51294 return nil, err
51295 }
51296 ret := &UserRolePermissionGroupsListResponse{
51297 ServerResponse: googleapi.ServerResponse{
51298 Header: res.Header,
51299 HTTPStatusCode: res.StatusCode,
51300 },
51301 }
51302 target := &ret
51303 if err := gensupport.DecodeResponse(target, res); err != nil {
51304 return nil, err
51305 }
51306 return ret, nil
51307
51308
51309
51310
51311
51312
51313
51314
51315
51316
51317
51318
51319
51320
51321
51322
51323
51324
51325
51326
51327
51328
51329
51330
51331
51332
51333 }
51334
51335
51336
51337 type UserRolePermissionsGetCall struct {
51338 s *Service
51339 profileId int64
51340 id int64
51341 urlParams_ gensupport.URLParams
51342 ifNoneMatch_ string
51343 ctx_ context.Context
51344 header_ http.Header
51345 }
51346
51347
51348
51349
51350
51351 func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall {
51352 c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51353 c.profileId = profileId
51354 c.id = id
51355 return c
51356 }
51357
51358
51359
51360
51361 func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall {
51362 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51363 return c
51364 }
51365
51366
51367
51368
51369
51370
51371 func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall {
51372 c.ifNoneMatch_ = entityTag
51373 return c
51374 }
51375
51376
51377
51378
51379 func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall {
51380 c.ctx_ = ctx
51381 return c
51382 }
51383
51384
51385
51386 func (c *UserRolePermissionsGetCall) Header() http.Header {
51387 if c.header_ == nil {
51388 c.header_ = make(http.Header)
51389 }
51390 return c.header_
51391 }
51392
51393 func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) {
51394 reqHeaders := make(http.Header)
51395 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51396 for k, v := range c.header_ {
51397 reqHeaders[k] = v
51398 }
51399 reqHeaders.Set("User-Agent", c.s.userAgent())
51400 if c.ifNoneMatch_ != "" {
51401 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51402 }
51403 var body io.Reader = nil
51404 c.urlParams_.Set("alt", alt)
51405 c.urlParams_.Set("prettyPrint", "false")
51406 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions/{id}")
51407 urls += "?" + c.urlParams_.Encode()
51408 req, err := http.NewRequest("GET", urls, body)
51409 if err != nil {
51410 return nil, err
51411 }
51412 req.Header = reqHeaders
51413 googleapi.Expand(req.URL, map[string]string{
51414 "profileId": strconv.FormatInt(c.profileId, 10),
51415 "id": strconv.FormatInt(c.id, 10),
51416 })
51417 return gensupport.SendRequest(c.ctx_, c.s.client, req)
51418 }
51419
51420
51421
51422
51423
51424
51425
51426
51427 func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) {
51428 gensupport.SetOptions(c.urlParams_, opts...)
51429 res, err := c.doRequest("json")
51430 if res != nil && res.StatusCode == http.StatusNotModified {
51431 if res.Body != nil {
51432 res.Body.Close()
51433 }
51434 return nil, &googleapi.Error{
51435 Code: res.StatusCode,
51436 Header: res.Header,
51437 }
51438 }
51439 if err != nil {
51440 return nil, err
51441 }
51442 defer googleapi.CloseBody(res)
51443 if err := googleapi.CheckResponse(res); err != nil {
51444 return nil, err
51445 }
51446 ret := &UserRolePermission{
51447 ServerResponse: googleapi.ServerResponse{
51448 Header: res.Header,
51449 HTTPStatusCode: res.StatusCode,
51450 },
51451 }
51452 target := &ret
51453 if err := gensupport.DecodeResponse(target, res); err != nil {
51454 return nil, err
51455 }
51456 return ret, nil
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472
51473
51474
51475
51476
51477
51478
51479
51480
51481
51482
51483
51484
51485
51486
51487
51488
51489
51490
51491 }
51492
51493
51494
51495 type UserRolePermissionsListCall struct {
51496 s *Service
51497 profileId int64
51498 urlParams_ gensupport.URLParams
51499 ifNoneMatch_ string
51500 ctx_ context.Context
51501 header_ http.Header
51502 }
51503
51504
51505
51506
51507 func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall {
51508 c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51509 c.profileId = profileId
51510 return c
51511 }
51512
51513
51514
51515 func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall {
51516 var ids_ []string
51517 for _, v := range ids {
51518 ids_ = append(ids_, fmt.Sprint(v))
51519 }
51520 c.urlParams_.SetMulti("ids", ids_)
51521 return c
51522 }
51523
51524
51525
51526
51527 func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall {
51528 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51529 return c
51530 }
51531
51532
51533
51534
51535
51536
51537 func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall {
51538 c.ifNoneMatch_ = entityTag
51539 return c
51540 }
51541
51542
51543
51544
51545 func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall {
51546 c.ctx_ = ctx
51547 return c
51548 }
51549
51550
51551
51552 func (c *UserRolePermissionsListCall) Header() http.Header {
51553 if c.header_ == nil {
51554 c.header_ = make(http.Header)
51555 }
51556 return c.header_
51557 }
51558
51559 func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) {
51560 reqHeaders := make(http.Header)
51561 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51562 for k, v := range c.header_ {
51563 reqHeaders[k] = v
51564 }
51565 reqHeaders.Set("User-Agent", c.s.userAgent())
51566 if c.ifNoneMatch_ != "" {
51567 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51568 }
51569 var body io.Reader = nil
51570 c.urlParams_.Set("alt", alt)
51571 c.urlParams_.Set("prettyPrint", "false")
51572 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRolePermissions")
51573 urls += "?" + c.urlParams_.Encode()
51574 req, err := http.NewRequest("GET", urls, body)
51575 if err != nil {
51576 return nil, err
51577 }
51578 req.Header = reqHeaders
51579 googleapi.Expand(req.URL, map[string]string{
51580 "profileId": strconv.FormatInt(c.profileId, 10),
51581 })
51582 return gensupport.SendRequest(c.ctx_, c.s.client, req)
51583 }
51584
51585
51586
51587
51588
51589
51590
51591
51592 func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) {
51593 gensupport.SetOptions(c.urlParams_, opts...)
51594 res, err := c.doRequest("json")
51595 if res != nil && res.StatusCode == http.StatusNotModified {
51596 if res.Body != nil {
51597 res.Body.Close()
51598 }
51599 return nil, &googleapi.Error{
51600 Code: res.StatusCode,
51601 Header: res.Header,
51602 }
51603 }
51604 if err != nil {
51605 return nil, err
51606 }
51607 defer googleapi.CloseBody(res)
51608 if err := googleapi.CheckResponse(res); err != nil {
51609 return nil, err
51610 }
51611 ret := &UserRolePermissionsListResponse{
51612 ServerResponse: googleapi.ServerResponse{
51613 Header: res.Header,
51614 HTTPStatusCode: res.StatusCode,
51615 },
51616 }
51617 target := &ret
51618 if err := gensupport.DecodeResponse(target, res); err != nil {
51619 return nil, err
51620 }
51621 return ret, nil
51622
51623
51624
51625
51626
51627
51628
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654
51655 }
51656
51657
51658
51659 type UserRolesDeleteCall struct {
51660 s *Service
51661 profileId int64
51662 id int64
51663 urlParams_ gensupport.URLParams
51664 ctx_ context.Context
51665 header_ http.Header
51666 }
51667
51668
51669
51670
51671
51672 func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall {
51673 c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51674 c.profileId = profileId
51675 c.id = id
51676 return c
51677 }
51678
51679
51680
51681
51682 func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall {
51683 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51684 return c
51685 }
51686
51687
51688
51689
51690 func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall {
51691 c.ctx_ = ctx
51692 return c
51693 }
51694
51695
51696
51697 func (c *UserRolesDeleteCall) Header() http.Header {
51698 if c.header_ == nil {
51699 c.header_ = make(http.Header)
51700 }
51701 return c.header_
51702 }
51703
51704 func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) {
51705 reqHeaders := make(http.Header)
51706 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51707 for k, v := range c.header_ {
51708 reqHeaders[k] = v
51709 }
51710 reqHeaders.Set("User-Agent", c.s.userAgent())
51711 var body io.Reader = nil
51712 c.urlParams_.Set("alt", alt)
51713 c.urlParams_.Set("prettyPrint", "false")
51714 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}")
51715 urls += "?" + c.urlParams_.Encode()
51716 req, err := http.NewRequest("DELETE", urls, body)
51717 if err != nil {
51718 return nil, err
51719 }
51720 req.Header = reqHeaders
51721 googleapi.Expand(req.URL, map[string]string{
51722 "profileId": strconv.FormatInt(c.profileId, 10),
51723 "id": strconv.FormatInt(c.id, 10),
51724 })
51725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
51726 }
51727
51728
51729 func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error {
51730 gensupport.SetOptions(c.urlParams_, opts...)
51731 res, err := c.doRequest("json")
51732 if err != nil {
51733 return err
51734 }
51735 defer googleapi.CloseBody(res)
51736 if err := googleapi.CheckResponse(res); err != nil {
51737 return err
51738 }
51739 return nil
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770
51771 }
51772
51773
51774
51775 type UserRolesGetCall struct {
51776 s *Service
51777 profileId int64
51778 id int64
51779 urlParams_ gensupport.URLParams
51780 ifNoneMatch_ string
51781 ctx_ context.Context
51782 header_ http.Header
51783 }
51784
51785
51786
51787
51788
51789 func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall {
51790 c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51791 c.profileId = profileId
51792 c.id = id
51793 return c
51794 }
51795
51796
51797
51798
51799 func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall {
51800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51801 return c
51802 }
51803
51804
51805
51806
51807
51808
51809 func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall {
51810 c.ifNoneMatch_ = entityTag
51811 return c
51812 }
51813
51814
51815
51816
51817 func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall {
51818 c.ctx_ = ctx
51819 return c
51820 }
51821
51822
51823
51824 func (c *UserRolesGetCall) Header() http.Header {
51825 if c.header_ == nil {
51826 c.header_ = make(http.Header)
51827 }
51828 return c.header_
51829 }
51830
51831 func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) {
51832 reqHeaders := make(http.Header)
51833 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51834 for k, v := range c.header_ {
51835 reqHeaders[k] = v
51836 }
51837 reqHeaders.Set("User-Agent", c.s.userAgent())
51838 if c.ifNoneMatch_ != "" {
51839 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
51840 }
51841 var body io.Reader = nil
51842 c.urlParams_.Set("alt", alt)
51843 c.urlParams_.Set("prettyPrint", "false")
51844 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles/{id}")
51845 urls += "?" + c.urlParams_.Encode()
51846 req, err := http.NewRequest("GET", urls, body)
51847 if err != nil {
51848 return nil, err
51849 }
51850 req.Header = reqHeaders
51851 googleapi.Expand(req.URL, map[string]string{
51852 "profileId": strconv.FormatInt(c.profileId, 10),
51853 "id": strconv.FormatInt(c.id, 10),
51854 })
51855 return gensupport.SendRequest(c.ctx_, c.s.client, req)
51856 }
51857
51858
51859
51860
51861
51862
51863
51864
51865 func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
51866 gensupport.SetOptions(c.urlParams_, opts...)
51867 res, err := c.doRequest("json")
51868 if res != nil && res.StatusCode == http.StatusNotModified {
51869 if res.Body != nil {
51870 res.Body.Close()
51871 }
51872 return nil, &googleapi.Error{
51873 Code: res.StatusCode,
51874 Header: res.Header,
51875 }
51876 }
51877 if err != nil {
51878 return nil, err
51879 }
51880 defer googleapi.CloseBody(res)
51881 if err := googleapi.CheckResponse(res); err != nil {
51882 return nil, err
51883 }
51884 ret := &UserRole{
51885 ServerResponse: googleapi.ServerResponse{
51886 Header: res.Header,
51887 HTTPStatusCode: res.StatusCode,
51888 },
51889 }
51890 target := &ret
51891 if err := gensupport.DecodeResponse(target, res); err != nil {
51892 return nil, err
51893 }
51894 return ret, nil
51895
51896
51897
51898
51899
51900
51901
51902
51903
51904
51905
51906
51907
51908
51909
51910
51911
51912
51913
51914
51915
51916
51917
51918
51919
51920
51921
51922
51923
51924
51925
51926
51927
51928
51929 }
51930
51931
51932
51933 type UserRolesInsertCall struct {
51934 s *Service
51935 profileId int64
51936 userrole *UserRole
51937 urlParams_ gensupport.URLParams
51938 ctx_ context.Context
51939 header_ http.Header
51940 }
51941
51942
51943
51944
51945 func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall {
51946 c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
51947 c.profileId = profileId
51948 c.userrole = userrole
51949 return c
51950 }
51951
51952
51953
51954
51955 func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall {
51956 c.urlParams_.Set("fields", googleapi.CombineFields(s))
51957 return c
51958 }
51959
51960
51961
51962
51963 func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall {
51964 c.ctx_ = ctx
51965 return c
51966 }
51967
51968
51969
51970 func (c *UserRolesInsertCall) Header() http.Header {
51971 if c.header_ == nil {
51972 c.header_ = make(http.Header)
51973 }
51974 return c.header_
51975 }
51976
51977 func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) {
51978 reqHeaders := make(http.Header)
51979 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
51980 for k, v := range c.header_ {
51981 reqHeaders[k] = v
51982 }
51983 reqHeaders.Set("User-Agent", c.s.userAgent())
51984 var body io.Reader = nil
51985 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole)
51986 if err != nil {
51987 return nil, err
51988 }
51989 reqHeaders.Set("Content-Type", "application/json")
51990 c.urlParams_.Set("alt", alt)
51991 c.urlParams_.Set("prettyPrint", "false")
51992 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
51993 urls += "?" + c.urlParams_.Encode()
51994 req, err := http.NewRequest("POST", urls, body)
51995 if err != nil {
51996 return nil, err
51997 }
51998 req.Header = reqHeaders
51999 googleapi.Expand(req.URL, map[string]string{
52000 "profileId": strconv.FormatInt(c.profileId, 10),
52001 })
52002 return gensupport.SendRequest(c.ctx_, c.s.client, req)
52003 }
52004
52005
52006
52007
52008
52009
52010
52011
52012 func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
52013 gensupport.SetOptions(c.urlParams_, opts...)
52014 res, err := c.doRequest("json")
52015 if res != nil && res.StatusCode == http.StatusNotModified {
52016 if res.Body != nil {
52017 res.Body.Close()
52018 }
52019 return nil, &googleapi.Error{
52020 Code: res.StatusCode,
52021 Header: res.Header,
52022 }
52023 }
52024 if err != nil {
52025 return nil, err
52026 }
52027 defer googleapi.CloseBody(res)
52028 if err := googleapi.CheckResponse(res); err != nil {
52029 return nil, err
52030 }
52031 ret := &UserRole{
52032 ServerResponse: googleapi.ServerResponse{
52033 Header: res.Header,
52034 HTTPStatusCode: res.StatusCode,
52035 },
52036 }
52037 target := &ret
52038 if err := gensupport.DecodeResponse(target, res); err != nil {
52039 return nil, err
52040 }
52041 return ret, nil
52042
52043
52044
52045
52046
52047
52048
52049
52050
52051
52052
52053
52054
52055
52056
52057
52058
52059
52060
52061
52062
52063
52064
52065
52066
52067
52068
52069
52070
52071 }
52072
52073
52074
52075 type UserRolesListCall struct {
52076 s *Service
52077 profileId int64
52078 urlParams_ gensupport.URLParams
52079 ifNoneMatch_ string
52080 ctx_ context.Context
52081 header_ http.Header
52082 }
52083
52084
52085
52086
52087
52088 func (r *UserRolesService) List(profileId int64) *UserRolesListCall {
52089 c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52090 c.profileId = profileId
52091 return c
52092 }
52093
52094
52095
52096
52097 func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall {
52098 c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly))
52099 return c
52100 }
52101
52102
52103
52104 func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall {
52105 var ids_ []string
52106 for _, v := range ids {
52107 ids_ = append(ids_, fmt.Sprint(v))
52108 }
52109 c.urlParams_.SetMulti("ids", ids_)
52110 return c
52111 }
52112
52113
52114
52115 func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall {
52116 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
52117 return c
52118 }
52119
52120
52121
52122 func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall {
52123 c.urlParams_.Set("pageToken", pageToken)
52124 return c
52125 }
52126
52127
52128
52129
52130
52131
52132
52133
52134
52135 func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall {
52136 c.urlParams_.Set("searchString", searchString)
52137 return c
52138 }
52139
52140
52141
52142
52143
52144
52145
52146
52147 func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall {
52148 c.urlParams_.Set("sortField", sortField)
52149 return c
52150 }
52151
52152
52153
52154
52155
52156
52157
52158
52159 func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall {
52160 c.urlParams_.Set("sortOrder", sortOrder)
52161 return c
52162 }
52163
52164
52165
52166 func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall {
52167 c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId))
52168 return c
52169 }
52170
52171
52172
52173
52174 func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall {
52175 c.urlParams_.Set("fields", googleapi.CombineFields(s))
52176 return c
52177 }
52178
52179
52180
52181
52182
52183
52184 func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall {
52185 c.ifNoneMatch_ = entityTag
52186 return c
52187 }
52188
52189
52190
52191
52192 func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall {
52193 c.ctx_ = ctx
52194 return c
52195 }
52196
52197
52198
52199 func (c *UserRolesListCall) Header() http.Header {
52200 if c.header_ == nil {
52201 c.header_ = make(http.Header)
52202 }
52203 return c.header_
52204 }
52205
52206 func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) {
52207 reqHeaders := make(http.Header)
52208 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
52209 for k, v := range c.header_ {
52210 reqHeaders[k] = v
52211 }
52212 reqHeaders.Set("User-Agent", c.s.userAgent())
52213 if c.ifNoneMatch_ != "" {
52214 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52215 }
52216 var body io.Reader = nil
52217 c.urlParams_.Set("alt", alt)
52218 c.urlParams_.Set("prettyPrint", "false")
52219 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
52220 urls += "?" + c.urlParams_.Encode()
52221 req, err := http.NewRequest("GET", urls, body)
52222 if err != nil {
52223 return nil, err
52224 }
52225 req.Header = reqHeaders
52226 googleapi.Expand(req.URL, map[string]string{
52227 "profileId": strconv.FormatInt(c.profileId, 10),
52228 })
52229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
52230 }
52231
52232
52233
52234
52235
52236
52237
52238
52239 func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) {
52240 gensupport.SetOptions(c.urlParams_, opts...)
52241 res, err := c.doRequest("json")
52242 if res != nil && res.StatusCode == http.StatusNotModified {
52243 if res.Body != nil {
52244 res.Body.Close()
52245 }
52246 return nil, &googleapi.Error{
52247 Code: res.StatusCode,
52248 Header: res.Header,
52249 }
52250 }
52251 if err != nil {
52252 return nil, err
52253 }
52254 defer googleapi.CloseBody(res)
52255 if err := googleapi.CheckResponse(res); err != nil {
52256 return nil, err
52257 }
52258 ret := &UserRolesListResponse{
52259 ServerResponse: googleapi.ServerResponse{
52260 Header: res.Header,
52261 HTTPStatusCode: res.StatusCode,
52262 },
52263 }
52264 target := &ret
52265 if err := gensupport.DecodeResponse(target, res); err != nil {
52266 return nil, err
52267 }
52268 return ret, nil
52269
52270
52271
52272
52273
52274
52275
52276
52277
52278
52279
52280
52281
52282
52283
52284
52285
52286
52287
52288
52289
52290
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300
52301
52302
52303
52304
52305
52306
52307
52308
52309
52310
52311
52312
52313
52314
52315
52316
52317
52318
52319
52320
52321
52322
52323
52324
52325
52326
52327
52328
52329
52330
52331
52332
52333
52334
52335
52336
52337
52338
52339
52340
52341
52342
52343
52344
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357
52358
52359
52360 }
52361
52362
52363
52364
52365 func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error {
52366 c.ctx_ = ctx
52367 defer c.PageToken(c.urlParams_.Get("pageToken"))
52368 for {
52369 x, err := c.Do()
52370 if err != nil {
52371 return err
52372 }
52373 if err := f(x); err != nil {
52374 return err
52375 }
52376 if x.NextPageToken == "" {
52377 return nil
52378 }
52379 c.PageToken(x.NextPageToken)
52380 }
52381 }
52382
52383
52384
52385 type UserRolesPatchCall struct {
52386 s *Service
52387 profileId int64
52388 userrole *UserRole
52389 urlParams_ gensupport.URLParams
52390 ctx_ context.Context
52391 header_ http.Header
52392 }
52393
52394
52395
52396
52397
52398
52399 func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall {
52400 c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52401 c.profileId = profileId
52402 c.urlParams_.Set("id", fmt.Sprint(id))
52403 c.userrole = userrole
52404 return c
52405 }
52406
52407
52408
52409
52410 func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall {
52411 c.urlParams_.Set("fields", googleapi.CombineFields(s))
52412 return c
52413 }
52414
52415
52416
52417
52418 func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall {
52419 c.ctx_ = ctx
52420 return c
52421 }
52422
52423
52424
52425 func (c *UserRolesPatchCall) Header() http.Header {
52426 if c.header_ == nil {
52427 c.header_ = make(http.Header)
52428 }
52429 return c.header_
52430 }
52431
52432 func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) {
52433 reqHeaders := make(http.Header)
52434 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
52435 for k, v := range c.header_ {
52436 reqHeaders[k] = v
52437 }
52438 reqHeaders.Set("User-Agent", c.s.userAgent())
52439 var body io.Reader = nil
52440 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole)
52441 if err != nil {
52442 return nil, err
52443 }
52444 reqHeaders.Set("Content-Type", "application/json")
52445 c.urlParams_.Set("alt", alt)
52446 c.urlParams_.Set("prettyPrint", "false")
52447 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
52448 urls += "?" + c.urlParams_.Encode()
52449 req, err := http.NewRequest("PATCH", urls, body)
52450 if err != nil {
52451 return nil, err
52452 }
52453 req.Header = reqHeaders
52454 googleapi.Expand(req.URL, map[string]string{
52455 "profileId": strconv.FormatInt(c.profileId, 10),
52456 })
52457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
52458 }
52459
52460
52461
52462
52463
52464
52465
52466
52467 func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
52468 gensupport.SetOptions(c.urlParams_, opts...)
52469 res, err := c.doRequest("json")
52470 if res != nil && res.StatusCode == http.StatusNotModified {
52471 if res.Body != nil {
52472 res.Body.Close()
52473 }
52474 return nil, &googleapi.Error{
52475 Code: res.StatusCode,
52476 Header: res.Header,
52477 }
52478 }
52479 if err != nil {
52480 return nil, err
52481 }
52482 defer googleapi.CloseBody(res)
52483 if err := googleapi.CheckResponse(res); err != nil {
52484 return nil, err
52485 }
52486 ret := &UserRole{
52487 ServerResponse: googleapi.ServerResponse{
52488 Header: res.Header,
52489 HTTPStatusCode: res.StatusCode,
52490 },
52491 }
52492 target := &ret
52493 if err := gensupport.DecodeResponse(target, res); err != nil {
52494 return nil, err
52495 }
52496 return ret, nil
52497
52498
52499
52500
52501
52502
52503
52504
52505
52506
52507
52508
52509
52510
52511
52512
52513
52514
52515
52516
52517
52518
52519
52520
52521
52522
52523
52524
52525
52526
52527
52528
52529
52530
52531
52532
52533
52534 }
52535
52536
52537
52538 type UserRolesUpdateCall struct {
52539 s *Service
52540 profileId int64
52541 userrole *UserRole
52542 urlParams_ gensupport.URLParams
52543 ctx_ context.Context
52544 header_ http.Header
52545 }
52546
52547
52548
52549
52550 func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall {
52551 c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52552 c.profileId = profileId
52553 c.userrole = userrole
52554 return c
52555 }
52556
52557
52558
52559
52560 func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall {
52561 c.urlParams_.Set("fields", googleapi.CombineFields(s))
52562 return c
52563 }
52564
52565
52566
52567
52568 func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall {
52569 c.ctx_ = ctx
52570 return c
52571 }
52572
52573
52574
52575 func (c *UserRolesUpdateCall) Header() http.Header {
52576 if c.header_ == nil {
52577 c.header_ = make(http.Header)
52578 }
52579 return c.header_
52580 }
52581
52582 func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) {
52583 reqHeaders := make(http.Header)
52584 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
52585 for k, v := range c.header_ {
52586 reqHeaders[k] = v
52587 }
52588 reqHeaders.Set("User-Agent", c.s.userAgent())
52589 var body io.Reader = nil
52590 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole)
52591 if err != nil {
52592 return nil, err
52593 }
52594 reqHeaders.Set("Content-Type", "application/json")
52595 c.urlParams_.Set("alt", alt)
52596 c.urlParams_.Set("prettyPrint", "false")
52597 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles")
52598 urls += "?" + c.urlParams_.Encode()
52599 req, err := http.NewRequest("PUT", urls, body)
52600 if err != nil {
52601 return nil, err
52602 }
52603 req.Header = reqHeaders
52604 googleapi.Expand(req.URL, map[string]string{
52605 "profileId": strconv.FormatInt(c.profileId, 10),
52606 })
52607 return gensupport.SendRequest(c.ctx_, c.s.client, req)
52608 }
52609
52610
52611
52612
52613
52614
52615
52616
52617 func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) {
52618 gensupport.SetOptions(c.urlParams_, opts...)
52619 res, err := c.doRequest("json")
52620 if res != nil && res.StatusCode == http.StatusNotModified {
52621 if res.Body != nil {
52622 res.Body.Close()
52623 }
52624 return nil, &googleapi.Error{
52625 Code: res.StatusCode,
52626 Header: res.Header,
52627 }
52628 }
52629 if err != nil {
52630 return nil, err
52631 }
52632 defer googleapi.CloseBody(res)
52633 if err := googleapi.CheckResponse(res); err != nil {
52634 return nil, err
52635 }
52636 ret := &UserRole{
52637 ServerResponse: googleapi.ServerResponse{
52638 Header: res.Header,
52639 HTTPStatusCode: res.StatusCode,
52640 },
52641 }
52642 target := &ret
52643 if err := gensupport.DecodeResponse(target, res); err != nil {
52644 return nil, err
52645 }
52646 return ret, nil
52647
52648
52649
52650
52651
52652
52653
52654
52655
52656
52657
52658
52659
52660
52661
52662
52663
52664
52665
52666
52667
52668
52669
52670
52671
52672
52673
52674
52675
52676 }
52677
52678
52679
52680 type VideoFormatsGetCall struct {
52681 s *Service
52682 profileId int64
52683 id int64
52684 urlParams_ gensupport.URLParams
52685 ifNoneMatch_ string
52686 ctx_ context.Context
52687 header_ http.Header
52688 }
52689
52690
52691
52692
52693
52694 func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall {
52695 c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52696 c.profileId = profileId
52697 c.id = id
52698 return c
52699 }
52700
52701
52702
52703
52704 func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall {
52705 c.urlParams_.Set("fields", googleapi.CombineFields(s))
52706 return c
52707 }
52708
52709
52710
52711
52712
52713
52714 func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall {
52715 c.ifNoneMatch_ = entityTag
52716 return c
52717 }
52718
52719
52720
52721
52722 func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall {
52723 c.ctx_ = ctx
52724 return c
52725 }
52726
52727
52728
52729 func (c *VideoFormatsGetCall) Header() http.Header {
52730 if c.header_ == nil {
52731 c.header_ = make(http.Header)
52732 }
52733 return c.header_
52734 }
52735
52736 func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) {
52737 reqHeaders := make(http.Header)
52738 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
52739 for k, v := range c.header_ {
52740 reqHeaders[k] = v
52741 }
52742 reqHeaders.Set("User-Agent", c.s.userAgent())
52743 if c.ifNoneMatch_ != "" {
52744 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52745 }
52746 var body io.Reader = nil
52747 c.urlParams_.Set("alt", alt)
52748 c.urlParams_.Set("prettyPrint", "false")
52749 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats/{id}")
52750 urls += "?" + c.urlParams_.Encode()
52751 req, err := http.NewRequest("GET", urls, body)
52752 if err != nil {
52753 return nil, err
52754 }
52755 req.Header = reqHeaders
52756 googleapi.Expand(req.URL, map[string]string{
52757 "profileId": strconv.FormatInt(c.profileId, 10),
52758 "id": strconv.FormatInt(c.id, 10),
52759 })
52760 return gensupport.SendRequest(c.ctx_, c.s.client, req)
52761 }
52762
52763
52764
52765
52766
52767
52768
52769
52770 func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) {
52771 gensupport.SetOptions(c.urlParams_, opts...)
52772 res, err := c.doRequest("json")
52773 if res != nil && res.StatusCode == http.StatusNotModified {
52774 if res.Body != nil {
52775 res.Body.Close()
52776 }
52777 return nil, &googleapi.Error{
52778 Code: res.StatusCode,
52779 Header: res.Header,
52780 }
52781 }
52782 if err != nil {
52783 return nil, err
52784 }
52785 defer googleapi.CloseBody(res)
52786 if err := googleapi.CheckResponse(res); err != nil {
52787 return nil, err
52788 }
52789 ret := &VideoFormat{
52790 ServerResponse: googleapi.ServerResponse{
52791 Header: res.Header,
52792 HTTPStatusCode: res.StatusCode,
52793 },
52794 }
52795 target := &ret
52796 if err := gensupport.DecodeResponse(target, res); err != nil {
52797 return nil, err
52798 }
52799 return ret, nil
52800
52801
52802
52803
52804
52805
52806
52807
52808
52809
52810
52811
52812
52813
52814
52815
52816
52817
52818
52819
52820
52821
52822
52823
52824
52825
52826
52827
52828
52829
52830
52831
52832
52833
52834 }
52835
52836
52837
52838 type VideoFormatsListCall struct {
52839 s *Service
52840 profileId int64
52841 urlParams_ gensupport.URLParams
52842 ifNoneMatch_ string
52843 ctx_ context.Context
52844 header_ http.Header
52845 }
52846
52847
52848
52849
52850 func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall {
52851 c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
52852 c.profileId = profileId
52853 return c
52854 }
52855
52856
52857
52858
52859 func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall {
52860 c.urlParams_.Set("fields", googleapi.CombineFields(s))
52861 return c
52862 }
52863
52864
52865
52866
52867
52868
52869 func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall {
52870 c.ifNoneMatch_ = entityTag
52871 return c
52872 }
52873
52874
52875
52876
52877 func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall {
52878 c.ctx_ = ctx
52879 return c
52880 }
52881
52882
52883
52884 func (c *VideoFormatsListCall) Header() http.Header {
52885 if c.header_ == nil {
52886 c.header_ = make(http.Header)
52887 }
52888 return c.header_
52889 }
52890
52891 func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) {
52892 reqHeaders := make(http.Header)
52893 reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
52894 for k, v := range c.header_ {
52895 reqHeaders[k] = v
52896 }
52897 reqHeaders.Set("User-Agent", c.s.userAgent())
52898 if c.ifNoneMatch_ != "" {
52899 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
52900 }
52901 var body io.Reader = nil
52902 c.urlParams_.Set("alt", alt)
52903 c.urlParams_.Set("prettyPrint", "false")
52904 urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/videoFormats")
52905 urls += "?" + c.urlParams_.Encode()
52906 req, err := http.NewRequest("GET", urls, body)
52907 if err != nil {
52908 return nil, err
52909 }
52910 req.Header = reqHeaders
52911 googleapi.Expand(req.URL, map[string]string{
52912 "profileId": strconv.FormatInt(c.profileId, 10),
52913 })
52914 return gensupport.SendRequest(c.ctx_, c.s.client, req)
52915 }
52916
52917
52918
52919
52920
52921
52922
52923
52924 func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) {
52925 gensupport.SetOptions(c.urlParams_, opts...)
52926 res, err := c.doRequest("json")
52927 if res != nil && res.StatusCode == http.StatusNotModified {
52928 if res.Body != nil {
52929 res.Body.Close()
52930 }
52931 return nil, &googleapi.Error{
52932 Code: res.StatusCode,
52933 Header: res.Header,
52934 }
52935 }
52936 if err != nil {
52937 return nil, err
52938 }
52939 defer googleapi.CloseBody(res)
52940 if err := googleapi.CheckResponse(res); err != nil {
52941 return nil, err
52942 }
52943 ret := &VideoFormatsListResponse{
52944 ServerResponse: googleapi.ServerResponse{
52945 Header: res.Header,
52946 HTTPStatusCode: res.StatusCode,
52947 },
52948 }
52949 target := &ret
52950 if err := gensupport.DecodeResponse(target, res); err != nil {
52951 return nil, err
52952 }
52953 return ret, nil
52954
52955
52956
52957
52958
52959
52960
52961
52962
52963
52964
52965
52966
52967
52968
52969
52970
52971
52972
52973
52974
52975
52976
52977
52978
52979
52980 }
52981
View as plain text