-
Notifications
You must be signed in to change notification settings - Fork 0
/
nativestyle.go
3102 lines (2425 loc) · 93.2 KB
/
nativestyle.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 nativestyle
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 (
//
// 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"
)
//
// The reasons for the target error.
//
type CreativeTemplateError_Reason string
const (
//
// The XML of the creative template definition is malformed and cannot be parsed.
//
CreativeTemplateError_ReasonCANNOT_PARSE_CREATIVE_TEMPLATE CreativeTemplateError_Reason = "CANNOT_PARSE_CREATIVE_TEMPLATE"
//
// A creative template has multiple variables with the same uniqueName.
//
CreativeTemplateError_ReasonVARIABLE_DUPLICATE_UNIQUE_NAME CreativeTemplateError_Reason = "VARIABLE_DUPLICATE_UNIQUE_NAME"
//
// The creative template contains a variable with invalid characters. Valid
// characters are letters, numbers, spaces, forward slashes, dashes,
// and underscores.
//
CreativeTemplateError_ReasonVARIABLE_INVALID_UNIQUE_NAME CreativeTemplateError_Reason = "VARIABLE_INVALID_UNIQUE_NAME"
//
// Multiple choices for a CreativeTemplateListStringVariable have the same value.
//
CreativeTemplateError_ReasonLIST_CHOICE_DUPLICATE_VALUE CreativeTemplateError_Reason = "LIST_CHOICE_DUPLICATE_VALUE"
//
// The choices for a CreativeTemplateListStringVariable do not contain the
// default value.
//
CreativeTemplateError_ReasonLIST_CHOICE_NEEDS_DEFAULT CreativeTemplateError_Reason = "LIST_CHOICE_NEEDS_DEFAULT"
//
// There are no choices specified for the list variable.
//
CreativeTemplateError_ReasonLIST_CHOICES_EMPTY CreativeTemplateError_Reason = "LIST_CHOICES_EMPTY"
//
// No target platform is assigned to a creative template.
//
CreativeTemplateError_ReasonNO_TARGET_PLATFORMS CreativeTemplateError_Reason = "NO_TARGET_PLATFORMS"
//
// More than one target platform is assigned to a single creative template.
//
CreativeTemplateError_ReasonMULTIPLE_TARGET_PLATFORMS CreativeTemplateError_Reason = "MULTIPLE_TARGET_PLATFORMS"
//
// The formatter contains a placeholder which is not defined as a variable.
//
CreativeTemplateError_ReasonUNRECOGNIZED_PLACEHOLDER CreativeTemplateError_Reason = "UNRECOGNIZED_PLACEHOLDER"
//
// There are variables defined which are not being used in the formatter.
//
CreativeTemplateError_ReasonPLACEHOLDERS_NOT_IN_FORMATTER CreativeTemplateError_Reason = "PLACEHOLDERS_NOT_IN_FORMATTER"
//
// The creative template is interstitial, but the formatter doesn't contain
// an interstitial macro.
//
CreativeTemplateError_ReasonMISSING_INTERSTITIAL_MACRO CreativeTemplateError_Reason = "MISSING_INTERSTITIAL_MACRO"
//
// The value returned if the actual value is not exposed by the requested API version.
//
CreativeTemplateError_ReasonUNKNOWN CreativeTemplateError_Reason = "UNKNOWN"
)
//
// Specifies the available comparison operators.
//
type CustomCriteria_ComparisonOperator string
const (
CustomCriteria_ComparisonOperatorIS CustomCriteria_ComparisonOperator = "IS"
CustomCriteria_ComparisonOperatorIS_NOT CustomCriteria_ComparisonOperator = "IS_NOT"
)
//
// Specifies the available logical operators.
//
type CustomCriteriaSet_LogicalOperator string
const (
CustomCriteriaSet_LogicalOperatorAND CustomCriteriaSet_LogicalOperator = "AND"
CustomCriteriaSet_LogicalOperatorOR CustomCriteriaSet_LogicalOperator = "OR"
)
//
// Specifies the available comparison operators.
//
type CmsMetadataCriteria_ComparisonOperator string
const (
CmsMetadataCriteria_ComparisonOperatorEQUALS CmsMetadataCriteria_ComparisonOperator = "EQUALS"
CmsMetadataCriteria_ComparisonOperatorNOT_EQUALS CmsMetadataCriteria_ComparisonOperator = "NOT_EQUALS"
)
//
// The reasons for the target error.
//
type CustomTargetingError_Reason string
const (
//
// Requested {@link CustomTargetingKey} is not found.
//
CustomTargetingError_ReasonKEY_NOT_FOUND CustomTargetingError_Reason = "KEY_NOT_FOUND"
//
// Number of {@link CustomTargetingKey} objects created exceeds the limit
// allowed for the network.
//
CustomTargetingError_ReasonKEY_COUNT_TOO_LARGE CustomTargetingError_Reason = "KEY_COUNT_TOO_LARGE"
//
// {@link CustomTargetingKey} with the same {@link CustomTargetingKey#name}
// already exists.
//
CustomTargetingError_ReasonKEY_NAME_DUPLICATE CustomTargetingError_Reason = "KEY_NAME_DUPLICATE"
//
// {@link CustomTargetingKey#name} is empty.
//
CustomTargetingError_ReasonKEY_NAME_EMPTY CustomTargetingError_Reason = "KEY_NAME_EMPTY"
//
// {@link CustomTargetingKey#name} is too long.
//
CustomTargetingError_ReasonKEY_NAME_INVALID_LENGTH CustomTargetingError_Reason = "KEY_NAME_INVALID_LENGTH"
//
// {@link CustomTargetingKey#name} contains unsupported or reserved
// characters.
//
CustomTargetingError_ReasonKEY_NAME_INVALID_CHARS CustomTargetingError_Reason = "KEY_NAME_INVALID_CHARS"
//
// {@link CustomTargetingKey#name} matches one of the reserved custom
// targeting key names.
//
CustomTargetingError_ReasonKEY_NAME_RESERVED CustomTargetingError_Reason = "KEY_NAME_RESERVED"
//
// {@link CustomTargetingKey#displayName} is too long.
//
CustomTargetingError_ReasonKEY_DISPLAY_NAME_INVALID_LENGTH CustomTargetingError_Reason = "KEY_DISPLAY_NAME_INVALID_LENGTH"
//
// Key is not active.
//
CustomTargetingError_ReasonKEY_STATUS_NOT_ACTIVE CustomTargetingError_Reason = "KEY_STATUS_NOT_ACTIVE"
//
// Requested {@link CustomTargetingValue} is not found.
//
CustomTargetingError_ReasonVALUE_NOT_FOUND CustomTargetingError_Reason = "VALUE_NOT_FOUND"
//
// The {@code WHERE} clause in the {@link Statement#query} must always
// contain {@link CustomTargetingValue#customTargetingKeyId} as one of its
// columns in a way that it is AND'ed with the rest of the query.
//
CustomTargetingError_ReasonGET_VALUES_BY_STATEMENT_MUST_CONTAIN_KEY_ID CustomTargetingError_Reason = "GET_VALUES_BY_STATEMENT_MUST_CONTAIN_KEY_ID"
//
// The number of {@link CustomTargetingValue} objects associated with a
// {@link CustomTargetingKey} exceeds the network limit. This is only
// applicable for keys of type {@code CustomTargetingKey.Type#PREDEFINED}.
//
CustomTargetingError_ReasonVALUE_COUNT_FOR_KEY_TOO_LARGE CustomTargetingError_Reason = "VALUE_COUNT_FOR_KEY_TOO_LARGE"
//
// {@link CustomTargetingValue} with the same
// {@link CustomTargetingValue#name} already exists.
//
CustomTargetingError_ReasonVALUE_NAME_DUPLICATE CustomTargetingError_Reason = "VALUE_NAME_DUPLICATE"
//
// {@link CustomTargetingValue#name} is empty.
//
CustomTargetingError_ReasonVALUE_NAME_EMPTY CustomTargetingError_Reason = "VALUE_NAME_EMPTY"
//
// {@link CustomTargetingValue#name} is too long.
//
CustomTargetingError_ReasonVALUE_NAME_INVALID_LENGTH CustomTargetingError_Reason = "VALUE_NAME_INVALID_LENGTH"
//
// {@link CustomTargetingValue#name} contains unsupported or reserved
// characters.
//
CustomTargetingError_ReasonVALUE_NAME_INVALID_CHARS CustomTargetingError_Reason = "VALUE_NAME_INVALID_CHARS"
//
// {@link CustomTargetingValue#displayName} is too long.
//
CustomTargetingError_ReasonVALUE_DISPLAY_NAME_INVALID_LENGTH CustomTargetingError_Reason = "VALUE_DISPLAY_NAME_INVALID_LENGTH"
//
// Only Ad Manager 360 networks can have {@link CustomTargetingValue#matchType}
// other than {@link CustomTargetingValue.MatchType#EXACT}.
//
CustomTargetingError_ReasonVALUE_MATCH_TYPE_NOT_ALLOWED CustomTargetingError_Reason = "VALUE_MATCH_TYPE_NOT_ALLOWED"
//
// You can only create {@link CustomTargetingValue} objects with match type
// {@link CustomTargetingValue.MatchType#EXACT} when associating
// with {@link CustomTargetingKey} objects of type
// {@link CustomTargetingKey.Type#PREDEFINED}
//
CustomTargetingError_ReasonVALUE_MATCH_TYPE_NOT_EXACT_FOR_PREDEFINED_KEY CustomTargetingError_Reason = "VALUE_MATCH_TYPE_NOT_EXACT_FOR_PREDEFINED_KEY"
//
// {@link CustomTargetingValue} object cannot have match type of
// {@link CustomTargetingValue.MatchType#SUFFIX} when adding a
// {@link CustomTargetingValue} to a line item.
//
CustomTargetingError_ReasonSUFFIX_MATCH_TYPE_NOT_ALLOWED CustomTargetingError_Reason = "SUFFIX_MATCH_TYPE_NOT_ALLOWED"
//
// {@link CustomTargetingValue} object cannot have match type of
// {@link CustomTargetingValue.MatchType#CONTAINS} when adding a
// {@link CustomTargetingValue} to targeting expression of a line item.
//
CustomTargetingError_ReasonCONTAINS_MATCH_TYPE_NOT_ALLOWED CustomTargetingError_Reason = "CONTAINS_MATCH_TYPE_NOT_ALLOWED"
//
// Value is not active.
//
CustomTargetingError_ReasonVALUE_STATUS_NOT_ACTIVE CustomTargetingError_Reason = "VALUE_STATUS_NOT_ACTIVE"
//
// The {@link CustomTargetingKey} does not have any
// {@link CustomTargetingValue} associated with it.
//
CustomTargetingError_ReasonKEY_WITH_MISSING_VALUES CustomTargetingError_Reason = "KEY_WITH_MISSING_VALUES"
//
// The {@link CustomTargetingKey} has a {@link CustomTargetingValue} specified for which the
// value is not a valid child.
//
CustomTargetingError_ReasonINVALID_VALUE_FOR_KEY CustomTargetingError_Reason = "INVALID_VALUE_FOR_KEY"
//
// {@link CustomCriteriaSet.LogicalOperator#OR} operation cannot be applied
// to values with different keys.
//
CustomTargetingError_ReasonCANNOT_OR_DIFFERENT_KEYS CustomTargetingError_Reason = "CANNOT_OR_DIFFERENT_KEYS"
//
// Targeting expression is invalid. This can happen if the sequence of
// operators is wrong, or a node contains invalid number of children.
//
CustomTargetingError_ReasonINVALID_TARGETING_EXPRESSION CustomTargetingError_Reason = "INVALID_TARGETING_EXPRESSION"
//
// The key has been deleted. {@link CustomCriteria} cannot have deleted
// keys.
//
CustomTargetingError_ReasonDELETED_KEY_CANNOT_BE_USED_FOR_TARGETING CustomTargetingError_Reason = "DELETED_KEY_CANNOT_BE_USED_FOR_TARGETING"
//
// The value has been deleted. {@link CustomCriteria} cannot have deleted
// values.
//
CustomTargetingError_ReasonDELETED_VALUE_CANNOT_BE_USED_FOR_TARGETING CustomTargetingError_Reason = "DELETED_VALUE_CANNOT_BE_USED_FOR_TARGETING"
//
// The key is set as the video browse-by key, which cannot be used for
// custom targeting.
//
CustomTargetingError_ReasonVIDEO_BROWSE_BY_KEY_CANNOT_BE_USED_FOR_CUSTOM_TARGETING CustomTargetingError_Reason = "VIDEO_BROWSE_BY_KEY_CANNOT_BE_USED_FOR_CUSTOM_TARGETING"
//
// Only active custom-criteria keys are supported in content metadata mapping.
//
CustomTargetingError_ReasonCANNOT_DELETE_CUSTOM_KEY_USED_IN_CONTENT_METADATA_MAPPING CustomTargetingError_Reason = "CANNOT_DELETE_CUSTOM_KEY_USED_IN_CONTENT_METADATA_MAPPING"
//
// Only active custom-criteria values are supported in content metadata mapping.
//
CustomTargetingError_ReasonCANNOT_DELETE_CUSTOM_VALUE_USED_IN_CONTENT_METADATA_MAPPING CustomTargetingError_Reason = "CANNOT_DELETE_CUSTOM_VALUE_USED_IN_CONTENT_METADATA_MAPPING"
//
// Cannot delete a custom criteria key that is targeted by an active partner assignment.
//
CustomTargetingError_ReasonCANNOT_DELETE_CUSTOM_KEY_USED_IN_PARTNER_ASSIGNMENT_TARGETING CustomTargetingError_Reason = "CANNOT_DELETE_CUSTOM_KEY_USED_IN_PARTNER_ASSIGNMENT_TARGETING"
//
// Cannot delete a custom criteria value that is targeted by an active partner assignment.
//
CustomTargetingError_ReasonCANNOT_DELETE_CUSTOM_VALUE_USED_IN_PARTNER_ASSIGNMENT_TARGETING CustomTargetingError_Reason = "CANNOT_DELETE_CUSTOM_VALUE_USED_IN_PARTNER_ASSIGNMENT_TARGETING"
//
// {@link AudienceSegment} object cannot be targeted.
//
CustomTargetingError_ReasonCANNOT_TARGET_AUDIENCE_SEGMENT CustomTargetingError_Reason = "CANNOT_TARGET_AUDIENCE_SEGMENT"
//
// Third party {@link AudienceSegment} cannot be targeted.
//
CustomTargetingError_ReasonCANNOT_TARGET_THIRD_PARTY_AUDIENCE_SEGMENT CustomTargetingError_Reason = "CANNOT_TARGET_THIRD_PARTY_AUDIENCE_SEGMENT"
//
// Inactive {@link AudienceSegment} object cannot be targeted.
//
CustomTargetingError_ReasonCANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT CustomTargetingError_Reason = "CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT"
//
// Targeted {@link AudienceSegment} object is not valid.
//
CustomTargetingError_ReasonINVALID_AUDIENCE_SEGMENTS CustomTargetingError_Reason = "INVALID_AUDIENCE_SEGMENTS"
//
// Mapped metadata key-values are deprecated and cannot be targeted.
//
CustomTargetingError_ReasonCANNOT_TARGET_MAPPED_METADATA CustomTargetingError_Reason = "CANNOT_TARGET_MAPPED_METADATA"
//
// Targeted {@link AudienceSegment} objects have not been approved.
//
CustomTargetingError_ReasonONLY_APPROVED_AUDIENCE_SEGMENTS_CAN_BE_TARGETED CustomTargetingError_Reason = "ONLY_APPROVED_AUDIENCE_SEGMENTS_CAN_BE_TARGETED"
//
// The value returned if the actual value is not exposed by the requested API version.
//
CustomTargetingError_ReasonUNKNOWN CustomTargetingError_Reason = "UNKNOWN"
)
//
// Specifies the available comparison operators.
//
type AudienceSegmentCriteria_ComparisonOperator string
const (
AudienceSegmentCriteria_ComparisonOperatorIS AudienceSegmentCriteria_ComparisonOperator = "IS"
AudienceSegmentCriteria_ComparisonOperatorIS_NOT AudienceSegmentCriteria_ComparisonOperator = "IS_NOT"
)
//
// Days of the week.
//
type DayOfWeek string
const (
//
// The day of week named Monday.
//
DayOfWeekMONDAY DayOfWeek = "MONDAY"
//
// The day of week named Tuesday.
//
DayOfWeekTUESDAY DayOfWeek = "TUESDAY"
//
// The day of week named Wednesday.
//
DayOfWeekWEDNESDAY DayOfWeek = "WEDNESDAY"
//
// The day of week named Thursday.
//
DayOfWeekTHURSDAY DayOfWeek = "THURSDAY"
//
// The day of week named Friday.
//
DayOfWeekFRIDAY DayOfWeek = "FRIDAY"
//
// The day of week named Saturday.
//
DayOfWeekSATURDAY DayOfWeek = "SATURDAY"
//
// The day of week named Sunday.
//
DayOfWeekSUNDAY DayOfWeek = "SUNDAY"
)
//
// Represents the time zone to be used for {@link DayPartTargeting}.
//
type DeliveryTimeZone string
const (
//
// Use the time zone of the publisher.
//
DeliveryTimeZonePUBLISHER DeliveryTimeZone = "PUBLISHER"
//
// Use the time zone of the browser.
//
DeliveryTimeZoneBROWSER DeliveryTimeZone = "BROWSER"
)
//
// The reasons for the entity children limit reached error.
//
type EntityChildrenLimitReachedError_Reason string
const (
//
// The number of line items on the order exceeds the max number of line items allowed per order
// in the network.
//
EntityChildrenLimitReachedError_ReasonLINE_ITEM_LIMIT_FOR_ORDER_REACHED EntityChildrenLimitReachedError_Reason = "LINE_ITEM_LIMIT_FOR_ORDER_REACHED"
//
// The number of creatives associated with the line item exceeds the max number of creatives
// allowed to be associated with a line item in the network.
//
EntityChildrenLimitReachedError_ReasonCREATIVE_ASSOCIATION_LIMIT_FOR_LINE_ITEM_REACHED EntityChildrenLimitReachedError_Reason = "CREATIVE_ASSOCIATION_LIMIT_FOR_LINE_ITEM_REACHED"
//
// The number of ad units on the placement exceeds the max number of ad units
// allowed per placement in the network.
//
EntityChildrenLimitReachedError_ReasonAD_UNIT_LIMIT_FOR_PLACEMENT_REACHED EntityChildrenLimitReachedError_Reason = "AD_UNIT_LIMIT_FOR_PLACEMENT_REACHED"
//
// The number of targeting expressions on the line item exceeds the max number of targeting
// expressions allowed per line item in the network.
//
EntityChildrenLimitReachedError_ReasonTARGETING_EXPRESSION_LIMIT_FOR_LINE_ITEM_REACHED EntityChildrenLimitReachedError_Reason = "TARGETING_EXPRESSION_LIMIT_FOR_LINE_ITEM_REACHED"
//
// The size of a single targeting expression tree exceeds the max size allowed by the network.
//
EntityChildrenLimitReachedError_ReasonTARGETING_EXPRESSION_SIZE_LIMIT_REACHED EntityChildrenLimitReachedError_Reason = "TARGETING_EXPRESSION_SIZE_LIMIT_REACHED"
//
// The number of custom targeting values for the free-form or predefined custom targeting key
// exceeds the max number allowed.
//
EntityChildrenLimitReachedError_ReasonCUSTOM_TARGETING_VALUES_FOR_KEY_LIMIT_REACHED EntityChildrenLimitReachedError_Reason = "CUSTOM_TARGETING_VALUES_FOR_KEY_LIMIT_REACHED"
//
// The total number of targeting expressions on the creatives for the line item exceeds
// the max number allowed per line item in the network.
//
EntityChildrenLimitReachedError_ReasonTARGETING_EXPRESSION_LIMIT_FOR_CREATIVES_ON_LINE_ITEM_REACHED EntityChildrenLimitReachedError_Reason = "TARGETING_EXPRESSION_LIMIT_FOR_CREATIVES_ON_LINE_ITEM_REACHED"
//
// The number of attachments added to the proposal exceeds the max number
// allowed per proposal in the network.
//
EntityChildrenLimitReachedError_ReasonATTACHMENT_LIMIT_FOR_PROPOSAL_REACHED EntityChildrenLimitReachedError_Reason = "ATTACHMENT_LIMIT_FOR_PROPOSAL_REACHED"
//
// The number of proposal line items on the proposal exceeds the max number
// allowed per proposal in the network.
//
EntityChildrenLimitReachedError_ReasonPROPOSAL_LINE_ITEM_LIMIT_FOR_PROPOSAL_REACHED EntityChildrenLimitReachedError_Reason = "PROPOSAL_LINE_ITEM_LIMIT_FOR_PROPOSAL_REACHED"
//
// The number of product package items on the product package exceeds the max number
// allowed per product package in the network.
//
EntityChildrenLimitReachedError_ReasonPRODUCT_LIMIT_FOR_PRODUCT_PACKAGE_REACHED EntityChildrenLimitReachedError_Reason = "PRODUCT_LIMIT_FOR_PRODUCT_PACKAGE_REACHED"
//
// The number of product template and product base rates on the rate card (including excluded
// product base rates) exceeds the max number allowed per rate card in the network.
//
EntityChildrenLimitReachedError_ReasonPRODUCT_TEMPLATE_AND_PRODUCT_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED EntityChildrenLimitReachedError_Reason = "PRODUCT_TEMPLATE_AND_PRODUCT_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED"
//
// The number of product package item base rates on the rate card exceeds the max number
// allowed per rate card in the network.
//
EntityChildrenLimitReachedError_ReasonPRODUCT_PACKAGE_ITEM_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED EntityChildrenLimitReachedError_Reason = "PRODUCT_PACKAGE_ITEM_BASE_RATE_LIMIT_FOR_RATE_CARD_REACHED"
//
// The number of premiums of the rate card exceeds the max number allowed per rate card
// in the network.
//
EntityChildrenLimitReachedError_ReasonPREMIUM_LIMIT_FOR_RATE_CARD_REACHED EntityChildrenLimitReachedError_Reason = "PREMIUM_LIMIT_FOR_RATE_CARD_REACHED"
//
// The number of ad units on {@link AdExclusionRule#inventoryTargeting} exceeds the max number
// of ad units allowed per ad exclusion rule inventory targeting in the network.
//
EntityChildrenLimitReachedError_ReasonAD_UNIT_LIMIT_FOR_AD_EXCLUSION_RULE_TARGETING_REACHED EntityChildrenLimitReachedError_Reason = "AD_UNIT_LIMIT_FOR_AD_EXCLUSION_RULE_TARGETING_REACHED"
//
// The number of native styles under the native creative template exceeds the
// max number of native styles allowed per native creative template in the
// network.
//
EntityChildrenLimitReachedError_ReasonNATIVE_STYLE_LIMIT_FOR_NATIVE_AD_FORMAT_REACHED EntityChildrenLimitReachedError_Reason = "NATIVE_STYLE_LIMIT_FOR_NATIVE_AD_FORMAT_REACHED"
//
// The number of targeting expressions on the native style exceeds the max number of targeting
// expressions allowed per native style in the network.
//
EntityChildrenLimitReachedError_ReasonTARGETING_EXPRESSION_LIMIT_FOR_PRESENTATION_ASSIGNMENT_REACHED EntityChildrenLimitReachedError_Reason = "TARGETING_EXPRESSION_LIMIT_FOR_PRESENTATION_ASSIGNMENT_REACHED"
//
// The value returned if the actual value is not exposed by the requested API version.
//
EntityChildrenLimitReachedError_ReasonUNKNOWN EntityChildrenLimitReachedError_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 reasons for the target error.
//
type ImageError_Reason string
const (
//
// The file's format is invalid.
//
ImageError_ReasonINVALID_IMAGE ImageError_Reason = "INVALID_IMAGE"
//
// {@link Size#width} and {@link Size#height} cannot be negative.
//
ImageError_ReasonINVALID_SIZE ImageError_Reason = "INVALID_SIZE"
//
// The actual image size does not match the expected image size.
//
ImageError_ReasonUNEXPECTED_SIZE ImageError_Reason = "UNEXPECTED_SIZE"
//
// The size of the asset is larger than that of the overlay creative.
//
ImageError_ReasonOVERLAY_SIZE_TOO_LARGE ImageError_Reason = "OVERLAY_SIZE_TOO_LARGE"
//
// Animated images are not allowed.
//
ImageError_ReasonANIMATED_NOT_ALLOWED ImageError_Reason = "ANIMATED_NOT_ALLOWED"
//
// Animation length exceeded the allowed policy limit.
//
ImageError_ReasonANIMATION_TOO_LONG ImageError_Reason = "ANIMATION_TOO_LONG"
//
// Images in CMYK color formats are not allowed.
//
ImageError_ReasonCMYK_JPEG_NOT_ALLOWED ImageError_Reason = "CMYK_JPEG_NOT_ALLOWED"
//
// Flash files are not allowed.
//
ImageError_ReasonFLASH_NOT_ALLOWED ImageError_Reason = "FLASH_NOT_ALLOWED"
//
// If {@link FlashCreative#clickTagRequired} is {@code true}, then the flash
// file is required to have a click tag embedded in it.
//
ImageError_ReasonFLASH_WITHOUT_CLICKTAG ImageError_Reason = "FLASH_WITHOUT_CLICKTAG"
//
// Animated visual effect is not allowed.
//
ImageError_ReasonANIMATED_VISUAL_EFFECT ImageError_Reason = "ANIMATED_VISUAL_EFFECT"
//
// An error was encountered in the flash file.
//
ImageError_ReasonFLASH_ERROR ImageError_Reason = "FLASH_ERROR"
//
// Incorrect image layout.
//
ImageError_ReasonLAYOUT_PROBLEM ImageError_Reason = "LAYOUT_PROBLEM"
//
// Flash files with network objects are not allowed.
//
ImageError_ReasonFLASH_HAS_NETWORK_OBJECTS ImageError_Reason = "FLASH_HAS_NETWORK_OBJECTS"
//
// Flash files with network methods are not allowed.
//
ImageError_ReasonFLASH_HAS_NETWORK_METHODS ImageError_Reason = "FLASH_HAS_NETWORK_METHODS"
//
// Flash files with hard-coded click thru URLs are not allowed.
//
ImageError_ReasonFLASH_HAS_URL ImageError_Reason = "FLASH_HAS_URL"
//
// Flash files with mouse tracking are not allowed.
//
ImageError_ReasonFLASH_HAS_MOUSE_TRACKING ImageError_Reason = "FLASH_HAS_MOUSE_TRACKING"
//
// Flash files that generate or use random numbers are not allowed.
//
ImageError_ReasonFLASH_HAS_RANDOM_NUM ImageError_Reason = "FLASH_HAS_RANDOM_NUM"
//
// Flash files with self targets are not allowed.
//
ImageError_ReasonFLASH_SELF_TARGETS ImageError_Reason = "FLASH_SELF_TARGETS"
//
// Flash file contains a bad geturl target.
//
ImageError_ReasonFLASH_BAD_GETURL_TARGET ImageError_Reason = "FLASH_BAD_GETURL_TARGET"
//
// Flash or ActionScript version in the submitted file is not supported.
//
ImageError_ReasonFLASH_VERSION_NOT_SUPPORTED ImageError_Reason = "FLASH_VERSION_NOT_SUPPORTED"
//
// The uploaded file is too large.
//
ImageError_ReasonFILE_TOO_LARGE ImageError_Reason = "FILE_TOO_LARGE"
//
// A system error occurred, please try again.
//
ImageError_ReasonSYSTEM_ERROR_IRS ImageError_Reason = "SYSTEM_ERROR_IRS"
//
// A system error occurred, please try again.
//
ImageError_ReasonSYSTEM_ERROR_SCS ImageError_Reason = "SYSTEM_ERROR_SCS"
//
// The image density for a primary asset was not one of the expected image densities.
//
ImageError_ReasonUNEXPECTED_PRIMARY_ASSET_DENSITY ImageError_Reason = "UNEXPECTED_PRIMARY_ASSET_DENSITY"
//
// Two or more assets have the same image density.
//
ImageError_ReasonDUPLICATE_ASSET_DENSITY ImageError_Reason = "DUPLICATE_ASSET_DENSITY"
//
// The creative does not contain a primary asset. (For high-density creatives, the primary
// asset must be a standard image file with 1x density.)
//
ImageError_ReasonMISSING_DEFAULT_ASSET ImageError_Reason = "MISSING_DEFAULT_ASSET"
//
// preverified_mime_type is not in the client spec's allowlist.
//
ImageError_ReasonPREVERIFIED_MIMETYPE_NOT_ALLOWED ImageError_Reason = "PREVERIFIED_MIMETYPE_NOT_ALLOWED"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ImageError_ReasonUNKNOWN ImageError_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"
)
type InvalidUrlError_Reason string
const (
//
// The URL contains invalid characters.
//
InvalidUrlError_ReasonILLEGAL_CHARACTERS InvalidUrlError_Reason = "ILLEGAL_CHARACTERS"
//
// The format of the URL is not allowed. This could occur for a number of
// reasons. For example, if an invalid scheme is specified (like "ftp://")
// or if a port is specified when not required, or if a query was specified
// when not required.
//
InvalidUrlError_ReasonINVALID_FORMAT InvalidUrlError_Reason = "INVALID_FORMAT"
//
// URL contains insecure scheme.
//
InvalidUrlError_ReasonINSECURE_SCHEME InvalidUrlError_Reason = "INSECURE_SCHEME"
//
// The URL does not contain a scheme.
//
InvalidUrlError_ReasonNO_SCHEME InvalidUrlError_Reason = "NO_SCHEME"
//
// The value returned if the actual value is not exposed by the requested API version.
//
InvalidUrlError_ReasonUNKNOWN InvalidUrlError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type InventoryTargetingError_Reason string
const (
//
// At least one placement or inventory unit is required
//
InventoryTargetingError_ReasonAT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED InventoryTargetingError_Reason = "AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED"
//
// The same inventory unit or placement cannot be targeted and excluded at
// the same time
//
InventoryTargetingError_ReasonINVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED InventoryTargetingError_Reason = "INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED"
//
// A child inventory unit cannot be targeted if its ancestor inventory unit
// is also targeted.
//
InventoryTargetingError_ReasonINVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED InventoryTargetingError_Reason = "INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED"
//
// A child inventory unit cannot be targeted if its ancestor inventory unit
// is excluded.
//
InventoryTargetingError_ReasonINVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED InventoryTargetingError_Reason = "INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED"
//
// A child inventory unit cannot be excluded if its ancestor inventory unit
// is also excluded.
//
InventoryTargetingError_ReasonINVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED InventoryTargetingError_Reason = "INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED"
//
// An explicitly targeted inventory unit cannot be targeted.
//
InventoryTargetingError_ReasonEXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED InventoryTargetingError_Reason = "EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED"
//
// An explicitly targeted inventory unit cannot be excluded.
//
InventoryTargetingError_ReasonEXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED InventoryTargetingError_Reason = "EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED"