GET https://displayvideo.googleapis.com/v2/advertisers/{advertiserId}/youtubeAdGroups/{youtubeAdGroupId}/targetingTypes/{targetingType}/assignedTargetingOptions/{assignedTargetingOptionId}
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDisplay & Video 360 API v2 is sunset and this page documents how to get a single targeting option assigned to a YouTube ad group using the API.\u003c/p\u003e\n"],["\u003cp\u003eThe API request requires specifying the advertiser ID, YouTube ad group ID, targeting type, and assigned targeting option ID as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe response, if successful, provides details of the assigned targeting option in the form of an \u003ccode\u003eAssignedTargetingOption\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, you'll need to authorize your request with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.get\n\n| Display \\& Video 360 API v2 has sunset.\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets a single targeting option assigned to a YouTube ad group.\n\nInherited assigned targeting options are not included.\n\n### HTTP request\n\n`GET https://displayvideo.googleapis.com/v2/advertisers/{advertiserId}/youtubeAdGroups/{youtubeAdGroupId}/targetingTypes/{targetingType}/assignedTargetingOptions/{assignedTargetingOptionId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the advertiser the ad group belongs to. |\n| `youtubeAdGroupId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the ad group the assigned targeting option belongs to. |\n| `targetingType` | `enum (`[TargetingType](/display-video/api/reference/rest/v2/TargetingType)`)` Required. Identifies the type of this assigned targeting option. Supported targeting types include: - `TARGETING_TYPE_AGE_RANGE` - `TARGETING_TYPE_APP` - `TARGETING_TYPE_APP_CATEGORY` - `TARGETING_TYPE_AUDIENCE_GROUP` - `TARGETING_TYPE_CATEGORY` - `TARGETING_TYPE_GENDER` - `TARGETING_TYPE_HOUSEHOLD_INCOME` - `TARGETING_TYPE_KEYWORD` - `TARGETING_TYPE_PARENTAL_STATUS` - `TARGETING_TYPE_SESSION_POSITION` - `TARGETING_TYPE_URL` - `TARGETING_TYPE_YOUTUBE_CHANNEL` - `TARGETING_TYPE_YOUTUBE_VIDEO` |\n| `assignedTargetingOptionId` | `string` Required. An identifier unique to the targeting type in this line item that identifies the assigned targeting option being requested. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [AssignedTargetingOption](/display-video/api/reference/rest/v2/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]