curl --request POST \
--url https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_name": "Nordwind Furniture",
"business_description": "Handmade solid oak dining tables, built to order in San Francisco.",
"asset_types": [
"HEADLINE",
"DESCRIPTION"
],
"keywords": [
"oak dining table"
],
"search_themes": [
"handmade oak furniture"
],
"user_prompt": "Emphasise the free delivery."
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets"
payload = {
"business_name": "Nordwind Furniture",
"business_description": "Handmade solid oak dining tables, built to order in San Francisco.",
"asset_types": ["HEADLINE", "DESCRIPTION"],
"keywords": ["oak dining table"],
"search_themes": ["handmade oak furniture"],
"user_prompt": "Emphasise the free delivery."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
business_name: 'Nordwind Furniture',
business_description: 'Handmade solid oak dining tables, built to order in San Francisco.',
asset_types: ['HEADLINE', 'DESCRIPTION'],
keywords: ['oak dining table'],
search_themes: ['handmade oak furniture'],
user_prompt: 'Emphasise the free delivery.'
})
};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets', 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/suggestions/text-assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'business_name' => 'Nordwind Furniture',
'business_description' => 'Handmade solid oak dining tables, built to order in San Francisco.',
'asset_types' => [
'HEADLINE',
'DESCRIPTION'
],
'keywords' => [
'oak dining table'
],
'search_themes' => [
'handmade oak furniture'
],
'user_prompt' => 'Emphasise the free delivery.'
]),
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/suggestions/text-assets"
payload := strings.NewReader("{\n \"business_name\": \"Nordwind Furniture\",\n \"business_description\": \"Handmade solid oak dining tables, built to order in San Francisco.\",\n \"asset_types\": [\n \"HEADLINE\",\n \"DESCRIPTION\"\n ],\n \"keywords\": [\n \"oak dining table\"\n ],\n \"search_themes\": [\n \"handmade oak furniture\"\n ],\n \"user_prompt\": \"Emphasise the free delivery.\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"Nordwind Furniture\",\n \"business_description\": \"Handmade solid oak dining tables, built to order in San Francisco.\",\n \"asset_types\": [\n \"HEADLINE\",\n \"DESCRIPTION\"\n ],\n \"keywords\": [\n \"oak dining table\"\n ],\n \"search_themes\": [\n \"handmade oak furniture\"\n ],\n \"user_prompt\": \"Emphasise the free delivery.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"Nordwind Furniture\",\n \"business_description\": \"Handmade solid oak dining tables, built to order in San Francisco.\",\n \"asset_types\": [\n \"HEADLINE\",\n \"DESCRIPTION\"\n ],\n \"keywords\": [\n \"oak dining table\"\n ],\n \"search_themes\": [\n \"handmade oak furniture\"\n ],\n \"user_prompt\": \"Emphasise the free delivery.\"\n}"
response = http.request(request)
puts response.read_body{
"HEADLINE": [
"Handmade Oak Tables",
"Built To Order"
],
"LONG_HEADLINE": [
"Solid oak dining tables, built to order in San Francisco"
],
"DESCRIPTION": [
"Free statewide delivery on every table we build."
],
"BUSINESS_NAME": "Nordwind Furniture",
"CALL_TO_ACTION_SELECTION": [
"LEARN_MORE",
"SHOP_NOW",
"SIGN_UP",
"CONTACT_US"
]
}Suggest Google Ads text assets
Suggests text assets for a Performance Max campaign, one group per asset type you ask for.
Send asset_types with any of HEADLINE, LONG_HEADLINE, DESCRIPTION, BUSINESS_NAME and CALL_TO_ACTION_SELECTION. Only the types you ask for come back, so read the response by key rather than assuming all five are present. BUSINESS_NAME is a single string; the rest are arrays. CALL_TO_ACTION_SELECTION is a fixed set of values Google accepts rather than generated copy.
Nothing is saved. An asset type can come back as an empty array when the model returns nothing usable for it, under a 200.
Accept-Language header. Omit the header and you get English — the app’s own language is not consulted — so send it explicitly for a non-English app.curl --request POST \
--url https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_name": "Nordwind Furniture",
"business_description": "Handmade solid oak dining tables, built to order in San Francisco.",
"asset_types": [
"HEADLINE",
"DESCRIPTION"
],
"keywords": [
"oak dining table"
],
"search_themes": [
"handmade oak furniture"
],
"user_prompt": "Emphasise the free delivery."
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets"
payload = {
"business_name": "Nordwind Furniture",
"business_description": "Handmade solid oak dining tables, built to order in San Francisco.",
"asset_types": ["HEADLINE", "DESCRIPTION"],
"keywords": ["oak dining table"],
"search_themes": ["handmade oak furniture"],
"user_prompt": "Emphasise the free delivery."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
business_name: 'Nordwind Furniture',
business_description: 'Handmade solid oak dining tables, built to order in San Francisco.',
asset_types: ['HEADLINE', 'DESCRIPTION'],
keywords: ['oak dining table'],
search_themes: ['handmade oak furniture'],
user_prompt: 'Emphasise the free delivery.'
})
};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets', 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/suggestions/text-assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'business_name' => 'Nordwind Furniture',
'business_description' => 'Handmade solid oak dining tables, built to order in San Francisco.',
'asset_types' => [
'HEADLINE',
'DESCRIPTION'
],
'keywords' => [
'oak dining table'
],
'search_themes' => [
'handmade oak furniture'
],
'user_prompt' => 'Emphasise the free delivery.'
]),
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/suggestions/text-assets"
payload := strings.NewReader("{\n \"business_name\": \"Nordwind Furniture\",\n \"business_description\": \"Handmade solid oak dining tables, built to order in San Francisco.\",\n \"asset_types\": [\n \"HEADLINE\",\n \"DESCRIPTION\"\n ],\n \"keywords\": [\n \"oak dining table\"\n ],\n \"search_themes\": [\n \"handmade oak furniture\"\n ],\n \"user_prompt\": \"Emphasise the free delivery.\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"Nordwind Furniture\",\n \"business_description\": \"Handmade solid oak dining tables, built to order in San Francisco.\",\n \"asset_types\": [\n \"HEADLINE\",\n \"DESCRIPTION\"\n ],\n \"keywords\": [\n \"oak dining table\"\n ],\n \"search_themes\": [\n \"handmade oak furniture\"\n ],\n \"user_prompt\": \"Emphasise the free delivery.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/suggestions/text-assets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"Nordwind Furniture\",\n \"business_description\": \"Handmade solid oak dining tables, built to order in San Francisco.\",\n \"asset_types\": [\n \"HEADLINE\",\n \"DESCRIPTION\"\n ],\n \"keywords\": [\n \"oak dining table\"\n ],\n \"search_themes\": [\n \"handmade oak furniture\"\n ],\n \"user_prompt\": \"Emphasise the free delivery.\"\n}"
response = http.request(request)
puts response.read_body{
"HEADLINE": [
"Handmade Oak Tables",
"Built To Order"
],
"LONG_HEADLINE": [
"Solid oak dining tables, built to order in San Francisco"
],
"DESCRIPTION": [
"Free statewide delivery on every table we build."
],
"BUSINESS_NAME": "Nordwind Furniture",
"CALL_TO_ACTION_SELECTION": [
"LEARN_MORE",
"SHOP_NOW",
"SIGN_UP",
"CONTACT_US"
]
}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
Headers
Body
Response
One group per asset type you asked for.
Suggested text for each asset type you asked for.
Was this page helpful?