Using the twitter-python-ads-sdk, could somebody please explain to me how I can retrieve the dates associated with the metrics returned by the following?
from twitter_ads.creative import PromotedTweet
from twitter_ads.enum import METRIC_GROUP
from twitter_ads.client import Client
client = Client(...)
account = client.accounts('18ce54o6agw')
ids = ['29we9b']
metric_groups = [METRIC_GROUP.ENGAGEMENT]
PromotedTweet.all_stats(account, ids, metric_groups)
This returns a list of metrics, but how can I tell which day/timeframe they’re associated with?
[{'id': '29we9b',
'id_data': [{'segment': None,
'metrics': {'impressions': [7,
14,
10,
8,
6,
7,
5],
...
'card_engagements': None,
'poll_card_vote': None,
'replies': None,
'url_clicks': None,
'carousel_swipes': None}}]}]
What I’m looking to do is get promoted tweet engagement and billing data by day.