It is no longer possible to create targeting criteria using the less accurate age buckets. Trying to do so will result in the following error:
$ twurl -X POST -H ads-api.twitter.com "/1/accounts/18ce54d4x5t/targeting_criteria?line_item_id=6ynlo&targeting_type=AGE&targeting_value=AGE_13_TO_17" | jq
{
"errors": [
{
"code": "INVALID_PARAMETER",
"message": "Expected a value in AGE_13_TO_24, AGE_13_TO_34, AGE_13_TO_49, AGE_13_TO_54, AGE_18_TO_34, AGE_18_TO_49, AGE_18_TO_54, AGE_21_TO_34, AGE_21_TO_49, AGE_21_TO_54, AGE_25_TO_49, AGE_25_TO_54, AGE_35_TO_49, AGE_35_TO_54, AGE_OVER_13, AGE_OVER_18, AGE_OVER_21, AGE_OVER_25, AGE_OVER_35, AGE_OVER_50, got \"AGE_13_TO_17\" for targeting_value",
"parameter": "targeting_value"
}
],
"request": {
"params": {
"line_item_id": "6ynlo",
"targeting_type": "AGE",
"account_id": "18ce54d4x5t"
}
}
}