class Google::Apis::DfareportingV3_4::CompanionSetting

Companion Settings

Attributes

companions_disabled[RW]

Whether companions are disabled for this placement. Corresponds to the JSON property `companionsDisabled` @return [Boolean]

companions_disabled?[RW]

Whether companions are disabled for this placement. Corresponds to the JSON property `companionsDisabled` @return [Boolean]

enabled_sizes[RW]

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_4::Size>]

image_only[RW]

Whether to serve only static images as companions. Corresponds to the JSON property `imageOnly` @return [Boolean]

image_only?[RW]

Whether to serve only static images as companions. Corresponds to the JSON property `imageOnly` @return [Boolean]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#companionSetting”. Corresponds to the JSON property `kind` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_4/classes.rb, line 2206
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