# Ad Details

## Targeting Rule

- **AdId**: int32, required - The Ad the targeting rule applies to
- **SegmentTargetingId**: int32, required - Id of the Ad Segment targeting rule

## Response Schema

### 200 OK

```json
{
  "Id": 56789,
  "FlightId": 55555,
  "SegmentId": 123456,
  "IsExclude": false,
  "Segment": {
    "Source": "audience",
    "Name": "best customers",
    "Reach": {
      "all_time": 3187463,
      "28d": 387434
    },
    "Description": "top 1% spenders in the last 30 days.",
    "Category": "CRM"
  }
}
```

### 400 Bad Request

## Curl Example

```bash
curl -X GET -H "X-Adzerk-ApiKey:<APIKEY>" "https://api.kevel.co/v1/ad/{AdId}/segmenttargeting/{Id}"
```
