Create Google Ads conversion mapping
<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Creates a conversion mapping on one of the app's Google Ads accounts.
A conversion mapping records that one of the account's Google Ads goals belongs to an entity write in the app, so Order.create is the app event behind the PURCHASE goal. Base44 reads mappings to decide whether a campaign is ready to launch, and to offer goals in the dashboard.
Point the mapping at a goal in one of two ways. Set conversion_action_id to name a specific goal, or set conversion_type to match whichever goal on the account carries that category. Setting both means the explicit ID wins. Pass the account in the account_id query parameter, and an account belonging to another app returns a 404 even when it sits in the same workspace.
An enabled mapping that resolves to a real goal is what makes Base44 treat the account's conversion events as configured, which affects Get launch readiness. Send is_enabled as false to record the mapping without that effect.
<Warning>This creates a new mapping every time you call it. Nothing keeps one mapping per entity and goal, so a retried request leaves you with duplicates. Read List conversion mappings first and use Update conversion mapping when the mapping already exists.</Warning>
<Warning>A mapping does not report conversions on its own. Nothing fires a conversion when the mapped entity is written. The app has to fire it in the browser with gtag('event', 'conversion', ...), or you report it from the server with Upload conversions.</Warning>
<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>
<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time. Send only the fields documented here. Other request fields are not supported and their behavior can change.</Warning>
Path parameters
ID of the app whose Google Ads conversion tracking you want to manage.
ID of the app whose Google Ads conversion tracking you want to manage.
Query parameters
ID of the Google Ads account the mapping belongs to, as returned in id by Get Google Ads account. An account belonging to a different app returns a 404.
ID of the Google Ads account the mapping belongs to, as returned in id by Get Google Ads account. An account belonging to a different app returns a 404.
Request body
Example request
{
"entity_name": "Order",
"trigger_action": "create",
"conversion_type": "PURCHASE",
"conversion_action_id": "7654321",
"value_field": "total_price",
"currency_field": "currency",
"id_field": "order_number",
"is_enabled": true
}Response
The mapping that was created.
Example response
{
"id": "68b1c0d4e7b91d003c45a1f7",
"account_id": "68b1c0d4e7b91d003c45a1f8",
"entity_name": "Order",
"trigger_action": "create",
"conversion_type": "PURCHASE",
"conversion_action_id": "7654321",
"value_field": "total_price",
"currency_field": "currency",
"id_field": "order_number",
"is_enabled": true,
"created_date": "2026-08-25T11:20:00Z",
"updated_date": "2026-08-25T14:05:00Z"
}Changes
Changed in 1 of the 13 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○