Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Own-account API: reaches ad accounts the token’s user or system user was given access to.
  • Ad account ids carry the act_ prefix in paths. Insights money fields (spend) come back as strings in the account currency, not cents.
  • Pagination is cursor style: the answer’s paging.next URL, or paging.cursors.after passed back as after.
  • This catalog covers reads only; creating or changing campaigns is not included.

Endpoints

Get an ad account

  • account_status is numeric: 1 active, 2 disabled, 3 unsettled.

List an ad account’s campaigns

  • With no effective_status filter, archived and deleted campaigns are left out.

Get ad performance insights

  • Large queries can time out; narrow the date range or level, or request fewer breakdowns.
  • Conversions appear under actions as {action_type, value} lists, not as flat fields.