Meta Ads

List promotable Facebook Pages

Lists the Facebook Pages this ad account may advertise from, with any Instagram account linked to each one. Use when: creating an ad (every ad needs a Page), or when a creation attempt failed because no Page was given. Do not guess a Page id from a Page name in a URL — a Page the user administers is not necessarily one this ad account can promote. Returns the Page id for facebook_page_id and the Instagram account id for instagram_account_id. When more than one Page comes back, ask the user which one to advertise from; do not choose for them. If the list is empty the user must add a Page to the ad account's Business portfolio before any ad can be created.

post/api/v1/tools/meta_list_pages/execute

Request

  • Base URL: https://adako.ai
  • URL: https://adako.ai/api/v1/tools/meta_list_pages/execute
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Optional 8-128 character key. A successful envelope is cached for 24 hours; replaying the key with the same arguments returns it again with Idempotent-Replayed: true, and replaying it with different arguments answers 409.

Request body

Response

The tool ran. A write returns proposal_id and approve_url while the change waits for approval.

successunknown required
toolstring required
dataobject required

Machine-readable result.

markdownstring required

The same result written for a person or a model.

proposal_idstring

Present for writes. Nothing changes on the ad platform until it is approved.

approve_urlstring

Where a person approves the proposal.

request_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.