through
Interface gets the active entity ID
https://ads-api.twitter.com/9/stats/accounts/:account_id/active_entities
params = {
“start_time”: time2utc(start_date, tz), # Example: 2017-05-19T07:00:00Z
“end_time”: time2utc(end_date, tz), # Example: 2017-05-19T07:00:00Z
“Entity”, “PROMOTED_TWEET”
}
Then get the corresponding AD data through the entity ID
https://ads-api.twitter.com/2/stats/jobs/accounts/{account_id}
with params:
{" platform ": None.
‘placement’ : ‘ALL_ON_TWITTER’,
“End_time” : “2021-03-23”,
‘metric_groups’ :’ ENGAGEMENT, BILLING, VIDEO, MEDIA, LIFE_TIME_VALUE_MOBILE_CONVERSION, WEB_CONVERSION ',
‘granularity’ : ‘TOTAL’, ‘entity_ids’ :’ {entity_id} ', ‘country’ : None,
“Start_time” : “2021-03-19”,
'segmentation_type: None,
“Entity” : "PROMOTED_TWEET ’
},
The data returned from this series of operations is empty, but the actual platform has the relevant installation data