type TargetingPreset (v202408)
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/v202408
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 with a maximum length of 255 characters, and required targeting criteria.\u003c/p\u003e\n"],["\u003cp\u003eTargetingPresets are defined within the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `TargetingPresetService` allows management of user-defined targeting criteria. Key actions include `createTargetingPresets()` and `updateTargetingPresets()`. A `TargetingPreset` has a unique, read-only `id`, a required `name` (up to 255 characters), and required `targeting` criteria. The `targeting` field specifies the targeting settings for the preset. The service operates within the `https://www.google.com/apis/ads/publisher/v202408` namespace.\n"],null,["# type TargetingPreset (v202408)\n\n**Service** \n**TargetingPresetService** **Dependencies** \n[TargetingPresetPage](/ad-manager/api/reference/v202408/TargetingPresetService.TargetingPresetPage) [createTargetingPresets()](/ad-manager/api/reference/v202408/TargetingPresetService#createTargetingPresets) [updateTargetingPresets()](/ad-manager/api/reference/v202408/TargetingPresetService#updateTargetingPresets) \n▼\n**TargetingPreset**\n\nUser-defined preset targeting criteria.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\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/v202408/TargetingPresetService.Targeting)` ` Contains the targeting criteria for the `TargetingPreset`. This attribute is required. |"]]