Hi, @ossei2. Thanks for the question.
Could you please provide a reference to the listed countries you mentioned?
Are you trying to add targeting criteria to an existing line item? If so, you can get the targeting value for Ghana with the following request:
$ twurl -H ads-api.twitter.com "/1/targeting_criteria/locations?q=ghana" | jq
{
"data_type": "targeting_criterion",
"data": [
{
"name": "Ghana",
"country_code": "GH",
"location_type": "COUNTRY",
"targeting_value": "c08f5915ceeeb806",
"targeting_type": "LOCATION"
},
{
"name": "Ghanaur, Punjab, India",
"country_code": "IN",
"location_type": "CITY",
"targeting_value": "67cb43e4a42c3f5a",
"targeting_type": "LOCATION"
}
],
"request": {
"params": {
"q": "ghana"
}
},
"next_cursor": null
}
To add this targeting to an existing line item, use the following:
$ twurl -X POST -H ads-api.twitter.com "/1/accounts/xxxxx/targeting_criteria?line_item_id=aaaa&targeting_type=LOCATION&targeting_value=c08f5915ceeeb806" | jq .
Please let us know if this answers your question. Thanks!