# net.wireservice.component.adSlot

> Published by [wireservice.net](https://lexicon.garden/identity/did:plc:lktj64hp7lc3fzuf6iyy7lwj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lktj64hp7lc3fzuf6iyy7lwj/net.wireservice.component.adSlot)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lktj64hp7lc3fzuf6iyy7lwj/net.wireservice.component.adSlot/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lktj64hp7lc3fzuf6iyy7lwj/net.wireservice.component.adSlot/examples)

## Definitions

### `net.wireservice.component.adSlot#adSize`

**Type**: `object`

An accepted creative size in points.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `height` | `integer` | Yes |  |
| `width` | `integer` | Yes |  |

### `net.wireservice.component.adSlot`

**Type**: `object`

Ad slot component. Marks a placement; the renderer maps the slot name to its ad server configuration. Carries no ad content.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `hidden` | `boolean` | No |  |
| `identifier` | `string` | No |  |
| `layout` | `string` | No |  |
| `sizes` | `array` | No | Creative sizes this slot accepts. |
| `slot` | `string` | Yes | Placement name the renderer resolves to an ad unit (e.g., 'in-article-1'). |
| `style` | `string` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "adSize": {
      "description": "An accepted creative size in points.",
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "main": {
      "description": "Ad slot component. Marks a placement; the renderer maps the slot name to its ad server configuration. Carries no ad content.",
      "properties": {
        "hidden": {
          "type": "boolean"
        },
        "identifier": {
          "maxLength": 256,
          "type": "string"
        },
        "layout": {
          "maxLength": 256,
          "type": "string"
        },
        "sizes": {
          "description": "Creative sizes this slot accepts.",
          "items": {
            "ref": "#adSize",
            "type": "ref"
          },
          "type": "array"
        },
        "slot": {
          "description": "Placement name the renderer resolves to an ad unit (e.g., 'in-article-1').",
          "maxLength": 256,
          "type": "string"
        },
        "style": {
          "maxLength": 256,
          "type": "string"
        }
      },
      "required": [
        "slot"
      ],
      "type": "object"
    }
  },
  "id": "net.wireservice.component.adSlot",
  "lexicon": 1
}
```
