Class: Google::Apis::AdmobV1beta::Adapter
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::Adapter
- 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
-
#adapter_config_metadata ⇒ Array<Google::Apis::AdmobV1beta::AdapterAdapterConfigMetadata>
Output only.
-
#adapter_id ⇒ String
Output only.
-
#formats ⇒ Array<String>
Output only.
-
#name ⇒ String
Output only.
-
#platform ⇒ String
Output only.
-
#title ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Adapter
constructor
A new instance of Adapter.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_metadata ⇒ Array<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_id ⇒ String
Output only. ID of this adapter. It is used to set adapter_id.
Corresponds to the JSON property adapterId
221 222 223 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 221 def adapter_id @adapter_id end |
#formats ⇒ Array<String>
Output only. Indicates the formats of the ad units supported by this adapter.
Corresponds to the JSON property formats
226 227 228 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 226 def formats @formats end |
#name ⇒ String
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
232 233 234 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 232 def name @name end |
#platform ⇒ String
Output only. Mobile application platform supported by this adapter. Supported
values are: IOS, ANDROID, WINDOWS_PHONE
Corresponds to the JSON property platform
238 239 240 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 238 def platform @platform end |
#title ⇒ String
Output only. The display name of this adapter.
Corresponds to the JSON property title
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 |