> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Google Ads budget boundaries

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Reads the daily budget range Google accepts for a campaign type and currency, so you can validate a budget before you create a campaign.

The numbers come from a fixed table rather than from Google, because Google does not publish them as a queryable resource. They change rarely. `min_daily_budget_micros` is the same floor the create, update, and bulk-budget endpoints enforce, so a budget that passes here is accepted there.

`clicks_per_unit_min` and `clicks_per_unit_max` are always present, and are measured rather than forecast whenever `clicks_per_unit_scope` is `campaign` or `fleet`: the middle half of what one unit of `currency_code` in daily budget has actually bought across recent Base44 campaigns billing in that currency. Multiply a daily budget by them directly. Pass `campaign_id` to get the same pair for one campaign's own delivery once it has enough of a record to speak for itself. A scope of `unavailable` still returns a usable pair, but a stored one rather than a current measurement — read the scope before presenting these as live figures.

You do not need a connected Google Ads account to call this, which is what lets you show a budget slider before the account exists. An unrecognized `currency_code` or `campaign_type` is not rejected: you get the US dollar and Smart campaign defaults back, with the values you sent echoed in `currency_code` and `campaign_type`. Compare those two fields against what you sent if you need to know that happened.

<Note>This endpoint accepts a personal API key or a workspace API key. A workspace API key acts as the workspace owner.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/google-ads/campaigns/budget-boundaries
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/google-ads/campaigns/budget-boundaries:
    get:
      summary: Get Google Ads budget boundaries
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Reads the daily budget range Google accepts for a campaign type and
        currency, so you can validate a budget before you create a campaign.


        The numbers come from a fixed table rather than from Google, because
        Google does not publish them as a queryable resource. They change
        rarely. `min_daily_budget_micros` is the same floor the create, update,
        and bulk-budget endpoints enforce, so a budget that passes here is
        accepted there.


        `clicks_per_unit_min` and `clicks_per_unit_max` are always present, and
        are measured rather than forecast whenever `clicks_per_unit_scope` is
        `campaign` or `fleet`: the middle half of what one unit of
        `currency_code` in daily budget has actually bought across recent Base44
        campaigns billing in that currency. Multiply a daily budget by them
        directly. Pass `campaign_id` to get the same pair for one campaign's own
        delivery once it has enough of a record to speak for itself. A scope of
        `unavailable` still returns a usable pair, but a stored one rather than
        a current measurement — read the scope before presenting these as live
        figures.


        You do not need a connected Google Ads account to call this, which is
        what lets you show a budget slider before the account exists. An
        unrecognized `currency_code` or `campaign_type` is not rejected: you get
        the US dollar and Smart campaign defaults back, with the values you sent
        echoed in `currency_code` and `campaign_type`. Compare those two fields
        against what you sent if you need to know that happened.


        <Note>This endpoint accepts a personal API key or a workspace API key. A
        workspace API key acts as the workspace owner.</Note>
      operationId: >-
        get_campaign_budget_boundaries_api_apps__app_id__google_ads_campaigns_budget_boundaries_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app you are planning a Google Ads campaign for.
            title: App Id
          description: ID of the app you are planning a Google Ads campaign for.
          example: 6820f3a4e7b91d003c45a1f2
        - name: currency_code
          in: query
          required: false
          schema:
            type: string
            description: >-
              Currency to report the bounds in, as an ISO 4217 code. An
              unrecognized code falls back to `USD`.
            default: USD
            title: Currency Code
          description: >-
            Currency to report the bounds in, as an ISO 4217 code. An
            unrecognized code falls back to `USD`.
          example: USD
        - name: campaign_type
          in: query
          required: false
          schema:
            type: string
            description: >-
              Campaign type to report bounds for: `SMART` or `PERFORMANCE_MAX`.
              Anything else falls back to `SMART`.
            default: SMART
            title: Campaign Type
          description: >-
            Campaign type to report bounds for: `SMART` or `PERFORMANCE_MAX`.
            Anything else falls back to `SMART`.
          example: SMART
        - name: campaign_id
          in: query
          required: false
          schema:
            type: string
            description: >-
              An existing campaign to quote the click rate for. With it,
              `clicks_per_unit_min` / `clicks_per_unit_max` describe that
              campaign's own recent delivery instead of the platform-wide range,
              and `clicks_per_unit_scope` reads `campaign`. A campaign without
              enough delivery, or one whose budget currency differs from
              `currency_code`, still answers from the platform-wide range.
            title: Campaign Id
          description: >-
            An existing campaign to quote the click rate for. With it,
            `clicks_per_unit_min` / `clicks_per_unit_max` describe that
            campaign's own recent delivery instead of the platform-wide range,
            and `clicks_per_unit_scope` reads `campaign`. A campaign without
            enough delivery, or one whose budget currency differs from
            `currency_code`, still answers from the platform-wide range.
      responses:
        '200':
          description: The accepted daily budget range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAdsBudgetBoundaries'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app or the app does not exist. A
            missing app and an app you cannot reach are deliberately the same
            answer. Marketing setup, campaign edits, generation and resuming
            also return `app_marketing_not_allowed` when the app's owning
            workspace has the FERPA designation. Historical reads, pausing,
            deletion and financial settlement remain available.
        '429':
          description: >-
            `rate_limited`: The base limit is 1,200 requests in a minute from
            your account, shared across every Google Ads read that doesn't name
            its own limit. Some workspaces have a higher limit.
            `X-RateLimit-Limit` reports the enforced limit. Retry after
            `Retry-After` seconds. The `X-RateLimit-*` headers report the budget
            left.
          content:
            application/json:
              examples:
                rate_limited:
                  summary: rate_limited
                  value:
                    error:
                      code: rate_limited
                      message: Rate limit exceeded.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - full_access
        - WorkspaceApiKeyAuth:
            - full_access
        - WorkspaceApiKeyBearerAuth:
            - full_access
