Starting September 8, 2025, every new line item will need to declare whether or not they will serve Eurpoean Union (EU) political ads. Display & Video 360 API and SDF uploads that don't provide declarations will fail. See our deprecations page for more details on how to update your integration to make this declaration.
Required. The IDs of the youtube ad groups to list assigned targeting options for.
pageSize
integer
Optional. Requested page size. The size must be an integer between 1 and 5000. If unspecified, the default is 5000. Returns error code INVALID_ARGUMENT if an invalid value is specified.
pageToken
string
Optional. A token that lets the client fetch the next page of results. Typically, this is the value of nextPageToken returned from the previous call to the youtubeAdGroups.bulkListAdGroupAssignedTargetingOptions method. If not specified, the first page of results will be returned.
orderBy
string
Optional. Field by which to sort the list. Acceptable values are:
youtubeAdGroupId (default)
assignedTargetingOption.targetingType
The default sorting order is ascending. To specify descending order for a field, a suffix "desc" should be added to the field name. Example: targetingType desc.
filter
string
Optional. Allows filtering by assigned targeting option fields.
Supported syntax:
Filter expressions are made up of one or more restrictions.
Restrictions can be combined by the logical operator OR.
A restriction has the form of {field} {operator} {value}.
All fields must use the EQUALS (=) operator.
Supported fields:
targetingType
Examples:
AssignedTargetingOption resources of targeting type TARGETING_TYPE_YOUTUBE_VIDEO or TARGETING_TYPE_YOUTUBE_CHANNEL: targetingType="TARGETING_TYPE_YOUTUBE_VIDEO" OR
targetingType="TARGETING_TYPE_YOUTUBE_CHANNEL"
The length of this field should be no more than 500 characters.
The list of wrapper objects, each providing an assigned targeting option and the youtube ad group it is assigned to.
This list will be absent if empty.
nextPageToken
string
A token identifying the next page of results. This value should be specified as the pageToken in a subsequent call to youtubeAdGroups.bulkListAdGroupAssignedTargetingOptions to fetch the next page of results. This token will be absent if there are no more youtubeAdGroupAssignedTargetingOptions to return.
[[["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 2024-09-18 UTC."],[[["\u003cp\u003eLists line items within a specified advertiser, ordered and filtered according to parameters like \u003ccode\u003eorderBy\u003c/code\u003e and \u003ccode\u003efilter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e for retrieving large result sets.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by fields such as \u003ccode\u003ecampaignId\u003c/code\u003e, \u003ccode\u003edisplayName\u003c/code\u003e, \u003ccode\u003eentityStatus\u003c/code\u003e, \u003ccode\u003einsertionOrderId\u003c/code\u003e, \u003ccode\u003elineItemId\u003c/code\u003e, \u003ccode\u003elineItemType\u003c/code\u003e, and \u003ccode\u003eupdateTime\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eUses a \u003ccode\u003eGET\u003c/code\u003e request to the endpoint \u003ccode\u003ehttps://displayvideo.googleapis.com/v2/advertisers/{advertiserId}/lineItems\u003c/code\u003e with specified path and query parameters.\u003c/p\u003e\n"]]],["This document outlines how to use the `bulkListAdGroupAssignedTargetingOptions` method to retrieve assigned targeting options for multiple YouTube ad groups via the Display & Video 360 API. Key actions include sending a GET request to a specific URL, providing the `advertiserId` as a path parameter, and `youtubeAdGroupIds`, `pageSize`, `pageToken`, `orderBy`, and `filter` as query parameters. The response includes a list of `youtubeAdGroupAssignedTargetingOptions` and a `nextPageToken` for pagination. Inherited assigned targeting options are not included.\n"],null,[]]