-
Notifications
You must be signed in to change notification settings - Fork 0
/
proposal.go
4889 lines (3858 loc) · 155 KB
/
proposal.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 proposal
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
//
// Identifies the format of inventory or "channel" in which ads serve.
//
type AdExchangeEnvironment string
const (
//
// Ads serve in a browser.
//
AdExchangeEnvironmentDISPLAY AdExchangeEnvironment = "DISPLAY"
//
// In-stream video ads serve in a video.
//
AdExchangeEnvironmentVIDEO AdExchangeEnvironment = "VIDEO"
//
// In-stream video ads serve in a game.
//
AdExchangeEnvironmentGAMES AdExchangeEnvironment = "GAMES"
//
// Ads serve in a mobile app.
//
AdExchangeEnvironmentMOBILE AdExchangeEnvironment = "MOBILE"
//
// Out-stream video ads serve in a mobile app. Examples include mobile app interstitials and
// mobile app rewarded ads.
//
AdExchangeEnvironmentMOBILE_OUTSTREAM_VIDEO AdExchangeEnvironment = "MOBILE_OUTSTREAM_VIDEO"
//
// Out-stream video ads serve in a browser. Examples include in-feed and in-banner video ads.
//
AdExchangeEnvironmentDISPLAY_OUTSTREAM_VIDEO AdExchangeEnvironment = "DISPLAY_OUTSTREAM_VIDEO"
//
// The value returned if the actual value is not exposed by the requested API version.
//
AdExchangeEnvironmentUNKNOWN AdExchangeEnvironment = "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"
)
//
// The reasons for the target error.
//
type BillingError_Reason string
const (
//
// Found unsupported billing schedule.
//
BillingError_ReasonUNSUPPORTED_BILLING_SCHEDULE BillingError_Reason = "UNSUPPORTED_BILLING_SCHEDULE"
//
// Found unsupported billing cap.
//
BillingError_ReasonUNSUPPORTED_BILLING_CAP BillingError_Reason = "UNSUPPORTED_BILLING_CAP"
//
// Billing source is missing when either billing scheule or billing cap is provided.
//
BillingError_ReasonMISSING_BILLING_SOURCE BillingError_Reason = "MISSING_BILLING_SOURCE"
//
// Billing schedule is missing when the provided billing source is CONSTRACTED.
//
BillingError_ReasonMISSING_BILLING_SCHEDULE BillingError_Reason = "MISSING_BILLING_SCHEDULE"
//
// Billing cap is missing when the provided billing source is not CONSTRACTED.
//
BillingError_ReasonMISSING_BILLING_CAP BillingError_Reason = "MISSING_BILLING_CAP"
//
// The billing source is invalid for offline proposal line item.
//
BillingError_ReasonINVALID_BILLING_SOURCE_FOR_OFFLINE BillingError_Reason = "INVALID_BILLING_SOURCE_FOR_OFFLINE"
//
// Billing settings cannot be updated once the proposal has been approved.
//
BillingError_ReasonUPDATE_BILLING_NOT_ALLOWED BillingError_Reason = "UPDATE_BILLING_NOT_ALLOWED"
//
// Billing base is missing when the provided billing source is CONTRACTED.
//
BillingError_ReasonMISSING_BILLING_BASE BillingError_Reason = "MISSING_BILLING_BASE"
//
// The billing base is invalid for the provided billing source.
//
BillingError_ReasonINVALID_BILLING_BASE BillingError_Reason = "INVALID_BILLING_BASE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
BillingError_ReasonUNKNOWN BillingError_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"
)
//
// Descriptions of the types of sizes a creative can be. Not all creatives can
// be described by a height-width pair, this provides additional context.
//
type CreativeSizeType string
const (
//
// Dimension based size, an actual height and width.
//
CreativeSizeTypePIXEL CreativeSizeType = "PIXEL"
//
// Mobile size, that is expressed as a ratio of say 4 by 1, that could be
// met by a 100 x 25 sized image.
//
CreativeSizeTypeASPECT_RATIO CreativeSizeType = "ASPECT_RATIO"
//
// Out-of-page size, that is not related to the slot it is served. But rather
// is a function of the snippet, and the values set. This must be used with
// 1x1 size.
//
CreativeSizeTypeINTERSTITIAL CreativeSizeType = "INTERSTITIAL"
//
// Size has no meaning
//
// <p>1. For Click Tracking entities, where size doesn't matter 2. For entities that allow all
// requested sizes, where the size represents all sizes.
//
CreativeSizeTypeIGNORED CreativeSizeType = "IGNORED"
//
// Native size, which is a function of the how the client renders the creative.
// This must be used with 1x1 size.
//
CreativeSizeTypeNATIVE CreativeSizeType = "NATIVE"
//
// Audio size. Used with audio ads. This must be used with 1x1 size.
//
CreativeSizeTypeAUDIO CreativeSizeType = "AUDIO"
)
//
// The reason behind the currency code error.
//
type CurrencyCodeError_Reason string
const (
//
// The currency code is invalid and does not follow ISO 4217.
//
CurrencyCodeError_ReasonINVALID CurrencyCodeError_Reason = "INVALID"
//
// The currency code is valid, but is not supported.
//
CurrencyCodeError_ReasonUNSUPPORTED CurrencyCodeError_Reason = "UNSUPPORTED"
//
// The currency has been used for entity creation after its deprecation
//
CurrencyCodeError_ReasonDEPRECATED_CURRENCY_USED CurrencyCodeError_Reason = "DEPRECATED_CURRENCY_USED"
)
//
// 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"
)
//
// The reasons for the target error.
//
type CustomFieldValueError_Reason string
const (
//
// An attempt was made to modify or create a {@link CustomFieldValue} for
// a {@link CustomField} that does not exist.
//
CustomFieldValueError_ReasonCUSTOM_FIELD_NOT_FOUND CustomFieldValueError_Reason = "CUSTOM_FIELD_NOT_FOUND"
//
// An attempt was made to create a new value for a custom field
// that is inactive.
//
CustomFieldValueError_ReasonCUSTOM_FIELD_INACTIVE CustomFieldValueError_Reason = "CUSTOM_FIELD_INACTIVE"
//
// An attempt was made to modify or create a {@link CustomFieldValue} corresponding
// to a {@link CustomFieldOption} that could not be found.
//
CustomFieldValueError_ReasonCUSTOM_FIELD_OPTION_NOT_FOUND CustomFieldValueError_Reason = "CUSTOM_FIELD_OPTION_NOT_FOUND"
//
// An attempt was made to modify or create a {@link CustomFieldValue} with an
// association to an entity of the wrong type for its field.
//
CustomFieldValueError_ReasonINVALID_ENTITY_TYPE CustomFieldValueError_Reason = "INVALID_ENTITY_TYPE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
CustomFieldValueError_ReasonUNKNOWN CustomFieldValueError_Reason = "UNKNOWN"
)
//
// Specifies the available comparison operators.
//
type CmsMetadataCriteria_ComparisonOperator string
const (
CmsMetadataCriteria_ComparisonOperatorEQUALS CmsMetadataCriteria_ComparisonOperator = "EQUALS"
CmsMetadataCriteria_ComparisonOperatorNOT_EQUALS CmsMetadataCriteria_ComparisonOperator = "NOT_EQUALS"
)
//
// 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 target error.
//
type DealError_Reason string
const (
//
// Cannot add new {@link ProposalLineItem proposal line items} to a {@link Proposal} when
// {@link Proposal#isSold} is {@code true}.
//
DealError_ReasonCANNOT_ADD_LINE_ITEM_WHEN_SOLD DealError_Reason = "CANNOT_ADD_LINE_ITEM_WHEN_SOLD"
//
// Cannot archive {@link ProposalLineItem proposal line items} from a {@link Proposal} when
// {@link Proposal#isSold} is {@code true}.
//
DealError_ReasonCANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD DealError_Reason = "CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD"
//
// Cannot archive a {@link Proposal} when {@link Proposal#isSold} is {@code true}.
//
DealError_ReasonCANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD DealError_Reason = "CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD"
//
// Cannot change a field that requires buyer approval during the current operation.
//
DealError_ReasonCANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL DealError_Reason = "CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL"
//
// Cannot find seller ID for the {@link Proposal}.
//
DealError_ReasonCANNOT_GET_SELLER_ID DealError_Reason = "CANNOT_GET_SELLER_ID"
//
// {@link Proposal} must be marked as editable by {@link EditProposalsForNegotiation} before
// performing requested action.
//
DealError_ReasonCAN_ONLY_EXECUTE_IF_LOCAL_EDITS DealError_Reason = "CAN_ONLY_EXECUTE_IF_LOCAL_EDITS"
//
// {@link Proposal} contains no {@link ProposalLineItem proposal line items}.
//
DealError_ReasonMISSING_PROPOSAL_LINE_ITEMS DealError_Reason = "MISSING_PROPOSAL_LINE_ITEMS"
//
// No environment set for {@link Proposal}.
//
DealError_ReasonMISSING_ENVIRONMENT DealError_Reason = "MISSING_ENVIRONMENT"
//
// The Ad Exchange property is not associated with the current network.
//
DealError_ReasonMISSING_AD_EXCHANGE_PROPERTY DealError_Reason = "MISSING_AD_EXCHANGE_PROPERTY"
//
// Cannot find {@link Proposal} in Marketplace.
//
DealError_ReasonCANNOT_FIND_PROPOSAL_IN_MARKETPLACE DealError_Reason = "CANNOT_FIND_PROPOSAL_IN_MARKETPLACE"
//
// No {@link Product} exists for buyer-initiated programmatic {@link Proposal proposals}.
//
DealError_ReasonCANNOT_GET_PRODUCT DealError_Reason = "CANNOT_GET_PRODUCT"
//
// A new version of the {@link Proposal} was sent from buyer, cannot execute the requested
// action before performing {@link DiscardLocalVersionEdits}.
//
DealError_ReasonNEW_VERSION_FROM_BUYER DealError_Reason = "NEW_VERSION_FROM_BUYER"
//
// A new version of the {@link Proposal} exists in Marketplace, cannot execute the requested
// action before the proposal is synced to newest revision.
//
DealError_ReasonPROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE DealError_Reason = "PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE"
//
// No {@link Proposal} changes were found.
//
DealError_ReasonNO_PROPOSAL_CHANGES_FOUND DealError_Reason = "NO_PROPOSAL_CHANGES_FOUND"
//
// The value returned if the actual value is not exposed by the requested API version.
//
DealError_ReasonUNKNOWN DealError_Reason = "UNKNOWN"
)
//
// 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"
)
//
// The reasons for the entity limit reached error.
//
type EntityLimitReachedError_Reason string
const (
//
// The number of custom targeting values exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonCUSTOM_TARGETING_VALUES_LIMIT_REACHED EntityLimitReachedError_Reason = "CUSTOM_TARGETING_VALUES_LIMIT_REACHED"
//
// The number of ad exclusion rules exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonAD_EXCLUSION_RULES_LIMIT_REACHED EntityLimitReachedError_Reason = "AD_EXCLUSION_RULES_LIMIT_REACHED"
//
// The number of first party audience segments exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonFIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED EntityLimitReachedError_Reason = "FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED"
//
// The number of active placements exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonPLACEMENTS_LIMIT_REACHED EntityLimitReachedError_Reason = "PLACEMENTS_LIMIT_REACHED"
//
// The number of line items excceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonLINE_ITEMS_LIMIT_REACHED EntityLimitReachedError_Reason = "LINE_ITEMS_LIMIT_REACHED"
//
// The number of active line items exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonACTIVE_LINE_ITEMS_LIMIT_REACHED EntityLimitReachedError_Reason = "ACTIVE_LINE_ITEMS_LIMIT_REACHED"
//
// The number of not-archived encoding profiles exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonDAI_ENCODING_PROFILES_LIMIT_REACHED EntityLimitReachedError_Reason = "DAI_ENCODING_PROFILES_LIMIT_REACHED"
//
// The number of traffic forecast segments exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonTRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED EntityLimitReachedError_Reason = "TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED"
//
// The number of forecast adjustments exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonFORECAST_ADJUSTMENTS_LIMIT_REACHED EntityLimitReachedError_Reason = "FORECAST_ADJUSTMENTS_LIMIT_REACHED"
//
// The number of active experiments exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonACTIVE_EXPERIMENTS_LIMIT_REACHED EntityLimitReachedError_Reason = "ACTIVE_EXPERIMENTS_LIMIT_REACHED"
//
// The number of sites exceeds the max number allowed in the network.
//
EntityLimitReachedError_ReasonSITES_LIMIT_REACHED EntityLimitReachedError_Reason = "SITES_LIMIT_REACHED"
//
// The value returned if the actual value is not exposed by the requested API version.
//
EntityLimitReachedError_ReasonUNKNOWN EntityLimitReachedError_Reason = "UNKNOWN"
)
//
// The reasons for the target error.
//
type ExchangeRateError_Reason string
const (
//
// The currency code is invalid and does not follow ISO 4217.
//
ExchangeRateError_ReasonINVALID_CURRENCY_CODE ExchangeRateError_Reason = "INVALID_CURRENCY_CODE"
//
// The currency code is not supported.
//
ExchangeRateError_ReasonUNSUPPORTED_CURRENCY_CODE ExchangeRateError_Reason = "UNSUPPORTED_CURRENCY_CODE"
//
// The currency code already exists. When creating an exchange rate, its currency should not be
// associated with any existing exchange rate. When creating a list of exchange rates, there
// should not be two exchange rates associated with same currency.
//
ExchangeRateError_ReasonCURRENCY_CODE_ALREADY_EXISTS ExchangeRateError_Reason = "CURRENCY_CODE_ALREADY_EXISTS"
//
// The exchange rate value is invalid. When the {@link ExchangeRate#refreshRate} is
// {@link ExchangeRateRefreshRate#FIXED}, the {@link ExchangeRate#exchangeRate} should be larger
// than 0. Otherwise it is invalid.
//
ExchangeRateError_ReasonINVALID_EXCHANGE_RATE ExchangeRateError_Reason = "INVALID_EXCHANGE_RATE"
//
// The exchange rate value is not found. When the {@link ExchangeRate#refreshRate} is
// {@link ExchangeRateRefreshRate#DAILY} or {@link ExchangeRateRefreshRate#MONTHLY}, the
// {@link ExchangeRate#exchangeRate} should be assigned by Google. It is not found if Google
// cannot find such an exchange rate.
//
ExchangeRateError_ReasonEXCHANGE_RATE_NOT_FOUND ExchangeRateError_Reason = "EXCHANGE_RATE_NOT_FOUND"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ExchangeRateError_ReasonUNKNOWN ExchangeRateError_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"
)
//
// Reason why a forecast could not be retrieved.
//
type ForecastError_Reason string
const (
//
// The forecast could not be retrieved due to a server side
// connection problem. Please try again soon.
//
ForecastError_ReasonSERVER_NOT_AVAILABLE ForecastError_Reason = "SERVER_NOT_AVAILABLE"
//
// There was an unexpected internal error.
//
ForecastError_ReasonINTERNAL_ERROR ForecastError_Reason = "INTERNAL_ERROR"
//
// The forecast could not be retrieved because there is not
// enough forecasting data available yet. It may take up to one week before
// enough data is available.
//
ForecastError_ReasonNO_FORECAST_YET ForecastError_Reason = "NO_FORECAST_YET"
//
// There's not enough inventory for the requested reservation.
//
ForecastError_ReasonNOT_ENOUGH_INVENTORY ForecastError_Reason = "NOT_ENOUGH_INVENTORY"
//
// No error from forecast.
//
ForecastError_ReasonSUCCESS ForecastError_Reason = "SUCCESS"
//
// The requested reservation is of zero length. No forecast is returned.
//
ForecastError_ReasonZERO_LENGTH_RESERVATION ForecastError_Reason = "ZERO_LENGTH_RESERVATION"
//
// 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 2 per second.
// Once again this does not guarantee that every request will succeed, but
// may help reduce the number of times you receive this error.
// </p>
//
ForecastError_ReasonEXCEEDED_QUOTA ForecastError_Reason = "EXCEEDED_QUOTA"
//
// The request falls outside the date range of the available data.
//
ForecastError_ReasonOUTSIDE_AVAILABLE_DATE_RANGE ForecastError_Reason = "OUTSIDE_AVAILABLE_DATE_RANGE"
//
// The value returned if the actual value is not exposed by the requested API version.
//
ForecastError_ReasonUNKNOWN ForecastError_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 LabelEntityAssociationError_Reason string
const (
//
// The label has already been attached to the entity.
//
LabelEntityAssociationError_ReasonDUPLICATE_ASSOCIATION LabelEntityAssociationError_Reason = "DUPLICATE_ASSOCIATION"
//
// A label is being applied to an entity that does not support that entity
// type.
//
LabelEntityAssociationError_ReasonINVALID_ASSOCIATION LabelEntityAssociationError_Reason = "INVALID_ASSOCIATION"
//
// Label negation cannot be applied to the entity type.
//