Class: Google::Apis::AdmobV1beta::MediationGroupMediationGroupLine
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::MediationGroupMediationGroupLine
- 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 for an ad network used by a mediation group.
Instance Attribute Summary collapse
-
#ad_source_id ⇒ String
The ID of the ad source this mediation line is associated with.
-
#ad_unit_mappings ⇒ Hash<String,String>
References of the ad unit mappings for each ad unit associated with this mediation line.
-
#cpm_micros ⇒ Fixnum
The CPM for this allocation line.
-
#cpm_mode ⇒ String
Indicates how the CPM for this mediation line is provided.
-
#display_name ⇒ String
User-provided label for this mediation line.
-
#experiment_variant ⇒ String
Output only.
-
#id ⇒ String
The 16 digit ID for this mediation line e.g.
-
#state ⇒ String
The status of the mediation group line.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MediationGroupMediationGroupLine
constructor
A new instance of MediationGroupMediationGroupLine.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MediationGroupMediationGroupLine
Returns a new instance of MediationGroupMediationGroupLine.
1335 1336 1337 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_source_id ⇒ String
The ID of the ad source this mediation line is associated with.
Corresponds to the JSON property adSourceId
1284 1285 1286 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1284 def ad_source_id @ad_source_id end |
#ad_unit_mappings ⇒ Hash<String,String>
References of the ad unit mappings for each ad unit associated with this
mediation line. Key is the ad unit ID, value is resource name of the ad unit
mapping. For mediation lines where the ad source id is the AdMob Network, ad
unit mappings will be ignored.
Corresponds to the JSON property adUnitMappings
1292 1293 1294 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1292 def ad_unit_mappings @ad_unit_mappings end |
#cpm_micros ⇒ Fixnum
The CPM for this allocation line. $0.01 is the minimum allowed amount. For
LIVE CPM modes, the default amount is $0.01. This value is ignored if
cpm_mode is LIVE. Warning: "USD" is the only supported currency at the
moment. The unit is in micros.
Corresponds to the JSON property cpmMicros
1300 1301 1302 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1300 def cpm_micros @cpm_micros end |
#cpm_mode ⇒ String
Indicates how the CPM for this mediation line is provided. Note that MANUAL
and LIVE are the only fully-supported mode at the moment. Please use the
AdMob UI (https://admob.google.com) if you wish to create or update to other
cpm modes.
Corresponds to the JSON property cpmMode
1308 1309 1310 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1308 def cpm_mode @cpm_mode end |
#display_name ⇒ String
User-provided label for this mediation line. The maximum length allowed is 255
characters.
Corresponds to the JSON property displayName
1314 1315 1316 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1314 def display_name @display_name end |
#experiment_variant ⇒ String
Output only. The Mediation A/B experiment variant to which the mediation group
line belongs to.
Corresponds to the JSON property experimentVariant
1320 1321 1322 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1320 def experiment_variant @experiment_variant end |
#id ⇒ String
The 16 digit ID for this mediation line e.g. 0123456789012345. When creating a
new mediation group line, use a distinct negative integer as the ID place
holder.
Corresponds to the JSON property id
1327 1328 1329 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1327 def id @id end |
#state ⇒ String
The status of the mediation group line. Only enabled mediation group lines
will be served.
Corresponds to the JSON property state
1333 1334 1335 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1333 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1340 def update!(**args) @ad_source_id = args[:ad_source_id] if args.key?(:ad_source_id) @ad_unit_mappings = args[:ad_unit_mappings] if args.key?(:ad_unit_mappings) @cpm_micros = args[:cpm_micros] if args.key?(:cpm_micros) @cpm_mode = args[:cpm_mode] if args.key?(:cpm_mode) @display_name = args[:display_name] if args.key?(:display_name) @experiment_variant = args[:experiment_variant] if args.key?(:experiment_variant) @id = args[:id] if args.key?(:id) @state = args[:state] if args.key?(:state) end |