/
ad_group_service.pb.go
525 lines (462 loc) · 21.6 KB
/
ad_group_service.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/services/ad_group_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
field_mask "google.golang.org/genproto/protobuf/field_mask"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Request message for [AdGroupService.GetAdGroup][google.ads.googleads.v2.services.AdGroupService.GetAdGroup].
type GetAdGroupRequest struct {
// The resource name of the ad group to fetch.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAdGroupRequest) Reset() { *m = GetAdGroupRequest{} }
func (m *GetAdGroupRequest) String() string { return proto.CompactTextString(m) }
func (*GetAdGroupRequest) ProtoMessage() {}
func (*GetAdGroupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2551d73f06de7113, []int{0}
}
func (m *GetAdGroupRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAdGroupRequest.Unmarshal(m, b)
}
func (m *GetAdGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAdGroupRequest.Marshal(b, m, deterministic)
}
func (m *GetAdGroupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAdGroupRequest.Merge(m, src)
}
func (m *GetAdGroupRequest) XXX_Size() int {
return xxx_messageInfo_GetAdGroupRequest.Size(m)
}
func (m *GetAdGroupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAdGroupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAdGroupRequest proto.InternalMessageInfo
func (m *GetAdGroupRequest) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
// Request message for [AdGroupService.MutateAdGroups][google.ads.googleads.v2.services.AdGroupService.MutateAdGroups].
type MutateAdGroupsRequest struct {
// The ID of the customer whose ad groups are being modified.
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// The list of operations to perform on individual ad groups.
Operations []*AdGroupOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
// If true, successful operations will be carried out and invalid
// operations will return errors. If false, all operations will be carried
// out in one transaction if and only if they are all valid.
// Default is false.
PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
// If true, the request is validated but not executed. Only errors are
// returned, not results.
ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateAdGroupsRequest) Reset() { *m = MutateAdGroupsRequest{} }
func (m *MutateAdGroupsRequest) String() string { return proto.CompactTextString(m) }
func (*MutateAdGroupsRequest) ProtoMessage() {}
func (*MutateAdGroupsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2551d73f06de7113, []int{1}
}
func (m *MutateAdGroupsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateAdGroupsRequest.Unmarshal(m, b)
}
func (m *MutateAdGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateAdGroupsRequest.Marshal(b, m, deterministic)
}
func (m *MutateAdGroupsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateAdGroupsRequest.Merge(m, src)
}
func (m *MutateAdGroupsRequest) XXX_Size() int {
return xxx_messageInfo_MutateAdGroupsRequest.Size(m)
}
func (m *MutateAdGroupsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateAdGroupsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateAdGroupsRequest proto.InternalMessageInfo
func (m *MutateAdGroupsRequest) GetCustomerId() string {
if m != nil {
return m.CustomerId
}
return ""
}
func (m *MutateAdGroupsRequest) GetOperations() []*AdGroupOperation {
if m != nil {
return m.Operations
}
return nil
}
func (m *MutateAdGroupsRequest) GetPartialFailure() bool {
if m != nil {
return m.PartialFailure
}
return false
}
func (m *MutateAdGroupsRequest) GetValidateOnly() bool {
if m != nil {
return m.ValidateOnly
}
return false
}
// A single operation (create, update, remove) on an ad group.
type AdGroupOperation struct {
// FieldMask that determines which resource fields are modified in an update.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// The mutate operation.
//
// Types that are valid to be assigned to Operation:
// *AdGroupOperation_Create
// *AdGroupOperation_Update
// *AdGroupOperation_Remove
Operation isAdGroupOperation_Operation `protobuf_oneof:"operation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AdGroupOperation) Reset() { *m = AdGroupOperation{} }
func (m *AdGroupOperation) String() string { return proto.CompactTextString(m) }
func (*AdGroupOperation) ProtoMessage() {}
func (*AdGroupOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_2551d73f06de7113, []int{2}
}
func (m *AdGroupOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AdGroupOperation.Unmarshal(m, b)
}
func (m *AdGroupOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AdGroupOperation.Marshal(b, m, deterministic)
}
func (m *AdGroupOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_AdGroupOperation.Merge(m, src)
}
func (m *AdGroupOperation) XXX_Size() int {
return xxx_messageInfo_AdGroupOperation.Size(m)
}
func (m *AdGroupOperation) XXX_DiscardUnknown() {
xxx_messageInfo_AdGroupOperation.DiscardUnknown(m)
}
var xxx_messageInfo_AdGroupOperation proto.InternalMessageInfo
func (m *AdGroupOperation) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
type isAdGroupOperation_Operation interface {
isAdGroupOperation_Operation()
}
type AdGroupOperation_Create struct {
Create *resources.AdGroup `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}
type AdGroupOperation_Update struct {
Update *resources.AdGroup `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
}
type AdGroupOperation_Remove struct {
Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
}
func (*AdGroupOperation_Create) isAdGroupOperation_Operation() {}
func (*AdGroupOperation_Update) isAdGroupOperation_Operation() {}
func (*AdGroupOperation_Remove) isAdGroupOperation_Operation() {}
func (m *AdGroupOperation) GetOperation() isAdGroupOperation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *AdGroupOperation) GetCreate() *resources.AdGroup {
if x, ok := m.GetOperation().(*AdGroupOperation_Create); ok {
return x.Create
}
return nil
}
func (m *AdGroupOperation) GetUpdate() *resources.AdGroup {
if x, ok := m.GetOperation().(*AdGroupOperation_Update); ok {
return x.Update
}
return nil
}
func (m *AdGroupOperation) GetRemove() string {
if x, ok := m.GetOperation().(*AdGroupOperation_Remove); ok {
return x.Remove
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*AdGroupOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*AdGroupOperation_Create)(nil),
(*AdGroupOperation_Update)(nil),
(*AdGroupOperation_Remove)(nil),
}
}
// Response message for an ad group mutate.
type MutateAdGroupsResponse struct {
// Errors that pertain to operation failures in the partial failure mode.
// Returned only when partial_failure = true and all errors occur inside the
// operations. If any errors occur outside the operations (e.g. auth errors),
// we return an RPC level error.
PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
// All results for the mutate.
Results []*MutateAdGroupResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateAdGroupsResponse) Reset() { *m = MutateAdGroupsResponse{} }
func (m *MutateAdGroupsResponse) String() string { return proto.CompactTextString(m) }
func (*MutateAdGroupsResponse) ProtoMessage() {}
func (*MutateAdGroupsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2551d73f06de7113, []int{3}
}
func (m *MutateAdGroupsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateAdGroupsResponse.Unmarshal(m, b)
}
func (m *MutateAdGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateAdGroupsResponse.Marshal(b, m, deterministic)
}
func (m *MutateAdGroupsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateAdGroupsResponse.Merge(m, src)
}
func (m *MutateAdGroupsResponse) XXX_Size() int {
return xxx_messageInfo_MutateAdGroupsResponse.Size(m)
}
func (m *MutateAdGroupsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateAdGroupsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateAdGroupsResponse proto.InternalMessageInfo
func (m *MutateAdGroupsResponse) GetPartialFailureError() *status.Status {
if m != nil {
return m.PartialFailureError
}
return nil
}
func (m *MutateAdGroupsResponse) GetResults() []*MutateAdGroupResult {
if m != nil {
return m.Results
}
return nil
}
// The result for the ad group mutate.
type MutateAdGroupResult struct {
// Returned for successful operations.
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateAdGroupResult) Reset() { *m = MutateAdGroupResult{} }
func (m *MutateAdGroupResult) String() string { return proto.CompactTextString(m) }
func (*MutateAdGroupResult) ProtoMessage() {}
func (*MutateAdGroupResult) Descriptor() ([]byte, []int) {
return fileDescriptor_2551d73f06de7113, []int{4}
}
func (m *MutateAdGroupResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateAdGroupResult.Unmarshal(m, b)
}
func (m *MutateAdGroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateAdGroupResult.Marshal(b, m, deterministic)
}
func (m *MutateAdGroupResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateAdGroupResult.Merge(m, src)
}
func (m *MutateAdGroupResult) XXX_Size() int {
return xxx_messageInfo_MutateAdGroupResult.Size(m)
}
func (m *MutateAdGroupResult) XXX_DiscardUnknown() {
xxx_messageInfo_MutateAdGroupResult.DiscardUnknown(m)
}
var xxx_messageInfo_MutateAdGroupResult proto.InternalMessageInfo
func (m *MutateAdGroupResult) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func init() {
proto.RegisterType((*GetAdGroupRequest)(nil), "google.ads.googleads.v2.services.GetAdGroupRequest")
proto.RegisterType((*MutateAdGroupsRequest)(nil), "google.ads.googleads.v2.services.MutateAdGroupsRequest")
proto.RegisterType((*AdGroupOperation)(nil), "google.ads.googleads.v2.services.AdGroupOperation")
proto.RegisterType((*MutateAdGroupsResponse)(nil), "google.ads.googleads.v2.services.MutateAdGroupsResponse")
proto.RegisterType((*MutateAdGroupResult)(nil), "google.ads.googleads.v2.services.MutateAdGroupResult")
}
func init() {
proto.RegisterFile("google/ads/googleads/v2/services/ad_group_service.proto", fileDescriptor_2551d73f06de7113)
}
var fileDescriptor_2551d73f06de7113 = []byte{
// 714 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xd4, 0x3a,
0x14, 0x7d, 0x99, 0x79, 0xea, 0x7b, 0xf5, 0x94, 0x02, 0xae, 0x0a, 0xd1, 0x80, 0xc4, 0x28, 0x54,
0xa2, 0x1a, 0x41, 0x82, 0x52, 0xa1, 0x56, 0xa9, 0xba, 0x48, 0x05, 0x9d, 0xb2, 0x28, 0xad, 0x52,
0xa9, 0x0b, 0x34, 0x52, 0xe4, 0x26, 0x6e, 0x14, 0x35, 0x89, 0x83, 0xed, 0x8c, 0x54, 0x55, 0xdd,
0xf4, 0x0f, 0x10, 0x5f, 0x00, 0x4b, 0x76, 0x7c, 0x00, 0x3f, 0xd0, 0x2d, 0x3b, 0xd6, 0xac, 0xf8,
0x04, 0x56, 0xc8, 0xb1, 0x3d, 0xd3, 0x19, 0xa8, 0x86, 0xb2, 0xbb, 0xb9, 0x3e, 0xe7, 0xdc, 0xe3,
0x7b, 0x7d, 0x03, 0x56, 0x13, 0x42, 0x92, 0x0c, 0x3b, 0x28, 0x66, 0x8e, 0x0c, 0x45, 0x34, 0x70,
0x1d, 0x86, 0xe9, 0x20, 0x8d, 0x30, 0x73, 0x50, 0x1c, 0x26, 0x94, 0x54, 0x65, 0xa8, 0x32, 0x76,
0x49, 0x09, 0x27, 0xb0, 0x23, 0xd1, 0x36, 0x8a, 0x99, 0x3d, 0x24, 0xda, 0x03, 0xd7, 0xd6, 0xc4,
0xf6, 0xd3, 0xab, 0xa4, 0x29, 0x66, 0xa4, 0xa2, 0x97, 0xb5, 0xa5, 0x66, 0xfb, 0xbe, 0x66, 0x94,
0xa9, 0x83, 0x8a, 0x82, 0x70, 0xc4, 0x53, 0x52, 0x30, 0x75, 0xaa, 0x2a, 0x3a, 0xf5, 0xd7, 0x61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, 0x9f, 0x0d, 0x30, 0x3f, 0x3e, 0x26, 0xb8, 0x7a, 0xcd, 0x2e, 0xea, 0xd5, 0x6d, 0xaf, 0x5d,
0x9f, 0x28, 0x5f, 0x84, 0xb5, 0x56, 0x3b, 0x77, 0xad, 0x27, 0xc2, 0xf9, 0xc8, 0xea, 0xe9, 0xa5,
0x3f, 0xc1, 0x46, 0xf7, 0x6c, 0x68, 0xdc, 0xcb, 0x6b, 0x19, 0xcf, 0xe8, 0xb6, 0xef, 0x5d, 0xf8,
0xe6, 0xa8, 0x94, 0x8a, 0xca, 0x94, 0xd9, 0x11, 0xc9, 0x37, 0x7f, 0x18, 0x60, 0x29, 0x22, 0xf9,
0x54, 0x5b, 0x9b, 0x0b, 0xe3, 0x93, 0xdb, 0x13, 0xdb, 0xb8, 0x67, 0xbc, 0xde, 0x56, 0xc4, 0x84,
0x64, 0xa8, 0x48, 0x6c, 0x42, 0x13, 0x27, 0xc1, 0x45, 0xbd, 0xab, 0xce, 0xa8, 0xd4, 0xd5, 0x7f,
0xff, 0x75, 0x1d, 0x7c, 0x68, 0x34, 0x7b, 0xbe, 0xff, 0xb1, 0xd1, 0xe9, 0x49, 0x41, 0x3f, 0x66,
0xb6, 0x0c, 0x45, 0x74, 0xe0, 0xda, 0xaa, 0x30, 0xbb, 0xd0, 0x90, 0xbe, 0x1f, 0xb3, 0xfe, 0x10,
0xd2, 0x3f, 0x70, 0xfb, 0x1a, 0xf2, 0xbd, 0xb1, 0x24, 0xf3, 0x9e, 0xe7, 0xc7, 0xcc, 0xf3, 0x86,
0x20, 0xcf, 0x3b, 0x70, 0x3d, 0x4f, 0xc3, 0x0e, 0x67, 0x6a, 0x9f, 0x2b, 0x3f, 0x03, 0x00, 0x00,
0xff, 0xff, 0xa2, 0x3e, 0x61, 0x5b, 0xa4, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// AdGroupServiceClient is the client API for AdGroupService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AdGroupServiceClient interface {
// Returns the requested ad group in full detail.
GetAdGroup(ctx context.Context, in *GetAdGroupRequest, opts ...grpc.CallOption) (*resources.AdGroup, error)
// Creates, updates, or removes ad groups. Operation statuses are returned.
MutateAdGroups(ctx context.Context, in *MutateAdGroupsRequest, opts ...grpc.CallOption) (*MutateAdGroupsResponse, error)
}
type adGroupServiceClient struct {
cc *grpc.ClientConn
}
func NewAdGroupServiceClient(cc *grpc.ClientConn) AdGroupServiceClient {
return &adGroupServiceClient{cc}
}
func (c *adGroupServiceClient) GetAdGroup(ctx context.Context, in *GetAdGroupRequest, opts ...grpc.CallOption) (*resources.AdGroup, error) {
out := new(resources.AdGroup)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.AdGroupService/GetAdGroup", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adGroupServiceClient) MutateAdGroups(ctx context.Context, in *MutateAdGroupsRequest, opts ...grpc.CallOption) (*MutateAdGroupsResponse, error) {
out := new(MutateAdGroupsResponse)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.AdGroupService/MutateAdGroups", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AdGroupServiceServer is the server API for AdGroupService service.
type AdGroupServiceServer interface {
// Returns the requested ad group in full detail.
GetAdGroup(context.Context, *GetAdGroupRequest) (*resources.AdGroup, error)
// Creates, updates, or removes ad groups. Operation statuses are returned.
MutateAdGroups(context.Context, *MutateAdGroupsRequest) (*MutateAdGroupsResponse, error)
}
// UnimplementedAdGroupServiceServer can be embedded to have forward compatible implementations.
type UnimplementedAdGroupServiceServer struct {
}
func (*UnimplementedAdGroupServiceServer) GetAdGroup(ctx context.Context, req *GetAdGroupRequest) (*resources.AdGroup, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetAdGroup not implemented")
}
func (*UnimplementedAdGroupServiceServer) MutateAdGroups(ctx context.Context, req *MutateAdGroupsRequest) (*MutateAdGroupsResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method MutateAdGroups not implemented")
}
func RegisterAdGroupServiceServer(s *grpc.Server, srv AdGroupServiceServer) {
s.RegisterService(&_AdGroupService_serviceDesc, srv)
}
func _AdGroupService_GetAdGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAdGroupRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdGroupServiceServer).GetAdGroup(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v2.services.AdGroupService/GetAdGroup",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdGroupServiceServer).GetAdGroup(ctx, req.(*GetAdGroupRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AdGroupService_MutateAdGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MutateAdGroupsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdGroupServiceServer).MutateAdGroups(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v2.services.AdGroupService/MutateAdGroups",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdGroupServiceServer).MutateAdGroups(ctx, req.(*MutateAdGroupsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _AdGroupService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.ads.googleads.v2.services.AdGroupService",
HandlerType: (*AdGroupServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAdGroup",
Handler: _AdGroupService_GetAdGroup_Handler,
},
{
MethodName: "MutateAdGroups",
Handler: _AdGroupService_MutateAdGroups_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/ads/googleads/v2/services/ad_group_service.proto",
}