Method: accounts.mediationGroups.mediationAbExperiments.create
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[[["\u003cp\u003eCreate A/B testing experiments for AdMob mediation groups using the provided HTTP request method.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the parent AdMob account and mediation group using path parameters in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eInclude a \u003ccode\u003eMediationAbExperiment\u003c/code\u003e object in the request body to define the experiment parameters.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful creation, the response body contains the newly created \u003ccode\u003eMediationAbExperiment\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003eadmob.monetization\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This documentation outlines the process of creating an A/B testing experiment for an AdMob mediation group using a POST request. The request is sent to a specific URL, defined by the parent account and mediation group ID, supplied as a path parameter. The request body includes the `MediationAbExperiment` data. Successful requests return a newly created `MediationAbExperiment` instance in the response body. Authorization requires the `admob.monetization` OAuth scope. Access may be restricted.\n"],null,["# Method: accounts.mediationGroups.mediationAbExperiments.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nCreate an A/B testing experiment for a specified AdMob account and a mediation group.\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/{parent=accounts/*/mediationGroups/*}/mediationAbExperiments`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent which owns the mediation group. Format: accounts/{publisherId}/mediationGroups/{mediationGroupId} |\n\n### Request body\n\nThe request body contains an instance of [MediationAbExperiment](/admob/api/reference/rest/v1beta/accounts.mediationGroups.mediationAbExperiments#MediationAbExperiment).\n\n### Response body\n\nIf successful, the response body contains a newly created 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)."]]