Method: accounts.mediationGroups.patch
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\u003eThis guide explains how publishers can use Google Mobile Ads SDK to display ads from Fluct via bidding.\u003c/p\u003e\n"],["\u003cp\u003eFluct supports banner, interstitial, rewarded, and native ad formats for bidding.\u003c/p\u003e\n"],["\u003cp\u003ePublishers need to configure mediation settings in their AdMob account and add Fluct as an ad source.\u003c/p\u003e\n"],["\u003cp\u003eNo additional SDKs, adapter libraries, or app code changes are required after setting up Fluct mediation.\u003c/p\u003e\n"]]],["This outlines how to update an AdMob mediation group via a PATCH request to `https://admob.googleapis.com/v1beta/{mediationGroup.name=accounts/*/mediationGroups/*}`. The `mediationGroup.name` path parameter specifies the target group. The `updateMask` query parameter, using FieldMask format, defines fields to modify within the mediation group. The request body should include the updated `MediationGroup` instance. The operation requires `https://www.googleapis.com/auth/admob.monetization` authorization and returns a `MediationGroup` instance upon success. Access may be limited, requiring contact with an account manager.\n"],null,["# Method: accounts.mediationGroups.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_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\nUpdate the specified mediation group under the specified 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`PATCH https://admob.googleapis.com/v1beta/{mediationGroup.name=accounts/*/mediationGroups/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mediationGroup.name` | `string` Resource name for this mediation group. Format is: accounts/{publisherId}/mediationGroups/{mediationGroupId} Example: accounts/pub-9876543210987654/mediationGroups/0123456789 |\n\n### Query parameters\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` List of mediation group fields to be updated. Updates to repeated fields such as items in a list will fully replace the existing value(s) with the new value(s). Updates to individual values in a map can be done by indexing by the key. The following field masks are supported for mediation group updates: - \"mediationGroupLines\\[\"{mediation_group_line_id}\"\\]\" clang-format off - \"mediationGroupLines\\[\"{mediation_group_line_id}\"\\].ad_unit_mappings\\[\"{adUnitId}\"\\]\" clang-format on - \"mediationGroupLines\\[\"{mediation_group_line_id}\"\\].cpm_micros\" - \"mediationGroupLines\\[\"{mediation_group_line_id}\"\\].cpm_mode\" - \"mediationGroupLines\\[\"{mediation_group_line_id}\"\\].state\" - \"mediationGroupLines\\[\"{mediation_group_line_id}\"\\].display_name\" - \"targeting.ad_unit_ids\" To update a mediation group with a new mediation group line, use a distinct negative number for the \"mediation_group_line_id\". For Example: updateMask { paths: \"mediationGroupLines\\[\"123456789012345\"\\].cpm_micros\" } This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\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 an 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)."]]