> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# AdsAgreementElement

> Ondertekent de Whop Ads Services and Payment Authorization Agreement voor een account. Het opslaan van de facturering voor advertentie-uitgaven van het account opent de overeenkomst; totdat een bevoegde vertegenwoordiger die ondertekent, kan er geen campagne worden gelanceerd. De ondertekenaar typt zijn volledige wettelijke naam en optioneel zijn functietitel, accepteert de voorwaarden, en de getypte handtekening wordt bij de overeenkomst gearchiveerd. Na ondertekening toont dit element wie heeft getekend en wanneer; zolang de facturering niet is ingesteld, valt er niets te ondertekenen en meldt het element dat. `campaign-creator` opent dit element zelf boven de builder wanneer een lancering een handtekening vereist, dus mount het alleen zelf als je vooraf ondertekening wilt aanbieden — bijvoorbeeld op een instellingen- of onboardingpagina.

> [!NOTE]
>
> Deze pagina documenteert `@whop/elements@1.10.0` en `@whop/elements-react@1.10.0`.

*Sinds `v1.9.0`.*

Wordt gemount binnen [`Ads`](https://docs.whop.com/nl/elements/latest/ads/overview). `accountId` en `accessToken` komen daarvandaan. Geef props en callbacks door via de create-opties of als React-props.

> [!NOTE]
>
> Je kunt dit element **inline** mounten (`create`) of openen als **modale** overlay (`createOverlay`).

```tsx React theme={null}
import { WhopElements, Ads, AdsAgreementElement } from "@whop/elements-react";
import { loadWhop } from "@whop/elements";

function Example() {
  return (
    <WhopElements elements={loadWhop()}>
      <Ads /* options */>
        <AdsAgreementElement onSigned={(e) => console.log(e)} />
      </Ads>
    </WhopElements>
  );
}
```

```html JavaScript theme={null}
<script src="https://cdn.whop.com/elements/amber/elements.js" data-whop-elements></script>
<script type="module">
  const ads = window.WhopElements().ads.create({ /* options */ });
  ads.create('ads-agreement', { onSigned: (e) => console.log(e) }).mount('#ads-ads-agreement');
</script>
```

Voorbeeldgegevens. [Open de Playground](https://docs.whop.com/nl/elements/latest/ads/overview#playground).

## Props

*Dit element accepteert geen consumer-props.*

## Events

Geef callbacks door in de create-opties of als React-props.

### `onSigned`

De overeenkomst is ondertekend en vastgelegd. `agreementVersion` is de versie die is ondertekend; `acceptedAt` is het moment, als ISO 8601-tijdstempel. Een modal sluit bij dit event.

**payload** `object`

**properties**

**agreementVersion** `string | null` *required*

**acceptedAt** `string | null` *required*

### `onLoaderStart`

Wordt uitgevoerd nadat het laadskelet voor het eerst is getekend en vóór `onReady`.

### `onReady`

Wordt uitgevoerd na de eerste volledige weergave van het element.

### `onError`

Wordt uitgevoerd wanneer het element niet laadt of crasht. De fallback blijft zichtbaar. Gebruik `code` voor programmatische afhandeling. `sourceKey` identificeert een mislukte host-state-bron.

**e** `object`

**properties**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## Methoden

Roep deze aan op de handle die `create` retourneert, of via een React-`ref`.

### `mount`

Mount het element in `target` en begint met laden. React-componenten mounten zichzelf.

**Parameters**

**target** `string | HTMLElement` *required*

### `destroy`

Verwijdert het element en geeft het frame en de abonnementen ervan vrij. Je kunt dit meer dan eens aanroepen. React verwijdert het element automatisch.

### `update`

Voegt nieuwe props samen in het gemounte element. Wijzig in React in plaats daarvan de props van de component.

**Parameters**

**options** `Partial\<AdsAgreementElementProps\>` *required*

## Styling

Dit element stelt geen klassennamen beschikbaar voor styling. Gebruik `appearance` (thema, accentkleur, variabelen) om de stijl aan te passen.


## Related topics

- [Ads](https://docs.whop.com/nl/elements/latest/ads/overview.md)
- [CampaignCreatorElement](https://docs.whop.com/nl/elements/latest/ads/campaign-creator.md)
- [TableElement](https://docs.whop.com/nl/elements/latest/ads/reporting-table.md)
