--- title: "ads.txt Targeting" slug: "ads-txt-targeting" updated: 2024-05-20T19:46:26Z published: 2024-05-20T19:46:26Z canonical: "help.yahooinc.com/ads-txt-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. # ads.txt Targeting This article describes resources that enable you to read and define ads.txt declarations. ## Overview You can target your ads.txt declaration preferences so that impressions deliver only to the appropriate inventory. ## Endpoint ```plaintext /traffic/lines/{id}/targeting ``` A `GET` request enables you to view ads.txt preferences by the specified line. A `POST` request enables you to target ads.txt preferences 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 `SELLER_RELATIONSHIPS` target type. The `targeting` resource is defined by the following `SELLER_RELATIONSHIPS` targeting type-specific fields: | Parameter | Parameter Type | Description | Data Type | Required | | --- | --- | --- | --- | --- | | `id` | path | Specifies the line ID. | `integer` | Y | | `sellerRelationships` | body | Specifies the settings targeted: - `UNKNOWN` - Impressions on domains that have no ads.txt file published. - `DIRECT` - Impressions on domains that have an ads.txt declaration of Direct for the given publishers and supply partners. - `RESELLER` - Impressions on domains that have an ads.txt declaration of Reseller for he given publishers and supply partners. - `ALL` | `array` | Y | | `types` | body | Specifies an array of targeting types to update, enable, or disable. `SELLER_RELATIONSHIPS` targeting type must be specified to apply the changes. To learn more, see [Targeting Types](/dsp-api/docs/about-targeting#targeting-types). | `array` | Y | > [!NOTE] > Note > > For a complete list of `targeting` resource fields, see [Targeting Object](/dsp-api/docs/about-targeting#targeting-object). ## Add/Update Ads.txt Targeting Add or update Ads.txt targeting for the specified line. ```plaintext POST traffic/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://dspapi.admanagerplus.yahoo.com/traffic/lines/365277/targeting/ ``` ### Example Request Body ```json {  "sellerRelationships": [    "DIRECT"  ],  "types": [    {      "name": "SELLER_RELATIONSHIPS",      "isTargeted": true    }  ] } ``` ### Example Response ```json {  "response": {    "types": [      {        "name": "SELLER_RELATIONSHIPS",        "isTargeted": true      }    ],    "sellerRelationships": [      "DIRECT"    ],    "errors": null,    "timeStamp": "2018-01-12T01:57:40Z"  } } ``` ### See Also [About Targeting](/dsp-api/docs/about-targeting)