curl --request POST \
--url https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel_type": "PERFORMANCE_MAX",
"freeform_prompt": "Brighter lifestyle shots with the product in use"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-assets"
payload = {
"channel_type": "PERFORMANCE_MAX",
"freeform_prompt": "Brighter lifestyle shots with the product in use"
}
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({
channel_type: 'PERFORMANCE_MAX',
freeform_prompt: 'Brighter lifestyle shots with the product in use'
})
};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-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/asset-groups/{asset_group_id}/regenerate-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([
'channel_type' => 'PERFORMANCE_MAX',
'freeform_prompt' => 'Brighter lifestyle shots with the product in use'
]),
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/asset-groups/{asset_group_id}/regenerate-assets"
payload := strings.NewReader("{\n \"channel_type\": \"PERFORMANCE_MAX\",\n \"freeform_prompt\": \"Brighter lifestyle shots with the product in use\"\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/asset-groups/{asset_group_id}/regenerate-assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"channel_type\": \"PERFORMANCE_MAX\",\n \"freeform_prompt\": \"Brighter lifestyle shots with the product in use\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-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 \"channel_type\": \"PERFORMANCE_MAX\",\n \"freeform_prompt\": \"Brighter lifestyle shots with the product in use\"\n}"
response = http.request(request)
puts response.read_body{
"session_id": "9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"text": [],
"images": [],
"background_image_count": 3,
"language": "de"
}Regenerate Google Ads asset group creative
Generates fresh creative for one asset group, for when its existing creative has stopped performing.
Use it when List Google Ads asset performance shows an asset group rated POOR or LOW. That endpoint tells you creative has gone stale; this is what replaces it.
Nothing reaches Google Ads here. The response is the same shape as Generate Google Ads assets, and the new creative comes back as previews you accept one at a time with Accept a generated Google Ads asset. Nothing on the asset group is replaced or removed for you, so accepting adds to what is already there rather than swapping it.
Pass the asset group’s Google Ads ID, which is numeric. Anything else is rejected with a 422 without a call to Google.
The rate limits, the two 200 shapes, and the retry accounting are the same as Generate Google Ads assets, because this runs the same generation underneath.
curl --request POST \
--url https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel_type": "PERFORMANCE_MAX",
"freeform_prompt": "Brighter lifestyle shots with the product in use"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-assets"
payload = {
"channel_type": "PERFORMANCE_MAX",
"freeform_prompt": "Brighter lifestyle shots with the product in use"
}
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({
channel_type: 'PERFORMANCE_MAX',
freeform_prompt: 'Brighter lifestyle shots with the product in use'
})
};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-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/asset-groups/{asset_group_id}/regenerate-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([
'channel_type' => 'PERFORMANCE_MAX',
'freeform_prompt' => 'Brighter lifestyle shots with the product in use'
]),
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/asset-groups/{asset_group_id}/regenerate-assets"
payload := strings.NewReader("{\n \"channel_type\": \"PERFORMANCE_MAX\",\n \"freeform_prompt\": \"Brighter lifestyle shots with the product in use\"\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/asset-groups/{asset_group_id}/regenerate-assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"channel_type\": \"PERFORMANCE_MAX\",\n \"freeform_prompt\": \"Brighter lifestyle shots with the product in use\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/asset-groups/{asset_group_id}/regenerate-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 \"channel_type\": \"PERFORMANCE_MAX\",\n \"freeform_prompt\": \"Brighter lifestyle shots with the product in use\"\n}"
response = http.request(request)
puts response.read_body{
"session_id": "9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"text": [],
"images": [],
"background_image_count": 3,
"language": "de"
}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
Google Ads' own numeric ID for the asset group, as reported in asset_group_id by List Google Ads asset performance.
Body
Request shape for the ad-strength-drop creative regeneration.
channel_type defaults to PERFORMANCE_MAX (ad_strength drops are surfaced
for PMax asset groups). session_id/final_url/freeform_prompt mirror
generate-all; the produced assets are session previews the user accepts via
the existing POST /assets/{id}/accept — nothing is pushed to Google here.
Campaign type to generate for, which decides the slots that get filled. One of PERFORMANCE_MAX, DEMAND_GEN, SEARCH or DISPLAY. Asset groups belong to Performance Max campaigns, so the default is the value you almost always want.
SEARCH, PERFORMANCE_MAX, DISPLAY, DEMAND_GEN "PERFORMANCE_MAX"
The session_id of an earlier generation to add this creative to. List Google Ads generated assets returns the combined set for an hour. Omit it to start a new generation. Sending it always starts a new generation, even while one is running, so poll List generated assets for progress rather than calling this again.
"3f9c2a7b8d1e4f6a9b0c1d2e3f4a5b6c"
Response
The replacement creative that was generated.
The creative one generation produced.
ID of this generation. Pass it as session_id to List Google Ads generated assets to poll for the images that are still coming.
"9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f"
How many more pictures are still being generated for this session. The response comes back as soon as the copy is done, so poll List Google Ads generated assets with session_id for these. The field is absent when a generation for this app was already running, which is how you tell that case apart.
3
Was this page helpful?