-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity.go
1179 lines (904 loc) · 31 KB
/
activity.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
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by gowsdl DO NOT EDIT.
package activity
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
//
// The activity status.
//
type Activity_Status string
const (
Activity_StatusACTIVE Activity_Status = "ACTIVE"
Activity_StatusINACTIVE Activity_Status = "INACTIVE"
)
//
// The activity type.
//
type Activity_Type string
const (
//
// Tracks conversions for each visit to a webpage. This is a counter type.
//
Activity_TypePAGE_VIEWS Activity_Type = "PAGE_VIEWS"
//
// Tracks conversions for visits to a webpage, but only counts one conversion per user per day,
// even if a user visits the page multiple times. This is a counter type.
//
Activity_TypeDAILY_VISITS Activity_Type = "DAILY_VISITS"
//
// Tracks conversions for visits to a webpage, but only counts one conversion per user per user
// session. Session length is set by the advertiser. This is a counter type.
//
Activity_TypeCUSTOM Activity_Type = "CUSTOM"
//
// Tracks conversions where the user has made a purchase, the monetary value of each purchase,
// plus the number of items that were purchased and the order ID. This is a sales type.
//
Activity_TypeITEMS_PURCHASED Activity_Type = "ITEMS_PURCHASED"
//
// Tracks conversions where the user has made a purchase, the monetary value of each purchase,
// plus the order ID (but not the number of items purchased). This is a sales type.
//
Activity_TypeTRANSACTIONS Activity_Type = "TRANSACTIONS"
//
// Tracks conversions where the user has installed an iOS application. This is a counter type.
//
Activity_TypeIOS_APPLICATION_DOWNLOADS Activity_Type = "IOS_APPLICATION_DOWNLOADS"
//
// Tracks conversions where the user has installed an Android application. This is a counter
// type.
//
Activity_TypeANDROID_APPLICATION_DOWNLOADS Activity_Type = "ANDROID_APPLICATION_DOWNLOADS"
//
// The value returned if the actual value is not exposed by the requested API version.
//
Activity_TypeUNKNOWN Activity_Type = "UNKNOWN"
)
//
// The reasons for the target error.
//
type ActivityError_Reason string
const (
//
// The 'activities' feature is required but not enabled.
//
ActivityError_ReasonACTIVITIES_FEATURE_REQUIRED ActivityError_Reason = "ACTIVITIES_FEATURE_REQUIRED"
//
// Activity group cannot be associated with the company types.
//
ActivityError_ReasonUNSUPPORTED_COMPANY_TYPE ActivityError_Reason = "UNSUPPORTED_COMPANY_TYPE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ActivityError_ReasonUNKNOWN ActivityError_Reason = "UNKNOWN"
)
type ApiVersionError_Reason string
const (
//
// Indicates that the operation is not allowed in the version the request
// was made in.
//
ApiVersionError_ReasonUPDATE_TO_NEWER_VERSION ApiVersionError_Reason = "UPDATE_TO_NEWER_VERSION"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ApiVersionError_ReasonUNKNOWN ApiVersionError_Reason = "UNKNOWN"
)
type AuthenticationError_Reason string
const (
//
// The SOAP message contains a request header with an ambiguous definition of the authentication
// header fields. This means either the {@code authToken} and {@code oAuthToken} fields were
// both null or both were specified. Exactly one value should be specified with each request.
//
AuthenticationError_ReasonAMBIGUOUS_SOAP_REQUEST_HEADER AuthenticationError_Reason = "AMBIGUOUS_SOAP_REQUEST_HEADER"
//
// The login provided is invalid.
//
AuthenticationError_ReasonINVALID_EMAIL AuthenticationError_Reason = "INVALID_EMAIL"
//
// Tried to authenticate with provided information, but failed.
//
AuthenticationError_ReasonAUTHENTICATION_FAILED AuthenticationError_Reason = "AUTHENTICATION_FAILED"
//
// The OAuth provided is invalid.
//
AuthenticationError_ReasonINVALID_OAUTH_SIGNATURE AuthenticationError_Reason = "INVALID_OAUTH_SIGNATURE"
//
// The specified service to use was not recognized.
//
AuthenticationError_ReasonINVALID_SERVICE AuthenticationError_Reason = "INVALID_SERVICE"
//
// The SOAP message is missing a request header with an {@code authToken} and optional {@code
// networkCode}.
//
AuthenticationError_ReasonMISSING_SOAP_REQUEST_HEADER AuthenticationError_Reason = "MISSING_SOAP_REQUEST_HEADER"
//
// The HTTP request is missing a request header with an {@code authToken}
//
AuthenticationError_ReasonMISSING_AUTHENTICATION_HTTP_HEADER AuthenticationError_Reason = "MISSING_AUTHENTICATION_HTTP_HEADER"
//
// The request is missing an {@code authToken}
//
AuthenticationError_ReasonMISSING_AUTHENTICATION AuthenticationError_Reason = "MISSING_AUTHENTICATION"
//
// The network does not have API access enabled.
//
AuthenticationError_ReasonNETWORK_API_ACCESS_DISABLED AuthenticationError_Reason = "NETWORK_API_ACCESS_DISABLED"
//
// The user is not associated with any network.
//
AuthenticationError_ReasonNO_NETWORKS_TO_ACCESS AuthenticationError_Reason = "NO_NETWORKS_TO_ACCESS"
//
// No network for the given {@code networkCode} was found.
//
AuthenticationError_ReasonNETWORK_NOT_FOUND AuthenticationError_Reason = "NETWORK_NOT_FOUND"
//
// The user has access to more than one network, but did not provide a {@code networkCode}.
//
AuthenticationError_ReasonNETWORK_CODE_REQUIRED AuthenticationError_Reason = "NETWORK_CODE_REQUIRED"
//
// An error happened on the server side during connection to authentication service.
//
AuthenticationError_ReasonCONNECTION_ERROR AuthenticationError_Reason = "CONNECTION_ERROR"
//
// The user tried to create a test network using an account that already is associated with a
// network.
//
AuthenticationError_ReasonGOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK AuthenticationError_Reason = "GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK"
//
// The account is blocked and under investigation by the collections team. Please contact Google
// for more information.
//
AuthenticationError_ReasonUNDER_INVESTIGATION AuthenticationError_Reason = "UNDER_INVESTIGATION"
//
// The value returned if the actual value is not exposed by the requested API version.
//
AuthenticationError_ReasonUNKNOWN AuthenticationError_Reason = "UNKNOWN"
)
type CollectionSizeError_Reason string
const (
CollectionSizeError_ReasonTOO_LARGE CollectionSizeError_Reason = "TOO_LARGE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
CollectionSizeError_ReasonUNKNOWN CollectionSizeError_Reason = "UNKNOWN"
)
//
// Describes reasons for common errors
//
type CommonError_Reason string
const (
//
// Indicates that an attempt was made to retrieve an entity that does not
// exist.
//
CommonError_ReasonNOT_FOUND CommonError_Reason = "NOT_FOUND"
//
// Indicates that an attempt was made to create an entity that already
// exists.
//
CommonError_ReasonALREADY_EXISTS CommonError_Reason = "ALREADY_EXISTS"
//
// Indicates that a value is not applicable for given use case.
//
CommonError_ReasonNOT_APPLICABLE CommonError_Reason = "NOT_APPLICABLE"
//
// Indicates that two elements in the collection were identical.
//
CommonError_ReasonDUPLICATE_OBJECT CommonError_Reason = "DUPLICATE_OBJECT"
//
// Indicates that an attempt was made to change an immutable field.
//
CommonError_ReasonCANNOT_UPDATE CommonError_Reason = "CANNOT_UPDATE"
//
// Indicates that the requested operation is not supported.
//
CommonError_ReasonUNSUPPORTED_OPERATION CommonError_Reason = "UNSUPPORTED_OPERATION"
//
// Indicates that another request attempted to update the same data in the same network
// at about the same time. Please wait and try the request again.
//
CommonError_ReasonCONCURRENT_MODIFICATION CommonError_Reason = "CONCURRENT_MODIFICATION"
//
// The value returned if the actual value is not exposed by the requested API version.
//
CommonError_ReasonUNKNOWN CommonError_Reason = "UNKNOWN"
)
type FeatureError_Reason string
const (
//
// A feature is being used that is not enabled on the current network.
//
FeatureError_ReasonMISSING_FEATURE FeatureError_Reason = "MISSING_FEATURE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
FeatureError_ReasonUNKNOWN FeatureError_Reason = "UNKNOWN"
)
//
// The single reason for the internal API error.
//
type InternalApiError_Reason string
const (
//
// API encountered an unexpected internal error.
//
InternalApiError_ReasonUNEXPECTED_INTERNAL_API_ERROR InternalApiError_Reason = "UNEXPECTED_INTERNAL_API_ERROR"
//
// A temporary error occurred during the request. Please retry.
//
InternalApiError_ReasonTRANSIENT_ERROR InternalApiError_Reason = "TRANSIENT_ERROR"
//
// The cause of the error is not known or only defined in newer versions.
//
InternalApiError_ReasonUNKNOWN InternalApiError_Reason = "UNKNOWN"
//
// The API is currently unavailable for a planned downtime.
//
InternalApiError_ReasonDOWNTIME InternalApiError_Reason = "DOWNTIME"
//
// Mutate succeeded but server was unable to build response. Client should not retry mutate.
//
InternalApiError_ReasonERROR_GENERATING_RESPONSE InternalApiError_Reason = "ERROR_GENERATING_RESPONSE"
)
//
// The reasons for the target error.
//
type NotNullError_Reason string
const (
//
// Assuming that a method will not have more than 3 arguments, if it does,
// return NULL
//
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"
//
// The value returned if the actual value is not exposed by the requested API version.
//
NotNullError_ReasonUNKNOWN NotNullError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type ParseError_Reason string
const (
//
// Indicates an error in parsing an attribute.
//
ParseError_ReasonUNPARSABLE ParseError_Reason = "UNPARSABLE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ParseError_ReasonUNKNOWN ParseError_Reason = "UNKNOWN"
)
//
// Describes reasons for permission errors.
//
type PermissionError_Reason string
const (
//
// User does not have the required permission for the request.
//
PermissionError_ReasonPERMISSION_DENIED PermissionError_Reason = "PERMISSION_DENIED"
//
// The value returned if the actual value is not exposed by the requested API version.
//
PermissionError_ReasonUNKNOWN PermissionError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type PublisherQueryLanguageContextError_Reason string
const (
//
// Indicates that there was an error executing the PQL.
//
PublisherQueryLanguageContextError_ReasonUNEXECUTABLE PublisherQueryLanguageContextError_Reason = "UNEXECUTABLE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
PublisherQueryLanguageContextError_ReasonUNKNOWN PublisherQueryLanguageContextError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type PublisherQueryLanguageSyntaxError_Reason string
const (
//
// Indicates that there was a PQL syntax error.
//
PublisherQueryLanguageSyntaxError_ReasonUNPARSABLE PublisherQueryLanguageSyntaxError_Reason = "UNPARSABLE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
PublisherQueryLanguageSyntaxError_ReasonUNKNOWN PublisherQueryLanguageSyntaxError_Reason = "UNKNOWN"
)
type QuotaError_Reason string
const (
//
// The number of requests made per second is too high and has exceeded the
// allowable limit. The recommended approach to handle this error is to wait
// about 5 seconds and then retry the request. Note that this does not
// guarantee the request will succeed. If it fails again, try increasing the
// wait time.
// <p>Another way to mitigate this error is to limit requests to 8 per second for Ad Manager
// 360 accounts, or 2 per second for Ad Manager accounts. Once again
// this does not guarantee that every request will succeed, but may help
// reduce the number of times you receive this error.
//
QuotaError_ReasonEXCEEDED_QUOTA QuotaError_Reason = "EXCEEDED_QUOTA"
//
// The value returned if the actual value is not exposed by the requested API version.
//
QuotaError_ReasonUNKNOWN QuotaError_Reason = "UNKNOWN"
//
// This user has exceeded the allowed number of new report requests per hour
// (this includes both reports run via the UI and reports
// run via {@link ReportService#runReportJob}).
// The recommended approach to handle this error is to wait about 10 minutes
// and then retry the request. Note that this does not guarantee the request
// will succeed. If it fails again, try increasing the wait time.
// <p>Another way to mitigate this error is to limit the number of new report
// requests to 250 per hour per user. Once again, this does not guarantee that
// every request will succeed, but may help reduce the number of times you
// receive this error.
//
QuotaError_ReasonREPORT_JOB_LIMIT QuotaError_Reason = "REPORT_JOB_LIMIT"
//
// This network has exceeded the allowed number of identifiers uploaded within a 24 hour period.
// The recommended approach to handle this error is to wait 30 minutes and then retry the
// request. Note that this does not guarantee the request will succeed. If it fails again, try
// increasing the wait time.
//
QuotaError_ReasonSEGMENT_POPULATION_LIMIT QuotaError_Reason = "SEGMENT_POPULATION_LIMIT"
)
type RangeError_Reason string
const (
RangeError_ReasonTOO_HIGH RangeError_Reason = "TOO_HIGH"
RangeError_ReasonTOO_LOW RangeError_Reason = "TOO_LOW"
//
// The value returned if the actual value is not exposed by the requested API version.
//
RangeError_ReasonUNKNOWN RangeError_Reason = "UNKNOWN"
)
type RequiredCollectionError_Reason string
const (
//
// A required collection is missing.
//
RequiredCollectionError_ReasonREQUIRED RequiredCollectionError_Reason = "REQUIRED"
//
// Collection size is too large.
//
RequiredCollectionError_ReasonTOO_LARGE RequiredCollectionError_Reason = "TOO_LARGE"
//
// Collection size is too small.
//
RequiredCollectionError_ReasonTOO_SMALL RequiredCollectionError_Reason = "TOO_SMALL"
//
// The value returned if the actual value is not exposed by the requested API version.
//
RequiredCollectionError_ReasonUNKNOWN RequiredCollectionError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type RequiredError_Reason string
const (
//
// Missing required field.
//
RequiredError_ReasonREQUIRED RequiredError_Reason = "REQUIRED"
)
//
// Describes reasons for server errors
//
type ServerError_Reason string
const (
//
// Indicates that an unexpected error occured.
//
ServerError_ReasonSERVER_ERROR ServerError_Reason = "SERVER_ERROR"
//
// Indicates that the server is currently experiencing a high load. Please
// wait and try your request again.
//
ServerError_ReasonSERVER_BUSY ServerError_Reason = "SERVER_BUSY"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ServerError_ReasonUNKNOWN ServerError_Reason = "UNKNOWN"
)
type StatementError_Reason string
const (
//
// A bind variable has not been bound to a value.
//
StatementError_ReasonVARIABLE_NOT_BOUND_TO_VALUE StatementError_Reason = "VARIABLE_NOT_BOUND_TO_VALUE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
StatementError_ReasonUNKNOWN StatementError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type StringFormatError_Reason string
const (
StringFormatError_ReasonUNKNOWN StringFormatError_Reason = "UNKNOWN"
//
// The input string value contains disallowed characters.
//
StringFormatError_ReasonILLEGAL_CHARS StringFormatError_Reason = "ILLEGAL_CHARS"
//
// The input string value is invalid for the associated field.
//
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"
//
// The value returned if the actual value is not exposed by the requested API version.
//
StringLengthError_ReasonUNKNOWN StringLengthError_Reason = "UNKNOWN"
)
type CreateActivities struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 createActivities"`
Activities []*Activity `xml:"activities,omitempty" json:"activities,omitempty"`
}
type CreateActivitiesResponse struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 createActivitiesResponse"`
Rval []*Activity `xml:"rval,omitempty" json:"rval,omitempty"`
}
type ApiExceptionFault ApiException
type GetActivitiesByStatement struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 getActivitiesByStatement"`
FilterStatement *Statement `xml:"filterStatement,omitempty" json:"filterStatement,omitempty"`
}
type GetActivitiesByStatementResponse struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 getActivitiesByStatementResponse"`
Rval *ActivityPage `xml:"rval,omitempty" json:"rval,omitempty"`
}
type UpdateActivities struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 updateActivities"`
Activities []*Activity `xml:"activities,omitempty" json:"activities,omitempty"`
}
type UpdateActivitiesResponse struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 updateActivitiesResponse"`
Rval []*Activity `xml:"rval,omitempty" json:"rval,omitempty"`
}
type RequestHeader SoapRequestHeader
type ResponseHeader SoapResponseHeader
type ObjectValue struct {
*_Value
}
type Activity struct {
//
// The unique ID of the {@code Activity}. This value is readonly and is assigned by Google.
//
Id int64 `xml:"id,omitempty" json:"id,omitempty"`
//
// The ID of the {@link ActivityGroup} that this {@link Activity} belongs to.
//
ActivityGroupId int64 `xml:"activityGroupId,omitempty" json:"activityGroupId,omitempty"`
//
// The name of the {@code Activity}. This attribute is required and has a maximum length of 255
// characters.
//
Name string `xml:"name,omitempty" json:"name,omitempty"`
//
// The URL of the webpage where the tags from this activity will be placed. This attribute is
// optional.
//
ExpectedURL string `xml:"expectedURL,omitempty" json:"expectedURL,omitempty"`
//
// The status of this activity. This attribute is readonly.
//
Status *Activity_Status `xml:"status,omitempty" json:"status,omitempty"`
//
// The activity type. This attribute is optional and defaults to {@link Activity.Type#PAGE_VIEWS}
//
Type_ *Activity_Type `xml:"type,omitempty" json:"type,omitempty"`
}
type ActivityError struct {
*ApiError
//
// The error reason represented by an enum.
//
Reason *ActivityError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type ActivityPage struct {
//
// The size of the total result set to which this page belongs.
//
TotalResultSetSize int32 `xml:"totalResultSetSize,omitempty" json:"totalResultSetSize,omitempty"`
//
// The absolute index in the total result set on which this page begins.
//
StartIndex int32 `xml:"startIndex,omitempty" json:"startIndex,omitempty"`
//
// The collection of activities contained within this page.
//
Results []*Activity `xml:"results,omitempty" json:"results,omitempty"`
}
type ApiError struct {
//
// The OGNL field path to identify cause of error.
//
FieldPath string `xml:"fieldPath,omitempty" json:"fieldPath,omitempty"`
//
// A parsed copy of the field path. For example, the field path "operations[1].operand"
// corresponds to this list: {FieldPathElement(field = "operations", index = 1),
// FieldPathElement(field = "operand", index = null)}.
//
FieldPathElements []*FieldPathElement `xml:"fieldPathElements,omitempty" json:"fieldPathElements,omitempty"`
//
// The data that caused the error.
//
Trigger string `xml:"trigger,omitempty" json:"trigger,omitempty"`
//
// A simple string representation of the error and reason.
//
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
//
// List of errors.
//
Errors []*ApiError `xml:"errors,omitempty" json:"errors,omitempty"`
}
type ApiVersionError struct {
*ApiError
Reason *ApiVersionError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type ApplicationException struct {
//
// Error message.
//
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
//
// The boolean 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 Date struct {
//
// Year (e.g., 2009)
//
Year int32 `xml:"year,omitempty" json:"year,omitempty"`
//
// Month (1..12)
//
Month int32 `xml:"month,omitempty" json:"month,omitempty"`
//
// Day (1..31)
//
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
//
// The {@code DateTime} value.
//
Value soap.XSDDateTime `xml:"value,omitempty" json:"value,omitempty"`
}
type DateValue struct {
*_Value
//
// The {@code Date} 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 {
//
// The name of a field in lower camelcase. (e.g. "biddingStrategy")
//
Field string `xml:"field,omitempty" json:"field,omitempty"`
//
// For list fields, this is a 0-indexed position in the list. Null for non-list fields.
//
Index int32 `xml:"index,omitempty" json:"index,omitempty"`
}
type InternalApiError struct {
*ApiError
//
// The error reason represented by an enum.
//
Reason *InternalApiError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type NotNullError struct {
*ApiError
//
// The error reason represented by an enum.
//
Reason *NotNullError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type NumberValue struct {
*_Value
//
// The numeric value represented as a string.
//
Value string `xml:"value,omitempty" json:"value,omitempty"`
}
type ParseError struct {
*ApiError
//
// The error reason represented by an enum.
//
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
//
// The error reason represented by an enum.
//
Reason *PublisherQueryLanguageContextError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type PublisherQueryLanguageSyntaxError struct {
*ApiError
//
// The error reason represented by an enum.
//
Reason *PublisherQueryLanguageSyntaxError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type QuotaError struct {
*ApiError
Reason *QuotaError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type RangeError struct {
*ApiError
Reason *RangeError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type RequiredCollectionError struct {
*ApiError
Reason *RequiredCollectionError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type RequiredError struct {
*ApiError
//
// The error reason represented by an enum.
//
Reason *RequiredError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type ServerError struct {
*ApiError
Reason *ServerError_Reason `xml:"reason,omitempty" json:"reason,omitempty"`
}
type SetValue struct {
*_Value
//
// The values. They must all be the same type of {@code Value} and not contain duplicates.
//
Values []*_Value `xml:"values,omitempty" json:"values,omitempty"`
}
type SoapRequestHeader struct {
XMLName xml.Name `xml:"https://www.google.com/apis/ads/publisher/v202311 RequestHeader"`
//
// The network code to use in the context of a request.
//
NetworkCode string `xml:"networkCode,omitempty" json:"networkCode,omitempty"`
//
// The name of client library application.
//
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 {
//
// Holds the query in PQL syntax. The syntax is:<br>
// <code>[WHERE <condition> {[AND | OR] <condition> ...}]</code><br>
// <code>[ORDER BY <property> [ASC | DESC]]</code><br>
// <code>[LIMIT {[<offset>,] <count>} | {<count> OFFSET <offset>}]</code><br>
// <p>
// <code><condition></code><br>
//
// <code>:= <property> {< | <= | > | >= | = | != } <value></code><br>
// <code><condition></code><br>
//
// <code>:= <property> {< | <= | > | >= | = | != } <bind variable></code><br>
// <code><condition> := <property> IN <list></code><br>
// <code><condition> := <property> IS NULL</code><br>
// <code><condition> := <property> LIKE <wildcard%match></code><br>
// <code><bind variable> := :<name></code><br>
// </p>
//
Query string `xml:"query,omitempty" json:"query,omitempty"`