video_service.proto 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.v6.services;
  16. import "google/ads/googleads/v6/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.V6.Services";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "VideoServiceProto";
  25. option java_package = "com.google.ads.googleads.v6.services";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services";
  28. option ruby_package = "Google::Ads::GoogleAds::V6::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. rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v6.resources.Video) {
  36. option (google.api.http) = {
  37. get: "/v6/{resource_name=customers/*/videos/*}"
  38. };
  39. option (google.api.method_signature) = "resource_name";
  40. }
  41. }
  42. // Request message for [VideoService.GetVideo][google.ads.googleads.v6.services.VideoService.GetVideo].
  43. message GetVideoRequest {
  44. // Required. The resource name of the video to fetch.
  45. string resource_name = 1 [
  46. (google.api.field_behavior) = REQUIRED,
  47. (google.api.resource_reference) = {
  48. type: "googleads.googleapis.com/Video"
  49. }
  50. ];
  51. }