[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[[["\u003cp\u003eThis operation adds targeted apps to an existing pretargeting configuration using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the pretargeting configuration name in the path and providing the app IDs and targeting mode in the request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation returns the updated pretargeting configuration details in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the 'realtime-bidding' scope is needed to perform this operation.\u003c/p\u003e\n"]]],["This API call, `addTargetedApps`, adds apps to a pretargeting configuration. It uses a `POST` HTTP request to a specific URL, formatted with gRPC Transcoding, and requires a `pretargetingConfig` path parameter, such as: `bidders/*/pretargetingConfigs/*`. The request body, in JSON, includes a list of `appIds` (strings) and a required `targetingMode` (enum). Successful requests return a `PretargetingConfig` instance. This function needs the `realtime-bidding` authorization scope.\n"],null,["# Method: bidders.pretargetingConfigs.addTargetedApps\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- [Try it!](#try-it)\n\nAdds targeted apps to the pretargeting configuration.\n\n### HTTP request\n\n`POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:addTargetedApps`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `pretargetingConfig` | `string` Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"appIds\": [ string ], \"targetingMode\": enum (/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#TargetingMode) } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appIds[]` | `string` A list of app IDs to target in the pretargeting configuration. These values will be added to the list of targeted app IDs in [PretargetingConfig.appTargeting.mobileAppTargeting.values](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.app_targeting). |\n| `targetingMode` | `enum (`[TargetingMode](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#TargetingMode)`)` Required. The targeting mode that should be applied to the list of app IDs. If there are existing targeted app IDs, must be equal to the existing [PretargetingConfig.appTargeting.mobileAppTargeting.targetingMode](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig.FIELDS.app_targeting) or a 400 bad request error will be returned. |\n\n### Response body\n\nIf successful, the response body contains an instance of [PretargetingConfig](/authorized-buyers/apis/realtimebidding/reference/rest/v1/bidders.pretargetingConfigs#PretargetingConfig).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/realtime-bidding`"]]