@jrsyo
失礼致しました
以下にテキストを共有致します
以上、よろしくお願い致します
$ twurl -H ads-api.twitter.com -X POST "/5/stats/jobs/accounts/18ce54dw9ll?entity=PROMOTED_TWEET&entity_ids="3iurey"&start_time=2019-07-10&end_time=2019-07-16&granularity=DAY&metric_groups=WEB_CONVERSION&placement=ALL_ON_TWITTER&segmentation_type=PLATFORMS" | jq
{
"request": {
"params": {
"start_time": "2019-07-09T15:00:00Z",
"segmentation_type": "PLATFORMS",
"entity_ids": [
"3iurey"
],
"end_time": "2019-07-15T15:00:00Z",
"placement": "ALL_ON_TWITTER",
"granularity": "DAY",
"entity": "PROMOTED_TWEET",
"metric_groups": [
"WEB_CONVERSION"
]
}
},
"data": {
"start_time": "2019-07-09T15:00:00Z",
"segmentation_type": "PLATFORMS",
"url": null,
"id_str": "1181403381908172800",
"entity_ids": [
"3iurey"
],
"end_time": "2019-07-15T15:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"id": 1181403381908172800,
"expires_at": null,
"account_id": "18ce54dw9ll",
"status": "PROCESSING",
"granularity": "DAY",
"entity": "PROMOTED_TWEET",
"created_at": "2019-10-08T02:58:10Z",
"platform": null,
"updated_at": "2019-10-08T02:58:10Z",
"metric_groups": [
"WEB_CONVERSION"
]
}
}
$ twurl -H ads-api.twitter.com -X GET "/5/stats/jobs/accounts/18ce54dw9ll?job_ids=1181403381908172800" | jq
{
"request": {
"params": {
"job_ids": [
1181403381908172800
],
"account_id": "18ce54dw9ll"
}
},
"next_cursor": null,
"data": [
{
"start_time": "2019-07-09T15:00:00Z",
"segmentation_type": "PLATFORMS",
"url": "https://ton.twimg.com/advertiser-api-async-analytics/4VEuKiffT_J3mX_q-jU1X-9aRLxoA19Dt6_ToKIIkvidODPoh6cs-a8d7oimvqTpOYbqEc_3lvxw6wYsGSQphVvDk6yPnX7dgo9G682HJ0BAmjZQeug7tU7Mtd300wQg.json.gz",
"id_str": "1181403381908172800",
"entity_ids": [
"3iurey"
],
"end_time": "2019-07-15T15:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"id": 1181403381908172800,
"expires_at": "2019-10-10T02:58:12Z",
"account_id": "18ce54dw9ll",
"status": "SUCCESS",
"granularity": "DAY",
"entity": "PROMOTED_TWEET",
"created_at": "2019-10-08T02:58:10Z",
"platform": null,
"updated_at": "2019-10-08T02:58:12Z",
"metric_groups": [
"WEB_CONVERSION"
]
}
]
}
$ echo '{"data_type":"stats","time_series_length":6,"data":[{"id":"3iurey","id_data":[]}],"request":{"params":{"start_time":"2019-07-09T15:00:00Z","segmentation_type":"PLATFORMS","entity_ids":["3iurey"],"end_time":"2019-07-15T15:00:00Z","country":null,"placement":"ALL_ON_TWITTER","granularity":"DAY","entity":"PROMOTED_TWEET","platform":null,"metric_groups":["WEB_CONVERSION"]}}}' | jq
{
"data_type": "stats",
"time_series_length": 6,
"data": [
{
"id": "3iurey",
"id_data": []
}
],
"request": {
"params": {
"start_time": "2019-07-09T15:00:00Z",
"segmentation_type": "PLATFORMS",
"entity_ids": [
"3iurey"
],
"end_time": "2019-07-15T15:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "DAY",
"entity": "PROMOTED_TWEET",
"platform": null,
"metric_groups": [
"WEB_CONVERSION"
]
}
}
}