---
title: "Get an ad config"
method: GET
path: "/v2/sites/{site_id}/ad_configs/{ad_config_id}/"
tags: ["ssai"]
---

# Get an ad config

`GET /v2/sites/{site_id}/ad_configs/{ad_config_id}/`

## Request

- Base URL: `https://api.jwplayer.com`
- URL: `https://api.jwplayer.com/v2/sites/{site_id}/ad_configs/{ad_config_id}/`
- Auth: API key in header `Authorization`

Retrieve the details of a specific ad config

## Path parameters

- `site_id` string, required: Unique identifier for a resource
- `ad_config_id` string, required: Unique identifier for a resource

## Response `200`

Success

- AdConfigResourceRead
  - `schema` string
  - `id` string: Unique identifier for a resource
  - `created` string: Date and time at which the resource was created
  - `last_modified` string: Date and time at which the resource was most recently modified
  - `type` string: Name of the type of resource.
  - `relationships` object: Ancilliary resources associated to the primary resource being read
  - `metadata` object, required
    - `name` string: Eight-character ID of an ad config
    - `preroll_url` string: Pre-roll ad tag URL of an ad config
    - `midroll_url` string: Mid-roll ad tag URL of an ad config
    - `preroll_target_duration` string, nullable: Duration of the preroll ad break in <em>HH:MM:SS.mmm</em> format The maximum accepted duration is <em>01:00:00.000</em> (1 hour)
    - `midroll_target_duration` string, nullable: Duration of the midroll ad break in <em>HH:MM:SS.mmm</em> format The maximum accepted duration is <em>01:00:00.000</em> (1 hour)
    - `time_between_ads` string: Default time between ads used for media items without individual timing sets

---

[API](https://skmtc.dev/jwplayer/apis/management-api-v2.md) - [All operations](https://skmtc.dev/jwplayer/apis/management-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jwplayer/apis/management-api-v2/revisions/9fad6bd5872e?raw)
