--- title: "Inventory Auction Type Targeting" slug: "inventory-auction-type-targeting" updated: 2025-11-19T16:33:22Z published: 2025-11-19T16:33:22Z canonical: "help.yahooinc.com/inventory-auction-type-targeting" --- > ## 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 Auction Type Targeting Use Inventory Auction Type targeting to configure whether a line participates in **First Price** or **Second Price** auctions. Explicitly target either auction type or set the option to `ALL`, which represents no specific targeting applied. ## Endpoint ```plaintext /traffic/lines/{id}/targeting ``` Use the following HTTP methods: - Use the `GET` method to view line targeting. - Use the `POST` method to edit line targeting. ### Parameters | Parameters | Parameter Type | Description | Data Type | Required/Optional | | --- | --- | --- | --- | --- | | `id` | query | Specifies the line ID. | `integer` | Required | | `auctionType` | body | Specifies the auction type. Allowed values: - `FIRST_PRICE` - `SECOND_PRICE` - `ALL` | `String` | Required | | `types` | body | Specifies an array of targeting types to update, enable or disable. `AUCTION_TYPE `must be included to apply changes. | `String` | Required | ## Add/Update Inventory Auction Type Add or update Inventory Auction Type for the specified line. ```plaintext POST  traffic/lines/{id}/targeting/ ``` ### Sample Request URL ```plaintext POST https://dspapi.admanagerplus.yahoo.com/traffic/lines/{id}/targeting ``` ### Sample Request Body ```json {  "auctionType": "FIRST_PRICE",  "types": [    {      "name": "AUCTION_TYPE",      "isTargeted": true    }  ] } ``` ### Sample Response ```json {     ...    "auctionType": "FIRST_PRICE",    "types": [      {        "name": "AUCTION_TYPE",        "isTargeted": true     }        ],      ...    },    "errors": null,    "timeStamp": "2025-11-14T17:47:09.077Z" } ``` > [!NOTE] > Note > > - When `isTargeted` is set to `false`, the auction type configuration is not applied regardless of the auctionType value passed in the request. > - When `"auctionType": "ALL"`, the DSP treats this as no specific auction targeting and the line returns `"isTargeted": false`. > - This feature applies only at the line level within the Traffic API. ## Read Inventory Auction Type Retrieve the current inventory auction Type for a specified line. ```plaintext GET /traffic/lines/{id}/targeting/ ``` ### Parameters | Parameters | Parameter Type | Description | Data Type | Required/Optional | | --- | --- | --- | --- | --- | | `id` | query | Specifies the line ID. | `integer` | Required | ### Sample Request URL (Line-Level) ```plaintext GET https://dspapi.admanagerplus.yahoo.com/traffic/lines/{id}/targeting/ ``` ### Sample Response (Line-Level) ```json {     ...    "auctionType": "FIRST_PRICE",    "types": [      {        "name": "AUCTION_TYPE",        "isTargeted": true     }        ],      ...    },    "errors": null,    "timeStamp": "2025-11-14T17:47:09.077Z" } ``` ### Sample Response (Line-Level) ```json {  "isTargeted": false,  "name": "AUCTION_TYPE" } ```