- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- DeactivateTargetingPresetRequest
- Try it!
Batch deactivates TargetingPreset objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/targetingPreset:batchDeactivate
Path parameters
| Parameters | |
|---|---|
parent |
Required. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requests": [
{
object ( |
| Fields | |
|---|---|
requests[] |
Required. The |
Response body
Response message for DeactivateTargetingPresets method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "changeCount": string } |
| Fields | |
|---|---|
changeCount |
The number of objects that were deactivated as a result of performing the action. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.
DeactivateTargetingPresetRequest
Request object for DeactivateTargetingPreset method.
| JSON representation |
|---|
{ "name": string, "targetingPresetId": string } |
| Fields | |
|---|---|
name |
Required. Resource name for the TargetingPreset. Format: |
targetingPresetId |
Required. TargetingPreset ID to deactivate. |