{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-ad-group-create-schema.json",
  "title": "Ad Group Create",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-ad-groups-api-openapi.yml#/components/schemas/components_schema_ad_group_create",
  "oneOf": [
    {
      "$ref": "#/$defs/components_schema_ad_group_create_manual"
    },
    {
      "$ref": "#/$defs/components_schema_ad_group_create_automated"
    }
  ],
  "$defs": {
    "ad_account_id": {
      "$ref": "#/$defs/id-2",
      "description": "The ID of the ad account that the ad group belongs to."
    },
    "app_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Apple App Store or Google Play Store app ID. Used for `APP_INSTALLS` campaigns. See the [iOS App Install limits](https://ads-api.reddit.com/docs/v3/operations/Get%20SKAdNetwork%20Availability)."
    },
    "bid_strategy": {
      "description": "The ad group's bid strategy. For CBO campaigns, this must match the campaign's bid strategy.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "BIDLESS",
        "MANUAL_BIDDING",
        "MAXIMIZE_VOLUME",
        "TARGET_CPX",
        null
      ],
      "x-enumDescriptions": {
        "null": "Inherit the campaign's setting.",
        "BIDLESS": "Maximize results within the budget without a cost cap. Set `bid_value` to `null`.",
        "MAXIMIZE_VOLUME": "Maximize result volume. Use `bid_value` as the cost cap in microcurrency.",
        "TARGET_CPX": "Optimize toward a target cost per action. Set `bid_value` to the target cost in microcurrency."
      }
    },
    "bid_type": {
      "description": "The ad group's [bidding strategy](https://business.reddithelp.com/s/article/How-much-do-Reddit-Ads-cost#bidding-strategies), which must fit the `optimization_goal` and campaign `objective`. For campaign budget optimization (CBO), this must match the campaign's bid type.",
      "x-enumDescriptions": {
        "null": "Inherit the campaign's setting."
      },
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "CPC",
        "CPM",
        "CPV",
        "CPV6",
        "CPV15",
        null
      ]
    },
    "bid_value": {
      "description": "The amount to pay per bidding event (microcurrency). Must be between $3.50 and $100 USD when `bid_type` is `CPM`.",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    },
    "campaign_id": {
      "description": "The campaign ID.",
      "type": "string"
    },
    "campaign_objective_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "The campaign's objective type.",
      "enum": [
        "APP_INSTALLS",
        "BRAND_AWARENESS",
        "CATALOG_SALES",
        "CLICKS",
        "CONVERSIONS",
        "IMPRESSIONS",
        "LEAD_GENERATION",
        "SALES",
        "VIDEO_VIEWABLE_IMPRESSIONS",
        null
      ],
      "readOnly": true
    },
    "components_enum_targeting_language_codes": {
      "type": "string",
      "title": "TargetingLanguageCodes",
      "description": "The language's code ([ISO 639-1](https://www.loc.gov/standards/iso639-2/php/code_list.php)).",
      "enum": [
        "AR",
        "CS",
        "DA",
        "DE",
        "EL",
        "EN",
        "ES",
        "FI",
        "FR",
        "HU",
        "IT",
        "JA",
        "KO",
        "NL",
        "NO",
        "PL",
        "PT",
        "RO",
        "SV",
        "VI",
        "ZH"
      ]
    },
    "components_enums_conversion_event_type": {
      "description": "The type of conversion event for an ad. Only used for shopping ads targeting.",
      "type": "string",
      "enum": [
        "ADD_TO_CART",
        "ADD_TO_WISHLIST",
        "PURCHASE",
        "SEARCH",
        "VIEW_CONTENT"
      ]
    },
    "components_enums_optimization_goal": {
      "x-enumDescriptions": {
        "null": "For video views campaigns, this value is not supported starting March 31, 2026.",
        "VIDEO_VIEW_6S": "Use this value instead of `null` for video views campaigns starting March 31, 2026.",
        "VIDEO_VIEW_15S": "For campaigns and ad groups, requires a `bid_type` of `CPV15`.",
        "VIEW_CONTENT": "For conversion campaigns, this value is not supported starting May 5th, 2025.",
        "SEARCH": "For conversion campaigns, this value is not supported starting May 5th, 2025.",
        "ADD_TO_WISHLIST": "For conversion campaigns, this value is not supported starting May 5th, 2025."
      },
      "enum": [
        "ADD_TO_CART",
        "ADD_TO_WISHLIST",
        "CLICKS",
        "LEAD",
        "PAGE_VISIT",
        "PURCHASE",
        "SEARCH",
        "SIGN_UP",
        "UNKNOWN",
        "VIEW_CONTENT",
        "MOBILE_CONVERSION_INSTALL",
        "MOBILE_CONVERSION_SIGN_UP",
        "MOBILE_CONVERSION_ADD_PAYMENT_INFO",
        "MOBILE_CONVERSION_ADD_TO_CART",
        "MOBILE_CONVERSION_PURCHASE",
        "MOBILE_CONVERSION_LEVEL_ACHIEVED",
        "MOBILE_CONVERSION_START_TRIAL",
        "MOBILE_CONVERSION_SUBSCRIBE",
        "MOBILE_CONVERSION_FIRST_TIME_PURCHASE",
        "LANDING_PAGE_VISIT",
        "VIDEO_VIEW_6S",
        "VIDEO_VIEW_15S",
        null
      ]
    },
    "components_enums_placements": {
      "description": "Enum representing the placement of a creative.",
      "type": "string",
      "enum": [
        "FEED",
        "COMMENTS_PAGE"
      ]
    },
    "components_enums_view_through_conversion_type": {
      "description": "The type of view-through conversion being measured. For ad groups under CBO campaigns, this field must match the campaign's `view_through_conversion_type`.",
      "x-enumDescriptions": {
        "SEVEN_DAY_CLICKS_ONE_DAY_VIEW": "Required for `CATALOG_SALES` campaigns with the `PURCHASE` optimization goal.",
        "null": "For ad groups, inherit the setting from the campaign."
      },
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "SEVEN_DAY_CLICKS",
        "SEVEN_DAY_CLICKS_ONE_DAY_VIEW",
        null
      ]
    },
    "components_schema_ad_group_create_automated": {
      "title": "Automated Ad Group Create",
      "description": "Create an automated ad group in a Reddit Max campaign. The parent campaign controls bidding, delivery pacing, priority, and frequency caps. Creative inputs belong on the dynamic creative template ad rather than the ad group. See the [Max campaign setup guide](/docs/v3/guides/programs/campaign/max-campaign-setup) for the complete creation workflow.\n",
      "type": "object",
      "additionalProperties": true,
      "required": [
        "type",
        "campaign_id",
        "name",
        "targeting"
      ],
      "properties": {
        "type": {
          "description": "The `AUTOMATED` type identifies an ad group in a Reddit Max campaign.",
          "type": "string",
          "const": "AUTOMATED"
        },
        "campaign_id": {
          "$ref": "#/$defs/campaign_id",
          "description": "The ID of the parent automated Reddit Max campaign."
        },
        "name": {
          "$ref": "#/$defs/name-2"
        },
        "configured_status": {
          "$ref": "#/$defs/configured_status"
        },
        "targeting": {
          "$ref": "#/$defs/components_schema_targeting_rmax"
        },
        "bid_value": {
          "$ref": "#/$defs/bid_value"
        },
        "app_id": {
          "$ref": "#/$defs/app_id"
        },
        "schedule": {
          "$ref": "#/$defs/schedule"
        },
        "conversion_pixel_id": {
          "$ref": "#/$defs/conversion_pixel_id"
        },
        "end_time": {
          "$ref": "#/$defs/end_time"
        },
        "goal_type": {
          "$ref": "#/$defs/goal_type"
        },
        "goal_value": {
          "$ref": "#/$defs/goal_value"
        },
        "optimization_goal": {
          "$ref": "#/$defs/optimization_goal"
        },
        "start_time": {
          "$ref": "#/$defs/start_time"
        },
        "view_through_conversion_type": {
          "$ref": "#/$defs/components_enums_view_through_conversion_type"
        }
      }
    },
    "components_schema_ad_group_create_manual": {
      "title": "Manual Ad Group Create",
      "allOf": [
        {
          "$ref": "#/$defs/components_schema_ad_group_manual"
        },
        {
          "required": [
            "bid_strategy",
            "bid_type",
            "campaign_id",
            "name"
          ]
        }
      ]
    },
    "components_schema_ad_group_manual": {
      "title": "Ad Group Manual",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "$ref": "#/$defs/type-2",
          "type": "string",
          "const": "MANUAL"
        },
        "ad_account_id": {
          "$ref": "#/$defs/ad_account_id"
        },
        "bid_type": {
          "$ref": "#/$defs/bid_type"
        },
        "bid_value": {
          "$ref": "#/$defs/bid_value"
        },
        "campaign_id": {
          "$ref": "#/$defs/campaign_id"
        },
        "campaign_objective_type": {
          "$ref": "#/$defs/campaign_objective_type"
        },
        "configured_status": {
          "$ref": "#/$defs/configured_status"
        },
        "created_at": {
          "$ref": "#/$defs/components_schema_created_at"
        },
        "delivery_status": {
          "$ref": "#/$defs/components_schema_delivery_status"
        },
        "effective_status": {
          "$ref": "#/$defs/effective_status"
        },
        "end_time": {
          "$ref": "#/$defs/end_time"
        },
        "goal_type": {
          "$ref": "#/$defs/goal_type"
        },
        "goal_value": {
          "$ref": "#/$defs/goal_value"
        },
        "id": {
          "$ref": "#/$defs/id-3"
        },
        "is_campaign_budget_optimization": {
          "$ref": "#/$defs/is_campaign_budget_optimization"
        },
        "modified_at": {
          "$ref": "#/$defs/components_schema_modified_at"
        },
        "name": {
          "$ref": "#/$defs/name-2"
        },
        "optimization_goal": {
          "$ref": "#/$defs/optimization_goal"
        },
        "start_time": {
          "$ref": "#/$defs/start_time"
        },
        "targeting": {
          "$ref": "#/$defs/targeting"
        },
        "view_through_conversion_type": {
          "$ref": "#/$defs/components_enums_view_through_conversion_type"
        },
        "conversion_pixel_id": {
          "$ref": "#/$defs/conversion_pixel_id"
        },
        "app_id": {
          "$ref": "#/$defs/app_id"
        },
        "bid_strategy": {
          "$ref": "#/$defs/bid_strategy"
        },
        "optimization_strategy_type": {
          "$ref": "#/$defs/optimization_strategy_type"
        },
        "product_set_id": {
          "$ref": "#/$defs/product_set_id"
        },
        "saved_audience_id": {
          "$ref": "#/$defs/saved_audience_id"
        },
        "schedule": {
          "$ref": "#/$defs/schedule"
        },
        "shopping_targeting": {
          "$ref": "#/$defs/shopping_targeting"
        },
        "shopping_type": {
          "$ref": "#/$defs/shopping_type"
        },
        "skadnetwork_metadata": {
          "$ref": "#/$defs/skadnetwork_metadata"
        }
      }
    },
    "components_schema_created_at": {
      "description": "When this entity was created ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_delivery_status": {
      "type": [
        "array",
        "null"
      ],
      "description": "The delivery statuses for this ad group.",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "components_schema_device_target": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "label_map": {
          "description": "The device models selected by label to target, organized by make.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "array"
          }
        },
        "max_version": {
          "description": "The maximum major OS version to target.",
          "type": [
            "string",
            "null"
          ]
        },
        "min_version": {
          "description": "The minimum major OS version to target. Must be at least `14` for iOS devices.",
          "type": [
            "string",
            "null"
          ]
        },
        "os": {
          "description": "The device OS to target.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "ANDROID",
            "IOS",
            null
          ]
        },
        "type": {
          "description": "The device type to target.",
          "type": "string",
          "enum": [
            "DESKTOP",
            "MOBILE"
          ]
        }
      }
    },
    "components_schema_modified_at": {
      "title": "Modified At",
      "description": "When this entity was last changed ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "components_schema_shopping_targeting": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "conversion_event_types": {
          "description": "[Conversion events](https://business.reddithelp.com/s/article/supported-conversion-events) to target. Used when `targeting_type` is `RETARGETING`.\n",
          "type": "array",
          "minItems": 0,
          "maxItems": 5,
          "items": {
            "$ref": "#/$defs/components_enums_conversion_event_type"
          }
        },
        "excluded_conversion_event_types": {
          "description": "Conversion events to exclude from targeting.",
          "type": [
            "array",
            "null"
          ],
          "minItems": 0,
          "maxItems": 5,
          "items": {
            "$ref": "#/$defs/components_enums_conversion_event_type"
          }
        },
        "lookback_window_days": {
          "description": "How far back (in days) to look for user actions to include for targeting.",
          "type": "integer"
        },
        "targeting_type": {
          "description": "The `CATALOG_SALES` ad's [audience type](https://business.reddithelp.com/s/article/dynamic-product-ads#2-create-your-ad-group).",
          "type": "string",
          "enum": [
            "PROSPECTING",
            "RETARGETING"
          ]
        }
      }
    },
    "components_schema_skadnetwork_metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "description": "Metadata of the SKAdNetwork source ID.",
      "properties": {
        "status": {
          "description": "The [SKAdNetwork source ID status](https://business.reddithelp.com/s/article/skadnetwork#skan-ids).",
          "type": "string",
          "enum": [
            "COOLDOWN",
            "DISABLED",
            "ENABLED"
          ]
        }
      }
    },
    "components_schema_targeting": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "carriers": {
          "description": "The [mobile carriers](https://ads-api.reddit.com/docs/v3/operations/List%20Carriers) to target.",
          "type": [
            "array",
            "null"
          ],
          "minItems": 0,
          "maxItems": 100,
          "items": {
            "type": "string",
            "enum": [
              "ATT_WIRELESS_US",
              "SPRINT_US",
              "TMOBILE_US",
              "VERIZON_US",
              "EE_UK",
              "VODAFONE_UK",
              "O2_UK",
              "THREE_UK",
              "SKY_MOBILE_UK",
              "BT_MOBILE_UK",
              "TALKTALK_UK",
              "VIRGIN_MEDIA_UK",
              "ROGERS_WIRELESS_CA",
              "BELL_MOBILITY_CA",
              "VIRGIN_MOBILE_CA",
              "BELL_MTS_CA",
              "TELUS_MOBILITY_CA",
              "SHAW_MOBILE_CA",
              "HI3G_ACCESS_AB_SE",
              "BOUYGUES_TELECOM",
              "FREE_MOBILE_SAS",
              "TELE2_SWEDEN",
              "SWISSCOM",
              "SOUTHERN_PHONE_COMPANY",
              "EXETEL",
              "TDC_DANMARK",
              "ODIDO_NETHERLANDS",
              "TELENOR_SVERIGE",
              "ICE_NORWAY",
              "OPTUS",
              "HI3G_ACCESS_AB_DK",
              "BELONG",
              "ORANGE_BELGIUM",
              "O2_DEUTSCHLAND",
              "BREDBAND2_AB",
              "SFR",
              "TELIA_NORGE_AS",
              "TELIA_FINLAND",
              "ELISA",
              "VODAFONE_AUSTRALIA",
              "ELISA_MOBILE",
              "TELENOR_AS",
              "PROXIMUS",
              "DNA_OYJ",
              "TELENOR_SVERIGE_AB",
              "EWETEL",
              "SPINTEL",
              "AUSSIE_BROADBAND",
              "ZIGGO",
              "VODAFONE_GERMANY",
              "IINET_LIMITED",
              "WILHELMTEL",
              "SUPERLOOP",
              "TELIA_SE",
              "TELSTRA_INTERNET",
              "ORANGE",
              "TELIA_DK",
              "TMOBILE_NETHERLANDS",
              "WIRELINE",
              "TPG_INTERNET",
              "SALT_MOBILE",
              "VOO",
              "TELIA_NORGE",
              "TELENOR_NORGE",
              "TELIA_MOBILE",
              "TELENET",
              "DEUTSCHE_TELEKOM_AG",
              "SUNRISE",
              "KPN",
              "BOOST_MOBILE",
              "COMCAST",
              "US_CELLULAR"
            ]
          }
        },
        "communities": {
          "description": "The [Reddit communities (\"subreddits\")](https://ads-api.reddit.com/docs/v3/operations/List%20Communities) to target.",
          "type": "array",
          "minItems": 0,
          "items": {
            "type": "string"
          }
        },
        "custom_audience_ids": {
          "description": "The [custom audiences](https://ads-api.reddit.com/docs/v3/operations/List%20User%20Custom%20Audiences) to target.",
          "type": "array",
          "minItems": 0,
          "items": {
            "type": "string"
          }
        },
        "devices": {
          "description": "The [devices](https://ads-api.reddit.com/docs/v3/operations/List%20Devices) to target. Exactly one device must be targeted for `APP_INSTALLS` campaigns.",
          "type": "array",
          "minItems": 0,
          "maxItems": 100,
          "items": {
            "$ref": "#/$defs/components_schema_device_target"
          }
        },
        "excluded_communities": {
          "description": "The communities (\"subreddits\") to exclude from targeting. Ads won't be eligible for auctions in these communities.",
          "type": "array",
          "minItems": 0,
          "items": {
            "type": "string"
          }
        },
        "excluded_custom_audience_ids": {
          "description": "The custom audiences to exclude from targeting.",
          "type": "array",
          "minItems": 0,
          "items": {
            "type": "string"
          }
        },
        "excluded_geolocations": {
          "description": "The geolocations to exclude from targeting.",
          "type": "array",
          "minItems": 0,
          "maxItems": 20000,
          "items": {
            "$ref": "#/$defs/id-4"
          }
        },
        "excluded_interests": {
          "description": "The interests to exclude from targeting.",
          "deprecated": true,
          "type": "array",
          "minItems": 0,
          "maxItems": 200,
          "items": {
            "type": "string"
          }
        },
        "excluded_keywords": {
          "description": "The keywords to exclude from targeting.",
          "type": "array",
          "minItems": 0,
          "maxItems": 2000,
          "items": {
            "type": "string"
          }
        },
        "expand_targeting": {
          "description": "Allow Reddit to expand your targeting options. Learn about [automated targeting](https://business.reddithelp.com/s/article/automated-targeting).",
          "type": [
            "boolean",
            "null"
          ]
        },
        "gender": {
          "description": "The gender group to target.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "FEMALE",
            "MALE",
            null
          ]
        },
        "geolocations": {
          "description": "The [geolocations](https://ads-api.reddit.com/docs/v3/operations/List%20Geolocations) to target.",
          "type": "array",
          "minItems": 0,
          "maxItems": 20000,
          "items": {
            "$ref": "#/$defs/id-4"
          }
        },
        "interests": {
          "description": "The [interests](https://ads-api.reddit.com/docs/v3/operations/List%20Interests) to target.",
          "type": "array",
          "minItems": 0,
          "maxItems": 200,
          "items": {
            "type": "string"
          }
        },
        "keywords": {
          "description": "The keywords to target.",
          "type": "array",
          "minItems": 0,
          "maxItems": 1000,
          "items": {
            "type": "string"
          }
        },
        "locations": {
          "description": "The client location to place the advertisement. For collections ads, only `FEED` is supported.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/components_enums_placements"
          }
        },
        "platforms": {
          "description": "The platforms to show the advertisement on. At least 1 mobile type must be targeted for `APP_INSTALLS` campaigns.",
          "type": "array",
          "minItems": 0,
          "maxItems": 7,
          "items": {
            "type": "string",
            "x-enumDescriptions": {
              "DESKTOP_LEGACY": "Legacy desktop; deprecated and no longer supported."
            },
            "enum": [
              "ALL",
              "DESKTOP",
              "DESKTOP_LEGACY",
              "MOBILE_NATIVE",
              "MOBILE_WEB",
              "MOBILE_WEB_3X",
              "SHREDTOP"
            ]
          }
        },
        "suppression_event_types": {
          "description": "The suppression event types.",
          "type": "array",
          "minItems": 0,
          "maxItems": 11,
          "items": {
            "type": "string",
            "const": "ALL_FEATURES"
          }
        },
        "view_modes": {
          "description": "The layouts the ad can be placed in.",
          "type": "array",
          "minItems": 0,
          "maxItems": 5,
          "items": {
            "type": "string",
            "enum": [
              "ALL",
              "CARD",
              "CLASSIC",
              "COMPACT",
              "IMMERSIVE"
            ]
          }
        },
        "languages": {
          "description": "The [languages](https://ads-api.reddit.com/docs/v3/operations/List%20Languages) to target ([ISO 639-1](https://www.loc.gov/standards/iso639-2/php/code_list.php)).",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/components_enum_targeting_language_codes"
          }
        }
      }
    },
    "components_schema_targeting_rmax": {
      "title": "Reddit Max Ad Group Targeting",
      "description": "Audience signals and controls for an automated Reddit Max ad group.\n\nAt least one of `communities`, `interests`, `keywords`, or\n`custom_audience_ids` must be a non-empty array. Reddit uses those values as\nseed signals for automated targeting. Geolocations and exclusion fields\nremain hard controls. The service enforces the cross-field seed requirement\nand returns a `400` response when it is not met.\n",
      "allOf": [
        {
          "$ref": "#/$defs/components_schema_targeting"
        },
        {
          "type": "object",
          "additionalProperties": true
        }
      ],
      "unevaluatedProperties": false
    },
    "components_schema_time_block": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "end_day": {
          "description": "Day of the week when this window ends (`0`–`6`; `0` = Sunday).",
          "type": "integer",
          "minimum": 0,
          "maximum": 6
        },
        "end_hour": {
          "description": "Hour on `end_day` when this window ends (`0`–`23`).",
          "type": "integer",
          "minimum": 0,
          "maximum": 23
        },
        "start_day": {
          "description": "Day of the week when this window starts (`0`–`6`; `0` = Sunday).",
          "type": "integer",
          "minimum": 0,
          "maximum": 6
        },
        "start_hour": {
          "description": "Hour on `start_day` when this window starts (`0`–`23`).",
          "type": "integer",
          "minimum": 0,
          "maximum": 23
        }
      }
    },
    "configured_status": {
      "description": "The ad group's status set by the ad account. Can differ from `effective_status` depending on context, such as pending billing information.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "ACTIVE",
        "ARCHIVED",
        "DELETED",
        "PAUSED",
        null
      ]
    },
    "conversion_pixel_id": {
      "description": "The ad group's Pixel ID.\n> **Important:** This field is required for all ad groups starting July 13th, 2026. Retrieve your Pixels with [`List Pixels by Ad Account`](https://ads-api.reddit.com/docs/v3/operations/List%20Pixels%20By%20Ad%20Account).\n",
      "type": [
        "string"
      ]
    },
    "effective_status": {
      "description": "The calculated status determining the real status of this entity.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "ACTIVE",
        "AD_GROUP_PAUSED",
        "ARCHIVED",
        "CAMPAIGN_PAUSED",
        "COMPLETED",
        "DELETED",
        "PAUSED",
        "PENDING_APPROVAL",
        "PENDING_BILLING_INFO",
        "PENDING_ID_VERIFICATION",
        "REJECTED",
        "INVALID_DATA_SOURCE",
        "MISSING_PERMISSIONS",
        "PROCESSING",
        null
      ]
    },
    "end_time": {
      "description": "When the ad group will stop delivering ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)). If `null`, the ad group will run continuously. For campaign budget optimization (CBO), this must match or be earlier than the campaign end time. Set this to `null` if the campaign end time is also `null`.",
      "type": [
        "string",
        "null"
      ]
    },
    "goal_type": {
      "description": "The ad group's goal type. For campaign budget optimization (CBO), this must match the campaign's goal type.",
      "x-enumDescriptions": {
        "null": "Inherit the campaign's setting."
      },
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "DAILY_SPEND",
        "LIFETIME_SPEND",
        null
      ]
    },
    "goal_value": {
      "description": "The value used to determine if the goal has been met. Measured in microcurrency for monetary goal types. Set to `null` for campaign budget optimization.\n> **Note:** This value is based on `goal_type`. Therefore, for `PERCENTAGE` goals, this value should be a value between 0 and 100. \n",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    },
    "id-2": {
      "description": "The ad account ID.",
      "type": "string",
      "pattern": "^(t2|a2)_.*",
      "readOnly": true
    },
    "id-3": {
      "description": "The ad group ID.",
      "type": "string",
      "readOnly": true
    },
    "id-4": {
      "description": "The geolocation ID.",
      "type": "string",
      "readOnly": true
    },
    "is_campaign_budget_optimization": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the ad group belongs to a CBO (campaign budget optimization) campaign. This cannot be modified with the API.",
      "readOnly": true
    },
    "name-2": {
      "$ref": "#/$defs/non_nullable",
      "description": "The name of the ad group."
    },
    "non_nullable": {
      "description": "The entity name.",
      "type": "string",
      "minLength": 3,
      "maxLength": 500
    },
    "optimization_goal": {
      "description": "The event you want to measure. Must match the campaign's optimization goal for CBO campaigns. Set to `NULL` for conversions or app installs objectives to default from the campaign. **This can't be changed later.** See the [goal options](https://ads-api.reddit.com/docs/v3/operations/Create%20Ad%20Group#optimization-goal-options).\n",
      "type": [
        "string",
        "null"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/components_enums_optimization_goal"
        }
      ]
    },
    "optimization_strategy_type": {
      "type": "string",
      "description": "The optimization strategy type.",
      "deprecated": true,
      "enum": [
        "DOWNSTREAM_CONVERSIONS",
        "APP_INSTALLS"
      ]
    },
    "product_set_id": {
      "description": "The ad group's product set. Required for all [`CATALOG_SALES` ads](https://business.reddithelp.com/s/article/catalogs). Used to select products for dynamic product ads, or link an ad group to a specific catalog for static ads.\n> **Tip:** Use [`List Product Catalogs`](https://ads-api.reddit.com/docs/v3/operations/List%20Product%20Catalogs) and then [`List Product Sets`](https://ads-api.reddit.com/docs/v3/operations/List%20Product%20Sets) to retrieve this value.\n",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "saved_audience_id": {
      "description": "The saved audience ID.",
      "type": [
        "string",
        "null"
      ]
    },
    "schedule": {
      "description": "The recurring weekly window(s) when an ad group may deliver. Day values are `0` (Sunday) through `6` (Saturday); hour values are `0`–`23` on a 24-hour clock (in the ad group's time zone).",
      "type": [
        "array",
        "null"
      ],
      "minItems": 0,
      "items": {
        "$ref": "#/$defs/components_schema_time_block"
      }
    },
    "shopping_targeting": {
      "anyOf": [
        {
          "$ref": "#/$defs/components_schema_shopping_targeting",
          "description": "A container for shopping ad tracking related fields. Only populated on ad groups for dynamic product ads."
        },
        {
          "type": "null"
        }
      ]
    },
    "shopping_type": {
      "description": "The type of ads an ad group should contain for shopping ads.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "DYNAMIC",
        "STATIC",
        null
      ]
    },
    "skadnetwork_metadata": {
      "$ref": "#/$defs/components_schema_skadnetwork_metadata",
      "description": "Metadata about the SKAdNetwork source ID associated with the ad group."
    },
    "start_time": {
      "description": "When the ad group will begin to deliver ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)). Required if `end_time` is set. If `null`, the ad group will run continuously starting today. For ad groups in a campaign with a start time in the future, this must match or be later than the campaign start time.",
      "type": [
        "string",
        "null"
      ]
    },
    "targeting": {
      "$ref": "#/$defs/components_schema_targeting",
      "description": "Targeting information for the ad group. When the ad group's `shopping_type` is `DYNAMIC`, `custom_audience_ids` and `excluded_custom_audience_ids` are not applied for ad delivery; if provided, they are ignored."
    },
    "type-2": {
      "description": "The ad group type. `AUTOMATED` identifies an ad group in a Reddit Max campaign. See the [Max campaign setup guide](/docs/v3/guides/programs/campaign/max-campaign-setup).\n",
      "type": "string",
      "enum": [
        "MANUAL",
        "AUTOMATED"
      ]
    }
  }
}