Skip to main content
POST
/
api
/
v1
/
debug
/
assistant-functions
/
get-ad-group-metrics
Debug Get Ad Group Metrics
curl --request POST \
  --url http://localhost:8000/api/v1/debug/assistant-functions/get-ad-group-metrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "google_ads_customer_id": "<string>",
  "google_ads_login_customer_id": "<string>",
  "campaign_id": "<string>",
  "ad_group_id": "<string>",
  "days": 30,
  "limit": 100
}
'
{
  "success": true,
  "data": "<string>",
  "execution_time_ms": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Schema for debugging get_ad_group_metrics function.

google_ads_customer_id
string
required

The Google Ads customer ID

google_ads_login_customer_id
string | null

The Google Ads login customer ID

campaign_id
string | null

Optional campaign ID to filter by

ad_group_id
string | null

Optional ad group ID to filter by

days
integer
default:30

Number of days of historical data to retrieve

Required range: 1 <= x <= 365
limit
integer | null
default:100

Maximum number of ad groups to retrieve

Required range: 1 <= x <= 1000

Response

Successful Response

Schema for debug function responses.

success
boolean
required

Whether the function executed successfully

data
string
required

JSON string containing the function result or error information

execution_time_ms
number | null

Function execution time in milliseconds