class Google::Apis::DfareportingV3_5::CompanionSetting
Companion Settings
Attributes
Whether companions are disabled for this placement. Corresponds to the JSON property `companionsDisabled` @return [Boolean]
Whether companions are disabled for this placement. Corresponds to the JSON property `companionsDisabled` @return [Boolean]
Allowlist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes. Corresponds to the JSON property `enabledSizes` @return [Array<Google::Apis::DfareportingV3_5::Size>]
Whether to serve only static images as companions. Corresponds to the JSON property `imageOnly` @return [Boolean]
Whether to serve only static images as companions. Corresponds to the JSON property `imageOnly` @return [Boolean]
Identifies what kind of resource this is. Value: the fixed string “ dfareporting#companionSetting”. Corresponds to the JSON property `kind` @return [String]
Public Class Methods
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 2139 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 2144 def update!(**args) @companions_disabled = args[:companions_disabled] if args.key?(:companions_disabled) @enabled_sizes = args[:enabled_sizes] if args.key?(:enabled_sizes) @image_only = args[:image_only] if args.key?(:image_only) @kind = args[:kind] if args.key?(:kind) end