Class: Google::Apis::AdmobV1beta::MediationAbExperiment

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

The mediation A/B experiment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MediationAbExperiment

Returns a new instance of MediationAbExperiment.



1075
1076
1077
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1075

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#control_mediation_linesArray<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



1012
1013
1014
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1012

def control_mediation_lines
  @control_mediation_lines
end

#display_nameString

The display name for the mediation A/B experiment. Corresponds to the JSON property displayName

Returns:

  • (String)


1017
1018
1019
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1017

def display_name
  @display_name
end

#end_timeString

Output only. The time at which the experiment was ended or target to end (in UTC). Corresponds to the JSON property endTime

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1023

def end_time
  @end_time
end

#experiment_idString

Output only. Unique identifier for the mediation A/B experiment. It is an output only property. Corresponds to the JSON property experimentId

Returns:

  • (String)


1029
1030
1031
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1029

def experiment_id
  @experiment_id
end

#mediation_group_idString

Output only. The mediation group id this experiment belongs to. This can be used for filtering the experiments in the list experiments API. Corresponds to the JSON property mediationGroupId

Returns:

  • (String)


1035
1036
1037
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1035

def mediation_group_id
  @mediation_group_id
end

#nameString

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

Returns:

  • (String)


1043
1044
1045
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1043

def name
  @name
end

#start_timeString

Output only. The time at which the experiment was started (in UTC). Corresponds to the JSON property startTime

Returns:

  • (String)


1048
1049
1050
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1048

def start_time
  @start_time
end

#stateString

Output only. The state of the experiment. It is an output only field. Corresponds to the JSON property state

Returns:

  • (String)


1053
1054
1055
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1053

def state
  @state
end

#treatment_mediation_linesArray<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



1059
1060
1061
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1059

def treatment_mediation_lines
  @treatment_mediation_lines
end

#treatment_traffic_percentageFixnum

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

Returns:

  • (Fixnum)


1067
1068
1069
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1067

def treatment_traffic_percentage
  @treatment_traffic_percentage
end

#variant_leaderString

Output only. The variant leader for the experiment according to some key metrics. Corresponds to the JSON property variantLeader

Returns:

  • (String)


1073
1074
1075
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1073

def variant_leader
  @variant_leader
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1080

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)
  @end_time = args[:end_time] if args.key?(:end_time)
  @experiment_id = args[:experiment_id] if args.key?(:experiment_id)
  @mediation_group_id = args[:mediation_group_id] if args.key?(:mediation_group_id)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @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)
  @variant_leader = args[:variant_leader] if args.key?(:variant_leader)
end