-
Notifications
You must be signed in to change notification settings - Fork 3
/
offline_user_data.pb.go
executable file
·1770 lines (1599 loc) · 80.6 KB
/
offline_user_data.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 2023 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.31.0
// protoc v4.23.2
// source: google/ads/googleads/v15/common/offline_user_data.proto
package common
import (
enums "github.com/dictav/go-genproto-googleads/pb/v15/enums"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// Address identifier of offline data.
type OfflineUserAddressInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// First name of the user, which is hashed as SHA-256 after normalized
// (Lowercase all characters; Remove any extra spaces before, after, and in
// between).
HashedFirstName *string `protobuf:"bytes,7,opt,name=hashed_first_name,json=hashedFirstName,proto3,oneof" json:"hashed_first_name,omitempty"`
// Last name of the user, which is hashed as SHA-256 after normalized (lower
// case only and no punctuation).
HashedLastName *string `protobuf:"bytes,8,opt,name=hashed_last_name,json=hashedLastName,proto3,oneof" json:"hashed_last_name,omitempty"`
// City of the address. Only accepted for Store Sales and
// ConversionAdjustmentUploadService.
City *string `protobuf:"bytes,9,opt,name=city,proto3,oneof" json:"city,omitempty"`
// State code of the address. Only accepted for Store Sales and
// ConversionAdjustmentUploadService.
State *string `protobuf:"bytes,10,opt,name=state,proto3,oneof" json:"state,omitempty"`
// 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
CountryCode *string `protobuf:"bytes,11,opt,name=country_code,json=countryCode,proto3,oneof" json:"country_code,omitempty"`
// Postal code of the user's address.
PostalCode *string `protobuf:"bytes,12,opt,name=postal_code,json=postalCode,proto3,oneof" json:"postal_code,omitempty"`
// The street address of the user hashed using SHA-256 hash function after
// normalization (lower case only). Only accepted for
// ConversionAdjustmentUploadService.
HashedStreetAddress *string `protobuf:"bytes,13,opt,name=hashed_street_address,json=hashedStreetAddress,proto3,oneof" json:"hashed_street_address,omitempty"`
}
func (x *OfflineUserAddressInfo) Reset() {
*x = OfflineUserAddressInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OfflineUserAddressInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OfflineUserAddressInfo) ProtoMessage() {}
func (x *OfflineUserAddressInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_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 OfflineUserAddressInfo.ProtoReflect.Descriptor instead.
func (*OfflineUserAddressInfo) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{0}
}
func (x *OfflineUserAddressInfo) GetHashedFirstName() string {
if x != nil && x.HashedFirstName != nil {
return *x.HashedFirstName
}
return ""
}
func (x *OfflineUserAddressInfo) GetHashedLastName() string {
if x != nil && x.HashedLastName != nil {
return *x.HashedLastName
}
return ""
}
func (x *OfflineUserAddressInfo) GetCity() string {
if x != nil && x.City != nil {
return *x.City
}
return ""
}
func (x *OfflineUserAddressInfo) GetState() string {
if x != nil && x.State != nil {
return *x.State
}
return ""
}
func (x *OfflineUserAddressInfo) GetCountryCode() string {
if x != nil && x.CountryCode != nil {
return *x.CountryCode
}
return ""
}
func (x *OfflineUserAddressInfo) GetPostalCode() string {
if x != nil && x.PostalCode != nil {
return *x.PostalCode
}
return ""
}
func (x *OfflineUserAddressInfo) GetHashedStreetAddress() string {
if x != nil && x.HashedStreetAddress != nil {
return *x.HashedStreetAddress
}
return ""
}
// User identifying information.
type UserIdentifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Source of the user identifier when the upload is from Store Sales,
// ConversionUploadService, or ConversionAdjustmentUploadService.
UserIdentifierSource enums.UserIdentifierSourceEnum_UserIdentifierSource `protobuf:"varint,6,opt,name=user_identifier_source,json=userIdentifierSource,proto3,enum=google.ads.googleads.v15.enums.UserIdentifierSourceEnum_UserIdentifierSource" json:"user_identifier_source,omitempty"`
// Exactly one must be specified. For OfflineUserDataJobService, Customer
// Match accepts hashed_email, hashed_phone_number, mobile_id,
// third_party_user_id, and address_info; Store Sales accepts hashed_email,
// hashed_phone_number, third_party_user_id, and address_info.
// ConversionUploadService accepts hashed_email and hashed_phone_number.
// ConversionAdjustmentUploadService accepts hashed_email,
// hashed_phone_number, and address_info.
//
// Types that are assignable to Identifier:
// *UserIdentifier_HashedEmail
// *UserIdentifier_HashedPhoneNumber
// *UserIdentifier_MobileId
// *UserIdentifier_ThirdPartyUserId
// *UserIdentifier_AddressInfo
Identifier isUserIdentifier_Identifier `protobuf_oneof:"identifier"`
}
func (x *UserIdentifier) Reset() {
*x = UserIdentifier{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserIdentifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserIdentifier) ProtoMessage() {}
func (x *UserIdentifier) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_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 UserIdentifier.ProtoReflect.Descriptor instead.
func (*UserIdentifier) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{1}
}
func (x *UserIdentifier) GetUserIdentifierSource() enums.UserIdentifierSourceEnum_UserIdentifierSource {
if x != nil {
return x.UserIdentifierSource
}
return enums.UserIdentifierSourceEnum_UserIdentifierSource(0)
}
func (m *UserIdentifier) GetIdentifier() isUserIdentifier_Identifier {
if m != nil {
return m.Identifier
}
return nil
}
func (x *UserIdentifier) GetHashedEmail() string {
if x, ok := x.GetIdentifier().(*UserIdentifier_HashedEmail); ok {
return x.HashedEmail
}
return ""
}
func (x *UserIdentifier) GetHashedPhoneNumber() string {
if x, ok := x.GetIdentifier().(*UserIdentifier_HashedPhoneNumber); ok {
return x.HashedPhoneNumber
}
return ""
}
func (x *UserIdentifier) GetMobileId() string {
if x, ok := x.GetIdentifier().(*UserIdentifier_MobileId); ok {
return x.MobileId
}
return ""
}
func (x *UserIdentifier) GetThirdPartyUserId() string {
if x, ok := x.GetIdentifier().(*UserIdentifier_ThirdPartyUserId); ok {
return x.ThirdPartyUserId
}
return ""
}
func (x *UserIdentifier) GetAddressInfo() *OfflineUserAddressInfo {
if x, ok := x.GetIdentifier().(*UserIdentifier_AddressInfo); ok {
return x.AddressInfo
}
return nil
}
type isUserIdentifier_Identifier interface {
isUserIdentifier_Identifier()
}
type UserIdentifier_HashedEmail struct {
// Hashed email address using SHA-256 hash function after normalization.
// Accepted for Customer Match, Store Sales, ConversionUploadService, and
// ConversionAdjustmentUploadService.
HashedEmail string `protobuf:"bytes,7,opt,name=hashed_email,json=hashedEmail,proto3,oneof"`
}
type UserIdentifier_HashedPhoneNumber struct {
// Hashed phone number using SHA-256 hash function after normalization
// (E164 standard). Accepted for Customer Match, Store Sales,
// ConversionUploadService, and ConversionAdjustmentUploadService.
HashedPhoneNumber string `protobuf:"bytes,8,opt,name=hashed_phone_number,json=hashedPhoneNumber,proto3,oneof"`
}
type UserIdentifier_MobileId struct {
// Mobile device ID (advertising ID/IDFA). Accepted only for Customer Match.
MobileId string `protobuf:"bytes,9,opt,name=mobile_id,json=mobileId,proto3,oneof"`
}
type UserIdentifier_ThirdPartyUserId struct {
// Advertiser-assigned user ID for Customer Match upload, or
// third-party-assigned user ID for Store Sales. Accepted only for Customer
// Match and Store Sales.
ThirdPartyUserId string `protobuf:"bytes,10,opt,name=third_party_user_id,json=thirdPartyUserId,proto3,oneof"`
}
type UserIdentifier_AddressInfo struct {
// Address information. Accepted only for Customer Match, Store Sales, and
// ConversionAdjustmentUploadService.
AddressInfo *OfflineUserAddressInfo `protobuf:"bytes,5,opt,name=address_info,json=addressInfo,proto3,oneof"`
}
func (*UserIdentifier_HashedEmail) isUserIdentifier_Identifier() {}
func (*UserIdentifier_HashedPhoneNumber) isUserIdentifier_Identifier() {}
func (*UserIdentifier_MobileId) isUserIdentifier_Identifier() {}
func (*UserIdentifier_ThirdPartyUserId) isUserIdentifier_Identifier() {}
func (*UserIdentifier_AddressInfo) isUserIdentifier_Identifier() {}
// Attribute of the store sales transaction.
type TransactionAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Timestamp when transaction occurred. Required.
// The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an
// optional timezone offset from UTC. If the offset is absent, the API will
// use the account's timezone as default.
// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
TransactionDateTime *string `protobuf:"bytes,8,opt,name=transaction_date_time,json=transactionDateTime,proto3,oneof" json:"transaction_date_time,omitempty"`
// Transaction amount in micros. Required.
// Transaction amount in micros needs to be greater than 1000.
// If item Attributes are provided, it represents the total value of the
// items, after multiplying the unit price per item by the quantity provided
// in the ItemAttributes.
TransactionAmountMicros *float64 `protobuf:"fixed64,9,opt,name=transaction_amount_micros,json=transactionAmountMicros,proto3,oneof" json:"transaction_amount_micros,omitempty"`
// Transaction currency code. ISO 4217 three-letter code is used. Required.
CurrencyCode *string `protobuf:"bytes,10,opt,name=currency_code,json=currencyCode,proto3,oneof" json:"currency_code,omitempty"`
// The resource name of conversion action to report conversions to.
// Required.
ConversionAction *string `protobuf:"bytes,11,opt,name=conversion_action,json=conversionAction,proto3,oneof" json:"conversion_action,omitempty"`
// Transaction order id.
// Accessible only to customers on the allow-list.
OrderId *string `protobuf:"bytes,12,opt,name=order_id,json=orderId,proto3,oneof" json:"order_id,omitempty"`
// Store attributes of the transaction.
// Accessible only to customers on the allow-list.
StoreAttribute *StoreAttribute `protobuf:"bytes,6,opt,name=store_attribute,json=storeAttribute,proto3" json:"store_attribute,omitempty"`
// Value of the custom variable for each transaction.
// Accessible only to customers on the allow-list.
CustomValue *string `protobuf:"bytes,13,opt,name=custom_value,json=customValue,proto3,oneof" json:"custom_value,omitempty"`
// Item attributes of the transaction.
ItemAttribute *ItemAttribute `protobuf:"bytes,14,opt,name=item_attribute,json=itemAttribute,proto3" json:"item_attribute,omitempty"`
}
func (x *TransactionAttribute) Reset() {
*x = TransactionAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransactionAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransactionAttribute) ProtoMessage() {}
func (x *TransactionAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_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 TransactionAttribute.ProtoReflect.Descriptor instead.
func (*TransactionAttribute) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{2}
}
func (x *TransactionAttribute) GetTransactionDateTime() string {
if x != nil && x.TransactionDateTime != nil {
return *x.TransactionDateTime
}
return ""
}
func (x *TransactionAttribute) GetTransactionAmountMicros() float64 {
if x != nil && x.TransactionAmountMicros != nil {
return *x.TransactionAmountMicros
}
return 0
}
func (x *TransactionAttribute) GetCurrencyCode() string {
if x != nil && x.CurrencyCode != nil {
return *x.CurrencyCode
}
return ""
}
func (x *TransactionAttribute) GetConversionAction() string {
if x != nil && x.ConversionAction != nil {
return *x.ConversionAction
}
return ""
}
func (x *TransactionAttribute) GetOrderId() string {
if x != nil && x.OrderId != nil {
return *x.OrderId
}
return ""
}
func (x *TransactionAttribute) GetStoreAttribute() *StoreAttribute {
if x != nil {
return x.StoreAttribute
}
return nil
}
func (x *TransactionAttribute) GetCustomValue() string {
if x != nil && x.CustomValue != nil {
return *x.CustomValue
}
return ""
}
func (x *TransactionAttribute) GetItemAttribute() *ItemAttribute {
if x != nil {
return x.ItemAttribute
}
return nil
}
// Store attributes of the transaction.
type StoreAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Store code from
// https://support.google.com/business/answer/3370250#storecode
StoreCode *string `protobuf:"bytes,2,opt,name=store_code,json=storeCode,proto3,oneof" json:"store_code,omitempty"`
}
func (x *StoreAttribute) Reset() {
*x = StoreAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StoreAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StoreAttribute) ProtoMessage() {}
func (x *StoreAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[3]
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 StoreAttribute.ProtoReflect.Descriptor instead.
func (*StoreAttribute) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{3}
}
func (x *StoreAttribute) GetStoreCode() string {
if x != nil && x.StoreCode != nil {
return *x.StoreCode
}
return ""
}
// Item attributes of the transaction.
type ItemAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A unique identifier of a product. It can be either the Merchant Center Item
// ID or GTIN (Global Trade Item Number).
ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
// ID of the Merchant Center Account.
MerchantId *int64 `protobuf:"varint,2,opt,name=merchant_id,json=merchantId,proto3,oneof" json:"merchant_id,omitempty"`
// Common Locale Data Repository (CLDR) territory code of the country
// associated with the feed where your items are uploaded. See
// https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes
// for more information.
CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// ISO 639-1 code of the language associated with the feed where your items
// are uploaded
LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// The number of items sold. Defaults to 1 if not set.
Quantity int64 `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"`
}
func (x *ItemAttribute) Reset() {
*x = ItemAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ItemAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ItemAttribute) ProtoMessage() {}
func (x *ItemAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[4]
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 ItemAttribute.ProtoReflect.Descriptor instead.
func (*ItemAttribute) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{4}
}
func (x *ItemAttribute) GetItemId() string {
if x != nil {
return x.ItemId
}
return ""
}
func (x *ItemAttribute) GetMerchantId() int64 {
if x != nil && x.MerchantId != nil {
return *x.MerchantId
}
return 0
}
func (x *ItemAttribute) GetCountryCode() string {
if x != nil {
return x.CountryCode
}
return ""
}
func (x *ItemAttribute) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (x *ItemAttribute) GetQuantity() int64 {
if x != nil {
return x.Quantity
}
return 0
}
// User data holding user identifiers and attributes.
type UserData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// User identification info. Required.
UserIdentifiers []*UserIdentifier `protobuf:"bytes,1,rep,name=user_identifiers,json=userIdentifiers,proto3" json:"user_identifiers,omitempty"`
// Additional transactions/attributes associated with the user.
// Required when updating store sales data.
TransactionAttribute *TransactionAttribute `protobuf:"bytes,2,opt,name=transaction_attribute,json=transactionAttribute,proto3" json:"transaction_attribute,omitempty"`
// Additional attributes associated with the user. Required when updating
// customer match attributes. These have an expiration of 540 days.
UserAttribute *UserAttribute `protobuf:"bytes,3,opt,name=user_attribute,json=userAttribute,proto3" json:"user_attribute,omitempty"`
// The consent setting for the user. Customer match will ignore this field
// and return a warning.
Consent *Consent `protobuf:"bytes,4,opt,name=consent,proto3,oneof" json:"consent,omitempty"`
}
func (x *UserData) Reset() {
*x = UserData{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserData) ProtoMessage() {}
func (x *UserData) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[5]
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 UserData.ProtoReflect.Descriptor instead.
func (*UserData) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{5}
}
func (x *UserData) GetUserIdentifiers() []*UserIdentifier {
if x != nil {
return x.UserIdentifiers
}
return nil
}
func (x *UserData) GetTransactionAttribute() *TransactionAttribute {
if x != nil {
return x.TransactionAttribute
}
return nil
}
func (x *UserData) GetUserAttribute() *UserAttribute {
if x != nil {
return x.UserAttribute
}
return nil
}
func (x *UserData) GetConsent() *Consent {
if x != nil {
return x.Consent
}
return nil
}
// User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job
// type.
type UserAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Advertiser defined lifetime value for the user.
LifetimeValueMicros *int64 `protobuf:"varint,1,opt,name=lifetime_value_micros,json=lifetimeValueMicros,proto3,oneof" json:"lifetime_value_micros,omitempty"`
// Advertiser defined lifetime value bucket for the user. The valid range for
// a lifetime value bucket is from 1 (low) to 10 (high), except for remove
// operation where 0 will also be accepted.
LifetimeValueBucket *int32 `protobuf:"varint,2,opt,name=lifetime_value_bucket,json=lifetimeValueBucket,proto3,oneof" json:"lifetime_value_bucket,omitempty"`
// Timestamp of the last purchase made by the user.
// The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
// optional timezone offset from UTC. If the offset is absent, the API will
// use the account's timezone as default.
LastPurchaseDateTime string `protobuf:"bytes,3,opt,name=last_purchase_date_time,json=lastPurchaseDateTime,proto3" json:"last_purchase_date_time,omitempty"`
// Advertiser defined average number of purchases that are made by the user in
// a 30 day period.
AveragePurchaseCount int32 `protobuf:"varint,4,opt,name=average_purchase_count,json=averagePurchaseCount,proto3" json:"average_purchase_count,omitempty"`
// Advertiser defined average purchase value in micros for the user.
AveragePurchaseValueMicros int64 `protobuf:"varint,5,opt,name=average_purchase_value_micros,json=averagePurchaseValueMicros,proto3" json:"average_purchase_value_micros,omitempty"`
// Timestamp when the user was acquired.
// The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
// optional timezone offset from UTC. If the offset is absent, the API will
// use the account's timezone as default.
AcquisitionDateTime string `protobuf:"bytes,6,opt,name=acquisition_date_time,json=acquisitionDateTime,proto3" json:"acquisition_date_time,omitempty"`
// The shopping loyalty related data. Shopping utilizes this data to provide
// users with a better experience. Accessible only to merchants on the
// allow-list with the user's consent.
ShoppingLoyalty *ShoppingLoyalty `protobuf:"bytes,7,opt,name=shopping_loyalty,json=shoppingLoyalty,proto3,oneof" json:"shopping_loyalty,omitempty"`
// Optional. Advertiser defined lifecycle stage for the user. The accepted
// values are "Lead", "Active" and "Churned".
LifecycleStage string `protobuf:"bytes,8,opt,name=lifecycle_stage,json=lifecycleStage,proto3" json:"lifecycle_stage,omitempty"`
// Optional. Timestamp of the first purchase made by the user.
// The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
// optional timezone offset from UTC. If the offset is absent, the API will
// use the account's timezone as default.
FirstPurchaseDateTime string `protobuf:"bytes,9,opt,name=first_purchase_date_time,json=firstPurchaseDateTime,proto3" json:"first_purchase_date_time,omitempty"`
// Optional. Advertiser defined events and their attributes. All the values in
// the nested fields are required. Currently this field is in beta.
EventAttribute []*EventAttribute `protobuf:"bytes,10,rep,name=event_attribute,json=eventAttribute,proto3" json:"event_attribute,omitempty"`
}
func (x *UserAttribute) Reset() {
*x = UserAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserAttribute) ProtoMessage() {}
func (x *UserAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[6]
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 UserAttribute.ProtoReflect.Descriptor instead.
func (*UserAttribute) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{6}
}
func (x *UserAttribute) GetLifetimeValueMicros() int64 {
if x != nil && x.LifetimeValueMicros != nil {
return *x.LifetimeValueMicros
}
return 0
}
func (x *UserAttribute) GetLifetimeValueBucket() int32 {
if x != nil && x.LifetimeValueBucket != nil {
return *x.LifetimeValueBucket
}
return 0
}
func (x *UserAttribute) GetLastPurchaseDateTime() string {
if x != nil {
return x.LastPurchaseDateTime
}
return ""
}
func (x *UserAttribute) GetAveragePurchaseCount() int32 {
if x != nil {
return x.AveragePurchaseCount
}
return 0
}
func (x *UserAttribute) GetAveragePurchaseValueMicros() int64 {
if x != nil {
return x.AveragePurchaseValueMicros
}
return 0
}
func (x *UserAttribute) GetAcquisitionDateTime() string {
if x != nil {
return x.AcquisitionDateTime
}
return ""
}
func (x *UserAttribute) GetShoppingLoyalty() *ShoppingLoyalty {
if x != nil {
return x.ShoppingLoyalty
}
return nil
}
func (x *UserAttribute) GetLifecycleStage() string {
if x != nil {
return x.LifecycleStage
}
return ""
}
func (x *UserAttribute) GetFirstPurchaseDateTime() string {
if x != nil {
return x.FirstPurchaseDateTime
}
return ""
}
func (x *UserAttribute) GetEventAttribute() []*EventAttribute {
if x != nil {
return x.EventAttribute
}
return nil
}
// Advertiser defined events and their attributes. All the values in the
// nested fields are required.
type EventAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Advertiser defined event to be used for remarketing. The accepted
// values are "Viewed", "Cart", "Purchased" and "Recommended".
Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
// Required. Timestamp at which the event happened.
// The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an
// optional timezone offset from UTC. If the offset is absent, the API will
// use the account's timezone as default.
EventDateTime string `protobuf:"bytes,2,opt,name=event_date_time,json=eventDateTime,proto3" json:"event_date_time,omitempty"`
// Required. Item attributes of the event.
ItemAttribute []*EventItemAttribute `protobuf:"bytes,3,rep,name=item_attribute,json=itemAttribute,proto3" json:"item_attribute,omitempty"`
}
func (x *EventAttribute) Reset() {
*x = EventAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EventAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventAttribute) ProtoMessage() {}
func (x *EventAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[7]
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 EventAttribute.ProtoReflect.Descriptor instead.
func (*EventAttribute) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{7}
}
func (x *EventAttribute) GetEvent() string {
if x != nil {
return x.Event
}
return ""
}
func (x *EventAttribute) GetEventDateTime() string {
if x != nil {
return x.EventDateTime
}
return ""
}
func (x *EventAttribute) GetItemAttribute() []*EventItemAttribute {
if x != nil {
return x.ItemAttribute
}
return nil
}
// Event Item attributes of the Customer Match.
type EventItemAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. A unique identifier of a product. It can be either the Merchant
// Center Item ID or GTIN (Global Trade Item Number).
ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
}
func (x *EventItemAttribute) Reset() {
*x = EventItemAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EventItemAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventItemAttribute) ProtoMessage() {}
func (x *EventItemAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[8]
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 EventItemAttribute.ProtoReflect.Descriptor instead.
func (*EventItemAttribute) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{8}
}
func (x *EventItemAttribute) GetItemId() string {
if x != nil {
return x.ItemId
}
return ""
}
// The shopping loyalty related data. Shopping utilizes this data to provide
// users with a better experience.
// Accessible only to merchants on the allow-list.
type ShoppingLoyalty struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The membership tier. It is a free-form string as each merchant may have
// their own loyalty system. For example, it could be a number from 1 to 10,
// or a string such as "Golden" or "Silver", or even empty string "".
LoyaltyTier *string `protobuf:"bytes,1,opt,name=loyalty_tier,json=loyaltyTier,proto3,oneof" json:"loyalty_tier,omitempty"`
}
func (x *ShoppingLoyalty) Reset() {
*x = ShoppingLoyalty{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ShoppingLoyalty) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShoppingLoyalty) ProtoMessage() {}
func (x *ShoppingLoyalty) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[9]
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 ShoppingLoyalty.ProtoReflect.Descriptor instead.
func (*ShoppingLoyalty) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v15_common_offline_user_data_proto_rawDescGZIP(), []int{9}
}
func (x *ShoppingLoyalty) GetLoyaltyTier() string {
if x != nil && x.LoyaltyTier != nil {
return *x.LoyaltyTier
}
return ""
}
// Metadata for customer match user list.
type CustomerMatchUserListMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of remarketing list to update data.
// Required for job of CUSTOMER_MATCH_USER_LIST type.
UserList *string `protobuf:"bytes,2,opt,name=user_list,json=userList,proto3,oneof" json:"user_list,omitempty"`
// The consent setting for all the users in this job.
Consent *Consent `protobuf:"bytes,3,opt,name=consent,proto3,oneof" json:"consent,omitempty"`
}
func (x *CustomerMatchUserListMetadata) Reset() {
*x = CustomerMatchUserListMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomerMatchUserListMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomerMatchUserListMetadata) ProtoMessage() {}
func (x *CustomerMatchUserListMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v15_common_offline_user_data_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)