-
Notifications
You must be signed in to change notification settings - Fork 0
/
streamactivitymonitor.go
865 lines (546 loc) · 26.1 KB
/
streamactivitymonitor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
// Code generated by gowsdl DO NOT EDIT.
package streamactivitymonitor
import (
"context"
"encoding/xml"
"github.com/hooklift/gowsdl/soap"
"time"
)
// against "unused imports"
var _ time.Time
var _ xml.Name
type AnyType struct {
InnerXML string `xml:",innerxml"`
}
type AnyURI string
type NCName string
type ApiVersionError_Reason string
const (
ApiVersionError_ReasonUPDATE_TO_NEWER_VERSION ApiVersionError_Reason = "UPDATE_TO_NEWER_VERSION"
ApiVersionError_ReasonUNKNOWN ApiVersionError_Reason = "UNKNOWN"
)
type AuthenticationError_Reason string
const (
AuthenticationError_ReasonAMBIGUOUS_SOAP_REQUEST_HEADER AuthenticationError_Reason = "AMBIGUOUS_SOAP_REQUEST_HEADER"
AuthenticationError_ReasonINVALID_EMAIL AuthenticationError_Reason = "INVALID_EMAIL"
AuthenticationError_ReasonAUTHENTICATION_FAILED AuthenticationError_Reason = "AUTHENTICATION_FAILED"
AuthenticationError_ReasonINVALID_OAUTH_SIGNATURE AuthenticationError_Reason = "INVALID_OAUTH_SIGNATURE"
AuthenticationError_ReasonINVALID_SERVICE AuthenticationError_Reason = "INVALID_SERVICE"
AuthenticationError_ReasonMISSING_SOAP_REQUEST_HEADER AuthenticationError_Reason = "MISSING_SOAP_REQUEST_HEADER"
AuthenticationError_ReasonMISSING_AUTHENTICATION_HTTP_HEADER AuthenticationError_Reason = "MISSING_AUTHENTICATION_HTTP_HEADER"
AuthenticationError_ReasonMISSING_AUTHENTICATION AuthenticationError_Reason = "MISSING_AUTHENTICATION"
AuthenticationError_ReasonNETWORK_API_ACCESS_DISABLED AuthenticationError_Reason = "NETWORK_API_ACCESS_DISABLED"
AuthenticationError_ReasonNO_NETWORKS_TO_ACCESS AuthenticationError_Reason = "NO_NETWORKS_TO_ACCESS"
AuthenticationError_ReasonNETWORK_NOT_FOUND AuthenticationError_Reason = "NETWORK_NOT_FOUND"
AuthenticationError_ReasonNETWORK_CODE_REQUIRED AuthenticationError_Reason = "NETWORK_CODE_REQUIRED"
AuthenticationError_ReasonCONNECTION_ERROR AuthenticationError_Reason = "CONNECTION_ERROR"
AuthenticationError_ReasonGOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK AuthenticationError_Reason = "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK"
AuthenticationError_ReasonUNDER_INVESTIGATION AuthenticationError_Reason = "UNDER_INVESTIGATION"
AuthenticationError_ReasonUNKNOWN AuthenticationError_Reason = "UNKNOWN"
)
type CollectionSizeError_Reason string
const (
CollectionSizeError_ReasonTOO_LARGE CollectionSizeError_Reason = "TOO_LARGE"
CollectionSizeError_ReasonUNKNOWN CollectionSizeError_Reason = "UNKNOWN"
)
type CommonError_Reason string
const (
CommonError_ReasonNOT_FOUND CommonError_Reason = "NOT_FOUND"
CommonError_ReasonALREADY_EXISTS CommonError_Reason = "ALREADY_EXISTS"
CommonError_ReasonNOT_APPLICABLE CommonError_Reason = "NOT_APPLICABLE"
CommonError_ReasonDUPLICATE_OBJECT CommonError_Reason = "DUPLICATE_OBJECT"
CommonError_ReasonCANNOT_UPDATE CommonError_Reason = "CANNOT_UPDATE"
CommonError_ReasonUNSUPPORTED_OPERATION CommonError_Reason = "UNSUPPORTED_OPERATION"
CommonError_ReasonCONCURRENT_MODIFICATION CommonError_Reason = "CONCURRENT_MODIFICATION"
CommonError_ReasonUNKNOWN CommonError_Reason = "UNKNOWN"
)
type CreativeTranscode_IdType string
const (
CreativeTranscode_IdTypeAD_ID CreativeTranscode_IdType = "AD_ID"
CreativeTranscode_IdTypeCREATIVE_ID CreativeTranscode_IdType = "CREATIVE_ID"
CreativeTranscode_IdTypeCREATIVE_ADID CreativeTranscode_IdType = "CREATIVE_ADID"
CreativeTranscode_IdTypeUNIVERSAL_AD_ID CreativeTranscode_IdType = "UNIVERSAL_AD_ID"
CreativeTranscode_IdTypeMEDIA_URI CreativeTranscode_IdType = "MEDIA_URI"
CreativeTranscode_IdTypeMEDIA_URI_PATH CreativeTranscode_IdType = "MEDIA_URI_PATH"
CreativeTranscode_IdTypeCREATIVE_ADID_WITH_FALLBACK CreativeTranscode_IdType = "CREATIVE_ADID_WITH_FALLBACK"
CreativeTranscode_IdTypeCANONICALIZED_MEDIA_URI CreativeTranscode_IdType = "CANONICALIZED_MEDIA_URI"
CreativeTranscode_IdTypeGV_REGISTRY_ID CreativeTranscode_IdType = "GV_REGISTRY_ID"
CreativeTranscode_IdTypeUNKNOWN_ID_TYPE CreativeTranscode_IdType = "UNKNOWN_ID_TYPE"
CreativeTranscode_IdTypeMEDIA_URI_HASH CreativeTranscode_IdType = "MEDIA_URI_HASH"
CreativeTranscode_IdTypeUNKNOWN CreativeTranscode_IdType = "UNKNOWN"
)
type FeatureError_Reason string
const (
FeatureError_ReasonMISSING_FEATURE FeatureError_Reason = "MISSING_FEATURE"
FeatureError_ReasonUNKNOWN FeatureError_Reason = "UNKNOWN"
)
type InternalApiError_Reason string
const (
InternalApiError_ReasonUNEXPECTED_INTERNAL_API_ERROR InternalApiError_Reason = "UNEXPECTED_INTERNAL_API_ERROR"
InternalApiError_ReasonTRANSIENT_ERROR InternalApiError_Reason = "TRANSIENT_ERROR"
InternalApiError_ReasonUNKNOWN InternalApiError_Reason = "UNKNOWN"
InternalApiError_ReasonDOWNTIME InternalApiError_Reason = "DOWNTIME"
InternalApiError_ReasonERROR_GENERATING_RESPONSE InternalApiError_Reason = "ERROR_GENERATING_RESPONSE"
)
type NotNullError_Reason string
const (
NotNullError_ReasonARG1_NULL NotNullError_Reason = "ARG1_NULL"
NotNullError_ReasonARG2_NULL NotNullError_Reason = "ARG2_NULL"
NotNullError_ReasonARG3_NULL NotNullError_Reason = "ARG3_NULL"
NotNullError_ReasonNULL NotNullError_Reason = "NULL"
NotNullError_ReasonUNKNOWN NotNullError_Reason = "UNKNOWN"
)
type ParseError_Reason string
const (
ParseError_ReasonUNPARSABLE ParseError_Reason = "UNPARSABLE"
ParseError_ReasonUNKNOWN ParseError_Reason = "UNKNOWN"
)
type PermissionError_Reason string
const (
PermissionError_ReasonPERMISSION_DENIED PermissionError_Reason = "PERMISSION_DENIED"
PermissionError_ReasonUNKNOWN PermissionError_Reason = "UNKNOWN"
)
type PublisherQueryLanguageContextError_Reason string
const (
PublisherQueryLanguageContextError_ReasonUNEXECUTABLE PublisherQueryLanguageContextError_Reason = "UNEXECUTABLE"
PublisherQueryLanguageContextError_ReasonUNKNOWN PublisherQueryLanguageContextError_Reason = "UNKNOWN"
)
type PublisherQueryLanguageSyntaxError_Reason string
const (
PublisherQueryLanguageSyntaxError_ReasonUNPARSABLE PublisherQueryLanguageSyntaxError_Reason = "UNPARSABLE"
PublisherQueryLanguageSyntaxError_ReasonUNKNOWN PublisherQueryLanguageSyntaxError_Reason = "UNKNOWN"
)
type QuotaError_Reason string
const (
QuotaError_ReasonEXCEEDED_QUOTA QuotaError_Reason = "EXCEEDED_QUOTA"
QuotaError_ReasonUNKNOWN QuotaError_Reason = "UNKNOWN"
QuotaError_ReasonREPORT_JOB_LIMIT QuotaError_Reason = "REPORT_JOB_LIMIT"
QuotaError_ReasonSEGMENT_POPULATION_LIMIT QuotaError_Reason = "SEGMENT_POPULATION_LIMIT"
)
type ReportingType string
const (
ReportingTypeDISABLED ReportingType = "DISABLED"
ReportingTypeCLIENT ReportingType = "CLIENT"
ReportingTypeSERVER ReportingType = "SERVER"
ReportingTypeAD_MEDIA ReportingType = "AD_MEDIA"
ReportingTypeUNKNOWN ReportingType = "UNKNOWN"
)
type RequiredCollectionError_Reason string
const (
RequiredCollectionError_ReasonREQUIRED RequiredCollectionError_Reason = "REQUIRED"
RequiredCollectionError_ReasonTOO_LARGE RequiredCollectionError_Reason = "TOO_LARGE"
RequiredCollectionError_ReasonTOO_SMALL RequiredCollectionError_Reason = "TOO_SMALL"
RequiredCollectionError_ReasonUNKNOWN RequiredCollectionError_Reason = "UNKNOWN"
)
type RequiredError_Reason string
const (
RequiredError_ReasonREQUIRED RequiredError_Reason = "REQUIRED"
)
type SamErrorType string
const (
SamErrorTypeINTERNAL_ERROR SamErrorType = "INTERNAL_ERROR"
SamErrorTypeAD_REQUEST_ERROR SamErrorType = "AD_REQUEST_ERROR"
SamErrorTypeVAST_PARSE_ERROR SamErrorType = "VAST_PARSE_ERROR"
SamErrorTypeUNSUPPORTED_AD_SYSTEM SamErrorType = "UNSUPPORTED_AD_SYSTEM"
SamErrorTypeCANNOT_FIND_UNIQUE_TRANSCODE_ID SamErrorType = "CANNOT_FIND_UNIQUE_TRANSCODE_ID"
SamErrorTypeCANNOT_FIND_MEDIA_FILE_PATH SamErrorType = "CANNOT_FIND_MEDIA_FILE_PATH"
SamErrorTypeMISSING_INLINE_ELEMENTS SamErrorType = "MISSING_INLINE_ELEMENTS"
SamErrorTypeMAX_WRAPPER_DEPTH_REACHED SamErrorType = "MAX_WRAPPER_DEPTH_REACHED"
SamErrorTypeINVALID_AD_SEQUENCE_NUMBER SamErrorType = "INVALID_AD_SEQUENCE_NUMBER"
SamErrorTypeFAILED_PING SamErrorType = "FAILED_PING"
SamErrorTypeAD_TAG_PARSE_ERROR SamErrorType = "AD_TAG_PARSE_ERROR"
SamErrorTypeVMAP_PARSE_ERROR SamErrorType = "VMAP_PARSE_ERROR"
SamErrorTypeINVALID_VMAP_RESPONSE SamErrorType = "INVALID_VMAP_RESPONSE"
SamErrorTypeNO_AD_BREAKS_IN_VMAP SamErrorType = "NO_AD_BREAKS_IN_VMAP"
SamErrorTypeCUSTOM_AD_SOURCE_IN_VMAP SamErrorType = "CUSTOM_AD_SOURCE_IN_VMAP"
SamErrorTypeAD_BREAK_TYPE_NOT_SUPPORTED SamErrorType = "AD_BREAK_TYPE_NOT_SUPPORTED"
SamErrorTypeNEITHER_AD_SOURCE_NOR_TRACKING SamErrorType = "NEITHER_AD_SOURCE_NOR_TRACKING"
SamErrorTypeUNKNOWN_ERROR SamErrorType = "UNKNOWN_ERROR"
SamErrorTypeAD_POD_DROPPED_TO_MANY_AD_PODS SamErrorType = "AD_POD_DROPPED_TO_MANY_AD_PODS"
SamErrorTypeAD_POD_DROPPED_EMPTY_ADS SamErrorType = "AD_POD_DROPPED_EMPTY_ADS"
SamErrorTypeAD_BREAK_WITHOUT_AD_POD SamErrorType = "AD_BREAK_WITHOUT_AD_POD"
SamErrorTypeTRANSCODING_IN_PROGRESS SamErrorType = "TRANSCODING_IN_PROGRESS"
SamErrorTypeUNSUPPORTED_VAST_VERSION SamErrorType = "UNSUPPORTED_VAST_VERSION"
SamErrorTypeAD_POD_DROPPED_BUMPER_ERROR SamErrorType = "AD_POD_DROPPED_BUMPER_ERROR"
SamErrorTypeNO_VALID_MEDIAFILES_FOUND SamErrorType = "NO_VALID_MEDIAFILES_FOUND"
SamErrorTypeEXCEEDS_MAX_FILLER SamErrorType = "EXCEEDS_MAX_FILLER"
SamErrorTypeSKIPPABLE_AD_NOT_SUPPORTED SamErrorType = "SKIPPABLE_AD_NOT_SUPPORTED"
SamErrorTypeAD_REQUEST_TIMEOUT SamErrorType = "AD_REQUEST_TIMEOUT"
SamErrorTypeAD_POD_DROPPED_UNSUPPORTED_TYPE SamErrorType = "AD_POD_DROPPED_UNSUPPORTED_TYPE"
SamErrorTypeDUPLICATE_AD_TAG SamErrorType = "DUPLICATE_AD_TAG"
SamErrorTypeFOLLOW_REDIRECTS_IS_FALSE SamErrorType = "FOLLOW_REDIRECTS_IS_FALSE"
SamErrorTypeAD_POD_DROPPED_INCOMPATIBLE_TIMEOFFSET SamErrorType = "AD_POD_DROPPED_INCOMPATIBLE_TIMEOFFSET"
SamErrorTypeUNKNOWN SamErrorType = "UNKNOWN"
)
type SamSessionError_Reason string
const (
SamSessionError_ReasonCOULD_NOT_REGISTER_SESSION SamSessionError_Reason = "COULD_NOT_REGISTER_SESSION"
SamSessionError_ReasonMALFORMED_SESSION_ID SamSessionError_Reason = "MALFORMED_SESSION_ID"
SamSessionError_ReasonINVALID_SESSION_ID SamSessionError_Reason = "INVALID_SESSION_ID"
SamSessionError_ReasonINVALID_DEBUG_KEY SamSessionError_Reason = "INVALID_DEBUG_KEY"
SamSessionError_ReasonREQUEST_EXCEEDS_SESSION_LIMIT SamSessionError_Reason = "REQUEST_EXCEEDS_SESSION_LIMIT"
SamSessionError_ReasonUNKNOWN SamSessionError_Reason = "UNKNOWN"
)
type ServerError_Reason string
const (
ServerError_ReasonSERVER_ERROR ServerError_Reason = "SERVER_ERROR"
ServerError_ReasonSERVER_BUSY ServerError_Reason = "SERVER_BUSY"
ServerError_ReasonUNKNOWN ServerError_Reason = "UNKNOWN"
)
type StatementError_Reason string
const (
StatementError_ReasonVARIABLE_NOT_BOUND_TO_VALUE StatementError_Reason = "VARIABLE_NOT_BOUND_TO_VALUE"
StatementError_ReasonUNKNOWN StatementError_Reason = "UNKNOWN"
)
type StringFormatError_Reason string
const (
StringFormatError_ReasonUNKNOWN StringFormatError_Reason = "UNKNOWN"
StringFormatError_ReasonILLEGAL_CHARS StringFormatError_Reason = "ILLEGAL_CHARS"
StringFormatError_ReasonINVALID_FORMAT StringFormatError_Reason = "INVALID_FORMAT"
)
type StringLengthError_Reason string
const (
StringLengthError_ReasonTOO_LONG StringLengthError_Reason = "TOO_LONG"
StringLengthError_ReasonTOO_SHORT StringLengthError_Reason = "TOO_SHORT"
StringLengthError_ReasonUNKNOWN StringLengthError_Reason = "UNKNOWN"
)
type GetSamSessionsByStatement struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 getSamSessionsByStatement"`
Statement *Statement `xml:"statement,omitempty" json:"statement,omitempty"`
}
type GetSamSessionsByStatementResponse struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 getSamSessionsByStatementResponse"`
Rval []*SamSession `xml:"rval,omitempty" json:"rval,omitempty"`
}
type ApiExceptionFault ApiException
type RegisterSessionsForMonitoring struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 registerSessionsForMonitoring"`
SessionIds []string `xml:"sessionIds,omitempty" json:"sessionIds,omitempty"`
}
type RegisterSessionsForMonitoringResponse struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 registerSessionsForMonitoringResponse"`
Rval []string `xml:"rval,omitempty" json:"rval,omitempty"`
}
type RequestHeader SoapRequestHeader
type ResponseHeader SoapResponseHeader
type ObjectValue struct {
*_Value
}
type AdBreak struct {
RootAdResponses []*AdResponse `xml:"rootAdResponses,omitempty" json:"rootAdResponses,omitempty"`
AdDecisionCreatives []*AdDecisionCreative `xml:"adDecisionCreatives,omitempty" json:"adDecisionCreatives,omitempty"`
PodNum int32 `xml:"podNum,omitempty" json:"podNum,omitempty"`
LinearAbsolutePodNum int32 `xml:"linearAbsolutePodNum,omitempty" json:"linearAbsolutePodNum,omitempty"`
AdBreakDurationMillis int64 `xml:"adBreakDurationMillis,omitempty" json:"adBreakDurationMillis,omitempty"`
FilledDurationMillis int64 `xml:"filledDurationMillis,omitempty" json:"filledDurationMillis,omitempty"`
ServedDurationMillis int64 `xml:"servedDurationMillis,omitempty" json:"servedDurationMillis,omitempty"`
StartDateTime soap.XSDDateTime `xml:"startDateTime,omitempty" json:"startDateTime,omitempty"`
StartTimeOffsetMillis int64 `xml:"startTimeOffsetMillis,omitempty" json:"startTimeOffsetMillis,omitempty"`
SamError *SamError `xml:"samError,omitempty" json:"samError,omitempty"`
MidrollIndex int32 `xml:"midrollIndex,omitempty" json:"midrollIndex,omitempty"`
DecisionedAds bool `xml:"decisionedAds,omitempty" json:"decisionedAds,omitempty"`
TrackingEvents []*TrackingEvent `xml:"trackingEvents,omitempty" json:"trackingEvents,omitempty"`
}
type AdDecisionCreative struct {
Sequence int32 `xml:"sequence,omitempty" json:"sequence,omitempty"`
SlateDurationMills int64 `xml:"slateDurationMills,omitempty" json:"slateDurationMills,omitempty"`
CreativeDurationMills int64 `xml:"creativeDurationMills,omitempty" json:"creativeDurationMills,omitempty"`
CreativeTranscode *CreativeTranscode `xml:"creativeTranscode,omitempty" json:"creativeTranscode,omitempty"`
GoogleVideoId string `xml:"googleVideoId,omitempty" json:"googleVideoId,omitempty"`
SamError *SamError `xml:"samError,omitempty" json:"samError,omitempty"`
IsTranscoded bool `xml:"isTranscoded,omitempty" json:"isTranscoded,omitempty"`
IsDropped bool `xml:"isDropped,omitempty" json:"isDropped,omitempty"`
}
type AdResponse struct {
RequestUrl string `xml:"requestUrl,omitempty" json:"requestUrl,omitempty"`
IsVmapRequest bool `xml:"isVmapRequest,omitempty" json:"isVmapRequest,omitempty"`
ResponseBody string `xml:"responseBody,omitempty" json:"responseBody,omitempty"`
RedirectResponses []*AdResponse `xml:"redirectResponses,omitempty" json:"redirectResponses,omitempty"`
SamError *SamError `xml:"samError,omitempty" json:"samError,omitempty"`
AdErrors []*SamError `xml:"adErrors,omitempty" json:"adErrors,omitempty"`
}
type ApiError struct {
FieldPath string `xml:"fieldPath,omitempty" json:"fieldPath,omitempty"`
FieldPathElements []*FieldPathElement `xml:"fieldPathElements,omitempty" json:"fieldPathElements,omitempty"`
Trigger string `xml:"trigger,omitempty" json:"trigger,omitempty"`
ErrorString string `xml:"errorString,omitempty" json:"errorString,omitempty"`
}
type ApiException struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 ApiExceptionFault"`
*ApplicationException
Errors []*ApiError `xml:"errors,omitempty" json:"errors,omitempty"`
}
type ApiVersionError struct {
*ApiError
Reason *ApiVersionError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type ApplicationException struct {
Message string `xml:"message,omitempty" json:"message,omitempty"`
}
type AuthenticationError struct {
*ApiError
Reason *AuthenticationError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type BooleanValue struct {
*_Value
Value bool `xml:"value,omitempty" json:"value,omitempty"`
}
type CollectionSizeError struct {
*ApiError
Reason *CollectionSizeError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type CommonError struct {
*ApiError
Reason *CommonError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type CreativeTranscode struct {
AdServer string `xml:"adServer,omitempty" json:"adServer,omitempty"`
CreativeIdType *CreativeTranscode_IdType `xml:"creativeIdType,omitempty" json:"creativeIdType,omitempty"`
CreativeId string `xml:"creativeId,omitempty" json:"creativeId,omitempty"`
}
type Date struct {
Year int32 `xml:"year,omitempty" json:"year,omitempty"`
Month int32 `xml:"month,omitempty" json:"month,omitempty"`
Day int32 `xml:"day,omitempty" json:"day,omitempty"`
}
type DateTime struct {
Date soap.XSDDate `xml:"date,omitempty" json:"date,omitempty"`
Hour int32 `xml:"hour,omitempty" json:"hour,omitempty"`
Minute int32 `xml:"minute,omitempty" json:"minute,omitempty"`
Second int32 `xml:"second,omitempty" json:"second,omitempty"`
TimeZoneId string `xml:"timeZoneId,omitempty" json:"timeZoneId,omitempty"`
}
type DateTimeValue struct {
*_Value
Value soap.XSDDateTime `xml:"value,omitempty" json:"value,omitempty"`
}
type DateValue struct {
*_Value
Value soap.XSDDate `xml:"value,omitempty" json:"value,omitempty"`
}
type FeatureError struct {
*ApiError
Reason *FeatureError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type FieldPathElement struct {
Field string `xml:"field,omitempty" json:"field,omitempty"`
Index int32 `xml:"index,omitempty" json:"index,omitempty"`
}
type InternalApiError struct {
*ApiError
Reason *InternalApiError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type LinearStreamCreateRequest struct {
*StreamCreateRequest
LiveStreamEventAssetKey string `xml:"liveStreamEventAssetKey,omitempty" json:"liveStreamEventAssetKey,omitempty"`
EventName string `xml:"eventName,omitempty" json:"eventName,omitempty"`
LiveStreamEventId int64 `xml:"liveStreamEventId,omitempty" json:"liveStreamEventId,omitempty"`
EventStartDateTime soap.XSDDateTime `xml:"eventStartDateTime,omitempty" json:"eventStartDateTime,omitempty"`
EventEndDateTime soap.XSDDateTime `xml:"eventEndDateTime,omitempty" json:"eventEndDateTime,omitempty"`
PrefetchEnabled bool `xml:"prefetchEnabled,omitempty" json:"prefetchEnabled,omitempty"`
PodTrimmingEnabled bool `xml:"podTrimmingEnabled,omitempty" json:"podTrimmingEnabled,omitempty"`
}
type NotNullError struct {
*ApiError
Reason *NotNullError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type NumberValue struct {
*_Value
Value string `xml:"value,omitempty" json:"value,omitempty"`
}
type ParseError struct {
*ApiError
Reason *ParseError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type PermissionError struct {
*ApiError
Reason *PermissionError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type PublisherQueryLanguageContextError struct {
*ApiError
Reason *PublisherQueryLanguageContextError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type PublisherQueryLanguageSyntaxError struct {
*ApiError
Reason *PublisherQueryLanguageSyntaxError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type QuotaError struct {
*ApiError
Reason *QuotaError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type RequiredCollectionError struct {
*ApiError
Reason *RequiredCollectionError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type RequiredError struct {
*ApiError
Reason *RequiredError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type SamError struct {
SamErrorType *SamErrorType `xml:"samErrorType,omitempty" json:"samErrorType,omitempty"`
ErrorDetails string `xml:"errorDetails,omitempty" json:"errorDetails,omitempty"`
}
type SamSession struct {
SessionId string `xml:"sessionId,omitempty" json:"sessionId,omitempty"`
IsVodSession bool `xml:"isVodSession,omitempty" json:"isVodSession,omitempty"`
StreamCreateRequest *StreamCreateRequest `xml:"streamCreateRequest,omitempty" json:"streamCreateRequest,omitempty"`
AdBreaks []*AdBreak `xml:"adBreaks,omitempty" json:"adBreaks,omitempty"`
StartDateTime soap.XSDDateTime `xml:"startDateTime,omitempty" json:"startDateTime,omitempty"`
SessionDurationMillis int64 `xml:"sessionDurationMillis,omitempty" json:"sessionDurationMillis,omitempty"`
ContentDurationMillis int64 `xml:"contentDurationMillis,omitempty" json:"contentDurationMillis,omitempty"`
}
type SamSessionError struct {
*ApiError
Reason *SamSessionError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type ServerError struct {
*ApiError
Reason *ServerError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type SetValue struct {
*_Value
Values []*_Value `xml:"values,omitempty" json:"values,omitempty"`
}
type SoapRequestHeader struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 RequestHeader"`
NetworkCode string `xml:"networkCode,omitempty" json:"networkCode,omitempty"`
ApplicationName string `xml:"applicationName,omitempty" json:"applicationName,omitempty"`
}
type SoapResponseHeader struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 ResponseHeader"`
RequestId string `xml:"requestId,omitempty" json:"requestId,omitempty"`
ResponseTime int64 `xml:"responseTime,omitempty" json:"responseTime,omitempty"`
}
type Statement struct {
Query string `xml:"query,omitempty" json:"query,omitempty"`
Values []*String_ValueMapEntry `xml:"values,omitempty" json:"values,omitempty"`
}
type StatementError struct {
*ApiError
Reason *StatementError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type StreamCreateRequest struct {
Url string `xml:"url,omitempty" json:"url,omitempty"`
UserAgent string `xml:"userAgent,omitempty" json:"userAgent,omitempty"`
ReportingType *ReportingType `xml:"reportingType,omitempty" json:"reportingType,omitempty"`
}
type StringFormatError struct {
*ApiError
Reason *StringFormatError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type StringLengthError struct {
*ApiError
Reason *StringLengthError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type String_ValueMapEntry struct {
Key string `xml:"key,omitempty" json:"key,omitempty"`
Value *_Value `xml:"value,omitempty" json:"value,omitempty"`
}
type TextValue struct {
*_Value
Value string `xml:"value,omitempty" json:"value,omitempty"`
}
type TrackingEvent struct {
Pings []*TrackingEvent_Ping `xml:"pings,omitempty" json:"pings,omitempty"`
}
type TrackingEvent_Ping struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 TrackingEvent.Ping"`
Uri string `xml:"uri,omitempty" json:"uri,omitempty"`
HasError bool `xml:"hasError,omitempty" json:"hasError,omitempty"`
}
type _Value struct {
}
type VodStreamCreateRequest struct {
*StreamCreateRequest
ContentSourceId int64 `xml:"contentSourceId,omitempty" json:"contentSourceId,omitempty"`
VideoId string `xml:"videoId,omitempty" json:"videoId,omitempty"`
ContentId int64 `xml:"contentId,omitempty" json:"contentId,omitempty"`
ContentName string `xml:"contentName,omitempty" json:"contentName,omitempty"`
CuePoints []int64 `xml:"cuePoints,omitempty" json:"cuePoints,omitempty"`
}
type StreamActivityMonitorServiceInterface interface {
// Error can be either of the following types:
//
// - ApiException
/*
Returns the logging information for a DAI session. A DAI session can be identified by it's
session id or debug key. The session ID must be registered via the {@code
registerSessionsForMonitoring} method before it can be accessed. There may be some delay before
the session is available.
<p>The number of sessions requested is limited to 25. The following fields are supported for
filtering:
<table>
<tbody>
<tr>
<th>Entity property</th>
<th>PQL filter</th>
</tr>
<tr>
<td>
Session id
</td>
<td>
'sessionId'
</td>
</tr>
<tr>
<td>
Debug key
</td>
<td>
'debugKey"
</td>
</tr>
</tbody>
</table>
*/
GetSamSessionsByStatement(request *GetSamSessionsByStatement) (*GetSamSessionsByStatementResponse, error)
GetSamSessionsByStatementContext(ctx context.Context, request *GetSamSessionsByStatement) (*GetSamSessionsByStatementResponse, error)
// Error can be either of the following types:
//
// - ApiException
/*
Registers the specified list of {@code sessionIds} for monitoring. Once the session IDs have
been registered, all logged information about the sessions will be persisted and can be viewed
via the Ad Manager UI.
<p>A session ID is a unique identifier of a single user watching a live stream event.
*/
RegisterSessionsForMonitoring(request *RegisterSessionsForMonitoring) (*RegisterSessionsForMonitoringResponse, error)
RegisterSessionsForMonitoringContext(ctx context.Context, request *RegisterSessionsForMonitoring) (*RegisterSessionsForMonitoringResponse, error)
}
type streamActivityMonitorServiceInterface struct {
client *soap.Client
}
func NewStreamActivityMonitorServiceInterface(client *soap.Client) StreamActivityMonitorServiceInterface {
return &streamActivityMonitorServiceInterface{
client: client,
}
}
func (service *streamActivityMonitorServiceInterface) GetSamSessionsByStatementContext(ctx context.Context, request *GetSamSessionsByStatement) (*GetSamSessionsByStatementResponse, error) {
response := new(GetSamSessionsByStatementResponse)
err := service.client.CallContext(ctx, "''", request, response)
if err != nil {
return nil, err
}
return response, nil
}
func (service *streamActivityMonitorServiceInterface) GetSamSessionsByStatement(request *GetSamSessionsByStatement) (*GetSamSessionsByStatementResponse, error) {
return service.GetSamSessionsByStatementContext(
context.Background(),
request,
)
}
func (service *streamActivityMonitorServiceInterface) RegisterSessionsForMonitoringContext(ctx context.Context, request *RegisterSessionsForMonitoring) (*RegisterSessionsForMonitoringResponse, error) {
response := new(RegisterSessionsForMonitoringResponse)
err := service.client.CallContext(ctx, "''", request, response)
if err != nil {
return nil, err
}
return response, nil
}
func (service *streamActivityMonitorServiceInterface) RegisterSessionsForMonitoring(request *RegisterSessionsForMonitoring) (*RegisterSessionsForMonitoringResponse, error) {
return service.RegisterSessionsForMonitoringContext(
context.Background(),
request,
)
}