Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

595 rader
27 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/keyword_plan_campaign_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. // [KeywordPlanCampaignService.GetKeywordPlanCampaign][google.ads.googleads.v0.services.KeywordPlanCampaignService.GetKeywordPlanCampaign].
  27. type GetKeywordPlanCampaignRequest struct {
  28. // The resource name of the Keyword Plan campaign 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 *GetKeywordPlanCampaignRequest) Reset() { *m = GetKeywordPlanCampaignRequest{} }
  35. func (m *GetKeywordPlanCampaignRequest) String() string { return proto.CompactTextString(m) }
  36. func (*GetKeywordPlanCampaignRequest) ProtoMessage() {}
  37. func (*GetKeywordPlanCampaignRequest) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6, []int{0}
  39. }
  40. func (m *GetKeywordPlanCampaignRequest) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_GetKeywordPlanCampaignRequest.Unmarshal(m, b)
  42. }
  43. func (m *GetKeywordPlanCampaignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_GetKeywordPlanCampaignRequest.Marshal(b, m, deterministic)
  45. }
  46. func (dst *GetKeywordPlanCampaignRequest) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_GetKeywordPlanCampaignRequest.Merge(dst, src)
  48. }
  49. func (m *GetKeywordPlanCampaignRequest) XXX_Size() int {
  50. return xxx_messageInfo_GetKeywordPlanCampaignRequest.Size(m)
  51. }
  52. func (m *GetKeywordPlanCampaignRequest) XXX_DiscardUnknown() {
  53. xxx_messageInfo_GetKeywordPlanCampaignRequest.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_GetKeywordPlanCampaignRequest proto.InternalMessageInfo
  56. func (m *GetKeywordPlanCampaignRequest) GetResourceName() string {
  57. if m != nil {
  58. return m.ResourceName
  59. }
  60. return ""
  61. }
  62. // Request message for
  63. // [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v0.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns].
  64. type MutateKeywordPlanCampaignsRequest struct {
  65. // The ID of the customer whose Keyword Plan campaigns 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 campaigns.
  68. Operations []*KeywordPlanCampaignOperation `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 *MutateKeywordPlanCampaignsRequest) Reset() { *m = MutateKeywordPlanCampaignsRequest{} }
  82. func (m *MutateKeywordPlanCampaignsRequest) String() string { return proto.CompactTextString(m) }
  83. func (*MutateKeywordPlanCampaignsRequest) ProtoMessage() {}
  84. func (*MutateKeywordPlanCampaignsRequest) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6, []int{1}
  86. }
  87. func (m *MutateKeywordPlanCampaignsRequest) XXX_Unmarshal(b []byte) error {
  88. return xxx_messageInfo_MutateKeywordPlanCampaignsRequest.Unmarshal(m, b)
  89. }
  90. func (m *MutateKeywordPlanCampaignsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. return xxx_messageInfo_MutateKeywordPlanCampaignsRequest.Marshal(b, m, deterministic)
  92. }
  93. func (dst *MutateKeywordPlanCampaignsRequest) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_MutateKeywordPlanCampaignsRequest.Merge(dst, src)
  95. }
  96. func (m *MutateKeywordPlanCampaignsRequest) XXX_Size() int {
  97. return xxx_messageInfo_MutateKeywordPlanCampaignsRequest.Size(m)
  98. }
  99. func (m *MutateKeywordPlanCampaignsRequest) XXX_DiscardUnknown() {
  100. xxx_messageInfo_MutateKeywordPlanCampaignsRequest.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_MutateKeywordPlanCampaignsRequest proto.InternalMessageInfo
  103. func (m *MutateKeywordPlanCampaignsRequest) GetCustomerId() string {
  104. if m != nil {
  105. return m.CustomerId
  106. }
  107. return ""
  108. }
  109. func (m *MutateKeywordPlanCampaignsRequest) GetOperations() []*KeywordPlanCampaignOperation {
  110. if m != nil {
  111. return m.Operations
  112. }
  113. return nil
  114. }
  115. func (m *MutateKeywordPlanCampaignsRequest) GetPartialFailure() bool {
  116. if m != nil {
  117. return m.PartialFailure
  118. }
  119. return false
  120. }
  121. func (m *MutateKeywordPlanCampaignsRequest) 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 campaign.
  128. type KeywordPlanCampaignOperation 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. // *KeywordPlanCampaignOperation_Create
  136. // *KeywordPlanCampaignOperation_Update
  137. // *KeywordPlanCampaignOperation_Remove
  138. Operation isKeywordPlanCampaignOperation_Operation `protobuf_oneof:"operation"`
  139. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  140. XXX_unrecognized []byte `json:"-"`
  141. XXX_sizecache int32 `json:"-"`
  142. }
  143. func (m *KeywordPlanCampaignOperation) Reset() { *m = KeywordPlanCampaignOperation{} }
  144. func (m *KeywordPlanCampaignOperation) String() string { return proto.CompactTextString(m) }
  145. func (*KeywordPlanCampaignOperation) ProtoMessage() {}
  146. func (*KeywordPlanCampaignOperation) Descriptor() ([]byte, []int) {
  147. return fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6, []int{2}
  148. }
  149. func (m *KeywordPlanCampaignOperation) XXX_Unmarshal(b []byte) error {
  150. return xxx_messageInfo_KeywordPlanCampaignOperation.Unmarshal(m, b)
  151. }
  152. func (m *KeywordPlanCampaignOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  153. return xxx_messageInfo_KeywordPlanCampaignOperation.Marshal(b, m, deterministic)
  154. }
  155. func (dst *KeywordPlanCampaignOperation) XXX_Merge(src proto.Message) {
  156. xxx_messageInfo_KeywordPlanCampaignOperation.Merge(dst, src)
  157. }
  158. func (m *KeywordPlanCampaignOperation) XXX_Size() int {
  159. return xxx_messageInfo_KeywordPlanCampaignOperation.Size(m)
  160. }
  161. func (m *KeywordPlanCampaignOperation) XXX_DiscardUnknown() {
  162. xxx_messageInfo_KeywordPlanCampaignOperation.DiscardUnknown(m)
  163. }
  164. var xxx_messageInfo_KeywordPlanCampaignOperation proto.InternalMessageInfo
  165. func (m *KeywordPlanCampaignOperation) GetUpdateMask() *field_mask.FieldMask {
  166. if m != nil {
  167. return m.UpdateMask
  168. }
  169. return nil
  170. }
  171. type isKeywordPlanCampaignOperation_Operation interface {
  172. isKeywordPlanCampaignOperation_Operation()
  173. }
  174. type KeywordPlanCampaignOperation_Create struct {
  175. Create *resources.KeywordPlanCampaign `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
  176. }
  177. type KeywordPlanCampaignOperation_Update struct {
  178. Update *resources.KeywordPlanCampaign `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
  179. }
  180. type KeywordPlanCampaignOperation_Remove struct {
  181. Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
  182. }
  183. func (*KeywordPlanCampaignOperation_Create) isKeywordPlanCampaignOperation_Operation() {}
  184. func (*KeywordPlanCampaignOperation_Update) isKeywordPlanCampaignOperation_Operation() {}
  185. func (*KeywordPlanCampaignOperation_Remove) isKeywordPlanCampaignOperation_Operation() {}
  186. func (m *KeywordPlanCampaignOperation) GetOperation() isKeywordPlanCampaignOperation_Operation {
  187. if m != nil {
  188. return m.Operation
  189. }
  190. return nil
  191. }
  192. func (m *KeywordPlanCampaignOperation) GetCreate() *resources.KeywordPlanCampaign {
  193. if x, ok := m.GetOperation().(*KeywordPlanCampaignOperation_Create); ok {
  194. return x.Create
  195. }
  196. return nil
  197. }
  198. func (m *KeywordPlanCampaignOperation) GetUpdate() *resources.KeywordPlanCampaign {
  199. if x, ok := m.GetOperation().(*KeywordPlanCampaignOperation_Update); ok {
  200. return x.Update
  201. }
  202. return nil
  203. }
  204. func (m *KeywordPlanCampaignOperation) GetRemove() string {
  205. if x, ok := m.GetOperation().(*KeywordPlanCampaignOperation_Remove); ok {
  206. return x.Remove
  207. }
  208. return ""
  209. }
  210. // XXX_OneofFuncs is for the internal use of the proto package.
  211. func (*KeywordPlanCampaignOperation) 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 _KeywordPlanCampaignOperation_OneofMarshaler, _KeywordPlanCampaignOperation_OneofUnmarshaler, _KeywordPlanCampaignOperation_OneofSizer, []interface{}{
  213. (*KeywordPlanCampaignOperation_Create)(nil),
  214. (*KeywordPlanCampaignOperation_Update)(nil),
  215. (*KeywordPlanCampaignOperation_Remove)(nil),
  216. }
  217. }
  218. func _KeywordPlanCampaignOperation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  219. m := msg.(*KeywordPlanCampaignOperation)
  220. // operation
  221. switch x := m.Operation.(type) {
  222. case *KeywordPlanCampaignOperation_Create:
  223. b.EncodeVarint(1<<3 | proto.WireBytes)
  224. if err := b.EncodeMessage(x.Create); err != nil {
  225. return err
  226. }
  227. case *KeywordPlanCampaignOperation_Update:
  228. b.EncodeVarint(2<<3 | proto.WireBytes)
  229. if err := b.EncodeMessage(x.Update); err != nil {
  230. return err
  231. }
  232. case *KeywordPlanCampaignOperation_Remove:
  233. b.EncodeVarint(3<<3 | proto.WireBytes)
  234. b.EncodeStringBytes(x.Remove)
  235. case nil:
  236. default:
  237. return fmt.Errorf("KeywordPlanCampaignOperation.Operation has unexpected type %T", x)
  238. }
  239. return nil
  240. }
  241. func _KeywordPlanCampaignOperation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  242. m := msg.(*KeywordPlanCampaignOperation)
  243. switch tag {
  244. case 1: // operation.create
  245. if wire != proto.WireBytes {
  246. return true, proto.ErrInternalBadWireType
  247. }
  248. msg := new(resources.KeywordPlanCampaign)
  249. err := b.DecodeMessage(msg)
  250. m.Operation = &KeywordPlanCampaignOperation_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.KeywordPlanCampaign)
  257. err := b.DecodeMessage(msg)
  258. m.Operation = &KeywordPlanCampaignOperation_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 = &KeywordPlanCampaignOperation_Remove{x}
  266. return true, err
  267. default:
  268. return false, nil
  269. }
  270. }
  271. func _KeywordPlanCampaignOperation_OneofSizer(msg proto.Message) (n int) {
  272. m := msg.(*KeywordPlanCampaignOperation)
  273. // operation
  274. switch x := m.Operation.(type) {
  275. case *KeywordPlanCampaignOperation_Create:
  276. s := proto.Size(x.Create)
  277. n += 1 // tag and wire
  278. n += proto.SizeVarint(uint64(s))
  279. n += s
  280. case *KeywordPlanCampaignOperation_Update:
  281. s := proto.Size(x.Update)
  282. n += 1 // tag and wire
  283. n += proto.SizeVarint(uint64(s))
  284. n += s
  285. case *KeywordPlanCampaignOperation_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 campaign mutate.
  296. type MutateKeywordPlanCampaignsResponse 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 []*MutateKeywordPlanCampaignResult `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 *MutateKeywordPlanCampaignsResponse) Reset() { *m = MutateKeywordPlanCampaignsResponse{} }
  309. func (m *MutateKeywordPlanCampaignsResponse) String() string { return proto.CompactTextString(m) }
  310. func (*MutateKeywordPlanCampaignsResponse) ProtoMessage() {}
  311. func (*MutateKeywordPlanCampaignsResponse) Descriptor() ([]byte, []int) {
  312. return fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6, []int{3}
  313. }
  314. func (m *MutateKeywordPlanCampaignsResponse) XXX_Unmarshal(b []byte) error {
  315. return xxx_messageInfo_MutateKeywordPlanCampaignsResponse.Unmarshal(m, b)
  316. }
  317. func (m *MutateKeywordPlanCampaignsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  318. return xxx_messageInfo_MutateKeywordPlanCampaignsResponse.Marshal(b, m, deterministic)
  319. }
  320. func (dst *MutateKeywordPlanCampaignsResponse) XXX_Merge(src proto.Message) {
  321. xxx_messageInfo_MutateKeywordPlanCampaignsResponse.Merge(dst, src)
  322. }
  323. func (m *MutateKeywordPlanCampaignsResponse) XXX_Size() int {
  324. return xxx_messageInfo_MutateKeywordPlanCampaignsResponse.Size(m)
  325. }
  326. func (m *MutateKeywordPlanCampaignsResponse) XXX_DiscardUnknown() {
  327. xxx_messageInfo_MutateKeywordPlanCampaignsResponse.DiscardUnknown(m)
  328. }
  329. var xxx_messageInfo_MutateKeywordPlanCampaignsResponse proto.InternalMessageInfo
  330. func (m *MutateKeywordPlanCampaignsResponse) GetPartialFailureError() *status.Status {
  331. if m != nil {
  332. return m.PartialFailureError
  333. }
  334. return nil
  335. }
  336. func (m *MutateKeywordPlanCampaignsResponse) GetResults() []*MutateKeywordPlanCampaignResult {
  337. if m != nil {
  338. return m.Results
  339. }
  340. return nil
  341. }
  342. // The result for the Keyword Plan campaign mutate.
  343. type MutateKeywordPlanCampaignResult 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 *MutateKeywordPlanCampaignResult) Reset() { *m = MutateKeywordPlanCampaignResult{} }
  351. func (m *MutateKeywordPlanCampaignResult) String() string { return proto.CompactTextString(m) }
  352. func (*MutateKeywordPlanCampaignResult) ProtoMessage() {}
  353. func (*MutateKeywordPlanCampaignResult) Descriptor() ([]byte, []int) {
  354. return fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6, []int{4}
  355. }
  356. func (m *MutateKeywordPlanCampaignResult) XXX_Unmarshal(b []byte) error {
  357. return xxx_messageInfo_MutateKeywordPlanCampaignResult.Unmarshal(m, b)
  358. }
  359. func (m *MutateKeywordPlanCampaignResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  360. return xxx_messageInfo_MutateKeywordPlanCampaignResult.Marshal(b, m, deterministic)
  361. }
  362. func (dst *MutateKeywordPlanCampaignResult) XXX_Merge(src proto.Message) {
  363. xxx_messageInfo_MutateKeywordPlanCampaignResult.Merge(dst, src)
  364. }
  365. func (m *MutateKeywordPlanCampaignResult) XXX_Size() int {
  366. return xxx_messageInfo_MutateKeywordPlanCampaignResult.Size(m)
  367. }
  368. func (m *MutateKeywordPlanCampaignResult) XXX_DiscardUnknown() {
  369. xxx_messageInfo_MutateKeywordPlanCampaignResult.DiscardUnknown(m)
  370. }
  371. var xxx_messageInfo_MutateKeywordPlanCampaignResult proto.InternalMessageInfo
  372. func (m *MutateKeywordPlanCampaignResult) GetResourceName() string {
  373. if m != nil {
  374. return m.ResourceName
  375. }
  376. return ""
  377. }
  378. func init() {
  379. proto.RegisterType((*GetKeywordPlanCampaignRequest)(nil), "google.ads.googleads.v0.services.GetKeywordPlanCampaignRequest")
  380. proto.RegisterType((*MutateKeywordPlanCampaignsRequest)(nil), "google.ads.googleads.v0.services.MutateKeywordPlanCampaignsRequest")
  381. proto.RegisterType((*KeywordPlanCampaignOperation)(nil), "google.ads.googleads.v0.services.KeywordPlanCampaignOperation")
  382. proto.RegisterType((*MutateKeywordPlanCampaignsResponse)(nil), "google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse")
  383. proto.RegisterType((*MutateKeywordPlanCampaignResult)(nil), "google.ads.googleads.v0.services.MutateKeywordPlanCampaignResult")
  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. // KeywordPlanCampaignServiceClient is the client API for KeywordPlanCampaignService 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 KeywordPlanCampaignServiceClient interface {
  395. // Returns the requested Keyword Plan campaign in full detail.
  396. GetKeywordPlanCampaign(ctx context.Context, in *GetKeywordPlanCampaignRequest, opts ...grpc.CallOption) (*resources.KeywordPlanCampaign, error)
  397. // Creates, updates, or removes Keyword Plan campaigns. Operation statuses are
  398. // returned.
  399. MutateKeywordPlanCampaigns(ctx context.Context, in *MutateKeywordPlanCampaignsRequest, opts ...grpc.CallOption) (*MutateKeywordPlanCampaignsResponse, error)
  400. }
  401. type keywordPlanCampaignServiceClient struct {
  402. cc *grpc.ClientConn
  403. }
  404. func NewKeywordPlanCampaignServiceClient(cc *grpc.ClientConn) KeywordPlanCampaignServiceClient {
  405. return &keywordPlanCampaignServiceClient{cc}
  406. }
  407. func (c *keywordPlanCampaignServiceClient) GetKeywordPlanCampaign(ctx context.Context, in *GetKeywordPlanCampaignRequest, opts ...grpc.CallOption) (*resources.KeywordPlanCampaign, error) {
  408. out := new(resources.KeywordPlanCampaign)
  409. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.KeywordPlanCampaignService/GetKeywordPlanCampaign", in, out, opts...)
  410. if err != nil {
  411. return nil, err
  412. }
  413. return out, nil
  414. }
  415. func (c *keywordPlanCampaignServiceClient) MutateKeywordPlanCampaigns(ctx context.Context, in *MutateKeywordPlanCampaignsRequest, opts ...grpc.CallOption) (*MutateKeywordPlanCampaignsResponse, error) {
  416. out := new(MutateKeywordPlanCampaignsResponse)
  417. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns", in, out, opts...)
  418. if err != nil {
  419. return nil, err
  420. }
  421. return out, nil
  422. }
  423. // KeywordPlanCampaignServiceServer is the server API for KeywordPlanCampaignService service.
  424. type KeywordPlanCampaignServiceServer interface {
  425. // Returns the requested Keyword Plan campaign in full detail.
  426. GetKeywordPlanCampaign(context.Context, *GetKeywordPlanCampaignRequest) (*resources.KeywordPlanCampaign, error)
  427. // Creates, updates, or removes Keyword Plan campaigns. Operation statuses are
  428. // returned.
  429. MutateKeywordPlanCampaigns(context.Context, *MutateKeywordPlanCampaignsRequest) (*MutateKeywordPlanCampaignsResponse, error)
  430. }
  431. func RegisterKeywordPlanCampaignServiceServer(s *grpc.Server, srv KeywordPlanCampaignServiceServer) {
  432. s.RegisterService(&_KeywordPlanCampaignService_serviceDesc, srv)
  433. }
  434. func _KeywordPlanCampaignService_GetKeywordPlanCampaign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  435. in := new(GetKeywordPlanCampaignRequest)
  436. if err := dec(in); err != nil {
  437. return nil, err
  438. }
  439. if interceptor == nil {
  440. return srv.(KeywordPlanCampaignServiceServer).GetKeywordPlanCampaign(ctx, in)
  441. }
  442. info := &grpc.UnaryServerInfo{
  443. Server: srv,
  444. FullMethod: "/google.ads.googleads.v0.services.KeywordPlanCampaignService/GetKeywordPlanCampaign",
  445. }
  446. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  447. return srv.(KeywordPlanCampaignServiceServer).GetKeywordPlanCampaign(ctx, req.(*GetKeywordPlanCampaignRequest))
  448. }
  449. return interceptor(ctx, in, info, handler)
  450. }
  451. func _KeywordPlanCampaignService_MutateKeywordPlanCampaigns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  452. in := new(MutateKeywordPlanCampaignsRequest)
  453. if err := dec(in); err != nil {
  454. return nil, err
  455. }
  456. if interceptor == nil {
  457. return srv.(KeywordPlanCampaignServiceServer).MutateKeywordPlanCampaigns(ctx, in)
  458. }
  459. info := &grpc.UnaryServerInfo{
  460. Server: srv,
  461. FullMethod: "/google.ads.googleads.v0.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns",
  462. }
  463. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  464. return srv.(KeywordPlanCampaignServiceServer).MutateKeywordPlanCampaigns(ctx, req.(*MutateKeywordPlanCampaignsRequest))
  465. }
  466. return interceptor(ctx, in, info, handler)
  467. }
  468. var _KeywordPlanCampaignService_serviceDesc = grpc.ServiceDesc{
  469. ServiceName: "google.ads.googleads.v0.services.KeywordPlanCampaignService",
  470. HandlerType: (*KeywordPlanCampaignServiceServer)(nil),
  471. Methods: []grpc.MethodDesc{
  472. {
  473. MethodName: "GetKeywordPlanCampaign",
  474. Handler: _KeywordPlanCampaignService_GetKeywordPlanCampaign_Handler,
  475. },
  476. {
  477. MethodName: "MutateKeywordPlanCampaigns",
  478. Handler: _KeywordPlanCampaignService_MutateKeywordPlanCampaigns_Handler,
  479. },
  480. },
  481. Streams: []grpc.StreamDesc{},
  482. Metadata: "google/ads/googleads/v0/services/keyword_plan_campaign_service.proto",
  483. }
  484. func init() {
  485. proto.RegisterFile("google/ads/googleads/v0/services/keyword_plan_campaign_service.proto", fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6)
  486. }
  487. var fileDescriptor_keyword_plan_campaign_service_4a0fa0ed751f3ed6 = []byte{
  488. // 728 bytes of a gzipped FileDescriptorProto
  489. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x4f, 0x6b, 0xd4, 0x4c,
  490. 0x18, 0xc0, 0xdf, 0x64, 0x5f, 0xaa, 0x9d, 0x54, 0x85, 0x11, 0x75, 0x09, 0xd5, 0xae, 0xb1, 0x60,
  491. 0xd9, 0x43, 0xb2, 0xac, 0x50, 0x34, 0xa5, 0x95, 0x6d, 0xd7, 0x6d, 0x45, 0x6a, 0x97, 0x14, 0x7a,
  492. 0xd0, 0xc5, 0x30, 0x4d, 0xa6, 0x21, 0x34, 0xc9, 0xc4, 0x99, 0xc9, 0x96, 0x52, 0x7a, 0xf1, 0xe0,
  493. 0x17, 0xf0, 0x1b, 0x78, 0xf0, 0xe0, 0x37, 0xd1, 0x9b, 0xf8, 0x05, 0x3c, 0x78, 0x12, 0xbc, 0xf8,
  494. 0x09, 0x24, 0x99, 0xcc, 0xda, 0x96, 0x4d, 0x57, 0xec, 0xed, 0xc9, 0x33, 0x4f, 0x7e, 0xcf, 0xdf,
  495. 0x79, 0x06, 0x74, 0x03, 0x42, 0x82, 0x08, 0x5b, 0xc8, 0x67, 0x96, 0x10, 0x73, 0x69, 0xd8, 0xb2,
  496. 0x18, 0xa6, 0xc3, 0xd0, 0xc3, 0xcc, 0xda, 0xc7, 0x87, 0x07, 0x84, 0xfa, 0x6e, 0x1a, 0xa1, 0xc4,
  497. 0xf5, 0x50, 0x9c, 0xa2, 0x30, 0x48, 0xdc, 0xf2, 0xd8, 0x4c, 0x29, 0xe1, 0x04, 0x36, 0xc4, 0xaf,
  498. 0x26, 0xf2, 0x99, 0x39, 0xa2, 0x98, 0xc3, 0x96, 0x29, 0x29, 0xfa, 0x72, 0x95, 0x1f, 0x8a, 0x19,
  499. 0xc9, 0x68, 0xa5, 0x23, 0xe1, 0x40, 0x9f, 0x95, 0xbf, 0xa7, 0xa1, 0x85, 0x92, 0x84, 0x70, 0xc4,
  500. 0x43, 0x92, 0xb0, 0xf2, 0xb4, 0x74, 0x6f, 0x15, 0x5f, 0xbb, 0xd9, 0x9e, 0xb5, 0x17, 0xe2, 0xc8,
  501. 0x77, 0x63, 0xc4, 0xf6, 0x4b, 0x8b, 0x3b, 0x67, 0x2d, 0x0e, 0x28, 0x4a, 0x53, 0x4c, 0x25, 0xe1,
  502. 0x56, 0x79, 0x4e, 0x53, 0xcf, 0x62, 0x1c, 0xf1, 0xac, 0x3c, 0x30, 0xba, 0xe0, 0xf6, 0x3a, 0xe6,
  503. 0xcf, 0x44, 0x68, 0xfd, 0x08, 0x25, 0x6b, 0x65, 0x60, 0x0e, 0x7e, 0x9d, 0x61, 0xc6, 0xe1, 0x3d,
  504. 0x70, 0x45, 0xa6, 0xe0, 0x26, 0x28, 0xc6, 0x75, 0xa5, 0xa1, 0x2c, 0x4c, 0x3b, 0x33, 0x52, 0xf9,
  505. 0x1c, 0xc5, 0xd8, 0xf8, 0xa5, 0x80, 0xbb, 0x9b, 0x19, 0x47, 0x1c, 0x8f, 0x21, 0x31, 0x89, 0x9a,
  506. 0x03, 0x9a, 0x97, 0x31, 0x4e, 0x62, 0x4c, 0xdd, 0xd0, 0x2f, 0x41, 0x40, 0xaa, 0x9e, 0xfa, 0xf0,
  507. 0x15, 0x00, 0x24, 0xc5, 0x54, 0xe4, 0x5e, 0x57, 0x1b, 0xb5, 0x05, 0xad, 0xbd, 0x62, 0x4e, 0xaa,
  508. 0xbd, 0x39, 0xc6, 0xe7, 0x96, 0xc4, 0x38, 0x27, 0x88, 0xf0, 0x3e, 0xb8, 0x96, 0x22, 0xca, 0x43,
  509. 0x14, 0xb9, 0x7b, 0x28, 0x8c, 0x32, 0x8a, 0xeb, 0xb5, 0x86, 0xb2, 0x70, 0xd9, 0xb9, 0x5a, 0xaa,
  510. 0x7b, 0x42, 0x9b, 0x27, 0x3d, 0x44, 0x51, 0xe8, 0x23, 0x8e, 0x5d, 0x92, 0x44, 0x87, 0xf5, 0xff,
  511. 0x0b, 0xb3, 0x19, 0xa9, 0xdc, 0x4a, 0xa2, 0x43, 0xe3, 0x83, 0x0a, 0x66, 0xcf, 0x73, 0x0d, 0x97,
  512. 0x80, 0x96, 0xa5, 0x05, 0x23, 0xef, 0x54, 0xc1, 0xd0, 0xda, 0xba, 0xcc, 0x47, 0xb6, 0xca, 0xec,
  513. 0xe5, 0xcd, 0xdc, 0x44, 0x6c, 0xdf, 0x01, 0xc2, 0x3c, 0x97, 0x61, 0x1f, 0x4c, 0x79, 0x14, 0x23,
  514. 0x2e, 0x0a, 0xae, 0xb5, 0x17, 0x2b, 0xeb, 0x30, 0x9a, 0xb0, 0x71, 0x85, 0xd8, 0xf8, 0xcf, 0x29,
  515. 0x39, 0x39, 0x51, 0xf0, 0xeb, 0xea, 0x45, 0x89, 0x82, 0x03, 0xeb, 0x60, 0x8a, 0xe2, 0x98, 0x0c,
  516. 0x45, 0x19, 0xa7, 0xf3, 0x13, 0xf1, 0xbd, 0xaa, 0x81, 0xe9, 0x51, 0xdd, 0x8d, 0x4f, 0x0a, 0x30,
  517. 0xce, 0x9b, 0x0e, 0x96, 0x92, 0x84, 0x61, 0xd8, 0x03, 0x37, 0xce, 0x74, 0xc7, 0xc5, 0x94, 0x12,
  518. 0x5a, 0xc0, 0xb5, 0x36, 0x94, 0xe1, 0xd2, 0xd4, 0x33, 0xb7, 0x8b, 0x19, 0x76, 0xae, 0x9f, 0xee,
  519. 0xdb, 0x93, 0xdc, 0x1c, 0xbe, 0x04, 0x97, 0x28, 0x66, 0x59, 0xc4, 0xe5, 0x08, 0x75, 0x26, 0x8f,
  520. 0x50, 0x65, 0x78, 0x4e, 0x41, 0x72, 0x24, 0xd1, 0xe8, 0x81, 0xb9, 0x09, 0xb6, 0x7f, 0x75, 0x63,
  521. 0xda, 0xdf, 0x6a, 0x40, 0x1f, 0x83, 0xd8, 0x16, 0x01, 0xc1, 0x2f, 0x0a, 0xb8, 0x39, 0xfe, 0x5e,
  522. 0xc2, 0xc7, 0x93, 0xb3, 0x39, 0xf7, 0x46, 0xeb, 0xff, 0xd8, 0x77, 0x63, 0xe5, 0xcd, 0xd7, 0xef,
  523. 0xef, 0xd4, 0x87, 0x70, 0x31, 0x5f, 0x6b, 0x47, 0xa7, 0x52, 0x5c, 0x96, 0x97, 0x98, 0x59, 0x4d,
  524. 0xb9, 0xe7, 0x4e, 0x35, 0xd9, 0x6a, 0x1e, 0xc3, 0x9f, 0x0a, 0xd0, 0xab, 0xc7, 0x00, 0xae, 0x5d,
  525. 0xa0, 0x4b, 0x72, 0xc5, 0xe8, 0xdd, 0x8b, 0x41, 0xc4, 0x24, 0x1a, 0xdd, 0x22, 0xd3, 0x15, 0xe3,
  526. 0x51, 0x9e, 0xe9, 0x9f, 0xd4, 0x8e, 0x4e, 0x6c, 0xaf, 0xe5, 0xe6, 0xf1, 0xd8, 0x44, 0xed, 0xb8,
  527. 0xc0, 0xdb, 0x4a, 0x73, 0xf5, 0xad, 0x0a, 0xe6, 0x3d, 0x12, 0x4f, 0x8c, 0x68, 0x75, 0xae, 0x7a,
  528. 0x10, 0xfa, 0xf9, 0x92, 0xe8, 0x2b, 0x2f, 0x36, 0x4a, 0x48, 0x40, 0x22, 0x94, 0x04, 0x26, 0xa1,
  529. 0x81, 0x15, 0xe0, 0xa4, 0x58, 0x21, 0xf2, 0xb9, 0x49, 0x43, 0x56, 0xfd, 0xca, 0x2d, 0x49, 0xe1,
  530. 0xbd, 0x5a, 0x5b, 0xef, 0x74, 0x3e, 0xaa, 0x8d, 0x75, 0x01, 0xec, 0xf8, 0xcc, 0x14, 0x62, 0x2e,
  531. 0xed, 0xb4, 0xcc, 0xd2, 0x31, 0xfb, 0x2c, 0x4d, 0x06, 0x1d, 0x9f, 0x0d, 0x46, 0x26, 0x83, 0x9d,
  532. 0xd6, 0x40, 0x9a, 0xfc, 0x50, 0xe7, 0x85, 0xde, 0xb6, 0x3b, 0x3e, 0xb3, 0xed, 0x91, 0x91, 0x6d,
  533. 0xef, 0xb4, 0x6c, 0x5b, 0x9a, 0xed, 0x4e, 0x15, 0x71, 0x3e, 0xf8, 0x1d, 0x00, 0x00, 0xff, 0xff,
  534. 0x5a, 0x33, 0x1b, 0xac, 0x8c, 0x07, 0x00, 0x00,
  535. }