$npx skillfedfor your agent

twitter-ads

A Twitter supported and maintained Ads API SDK for Python.

SkipPyPI Python ModulesReleased May 2022109.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — twitter_ads-11.0.0-py2.py3-none-any.whl
v11.0.0 · released 2022-05-27 · 3 runtime deps: pyyaml, requests-oauthlib, python-dateutil

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

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+).
Same gist for agents: .md · .json

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.

Skip

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

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
pyyamlrequests-oauthlibpython-dateutil
MaintenanceAbandoned 1,540 days since the last release
Last repo commit
First released
Downloads109,677 / month, #12,503 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
twitter ads api sdkmanage twitter advertising campaignstwitter ads account managementtwitter ads python clienttwitter advertiser apitwitter ads automationtwitter campaign management
Topics
twitter-apiabandoned-project

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

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