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

# Request an ad from the ad server for a single screen using a UUID

Returns a VAST tag. Can be an empty tag, or contain an ad to play with play confirmation URL.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "Ad Server",
    "version": "2",
    "description": "\n# Ad Requests\nAd serving routes are what drive digital out-of-home displays. It's how your digital inventory (screens) interact with the Perion DOOH ad server to receive ads to play.\n\n## Choosing an endpoint prefix\n\nAll ad-serving routes are hosted on the Perion DOOH edge. Use the prefix that matches your integration:\n\n* **`/ad`** — call from the **player** (screen-side ad requests, VAST delivery, play confirmation, and creative prefetch).\n* **`/ssp`** — call from a **Header-Bidder integration** (JSON schedule responses for external SSP partners).\n\nLegacy Nirvana-compatible paths under `/nirvana/api/v1/` remain available but are deprecated.\n\nThe fundamentals of a digital display interacting with the Perion DOOH ad server are trivial. You are required to know 4 things:\n1. The unique identifier (UUID) of your organization\n2. The unique identifier (UUID) of your screen, or its external ID\n3. The ad-serving base URL\n4. How to parse a [VAST 2.0 file](https://www.iab.com/guidelines/digital-video-ad-serving-template-vast-2-0)\n\n#### 1) Organization UUID\nTo obtain a unique identifier for your organization, refer to our inventory documentation or contact us at [support@perion.com](mailto:support@perion.com).\n\n#### 2) Screen Identifier\nTo obtain a unique identifier for your digital display, refer to our inventory documentation. If you\ndo not manage your own inventory in our system, you can contact us at [support@perion.com](mailto:support@perion.com)\nto get what you need.\n\n#### 3) Ad-serving Base URL\nTo obtain our ad-server domain, refer to our inventory documentation, or contact us at [support@perion.com](mailto:support@perion.com).\n\nFor this documentation we will be using the following domain:\n`https://privateurl.com/`\n\nAppend the route path to this base URL. For example, a player VAST request looks like:\n`https://privateurl.com/ad/v1/orgs/{org_uuid}/units/uuid/{unit_uuid}/vast`\n\n#### 4) VAST Parsing\nWe conform to the adtech industry standard of using Video Ad Serving Tags (VAST) to deliver creatives from our ad server\nto your digital displays. There are multitudes of vast parsers written in many languages available freely on the internet,\nor you may implement your own if you're feeling up to it!\n\nHere are a few:\n* [Javascript](https://www.npmjs.com/package/iab-vast-parser)\n* [PHP](https://github.com/sokil/php-vast)\n* [Ruby](https://github.com/chrisdinn/vast)\n\n# Creatives\n\n<p>\n<span>\nIn certain cases, a digital display might be connected to the Internet via what one might consider to be a poor network connection.\nThis can lead to problems or slowdowns downloading creatives in realtime after receiving an ad to play.\n</span>\n</p>\n\n<p>\n<span>\nTo give a chance for these displays with poor connection to play content on time, we offer a \"possible creatives\"\nendpoint which provides a list of all creatives that could possibly play for a given display UUID.\nThe list is valid for around 24 hours, so it is recommended that it be refreshed at least once a day screen-side</span>\n</p>"
  },
  "tags": [
    {
      "name": "Ad Serving",
      "description": "Player integration — request ads from the ad server using `/ad` routes"
    }
  ],
  "paths": {
    "/ad/v1/orgs/{org_uuid}/units/uuid/{unit_uuid}/vast": {
      "get": {
        "tags": [
          "Ad Serving"
        ],
        "summary": "Request an ad from the ad server for a single screen using a UUID",
        "description": "Returns a VAST tag. Can be an empty tag, or contain an ad to play with play confirmation URL.",
        "operationId": "getVast",
        "parameters": [
          {
            "name": "org_uuid",
            "in": "path",
            "description": "UUID of the organization that owns the screen",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "unit_uuid",
            "in": "path",
            "description": "UUID of the screen requesting an ad",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK - MediaFile element will contain a CDATA wrapped creative URL",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/VAST"
                },
                "examples": {
                  "response": {
                    "value": "<?xml version=\"1.0\"?>\n<VAST version=\"2.0\">\n    <Ad id=\"1\" sequence=\"1\">\n        <InLine>\n            <Impression>\n                <![CDATA[\n                    https://privateurl.com/ad/orguuid/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/units/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/confirmplay/zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz/adrequestuuid/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\n                ]]>\n            </Impression>\n            <Error>\n                <![CDATA[\n                    https://privateurl.com/ad/orguuid/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/units/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/expireplay/zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz/adrequestuuid/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\n                ]]>\n            </Error>\n            <Creatives>\n                <Creative id=\"b2d1f37b-1339-4422-846c-99a6e165ecc0\">\n                    <Linear>\n                        <Duration>00:00:06</Duration>\n                        <TrackingEvents>\n\n                        </TrackingEvents>\n                        <MediaFiles>\n                            <MediaFile width=\"1920\" height=\"1080\" type=\"image/jpeg\" delivery=\"progressive\">\n                                <![CDATA[\n                                    https://subdomain.cdn.tld/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/creative.jpg\n                                ]]>\n                            </MediaFile>\n                        </MediaFiles>\n                    </Linear>\n                </Creative>\n            </Creatives>\n        </InLine>\n    </Ad>\n</VAST>"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://privateurl.com"
    }
  ],
  "components": {
    "schemas": {
      "VAST": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "format": "float",
            "xml": {
              "attribute": true
            },
            "enum": [
              "2.0"
            ]
          },
          "Ad": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "format": "int32",
                "xml": {
                  "attribute": true
                }
              },
              "sequence": {
                "type": "integer",
                "format": "int32",
                "xml": {
                  "attribute": true
                }
              },
              "InLine": {
                "type": "object",
                "properties": {
                  "Impression": {
                    "type": "string",
                    "format": "url",
                    "example": "\n\t\t\t\t<![CDATA[\n \t\t\t\t\thttps://privateurl.com/ad/orguuid/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/units/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/confirmplay/zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz/adrequestuuid/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\n \t\t\t\t]]>\n\t\t\t"
                  },
                  "Error": {
                    "type": "string",
                    "format": "url",
                    "example": "\n\t\t\t\t<![CDATA[\n \t\t\t\t\thttps://privateurl.com/ad/orguuid/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/units/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/expireplay/zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz/adrequestuuid/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\n \t\t\t\t]]>\n\t\t\t"
                  },
                  "Creatives": {
                    "type": "object",
                    "properties": {
                      "Creative": {
                        "type": "object",
                        "properties": {
                          "Linear": {
                            "type": "object",
                            "properties": {
                              "Duration": {
                                "type": "string",
                                "format": "time",
                                "example": "00:00:06"
                              },
                              "TrackingEvents": {
                                "type": "object"
                              },
                              "MediaFiles": {
                                "type": "object",
                                "properties": {
                                  "MediaFile": {
                                    "type": "object",
                                    "properties": {
                                      "width": {
                                        "type": "integer",
                                        "format": "int32",
                                        "example": 1920,
                                        "xml": {
                                          "attribute": true
                                        }
                                      },
                                      "height": {
                                        "type": "integer",
                                        "format": "int32",
                                        "example": 1080,
                                        "xml": {
                                          "attribute": true
                                        }
                                      },
                                      "type": {
                                        "type": "string",
                                        "example": "image/jpeg",
                                        "xml": {
                                          "attribute": true
                                        }
                                      },
                                      "delivery": {
                                        "type": "string",
                                        "example": "progressive",
                                        "xml": {
                                          "attribute": true
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "xml": {
          "name": "VAST"
        }
      }
    }
  }
}
```