advertisers

POST /v4/advertisers/{advertisersId}/locationLists

Creates a new location list. Returns the newly created location list if successful.

Request

  • Base URL
    https://displayvideo.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/display-video
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/display-video
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

advertisersIdstring required

Request body

advertiserIdstring int64

Required. Immutable. The unique ID of the advertiser the location list belongs to.

displayNamestring

Required. The display name of the location list. Must be UTF-8 encoded with a maximum size of 240 bytes.

locationListIdstring int64

Output only. The unique ID of the location list. Assigned by the system.

locationType'TARGETING_LOCATION_TYPE_UNSPECIFIED' | 'TARGETING_LOCATION_TYPE_PROXIMITY' | 'TARGETING_LOCATION_TYPE_REGIONAL'

Required. Immutable. The type of location. All locations in the list will share this type.

namestring

Output only. The resource name of the location list.

Response

Successful response

advertiserIdstring int64

Required. Immutable. The unique ID of the advertiser the location list belongs to.

displayNamestring

Required. The display name of the location list. Must be UTF-8 encoded with a maximum size of 240 bytes.

locationListIdstring int64

Output only. The unique ID of the location list. Assigned by the system.

locationType'TARGETING_LOCATION_TYPE_UNSPECIFIED' | 'TARGETING_LOCATION_TYPE_PROXIMITY' | 'TARGETING_LOCATION_TYPE_REGIONAL'

Required. Immutable. The type of location. All locations in the list will share this type.

namestring

Output only. The resource name of the location list.

Changes

No recorded changes to this operation across all 7 revisions of this API.