Create Google Ads conversion mapping
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.
Authorizations
Personal API key.
Path Parameters
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.
Body
Name of the app entity whose write this goal belongs to.
"Order"
Which write on the entity the goal belongs to. Base44 uses create, update, and delete, and stores any other value as sent.
"create"
Which kind of conversion this is, using Google's category vocabulary such as PURCHASE, ADD_TO_CART, SIGN_UP, or LEAD. The value is stored as sent and not checked against Google's list.
"PURCHASE"
Google Ads' own ID for the goal to point at, as returned in google_action_id by List conversion actions. Send it alongside conversion_type and this one is matched first, with conversion_type as the fallback if it matches no goal on the account.
"7654321"
Field on the entity record holding the conversion amount. The wiring instructions fall back to amount when it is empty.
"total_price"
Field on the entity record holding the currency code. The wiring instructions fall back to USD when it is empty.
"currency"
Field on the entity record holding the order ID Google dedupes on. The wiring instructions fall back to id when it is empty.
"order_number"
Whether Base44 counts this mapping when it decides the account's conversion events are configured (true) or ignores it (false).
true
Response
The mapping that was created.
A conversion goal tied to an entity write in the app.
ID of the mapping. Pass this as mapping_id to update or delete it.
"68b1c0d4e7b91d003c45a1f7"
ID of the Google Ads account the mapping belongs to.
"68b1c0d4e7b91d003c45a1f8"
Name of the app entity whose write this goal belongs to, as returned by List entity schemas. It is empty on a mapping Base44 created from a conversion it verified firing in the app code, because a client-side conversion has no entity behind it.
"Order"
Which write on the entity the goal belongs to. Base44 uses create, update, and delete, and stores any other value as sent.
"create"
Which kind of conversion this is, using Google's category vocabulary such as PURCHASE, ADD_TO_CART, BEGIN_CHECKOUT, SIGN_UP, LEAD, or CONTACT. Empty when nothing was set for it. The value is stored as sent and not checked against Google's list.
"PURCHASE"
Google Ads' own ID for the goal this mapping points at, as returned in google_action_id by List conversion actions. Empty when nothing was set for it. A mapping can carry both this and conversion_type, and this one is matched first. If it matches no goal on the account, which happens when the goal was recreated in Google Ads under a new ID, the mapping falls back to matching on conversion_type.
"7654321"
Field on the entity record holding the conversion amount. It is read only when writing the wiring instructions for the AI builder, which falls back to amount when this is empty.
"total_price"
Field on the entity record holding the currency code. Same use as value_field, and the instructions fall back to USD when this is empty.
"currency"
Field on the entity record holding the order ID Google dedupes on. Same use as value_field, and the instructions fall back to id when this is empty.
"order_number"
Whether Base44 counts this mapping when it decides a campaign's conversion events are configured (true) or ignores it (false).
true
When the mapping was created.
"2026-08-25T11:20:00Z"
When the mapping was last changed.
"2026-08-25T14:05:00Z"