List Google Ads generated assets
Returns the ad creative Base44 has generated for the app.
Which field you get back depends on what you ask for, and you never get both session and library:
- Send
session_idand you getsession, the previews from that one generation. Use it to poll a generation you just started. Previews are transient, so an expired session reads as an empty list. - Omit
session_idand you getlibrary, the app’s generated assets newest first. This is the durable copy and the one to read when you want to pick something to use. It returns at most the 5,000 most recent, with no pagination and no marker when it truncates. - Add
campaign_idto either and you also getdurable, read live from Google Ads, listing what is already attached to that campaign.
The two lists carry different fields, because they come from different stores. library rows add status, accepted_campaign_id and accepted_resource_names, which is how you tell what has already been pushed to Google.
A session list is empty rather than missing while a generation is in flight, so poll until assets appear rather than treating the first empty read as failure.
Sending campaign_id brings the campaign’s own errors with it, because the campaign has to be resolved before Google can be read. Without campaign_id this endpoint only ever answers 200, 401 or 403.
Authorizations
Personal API key.
Path Parameters
ID of the app whose Google Ads creative you want to generate or read.
Query Parameters
Return the previews from this generation session instead of the durable library, as returned in session_id by Generate Google Ads assets.
Also return what is already attached to this campaign in Google Ads, as returned in id by List campaigns.
Response
The app's generated creative.
The app's generated Google Ads creative.
Assets in the generation session you asked for. Present only when you send session_id, and an empty list while the generation is still running or when it produced nothing.
The app's generated assets, newest first, capped at the 5,000 most recent. Present only when you omit session_id. There is no pagination and nothing marks a truncated list, so an app past 5,000 assets silently stops seeing its oldest ones.
Assets already attached to the campaign in Google Ads. Present only when you send campaign_id.