Method: accounts.mediationGroups.create
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/21 (UTC).
[null,null,["Dernière mise à jour le 2025/08/21 (UTC)."],[[["\u003cp\u003eCreate a mediation group under a specific AdMob account using an HTTP POST request to the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eThis method requires specific authorization and might necessitate contacting your account manager for access.\u003c/p\u003e\n"],["\u003cp\u003eThe request must specify the parent account in the URL path and include a \u003ccode\u003eMediationGroup\u003c/code\u003e object in the request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns a \u003ccode\u003eMediationGroup\u003c/code\u003e object representing the newly created group.\u003c/p\u003e\n"],["\u003cp\u003eProper OAuth 2.0 authorization with the \u003ccode\u003eadmob.monetization\u003c/code\u003e scope is needed for this operation.\u003c/p\u003e\n"]]],["This describes how to create a mediation group within an AdMob account using a POST request. The request is sent to a specific URL including the account's publisher ID, and requires OAuth authorization. The request body should contain a `MediationGroup` instance. Upon success, the response body returns the newly created `MediationGroup`. Note: Access to this method is limited and may need special permissions from the account manager.\n"],null,["# Method: accounts.mediationGroups.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 a mediation group under the specific AdMob account.\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`\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} |\n\n### Request body\n\nThe request body contains an instance of [MediationGroup](/admob/api/reference/rest/v1beta/accounts.mediationGroups#MediationGroup).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [MediationGroup](/admob/api/reference/rest/v1beta/accounts.mediationGroups#MediationGroup).\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)."]]