Class: Google::Apis::AdmobV1beta::Adapter

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

Describes adapters supported by each mediation ad source. Adapters correspond to a specific SDK implementation of the ad source, and are each associated with a single platform and a list of supported ad unit formats. Adapters may also require setting some configurations to perform ad requests. Configurations can be specified in the AdUnitMapping by setting the ad_unit_configurations key/value pairs. For example, the ad_unit_configurations can be used to pass various IDs to the adapter's third-party SDK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Adapter

Returns a new instance of Adapter.



245
246
247
# File 'lib/google/apis/admob_v1beta/classes.rb', line 245

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

Instance Attribute Details

#adapter_config_metadataArray<Google::Apis::AdmobV1beta::AdapterAdapterConfigMetadata>

Output only. Configuration metadata associated with this adapter. Corresponds to the JSON property adapterConfigMetadata



215
216
217
# File 'lib/google/apis/admob_v1beta/classes.rb', line 215

def 
  @adapter_config_metadata
end

#adapter_idString

Output only. ID of this adapter. It is used to set adapter_id. Corresponds to the JSON property adapterId

Returns:

  • (String)


221
222
223
# File 'lib/google/apis/admob_v1beta/classes.rb', line 221

def adapter_id
  @adapter_id
end

#formatsArray<String>

Output only. Indicates the formats of the ad units supported by this adapter. Corresponds to the JSON property formats

Returns:

  • (Array<String>)


226
227
228
# File 'lib/google/apis/admob_v1beta/classes.rb', line 226

def formats
  @formats
end

#nameString

Output only. Resource name of the adapter. Format is: accounts/publisher_id/ adSources/ad_source_id/adapters/adapter_id. Corresponds to the JSON property name

Returns:

  • (String)


232
233
234
# File 'lib/google/apis/admob_v1beta/classes.rb', line 232

def name
  @name
end

#platformString

Output only. Mobile application platform supported by this adapter. Supported values are: IOS, ANDROID, WINDOWS_PHONE Corresponds to the JSON property platform

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/admob_v1beta/classes.rb', line 238

def platform
  @platform
end

#titleString

Output only. The display name of this adapter. Corresponds to the JSON property title

Returns:

  • (String)


243
244
245
# File 'lib/google/apis/admob_v1beta/classes.rb', line 243

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
254
255
256
257
# File 'lib/google/apis/admob_v1beta/classes.rb', line 250

def update!(**args)
  @adapter_config_metadata = args[:adapter_config_metadata] if args.key?(:adapter_config_metadata)
  @adapter_id = args[:adapter_id] if args.key?(:adapter_id)
  @formats = args[:formats] if args.key?(:formats)
  @name = args[:name] if args.key?(:name)
  @platform = args[:platform] if args.key?(:platform)
  @title = args[:title] if args.key?(:title)
end