curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/ad-groups \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"google_ads_campaign": {
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"google_ads_customer": {
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true,
"is_active": true,
"is_deleted": false
},
"name": "<string>",
"status": "<string>",
"start_date": "2023-12-25",
"is_active": true,
"is_deleted": false,
"channel_type": "<string>",
"end_date": "2023-12-25"
},
"name": "<string>",
"status": "<string>",
"is_active": true,
"is_deleted": false,
"type": "<string>"
}
]Get Google Ads ad groups for a specific customer from the database.
Args: customer: The verified customer (injected dependency) campaign: Optional verified campaign to filter by (injected dependency) limit: Maximum number of ad groups to retrieve (1-1000, default: 100) offset: Number of ad groups to skip for pagination (default: 0)
Returns: List[GoogleAdsAdGroupSchema]: List of Google Ads ad groups for the customer.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/ad-groups \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"google_ads_campaign": {
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"google_ads_customer": {
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"descriptive_name": "<string>",
"currency_code": "<string>",
"time_zone": "<string>",
"status": "<string>",
"manager": true,
"is_active": true,
"is_deleted": false
},
"name": "<string>",
"status": "<string>",
"start_date": "2023-12-25",
"is_active": true,
"is_deleted": false,
"channel_type": "<string>",
"end_date": "2023-12-25"
},
"name": "<string>",
"status": "<string>",
"is_active": true,
"is_deleted": false,
"type": "<string>"
}
]The access token received from the authorization server in the OAuth 2.0 flow.
Maximum number of items to retrieve
1 <= x <= 1000Number of items to skip for pagination
x >= 0The Google Ads customer ID
Filter by campaign ID
Successful Response
The ad group ID
The Google Ads campaign
Show child attributes
The campaign ID
The Google Ads customer
Show child attributes
The customer ID
The descriptive name of the customer
The currency code
The time zone
The status of the customer
Whether the customer is a manager account
The campaign name
The campaign status
The campaign start date
The channel type
The campaign end date
The ad group name
The ad group status
The ad group type