Using the twitter-ads ruby gem. Is it possible to get the header from a given request to determine the rate-limit? Building a product for an advertiser that spends a large amount on Twitter and we continually hit the limit without a limiter.
When using ruby SDK we expect you to be able to use the error handling from error.rb (e.g. https://github.com/twitterdev/twitter-ruby-ads-sdk/blob/master/lib/twitter-ads/error.rb) to inspect the headers returned there, and retry. That file also has an example of how to expose things through attr_reader if another part of SDK is missing data.
I looked and I see we don’t have example of using this but I would expect you to be able to write something like:
rescue TwitterAds::RateLimit => e
If any partner reading this has a good example of handling this it would be very helpful