Method: bidders.pretargetingConfigs.addTargetedApps
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-01-31 UTC.
[null,null,["Last updated 2025-01-31 UTC."],[[["This operation adds targeted apps to an existing pretargeting configuration using an HTTP POST request."],["The request requires specifying the pretargeting configuration name in the path and providing the app IDs and targeting mode in the request body."],["A successful operation returns the updated pretargeting configuration details in the response body."],["Authorization with the 'realtime-bidding' scope is needed to perform this operation."]]],["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"]]