Campaign Studio

Status of a campaign's JavaScript customizations, per block and rolled up

Changed on

Requires privateEndpoint auth and organization tag 'custom-embedded-code'. Returns campaign-level roll-ups (has_unpublished, has_draft, has_scanning, has_failed) plus a per-block list so a caller can report which block is scanning or failing. Block IDs and per-block status are exposed; content is not.

get/studio-campaigns/{campaign_id}/js-customizations-status

Request

  • Base URL
    https://pro.gofundme.com/api/2.0
  • Auth
    • OAuth 2
      Client credentials
      Token URL: /oauth2/auth
    • or OAuth 2
      Password
      Token URL: /oauth2/auth

Path parameters

campaign_idinteger required

Campaign ID

Response

Success

has_unpublishedboolean required

True if any block's latest version is not published (draft, scanning, or failed all count).

has_draftboolean required

True if any block's latest version is draft -- editable content awaiting publish.

has_scanningboolean required

True if any block's latest version is mid security scan. Polling this endpoint does not advance a scan; GET the block itself to do that.

has_failedboolean required

True if any block's latest version failed its security scan.

Example response

{
  "blocks": [
    {
      "block_id": "hyVQjxoz9DV-JX6IemnCI",
      "status": "failed",
      "version": 3,
      "has_published_version": true
    }
  ]
}

Changes