Method: bidders.pretargetingConfigs.addTargetedApps
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
This page details how to add targeted apps to a pretargeting configuration using an HTTP POST request.
The request requires a pretargetingConfig path parameter specifying the configuration name.
The request body includes a list of appIds to target and a required targetingMode.
A successful response returns an instance of the updated PretargetingConfig.
The request requires the https://www.googleapis.com/auth/realtime-bidding authorization scope.
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."],[],["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"]]