type SetValue (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Contains a set of Values. May not contain duplicates.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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 \u003ccode\u003eCustomTargetingService\u003c/code\u003e allows management of custom targeting values for ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eIt contains a set of \u003ccode\u003eValues\u003c/code\u003e which can be of types like \u003ccode\u003eBooleanValue\u003c/code\u003e, \u003ccode\u003eDateTimeValue\u003c/code\u003e, \u003ccode\u003eDateValue\u003c/code\u003e, \u003ccode\u003eNumberValue\u003c/code\u003e, \u003ccode\u003eSetValue\u003c/code\u003e, and \u003ccode\u003eTextValue\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evalues\u003c/code\u003e field within \u003ccode\u003eSetValue\u003c/code\u003e should contain the same type of \u003ccode\u003eValue\u003c/code\u003e and avoid duplicates.\u003c/p\u003e\n"],["\u003cp\u003eThis service operates within the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines various services and their associated actions within the Google Ad Manager API (v202408), including AdRule, Adjustment, AudienceSegment, CdnConfiguration, and many more. It details the `CustomTargetingService`, focusing on `SetValue`, which represents a collection of `Values`. These `Values` can be `BooleanValue`, `DateTimeValue`, `DateValue`, `NumberValue`, `ObjectValue`, or `TextValue`, with the restriction of being the same type and not containing duplicates. The document also specifies the namespace for the API.\n"],null,["# type SetValue (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.SetValue) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.SetValue) [AudienceSegmentService](/ad-manager/api/reference/v202408/AudienceSegmentService.SetValue) [CdnConfigurationService](/ad-manager/api/reference/v202408/CdnConfigurationService.SetValue) [CmsMetadataService](/ad-manager/api/reference/v202408/CmsMetadataService.SetValue) [CompanyService](/ad-manager/api/reference/v202408/CompanyService.SetValue) [ContactService](/ad-manager/api/reference/v202408/ContactService.SetValue) [ContentBundleService](/ad-manager/api/reference/v202408/ContentBundleService.SetValue) [ContentService](/ad-manager/api/reference/v202408/ContentService.SetValue) [CreativeService](/ad-manager/api/reference/v202408/CreativeService.SetValue) [CreativeSetService](/ad-manager/api/reference/v202408/CreativeSetService.SetValue) [CreativeTemplateService](/ad-manager/api/reference/v202408/CreativeTemplateService.SetValue) [CreativeWrapperService](/ad-manager/api/reference/v202408/CreativeWrapperService.SetValue) [CustomFieldService](/ad-manager/api/reference/v202408/CustomFieldService.SetValue) **CustomTargetingService** [DaiAuthenticationKeyService](/ad-manager/api/reference/v202408/DaiAuthenticationKeyService.SetValue) [DaiEncodingProfileService](/ad-manager/api/reference/v202408/DaiEncodingProfileService.SetValue) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.SetValue) [InventoryService](/ad-manager/api/reference/v202408/InventoryService.SetValue) [LabelService](/ad-manager/api/reference/v202408/LabelService.SetValue) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202408/LineItemCreativeAssociationService.SetValue) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.SetValue) [LineItemTemplateService](/ad-manager/api/reference/v202408/LineItemTemplateService.SetValue) [LiveStreamEventService](/ad-manager/api/reference/v202408/LiveStreamEventService.SetValue) [MobileApplicationService](/ad-manager/api/reference/v202408/MobileApplicationService.SetValue) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.SetValue) [OrderService](/ad-manager/api/reference/v202408/OrderService.SetValue) [PlacementService](/ad-manager/api/reference/v202408/PlacementService.SetValue) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.SetValue) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.SetValue) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.SetValue) [ReportService](/ad-manager/api/reference/v202408/ReportService.SetValue) [SiteService](/ad-manager/api/reference/v202408/SiteService.SetValue) [StreamActivityMonitorService](/ad-manager/api/reference/v202408/StreamActivityMonitorService.SetValue) [SuggestedAdUnitService](/ad-manager/api/reference/v202408/SuggestedAdUnitService.SetValue) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.SetValue) [TeamService](/ad-manager/api/reference/v202408/TeamService.SetValue) [UserService](/ad-manager/api/reference/v202408/UserService.SetValue) [UserTeamAssociationService](/ad-manager/api/reference/v202408/UserTeamAssociationService.SetValue) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.SetValue) **Inheritance** \n[Value](/ad-manager/api/reference/v202408/CustomTargetingService.Value) \n▼\n[BooleanValue](/ad-manager/api/reference/v202408/CustomTargetingService.BooleanValue) [DateTimeValue](/ad-manager/api/reference/v202408/CustomTargetingService.DateTimeValue) [DateValue](/ad-manager/api/reference/v202408/CustomTargetingService.DateValue) [NumberValue](/ad-manager/api/reference/v202408/CustomTargetingService.NumberValue) [ObjectValue](/ad-manager/api/reference/v202408/CustomTargetingService.ObjectValue) **SetValue** [TextValue](/ad-manager/api/reference/v202408/CustomTargetingService.TextValue)\n\nContains a set of [Values](/ad-manager/api/reference/v202408/CustomTargetingService.Value). May not contain duplicates.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`Value` (inherited)** ||\n| **`SetValue`** ||\n| ### `values` | 1. ` `[Value](/ad-manager/api/reference/v202408/CustomTargetingService.Value)`[]` 1. ` `[ObjectValue](/ad-manager/api/reference/v202408/CustomTargetingService.ObjectValue)` ` 2. ` `[BooleanValue](/ad-manager/api/reference/v202408/CustomTargetingService.BooleanValue)` ` 3. ` `[DateTimeValue](/ad-manager/api/reference/v202408/CustomTargetingService.DateTimeValue)` ` 4. ` `[DateValue](/ad-manager/api/reference/v202408/CustomTargetingService.DateValue)` ` 5. ` `[NumberValue](/ad-manager/api/reference/v202408/CustomTargetingService.NumberValue)` ` 6. ` `[SetValue](/ad-manager/api/reference/v202408/CustomTargetingService.SetValue)` ` 7. ` `[TextValue](/ad-manager/api/reference/v202408/CustomTargetingService.TextValue)` ` \u003cbr /\u003e The values. They must all be the same type of `Value` and not contain duplicates. |"]]