Enum googapis::google::ads::googleads::v7::errors::media_upload_error_enum::MediaUploadError[][src]

#[repr(i32)]
pub enum MediaUploadError {
Show 36 variants Unspecified, Unknown, FileTooBig, UnparseableImage, AnimatedImageNotAllowed, FormatNotAllowed, ExternalUrlNotAllowed, InvalidUrlReference, MissingPrimaryMediaBundleEntry, AnimatedVisualEffect, AnimationTooLong, AspectRatioNotAllowed, AudioNotAllowedInMediaBundle, CmykJpegNotAllowed, FlashNotAllowed, FrameRateTooHigh, GoogleWebDesignerZipFileNotPublished, ImageConstraintsViolated, InvalidMediaBundle, InvalidMediaBundleEntry, InvalidMimeType, InvalidPath, LayoutProblem, MalformedUrl, MediaBundleNotAllowed, MediaBundleNotCompatibleToProductType, MediaBundleRejectedByMultipleAssetSpecs, TooManyFilesInMediaBundle, UnsupportedGoogleWebDesignerEnvironment, UnsupportedHtml5Feature, UrlInMediaBundleNotSslCompliant, VideoFileNameTooLong, VideoMultipleFilesWithSameName, VideoNotAllowedInMediaBundle, CannotUploadMediaTypeThroughApi, DimensionsNotAllowed,
}
Expand description

Enum describing possible media uploading errors.

Variants

Unspecified

Enum unspecified.

Unknown

The received error code is not known in this version.

FileTooBig

The uploaded file is too big.

UnparseableImage

Image data is unparseable.

AnimatedImageNotAllowed

Animated images are not allowed.

FormatNotAllowed

The image or media bundle format is not allowed.

ExternalUrlNotAllowed

Cannot reference URL external to the media bundle.

InvalidUrlReference

HTML5 ad is trying to reference an asset not in .ZIP file.

MissingPrimaryMediaBundleEntry

The media bundle contains no primary entry.

AnimatedVisualEffect

Animation has disallowed visual effects.

AnimationTooLong

Animation longer than the allowed 30 second limit.

AspectRatioNotAllowed

The aspect ratio of the image does not match the expected aspect ratios provided in the asset spec.

AudioNotAllowedInMediaBundle

Audio files are not allowed in bundle.

CmykJpegNotAllowed

CMYK jpegs are not supported.

FlashNotAllowed

Flash movies are not allowed.

FrameRateTooHigh

The frame rate of the video is higher than the allowed 5fps.

GoogleWebDesignerZipFileNotPublished

ZIP file from Google Web Designer is not published.

ImageConstraintsViolated

Image constraints are violated, but more details (like DIMENSIONS_NOT_ALLOWED or ASPECT_RATIO_NOT_ALLOWED) can not be provided. This happens when asset spec contains more than one constraint and criteria of different constraints are violated.

InvalidMediaBundle

Media bundle data is unrecognizable.

InvalidMediaBundleEntry

There was a problem with one or more of the media bundle entries.

InvalidMimeType

The asset has an invalid mime type.

InvalidPath

The media bundle contains an invalid asset path.

LayoutProblem

Image has layout problem.

MalformedUrl

An asset had a URL reference that is malformed per RFC 1738 convention.

MediaBundleNotAllowed

The uploaded media bundle format is not allowed.

MediaBundleNotCompatibleToProductType

The media bundle is not compatible with the asset spec product type. (E.g. Gmail, dynamic remarketing, etc.)

MediaBundleRejectedByMultipleAssetSpecs

A bundle being uploaded that is incompatible with multiple assets for different reasons.

TooManyFilesInMediaBundle

The media bundle contains too many files.

UnsupportedGoogleWebDesignerEnvironment

Google Web Designer not created for “Google Ads” environment.

UnsupportedHtml5Feature

Unsupported HTML5 feature in HTML5 asset.

UrlInMediaBundleNotSslCompliant

URL in HTML5 entry is not SSL compliant.

VideoFileNameTooLong

Video file name is longer than the 50 allowed characters.

VideoMultipleFilesWithSameName

Multiple videos with same name in a bundle.

VideoNotAllowedInMediaBundle

Videos are not allowed in media bundle.

CannotUploadMediaTypeThroughApi

This type of media cannot be uploaded through the Google Ads API.

DimensionsNotAllowed

The dimensions of the image are not allowed.

Implementations

Returns true if value is a variant of MediaUploadError.

Converts an i32 to a MediaUploadError, or None if value is not a valid variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more