{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-forecasting-estimates-ad-group-goal-value-schema.json",
  "title": "With Ad Group Goal Values",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-forecasting-api-openapi.yml#/components/schemas/components_schema_forecasting_estimates_ad_group_goal_value",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "objective",
    "ad_group_configs"
  ],
  "properties": {
    "objective": {
      "$ref": "#/$defs/objective"
    },
    "use_catalog": {
      "$ref": "#/$defs/use_catalog"
    },
    "ad_group_configs": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "goal_value"
        ],
        "properties": {
          "start_time": {
            "$ref": "#/$defs/start_time-4"
          },
          "end_time": {
            "$ref": "#/$defs/end_time-4"
          },
          "shopping_targeting": {
            "$ref": "#/$defs/shopping_targeting-2"
          },
          "shopping_type": {
            "$ref": "#/$defs/shopping_type-2"
          },
          "bid_value": {
            "$ref": "#/$defs/bid_value-2"
          },
          "goal_value": {
            "$ref": "#/$defs/goal_value-2"
          },
          "goal_type": {
            "$ref": "#/$defs/goal_type-2"
          },
          "bid_type": {
            "$ref": "#/$defs/bid_type-2"
          },
          "bid_strategy": {
            "$ref": "#/$defs/bid_strategy-2"
          },
          "optimization_goal": {
            "$ref": "#/$defs/optimization_goal-2"
          },
          "targeting": {
            "$ref": "#/$defs/components_schema_forecasting_targeting"
          },
          "view_through_conversion_type": {
            "$ref": "#/$defs/view_through_conversion_type"
          }
        }
      }
    }
  },
  "$defs": {
    "age": {
      "description": "The age targeting settings for the ad group.",
      "type": "object",
      "properties": {
        "min_age": {
          "type": "integer",
          "description": "The minimum age to target (inclusive)."
        },
        "max_age": {
          "type": "integer",
          "description": "The maximum age to target (inclusive)."
        }
      },
      "additionalProperties": false
    },
    "bid_strategy-2": {
      "description": "The ad group's bid strategy.",
      "type": [
        "string"
      ],
      "enum": [
        "BIDLESS",
        "MANUAL_BIDDING",
        "MAXIMIZE_VOLUME",
        "TARGET_CPX"
      ]
    },
    "bid_type-2": {
      "description": "The ad group's [bidding strategy](https://business.reddithelp.com/s/article/How-much-do-Reddit-Ads-cost#bidding-strategies).",
      "type": [
        "string"
      ],
      "enum": [
        "CPC",
        "CPM",
        "CPV",
        "CPV6",
        "CPV15"
      ]
    },
    "bid_value-2": {
      "description": "The amount to pay per bidding event (microcurrency).",
      "minimum": 0,
      "type": [
        "integer"
      ]
    },
    "carriers": {
      "description": "The [mobile carriers](https://ads-api.reddit.com/docs/v3/api/list-carriers) to target.",
      "type": [
        "array"
      ],
      "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/api/list-communities) to target.",
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string"
      }
    },
    "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_non_null": {
      "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_COMPLETED_TUTORIAL",
        "MOBILE_CONVERSION_LEVEL_ACHIEVED",
        "MOBILE_CONVERSION_SPEND_CREDITS",
        "MOBILE_CONVERSION_REINSTALL",
        "MOBILE_CONVERSION_UNLOCK_ACHIEVEMENT",
        "MOBILE_CONVERSION_START_TRIAL",
        "MOBILE_CONVERSION_SUBSCRIBE",
        "MOBILE_CONVERSION_ONBOARD_STARTED",
        "MOBILE_CONVERSION_FIRST_TIME_PURCHASE",
        "LANDING_PAGE_VISIT",
        "VIDEO_VIEW_6S",
        "VIDEO_VIEW_15S"
      ]
    },
    "components_enums_placements": {
      "description": "Enum representing the placement of a creative.",
      "type": "string",
      "enum": [
        "FEED",
        "COMMENTS_PAGE"
      ]
    },
    "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_forecasting_targeting": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "carriers": {
          "$ref": "#/$defs/carriers"
        },
        "communities": {
          "$ref": "#/$defs/communities"
        },
        "custom_audience_ids": {
          "$ref": "#/$defs/custom_audience_ids"
        },
        "devices": {
          "$ref": "#/$defs/devices"
        },
        "excluded_communities": {
          "$ref": "#/$defs/excluded_communities-2"
        },
        "excluded_custom_audience_ids": {
          "$ref": "#/$defs/excluded_custom_audience_ids"
        },
        "excluded_geolocations": {
          "$ref": "#/$defs/excluded_geolocations"
        },
        "expand_targeting": {
          "$ref": "#/$defs/expand_targeting"
        },
        "gender": {
          "$ref": "#/$defs/gender"
        },
        "geolocations": {
          "$ref": "#/$defs/geolocations"
        },
        "interests": {
          "$ref": "#/$defs/interests"
        },
        "keywords": {
          "$ref": "#/$defs/keywords"
        },
        "locations": {
          "$ref": "#/$defs/locations"
        },
        "platforms": {
          "$ref": "#/$defs/platforms"
        },
        "age": {
          "$ref": "#/$defs/age"
        },
        "languages": {
          "$ref": "#/$defs/languages"
        }
      }
    },
    "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"
          ]
        }
      }
    },
    "custom_audience_ids": {
      "description": "The [custom audiences](https://ads-api.reddit.com/docs/v3/api/list-user-custom-audiences) to target.",
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string"
      }
    },
    "devices": {
      "description": "The [devices](https://ads-api.reddit.com/docs/v3/api/list-devices) 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"
      }
    },
    "end_time-2": {
      "description": "When the ad group will stop delivering ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)).",
      "type": [
        "string"
      ]
    },
    "end_time-4": {
      "description": "When the ad group will stop delivering ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)). If unspecified, will default to 30 days from `start_time`. Must be after `start_time`, and the range between `start_time` and `end_time` cannot exceed 365 days.",
      "$ref": "#/$defs/end_time-2"
    },
    "excluded_communities-2": {
      "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"
      }
    },
    "expand_targeting": {
      "description": "Allow Reddit to expand your targeting options. Learn about [automated targeting](https://business.reddithelp.com/s/article/automated-targeting).",
      "type": [
        "boolean"
      ]
    },
    "gender": {
      "description": "The [gender group](https://business.reddithelp.com/s/article/demographics#gender-targeting) to target.",
      "type": [
        "string"
      ],
      "enum": [
        "FEMALE",
        "MALE"
      ]
    },
    "geolocations": {
      "description": "The [geolocations](https://ads-api.reddit.com/docs/v3/api/list-geolocations) to target.",
      "type": "array",
      "minItems": 0,
      "maxItems": 20000,
      "items": {
        "$ref": "#/$defs/id-4"
      }
    },
    "goal_type-2": {
      "description": "The ad group's goal type.",
      "type": [
        "string"
      ],
      "enum": [
        "DAILY_SPEND",
        "LIFETIME_SPEND"
      ]
    },
    "goal_value-2": {
      "description": "The value used to determine if the goal has been met. Measured in microcurrency for monetary goal types. For `PERCENTAGE` goals, this value must be between 0 and 100.",
      "minimum": 0,
      "type": [
        "integer"
      ]
    },
    "id-4": {
      "description": "The geolocation ID.",
      "type": "string",
      "readOnly": true
    },
    "interests": {
      "description": "The [interests](https://ads-api.reddit.com/docs/v3/api/list-interests) to target.",
      "type": "array",
      "minItems": 0,
      "maxItems": 200,
      "items": {
        "type": "string"
      }
    },
    "keywords": {
      "description": "A list of [keywords](https://ads-api.reddit.com/docs/v3/operations/Do%20Keyword%20Validations) to target.",
      "type": [
        "array"
      ],
      "minItems": 0,
      "maxItems": 1000,
      "items": {
        "type": "string"
      }
    },
    "languages": {
      "description": "The [languages](https://ads-api.reddit.com/docs/v3/api/list-languages) to target ([ISO 639-1](https://www.loc.gov/standards/iso639-2/php/code_list.php)).",
      "type": [
        "array"
      ],
      "items": {
        "$ref": "#/$defs/components_enum_targeting_language_codes"
      },
      "uniqueItems": true
    },
    "locations": {
      "description": "The client location to place the advertisement. For collections ads, only `FEED` is supported.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/components_enums_placements"
      }
    },
    "objective": {
      "type": "string",
      "description": "The [campaign objective](https://business.reddithelp.com/s/article/Ad-campaign-objectives).",
      "enum": [
        "APP_INSTALLS",
        "BRAND_AWARENESS",
        "CATALOG_SALES",
        "CLICKS",
        "CONVERSIONS",
        "IMPRESSIONS",
        "LEAD_GENERATION",
        "SALES",
        "VIDEO_VIEWABLE_IMPRESSIONS"
      ]
    },
    "optimization_goal-2": {
      "description": "The event to optimize for. This must be compatible with the campaign objective. See the [goal options](/docs/v3/api/create-ad-group#optimization-goal-options).\n> **Important:** This can't be changed later.\n",
      "type": [
        "string"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/components_enums_optimization_goal_non_null"
        }
      ]
    },
    "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"
        ]
      }
    },
    "shopping_targeting-2": {
      "anyOf": [
        {
          "$ref": "#/$defs/components_schema_shopping_targeting",
          "description": "Targeting for dynamic product ads."
        }
      ]
    },
    "shopping_type-2": {
      "description": "Indicates the catalog sale ad group's type.",
      "x-enumDescriptions": {
        "DYNAMIC": "**[Dynamic product ads](https://business.reddithelp.com/s/article/dynamic-product-ads):** Allows either the prospecting or retargeting targeting method.",
        "STATIC": "**[Product ads](https://business.reddithelp.com/s/article/Product-Ads):** Ads appear regardless of whether the user has bought a product or interacted with your site."
      },
      "type": [
        "string"
      ],
      "enum": [
        "DYNAMIC",
        "STATIC"
      ]
    },
    "start_time-2": {
      "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. 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"
      ]
    },
    "start_time-4": {
      "description": "When the ad group will begin to deliver ([ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)). If unspecified, will default to current time. Required if `end_time` is set.",
      "$ref": "#/$defs/start_time-2"
    },
    "use_catalog": {
      "description": "Whether the campaign uses a product catalog. It can be `true` only when `objective` is `SALES`. Omitted when unset. When `true`, all ad groups in the campaign must use a catalog.\n",
      "type": "boolean"
    },
    "view_through_conversion_type": {
      "description": "The conversion attribution window. This determines how conversions are counted after a user interacts with an ad.",
      "x-enumDescriptions": {
        "SEVEN_DAY_CLICKS_ONE_DAY_VIEW": "Required for `CATALOG_SALES` campaigns with the `PURCHASE` optimization goal."
      },
      "default": "SEVEN_DAY_CLICKS_ONE_DAY_VIEW",
      "type": [
        "string"
      ],
      "enum": [
        "SEVEN_DAY_CLICKS",
        "SEVEN_DAY_CLICKS_ONE_DAY_VIEW"
      ]
    }
  }
}