I’m in the process of updating my company’s calls to the Twitter Ads API from version 3 to version 4.
As part of this, I’m updating our integration tests to validate the endpoints process requests correctly, and have determined that I’m getting rate limited on every request with my account.
My request looks like:
POST to https://ads-api.twitter.com/3/tailored_audience_memberships
Source JSON:
[{
“operation_type”: “Update”,
“params”: {
“advertiser_account_id”: “:accountId”,
“membership_type”: “LIST_MEMBERSHIP”,
“user_identifier”: “f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a”,
“user_identifier_type”: “EMAIL”,
“score”: 100,
“audience_names”: “:audienceName”,
“effective_at”: “2018-12-05T21:05:21Z”
}
}, {
“operation_type”: “Update”,
“params”: {
“advertiser_account_id”: “:accountId”,
“membership_type”: “LIST_MEMBERSHIP”,
“user_identifier”: “31611159e7e6ff7843ea4627745e89225fc866621cfcfdbd40871af4413747cc”,
“user_identifier_type”: “HANDLE”,
“score”: 100,
“audience_names”: “:audienceName”,
“effective_at”: “2018-12-05T21:05:21Z”
}
}, {
“operation_type”: “Update”,
“params”: {
“advertiser_account_id”: “:accountId”,
“membership_type”: “LIST_MEMBERSHIP”,
“user_identifier”: “bbaf670d8020f6e111d507df3e8a6a847a54bf3308ce4a8c7542771d2b23b094”,
“user_identifier_type”: “DEVICE_ID”,
“score”: 100,
“audience_names”: “:audienceName”,
“effective_at”: “2018-12-05T21:05:21Z”
}
}]
With the values of :accountId and :audienceName matching the actual request.
Response:
{“request”:{“params”:{“version_number”:“3”}},“errors”:[{“code”:“TOO_MANY_REQUESTS”,“message”:“Too many requests”}]}
Status code: 429
From response headers, I have:
[x-rate-limit-limit, 0]
[x-rate-limit-remaining, 0]
It appears I am limited to sending 0 requests.
Can I get this updated?