--- title: "Inventory Type" slug: "inventory-type" updated: 2026-12-01T17:20:35Z published: 2026-12-01T17:20:35Z canonical: "help.yahooinc.com/inventory-type" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.yahooinc.com/llms.txt > Use this file to discover all available pages before exploring further. # Inventory Type Targeting *This article describes resources that enable you to read and define inventory type targeting.* ## Overview The Yahoo DSP supports `INVENTORY_TYPE` targeting for lines serving display, video, and native ads. ## Endpoint ```plaintext /traffic/v3/lines/{id}/targeting ``` - A `GET` request enables you to view inventory types targeted by the specified line. - A `POST` request enables you to target inventory types with the specified line. ## Resources The `targeting` resource is the standard Yahoo DSP resource for targeting consumers based on their profiles, behaviors, and ad content. This resource comprises multiple fields that enable you to specify line targeting across many types of targets including the `INVENTORY_TYPE` target type. The `targeting` resource is defined by the following `INVENTORY_TYPE` targeting type-specific fields: | **Parameter** | **Parameter Type** | **Description** | **Data Type** | **Required** | | --- | --- | --- | --- | --- | | `id` | path | Specifies the line ID. | `integer` | Y | | `inventoryTypes` | body | Specifies the inventory types to target. Valid values include: - `WEB` - `APP` - `ALL` | `array` | Y | | `types` | body | Specifies an array of targeting types to update, enable, or disable. `INVENTORY_TYPE` targeting type must be specified to apply the changes. To learn more, refer to [Targeting Types](/dsp-api/docs/about-targeting#targeting-types). | `array` | Y | > [!NOTE] > Note > > For a complete list of `targeting` resource fields, refer to [Targeting Object](/dsp-api/docs/about-targeting). ## Add/Update Inventory Type Targeting Add or update an inventory targeting to the specified line. ```plaintext POST traffic/v3/lines/{id}/targeting/ ``` ### Parameters The line ID is specified in the path of the URL. All other parameters are specified in the body of the `application/json` payload. ### Example Request URL ```plaintext POST https://api.dsp.yahooinc.com/traffic/v3/lines/365277/targeting/ ``` ### Example Request Body ```plaintext {  "inventoryTypes": [    "WEB"  ],  "types": [    {      "name": "INVENTORY_TYPE",      "isTargeted": true    }  ] } ``` ### Example Response ```plaintext {  "response": {    "types": [      {        "name": "INVENTORY_TYPE",        "isTargeted": true      }    ],    "inventoryTypes": [      "WEB"    ],    "errors": null,    "timeStamp": "2018-01-12T01:57:40Z"  } } ``` ### Additional Resources [About Targeting](/dsp-api/docs/about-targeting)