123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- syntax = "proto3";
- package google.ads.googleads.v11.resources;
- import "google/ads/googleads/v11/enums/media_type.proto";
- import "google/ads/googleads/v11/enums/mime_type.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- option csharp_namespace = "Google.Ads.GoogleAds.V11.Resources";
- option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/resources;resources";
- option java_multiple_files = true;
- option java_outer_classname = "MediaFileProto";
- option java_package = "com.google.ads.googleads.v11.resources";
- option objc_class_prefix = "GAA";
- option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Resources";
- option ruby_package = "Google::Ads::GoogleAds::V11::Resources";
- message MediaFile {
- option (google.api.resource) = {
- type: "googleads.googleapis.com/MediaFile"
- pattern: "customers/{customer_id}/mediaFiles/{media_file_id}"
- };
-
-
-
-
- string resource_name = 1 [
- (google.api.field_behavior) = IMMUTABLE,
- (google.api.resource_reference) = {
- type: "googleads.googleapis.com/MediaFile"
- }
- ];
-
- optional int64 id = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.ads.googleads.v11.enums.MediaTypeEnum.MediaType type = 5 [(google.api.field_behavior) = IMMUTABLE];
-
- google.ads.googleads.v11.enums.MimeTypeEnum.MimeType mime_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- optional string source_url = 13 [(google.api.field_behavior) = IMMUTABLE];
-
-
- optional string name = 14 [(google.api.field_behavior) = IMMUTABLE];
-
- optional int64 file_size = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- oneof mediatype {
-
- MediaImage image = 3 [(google.api.field_behavior) = IMMUTABLE];
-
- MediaBundle media_bundle = 4 [(google.api.field_behavior) = IMMUTABLE];
-
- MediaAudio audio = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- MediaVideo video = 11 [(google.api.field_behavior) = IMMUTABLE];
- }
- }
- message MediaImage {
-
- optional bytes data = 4 [(google.api.field_behavior) = IMMUTABLE];
-
- optional string full_size_image_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- optional string preview_size_image_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message MediaBundle {
-
- optional bytes data = 3 [(google.api.field_behavior) = IMMUTABLE];
-
-
-
- optional string url = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message MediaAudio {
-
- optional int64 ad_duration_millis = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message MediaVideo {
-
- optional int64 ad_duration_millis = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- optional string youtube_video_id = 6 [(google.api.field_behavior) = IMMUTABLE];
-
-
-
- optional string advertising_id_code = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- optional string isci_code = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|