Inventory Type Targeting
  • 1 Minute to read

    Inventory Type Targeting


      Article summary

      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

      /traffic/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.

      array

      Y

      Note

      For a complete list of targeting resource fields, refer to Targeting Object.

      Add/Update Inventory Type Targeting

      Add or update an inventory targeting to the specified line.

      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

      POST https://dspapi.admanagerplus.yahoo.com/traffic/lines/365277/targeting/

      Example Request Body

      {
        "inventoryTypes": [
          "WEB"
        ],
        "types": [
          {
            "name": "INVENTORY_TYPE",
            "isTargeted": true
          }
        ]
      }

      Example Response

      {
        "response": {
          "types": [
            {
              "name": "INVENTORY_TYPE",
              "isTargeted": true
            }
          ],
          "inventoryTypes": [
            "WEB"
          ],
          "errors": null,
          "timeStamp": "2018-01-12T01:57:40Z"
        }
      }

      Additional Resources

      About Targeting


      Was this article helpful?