Class: Google::Apis::AdmobV1beta::MediationAbExperiment
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::MediationAbExperiment
- 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
The mediation A/B experiment. NEXT ID: 12
Instance Attribute Summary collapse
-
#control_mediation_lines ⇒ Array<Google::Apis::AdmobV1beta::MediationAbExperimentExperimentMediationLine>
Output only.
-
#display_name ⇒ String
The display name for the mediation A/B experiment.
-
#experiment_id ⇒ String
Output only.
-
#name ⇒ String
Resource name for this experiment.
-
#state ⇒ String
Output only.
-
#treatment_mediation_lines ⇒ Array<Google::Apis::AdmobV1beta::MediationAbExperimentExperimentMediationLine>
The experiment mediation lines created for the treatment.
-
#treatment_traffic_percentage ⇒ Fixnum
The percentage of the mediation A/B experiment traffic that will be send to the treatment (variant B).
Instance Method Summary collapse
-
#initialize(**args) ⇒ MediationAbExperiment
constructor
A new instance of MediationAbExperiment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MediationAbExperiment
Returns a new instance of MediationAbExperiment.
1177 1178 1179 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1177 def initialize(**args) update!(**args) end |
Instance Attribute Details
#control_mediation_lines ⇒ Array<Google::Apis::AdmobV1beta::MediationAbExperimentExperimentMediationLine>
Output only. The experiment mediation lines for control. They are inherited
from the parent mediation group. It is an output only field.
Corresponds to the JSON property controlMediationLines
1137 1138 1139 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1137 def control_mediation_lines @control_mediation_lines end |
#display_name ⇒ String
The display name for the mediation A/B experiment.
Corresponds to the JSON property displayName
1142 1143 1144 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1142 def display_name @display_name end |
#experiment_id ⇒ String
Output only. Unique identifier for the mediation A/B experiment. It is an
output only property.
Corresponds to the JSON property experimentId
1148 1149 1150 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1148 def experiment_id @experiment_id end |
#name ⇒ String
Resource name for this experiment. The format is accounts/publisher_id/
mediationGroups/mediation_group_id/mediationAbExperiment/
mediation_group_experiment_id. For example: accounts/pub-9876543210987654/
mediationGroups/0123456789/ mediationAbExperiment/12345
Corresponds to the JSON property name
1156 1157 1158 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1156 def name @name end |
#state ⇒ String
Output only. The state of the experiment. It is an output only field.
Corresponds to the JSON property state
1161 1162 1163 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1161 def state @state end |
#treatment_mediation_lines ⇒ Array<Google::Apis::AdmobV1beta::MediationAbExperimentExperimentMediationLine>
The experiment mediation lines created for the treatment. They will be used
for serving when the experiment status is RUNNING.
Corresponds to the JSON property treatmentMediationLines
1167 1168 1169 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1167 def treatment_mediation_lines @treatment_mediation_lines end |
#treatment_traffic_percentage ⇒ Fixnum
The percentage of the mediation A/B experiment traffic that will be send to
the treatment (variant B). The remainder is sent to the control (variant A).
The percentage is expressed as an integer in the inclusive range of [1,99].
See https://support.google.com/admob/answer/9572326 for details.
Corresponds to the JSON property treatmentTrafficPercentage
1175 1176 1177 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1175 def treatment_traffic_percentage @treatment_traffic_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1182 1183 1184 1185 1186 1187 1188 1189 1190 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1182 def update!(**args) @control_mediation_lines = args[:control_mediation_lines] if args.key?(:control_mediation_lines) @display_name = args[:display_name] if args.key?(:display_name) @experiment_id = args[:experiment_id] if args.key?(:experiment_id) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @treatment_mediation_lines = args[:treatment_mediation_lines] if args.key?(:treatment_mediation_lines) @treatment_traffic_percentage = args[:treatment_traffic_percentage] if args.key?(:treatment_traffic_percentage) end |