video_service.proto 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Copyright 2021 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.v8.services;
  16. import "google/ads/googleads/v8/resources/video.proto";
  17. import "google/api/annotations.proto";
  18. import "google/api/client.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V8.Services";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/services;services";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "VideoServiceProto";
  25. option java_package = "com.google.ads.googleads.v8.services";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Services";
  28. option ruby_package = "Google::Ads::GoogleAds::V8::Services";
  29. // Proto file describing the Video service.
  30. // Service to manage videos.
  31. service VideoService {
  32. option (google.api.default_host) = "googleads.googleapis.com";
  33. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords";
  34. // Returns the requested video in full detail.
  35. //
  36. // List of thrown errors:
  37. // [AuthenticationError]()
  38. // [AuthorizationError]()
  39. // [HeaderError]()
  40. // [InternalError]()
  41. // [QuotaError]()
  42. // [RequestError]()
  43. rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v8.resources.Video) {
  44. option (google.api.http) = {
  45. get: "/v8/{resource_name=customers/*/videos/*}"
  46. };
  47. option (google.api.method_signature) = "resource_name";
  48. }
  49. }
  50. // Request message for [VideoService.GetVideo][google.ads.googleads.v8.services.VideoService.GetVideo].
  51. message GetVideoRequest {
  52. // Required. The resource name of the video to fetch.
  53. string resource_name = 1 [
  54. (google.api.field_behavior) = REQUIRED,
  55. (google.api.resource_reference) = {
  56. type: "googleads.googleapis.com/Video"
  57. }
  58. ];
  59. }