curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/ads \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"google_ads_ad_group": {
"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>"
},
"final_url": "<string>",
"is_active": true,
"is_deleted": false,
"type": "<string>"
}
]Get Google Ads ads for a specific customer from the database.
Args: customer: The verified customer (injected dependency) campaign: Optional verified campaign to filter by (injected dependency) ad_group: Optional verified ad group to filter by (injected dependency) limit: Maximum number of ads to retrieve (1-1000, default: 100) offset: Number of ads to skip for pagination (default: 0)
Returns: List[GoogleAdsAdSchema]: List of Google Ads ads for the customer.
curl --request GET \
--url http://localhost:8000/api/v1/google-ads-database-data/ads \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"google_ads_ad_group": {
"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>"
},
"final_url": "<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
Filter by ad group ID
Successful Response
The ad ID
The Google Ads ad group
Show child attributes
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
The final URL of the ad
The ad type