---
title: "Create website conversion action — estimate"
method: POST
path: "/v1/messaging/ads/conversions/actions/estimate"
tags: ["Conversions"]
---

# Create website conversion action — estimate

`POST /v1/messaging/ads/conversions/actions/estimate`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/messaging/ads/conversions/actions/estimate`
- Auth: HTTP bearer

Price the request without executing it. Same body as `POST /v1/messaging/ads/conversions/actions`.

## Request body

- object
  - `name` string, required
  - `type` 'WEBPAGE', required: Only WEBPAGE is supported for creation today.
  - `category` 'DEFAULT' | 'PAGE_VIEW' | 'PURCHASE' | 'SIGNUP' | 'DOWNLOAD' | 'ADD_TO_CART' | 'BEGIN_CHECKOUT' | 'SUBSCRIBE_PAID' | 'PHONE_CALL_LEAD' | 'IMPORTED_LEAD' | 'SUBMIT_LEAD_FORM' | 'BOOK_APPOINTMENT' | 'REQUEST_QUOTE' | 'GET_DIRECTIONS' | 'OUTBOUND_CLICK' | 'CONTACT' | 'ENGAGEMENT' | 'STORE_VISIT' | 'STORE_SALE' | 'QUALIFIED_LEAD' | 'CONVERTED_LEAD': conversion_action.category. Defaults to DEFAULT on create.
  - `accountId` string, required: SocialAccount ID. Must be a `googleads` account.
  - `customerId` string: Alias of adAccountId, kept for existing callers
  - `adAccountId` string: Platform ad account ID (Google customer ID, digits only). Resolved automatically when the connection has exactly one accessible customer.
  - `countingType` 'ONE_PER_CLICK' | 'MANY_PER_CLICK': ONE_PER_CLICK counts one conversion per ad click (leads); MANY_PER_CLICK counts every one (purchases).
  - `defaultValue` number: Default conversion value used when an event doesn't carry its own value.
  - `primaryForGoal` boolean: true = primary (counts toward bidding when its goal is biddable), false = secondary.
  - `defaultCurrency` string: ISO 4217 currency of defaultValue (value_settings.default_currency_code).
  - `alwaysUseDefaultValue` boolean: When true, always use defaultValue and ignore any value sent with the event. Defaults to true when defaultValue is set.
  - `viewThroughLookbackWindowDays` integer: Days after an ad view a view-through conversion still counts.
  - `clickThroughLookbackWindowDays` integer: Days after an ad click a conversion still counts.

## Response `200`

Estimate

- Estimate
  - `operation` string
  - `estimated_credits` number
  - `credits_to_reserve` number
  - `estimated_usage` object
  - `note` string, nullable
  - `balance` object
    - `available` number
  - `sufficient` boolean

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
