---
title: "Ad Group Updated"
method: POST
path: "ad_group.updated"
tags: ["Ad Groups"]
---

# Ad Group Updated

`POST ad_group.updated` (webhook)

Sent when an ad group's status, delivery_status, budget_amount, budget_type, or settings change. Its settings are title, conversion_event, bid_type, desired_cost_per_result, starts_at, ends_at, delivery_schedule, regions, demographics, audiences, languages, devices, and keywords. Settings edits while its campaign is a draft send nothing. previous_attributes carries the values the fields changed from. The payload carries no performance stats

Required permissions:
 - `webhook_receive:ad_groups`

## Headers

- `webhook-id` string, required: A unique identifier for this webhook request
- `webhook-signature` string, required: The signature of the webhook request with the webhook version prepended
- `webhook-timestamp` string, required: The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

## Payload

- object
  - `account_id` string, nullable: The account ID that this webhook event is associated with
  - `api_version` 'v1', required: The API version for this webhook
  - `api_version_date` string, nullable, required: The dated API version (Api-Version-Date) the payload is serialized to
  - `data` object, required
    - `ad_campaign` AdEntityReference, required: The ad campaign this ad group belongs to.
      - `id` string, required: The referenced entity's id.
    - `audiences` AdGroupAudiences, required: Saved audiences this ad group delivers to or excludes.
      - `exclude` string[], required
      - `include` string[], required
    - `bid_type` 'minimum_cost' | 'average_target' | 'maximum_target' | 'null', nullable, required: How delivery bids are set in the ad auction. Target-based strategies use `desired_cost_per_result`.
    - `budget_amount` number, nullable, required: This ad group's budget in USD, which is what it is stored and billed in. `null` when the budget is set on the campaign instead.
    - `budget_amount_local` number, nullable, required: The same budget stated in `budget_currency` at today's exchange rate, for display in the account's ads reporting currency. `null` when `budget_amount` is.
    - `budget_currency` string, required: The ISO 4217 code `budget_amount_local` is in: the account's `ads_reporting_currency` preference. `usd` unless the account changed it.
    - `budget_type` 'daily' | 'lifetime' | 'null', nullable, required: Whether `budget_amount` is spent per day (`daily`) or over the ad group's full run (`lifetime`). A `lifetime` ad group also needs `ends_at`, at least 24 hours after it starts.
    - `conversion_event` union, required: The pixel event optimized for. A standard event, or any custom pixel event name.
      - 'purchase' | 'add_to_cart' | 'initiated_checkout' | 'add_payment_info' | 'complete_registration' | 'lead' | 'content_view' | 'contact' | 'search' | 'customize_product' | 'donate' | 'find_location' | 'schedule' | 'start_trial' | 'submit_application' | 'subscribe'
      - string
    - `created_at` string, required: When the ad group was created, as an ISO 8601 timestamp.
    - `delivery_schedule` AdGroupDeliverySchedule, nullable, required
      - `friday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
      - `monday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
      - `saturday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
      - `sunday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
      - `thursday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
      - `tuesday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
      - `wednesday` AdGroupDeliveryWindow[]
        - `end` string, required: When delivery stops, as a 24-hour `HH:00` time up to `24:00` for midnight. Later than `start`; a window past midnight is split across two days.
        - `start` string, required: When delivery starts, as a 24-hour `HH:00` time from `00:00` to `23:00`.
    - `delivery_status` 'rejected' | 'draft' | 'paused' | 'in_review' | 'processing' | 'revise_content' | 'issues' | 'scheduled' | 'completed' | 'learning' | 'active', required: Whether ads in this ad group are delivering right now, and if not, why. When several states apply at once, the highest-precedence one is returned.
    - `demographics` AdGroupDemographics, required: Age, gender, and automatic-audience targeting.
      - `automatic` boolean, required: Whether automatic audience targeting is on. When `true`, delivery can reach beyond the ages and genders you set, treating them as suggestions.
      - `gender` 'all' | 'male' | 'female', required: Gender targeted.
      - `maximum_age` number, nullable, required: Oldest age targeted. `null` when no maximum is set.
      - `minimum_age` number, nullable, required: Youngest age targeted. `null` when no minimum is set.
    - `desired_cost_per_result` number, nullable, required: The cost per result the advertiser wants for this ad group, in USD. For an `awareness` campaign, it's the cost per 1,000 impressions. `null` when the ad group uses its campaign's `desired_cost_per_result`.
    - `devices` AdGroupDevices, required: Device platforms and operating systems targeted.
      - `operating_systems` AdGroupOperatingSystem[], required
        - `minimum_version` string: Lowest OS version targeted, such as `18.0`. Absent when any version qualifies.
        - `os` 'ios' | 'android', required: Operating system targeted.
      - `platforms` string[], required
    - `ends_at` string, nullable, required: When the ad group stops delivering, as an ISO 8601 timestamp. `null` when it runs until paused.
    - `id` string, required: Unique identifier for the ad group, prefixed `adgrp_`.
    - `issues` AdPlatformIssue[], required
      - `category` 'information' | 'warning' | 'error', required: The kind of issue: information about delivery, a warning, or an error requiring attention.
      - `id` string, required: Unique identifier for the issue.
      - `message` string, required: A description of what the issue is and how it can be resolved.
      - `resource_id` string, nullable, required: The ID of the campaign, ad group, or ad the issue is attached to.
      - `resource_type` 'ad_campaign' | 'ad_group' | 'ad', required: The type of resource the issue is attached to.
      - `title` string, required: A short, creator-facing title for the issue: the rule a content-review rejection names, or a generic label.
    - `keywords` AdGroupKeyword[]
      - `match_type` 'broad' | 'phrase' | 'exact', required: How closely a search has to match: `broad` also reaches related searches, `phrase` needs the meaning of the phrase, and `exact` needs the same meaning as the term. Defaults to `broad`.
      - `negative` boolean, required: Whether this term keeps the ads from showing instead of making them eligible. Defaults to `false`.
      - `text` string, required: The search term, up to 80 characters and 10 words.
    - `languages` string[], required
    - `learning_progress` AdGroupLearningProgress, nullable, required
      - `conversion_threshold` integer, required: The conversions this ad group's learning phase needs. It can change during delivery.
      - `conversions` integer, required: Conversions counted since the last significant edit during this ad group's learning phase.
      - `progress_percent` number, required: Conversions divided by the threshold, as a percentage clamped to 0–100. The ad group's `delivery_status` remains authoritative.
    - `medium` 'blimp' | 'billboard' | 'null', nullable, required: The object that shows the ad group's ads. `null` outside a `physical` campaign.
    - `regions` AdGroupRegions, required: Locations targeted and excluded.
      - `exclude` AdGroupGeoLocations, required: Locations excluded from targeting. Country groups can't be excluded.
        - `cities` AdGroupCity[], required
          - `key` string, required: The city's key: its US state or country, then its name, such as `US-TX:Austin`. An older ad group can hold a numeric key, which stays valid.
          - `name` string: City name, such as `Austin`. Absent when the ad group stores none.
        - `countries` string[], required
        - `country_groups` string[], required
        - `custom_locations` AdGroupCustomLocation[], required
          - `country_code` string: ISO 3166-1 alpha-2 country the point falls in. Send it under a special ad category, where the campaign must declare the countries its ad sets reach.
          - `distance_unit` 'mile' | 'kilometer', required: Unit for `radius`.
          - `latitude` number, required: Latitude of the center point.
          - `longitude` number, required: Longitude of the center point.
          - `name` string: Label for the location, such as a city or address. Absent when the location has no label.
          - `radius` number, required: Radius around the center point, in `distance_unit`.
        - `regions` string[], required
        - `zips` string[], required
      - `include` AdGroupGeoLocations, required: Locations the ad group targets.
        - `cities` AdGroupCity[], required
          - `key` string, required: The city's key: its US state or country, then its name, such as `US-TX:Austin`. An older ad group can hold a numeric key, which stays valid.
          - `name` string: City name, such as `Austin`. Absent when the ad group stores none.
        - `countries` string[], required
        - `country_groups` string[], required
        - `custom_locations` AdGroupCustomLocation[], required
          - `country_code` string: ISO 3166-1 alpha-2 country the point falls in. Send it under a special ad category, where the campaign must declare the countries its ad sets reach.
          - `distance_unit` 'mile' | 'kilometer', required: Unit for `radius`.
          - `latitude` number, required: Latitude of the center point.
          - `longitude` number, required: Longitude of the center point.
          - `name` string: Label for the location, such as a city or address. Absent when the location has no label.
          - `radius` number, required: Radius around the center point, in `distance_unit`.
        - `regions` string[], required
        - `zips` string[], required
    - `starts_at` string, nullable, required: When the ad group starts delivering, as an ISO 8601 timestamp. `null` when it starts as soon as it's active.
    - `status` 'active' | 'paused' | 'rejected' | 'duplicating', required: Whether the ad group is enabled. `active` and `paused` are set by you; `rejected` means it failed ad review; `duplicating` is a copy still being filled in.
    - `title` string, nullable, required: Display name of the ad group.
    - `updated_at` string, required: When the ad group was last updated, as an ISO 8601 timestamp.
  - `id` string, required: A unique ID for every single webhook request
  - `previous_attributes` object: For some `.updated` events, the old values of the payload fields that changed, keyed by field name. Omitted when no capture is available for the event
  - `timestamp` string, date-time, required: The timestamp in ISO 8601 format that the webhook was sent at on the server
  - `type` 'ad_group.updated', required: The webhook event type

## Acknowledgement `200`

Return a 200 status to indicate that the data was received successfully

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
