Class: Google::Apis::AdmobV1beta::AdUnitMapping
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::AdUnitMapping
- 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
Settings to map an AdMob ad unit to a 3rd party ad unit.
Instance Attribute Summary collapse
-
#ad_unit_configurations ⇒ Hash<String,String>
Settings for the specified ad unit to make an ad request to 3rd party ad network.
-
#adapter_id ⇒ Fixnum
The ID of mediation ad source adapter used by this ad unit mapping.
-
#display_name ⇒ String
Optional.
-
#name ⇒ String
Resource name of this ad unit mapping.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdUnitMapping
constructor
A new instance of AdUnitMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdUnitMapping
Returns a new instance of AdUnitMapping.
162 163 164 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_unit_configurations ⇒ Hash<String,String>
Settings for the specified ad unit to make an ad request to 3rd party ad
network. Key-value pairs with values set by the user for the keys requested by
the ad network. Please see https://support.google.com/admob/answer/3245073 for
details on how to configure the network settings.
Corresponds to the JSON property adUnitConfigurations
137 138 139 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 137 def ad_unit_configurations @ad_unit_configurations end |
#adapter_id ⇒ Fixnum
The ID of mediation ad source adapter used by this ad unit mapping. The
adapter determines the information needed in the ad_network_settings.
Corresponds to the JSON property adapterId
143 144 145 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 143 def adapter_id @adapter_id end |
#display_name ⇒ String
Optional. The display name of this ad unit mapping instance.
Corresponds to the JSON property displayName
148 149 150 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 148 def display_name @display_name end |
#name ⇒ String
Resource name of this ad unit mapping. Format is: accounts/publisher_id
/
adUnits/ad_unit_id_fragment
/adUnitMappings/ad_unit_mapping_id
Example:
accounts/pub-1234567890123456/adUnits/0123456789/adUnitMappings/987654321
Corresponds to the JSON property name
155 156 157 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 155 def name @name end |
#state ⇒ String
Output only. The status of this ad unit mapping.
Corresponds to the JSON property state
160 161 162 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 160 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 171 172 173 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 167 def update!(**args) @ad_unit_configurations = args[:ad_unit_configurations] if args.key?(:ad_unit_configurations) @adapter_id = args[:adapter_id] if args.key?(:adapter_id) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |