class Google::Apis::Adexchangebuyer2V2beta1::CreativeSize

Specifies the size of the creative.

Attributes

allowed_formats[RW]

What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video). Corresponds to the JSON property `allowedFormats` @return [Array<String>]

companion_sizes[RW]

For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO Corresponds to the JSON property `companionSizes` @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Size>]

creative_size_type[RW]

The creative size type. Corresponds to the JSON property `creativeSizeType` @return [String]

native_template[RW]

Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE. Corresponds to the JSON property `nativeTemplate` @return [String]

size[RW]

Message depicting the size of the creative. The units of width and height depend on the type of the targeting. Corresponds to the JSON property `size` @return [Google::Apis::Adexchangebuyer2V2beta1::Size]

skippable_ad_type[RW]

The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO. Corresponds to the JSON property `skippableAdType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 947
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 952
def update!(**args)
  @allowed_formats = args[:allowed_formats] if args.key?(:allowed_formats)
  @companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes)
  @creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type)
  @native_template = args[:native_template] if args.key?(:native_template)
  @size = args[:size] if args.key?(:size)
  @skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type)
end