twitter-ads
A Twitter supported and maintained Ads API SDK for Python.
Decision gist · record as of 2026-08-14
No, unless you are maintaining legacy code that already depends on it. The package is abandoned with no updates since 2022, and the Twitter Ads API has likely evolved since then. For new projects, contact Twitter directly or use a maintained third-party SDK. If you must use it, verify that the current API endpoints and authentication methods still match the SDK's implementation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires valid Twitter Ads API credentials (consumer key/secret and access token/secret) and an active Twitter Ads account.
- Low install friction with a pure-Python wheel distribution.
- However, the package is abandoned—last release was 2022-05-27 with no commits since then.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes minimal restrictions. You may use, modify, and distribute the package freely as long as you include the original license notice.
last release 2022-05-27 (1540 days) · last repo commit 2022-05-27 · 201 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 109,677 downloads/mo, #12,503 on PyPI
Alternatives
Verify before relying
pip install twitter-ads
from twitter_ads.client import Client
from twitter_ads.campaign import Campaign
client = Client(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
account = client.accounts(ACCOUNT_ID)
for campaign in account.campaigns():
print(campaign.id)- Whether the package remains compatible with current Twitter Ads API endpoints and authentication flows.
- Whether dependencies (pyyaml, requests-oauthlib, python-dateutil) have received security updates since the last release.
- Support status for Python versions beyond 3.7 (e.g., 3.8, 3.9, 3.10+).
What it is and what it does
twitter-ads is an official Python SDK for the Twitter Ads API that provides a client-based interface to manage advertising accounts, campaigns, and related resources. It wraps OAuth-authenticated HTTP requests to Twitter's Ads endpoints and models API responses as Python objects, allowing you to create, read, update, and iterate over campaigns and account data programmatically.
The package depends on pyyaml, requests-oauthlib, and python-dateutil to handle configuration, OAuth flows, and date parsing. It includes built-in support for rate-limit handling, request retries, and timeout configuration. However, the project has been abandoned since May 2022—the last commit was over three years ago, and no maintenance or updates are being applied. This means API changes, security issues in dependencies, and compatibility problems with newer Python versions will not be addressed.
Use it for
- Automate bulk campaign updates across multiple Twitter Ads accounts without manual dashboard interaction.
- Build reporting tools that fetch campaign performance metrics and account data programmatically.
- Manage campaign lifecycle (create, pause, resume, delete) as part of a larger advertising workflow.
- Integrate Twitter advertising operations into a custom business intelligence or media buying platform.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are maintaining legacy code that already depends on it.
The package is abandoned with no updates since 2022, and the Twitter Ads API has likely evolved since then. For new projects, contact Twitter directly or use a maintained third-party SDK. If you must use it, verify that the current API endpoints and authentication methods still match the SDK's implementation.
Install
twitter-ads on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. However, the package is abandoned—last release was 2022-05-27 with no commits since then. No active maintenance means bug fixes and API updates are unlikely.
Requires valid Twitter Ads API credentials (consumer key/secret and access token/secret) and an active Twitter Ads account.
License in practice
MIT license is permissive and imposes minimal restrictions. You may use, modify, and distribute the package freely as long as you include the original license notice.
Quickstart
pip install twitter-ads
from twitter_ads.client import Client
from twitter_ads.campaign import Campaign
client = Client(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
account = client.accounts(ACCOUNT_ID)
for campaign in account.campaigns():
print(campaign.id)
Verify before relying
- Whether the package remains compatible with current Twitter Ads API endpoints and authentication flows.
- Whether dependencies (pyyaml, requests-oauthlib, python-dateutil) have received security updates since the last release.
- Support status for Python versions beyond 3.7 (e.g., 3.8, 3.9, 3.10+).
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespyyamlrequests-oauthlibpython-dateutil |
| Maintenance | Abandoned 1,540 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 109,677 / month, #12,503 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: InternetTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules |
Evidence: twitter_ads-11.0.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “twitter ads api sdk”
- twitter-adsA Python SDK for managing Twitter Ads campaigns, accounts, and…
- bingadsBing Ads Python SDK provides proxy classes and authentication…
- pinterest-api-sdkPython client library for the Pinterest API that handles campaign…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also bingads · python-twitter · pinterest-api-sdk · facebook-business · google-ads · tiktok-business-api-sdk-official · advertools · apache-airflow-providers-facebook · Pinterest-Generated-Client · WooCommerce