type TargetingPreset (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Service
TargetingPresetService
User-defined preset targeting criteria.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Field
|
id
|
xsd:long
The unique ID of the TargetingPreset . This value is readonly and is assigned by Google.
|
name
|
xsd:string
The name of the TargetingPreset . This value is required to create a targeting preset
and has a maximum length of 255 characters.
|
targeting
|
Targeting
Contains the targeting criteria for the TargetingPreset . This attribute is required.
|
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-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The `TargetingPresetService` manages user-defined targeting criteria presets. Key actions include creating and updating targeting presets using `createTargetingPresets()` and `updateTargetingPresets()`. Each preset, identified by a unique ID, includes a name (up to 255 characters) and a `Targeting` attribute specifying the preset's criteria. These presets are defined within the namespace `https://www.google.com/apis/ads/publisher/v202502` and the `TargetingPresetPage` provides the relevant content.\n"],null,["# type TargetingPreset (v202502)\n\n**Service** \n**TargetingPresetService** **Dependencies** \n[TargetingPresetPage](/ad-manager/api/reference/v202502/TargetingPresetService.TargetingPresetPage) [createTargetingPresets()](/ad-manager/api/reference/v202502/TargetingPresetService#createTargetingPresets) [updateTargetingPresets()](/ad-manager/api/reference/v202502/TargetingPresetService#updateTargetingPresets) \n▼\n**TargetingPreset**\n\nUser-defined preset targeting criteria.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `id` | ` `xsd:`long` The unique ID of the `TargetingPreset`. This value is readonly and is assigned by Google. |\n| ### `name` | ` `xsd:`string` The name of the `TargetingPreset`. This value is required to create a targeting preset and has a maximum length of 255 characters. |\n| ### `targeting` | ` `[Targeting](/ad-manager/api/reference/v202502/TargetingPresetService.Targeting)` ` Contains the targeting criteria for the `TargetingPreset`. This attribute is required. |"]]