Class: Google::Apis::AdexchangebuyerV1_4::TargetingValueCreativeSize

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb

Overview

Next Id: 7

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TargetingValueCreativeSize

Returns a new instance of TargetingValueCreativeSize.


3556
3557
3558
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3556

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowed_formatsArray<String>

The formats allowed by the publisher. Corresponds to the JSON property allowedFormats

Returns:

  • (Array<String>)

3529
3530
3531
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3529

def allowed_formats
  @allowed_formats
end

#companion_sizesArray<Google::Apis::AdexchangebuyerV1_4::TargetingValueSize>

For video size type, the list of companion sizes. Corresponds to the JSON property companionSizes


3534
3535
3536
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3534

def companion_sizes
  @companion_sizes
end

#creative_size_typeString

The Creative size type. Corresponds to the JSON property creativeSizeType

Returns:

  • (String)

3539
3540
3541
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3539

def creative_size_type
  @creative_size_type
end

#native_templateString

The native template for native ad. Corresponds to the JSON property nativeTemplate

Returns:

  • (String)

3544
3545
3546
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3544

def native_template
  @native_template
end

#sizeGoogle::Apis::AdexchangebuyerV1_4::TargetingValueSize

For regular or video creative size type, specifies the size of the creative. Corresponds to the JSON property size


3549
3550
3551
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3549

def size
  @size
end

#skippable_ad_typeString

The skippable ad type for video size. Corresponds to the JSON property skippableAdType

Returns:

  • (String)

3554
3555
3556
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3554

def skippable_ad_type
  @skippable_ad_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3561
3562
3563
3564
3565
3566
3567
3568
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3561

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