--- title: "A/B Testing" slug: "ab-testing" updated: 2024-02-29T15:57:50Z published: 2024-02-29T15:57:50Z canonical: "help.yahooinc.com/ab-testing" --- > ## 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. # A/B Testing Targeting *This article describes resources that enable you to read and define A/B testing targeting.* # Overview The Yahoo DSP supports `AB_TESTING` targeting for lines serving display and video ads. If you have created user groups for A/B testing, you can target those user groups to see the results of your testing. To learn more, refer to [User Groups](/dsp-api/docs/user-groups). # Endpoint ```plaintext /traffic/lines/{id}/targeting ``` - A `GET` request enables you to view user groups and other target types targeted by the specified line. - A `POST` request enables you to target user groups and other target types with the specified line. # Resource The `targeting` resource is the standard Yahoo DSP resource for targeting consumers based on their profiles, behaviors, and ad content. The `targeting` resource is defined by the following `AB_TESTING` targeting type-specific fields: | **Parameter** | **Parameter Type** | **Description** | **Data Type** | **Required** | | --- | --- | --- | --- | --- | | `id` | path | Specifies the line ID. | `number` | Y | | `userGroupEntry` | body | Specifies the user group ID. For `POST`, you need to supply the `id` of the user group you want to target, not the entire object. To learn more, refer to [User Group](/dsp-api/docs/user-groups). | `object` | Y | | `types` | body | Specifies an array of targeting types to update, enable, or disable. `AB_TESTING` targeting type must be specified to apply the changes. To learn more, refer to [Targeting Types](/dsp-api/docs/about-targeting). | `array` | Y | > [!NOTE] > Note > > For a complete list of targeting resource fields, refer to [Targeting Object](/dsp-api/docs/about-targeting). # Add/Update User Group Targeting Add or update user group targets for the specified line. Consumers may be targeted based on user group membership. ```plaintext POST /traffic/lines/{id}/targeting ``` The `AB_TESTING` targeting type must be enabled in the body of the `application/json` payload. ## 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 ```plaintext {  "userGroupEntry": {    "id": 32658  },  "types": [    {      "name": "AB_TESTING",      "isTargeted": true    }  ] } ``` ## Example Response ```plaintext {  "response": {    "types": [      {        "name": "AB_TESTING",        "isTargeted": true      }    ],    "userGroupEntry": {      "id": 36519,      "name": "zz57",      "userGroupId": 16890,      "trafficPercent": 60,      "lowerBound": 0,      "upperBound": 59    }  },  "errors": null,  "timeStamp": "2019-10-09T03:48:29Z" } ``` ### Additional Resources [About Targeting](/dsp-api/docs/about-targeting) [User Groups](/dsp-api/docs/user-groups)