Get status of job_id

api

#1

Hello!
I’m a new to Twitter Ads API and i’m trying to get report data by segmentation_type, this’s my step:

first
POST https://dev.twitter.com/ads/reference/1/post/stats/jobs/accounts/account_id
for get “job_id” and STATUS: PROCESSING
after

GET https://dev.twitter.com/ads/reference/1/get/stats/jobs/accounts/account_id

  • with parameters: job_ids = job_id

  • response return with “url: null ; status: PROCESSING”

  • How to check STATUS of “job_id” from POST method before download report using GET method ?

  • If status of “job_id” = SUCCESS after GET data then how to DELETE this job_id.

Thank you for your help!
jackie


#2

Hi Jackie!

  • With the same GET request you can see the STATUS of that JOB, you can’t know it before.
  • You don’t need to delete that job

If I’m wrong in something, please correct me!

Thanks!


#3

You don’t need to delete that job
if GET https://dev.twitter.com/ads/reference/1/get/stats/jobs/accounts/account_id with no "job_id"
response return with many of job_id and url, number of job_id increment by time with status = SUCCESS, because i think that we need delete this job_id
DELETE https://dev.twitter.com/ads/reference/1/del/stats/jobs/accounts/account_id/job_id
Only QUEUED or PROCESSING jobs can be cancelled.

thanks you