Class: Google::Apis::AdmobV1beta::AdapterAdapterConfigMetadata

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

Overview

Configuration metadata associated with this adapter. They are used to define the ad_unit_configurations associated with AdUnitMappings for the this adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdapterAdapterConfigMetadata

Returns a new instance of AdapterAdapterConfigMetadata.



282
283
284
# File 'lib/google/apis/admob_v1beta/classes.rb', line 282

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

Instance Attribute Details

#adapter_config_metadata_idString

This is used to fill the key of the ad_unit_configurations. Corresponds to the JSON property adapterConfigMetadataId

Returns:

  • (String)


269
270
271
# File 'lib/google/apis/admob_v1beta/classes.rb', line 269

def 
  @adapter_config_metadata_id
end

#adapter_config_metadata_labelString

Name of the adapter configuration metadata. Corresponds to the JSON property adapterConfigMetadataLabel

Returns:

  • (String)


274
275
276
# File 'lib/google/apis/admob_v1beta/classes.rb', line 274

def 
  @adapter_config_metadata_label
end

#is_requiredBoolean Also known as: is_required?

Whether this metadata is required for configuring the AdUnitMappings. Corresponds to the JSON property isRequired

Returns:

  • (Boolean)


279
280
281
# File 'lib/google/apis/admob_v1beta/classes.rb', line 279

def is_required
  @is_required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



287
288
289
290
291
# File 'lib/google/apis/admob_v1beta/classes.rb', line 287

def update!(**args)
  @adapter_config_metadata_id = args[:adapter_config_metadata_id] if args.key?(:adapter_config_metadata_id)
  @adapter_config_metadata_label = args[:adapter_config_metadata_label] if args.key?(:adapter_config_metadata_label)
  @is_required = args[:is_required] if args.key?(:is_required)
end