You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

595 lines
27 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/keyword_plan_ad_group_service.proto
  3. package services // import "google.golang.org/genproto/googleapis/ads/googleads/v0/services"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/wrappers"
  8. import resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import status "google.golang.org/genproto/googleapis/rpc/status"
  11. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  12. import (
  13. context "golang.org/x/net/context"
  14. grpc "google.golang.org/grpc"
  15. )
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  25. // Request message for
  26. // [KeywordPlanAdGroupService.GetKeywordPlanAdGroup][google.ads.googleads.v0.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup].
  27. type GetKeywordPlanAdGroupRequest struct {
  28. // The resource name of the Keyword Plan ad group to fetch.
  29. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *GetKeywordPlanAdGroupRequest) Reset() { *m = GetKeywordPlanAdGroupRequest{} }
  35. func (m *GetKeywordPlanAdGroupRequest) String() string { return proto.CompactTextString(m) }
  36. func (*GetKeywordPlanAdGroupRequest) ProtoMessage() {}
  37. func (*GetKeywordPlanAdGroupRequest) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea, []int{0}
  39. }
  40. func (m *GetKeywordPlanAdGroupRequest) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_GetKeywordPlanAdGroupRequest.Unmarshal(m, b)
  42. }
  43. func (m *GetKeywordPlanAdGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_GetKeywordPlanAdGroupRequest.Marshal(b, m, deterministic)
  45. }
  46. func (dst *GetKeywordPlanAdGroupRequest) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_GetKeywordPlanAdGroupRequest.Merge(dst, src)
  48. }
  49. func (m *GetKeywordPlanAdGroupRequest) XXX_Size() int {
  50. return xxx_messageInfo_GetKeywordPlanAdGroupRequest.Size(m)
  51. }
  52. func (m *GetKeywordPlanAdGroupRequest) XXX_DiscardUnknown() {
  53. xxx_messageInfo_GetKeywordPlanAdGroupRequest.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_GetKeywordPlanAdGroupRequest proto.InternalMessageInfo
  56. func (m *GetKeywordPlanAdGroupRequest) GetResourceName() string {
  57. if m != nil {
  58. return m.ResourceName
  59. }
  60. return ""
  61. }
  62. // Request message for
  63. // [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v0.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups].
  64. type MutateKeywordPlanAdGroupsRequest struct {
  65. // The ID of the customer whose Keyword Plan ad groups are being modified.
  66. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  67. // The list of operations to perform on individual Keyword Plan ad groups.
  68. Operations []*KeywordPlanAdGroupOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
  69. // If true, successful operations will be carried out and invalid
  70. // operations will return errors. If false, all operations will be carried
  71. // out in one transaction if and only if they are all valid.
  72. // Default is false.
  73. PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
  74. // If true, the request is validated but not executed. Only errors are
  75. // returned, not results.
  76. ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
  77. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  78. XXX_unrecognized []byte `json:"-"`
  79. XXX_sizecache int32 `json:"-"`
  80. }
  81. func (m *MutateKeywordPlanAdGroupsRequest) Reset() { *m = MutateKeywordPlanAdGroupsRequest{} }
  82. func (m *MutateKeywordPlanAdGroupsRequest) String() string { return proto.CompactTextString(m) }
  83. func (*MutateKeywordPlanAdGroupsRequest) ProtoMessage() {}
  84. func (*MutateKeywordPlanAdGroupsRequest) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea, []int{1}
  86. }
  87. func (m *MutateKeywordPlanAdGroupsRequest) XXX_Unmarshal(b []byte) error {
  88. return xxx_messageInfo_MutateKeywordPlanAdGroupsRequest.Unmarshal(m, b)
  89. }
  90. func (m *MutateKeywordPlanAdGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. return xxx_messageInfo_MutateKeywordPlanAdGroupsRequest.Marshal(b, m, deterministic)
  92. }
  93. func (dst *MutateKeywordPlanAdGroupsRequest) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_MutateKeywordPlanAdGroupsRequest.Merge(dst, src)
  95. }
  96. func (m *MutateKeywordPlanAdGroupsRequest) XXX_Size() int {
  97. return xxx_messageInfo_MutateKeywordPlanAdGroupsRequest.Size(m)
  98. }
  99. func (m *MutateKeywordPlanAdGroupsRequest) XXX_DiscardUnknown() {
  100. xxx_messageInfo_MutateKeywordPlanAdGroupsRequest.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_MutateKeywordPlanAdGroupsRequest proto.InternalMessageInfo
  103. func (m *MutateKeywordPlanAdGroupsRequest) GetCustomerId() string {
  104. if m != nil {
  105. return m.CustomerId
  106. }
  107. return ""
  108. }
  109. func (m *MutateKeywordPlanAdGroupsRequest) GetOperations() []*KeywordPlanAdGroupOperation {
  110. if m != nil {
  111. return m.Operations
  112. }
  113. return nil
  114. }
  115. func (m *MutateKeywordPlanAdGroupsRequest) GetPartialFailure() bool {
  116. if m != nil {
  117. return m.PartialFailure
  118. }
  119. return false
  120. }
  121. func (m *MutateKeywordPlanAdGroupsRequest) GetValidateOnly() bool {
  122. if m != nil {
  123. return m.ValidateOnly
  124. }
  125. return false
  126. }
  127. // A single operation (create, update, remove) on a Keyword Plan ad group.
  128. type KeywordPlanAdGroupOperation struct {
  129. // The FieldMask that determines which resource fields are modified in an
  130. // update.
  131. UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  132. // The mutate operation.
  133. //
  134. // Types that are valid to be assigned to Operation:
  135. // *KeywordPlanAdGroupOperation_Create
  136. // *KeywordPlanAdGroupOperation_Update
  137. // *KeywordPlanAdGroupOperation_Remove
  138. Operation isKeywordPlanAdGroupOperation_Operation `protobuf_oneof:"operation"`
  139. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  140. XXX_unrecognized []byte `json:"-"`
  141. XXX_sizecache int32 `json:"-"`
  142. }
  143. func (m *KeywordPlanAdGroupOperation) Reset() { *m = KeywordPlanAdGroupOperation{} }
  144. func (m *KeywordPlanAdGroupOperation) String() string { return proto.CompactTextString(m) }
  145. func (*KeywordPlanAdGroupOperation) ProtoMessage() {}
  146. func (*KeywordPlanAdGroupOperation) Descriptor() ([]byte, []int) {
  147. return fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea, []int{2}
  148. }
  149. func (m *KeywordPlanAdGroupOperation) XXX_Unmarshal(b []byte) error {
  150. return xxx_messageInfo_KeywordPlanAdGroupOperation.Unmarshal(m, b)
  151. }
  152. func (m *KeywordPlanAdGroupOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  153. return xxx_messageInfo_KeywordPlanAdGroupOperation.Marshal(b, m, deterministic)
  154. }
  155. func (dst *KeywordPlanAdGroupOperation) XXX_Merge(src proto.Message) {
  156. xxx_messageInfo_KeywordPlanAdGroupOperation.Merge(dst, src)
  157. }
  158. func (m *KeywordPlanAdGroupOperation) XXX_Size() int {
  159. return xxx_messageInfo_KeywordPlanAdGroupOperation.Size(m)
  160. }
  161. func (m *KeywordPlanAdGroupOperation) XXX_DiscardUnknown() {
  162. xxx_messageInfo_KeywordPlanAdGroupOperation.DiscardUnknown(m)
  163. }
  164. var xxx_messageInfo_KeywordPlanAdGroupOperation proto.InternalMessageInfo
  165. func (m *KeywordPlanAdGroupOperation) GetUpdateMask() *field_mask.FieldMask {
  166. if m != nil {
  167. return m.UpdateMask
  168. }
  169. return nil
  170. }
  171. type isKeywordPlanAdGroupOperation_Operation interface {
  172. isKeywordPlanAdGroupOperation_Operation()
  173. }
  174. type KeywordPlanAdGroupOperation_Create struct {
  175. Create *resources.KeywordPlanAdGroup `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
  176. }
  177. type KeywordPlanAdGroupOperation_Update struct {
  178. Update *resources.KeywordPlanAdGroup `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
  179. }
  180. type KeywordPlanAdGroupOperation_Remove struct {
  181. Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
  182. }
  183. func (*KeywordPlanAdGroupOperation_Create) isKeywordPlanAdGroupOperation_Operation() {}
  184. func (*KeywordPlanAdGroupOperation_Update) isKeywordPlanAdGroupOperation_Operation() {}
  185. func (*KeywordPlanAdGroupOperation_Remove) isKeywordPlanAdGroupOperation_Operation() {}
  186. func (m *KeywordPlanAdGroupOperation) GetOperation() isKeywordPlanAdGroupOperation_Operation {
  187. if m != nil {
  188. return m.Operation
  189. }
  190. return nil
  191. }
  192. func (m *KeywordPlanAdGroupOperation) GetCreate() *resources.KeywordPlanAdGroup {
  193. if x, ok := m.GetOperation().(*KeywordPlanAdGroupOperation_Create); ok {
  194. return x.Create
  195. }
  196. return nil
  197. }
  198. func (m *KeywordPlanAdGroupOperation) GetUpdate() *resources.KeywordPlanAdGroup {
  199. if x, ok := m.GetOperation().(*KeywordPlanAdGroupOperation_Update); ok {
  200. return x.Update
  201. }
  202. return nil
  203. }
  204. func (m *KeywordPlanAdGroupOperation) GetRemove() string {
  205. if x, ok := m.GetOperation().(*KeywordPlanAdGroupOperation_Remove); ok {
  206. return x.Remove
  207. }
  208. return ""
  209. }
  210. // XXX_OneofFuncs is for the internal use of the proto package.
  211. func (*KeywordPlanAdGroupOperation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  212. return _KeywordPlanAdGroupOperation_OneofMarshaler, _KeywordPlanAdGroupOperation_OneofUnmarshaler, _KeywordPlanAdGroupOperation_OneofSizer, []interface{}{
  213. (*KeywordPlanAdGroupOperation_Create)(nil),
  214. (*KeywordPlanAdGroupOperation_Update)(nil),
  215. (*KeywordPlanAdGroupOperation_Remove)(nil),
  216. }
  217. }
  218. func _KeywordPlanAdGroupOperation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  219. m := msg.(*KeywordPlanAdGroupOperation)
  220. // operation
  221. switch x := m.Operation.(type) {
  222. case *KeywordPlanAdGroupOperation_Create:
  223. b.EncodeVarint(1<<3 | proto.WireBytes)
  224. if err := b.EncodeMessage(x.Create); err != nil {
  225. return err
  226. }
  227. case *KeywordPlanAdGroupOperation_Update:
  228. b.EncodeVarint(2<<3 | proto.WireBytes)
  229. if err := b.EncodeMessage(x.Update); err != nil {
  230. return err
  231. }
  232. case *KeywordPlanAdGroupOperation_Remove:
  233. b.EncodeVarint(3<<3 | proto.WireBytes)
  234. b.EncodeStringBytes(x.Remove)
  235. case nil:
  236. default:
  237. return fmt.Errorf("KeywordPlanAdGroupOperation.Operation has unexpected type %T", x)
  238. }
  239. return nil
  240. }
  241. func _KeywordPlanAdGroupOperation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  242. m := msg.(*KeywordPlanAdGroupOperation)
  243. switch tag {
  244. case 1: // operation.create
  245. if wire != proto.WireBytes {
  246. return true, proto.ErrInternalBadWireType
  247. }
  248. msg := new(resources.KeywordPlanAdGroup)
  249. err := b.DecodeMessage(msg)
  250. m.Operation = &KeywordPlanAdGroupOperation_Create{msg}
  251. return true, err
  252. case 2: // operation.update
  253. if wire != proto.WireBytes {
  254. return true, proto.ErrInternalBadWireType
  255. }
  256. msg := new(resources.KeywordPlanAdGroup)
  257. err := b.DecodeMessage(msg)
  258. m.Operation = &KeywordPlanAdGroupOperation_Update{msg}
  259. return true, err
  260. case 3: // operation.remove
  261. if wire != proto.WireBytes {
  262. return true, proto.ErrInternalBadWireType
  263. }
  264. x, err := b.DecodeStringBytes()
  265. m.Operation = &KeywordPlanAdGroupOperation_Remove{x}
  266. return true, err
  267. default:
  268. return false, nil
  269. }
  270. }
  271. func _KeywordPlanAdGroupOperation_OneofSizer(msg proto.Message) (n int) {
  272. m := msg.(*KeywordPlanAdGroupOperation)
  273. // operation
  274. switch x := m.Operation.(type) {
  275. case *KeywordPlanAdGroupOperation_Create:
  276. s := proto.Size(x.Create)
  277. n += 1 // tag and wire
  278. n += proto.SizeVarint(uint64(s))
  279. n += s
  280. case *KeywordPlanAdGroupOperation_Update:
  281. s := proto.Size(x.Update)
  282. n += 1 // tag and wire
  283. n += proto.SizeVarint(uint64(s))
  284. n += s
  285. case *KeywordPlanAdGroupOperation_Remove:
  286. n += 1 // tag and wire
  287. n += proto.SizeVarint(uint64(len(x.Remove)))
  288. n += len(x.Remove)
  289. case nil:
  290. default:
  291. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  292. }
  293. return n
  294. }
  295. // Response message for a Keyword Plan ad group mutate.
  296. type MutateKeywordPlanAdGroupsResponse struct {
  297. // Errors that pertain to operation failures in the partial failure mode.
  298. // Returned only when partial_failure = true and all errors occur inside the
  299. // operations. If any errors occur outside the operations (e.g. auth errors),
  300. // we return an RPC level error.
  301. PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
  302. // All results for the mutate.
  303. Results []*MutateKeywordPlanAdGroupResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
  304. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  305. XXX_unrecognized []byte `json:"-"`
  306. XXX_sizecache int32 `json:"-"`
  307. }
  308. func (m *MutateKeywordPlanAdGroupsResponse) Reset() { *m = MutateKeywordPlanAdGroupsResponse{} }
  309. func (m *MutateKeywordPlanAdGroupsResponse) String() string { return proto.CompactTextString(m) }
  310. func (*MutateKeywordPlanAdGroupsResponse) ProtoMessage() {}
  311. func (*MutateKeywordPlanAdGroupsResponse) Descriptor() ([]byte, []int) {
  312. return fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea, []int{3}
  313. }
  314. func (m *MutateKeywordPlanAdGroupsResponse) XXX_Unmarshal(b []byte) error {
  315. return xxx_messageInfo_MutateKeywordPlanAdGroupsResponse.Unmarshal(m, b)
  316. }
  317. func (m *MutateKeywordPlanAdGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  318. return xxx_messageInfo_MutateKeywordPlanAdGroupsResponse.Marshal(b, m, deterministic)
  319. }
  320. func (dst *MutateKeywordPlanAdGroupsResponse) XXX_Merge(src proto.Message) {
  321. xxx_messageInfo_MutateKeywordPlanAdGroupsResponse.Merge(dst, src)
  322. }
  323. func (m *MutateKeywordPlanAdGroupsResponse) XXX_Size() int {
  324. return xxx_messageInfo_MutateKeywordPlanAdGroupsResponse.Size(m)
  325. }
  326. func (m *MutateKeywordPlanAdGroupsResponse) XXX_DiscardUnknown() {
  327. xxx_messageInfo_MutateKeywordPlanAdGroupsResponse.DiscardUnknown(m)
  328. }
  329. var xxx_messageInfo_MutateKeywordPlanAdGroupsResponse proto.InternalMessageInfo
  330. func (m *MutateKeywordPlanAdGroupsResponse) GetPartialFailureError() *status.Status {
  331. if m != nil {
  332. return m.PartialFailureError
  333. }
  334. return nil
  335. }
  336. func (m *MutateKeywordPlanAdGroupsResponse) GetResults() []*MutateKeywordPlanAdGroupResult {
  337. if m != nil {
  338. return m.Results
  339. }
  340. return nil
  341. }
  342. // The result for the Keyword Plan ad group mutate.
  343. type MutateKeywordPlanAdGroupResult struct {
  344. // Returned for successful operations.
  345. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  346. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  347. XXX_unrecognized []byte `json:"-"`
  348. XXX_sizecache int32 `json:"-"`
  349. }
  350. func (m *MutateKeywordPlanAdGroupResult) Reset() { *m = MutateKeywordPlanAdGroupResult{} }
  351. func (m *MutateKeywordPlanAdGroupResult) String() string { return proto.CompactTextString(m) }
  352. func (*MutateKeywordPlanAdGroupResult) ProtoMessage() {}
  353. func (*MutateKeywordPlanAdGroupResult) Descriptor() ([]byte, []int) {
  354. return fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea, []int{4}
  355. }
  356. func (m *MutateKeywordPlanAdGroupResult) XXX_Unmarshal(b []byte) error {
  357. return xxx_messageInfo_MutateKeywordPlanAdGroupResult.Unmarshal(m, b)
  358. }
  359. func (m *MutateKeywordPlanAdGroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  360. return xxx_messageInfo_MutateKeywordPlanAdGroupResult.Marshal(b, m, deterministic)
  361. }
  362. func (dst *MutateKeywordPlanAdGroupResult) XXX_Merge(src proto.Message) {
  363. xxx_messageInfo_MutateKeywordPlanAdGroupResult.Merge(dst, src)
  364. }
  365. func (m *MutateKeywordPlanAdGroupResult) XXX_Size() int {
  366. return xxx_messageInfo_MutateKeywordPlanAdGroupResult.Size(m)
  367. }
  368. func (m *MutateKeywordPlanAdGroupResult) XXX_DiscardUnknown() {
  369. xxx_messageInfo_MutateKeywordPlanAdGroupResult.DiscardUnknown(m)
  370. }
  371. var xxx_messageInfo_MutateKeywordPlanAdGroupResult proto.InternalMessageInfo
  372. func (m *MutateKeywordPlanAdGroupResult) GetResourceName() string {
  373. if m != nil {
  374. return m.ResourceName
  375. }
  376. return ""
  377. }
  378. func init() {
  379. proto.RegisterType((*GetKeywordPlanAdGroupRequest)(nil), "google.ads.googleads.v0.services.GetKeywordPlanAdGroupRequest")
  380. proto.RegisterType((*MutateKeywordPlanAdGroupsRequest)(nil), "google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsRequest")
  381. proto.RegisterType((*KeywordPlanAdGroupOperation)(nil), "google.ads.googleads.v0.services.KeywordPlanAdGroupOperation")
  382. proto.RegisterType((*MutateKeywordPlanAdGroupsResponse)(nil), "google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse")
  383. proto.RegisterType((*MutateKeywordPlanAdGroupResult)(nil), "google.ads.googleads.v0.services.MutateKeywordPlanAdGroupResult")
  384. }
  385. // Reference imports to suppress errors if they are not otherwise used.
  386. var _ context.Context
  387. var _ grpc.ClientConn
  388. // This is a compile-time assertion to ensure that this generated file
  389. // is compatible with the grpc package it is being compiled against.
  390. const _ = grpc.SupportPackageIsVersion4
  391. // KeywordPlanAdGroupServiceClient is the client API for KeywordPlanAdGroupService service.
  392. //
  393. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  394. type KeywordPlanAdGroupServiceClient interface {
  395. // Returns the requested Keyword Plan ad group in full detail.
  396. GetKeywordPlanAdGroup(ctx context.Context, in *GetKeywordPlanAdGroupRequest, opts ...grpc.CallOption) (*resources.KeywordPlanAdGroup, error)
  397. // Creates, updates, or removes Keyword Plan ad groups. Operation statuses are
  398. // returned.
  399. MutateKeywordPlanAdGroups(ctx context.Context, in *MutateKeywordPlanAdGroupsRequest, opts ...grpc.CallOption) (*MutateKeywordPlanAdGroupsResponse, error)
  400. }
  401. type keywordPlanAdGroupServiceClient struct {
  402. cc *grpc.ClientConn
  403. }
  404. func NewKeywordPlanAdGroupServiceClient(cc *grpc.ClientConn) KeywordPlanAdGroupServiceClient {
  405. return &keywordPlanAdGroupServiceClient{cc}
  406. }
  407. func (c *keywordPlanAdGroupServiceClient) GetKeywordPlanAdGroup(ctx context.Context, in *GetKeywordPlanAdGroupRequest, opts ...grpc.CallOption) (*resources.KeywordPlanAdGroup, error) {
  408. out := new(resources.KeywordPlanAdGroup)
  409. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.KeywordPlanAdGroupService/GetKeywordPlanAdGroup", in, out, opts...)
  410. if err != nil {
  411. return nil, err
  412. }
  413. return out, nil
  414. }
  415. func (c *keywordPlanAdGroupServiceClient) MutateKeywordPlanAdGroups(ctx context.Context, in *MutateKeywordPlanAdGroupsRequest, opts ...grpc.CallOption) (*MutateKeywordPlanAdGroupsResponse, error) {
  416. out := new(MutateKeywordPlanAdGroupsResponse)
  417. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups", in, out, opts...)
  418. if err != nil {
  419. return nil, err
  420. }
  421. return out, nil
  422. }
  423. // KeywordPlanAdGroupServiceServer is the server API for KeywordPlanAdGroupService service.
  424. type KeywordPlanAdGroupServiceServer interface {
  425. // Returns the requested Keyword Plan ad group in full detail.
  426. GetKeywordPlanAdGroup(context.Context, *GetKeywordPlanAdGroupRequest) (*resources.KeywordPlanAdGroup, error)
  427. // Creates, updates, or removes Keyword Plan ad groups. Operation statuses are
  428. // returned.
  429. MutateKeywordPlanAdGroups(context.Context, *MutateKeywordPlanAdGroupsRequest) (*MutateKeywordPlanAdGroupsResponse, error)
  430. }
  431. func RegisterKeywordPlanAdGroupServiceServer(s *grpc.Server, srv KeywordPlanAdGroupServiceServer) {
  432. s.RegisterService(&_KeywordPlanAdGroupService_serviceDesc, srv)
  433. }
  434. func _KeywordPlanAdGroupService_GetKeywordPlanAdGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  435. in := new(GetKeywordPlanAdGroupRequest)
  436. if err := dec(in); err != nil {
  437. return nil, err
  438. }
  439. if interceptor == nil {
  440. return srv.(KeywordPlanAdGroupServiceServer).GetKeywordPlanAdGroup(ctx, in)
  441. }
  442. info := &grpc.UnaryServerInfo{
  443. Server: srv,
  444. FullMethod: "/google.ads.googleads.v0.services.KeywordPlanAdGroupService/GetKeywordPlanAdGroup",
  445. }
  446. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  447. return srv.(KeywordPlanAdGroupServiceServer).GetKeywordPlanAdGroup(ctx, req.(*GetKeywordPlanAdGroupRequest))
  448. }
  449. return interceptor(ctx, in, info, handler)
  450. }
  451. func _KeywordPlanAdGroupService_MutateKeywordPlanAdGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  452. in := new(MutateKeywordPlanAdGroupsRequest)
  453. if err := dec(in); err != nil {
  454. return nil, err
  455. }
  456. if interceptor == nil {
  457. return srv.(KeywordPlanAdGroupServiceServer).MutateKeywordPlanAdGroups(ctx, in)
  458. }
  459. info := &grpc.UnaryServerInfo{
  460. Server: srv,
  461. FullMethod: "/google.ads.googleads.v0.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups",
  462. }
  463. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  464. return srv.(KeywordPlanAdGroupServiceServer).MutateKeywordPlanAdGroups(ctx, req.(*MutateKeywordPlanAdGroupsRequest))
  465. }
  466. return interceptor(ctx, in, info, handler)
  467. }
  468. var _KeywordPlanAdGroupService_serviceDesc = grpc.ServiceDesc{
  469. ServiceName: "google.ads.googleads.v0.services.KeywordPlanAdGroupService",
  470. HandlerType: (*KeywordPlanAdGroupServiceServer)(nil),
  471. Methods: []grpc.MethodDesc{
  472. {
  473. MethodName: "GetKeywordPlanAdGroup",
  474. Handler: _KeywordPlanAdGroupService_GetKeywordPlanAdGroup_Handler,
  475. },
  476. {
  477. MethodName: "MutateKeywordPlanAdGroups",
  478. Handler: _KeywordPlanAdGroupService_MutateKeywordPlanAdGroups_Handler,
  479. },
  480. },
  481. Streams: []grpc.StreamDesc{},
  482. Metadata: "google/ads/googleads/v0/services/keyword_plan_ad_group_service.proto",
  483. }
  484. func init() {
  485. proto.RegisterFile("google/ads/googleads/v0/services/keyword_plan_ad_group_service.proto", fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea)
  486. }
  487. var fileDescriptor_keyword_plan_ad_group_service_23167d7785051dea = []byte{
  488. // 730 bytes of a gzipped FileDescriptorProto
  489. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0xdd, 0x6a, 0xd4, 0x4e,
  490. 0x14, 0xc0, 0xff, 0xc9, 0xfe, 0xa9, 0x76, 0xb6, 0x2a, 0x8c, 0x14, 0xb7, 0x6b, 0xa9, 0x6b, 0x2c,
  491. 0x58, 0xf6, 0x22, 0x59, 0x56, 0x8a, 0x92, 0xb2, 0xe2, 0x6e, 0x6d, 0xb7, 0x22, 0xb5, 0x25, 0x85,
  492. 0x5e, 0x94, 0x95, 0x30, 0xdd, 0x4c, 0x43, 0x68, 0x92, 0x89, 0x33, 0x93, 0x2d, 0xa5, 0xf4, 0x46,
  493. 0xf0, 0x09, 0x7c, 0x03, 0xbd, 0xf3, 0x45, 0x04, 0xc1, 0x2b, 0x2f, 0x7c, 0x01, 0x6f, 0xf4, 0xca,
  494. 0x47, 0x90, 0xc9, 0x64, 0xd6, 0x7e, 0x65, 0x57, 0xda, 0xbb, 0x93, 0x33, 0x27, 0xbf, 0xf3, 0x39,
  495. 0x67, 0xc0, 0x73, 0x9f, 0x10, 0x3f, 0xc4, 0x16, 0xf2, 0x98, 0x25, 0x45, 0x21, 0x0d, 0x1a, 0x16,
  496. 0xc3, 0x74, 0x10, 0xf4, 0x31, 0xb3, 0xf6, 0xf1, 0xe1, 0x01, 0xa1, 0x9e, 0x9b, 0x84, 0x28, 0x76,
  497. 0x91, 0xe7, 0xfa, 0x94, 0xa4, 0x89, 0x9b, 0x1f, 0x9b, 0x09, 0x25, 0x9c, 0xc0, 0x9a, 0xfc, 0xd5,
  498. 0x44, 0x1e, 0x33, 0x87, 0x14, 0x73, 0xd0, 0x30, 0x15, 0xa5, 0xda, 0x2a, 0xf2, 0x43, 0x31, 0x23,
  499. 0x29, 0x2d, 0x74, 0x24, 0x1d, 0x54, 0x67, 0xd5, 0xef, 0x49, 0x60, 0xa1, 0x38, 0x26, 0x1c, 0xf1,
  500. 0x80, 0xc4, 0x2c, 0x3f, 0xcd, 0xdd, 0x5b, 0xd9, 0xd7, 0x6e, 0xba, 0x67, 0xed, 0x05, 0x38, 0xf4,
  501. 0xdc, 0x08, 0xb1, 0xfd, 0xdc, 0x62, 0xee, 0xac, 0xc5, 0x01, 0x45, 0x49, 0x82, 0xa9, 0x22, 0xdc,
  502. 0xc9, 0xcf, 0x69, 0xd2, 0xb7, 0x18, 0x47, 0x3c, 0xcd, 0x0f, 0x8c, 0x65, 0x30, 0xdb, 0xc5, 0xfc,
  503. 0xa5, 0x0c, 0x6d, 0x33, 0x44, 0x71, 0xdb, 0xeb, 0x8a, 0xb8, 0x1c, 0xfc, 0x26, 0xc5, 0x8c, 0xc3,
  504. 0x07, 0xe0, 0x86, 0xca, 0xc0, 0x8d, 0x51, 0x84, 0x2b, 0x5a, 0x4d, 0x5b, 0x98, 0x74, 0xa6, 0x94,
  505. 0xf2, 0x15, 0x8a, 0xb0, 0xf1, 0x5b, 0x03, 0xb5, 0xf5, 0x94, 0x23, 0x8e, 0xcf, 0x83, 0x98, 0x22,
  506. 0xdd, 0x03, 0xe5, 0x7e, 0xca, 0x38, 0x89, 0x30, 0x75, 0x03, 0x2f, 0xe7, 0x00, 0xa5, 0x7a, 0xe1,
  507. 0xc1, 0xd7, 0x00, 0x90, 0x04, 0x53, 0x99, 0x79, 0x45, 0xaf, 0x95, 0x16, 0xca, 0xcd, 0x96, 0x39,
  508. 0xae, 0xf2, 0xe6, 0x79, 0x97, 0x1b, 0x8a, 0xe2, 0x9c, 0x00, 0xc2, 0x87, 0xe0, 0x56, 0x82, 0x28,
  509. 0x0f, 0x50, 0xe8, 0xee, 0xa1, 0x20, 0x4c, 0x29, 0xae, 0x94, 0x6a, 0xda, 0xc2, 0x75, 0xe7, 0x66,
  510. 0xae, 0x5e, 0x95, 0x5a, 0x91, 0xf2, 0x00, 0x85, 0x81, 0x87, 0x38, 0x76, 0x49, 0x1c, 0x1e, 0x56,
  511. 0xfe, 0xcf, 0xcc, 0xa6, 0x94, 0x72, 0x23, 0x0e, 0x0f, 0x8d, 0x8f, 0x3a, 0xb8, 0x3b, 0xc2, 0x33,
  512. 0x5c, 0x02, 0xe5, 0x34, 0xc9, 0x10, 0xa2, 0x4b, 0x19, 0xa2, 0xdc, 0xac, 0xaa, 0x6c, 0x54, 0x9b,
  513. 0xcc, 0x55, 0xd1, 0xc8, 0x75, 0xc4, 0xf6, 0x1d, 0x20, 0xcd, 0x85, 0x0c, 0x37, 0xc0, 0x44, 0x9f,
  514. 0x62, 0xc4, 0x65, 0xb5, 0xcb, 0xcd, 0xc5, 0xc2, 0x2a, 0x0c, 0xa7, 0xeb, 0x82, 0x32, 0xac, 0xfd,
  515. 0xe7, 0xe4, 0x18, 0x01, 0x94, 0xf8, 0x8a, 0x7e, 0x45, 0xa0, 0xc4, 0xc0, 0x0a, 0x98, 0xa0, 0x38,
  516. 0x22, 0x03, 0x59, 0xc3, 0x49, 0x71, 0x22, 0xbf, 0x3b, 0x65, 0x30, 0x39, 0x2c, 0xba, 0xf1, 0x59,
  517. 0x03, 0xf7, 0x47, 0x0c, 0x06, 0x4b, 0x48, 0xcc, 0x30, 0x5c, 0x05, 0xd3, 0x67, 0x3a, 0xe3, 0x62,
  518. 0x4a, 0x09, 0xcd, 0xd8, 0xe5, 0x26, 0x54, 0xc1, 0xd2, 0xa4, 0x6f, 0x6e, 0x65, 0xc3, 0xeb, 0xdc,
  519. 0x3e, 0xdd, 0xb3, 0x15, 0x61, 0x0e, 0x77, 0xc0, 0x35, 0x8a, 0x59, 0x1a, 0x72, 0x35, 0x3d, 0xcf,
  520. 0xc6, 0x4f, 0x4f, 0x51, 0x74, 0x4e, 0x06, 0x72, 0x14, 0xd0, 0x58, 0x01, 0x73, 0xa3, 0x4d, 0xff,
  521. 0xe9, 0xa6, 0x34, 0xbf, 0x97, 0xc0, 0xcc, 0x79, 0xc2, 0x96, 0x8c, 0x06, 0x7e, 0xd5, 0xc0, 0xf4,
  522. 0x85, 0xb7, 0x11, 0x3e, 0x1d, 0x9f, 0xc9, 0xa8, 0x6b, 0x5c, 0xbd, 0x5c, 0xc3, 0x8d, 0xd6, 0xdb,
  523. 0x6f, 0x3f, 0xde, 0xeb, 0x8f, 0xe1, 0xa2, 0xd8, 0x64, 0x47, 0xa7, 0xd2, 0x6b, 0xa9, 0x9b, 0xcb,
  524. 0xac, 0xba, 0x5a, 0x6d, 0x27, 0xbb, 0x6b, 0xd5, 0x8f, 0xe1, 0x4f, 0x0d, 0xcc, 0x14, 0xb6, 0x1f,
  525. 0x76, 0x2e, 0xdf, 0x1d, 0xb5, 0x54, 0xaa, 0xcb, 0x57, 0x62, 0xc8, 0xf9, 0x33, 0x96, 0xb3, 0x2c,
  526. 0x5b, 0xc6, 0x13, 0x91, 0xe5, 0xdf, 0xb4, 0x8e, 0x4e, 0xac, 0xab, 0x56, 0xfd, 0xf8, 0xa2, 0x24,
  527. 0xed, 0x28, 0x83, 0xdb, 0x5a, 0xbd, 0xf3, 0x4e, 0x07, 0xf3, 0x7d, 0x12, 0x8d, 0x8d, 0xa7, 0x33,
  528. 0x57, 0xd8, 0xff, 0x4d, 0xb1, 0x15, 0x36, 0xb5, 0x9d, 0xb5, 0x9c, 0xe1, 0x93, 0x10, 0xc5, 0xbe,
  529. 0x49, 0xa8, 0x6f, 0xf9, 0x38, 0xce, 0x76, 0x86, 0x7a, 0x5b, 0x92, 0x80, 0x15, 0x3f, 0x69, 0x4b,
  530. 0x4a, 0xf8, 0xa0, 0x97, 0xba, 0xed, 0xf6, 0x27, 0xbd, 0xd6, 0x95, 0xc0, 0xb6, 0xc7, 0x4c, 0x29,
  531. 0x0a, 0x69, 0xbb, 0x61, 0xe6, 0x8e, 0xd9, 0x17, 0x65, 0xd2, 0x6b, 0x7b, 0xac, 0x37, 0x34, 0xe9,
  532. 0x6d, 0x37, 0x7a, 0xca, 0xe4, 0x97, 0x3e, 0x2f, 0xf5, 0xb6, 0xdd, 0xf6, 0x98, 0x6d, 0x0f, 0x8d,
  533. 0x6c, 0x7b, 0xbb, 0x61, 0xdb, 0xca, 0x6c, 0x77, 0x22, 0x8b, 0xf3, 0xd1, 0x9f, 0x00, 0x00, 0x00,
  534. 0xff, 0xff, 0xc5, 0xa9, 0x88, 0xa6, 0x79, 0x07, 0x00, 0x00,
  535. }