Class: Google::Apis::AdmobV1beta::AdUnitMapping

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

Settings to map an AdMob ad unit to a 3rd party ad unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_configurationsHash<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

Returns:

  • (Hash<String,String>)


137
138
139
# File 'lib/google/apis/admob_v1beta/classes.rb', line 137

def ad_unit_configurations
  @ad_unit_configurations
end

#adapter_idFixnum

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

Returns:

  • (Fixnum)


143
144
145
# File 'lib/google/apis/admob_v1beta/classes.rb', line 143

def adapter_id
  @adapter_id
end

#display_nameString

Optional. The display name of this ad unit mapping instance. Corresponds to the JSON property displayName

Returns:

  • (String)


148
149
150
# File 'lib/google/apis/admob_v1beta/classes.rb', line 148

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


155
156
157
# File 'lib/google/apis/admob_v1beta/classes.rb', line 155

def name
  @name
end

#stateString

Output only. The status of this ad unit mapping. Corresponds to the JSON property state

Returns:

  • (String)


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