AI-generated Key Takeaways
-
This document details the HTTP request, path and query parameters, request and response bodies, and authorization scopes for listing assigned targeting options of a campaign across targeting types.
-
The HTTP request uses a GET method with a specific URL structure including advertiser and campaign IDs.
-
Path parameters require the
advertiserIdandcampaignIdas required string values formatted as int64. -
Query parameters allow for pagination using
pageSizeandpageToken, sorting withorderBy, and filtering usingfilter. -
The request body must be empty, and the response body contains a list of
assignedTargetingOptionsand anextPageTokenfor pagination. -
The required authorization scope is
https://www.googleapis.com/auth/display-video.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists assigned targeting options of a campaign across targeting types.
HTTP request
GET https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/campaigns/{campaignId}:listAssignedTargetingOptions
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
advertiserId |
Required. The ID of the advertiser the campaign belongs to. |
campaignId |
Required. The ID of the campaign to list assigned targeting options for. |
Query parameters
| Parameters | |
|---|---|
pageSize |
Requested page size. The size must be an integer between |
pageToken |
A token that lets the client fetch the next page of results. Typically, this is the value of |
orderBy |
Field by which to sort the list. Acceptable values are:
The default sorting order is ascending. To specify descending order for a field, a suffix "desc" should be added to the field name. Example: |
filter |
Allows filtering by assigned targeting option fields. Supported syntax:
Supported fields:
Examples:
The length of this field should be no more than 500 characters. Reference our filter |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"assignedTargetingOptions": [
{
object ( |
| Fields | |
|---|---|
assignedTargetingOptions[] |
The list of assigned targeting options. This list will be absent if empty. |
nextPageToken |
A token identifying the next page of results. This value should be specified as the |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.