# ad_set.created

An ad set was created through Zernio (`source: "zernio"`) or detected by the sync (`source: "platform"`).

### When it fires

Fires once the ad set row is recorded, so `GET /v1/ads/ad-sets/{adSetId}` finds it. A detected ad set arrives up to one sync interval late.

### Payload notes

`adObject.campaign` is the campaign the ad set belongs to, or null when the platform has none.

### When it does not fire

History loaded when an account connects, and ad sets created more than 7 days ago, are never announced.




**Payload for `ad_set.created`:**

- **id** (required) `string`: Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
- **profiles**: `WebhookProfiles` - See schema definition
- **test** `boolean`: Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
- **event** (required) `string`: No description - one of: ad_set.created
- **account** (required): `WebhookAdsAccount` - See schema definition
- **adObject** (required) `object`: 
  - **level** (required) `string`: Always `AD_SET`. - one of: AD_SET
  - **platformId** (required) `string`: Platform-native ad set ID.
  - **platformAdAccountId** (required) `string`: Platform-native ad account ID.
  - **name** (required) `string,null`: No description
  - **campaign** (required) `object,null`: The campaign the ad set belongs to, or null when the platform has none.
- **source** (required) `string`: Where the ad set was created. `zernio` for ad sets created through Zernio, `platform` for ad sets the sync detected. - one of: zernio, platform
- **timestamp** (required) `string` (date-time): UTC time at which Zernio generated this event.