Thanks for your response. twurl is Ruby-based, correct? I don’t have Ruby nor the expertise to use it. But here is a sample request and resulting data as generated by Python (note that this did not take an extraordinary long time to run - as I mentioned, the performance degradation is not consistent - for the same request, it may come back right away, or take several minutes. Not sure if the time of day then the request is made matters? It seems to be a bit faster in the afternoon as compare to the morning.
{u’request’: {u’params’: {u’placement’: u’ALL_ON_TWITTER’, u’metric_groups’: [u’ENGAGEMENT’, u’BILLING’, u’VIDEO’], u’country’: None, u’start_time’: u’2016-09-02T23:00:00Z’, u’entity’: u’PROMOTED_TWEET’, u’platform’: None, u’end_time’: u’2016-09-03T03:00:00Z’, u’granularity’: u’HOUR’, u’entity_ids’: [u’ypf4s’], u’segmentation_type’: None}}, u’time_series_length’: 4, u’data’: [{u’id’: u’ypf4s’, u’id_data’: [{u’metrics’: {u’video_views_100’: None, u’video_3s100pct_views’: None, u’likes’: [2, 8, 5, 1], u’replies’: None, u’tweets_send’: None, u’impressions’: [5090, 10444, 9815, 5256], u’url_clicks’: [4, 11, 6, 7], u’retweets’: [2, 0, 1, 0], u’video_total_views’: None, u’clicks’: [28, 47, 53, 25], u’video_cta_clicks’: None, u’video_views_50’: None, u’video_views_75’: None, u’card_engagements’: None, u’billed_engagements’: [4, 11, 6, 7], u’qualified_impressions’: None, u’engagements’: [43, 64, 66, 39], u’billed_charge_local_micro’: [11210000, 39530000, 30220000, 31560000], u’carousel_swipes’: None, u’video_mrc_views’: None, u’follows’: [1, 0, 0, 0], u’app_clicks’: None, u’video_content_starts’: None, u’video_views_25’: None}, u’segment’: None}]}], u’data_type’: u’stats’}
Here is the final job result:
{u’status’: u’SUCCESS’, u’created_at’: u’2016-10-03T19:00:55Z’, u’placement’: u’ALL_ON_TWITTER’, u’account_id’: u’18ce53uwc4a’, u’metric_groups’: [u’ENGAGEMENT’, u’BILLING’, u’VIDEO’], u’url’: u’https://ton.twimg.com/advertiser-api-async-analytics/zuFO3BpuagtOChT7EpjJTCdJps_rqTXPu0xAGSVdElNggKt8vt0MgU6Ex1fEw9NZvbyzBFq_oO9GVbJT6Zow6LVux_e6YTgb1Uor-edHXnVqrVt2Ade2xZ0zFTSP_xMC.json.gz’, u’country’: None, u’start_time’: u’2016-09-02T23:00:00Z’, u’expires_at’: u’2016-10-05T19:01:11Z’, u’entity’: u’PROMOTED_TWEET’, u’platform’: None, u’id_str’: u’783019014318587904’, u’granularity’: u’HOUR’, u’entity_ids’: [u’ypf4s’], u’segmentation_type’: None, u’id’: 783019014318587904L, u’end_time’: u’2016-09-03T03:00:00Z’}
Steve