

Adhere to the following constraints to improve success rates. The file size limit and other constraints may vary depending on the media_category parameter.Ī GIF may fail during Tweet creation even if it is within the file size limit. In addition, there is a separate product entity specific file size limit which is applied when calling the Tweet creation (or similar) endpoints with media_id. The file size limit above is enforced by the media upload endpoint. Image size Supported image media types: JPG, PNG, GIF, WEBP.

Image files must meet all of the following criteria: If you are an Ads API partner please refer to these docs for more information on recommended media category for promoted video. The most common media categories are as follows: If media category is not specified, the uploaded media is assumed to be a Tweet media (image, video, or GIF), depending on the content type. It is an optional value passed in the INIT request as part of the upload flow. It’s important to use the correct media category when uploading media to avoid problems when trying to use the media. The Media Category parameter defines the use case of the media file to be uploaded, and can affect file size limits or other constraints enforced for media uploads.

Also, take a look at the Twitter Libraries available, including the large-video-upload-python code sample.
WHAT VIDEO FORMAT IS BEST FOR 640 480 HOW TO
