Skip to main content
GET
/
api
/
v1
/
google-ads
/
campaigns
/
compare
Compare Campaigns
curl --request GET \
  --url http://localhost:8000/api/v1/google-ads/campaigns/compare \
  --header 'Authorization: Bearer <token>'
{
  "comparisons": [
    {
      "campaign_id": "<string>",
      "campaign_name": "<string>",
      "current_period": {},
      "previous_period": {},
      "change_percentage": {}
    }
  ],
  "current_period_start": "<string>",
  "current_period_end": "<string>",
  "previous_period_start": "<string>",
  "previous_period_end": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

customer_id
integer
required
current_start_date
string
current_end_date
string
previous_start_date
string | null
previous_end_date
string | null
login_customer_id
integer | null
campaigns
string[] | null
token_id
integer | null

Response

Successful Response

Response schema for campaign comparison

comparisons
CampaignComparisonData · object[]
required
current_period_start
string
required
current_period_end
string
required
previous_period_start
string
required
previous_period_end
string
required