Class: Google::Apis::AdmobV1beta::MediationGroup
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::MediationGroup
- 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 an AdMob mediation group.
Instance Attribute Summary collapse
-
#display_name ⇒ String
User provided name for the mediation group.
-
#mediation_ab_experiment_state ⇒ String
Output only.
-
#mediation_group_id ⇒ String
The ID of the mediation group.
-
#mediation_group_lines ⇒ Hash<String,Google::Apis::AdmobV1beta::MediationGroupMediationGroupLine>
The mediation lines used for serving for this mediation group.
-
#name ⇒ String
Resource name for this mediation group.
-
#state ⇒ String
The status of the mediation group.
-
#targeting ⇒ Google::Apis::AdmobV1beta::MediationGroupTargeting
Set of criteria targeted by this mediation group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MediationGroup
constructor
A new instance of MediationGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MediationGroup
Returns a new instance of MediationGroup.
1261 1262 1263 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
User provided name for the mediation group. The maximum length allowed is 120
characters.
Corresponds to the JSON property displayName
1221 1222 1223 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1221 def display_name @display_name end |
#mediation_ab_experiment_state ⇒ String
Output only. The state of the mediation a/b experiment that belongs to this
mediation group.
Corresponds to the JSON property mediationAbExperimentState
1227 1228 1229 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1227 def mediation_ab_experiment_state @mediation_ab_experiment_state end |
#mediation_group_id ⇒ String
The ID of the mediation group. Example: "0123456789". This is a read only
property.
Corresponds to the JSON property mediationGroupId
1233 1234 1235 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1233 def mediation_group_id @mediation_group_id end |
#mediation_group_lines ⇒ Hash<String,Google::Apis::AdmobV1beta::MediationGroupMediationGroupLine>
The mediation lines used for serving for this mediation group. Key is the ID
of the mediation group line. For creation, use distinct negative values as
placeholder.
Corresponds to the JSON property mediationGroupLines
1240 1241 1242 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1240 def mediation_group_lines @mediation_group_lines end |
#name ⇒ String
Resource name for this mediation group. Format is: accounts/publisher_id/
mediationGroups/mediation_group_id Example: accounts/pub-9876543210987654/
mediationGroups/0123456789
Corresponds to the JSON property name
1247 1248 1249 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1247 def name @name end |
#state ⇒ String
The status of the mediation group. Only enabled mediation groups will be
served.
Corresponds to the JSON property state
1253 1254 1255 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1253 def state @state end |
#targeting ⇒ Google::Apis::AdmobV1beta::MediationGroupTargeting
Set of criteria targeted by this mediation group. For example, a mediation
group can target specific ad unit IDs, platform, format and geo location.
Corresponds to the JSON property targeting
1259 1260 1261 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1259 def targeting @targeting end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1266 1267 1268 1269 1270 1271 1272 1273 1274 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1266 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @mediation_ab_experiment_state = args[:mediation_ab_experiment_state] if args.key?(:mediation_ab_experiment_state) @mediation_group_id = args[:mediation_group_id] if args.key?(:mediation_group_id) @mediation_group_lines = args[:mediation_group_lines] if args.key?(:mediation_group_lines) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @targeting = args[:targeting] if args.key?(:targeting) end |