How to add advertiser API code


#1

Can someone guide me on adding API code? I want to add the country Ghana since it’s not included in the list of available countries for ads. I typically get Ghanaur as the closest available option.


#2

Hey @DevtracoLimited

Can you provide additional details around what you mean by “available countries for ads”. Is this targeting related, or something else?


#3

I want to target “Ghana” in my ads. However I’m told, after adding the
country, that I don’t have that privilege. Kindly help out.


#4

Hey @DevtracoLimited

Can you please provide the exact request and response bodies of the API call?

Thanks!


#5

Unfortunately I’m not a technical person. I just want to know how I can
target audiences in Ghana, using the Twitter API if possible.


#6

Hey @DevtracoLimited

Unfortunately it looks like Ghana is an unsupported country for targeting. See:

twurl_ads -X GET "/2/targeting_criteria/locations?country_code=GHS" | jq .
{
  "data": [],
  "request": {
    "params": {
      "country_code": "GHS"
    }
  },
  "next_cursor": null
}

#7

Yes I realized that.
However I’ve notcied a few brands in Ghana are able to do sponsored ads
that target audiences in Ghana.
Isn’t there anyway you could help? I believe Ghana should be an option as
there’s a huge market for advertising expenditure.


#8

Hey @DevtracoLimited

It looks like I was mistaken. We do support targeting Ads in Ghana:

twurl_ads -X GET "/2/targeting_criteria/locations?country_code=GH" | jq .

{
  "data": [
    {
      "name": "Ghana",
      "country_code": "GH",
      "location_type": "COUNTRIES",
      "targeting_value": "c08f5915ceeeb806",
      "targeting_type": "LOCATION"
    }
  ],
  "request": {
    "params": {
      "country_code": "GH"
    }
  },
  "next_cursor": null
}

You should be able to use the API to create campaigns targeting this location.