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. Workspace API keys are not authorized for it and are rejected with a 403.</Note>
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/google-ads/campaigns/{campaign_id}/targeting
- AuthHTTP bearer
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",
"proximity": {
"city": "Austin",
"province": "Texas",
"country": "US",
"radius": 10,
"radius_units": "miles"
}
}Changes
- info
added the optional property
to the response with the status
- info
- info
the security scope
read_onlywas added to the endpoint's security schemePersonalAccessTokenAuth - info
the security scope
full_accesswas removed from the endpoint's security schemePersonalAccessTokenAuth
- info