Class: Google::Apis::DfareportingV2_8::CompanionSetting

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

Overview

Companion Settings

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) ⇒ CompanionSetting

Returns a new instance of CompanionSetting



2130
2131
2132
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2130

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

Instance Attribute Details

#companions_disabledBoolean Also known as: companions_disabled?

Whether companions are disabled for this placement. Corresponds to the JSON property companionsDisabled

Returns:

  • (Boolean)


2109
2110
2111
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2109

def companions_disabled
  @companions_disabled
end

#enabled_sizesArray<Google::Apis::DfareportingV2_8::Size>

Whitelist 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



2116
2117
2118
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2116

def enabled_sizes
  @enabled_sizes
end

#image_onlyBoolean Also known as: image_only?

Whether to serve only static images as companions. Corresponds to the JSON property imageOnly

Returns:

  • (Boolean)


2121
2122
2123
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2121

def image_only
  @image_only
end

#kindString

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

Returns:

  • (String)


2128
2129
2130
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2128

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2135
2136
2137
2138
2139
2140
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2135

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