Get Google Ads campaign targeting
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Reads a campaign's current targeting from Google Ads: the themes it matches, the terms it excludes, and the locations on each side.
This reads Google directly rather than Base44's copy, so it is the authoritative set to seed an editor from. Send changes back with Update campaign.
Location entries carry a camel-cased resourceName, unlike the rest of this API. A location saved before Base44 recorded display names comes back with its numeric ID as name; nothing repairs that later, so resolve the label through Search locations if you need to show it.
<Note>This endpoint accepts a personal API key or a workspace API key. A workspace API key acts as the workspace owner.</Note>
Request
- Base URLhttps://app.base44.com
- Auth
- HTTP bearer
- or API key in header api_key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID of the app whose Google Ads campaigns to manage.
Base44's ID for the campaign, as returned in id by List campaigns. This is not the Google Ads campaign ID, which is reported separately as google_campaign_id.
Response
The campaign's live targeting.
Example response
{
"keyword_themes": [
"handmade oak furniture",
"custom dining tables"
],
"excluded_terms": [
"free",
"repair"
],
"targeted_locations": [
{
"name": "San Francisco",
"resourceName": "geoTargetConstants/1014221"
}
],
"excluded_locations": [
{
"name": "Oakland",
"resourceName": "geoTargetConstants/1014044"
}
],
"language_code": "en"
}Changes
- info
added the non-success response with the status
- info
- warning
removed the optional property
from the response with the status
- warning