Method: bidders.pretargetingConfigs.addTargetedApps
Stay organized with collections
Save and categorize content based on your preferences.
Adds targeted apps to the pretargeting configuration.
HTTP request
POST https://realtimebidding.googleapis.com/v1/{pretargetingConfig=bidders/*/pretargetingConfigs/*}:addTargetedApps
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
pretargetingConfig |
string
Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"appIds": [
string
],
"targetingMode": enum (TargetingMode )
} |
Fields |
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 .
|
targetingMode |
enum (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 or a 400 bad request error will be returned.
|
Response body
If successful, the response body contains an instance of PretargetingConfig
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/realtime-bidding
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[null,null,["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`"]]