xdevplatform / twitter-python-ads-sdk

A Twitter supported and maintained Ads API SDK for Python.
https://twitterdev.github.io/twitter-python-ads-sdk/
MIT License
189 stars 106 forks source link

Support for new cards endpoint #275

Closed juanshishido closed 3 years ago

juanshishido commented 3 years ago

Adding support for the new Cards endpoints, announced here.

Usage example (create):

>>> name = "example"
>>> components = [{"type":"MEDIA","media_key":"13_1191948012077092867"},{"type":"DETAILS","title":"Twitter Web","destination":{"type":"WEBSITE", "url":"http://twitter.com/"}}]
>>> Card.create(account, name=name, components=components)