forked from felicson/google-ads-go
/
asset_types.pb.go
1910 lines (1719 loc) Β· 84.5 KB
/
asset_types.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 2021 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.27.1
// protoc v3.15.8
// source: google/ads/googleads/v8/common/asset_types.proto
package common
import (
enums "github.com/felicson/google-ads-go/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)
)
// A YouTube asset.
type YoutubeVideoAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// YouTube video id. This is the 11 character string value used in the
// YouTube video URL.
YoutubeVideoId *string `protobuf:"bytes,2,opt,name=youtube_video_id,json=youtubeVideoId,proto3,oneof" json:"youtube_video_id,omitempty"`
// YouTube video title.
YoutubeVideoTitle string `protobuf:"bytes,3,opt,name=youtube_video_title,json=youtubeVideoTitle,proto3" json:"youtube_video_title,omitempty"`
}
func (x *YoutubeVideoAsset) Reset() {
*x = YoutubeVideoAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *YoutubeVideoAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*YoutubeVideoAsset) ProtoMessage() {}
func (x *YoutubeVideoAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 YoutubeVideoAsset.ProtoReflect.Descriptor instead.
func (*YoutubeVideoAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{0}
}
func (x *YoutubeVideoAsset) GetYoutubeVideoId() string {
if x != nil && x.YoutubeVideoId != nil {
return *x.YoutubeVideoId
}
return ""
}
func (x *YoutubeVideoAsset) GetYoutubeVideoTitle() string {
if x != nil {
return x.YoutubeVideoTitle
}
return ""
}
// A MediaBundle asset.
type MediaBundleAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Media bundle (ZIP file) asset data. The format of the uploaded ZIP file
// depends on the ad field where it will be used. For more information on the
// format, see the documentation of the ad field where you plan on using the
// MediaBundleAsset. This field is mutate only.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"`
}
func (x *MediaBundleAsset) Reset() {
*x = MediaBundleAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MediaBundleAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MediaBundleAsset) ProtoMessage() {}
func (x *MediaBundleAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 MediaBundleAsset.ProtoReflect.Descriptor instead.
func (*MediaBundleAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{1}
}
func (x *MediaBundleAsset) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
// An Image asset.
type ImageAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The raw bytes data of an image. This field is mutate only.
Data []byte `protobuf:"bytes,5,opt,name=data,proto3,oneof" json:"data,omitempty"`
// File size of the image asset in bytes.
FileSize *int64 `protobuf:"varint,6,opt,name=file_size,json=fileSize,proto3,oneof" json:"file_size,omitempty"`
// MIME type of the image asset.
MimeType enums.MimeTypeEnum_MimeType `protobuf:"varint,3,opt,name=mime_type,json=mimeType,proto3,enum=google.ads.googleads.v8.enums.MimeTypeEnum_MimeType" json:"mime_type,omitempty"`
// Metadata for this image at its original size.
FullSize *ImageDimension `protobuf:"bytes,4,opt,name=full_size,json=fullSize,proto3" json:"full_size,omitempty"`
}
func (x *ImageAsset) Reset() {
*x = ImageAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImageAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImageAsset) ProtoMessage() {}
func (x *ImageAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 ImageAsset.ProtoReflect.Descriptor instead.
func (*ImageAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{2}
}
func (x *ImageAsset) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *ImageAsset) GetFileSize() int64 {
if x != nil && x.FileSize != nil {
return *x.FileSize
}
return 0
}
func (x *ImageAsset) GetMimeType() enums.MimeTypeEnum_MimeType {
if x != nil {
return x.MimeType
}
return enums.MimeTypeEnum_MimeType(0)
}
func (x *ImageAsset) GetFullSize() *ImageDimension {
if x != nil {
return x.FullSize
}
return nil
}
// Metadata for an image at a certain size, either original or resized.
type ImageDimension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Height of the image.
HeightPixels *int64 `protobuf:"varint,4,opt,name=height_pixels,json=heightPixels,proto3,oneof" json:"height_pixels,omitempty"`
// Width of the image.
WidthPixels *int64 `protobuf:"varint,5,opt,name=width_pixels,json=widthPixels,proto3,oneof" json:"width_pixels,omitempty"`
// A URL that returns the image with this height and width.
Url *string `protobuf:"bytes,6,opt,name=url,proto3,oneof" json:"url,omitempty"`
}
func (x *ImageDimension) Reset() {
*x = ImageDimension{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ImageDimension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImageDimension) ProtoMessage() {}
func (x *ImageDimension) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 ImageDimension.ProtoReflect.Descriptor instead.
func (*ImageDimension) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{3}
}
func (x *ImageDimension) GetHeightPixels() int64 {
if x != nil && x.HeightPixels != nil {
return *x.HeightPixels
}
return 0
}
func (x *ImageDimension) GetWidthPixels() int64 {
if x != nil && x.WidthPixels != nil {
return *x.WidthPixels
}
return 0
}
func (x *ImageDimension) GetUrl() string {
if x != nil && x.Url != nil {
return *x.Url
}
return ""
}
// A Text asset.
type TextAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Text content of the text asset.
Text *string `protobuf:"bytes,2,opt,name=text,proto3,oneof" json:"text,omitempty"`
}
func (x *TextAsset) Reset() {
*x = TextAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TextAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TextAsset) ProtoMessage() {}
func (x *TextAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 TextAsset.ProtoReflect.Descriptor instead.
func (*TextAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{4}
}
func (x *TextAsset) GetText() string {
if x != nil && x.Text != nil {
return *x.Text
}
return ""
}
// A Lead Form asset.
type LeadFormAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the business being advertised.
BusinessName string `protobuf:"bytes,10,opt,name=business_name,json=businessName,proto3" json:"business_name,omitempty"`
// Required. Pre-defined display text that encourages user to expand the form.
CallToActionType enums.LeadFormCallToActionTypeEnum_LeadFormCallToActionType `protobuf:"varint,17,opt,name=call_to_action_type,json=callToActionType,proto3,enum=google.ads.googleads.v8.enums.LeadFormCallToActionTypeEnum_LeadFormCallToActionType" json:"call_to_action_type,omitempty"`
// Required. Text giving a clear value proposition of what users expect once they expand
// the form.
CallToActionDescription string `protobuf:"bytes,18,opt,name=call_to_action_description,json=callToActionDescription,proto3" json:"call_to_action_description,omitempty"`
// Required. Headline of the expanded form to describe what the form is asking for or
// facilitating.
Headline string `protobuf:"bytes,12,opt,name=headline,proto3" json:"headline,omitempty"`
// Required. Detailed description of the expanded form to describe what the form is
// asking for or facilitating.
Description string `protobuf:"bytes,13,opt,name=description,proto3" json:"description,omitempty"`
// Required. Link to a page describing the policy on how the collected data is handled
// by the advertiser/business.
PrivacyPolicyUrl string `protobuf:"bytes,14,opt,name=privacy_policy_url,json=privacyPolicyUrl,proto3" json:"privacy_policy_url,omitempty"`
// Headline of text shown after form submission that describes how the
// advertiser will follow up with the user.
PostSubmitHeadline *string `protobuf:"bytes,15,opt,name=post_submit_headline,json=postSubmitHeadline,proto3,oneof" json:"post_submit_headline,omitempty"`
// Detailed description shown after form submission that describes how the
// advertiser will follow up with the user.
PostSubmitDescription *string `protobuf:"bytes,16,opt,name=post_submit_description,json=postSubmitDescription,proto3,oneof" json:"post_submit_description,omitempty"`
// Ordered list of input fields.
Fields []*LeadFormField `protobuf:"bytes,8,rep,name=fields,proto3" json:"fields,omitempty"`
// Configured methods for collected lead data to be delivered to advertiser.
// Only one method typed as WebhookDelivery can be configured.
DeliveryMethods []*LeadFormDeliveryMethod `protobuf:"bytes,9,rep,name=delivery_methods,json=deliveryMethods,proto3" json:"delivery_methods,omitempty"`
// Pre-defined display text that encourages user action after the form is
// submitted.
PostSubmitCallToActionType enums.LeadFormPostSubmitCallToActionTypeEnum_LeadFormPostSubmitCallToActionType `protobuf:"varint,19,opt,name=post_submit_call_to_action_type,json=postSubmitCallToActionType,proto3,enum=google.ads.googleads.v8.enums.LeadFormPostSubmitCallToActionTypeEnum_LeadFormPostSubmitCallToActionType" json:"post_submit_call_to_action_type,omitempty"`
// Asset resource name of the background image. The minimum size is 600x314
// and the aspect ratio must be 1.91:1 (+-1%).
BackgroundImageAsset *string `protobuf:"bytes,20,opt,name=background_image_asset,json=backgroundImageAsset,proto3,oneof" json:"background_image_asset,omitempty"`
// Desired intent for the lead form, e.g. more volume or more qualified.
DesiredIntent enums.LeadFormDesiredIntentEnum_LeadFormDesiredIntent `protobuf:"varint,21,opt,name=desired_intent,json=desiredIntent,proto3,enum=google.ads.googleads.v8.enums.LeadFormDesiredIntentEnum_LeadFormDesiredIntent" json:"desired_intent,omitempty"`
// Custom disclosure shown along with Google disclaimer on the lead form.
// Accessible to allowed customers only.
CustomDisclosure *string `protobuf:"bytes,22,opt,name=custom_disclosure,json=customDisclosure,proto3,oneof" json:"custom_disclosure,omitempty"`
}
func (x *LeadFormAsset) Reset() {
*x = LeadFormAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeadFormAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeadFormAsset) ProtoMessage() {}
func (x *LeadFormAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 LeadFormAsset.ProtoReflect.Descriptor instead.
func (*LeadFormAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{5}
}
func (x *LeadFormAsset) GetBusinessName() string {
if x != nil {
return x.BusinessName
}
return ""
}
func (x *LeadFormAsset) GetCallToActionType() enums.LeadFormCallToActionTypeEnum_LeadFormCallToActionType {
if x != nil {
return x.CallToActionType
}
return enums.LeadFormCallToActionTypeEnum_LeadFormCallToActionType(0)
}
func (x *LeadFormAsset) GetCallToActionDescription() string {
if x != nil {
return x.CallToActionDescription
}
return ""
}
func (x *LeadFormAsset) GetHeadline() string {
if x != nil {
return x.Headline
}
return ""
}
func (x *LeadFormAsset) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *LeadFormAsset) GetPrivacyPolicyUrl() string {
if x != nil {
return x.PrivacyPolicyUrl
}
return ""
}
func (x *LeadFormAsset) GetPostSubmitHeadline() string {
if x != nil && x.PostSubmitHeadline != nil {
return *x.PostSubmitHeadline
}
return ""
}
func (x *LeadFormAsset) GetPostSubmitDescription() string {
if x != nil && x.PostSubmitDescription != nil {
return *x.PostSubmitDescription
}
return ""
}
func (x *LeadFormAsset) GetFields() []*LeadFormField {
if x != nil {
return x.Fields
}
return nil
}
func (x *LeadFormAsset) GetDeliveryMethods() []*LeadFormDeliveryMethod {
if x != nil {
return x.DeliveryMethods
}
return nil
}
func (x *LeadFormAsset) GetPostSubmitCallToActionType() enums.LeadFormPostSubmitCallToActionTypeEnum_LeadFormPostSubmitCallToActionType {
if x != nil {
return x.PostSubmitCallToActionType
}
return enums.LeadFormPostSubmitCallToActionTypeEnum_LeadFormPostSubmitCallToActionType(0)
}
func (x *LeadFormAsset) GetBackgroundImageAsset() string {
if x != nil && x.BackgroundImageAsset != nil {
return *x.BackgroundImageAsset
}
return ""
}
func (x *LeadFormAsset) GetDesiredIntent() enums.LeadFormDesiredIntentEnum_LeadFormDesiredIntent {
if x != nil {
return x.DesiredIntent
}
return enums.LeadFormDesiredIntentEnum_LeadFormDesiredIntent(0)
}
func (x *LeadFormAsset) GetCustomDisclosure() string {
if x != nil && x.CustomDisclosure != nil {
return *x.CustomDisclosure
}
return ""
}
// One input field instance within a form.
type LeadFormField struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Describes the input type, which may be a predefined type such as
// "full name" or a pre-vetted question like "Do you own a car?".
InputType enums.LeadFormFieldUserInputTypeEnum_LeadFormFieldUserInputType `protobuf:"varint,1,opt,name=input_type,json=inputType,proto3,enum=google.ads.googleads.v8.enums.LeadFormFieldUserInputTypeEnum_LeadFormFieldUserInputType" json:"input_type,omitempty"`
// Defines answer configuration that this form field accepts. If oneof is not
// set, this is a free-text answer.
//
// Types that are assignable to Answers:
// *LeadFormField_SingleChoiceAnswers
Answers isLeadFormField_Answers `protobuf_oneof:"answers"`
}
func (x *LeadFormField) Reset() {
*x = LeadFormField{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeadFormField) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeadFormField) ProtoMessage() {}
func (x *LeadFormField) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 LeadFormField.ProtoReflect.Descriptor instead.
func (*LeadFormField) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{6}
}
func (x *LeadFormField) GetInputType() enums.LeadFormFieldUserInputTypeEnum_LeadFormFieldUserInputType {
if x != nil {
return x.InputType
}
return enums.LeadFormFieldUserInputTypeEnum_LeadFormFieldUserInputType(0)
}
func (m *LeadFormField) GetAnswers() isLeadFormField_Answers {
if m != nil {
return m.Answers
}
return nil
}
func (x *LeadFormField) GetSingleChoiceAnswers() *LeadFormSingleChoiceAnswers {
if x, ok := x.GetAnswers().(*LeadFormField_SingleChoiceAnswers); ok {
return x.SingleChoiceAnswers
}
return nil
}
type isLeadFormField_Answers interface {
isLeadFormField_Answers()
}
type LeadFormField_SingleChoiceAnswers struct {
// Answer configuration for a single choice question. Can be set only for
// pre-vetted question fields. Minimum of 2 answers required and maximum of
// 12 allowed.
SingleChoiceAnswers *LeadFormSingleChoiceAnswers `protobuf:"bytes,2,opt,name=single_choice_answers,json=singleChoiceAnswers,proto3,oneof"`
}
func (*LeadFormField_SingleChoiceAnswers) isLeadFormField_Answers() {}
// Defines possible answers for a single choice question, usually presented as
// a single-choice drop-down list.
type LeadFormSingleChoiceAnswers struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of choices for a single question field. The order of entries defines
// UI order. Minimum of 2 answers required and maximum of 12 allowed.
Answers []string `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"`
}
func (x *LeadFormSingleChoiceAnswers) Reset() {
*x = LeadFormSingleChoiceAnswers{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeadFormSingleChoiceAnswers) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeadFormSingleChoiceAnswers) ProtoMessage() {}
func (x *LeadFormSingleChoiceAnswers) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 LeadFormSingleChoiceAnswers.ProtoReflect.Descriptor instead.
func (*LeadFormSingleChoiceAnswers) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{7}
}
func (x *LeadFormSingleChoiceAnswers) GetAnswers() []string {
if x != nil {
return x.Answers
}
return nil
}
// A configuration of how leads are delivered to the advertiser.
type LeadFormDeliveryMethod struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Various subtypes of delivery.
//
// Types that are assignable to DeliveryDetails:
// *LeadFormDeliveryMethod_Webhook
DeliveryDetails isLeadFormDeliveryMethod_DeliveryDetails `protobuf_oneof:"delivery_details"`
}
func (x *LeadFormDeliveryMethod) Reset() {
*x = LeadFormDeliveryMethod{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeadFormDeliveryMethod) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeadFormDeliveryMethod) ProtoMessage() {}
func (x *LeadFormDeliveryMethod) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 LeadFormDeliveryMethod.ProtoReflect.Descriptor instead.
func (*LeadFormDeliveryMethod) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{8}
}
func (m *LeadFormDeliveryMethod) GetDeliveryDetails() isLeadFormDeliveryMethod_DeliveryDetails {
if m != nil {
return m.DeliveryDetails
}
return nil
}
func (x *LeadFormDeliveryMethod) GetWebhook() *WebhookDelivery {
if x, ok := x.GetDeliveryDetails().(*LeadFormDeliveryMethod_Webhook); ok {
return x.Webhook
}
return nil
}
type isLeadFormDeliveryMethod_DeliveryDetails interface {
isLeadFormDeliveryMethod_DeliveryDetails()
}
type LeadFormDeliveryMethod_Webhook struct {
// Webhook method of delivery.
Webhook *WebhookDelivery `protobuf:"bytes,1,opt,name=webhook,proto3,oneof"`
}
func (*LeadFormDeliveryMethod_Webhook) isLeadFormDeliveryMethod_DeliveryDetails() {}
// Google notifies the advertiser of leads by making HTTP calls to an
// endpoint they specify. The requests contain JSON matching a schema that
// Google publishes as part of form ads documentation.
type WebhookDelivery struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Webhook url specified by advertiser to send the lead.
AdvertiserWebhookUrl *string `protobuf:"bytes,4,opt,name=advertiser_webhook_url,json=advertiserWebhookUrl,proto3,oneof" json:"advertiser_webhook_url,omitempty"`
// Anti-spoofing secret set by the advertiser as part of the webhook payload.
GoogleSecret *string `protobuf:"bytes,5,opt,name=google_secret,json=googleSecret,proto3,oneof" json:"google_secret,omitempty"`
// The schema version that this delivery instance will use.
PayloadSchemaVersion *int64 `protobuf:"varint,6,opt,name=payload_schema_version,json=payloadSchemaVersion,proto3,oneof" json:"payload_schema_version,omitempty"`
}
func (x *WebhookDelivery) Reset() {
*x = WebhookDelivery{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WebhookDelivery) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WebhookDelivery) ProtoMessage() {}
func (x *WebhookDelivery) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_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 WebhookDelivery.ProtoReflect.Descriptor instead.
func (*WebhookDelivery) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{9}
}
func (x *WebhookDelivery) GetAdvertiserWebhookUrl() string {
if x != nil && x.AdvertiserWebhookUrl != nil {
return *x.AdvertiserWebhookUrl
}
return ""
}
func (x *WebhookDelivery) GetGoogleSecret() string {
if x != nil && x.GoogleSecret != nil {
return *x.GoogleSecret
}
return ""
}
func (x *WebhookDelivery) GetPayloadSchemaVersion() int64 {
if x != nil && x.PayloadSchemaVersion != nil {
return *x.PayloadSchemaVersion
}
return 0
}
// A Book on Google asset. Used to redirect user to book through Google.
// Book on Google will change the redirect url to book directly through
// Google.
type BookOnGoogleAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *BookOnGoogleAsset) Reset() {
*x = BookOnGoogleAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BookOnGoogleAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BookOnGoogleAsset) ProtoMessage() {}
func (x *BookOnGoogleAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[10]
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 BookOnGoogleAsset.ProtoReflect.Descriptor instead.
func (*BookOnGoogleAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{10}
}
// A Promotion asset.
type PromotionAsset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. A freeform description of what the promotion is targeting.
PromotionTarget string `protobuf:"bytes,1,opt,name=promotion_target,json=promotionTarget,proto3" json:"promotion_target,omitempty"`
// A modifier for qualification of the discount.
DiscountModifier enums.PromotionExtensionDiscountModifierEnum_PromotionExtensionDiscountModifier `protobuf:"varint,2,opt,name=discount_modifier,json=discountModifier,proto3,enum=google.ads.googleads.v8.enums.PromotionExtensionDiscountModifierEnum_PromotionExtensionDiscountModifier" json:"discount_modifier,omitempty"`
// Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
// format.
RedemptionStartDate string `protobuf:"bytes,7,opt,name=redemption_start_date,json=redemptionStartDate,proto3" json:"redemption_start_date,omitempty"`
// Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd
// format.
RedemptionEndDate string `protobuf:"bytes,8,opt,name=redemption_end_date,json=redemptionEndDate,proto3" json:"redemption_end_date,omitempty"`
// The occasion the promotion was intended for.
// If an occasion is set, the redemption window will need to fall within the
// date range associated with the occasion.
Occasion enums.PromotionExtensionOccasionEnum_PromotionExtensionOccasion `protobuf:"varint,9,opt,name=occasion,proto3,enum=google.ads.googleads.v8.enums.PromotionExtensionOccasionEnum_PromotionExtensionOccasion" json:"occasion,omitempty"`
// The language of the promotion.
// Represented as BCP 47 language tag.
LanguageCode string `protobuf:"bytes,10,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Start date of when this asset is effective and can begin serving, in
// yyyy-MM-dd format.
StartDate string `protobuf:"bytes,11,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// Last date of when this asset is effective and still serving, in yyyy-MM-dd
// format.
EndDate string `protobuf:"bytes,12,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// List of non-overlapping schedules specifying all time intervals for which
// the asset may serve. There can be a maximum of 6 schedules per day, 42 in
// total.
AdScheduleTargets []*AdScheduleInfo `protobuf:"bytes,13,rep,name=ad_schedule_targets,json=adScheduleTargets,proto3" json:"ad_schedule_targets,omitempty"`
// Discount type, can be percentage off or amount off.
//
// Types that are assignable to DiscountType:
// *PromotionAsset_PercentOff
// *PromotionAsset_MoneyAmountOff
DiscountType isPromotionAsset_DiscountType `protobuf_oneof:"discount_type"`
// Promotion trigger. Can be by promotion code or promo by eligible order
// amount.
//
// Types that are assignable to PromotionTrigger:
// *PromotionAsset_PromotionCode
// *PromotionAsset_OrdersOverAmount
PromotionTrigger isPromotionAsset_PromotionTrigger `protobuf_oneof:"promotion_trigger"`
}
func (x *PromotionAsset) Reset() {
*x = PromotionAsset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PromotionAsset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PromotionAsset) ProtoMessage() {}
func (x *PromotionAsset) ProtoReflect() protoreflect.Message {
mi := &file_google_ads_googleads_v8_common_asset_types_proto_msgTypes[11]
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 PromotionAsset.ProtoReflect.Descriptor instead.
func (*PromotionAsset) Descriptor() ([]byte, []int) {
return file_google_ads_googleads_v8_common_asset_types_proto_rawDescGZIP(), []int{11}
}
func (x *PromotionAsset) GetPromotionTarget() string {
if x != nil {
return x.PromotionTarget
}
return ""
}
func (x *PromotionAsset) GetDiscountModifier() enums.PromotionExtensionDiscountModifierEnum_PromotionExtensionDiscountModifier {
if x != nil {
return x.DiscountModifier
}
return enums.PromotionExtensionDiscountModifierEnum_PromotionExtensionDiscountModifier(0)
}
func (x *PromotionAsset) GetRedemptionStartDate() string {
if x != nil {
return x.RedemptionStartDate
}
return ""
}
func (x *PromotionAsset) GetRedemptionEndDate() string {
if x != nil {
return x.RedemptionEndDate
}
return ""
}
func (x *PromotionAsset) GetOccasion() enums.PromotionExtensionOccasionEnum_PromotionExtensionOccasion {
if x != nil {
return x.Occasion
}
return enums.PromotionExtensionOccasionEnum_PromotionExtensionOccasion(0)
}
func (x *PromotionAsset) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (x *PromotionAsset) GetStartDate() string {
if x != nil {
return x.StartDate
}
return ""
}
func (x *PromotionAsset) GetEndDate() string {
if x != nil {
return x.EndDate
}
return ""
}
func (x *PromotionAsset) GetAdScheduleTargets() []*AdScheduleInfo {
if x != nil {
return x.AdScheduleTargets
}
return nil
}
func (m *PromotionAsset) GetDiscountType() isPromotionAsset_DiscountType {
if m != nil {
return m.DiscountType
}
return nil
}
func (x *PromotionAsset) GetPercentOff() int64 {
if x, ok := x.GetDiscountType().(*PromotionAsset_PercentOff); ok {
return x.PercentOff
}
return 0
}
func (x *PromotionAsset) GetMoneyAmountOff() *Money {
if x, ok := x.GetDiscountType().(*PromotionAsset_MoneyAmountOff); ok {
return x.MoneyAmountOff
}
return nil
}
func (m *PromotionAsset) GetPromotionTrigger() isPromotionAsset_PromotionTrigger {
if m != nil {
return m.PromotionTrigger
}
return nil