Get stats job count=1 returning different jobid in response compare to request


#1

I create two job and get 743564624323284994 and 743564822390923266.

Then I try to retrieve the job

twurl -H ads-api.twitter.com "/1/stats/jobs/accounts/18ce53ymmtp?job_id=743564624323284994&count=1"

twurl -H ads-api.twitter.com "/1/stats/jobs/accounts/18ce53ymmtp?job_id=743564822390923266&count=1"

But when I check the output, both is giving same result for those 2 separate command… should this return two different result for respective jobid?

{
	"request": {
		"params": {
			"count": 1
		}
	},
	"data_type": "job",
	"next_cursor": "743564624323284994",
	"data": [{
		"start_time": "2016-05-12T22:00:00Z",
		"segmentation_type": null,
		"url": "https:\/\/ton.twimg.com\/advertiser-api-async-analytics\/cY2_uShHpXCo65FMwGrLrcsaTHXodpfs7VYFVS2mgEVmcBTsh_iiMcGDaUzVi8QPXBrriMaeKg5QG_dP2KfSUadHEMvWZTGMV8DhMmz0qNW62R0XA7UQd2ghkVVrAb96.json.gz",
		"id_str": "743564822390923266",
		"entity_ids": ["4zq4e",
		"4ztmq",
		"4ztn8",
		"4zthd",
		"4ypm4",
		"4yqai",
		"4ztq2",
		"4ymm2",
		"4yqay",
		"4ylx2",
		"4zq4o",
		"4yqag",
		"4ykqb",
		"4zvvs",
		"4ym9e"],
		"end_time": "2016-06-16T16:00:00Z",
		"country": null,
		"placement": "ALL_ON_TWITTER",
		"id": 743564822390923266,
		"expires_at": "2016-06-18T22:04:05Z",
		"account_id": "18ce53ymmtp",
		"status": "SUCCESS",
		"granularity": "TOTAL",
		"entity": "CAMPAIGN",
		"created_at": "2016-06-16T22:04:03Z",
		"platform": null,
		"metric_groups": ["ENGAGEMENT",
		"BILLING"]
	}]
}

#2

i tried to put cursor parameter same as the job_id, and it work, but is this the proper way to get result for a single particular job_id?


#3

Hi @aminmonster703! The results will be the same if the two jobs were created with the same parameters.