---
updatedAt: 2026-05-28T21:10:45.000Z
agentTools:
  projectIndex: https://docs.hivestack.com/llms.txt
---

# Get the unit pack's inventory targeting

Returns the inventory targeting associated with a dynamic unit pack

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Inventory",
    "version": "2",
    "description": "Inventory",
    "contact": {
      "email": "support@perion.com"
    }
  },
  "servers": [
    {
      "url": "https://apps.hivestack.com/api/v2"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyQuery": []
    }
  ],
  "tags": [
    {
      "name": "Unit Packs",
      "description": ""
    }
  ],
  "paths": {
    "/unitpacks/{unitpack_id}/inventorytargeting": {
      "get": {
        "tags": [
          "Unit Packs"
        ],
        "summary": "Get the unit pack's inventory targeting",
        "description": "Returns the inventory targeting associated with a dynamic unit pack",
        "operationId": "getUnitPackInventoryTargeting",
        "parameters": [
          {
            "$ref": "#/components/parameters/unitpack_id"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessInventoryTargeting"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "name": "hs-auth",
        "in": "header",
        "description": "The value should follow the following format: `apikey access_key:secret_key`"
      },
      "APIKeyQuery": {
        "type": "apiKey",
        "name": "apikey",
        "in": "query",
        "description": "The value should follow the following format: `access_key:secret_key`"
      }
    },
    "schemas": {
      "inventorytargeting": {
        "type": "object",
        "properties": {
          "creative_format_exclusions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "audio",
              "zip"
            ]
          },
          "creative_formats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "video",
              "image",
              "html"
            ]
          },
          "creative_orientation_exclusions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "square"
            ]
          },
          "creative_orientations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "landscape",
              "portrait"
            ]
          },
          "geofencegroup_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "geofencegroup_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "iab_categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "IAB1",
              "IAB5-1",
              "IAB13-12"
            ]
          },
          "iab_category_exclusion": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "IAB7-10",
              "IAB7-11",
              "IAB7-12"
            ]
          },
          "inventorytargeting_id": {
            "type": "integer",
            "readOnly": true,
            "example": 1
          },
          "languages_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "languages_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "location_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "location_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "market_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "market_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "mediatype_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "mediatype_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "network_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "network_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "owner_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "site_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "site_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "unit_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "unit_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "unit_tag_exclusions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "adult",
              "cannabis"
            ]
          },
          "unit_tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "adult",
              "cannabis"
            ]
          },
          "unitpack_exclusion_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "unitpack_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          }
        }
      }
    },
    "parameters": {
      "unitpack_id": {
        "name": "unitpack_id",
        "in": "path",
        "description": "Auto generated id associated to the unitpack.",
        "required": true,
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "SuccessInventoryTargeting": {
        "description": "OK - an object representing an inventory targeting",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/inventorytargeting"
            }
          }
        }
      }
    }
  }
}
```