Internal Server Error when getting reach_estimate



Hey team,

We’re trying to get a reach estimate but it always returns a 500 error.

{u'interests': u'5012,12002', 
u'product_type': u'PROMOTED_TWEETS', 
u'campaign_daily_budget_amount_local_micro': 1000000, 
u'locations': u'2509b9adc1fedfd2', 
u'currency': u'usd', 
u'objective': u'WEBSITE_CLICKS'

What’s going on here? Is there any way we can retrieve some more debug information from the server?
We’re using the /1/accounts/{ad_account}/reach_estimate endpoint.


Thanks for the question, @briandotjp. Could you please provide the full response, including the response headers? Use the -t flag when making a request via twurl.


@briandotjp: We’d like to help, but need some additional information first. Could you please provide an example request as well as the full response? Thanks.


Hi Juan,

Sorry for the late reply. We’ve forgone the ability to retrieve reach estimates in our client.
We currently do not have the time to continue experimenting with Reach Estimates, and can not provide you with an example.





We are starting to experience an intermittent 500 internal server error when we call reach_estimate api as stated above.


We are hitting the api with following information:

  1. tailored audience id: 1aa19
  2. location id: 96683cc9126741d1

Is it possible to retrieve more information (reasons) when it hit above response.


Hi Juan, I would like to know if twitter have any feedback on the issue raised by Brian above ?


@amri_hidayat: Not sure what the ask is. Brian said:

We’ve forgone the ability to retrieve reach estimates in our client.


Note that the currency must be capitalized—USD, not usd.


We have resolved this issue. When using an invalid currency (e.g., if it’s not an ISO 4217 value, which requires the letters to be capitalized), you will see the following error.

  "errors": [
      "code": "INVALID_PARAMETER",
      "message": "Expected known currency, got \"usd\" for currency",
      "parameter": "currency"
  "request": {
    "params": {}