payments_account_service.proto 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.ads.googleads.v11.services;
  16. import "google/ads/googleads/v11/resources/payments_account.proto";
  17. import "google/api/annotations.proto";
  18. import "google/api/client.proto";
  19. import "google/api/field_behavior.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V11.Services";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/services;services";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "PaymentsAccountServiceProto";
  24. option java_package = "com.google.ads.googleads.v11.services";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Services";
  27. option ruby_package = "Google::Ads::GoogleAds::V11::Services";
  28. // Proto file describing the payments account service.
  29. // Service to provide payments accounts that can be used to set up consolidated
  30. // billing.
  31. service PaymentsAccountService {
  32. option (google.api.default_host) = "googleads.googleapis.com";
  33. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords";
  34. // Returns all payments accounts associated with all managers
  35. // between the login customer ID and specified serving customer in the
  36. // hierarchy, inclusive.
  37. //
  38. // List of thrown errors:
  39. // [AuthenticationError]()
  40. // [AuthorizationError]()
  41. // [HeaderError]()
  42. // [InternalError]()
  43. // [PaymentsAccountError]()
  44. // [QuotaError]()
  45. // [RequestError]()
  46. rpc ListPaymentsAccounts(ListPaymentsAccountsRequest) returns (ListPaymentsAccountsResponse) {
  47. option (google.api.http) = {
  48. get: "/v11/customers/{customer_id=*}/paymentsAccounts"
  49. };
  50. option (google.api.method_signature) = "customer_id";
  51. }
  52. }
  53. // Request message for fetching all accessible payments accounts.
  54. message ListPaymentsAccountsRequest {
  55. // Required. The ID of the customer to apply the PaymentsAccount list operation to.
  56. string customer_id = 1 [(google.api.field_behavior) = REQUIRED];
  57. }
  58. // Response message for [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v11.services.PaymentsAccountService.ListPaymentsAccounts].
  59. message ListPaymentsAccountsResponse {
  60. // The list of accessible payments accounts.
  61. repeated google.ads.googleads.v11.resources.PaymentsAccount payments_accounts = 1;
  62. }