Method: accounts.mediationGroups.mediationAbExperiments.stop

  • Stop a mediation A/B experiment and choose a winning variant (A or B) to apply to the mediation group.

  • Requires specifying the mediation group and experiment name in the request path.

  • The request body needs to indicate the desired winning variant (A or B).

  • A successful response returns the updated MediationAbExperiment object.

  • This method requires the https://www.googleapis.com/auth/admob.monetization OAuth scope.

Stop the mediation A/B experiment and choose a variant.

HTTP request

POST https://admob.googleapis.com/v1beta/{name=accounts/*/mediationGroups/*/mediationAbExperiments}:stop

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the mediation group, the experiment for which to choose a variant for. Example: accounts/pub-9876543210987654/mediationGroups/0123456789/ mediationAbExperiments

Request body

The request body contains data with the following structure:

JSON representation
{
  "variantChoice": enum (VariantChoice)
}
Fields
variantChoice

enum (VariantChoice)

The choice for the winning variant.

Response body

If successful, the response body contains an instance of MediationAbExperiment.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admob.monetization

For more information, see the OAuth 2.0 Overview.

VariantChoice

The choice of the variant for mediation A/B Experiment.

Enums
VARIANT_CHOICE_UNSPECIFIED Default value for an unset field. Do not use.
VARIANT_CHOICE_A Use the mediation lines from Variant A and complete the experiment. Variant A contains the original serving lines before the experiment creation.
VARIANT_CHOICE_B Use the mediation lines form Variant B and complete the experiment. Variant B contains the newly added serving lines.