Estimate Google Ads cost per click
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Estimates what one click costs for a landing page in a set of locations, so you can turn a daily budget into a click range before a campaign exists.
Google publishes no click forecast for a Performance Max campaign before it launches, so this answers a narrower question. Base44 asks Google's keyword planner for the keyword ideas it derives from landing_page, averages the top-of-page bid range over up to 10 of them, and takes 60% of that range, because a click usually costs less than the top-of-page bid. Divide a daily budget by cpc_high_micros and cpc_low_micros for the click range. Both are in the account's budget currency, so no conversion is needed. To forecast a Smart campaign from its keyword themes instead, use Estimate a Google Ads campaign budget.
A sample_size of 0, with both figures 0, means Google had no keyword ideas it could price. Treat that as no estimate, not as free clicks.
The app needs a connected Google Ads account that has finished provisioning. An account with no Google customer ID yet, and a landing_page that is not an http or https URL, are rejected with a 400 before anything reaches Google. Nothing is saved and nothing is spent on ads.
This is limited to 30 requests a minute per app. Some workspaces have a different limit. It is refused with a 409 while the workspace is on a Google Ads billing hold.
<Note>This endpoint accepts a personal API key from anyone who can edit the app. A read-only key is refused with a 403, and so are workspace API keys.</Note>
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/apps/{app_id}/google-ads/campaigns/cpc-estimate
- Auth: HTTP bearer
Path parameters
ID of the app you are planning a Google Ads campaign for.
Request body
Example request
{
"landing_page": "https://example.com/furniture",
"geo_targets": [
"1023191"
],
"language_code": "en"
}Response
The estimated cost of one click.
Example response
{
"cpc_low_micros": 850000,
"cpc_high_micros": 2400000,
"currency_code": "USD",
"sample_size": 10
}Changes
- ○
endpoint added
- ○