Method: accounts.mediationGroups.mediationAbExperiments.stop
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eStop a mediation A/B experiment and choose a winning variant (A or B) to apply to the mediation group.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the mediation group and experiment name in the request path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs to indicate the desired winning variant (A or B).\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns the updated MediationAbExperiment object.\u003c/p\u003e\n"],["\u003cp\u003eThis method requires the \u003ccode\u003ehttps://www.googleapis.com/auth/admob.monetization\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This content describes how to stop an AdMob mediation A/B experiment by choosing a winning variant. The `POST` request is sent to a specified URL, including the experiment's name in the path. The request body must specify the `variantChoice`, either `VARIANT_CHOICE_A` or `VARIANT_CHOICE_B`. Successful requests return the updated `MediationAbExperiment`. Access is limited and requires the `https://www.googleapis.com/auth/admob.monetization` authorization scope.\n"],null,["# Method: accounts.mediationGroups.mediationAbExperiments.stop\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [VariantChoice](#VariantChoice)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nStop the mediation A/B experiment and choose a variant.\n\n\u003cbr /\u003e\n\n| This method has limited access. If you see a 403 permission denied error, please reach out to your account manager for access.\n\n\u003cbr /\u003e\n\n### HTTP request\n\n`POST https://admob.googleapis.com/v1beta/{name=accounts/*/mediationGroups/*/mediationAbExperiments}:stop`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Name of the mediation group, the experiment for which to choose a variant for. Example: accounts/pub-9876543210987654/mediationGroups/0123456789/ mediationAbExperiments |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"variantChoice\": enum (/admob/api/reference/rest/v1beta/accounts.mediationGroups.mediationAbExperiments/stop#VariantChoice) } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `variantChoice` | `enum (`[VariantChoice](/admob/api/reference/rest/v1beta/accounts.mediationGroups.mediationAbExperiments/stop#VariantChoice)`)` The choice for the winning variant. |\n\n### Response body\n\nIf successful, the response body contains an instance of [MediationAbExperiment](/admob/api/reference/rest/v1beta/accounts.mediationGroups.mediationAbExperiments#MediationAbExperiment).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admob.monetization`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).\n\nVariantChoice\n-------------\n\nThe choice of the variant for mediation A/B Experiment.\n\n| Enums ||\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| `VARIANT_CHOICE_UNSPECIFIED` | Default value for an unset field. Do not use. |\n| `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. |\n| `VARIANT_CHOICE_B` | Use the mediation lines form Variant B and complete the experiment. Variant B contains the newly added serving lines. |"]]