twitter-python-ads-sdk icon indicating copy to clipboard operation
twitter-python-ads-sdk copied to clipboard

A Twitter supported and maintained Ads API SDK for Python.

Results 24 twitter-python-ads-sdk issues
Sort by recently updated
recently updated
newest added

## Description: When creating an instance of `Client` (found in `twitter_ads.client`) you can pass a dict with additional options, using the `options` parameter. One of this options is `handle_rate_limit`. When...

There is a issue in analytics.py. `Traceback (most recent call last): File ".\api.py", line 60, in async_data.append(LineItem.async_stats_job_data(account, url=result.url)) File "D:\Office\twitter ads\env\lib\site-packages\twitter_ads\analytics.py", line 115, in async_stats_job_data response = Request(account.client, 'get', resource.path,...

When fetching a WebsiteCard through the CardsFetch interface, I could not access `media_key` and `media_url`. This change fixes this.

Here is my code: for account, queued_jobs in self.accounts_to_queued_jobs.items(): for queued_job in queued_jobs: async_stats_job_result = self.entity_type.async_stats_job_result(account, queued_job.id) status = next(async_stats_job_result).status while status == 'PROCESSING': async_stats_job_result = self.entity_type.async_stats_job_result(account, queued_job.id) status =...

hi, I have noticed that PAY_BY has a new value “IMPRESSION” in[https://developer.twitter.com/en/docs/twitter-ads-api/campaign-management/api-reference/line-items](the api doc), would you like to add this value to sdk?

The example provided at [examples/active_entities.py](https://github.com/twitterdev/twitter-python-ads-sdk/blob/master/examples/active_entities.py) does not work as is. If I run it as is I am told by the inline documentation of the file that I am pulling...

LineItem objects loaded from my Account contain invalid values for the attributes: - `advertiser_user_id` - `bid_unit` - `charge_by` So if I load a LineItem and then immediately save it, I...

why promoted tweet does not include key such as card_id, card_uri?? I tried [this](https://github.com/twitterdev/twitter-python-ads-sdk/blob/ebb820255b27974cf2b5e69abc94115c86e16254/examples/cards_fetch.py) but it doens't work

File "E:\workspace\twitter_server\app\service\ad_promoted_tweets_service.py", line 32, in create_ad_promoted_tweet promoted_tweet.save() File "C:\Users\keame\Envs\twitter_server\lib\site-packages\twitter_ads\utils.py", line 97, in wrapper method = "{}.{}".format(str(args[0].__name__), str(decorated.__name__)) AttributeError: 'PromotedTweet' object has no attribute '__name__'

When running through an async request with the following script: ``` queued_job_ids = [] try: for chunk_ids in split_list(ids, 20): queued_job_ids.append(PromotedTweet.queue_async_stats_job(account, chunk_ids, metric_groups,placement = placement, granularity = granularity, start_time =...