type ContentTargeting (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Used to target LineItems to specific videos on a publisher's site.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
targetedContentIds
|
xsd:long[]
The IDs of content being targeted by the LineItem .
|
excludedContentIds
|
xsd:long[]
The IDs of content being excluded by the LineItem .
|
targetedVideoContentBundleIds
|
xsd:long[]
A list of video content bundles, represented by ContentBundle IDs, that are being
targeted by the LineItem .
|
excludedVideoContentBundleIds
|
xsd:long[]
A list of video content bundles, represented by ContentBundle IDs, that are being
excluded by the LineItem .
|
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\u003e\u003ccode\u003eContentTargeting\u003c/code\u003e enables targeting LineItems to specific video content on a publisher's site.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting utilizes content IDs and video content bundle IDs for both inclusion and exclusion.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etargetedContentIds\u003c/code\u003e and \u003ccode\u003eexcludedContentIds\u003c/code\u003e fields allow for targeting or excluding specific content using their IDs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etargetedVideoContentBundleIds\u003c/code\u003e and \u003ccode\u003eexcludedVideoContentBundleIds\u003c/code\u003e fields provide the same functionality but for video content bundles.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for \u003ccode\u003eContentTargeting\u003c/code\u003e is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document details the `ContentTargeting` feature, used to target `LineItem`s to specific videos. It defines fields for targeting and excluding content using IDs. `targetedContentIds` and `excludedContentIds` manage individual content targeting. `targetedVideoContentBundleIds` and `excludedVideoContentBundleIds` handle targeting and excluding video content bundles via `ContentBundle` IDs. Services such as AdRuleService, ForecastService, LineItemService, and others are related. It also specifies the namespace as `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type ContentTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.ContentTargeting) **AdjustmentService** [ForecastService](/ad-manager/api/reference/v202408/ForecastService.ContentTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.ContentTargeting) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.ContentTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.ContentTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.ContentTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.ContentTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.ContentTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.ContentTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/AdjustmentService.Targeting) \n▼\n**ContentTargeting**\n\nUsed to target [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem)s to specific videos on a publisher's site.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|-------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedContentIds` | ` `xsd:`long[]` The IDs of content being targeted by the `LineItem`. |\n| ### `excludedContentIds` | ` `xsd:`long[]` The IDs of content being excluded by the `LineItem`. |\n| ### `targetedVideoContentBundleIds` | ` `xsd:`long[]` A list of video content bundles, represented by [ContentBundle](/ad-manager/api/reference/v202408/ContentBundleService.ContentBundle) IDs, that are being targeted by the `LineItem`. |\n| ### `excludedVideoContentBundleIds` | ` `xsd:`long[]` A list of video content bundles, represented by [ContentBundle](/ad-manager/api/reference/v202408/ContentBundleService.ContentBundle) IDs, that are being excluded by the `LineItem`. |"]]