Getting Started¶
The Twitter Ads API provides a programmatic way to interact with the Twitter Ads platform in order to promote Tweets or Twitter accounts, schedule campaigns, retrieve analytics, manage audiences, and more.
In order to get started, you’ll need a Twitter application access to the Ads API. If you don’t already have access to the Ads API, head over to our landing page and read all about how you can get access.
Be sure to have the following keys for your Twitter application. You can find these keys as well as more information about them at apps.twitter.com/:
- consumer key
- consumer secret
- access token
- access secret
Python and the Twitter Ads Python SDK will be used throughout the tutorial series, so please ensure that Python is installed on your system. If you are an OS X or Unix user, Python should be pre-installed. If you are a Windows user, head to python.org and download Python for Windows; feel free to either download Python 2 or 3, our Python SDK supports both.
The latest signed release of the Python SDK can be installed simply doing pip install twitter-ads. Pip comes bundled with the python installation for Windows, and can be installed in OS X or Unix by running sudo easy_install pip.