Ads Creative

Guides

Currently, the Ads API supports Promoted Video through the Tweet creation endpoint and through the Video App Download Card. Additional video support will continue to be added as it’s available. This document gives a brief overview of the process for uploading video and promoting it through the Ads API today.

For detailed guidance on video uploading through the API, please see the Video Upload Guide

API Reference Documents

Tweets

Retrieve card information about app download cards for a given account. This card is part of our Mobile App Promotion suite of endpoints.

Retrieve card information about a given app download card. This card is part of our Mobile App Promotion suite of endpoints.

Creates a new app download card associated to a given account. This card is part of our Mobile App Promotion suite of endpoints.

Updates an app download card associated to a given account.

Delete a given app download card. This card is part of our Mobile App Promotion suite of endpoints.

Retrieve card information about image app download cards for a given account. This card is part of our Mobile App Promotion suite of endpoints.

Retrieve card information about a given image app download card. This card is part of our Mobile App Promotion suite of endpoints.

Creates a new image app download card associated to a given account. This card is part of our Mobile App Promotion suite of endpoints.

Updates an image app download card associated to a given account.

Delete a given image app download card. This card is part of our Mobile App Promotion suite of endpoints.

Retrieve card information about given lead generation card.

Retrieve card information about a given lead generation card

Creates a new lead generation card associated to a given account.

Delete a given lead generation card

Updates a new website card associated to a given account.

Associate a Promoted Account to the specified line item.

If the specified line item is not configured to be associated with Promoted Accounts, a HTTP 400 INCOMPATIBLE_LINE_ITEM error will be returned. If the specified user is ineligible for promotion, a HTTP 400 will be returned and no users will be promoted. If the provided user is already promoted, the request will be ignored.

Retrieve references to the Promoted Tweets associated with one or more line items.

Use GET statuses/show/:id to obtain tweet data for the tweets identified by tweet_id in the response.

Note: An HTTP 400 will be returned if none of the specified line items are configured to contain Promoted Tweets.

Associate one or more Promoted Tweets to the specified line item.

Note that for PROMOTED_ACCOUNT campaigns, associating a Promoted Tweet to the line_item will add timeline placements on mobile in addition to the standard PROMOTED_ACCOUNT placement.

Also note that not all tweets are appropriate for tweet promotion, depending on the campaign objective. Please see Objective-based Campaigns for more information.

Disassociate a Promoted Tweet from a line item by specifying its instance id.

Other

Updates a lead generation card associated to a given account.

Retrieve card information about website cards for a given account.

Retrieve card information about a given website card.

Creates a new website card associated to a given account. Our advertiser help center has details on website card set- up in the ads.twitter.com UI.

See Uploading Media for useful information on uploading images to our endpoints.

Retrieve card information about all Video App Download Cards for the specified account. This card is part of our Mobile App Promotion suite of endpoints.

Related endpoints:

Retrieve card information about a given Video App Download Card. This card is part of our Mobile App Promotion suite of endpoints.

Related endpoints:

Creates a new Video App Download Card associated to the specified account. This card is part of our Mobile App Promotion suite of endpoints.

Related endpoints:

Updates a specific Video App Download Card associated to the account. This card is part of our Mobile App Promotion suite of endpoints.

Related endpoints:

Delete a given Video App Download Card. This card is part of our Mobile App Promotion suite of endpoints.

Related endpoints:

Retrieve references to the Promoted Accounts associated with one or more line items.

Use GET users/lookup to obtain user data for the user accounts identified by user_id in the response.

Note: An HTTP 400 will be returned if none of the specified line items are configured to contain Promoted Accounts.

Update the specified promoted tweet belonging to the current account.

Preview a Tweet that does not already exist as it would appear across a variety of different platforms; iPhone, Android and Web. You can preview a Tweet both for how it will look like on Twitter or on the Twitter Audience Platform (TAP).

The returned JSON response will contain the preview HTML; this is a fully functional HTML document that is ready to be used to render a preview Tweet in a browser. The relevant CSS and images will be served directly via Twitter.

Note that previews are approximate.

Preview an existing Tweet as it would appear across a variety of different platforms; iPhone, Android and Web. You can preview a Tweet both for how it will look like on Twitter or on the Twitter Audience Platform (TAP).

The returned JSON response will contain the preview HTML; this is a fully functional HTML document that is ready to be used to render a preview Tweet in a browser. The relevant CSS and images will be served directly via Twitter.

Note that previews are approximate.

Retrieve up to 200 of the most recent promotable Tweets created by one or more specified Twitter users. These users may be any account for which the current account has account access. This endpoint works for any user with access to an Ads Account, not only the Twitter @handle which authors the promotable Tweets.

Note: When filtering by objective, we will fetch the first set of promotable Tweets and then filter those appropriate for the objective. This results in inconsistent page sizes in the results. If you see a next_cursor returned, there are additional Tweets available for this filter.

Retrieve all video objects associated belonging to the current account.

Related video endpoints:

Retrieve a specific video object belonging to the current account.

Related video endpoints:

Create a video associated with the current account.

Related video endpoints:

Update the specified video object belonging to the current account.

Related video endpoints:

Delete the specified video belonging to the current ads account.

Related video endpoints: