/
admob_resources.pb.go
2524 lines (2269 loc) · 106 KB
/
admob_resources.pb.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
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: google/ads/admob/v1/admob_resources.proto
package admob
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
date "google.golang.org/genproto/googleapis/type/date"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// The sorting order.
type SortOrder int32
const (
// Default value for an unset field. Do not use.
SortOrder_SORT_ORDER_UNSPECIFIED SortOrder = 0
// Sort dimension value or metric value in ascending order.
SortOrder_ASCENDING SortOrder = 1
// Sort dimension value or metric value in descending order.
SortOrder_DESCENDING SortOrder = 2
)
// Enum value maps for SortOrder.
var (
SortOrder_name = map[int32]string{
0: "SORT_ORDER_UNSPECIFIED",
1: "ASCENDING",
2: "DESCENDING",
}
SortOrder_value = map[string]int32{
"SORT_ORDER_UNSPECIFIED": 0,
"ASCENDING": 1,
"DESCENDING": 2,
}
)
func (x SortOrder) Enum() *SortOrder {
p := new(SortOrder)
*p = x
return p
}
func (x SortOrder) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SortOrder) Descriptor() protoreflect.EnumDescriptor {
return file_google_ads_admob_v1_admob_resources_proto_enumTypes[0].Descriptor()
}
func (SortOrder) Type() protoreflect.EnumType {
return &file_google_ads_admob_v1_admob_resources_proto_enumTypes[0]
}
func (x SortOrder) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SortOrder.Descriptor instead.
func (SortOrder) EnumDescriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{0}
}
// The dimensions of the network report. Dimensions are data attributes to
// break down or refine the quantitative measurements (metrics) by certain
// attributes, such as the ad format or the platform an ad was viewed on.
type NetworkReportSpec_Dimension int32
const (
// Default value for an unset field. Do not use.
NetworkReportSpec_DIMENSION_UNSPECIFIED NetworkReportSpec_Dimension = 0
// A date in the YYYY-MM-DD format (for example, "2018-12-21"). Requests can
// specify at most one time dimension.
NetworkReportSpec_DATE NetworkReportSpec_Dimension = 1
// A month in the YYYY-MM format (for example, "2018-12"). Requests can
// specify at most one time dimension.
NetworkReportSpec_MONTH NetworkReportSpec_Dimension = 2
// The date of the first day of a week in the YYYY-MM-DD format
// (for example, "2018-12-21"). Requests can specify at most one time
// dimension.
NetworkReportSpec_WEEK NetworkReportSpec_Dimension = 3
// The unique ID of the ad unit (for example, "ca-app-pub-1234/1234").
// If AD_UNIT dimension is specified, then APP is included automatically.
NetworkReportSpec_AD_UNIT NetworkReportSpec_Dimension = 4
// The unique ID of the mobile application (for example,
// "ca-app-pub-1234~1234").
NetworkReportSpec_APP NetworkReportSpec_Dimension = 5
// Type of the ad (for example, "text" or "image"), an ad delivery
// dimension.
//
// **Warning:** The dimension is incompatible with
// [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS),
// [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and
// [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.
NetworkReportSpec_AD_TYPE NetworkReportSpec_Dimension = 6
// CLDR country code of the place where the ad views/clicks occur (for
// example, "US" or "FR"). This is a geography dimension.
NetworkReportSpec_COUNTRY NetworkReportSpec_Dimension = 7
// Format of the ad unit (for example, "banner", "native"), an ad delivery
// dimension.
NetworkReportSpec_FORMAT NetworkReportSpec_Dimension = 8
// Mobile OS platform of the app (for example, "Android" or "iOS").
NetworkReportSpec_PLATFORM NetworkReportSpec_Dimension = 9
)
// Enum value maps for NetworkReportSpec_Dimension.
var (
NetworkReportSpec_Dimension_name = map[int32]string{
0: "DIMENSION_UNSPECIFIED",
1: "DATE",
2: "MONTH",
3: "WEEK",
4: "AD_UNIT",
5: "APP",
6: "AD_TYPE",
7: "COUNTRY",
8: "FORMAT",
9: "PLATFORM",
}
NetworkReportSpec_Dimension_value = map[string]int32{
"DIMENSION_UNSPECIFIED": 0,
"DATE": 1,
"MONTH": 2,
"WEEK": 3,
"AD_UNIT": 4,
"APP": 5,
"AD_TYPE": 6,
"COUNTRY": 7,
"FORMAT": 8,
"PLATFORM": 9,
}
)
func (x NetworkReportSpec_Dimension) Enum() *NetworkReportSpec_Dimension {
p := new(NetworkReportSpec_Dimension)
*p = x
return p
}
func (x NetworkReportSpec_Dimension) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkReportSpec_Dimension) Descriptor() protoreflect.EnumDescriptor {
return file_google_ads_admob_v1_admob_resources_proto_enumTypes[1].Descriptor()
}
func (NetworkReportSpec_Dimension) Type() protoreflect.EnumType {
return &file_google_ads_admob_v1_admob_resources_proto_enumTypes[1]
}
func (x NetworkReportSpec_Dimension) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkReportSpec_Dimension.Descriptor instead.
func (NetworkReportSpec_Dimension) EnumDescriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{1, 0}
}
// The metrics of the network report. Metrics are quantitative measurements
// indicating how the publisher business is performing. They are aggregated
// from the individual ad events and grouped by the report dimensions. The
// metric value is either integer, or decimal (without rounding).
type NetworkReportSpec_Metric int32
const (
// Default value for an unset field. Do not use.
NetworkReportSpec_METRIC_UNSPECIFIED NetworkReportSpec_Metric = 0
// The number of ad requests. The value is an integer.
//
// **Warning:** The metric is incompatible with
// [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
NetworkReportSpec_AD_REQUESTS NetworkReportSpec_Metric = 1
// The number of times a user clicks an ad. The value is an integer.
NetworkReportSpec_CLICKS NetworkReportSpec_Metric = 2
// The estimated earnings of the AdMob publisher. The currency unit (USD,
// EUR, or other) of the earning metrics are determined by the localization
// setting for currency. The amount is in micros. For example, $6.50 would
// be represented as 6500000.
NetworkReportSpec_ESTIMATED_EARNINGS NetworkReportSpec_Metric = 3
// The total number of ads shown to users. The value is an integer.
NetworkReportSpec_IMPRESSIONS NetworkReportSpec_Metric = 4
// The ratio of clicks over impressions. The value is a double precision
// (approximate) decimal value.
NetworkReportSpec_IMPRESSION_CTR NetworkReportSpec_Metric = 5
// The estimated earnings per thousand ad impressions. The value is in
// micros. For example, $1.03 would be represented as 1030000.
//
// **Warning:** The metric is incompatible with
// [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
NetworkReportSpec_IMPRESSION_RPM NetworkReportSpec_Metric = 6
// The number of times ads are returned in response to a request. The value
// is an integer.
NetworkReportSpec_MATCHED_REQUESTS NetworkReportSpec_Metric = 7
// The ratio of matched ad requests over the total ad requests. The value is
// a double precision (approximate) decimal value.
//
// **Warning:** The metric is incompatible with
// [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
NetworkReportSpec_MATCH_RATE NetworkReportSpec_Metric = 8
// The ratio of ads that are displayed over ads that are returned, defined
// as impressions / matched requests. The value is a double precision
// (approximate) decimal value.
NetworkReportSpec_SHOW_RATE NetworkReportSpec_Metric = 9
)
// Enum value maps for NetworkReportSpec_Metric.
var (
NetworkReportSpec_Metric_name = map[int32]string{
0: "METRIC_UNSPECIFIED",
1: "AD_REQUESTS",
2: "CLICKS",
3: "ESTIMATED_EARNINGS",
4: "IMPRESSIONS",
5: "IMPRESSION_CTR",
6: "IMPRESSION_RPM",
7: "MATCHED_REQUESTS",
8: "MATCH_RATE",
9: "SHOW_RATE",
}
NetworkReportSpec_Metric_value = map[string]int32{
"METRIC_UNSPECIFIED": 0,
"AD_REQUESTS": 1,
"CLICKS": 2,
"ESTIMATED_EARNINGS": 3,
"IMPRESSIONS": 4,
"IMPRESSION_CTR": 5,
"IMPRESSION_RPM": 6,
"MATCHED_REQUESTS": 7,
"MATCH_RATE": 8,
"SHOW_RATE": 9,
}
)
func (x NetworkReportSpec_Metric) Enum() *NetworkReportSpec_Metric {
p := new(NetworkReportSpec_Metric)
*p = x
return p
}
func (x NetworkReportSpec_Metric) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkReportSpec_Metric) Descriptor() protoreflect.EnumDescriptor {
return file_google_ads_admob_v1_admob_resources_proto_enumTypes[2].Descriptor()
}
func (NetworkReportSpec_Metric) Type() protoreflect.EnumType {
return &file_google_ads_admob_v1_admob_resources_proto_enumTypes[2]
}
func (x NetworkReportSpec_Metric) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkReportSpec_Metric.Descriptor instead.
func (NetworkReportSpec_Metric) EnumDescriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{1, 1}
}
// The dimensions of the mediation report. Dimensions are data attributes to
// break down or refine the quantitative measurements (metrics) by certain
// attributes, such as the ad format or the platform an ad was viewed on.
type MediationReportSpec_Dimension int32
const (
// Default value for an unset field. Do not use.
MediationReportSpec_DIMENSION_UNSPECIFIED MediationReportSpec_Dimension = 0
// A date in the YYYY-MM-DD format (for example, "2018-12-21"). Requests can
// specify at most one time dimension.
MediationReportSpec_DATE MediationReportSpec_Dimension = 1
// A month in the YYYY-MM format (for example, "2018-12"). Requests can
// specify at most one time dimension.
MediationReportSpec_MONTH MediationReportSpec_Dimension = 2
// The date of the first day of a week in the YYYY-MM-DD format
// (for example, "2018-12-21"). Requests can specify at most one time
// dimension.
MediationReportSpec_WEEK MediationReportSpec_Dimension = 3
// The unique ID of the ad source (for example, "5450213213286189855" and
// "AdMob Network" as label value).
MediationReportSpec_AD_SOURCE MediationReportSpec_Dimension = 4
// The unique ID of the ad source instance (for example,
// "ca-app-pub-1234#5678" and "AdMob (default)" as label value).
//
// **Warning:** The dimension is incompatible with
// [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) and
// [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.
MediationReportSpec_AD_SOURCE_INSTANCE MediationReportSpec_Dimension = 5
// The unique ID of the ad unit (for example, "ca-app-pub-1234/8790").
// If AD_UNIT dimension is specified, then APP is included automatically.
MediationReportSpec_AD_UNIT MediationReportSpec_Dimension = 6
// The unique ID of the mobile application (for example,
// "ca-app-pub-1234~1234").
MediationReportSpec_APP MediationReportSpec_Dimension = 7
// The unique ID of the mediation group (for example,
// "ca-app-pub-1234:mg:1234" and "AdMob (default)" as label value).
//
// **Warning:** The dimension is incompatible with
// [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) and
// [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.
MediationReportSpec_MEDIATION_GROUP MediationReportSpec_Dimension = 11
// CLDR country code of the place where the ad views/clicks occur (for
// example, "US" or "FR"). This is a geography dimension.
MediationReportSpec_COUNTRY MediationReportSpec_Dimension = 8
// Format of the ad unit (for example, "banner", "native"), an ad delivery
// dimension.
MediationReportSpec_FORMAT MediationReportSpec_Dimension = 9
// Mobile OS platform of the app (for example, "Android" or "iOS").
MediationReportSpec_PLATFORM MediationReportSpec_Dimension = 10
)
// Enum value maps for MediationReportSpec_Dimension.
var (
MediationReportSpec_Dimension_name = map[int32]string{
0: "DIMENSION_UNSPECIFIED",
1: "DATE",
2: "MONTH",
3: "WEEK",
4: "AD_SOURCE",
5: "AD_SOURCE_INSTANCE",
6: "AD_UNIT",
7: "APP",
11: "MEDIATION_GROUP",
8: "COUNTRY",
9: "FORMAT",
10: "PLATFORM",
}
MediationReportSpec_Dimension_value = map[string]int32{
"DIMENSION_UNSPECIFIED": 0,
"DATE": 1,
"MONTH": 2,
"WEEK": 3,
"AD_SOURCE": 4,
"AD_SOURCE_INSTANCE": 5,
"AD_UNIT": 6,
"APP": 7,
"MEDIATION_GROUP": 11,
"COUNTRY": 8,
"FORMAT": 9,
"PLATFORM": 10,
}
)
func (x MediationReportSpec_Dimension) Enum() *MediationReportSpec_Dimension {
p := new(MediationReportSpec_Dimension)
*p = x
return p
}
func (x MediationReportSpec_Dimension) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MediationReportSpec_Dimension) Descriptor() protoreflect.EnumDescriptor {
return file_google_ads_admob_v1_admob_resources_proto_enumTypes[3].Descriptor()
}
func (MediationReportSpec_Dimension) Type() protoreflect.EnumType {
return &file_google_ads_admob_v1_admob_resources_proto_enumTypes[3]
}
func (x MediationReportSpec_Dimension) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MediationReportSpec_Dimension.Descriptor instead.
func (MediationReportSpec_Dimension) EnumDescriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{2, 0}
}
// The metrics of the mediation report. Metrics are quantitative measurements
// indicating how the publisher business is performing. They are aggregated
// from the individual ad events and grouped by the report dimensions. The
// metric value is either integer, or decimal (without rounding).
type MediationReportSpec_Metric int32
const (
// Default value for an unset field. Do not use.
MediationReportSpec_METRIC_UNSPECIFIED MediationReportSpec_Metric = 0
// The number of requests. The value is an integer.
MediationReportSpec_AD_REQUESTS MediationReportSpec_Metric = 1
// The number of times a user clicks an ad. The value is an integer.
MediationReportSpec_CLICKS MediationReportSpec_Metric = 2
// The estimated earnings of the AdMob publisher. The currency unit (USD,
// EUR, or other) of the earning metrics are determined by the localization
// setting for currency. The amount is in micros. For example, $6.50 would
// be represented as 6500000.
//
// **Warning:** The metric is incompatible with
// [AD_SOURCE_INSTANCE](#Dimension.ENUM_VALUES.AD_SOURCE_INSTANCE) and
// [MEDIATION_GROUP](#Dimension.ENUM_VALUES.MEDIATION_GROUP) dimensions.
MediationReportSpec_ESTIMATED_EARNINGS MediationReportSpec_Metric = 3
// The total number of ads shown to users. The value is an integer.
MediationReportSpec_IMPRESSIONS MediationReportSpec_Metric = 4
// The ratio of clicks over impressions. The value is a double precision
// (approximate) decimal value.
MediationReportSpec_IMPRESSION_CTR MediationReportSpec_Metric = 5
// The number of times ads are returned in response to a request. The value
// is an integer.
MediationReportSpec_MATCHED_REQUESTS MediationReportSpec_Metric = 6
// The ratio of matched ad requests over the total ad requests. The value is
// a double precision (approximate) decimal value.
MediationReportSpec_MATCH_RATE MediationReportSpec_Metric = 7
// The third-party ad network's estimated average eCPM. The currency unit
// (USD, EUR, or other) of the earning metrics are determined by the
// localization setting for currency. The amount is in micros. For example,
// $2.30 would be represented as 2300000.
//
// **Warning:** The metric is incompatible with
// [AD_SOURCE_INSTANCE](#Dimension.ENUM_VALUES.AD_SOURCE_INSTANCE) and
// [MEDIATION_GROUP](#Dimension.ENUM_VALUES.MEDIATION_GROUP) dimensions.
MediationReportSpec_OBSERVED_ECPM MediationReportSpec_Metric = 8
)
// Enum value maps for MediationReportSpec_Metric.
var (
MediationReportSpec_Metric_name = map[int32]string{
0: "METRIC_UNSPECIFIED",
1: "AD_REQUESTS",
2: "CLICKS",
3: "ESTIMATED_EARNINGS",
4: "IMPRESSIONS",
5: "IMPRESSION_CTR",
6: "MATCHED_REQUESTS",
7: "MATCH_RATE",
8: "OBSERVED_ECPM",
}
MediationReportSpec_Metric_value = map[string]int32{
"METRIC_UNSPECIFIED": 0,
"AD_REQUESTS": 1,
"CLICKS": 2,
"ESTIMATED_EARNINGS": 3,
"IMPRESSIONS": 4,
"IMPRESSION_CTR": 5,
"MATCHED_REQUESTS": 6,
"MATCH_RATE": 7,
"OBSERVED_ECPM": 8,
}
)
func (x MediationReportSpec_Metric) Enum() *MediationReportSpec_Metric {
p := new(MediationReportSpec_Metric)
*p = x
return p
}
func (x MediationReportSpec_Metric) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MediationReportSpec_Metric) Descriptor() protoreflect.EnumDescriptor {
return file_google_ads_admob_v1_admob_resources_proto_enumTypes[4].Descriptor()
}
func (MediationReportSpec_Metric) Type() protoreflect.EnumType {
return &file_google_ads_admob_v1_admob_resources_proto_enumTypes[4]
}
func (x MediationReportSpec_Metric) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MediationReportSpec_Metric.Descriptor instead.
func (MediationReportSpec_Metric) EnumDescriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{2, 1}
}
// Warning type.
type ReportWarning_Type int32
const (
// Default value for an unset field. Do not use.
ReportWarning_TYPE_UNSPECIFIED ReportWarning_Type = 0
// Some data in this report is aggregated based on a time zone different
// from the requested time zone. This could happen if a local time-zone
// report has the start time before the last time this time zone changed.
// The description field will contain the date of the last time zone
// change.
ReportWarning_DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE ReportWarning_Type = 1
// There is an unusual delay in processing the source data for the
// requested date range. The report results might be less up to date than
// usual. AdMob is aware of the issue and is actively working to resolve
// it.
ReportWarning_DATA_DELAYED ReportWarning_Type = 2
// Warnings that are exposed without a specific type. Useful when new
// warning types are added but the API is not changed yet.
ReportWarning_OTHER ReportWarning_Type = 3
// The currency being requested is not the account currency. The earning
// metrics will be based on the requested currency, and thus not a good
// estimation of the final payment anymore, due to the currency rate
// fluctuation.
ReportWarning_REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY ReportWarning_Type = 4
)
// Enum value maps for ReportWarning_Type.
var (
ReportWarning_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE",
2: "DATA_DELAYED",
3: "OTHER",
4: "REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY",
}
ReportWarning_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE": 1,
"DATA_DELAYED": 2,
"OTHER": 3,
"REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY": 4,
}
)
func (x ReportWarning_Type) Enum() *ReportWarning_Type {
p := new(ReportWarning_Type)
*p = x
return p
}
func (x ReportWarning_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ReportWarning_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_ads_admob_v1_admob_resources_proto_enumTypes[5].Descriptor()
}
func (ReportWarning_Type) Type() protoreflect.EnumType {
return &file_google_ads_admob_v1_admob_resources_proto_enumTypes[5]
}
func (x ReportWarning_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ReportWarning_Type.Descriptor instead.
func (ReportWarning_Type) EnumDescriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{4, 0}
}
// A publisher account contains information relevant to the use of this API,
// such as the time zone used for the reports.
type PublisherAccount struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource name of this account.
// Format is accounts/{publisher_id}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The unique ID by which this publisher account can be identified
// in the API requests (for example, pub-1234567890).
PublisherId string `protobuf:"bytes,2,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"`
// The time zone that is used in reports that are generated for this account.
// The value is a time-zone ID as specified by the CLDR project,
// for example, "America/Los_Angeles".
ReportingTimeZone string `protobuf:"bytes,3,opt,name=reporting_time_zone,json=reportingTimeZone,proto3" json:"reporting_time_zone,omitempty"`
// Currency code of the earning-related metrics, which is the 3-letter code
// defined in ISO 4217. The daily average rate is used for the currency
// conversion.
CurrencyCode string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
}
func (x *PublisherAccount) Reset() {
*x = PublisherAccount{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PublisherAccount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PublisherAccount) ProtoMessage() {}
func (x *PublisherAccount) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PublisherAccount.ProtoReflect.Descriptor instead.
func (*PublisherAccount) Descriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{0}
}
func (x *PublisherAccount) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PublisherAccount) GetPublisherId() string {
if x != nil {
return x.PublisherId
}
return ""
}
func (x *PublisherAccount) GetReportingTimeZone() string {
if x != nil {
return x.ReportingTimeZone
}
return ""
}
func (x *PublisherAccount) GetCurrencyCode() string {
if x != nil {
return x.CurrencyCode
}
return ""
}
// The specification for generating an AdMob Network report.
// For example, the specification to get clicks and estimated earnings for only
// the 'US' and 'CN' countries can look like the following example:
//
// {
// 'date_range': {
// 'start_date': {'year': 2018, 'month': 9, 'day': 1},
// 'end_date': {'year': 2018, 'month': 9, 'day': 30}
// },
// 'dimensions': ['DATE', 'APP', 'COUNTRY'],
// 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
// 'dimension_filters': [
// {
// 'dimension': 'COUNTRY',
// 'matches_any': {'values': [{'value': 'US', 'value': 'CN'}]}
// }
// ],
// 'sort_conditions': [
// {'dimension':'APP', order: 'ASCENDING'},
// {'metric':'CLICKS', order: 'DESCENDING'}
// ],
// 'localization_settings': {
// 'currency_code': 'USD',
// 'language_code': 'en-US'
// }
// }
//
// For a better understanding, you can treat the preceding specification like
// the following pseudo SQL:
//
// SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS
// FROM NETWORK_REPORT
// WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
// AND COUNTRY IN ('US', 'CN')
// GROUP BY DATE, APP, COUNTRY
// ORDER BY APP ASC, CLICKS DESC;
type NetworkReportSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The date range for which the report is generated.
DateRange *DateRange `protobuf:"bytes,1,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
// List of dimensions of the report. The value combination of these dimensions
// determines the row of the report. If no dimensions are specified, the
// report returns a single row of requested metrics for the entire account.
Dimensions []NetworkReportSpec_Dimension `protobuf:"varint,2,rep,packed,name=dimensions,proto3,enum=google.ads.admob.v1.NetworkReportSpec_Dimension" json:"dimensions,omitempty"`
// List of metrics of the report. A report must specify at least one metric.
Metrics []NetworkReportSpec_Metric `protobuf:"varint,3,rep,packed,name=metrics,proto3,enum=google.ads.admob.v1.NetworkReportSpec_Metric" json:"metrics,omitempty"`
// Describes which report rows to match based on their dimension values.
DimensionFilters []*NetworkReportSpec_DimensionFilter `protobuf:"bytes,4,rep,name=dimension_filters,json=dimensionFilters,proto3" json:"dimension_filters,omitempty"`
// Describes the sorting of report rows. The order of the condition in the
// list defines its precedence; the earlier the condition, the higher its
// precedence. If no sort conditions are specified, the row ordering is
// undefined.
SortConditions []*NetworkReportSpec_SortCondition `protobuf:"bytes,5,rep,name=sort_conditions,json=sortConditions,proto3" json:"sort_conditions,omitempty"`
// Localization settings of the report.
LocalizationSettings *LocalizationSettings `protobuf:"bytes,6,opt,name=localization_settings,json=localizationSettings,proto3" json:"localization_settings,omitempty"`
// Maximum number of report data rows to return. If the value is not set, the
// API returns as many rows as possible, up to 100000. Acceptable values are
// 1-100000, inclusive. Any other values are treated as 100000.
MaxReportRows int32 `protobuf:"varint,7,opt,name=max_report_rows,json=maxReportRows,proto3" json:"max_report_rows,omitempty"`
// A report time zone. Accepts an IANA TZ name values, such as
// "America/Los_Angeles." If no time zone is defined, the account default
// takes effect. Check default value by the get account action.
//
// **Warning:** The "America/Los_Angeles" is the only supported value at
// the moment.
TimeZone string `protobuf:"bytes,8,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
}
func (x *NetworkReportSpec) Reset() {
*x = NetworkReportSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetworkReportSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetworkReportSpec) ProtoMessage() {}
func (x *NetworkReportSpec) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetworkReportSpec.ProtoReflect.Descriptor instead.
func (*NetworkReportSpec) Descriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{1}
}
func (x *NetworkReportSpec) GetDateRange() *DateRange {
if x != nil {
return x.DateRange
}
return nil
}
func (x *NetworkReportSpec) GetDimensions() []NetworkReportSpec_Dimension {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *NetworkReportSpec) GetMetrics() []NetworkReportSpec_Metric {
if x != nil {
return x.Metrics
}
return nil
}
func (x *NetworkReportSpec) GetDimensionFilters() []*NetworkReportSpec_DimensionFilter {
if x != nil {
return x.DimensionFilters
}
return nil
}
func (x *NetworkReportSpec) GetSortConditions() []*NetworkReportSpec_SortCondition {
if x != nil {
return x.SortConditions
}
return nil
}
func (x *NetworkReportSpec) GetLocalizationSettings() *LocalizationSettings {
if x != nil {
return x.LocalizationSettings
}
return nil
}
func (x *NetworkReportSpec) GetMaxReportRows() int32 {
if x != nil {
return x.MaxReportRows
}
return 0
}
func (x *NetworkReportSpec) GetTimeZone() string {
if x != nil {
return x.TimeZone
}
return ""
}
// The specification for generating an AdMob Mediation report.
// For example, the specification to get observed ECPM sliced by ad source and
// app for the 'US' and 'CN' countries can look like the following example:
//
// {
// "date_range": {
// "start_date": {"year": 2018, "month": 9, "day": 1},
// "end_date": {"year": 2018, "month": 9, "day": 30}
// },
// "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
// "metrics": ["OBSERVED_ECPM"],
// "dimension_filters": [
// {
// "dimension": "COUNTRY",
// "matches_any": {"values": [{"value": "US", "value": "CN"}]}
// }
// ],
// "sort_conditions": [
// {"dimension":"APP", order: "ASCENDING"}
// ],
// "localization_settings": {
// "currency_code": "USD",
// "language_code": "en-US"
// }
// }
//
// For a better understanding, you can treat the preceding specification like
// the following pseudo SQL:
//
// SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM
// FROM MEDIATION_REPORT
// WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
// AND COUNTRY IN ('US', 'CN')
// GROUP BY AD_SOURCE, APP, COUNTRY
// ORDER BY APP ASC;
type MediationReportSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The date range for which the report is generated.
DateRange *DateRange `protobuf:"bytes,1,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
// List of dimensions of the report. The value combination of these dimensions
// determines the row of the report. If no dimensions are specified, the
// report returns a single row of requested metrics for the entire account.
Dimensions []MediationReportSpec_Dimension `protobuf:"varint,2,rep,packed,name=dimensions,proto3,enum=google.ads.admob.v1.MediationReportSpec_Dimension" json:"dimensions,omitempty"`
// List of metrics of the report. A report must specify at least one metric.
Metrics []MediationReportSpec_Metric `protobuf:"varint,3,rep,packed,name=metrics,proto3,enum=google.ads.admob.v1.MediationReportSpec_Metric" json:"metrics,omitempty"`
// Describes which report rows to match based on their dimension values.
DimensionFilters []*MediationReportSpec_DimensionFilter `protobuf:"bytes,4,rep,name=dimension_filters,json=dimensionFilters,proto3" json:"dimension_filters,omitempty"`
// Describes the sorting of report rows. The order of the condition in the
// list defines its precedence; the earlier the condition, the higher its
// precedence. If no sort conditions are specified, the row ordering is
// undefined.
SortConditions []*MediationReportSpec_SortCondition `protobuf:"bytes,5,rep,name=sort_conditions,json=sortConditions,proto3" json:"sort_conditions,omitempty"`
// Localization settings of the report.
LocalizationSettings *LocalizationSettings `protobuf:"bytes,6,opt,name=localization_settings,json=localizationSettings,proto3" json:"localization_settings,omitempty"`
// Maximum number of report data rows to return. If the value is not set, the
// API returns as many rows as possible, up to 100000. Acceptable values are
// 1-100000, inclusive. Any other values are treated as 100000.
MaxReportRows int32 `protobuf:"varint,7,opt,name=max_report_rows,json=maxReportRows,proto3" json:"max_report_rows,omitempty"`
// A report time zone. Accepts an IANA TZ name values, such as
// "America/Los_Angeles." If no time zone is defined, the account default
// takes effect. Check default value by the get account action.
//
// **Warning:** The "America/Los_Angeles" is the only supported value at
// the moment.
TimeZone string `protobuf:"bytes,8,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
}
func (x *MediationReportSpec) Reset() {
*x = MediationReportSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MediationReportSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MediationReportSpec) ProtoMessage() {}
func (x *MediationReportSpec) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MediationReportSpec.ProtoReflect.Descriptor instead.
func (*MediationReportSpec) Descriptor() ([]byte, []int) {
return file_google_ads_admob_v1_admob_resources_proto_rawDescGZIP(), []int{2}
}
func (x *MediationReportSpec) GetDateRange() *DateRange {
if x != nil {
return x.DateRange
}
return nil
}
func (x *MediationReportSpec) GetDimensions() []MediationReportSpec_Dimension {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *MediationReportSpec) GetMetrics() []MediationReportSpec_Metric {
if x != nil {
return x.Metrics
}
return nil
}
func (x *MediationReportSpec) GetDimensionFilters() []*MediationReportSpec_DimensionFilter {
if x != nil {
return x.DimensionFilters
}
return nil
}
func (x *MediationReportSpec) GetSortConditions() []*MediationReportSpec_SortCondition {
if x != nil {
return x.SortConditions
}
return nil
}
func (x *MediationReportSpec) GetLocalizationSettings() *LocalizationSettings {
if x != nil {
return x.LocalizationSettings
}
return nil
}
func (x *MediationReportSpec) GetMaxReportRows() int32 {
if x != nil {
return x.MaxReportRows
}
return 0
}
func (x *MediationReportSpec) GetTimeZone() string {
if x != nil {
return x.TimeZone
}
return ""
}
// A row of the returning report.
type ReportRow struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Map of dimension values in a row, with keys as enum name of the dimensions.
DimensionValues map[string]*ReportRow_DimensionValue `protobuf:"bytes,1,rep,name=dimension_values,json=dimensionValues,proto3" json:"dimension_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Map of metric values in a row, with keys as enum name of the metrics. If
// a metric being requested has no value returned, the map will not include
// it.
MetricValues map[string]*ReportRow_MetricValue `protobuf:"bytes,2,rep,name=metric_values,json=metricValues,proto3" json:"metric_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ReportRow) Reset() {
*x = ReportRow{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_admob_v1_admob_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportRow) String() string {
return protoimpl.X.MessageStringOf(x)
}