Accept Google Ads terms

Changed on

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

Records acceptance of the Google Ads terms for the account.

The account cannot be provisioned until the terms are accepted.

<Warning>A not_recorded status is a failure, not a no-op. It means the account was in a blocked or terminal state (BLOCKED, SUSPENDED, BILLING_HOLD, CANCELED or PENDING_VERIFICATION) and the acceptance was not written. Read the account's status and resolve that before retrying. The response is still a 200.</Warning>

This needs a payment method on the workspace, and the workspace must not be on a billing hold.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>

post/api/apps/{app_id}/google-ads/accounts/{account_id}/accept-terms

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/google-ads/accounts/{account_id}/accept-terms
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app to advertise.

account_idstring required

ID of the Google Ads account, as returned in id by Get Google Ads account. An account that belongs to a different app returns a 403.

Response

Successful Response

statusstring required

Outcome of the request. A status of accepted means the acceptance was recorded, while not_recorded means it was not written because the account is in a blocked or terminal state, which is a failure to act on rather than a no-op.

Example response

{
  "status": "accepted"
}

Changes