Class: Google::Apis::DfareportingV4::TranscodeSetting

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

Overview

Transcode Settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TranscodeSetting

Returns a new instance of TranscodeSetting.



12346
12347
12348
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12346

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

Instance Attribute Details

#enabled_video_formatsArray<Fixnum>

Allowlist of video formats to be served to this placement. Set this list to null or empty to serve all video formats. Corresponds to the JSON property enabledVideoFormats

Returns:

  • (Array<Fixnum>)


12338
12339
12340
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12338

def enabled_video_formats
  @enabled_video_formats
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#transcodeSetting". Corresponds to the JSON property kind

Returns:

  • (String)


12344
12345
12346
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12344

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12351
12352
12353
12354
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12351

def update!(**args)
  @enabled_video_formats = args[:enabled_video_formats] if args.key?(:enabled_video_formats)
  @kind = args[:kind] if args.key?(:kind)
end