# Make

Use AskAds in Make with Make's own HTTP and Webhooks apps. Nothing extra to install.

Make has no AskAds app of its own, and you do not need one. Make's **HTTP** app calls the [AskAds API](/developers/api), and Make's **Webhooks** app receives [AskAds webhooks](/developers/webhooks). Checked against Make's help pages on 20 Nov 2026.

## Before you start

In AskAds, open **Developers**, then **API keys**, and make a key for Make. Tick only what the scenario needs ([scopes](/developers/authentication#scopes)). Copy the key: it is shown once.

## Call the API

Add the **HTTP** app's **Make a request** module and fill it in:

| Field | What to put |
|---|---|
| URL | `https://askads.app/api/v1` plus the address from the [API reference](/developers/api), for example `https://askads.app/api/v1/ad-accounts` |
| Method | The one the reference shows: GET, POST, PATCH or DELETE |
| Authentication type | **API key**. Add a keychain: the key goes in a **header** named `Authorization`, and its value is the word `Bearer`, a space, then your key (`Bearer ask_key_...`) |
| Headers | For POST, PATCH and DELETE only: `Idempotency-Key` with a value that is new for each run, for example the scenario's execution ID. If Make sends the same request twice, AskAds does it once. |
| Body content type | `application/JSON` (POST and PATCH) |
| Body input method | **Data structure** (Make escapes the values for you) or **JSON string** |
| Parse response | **Yes** |

Every answer has the result in `data`. A list also has `hasMore` and `nextCursor`; to get the next page, call the same address with `?cursor=` and the `nextCursor` value.

Money is always `amountMinor` (cents), `currency` and `display` (for example `$25.00`). When you send a budget, send normal money: `25` means $25.

### Useful calls

| To do this | Method and address |
|---|---|
| See your ad accounts | GET `/ad-accounts` |
| Get a report | GET `/ad-accounts/{adAccountId}/report?period=last_7_days` |
| Build a paused draft | POST `/ad-accounts/{adAccountId}/drafts` |
| Ask a person to approve a launch | POST `/approval-requests/launch` |
| Check if it was approved | GET `/approval-requests/{changeId}` |
| Pause something now | POST `/ad-accounts/{adAccountId}/items/{level}/{id}/pause` |
| Lower a budget now | POST `/ad-accounts/{adAccountId}/items/{level}/{id}/lower-budget` |

If AskAds says no (a limit, "stop all changes", a missing scope), the module gets a 4xx answer with `error.message` in plain words. Add an error handler to the module if the scenario should carry on.

## Start a scenario from AskAds

1. Add the **Webhooks** app's **Custom webhook** module as the first module. Press **Add**, give it a name, and copy the address Make shows.
2. Open the webhook's advanced settings and switch on **Get request headers** and **JSON pass-through**. Now the next modules get the request headers, and the body as one piece of text, exactly as AskAds sent it. The signature check needs that exact text.
3. In AskAds, open **Developers**, then **Webhooks**, press **Add endpoint**, paste Make's address and pick the events. Copy the **signing secret** (`whsec_...`): it is shown once.
4. In AskAds, press **Send test** on the endpoint. Make receives a `ping` event and learns its shape.

## Check the signature

Every request from AskAds carries a header named `AskAds-Signature` that looks like `t=1763569800,v1=0a4d...`. A request without the right signature did not come from AskAds: stop it.

Right after the Custom webhook, add **Tools**, then **Set multiple variables**, with three variables:

| Variable | Value |
|---|---|
| `signature` | The value of the `AskAds-Signature` header: `{{get(map(1.headers; "value"; "name"; "askads-signature"); 1)}}`. If Make shows the header name with capitals (`AskAds-Signature`), use that spelling. |
| `t` | `{{replace(signature; "/^t=(\d+),.*$/"; "$1")}}` |
| `expected` | `{{sha256(t + "." + body; "hex"; "whsec_your_secret")}}`, where `body` is the text item from the Custom webhook (the whole JSON as text) and the last part is your signing secret |

Make's `sha256` gives an HMAC when you pass a key, which is exactly what AskAds signs with: HMAC-SHA256 of the text `<t>.<body>`, written as hex.

Then add a **filter** on the next link with three conditions, all of which must hold:

1. `signature` **contains** `v1=` followed by `expected`.
2. `t` (as a number) is **greater than or equal to** `{{formatDate(now; "X") - 300}}`.
3. `t` (as a number) is **less than or equal to** `{{formatDate(now; "X") + 300}}`.

Conditions 2 and 3 refuse anything older or newer than 5 minutes, so an old request someone saved cannot be sent again. After the filter, add **JSON**, then **Parse JSON**, on the body text to get the event's fields (`type`, `data`, and so on).

While you make a new signing secret in AskAds, requests carry two `v1` values (new and old) for 24 hours, so the "contains" check keeps working with either secret. Change the secret in the scenario within that day.

Keep the secret out of shared blueprints: if your Make plan has custom variables, keep it there.

If your plan has Make's Code module, you can use the [Node.js check](/developers/webhooks#nodejs) there instead. Check your setup with the [test values](/developers/webhooks#test-your-code): with the test secret and body, `expected` must equal the test `v1`.

## What happens on the AskAds side

- Make answers 200 ("Accepted") as soon as a request is in its queue. AskAds counts that as delivered, even if a later module fails.
- If you add a **Webhook response** module, put it last and answer with a 2xx status within 10 seconds, or AskAds tries again (after 1 minute, then 5, 30 minutes and so on, for up to 48 hours).
- Make switches off a webhook that has not been in any scenario for 5 days and then answers 410. AskAds reads 410 as "remove me" and switches the endpoint off. When you use the webhook again, switch the endpoint back on in AskAds.
- Make takes up to 300 requests every 10 seconds per account, far more than AskAds sends.

## There is no approve call

A scenario can read, build paused drafts, pause, lower budgets and ask. A person approves on the website. When a scenario asks for a launch, your team's approvers get an email with the link. [The money rule](/developers/money-rule).
