type TargetingPreset (v202411)
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/v202411
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."],[[["\u003cp\u003eThe TargetingPresetService allows for the creation and updating of TargetingPresets, which are user-defined targeting criteria.\u003c/p\u003e\n"],["\u003cp\u003eEach TargetingPreset has a unique ID, a required name (up to 255 characters), and required targeting criteria.\u003c/p\u003e\n"],["\u003cp\u003eTargetingPresets are identified by a unique ID assigned by Google and contain targeting criteria defined within the 'Targeting' attribute.\u003c/p\u003e\n"]]],["The content details the `TargetingPresetService`, which allows managing user-defined targeting criteria. Key actions include creating and updating `TargetingPresets` via `createTargetingPresets()` and `updateTargetingPresets()`. A `TargetingPreset` requires a unique `name` (up to 255 characters) and `targeting` criteria. Each preset is assigned a read-only `id`. The `TargetingPresetPage` is also listed as a dependency, which likely contains the data associated with multiple presets.\n"],null,["# type TargetingPreset (v202411)\n\n**Service** \n**TargetingPresetService** **Dependencies** \n[TargetingPresetPage](/ad-manager/api/reference/v202411/TargetingPresetService.TargetingPresetPage) [createTargetingPresets()](/ad-manager/api/reference/v202411/TargetingPresetService#createTargetingPresets) [updateTargetingPresets()](/ad-manager/api/reference/v202411/TargetingPresetService#updateTargetingPresets) \n▼\n**TargetingPreset**\n\nUser-defined preset targeting criteria.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\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/v202411/TargetingPresetService.Targeting)` ` Contains the targeting criteria for the `TargetingPreset`. This attribute is required. |"]]