components:
  schemas:
    GoogleAdsBudgetBoundaries:
      properties:
        currency_code:
          type: string
          title: Currency Code
          description: The currency these amounts are in, upper-cased from what you sent.
          example: USD
        campaign_type:
          type: string
          title: Campaign Type
          description: >-
            The campaign type these bounds apply to, upper-cased from what you
            sent.
          example: PERFORMANCE_MAX
        min_daily_budget_micros:
          type: integer
          title: Min Daily Budget Micros
          description: >-
            Smallest daily budget Google accepts for this campaign type and
            currency, in micros (1,000,000 micros = 1 unit of the currency).
            Sending less than this to [Create
            campaign](/api-reference/create-google-ads-campaign) is rejected
            with a 400.
          example: 10000000
        max_daily_budget_micros:
          type: integer
          title: Max Daily Budget Micros
          description: >-
            Largest daily budget accepted for this campaign type and currency,
            in micros.
          example: 1000000000
        recommended_daily_budget_micros:
          type: integer
          title: Recommended Daily Budget Micros
          description: >-
            A sensible starting daily budget, in micros. Never above
            `max_daily_budget_micros`.
          example: 30000000
        preset_daily_budget_micros:
          items:
            type: integer
          type: array
          title: Preset Daily Budget Micros
          description: >-
            Three suggested daily budgets, in micros, from lowest to highest.
            These are raw presets, so unlike `recommended_daily_budget_micros`
            the highest one can sit above `max_daily_budget_micros`.
          example:
            - 15000000
            - 30000000
            - 60000000
        usd_to_currency_rate:
          type: number
          title: Usd To Currency Rate
          description: >-
            How many units of this currency Base44 counts per US dollar when it
            converts the presets.
          example: 1
        clicks_per_unit_min:
          type: number
          title: Clicks Per Unit Min
          description: >-
            Low end of the clicks one unit of `currency_code` in daily budget
            has actually bought. Multiply a daily budget by this directly — it
            is already in the same currency the budget is, so no conversion is
            involved. Always present — check `clicks_per_unit_scope` to see
            whether it is a live measurement.
          example: 1.9
        clicks_per_unit_max:
          type: number
          title: Clicks Per Unit Max
          description: >-
            High end of the same range, with the same caveat: measured when
            `clicks_per_unit_scope` is `campaign` or `fleet`, a stored rate when
            it is `unavailable`.
          example: 21.2
        clicks_per_unit_scope:
          type: string
          title: Clicks Per Unit Scope
          description: >-
            Where the click range came from, and whether it is a measurement at
            all. `campaign`: measured on the campaign named by `campaign_id`.
            `fleet`: measured across accounts billing in this currency — also
            what an unknown campaign, or one without enough delivery, returns.
            `unavailable`: NOT measured — a stored range is being served because
            this currency has too few accounts to measure or the measurement
            could not be read. The range is usable in every case, but only the
            first two are measured.
          example: fleet
      type: object
      required:
        - currency_code
        - campaign_type
        - min_daily_budget_micros
        - max_daily_budget_micros
        - recommended_daily_budget_micros
        - preset_daily_budget_micros
        - usd_to_currency_rate
        - clicks_per_unit_min
        - clicks_per_unit_max
        - clicks_per_unit_scope
      title: GoogleAdsBudgetBoundaries
      description: The daily budget range Google accepts for a campaign type and currency.
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        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`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.