For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Get Partner Eligibility Job

GET
/sandbox/ad_eligibility_jobs/{batch_id}

Read an authorized partner eligibility job.

Get Partner Eligibility Job

curl https://api.ads.openai.com/v1/sandbox/ad_eligibility_jobs/$BATCH_ID \
    -H "Authorization: Bearer $OPENAI_ADS_ACCESS_TOKEN"
200 — Example
{
  "ad_account_id": "ad_account_id",
  "association_id": "association_id",
  "batch_id": "batch_id",
  "campaign_id": "campaign_id",
  "cancelled_count": 0,
  "completed_count": 0,
  "execution_deadline": "execution_deadline",
  "expired_count": 0,
  "failed_count": 0,
  "result_expires_at": "result_expires_at",
  "results_available": true,
  "retry_after_seconds": 0,
  "schema_version": "1.0",
  "status": "preparing",
  "total_count": 0
}
Path Parameters
batch_id: string
minLength1
maxLength256
Returns
ad_account_id: string
association_id: string
batch_id: string
campaign_id: string
cancelled_count: integer
completed_count: integer
execution_deadline: string
expired_count: integer
failed_count: integer
result_expires_at: string
results_available: boolean
retry_after_seconds: integer
schema_version: "1.0" (default: "1.0")
status: "preparing" or "pending" or "running" or 6 more
One of the following:
"preparing"
"pending"
"running"
"cancelling"
"completed"
"partially_failed"
"failed"
"cancelled"
"expired"
total_count: integer
Returns Examples
200 — Example
{
  "ad_account_id": "ad_account_id",
  "association_id": "association_id",
  "batch_id": "batch_id",
  "campaign_id": "campaign_id",
  "cancelled_count": 0,
  "completed_count": 0,
  "execution_deadline": "execution_deadline",
  "expired_count": 0,
  "failed_count": 0,
  "result_expires_at": "result_expires_at",
  "results_available": true,
  "retry_after_seconds": 0,
  "schema_version": "1.0",
  "status": "preparing",
  "total_count": 0
}