Class: Google::Apis::Adexchangebuyer2V2beta1::CreativeSize
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::CreativeSize
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
Specifies the size of the creative.
Instance Attribute Summary collapse
-
#allowed_formats ⇒ Array<String>
What formats are allowed by the publisher.
-
#companion_sizes ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::Size>
For video creatives specifies the sizes of companion ads (if present).
-
#creative_size_type ⇒ String
The creative size type.
-
#native_template ⇒ String
Output only.
-
#size ⇒ Google::Apis::Adexchangebuyer2V2beta1::Size
Message depicting the size of the creative.
-
#skippable_ad_type ⇒ String
The type of skippable ad for this creative.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreativeSize
constructor
A new instance of CreativeSize.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreativeSize
Returns a new instance of CreativeSize
934 935 936 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 934 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_formats ⇒ Array<String>
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
903 904 905 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 903 def allowed_formats @allowed_formats end |
#companion_sizes ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::Size>
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
909 910 911 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 909 def companion_sizes @companion_sizes end |
#creative_size_type ⇒ String
The creative size type.
Corresponds to the JSON property creativeSizeType
914 915 916 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 914 def creative_size_type @creative_size_type end |
#native_template ⇒ String
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
920 921 922 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 920 def native_template @native_template end |
#size ⇒ Google::Apis::Adexchangebuyer2V2beta1::Size
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
926 927 928 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 926 def size @size end |
#skippable_ad_type ⇒ String
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
932 933 934 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 932 def skippable_ad_type @skippable_ad_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
939 940 941 942 943 944 945 946 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 939 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 |