curl --request PATCH \
--url https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value_field": "grand_total",
"is_enabled": true
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}"
payload = {
"value_field": "grand_total",
"is_enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({value_field: 'grand_total', is_enabled: true})
};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'value_field' => 'grand_total',
'is_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}"
payload := strings.NewReader("{\n \"value_field\": \"grand_total\",\n \"is_enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value_field\": \"grand_total\",\n \"is_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value_field\": \"grand_total\",\n \"is_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"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"
}Update Google Ads conversion mapping
Changes a conversion mapping.
Send only the fields you want to change. A field you leave out keeps its current value, and so does a field you send as null, so clear a field by sending an empty string rather than null. There is no account_id parameter here, because the mapping already knows which account it belongs to.
Turning is_enabled off is how you stop Base44 counting the mapping when it decides the account’s conversion events are configured, without losing the mapping itself.
gtag('event', 'conversion', ...), or you report it from the server with Upload conversions.curl --request PATCH \
--url https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value_field": "grand_total",
"is_enabled": true
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}"
payload = {
"value_field": "grand_total",
"is_enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({value_field: 'grand_total', is_enabled: true})
};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'value_field' => 'grand_total',
'is_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}"
payload := strings.NewReader("{\n \"value_field\": \"grand_total\",\n \"is_enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value_field\": \"grand_total\",\n \"is_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/conversion-mappings/{mapping_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value_field\": \"grand_total\",\n \"is_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"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"
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Scopes
Path Parameters
ID of the mapping, as returned in id by List conversion mappings.
Body
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"
Response
The mapping after the change.
A conversion goal tied to an entity write in the app.
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"
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"
Was this page helpful?