Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
DateTimeRangeTargeting specifies the date and time ranges when a line item can be served.
It is utilized within various Google Ad Manager services, such as AdRuleService, AdjustmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService.
This targeting feature relies on DateTimeRange objects to define specific timeframes.
DateTimeRangeTargeting is part of the https://www.google.com/apis/ads/publisher/v202411 namespace.
The targetedDateTimeRanges field within DateTimeRangeTargeting allows for the specification of multiple date and time ranges using an array of DateTimeRange objects.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The core content details `DateTimeRangeTargeting`, which defines the time periods a line item can serve. It's a dependency within the `Targeting` service, used by services like `AdRuleService`, `AdjustmentService`, `ForecastService`, and others. `DateTimeRangeTargeting` specifies eligibility through the `targetedDateTimeRanges` field, which holds an array of `DateTimeRange` objects, each defining a specific time window. The namespace for this targeting is specified.\n"]]