Adspirer icon

Adspirer

Manage ad campaigns across Google, Meta, LinkedIn & TikTok Ads via the Adspirer REST API

Actions119

Get Campaign Performance

AI-generated

Summary

Retrieve advertising campaign performance metrics from a selected platform, currently supporting Google Ads with parameters to specify customer ID, date ranges, and output detail level.

Inputs

  • Platform (required) — The advertising platform from which to fetch campaign performance data. Options include Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads, and Utility.
  • Customer Id — For Google Ads platform, the specific customer ID to query performance metrics.
  • Date Range — For Google Ads, a date range preset such as 'last_7_days', 'last_14_days', 'last_30_days', 'last_60_days', or 'last_90_days' to define the period of the performance data.
  • Start Date — For Google Ads, the start date of the performance data in 'YYYY-MM-DD' format.
  • End Date — For Google Ads, the end date of the performance data in 'YYYY-MM-DD' format.
  • Lookback Days — For Google Ads, an optional numeric value (7, 30, 60, or 90) representing the number of days to look back for performance analytics. Leave blank to omit.
  • Raw Data — For Google Ads, when set to true, returns only the raw campaign metrics as a JSON code block including spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, and ROAS by campaign/ad/date.

Output shape

a single JSON object containing campaign performance metrics relevant to the selected platform and parameters

Currently, detailed input parameters and outputs are clearly defined only for Google Ads. Other platforms might be supported but their parameters were not detailed. The output shape can vary, especially if 'Raw Data' is true, in which case it returns raw metrics in JSON format. Dates can be specified either by preset ranges or explicit start and end dates, but overlapping usage is subject to API behavior.

Examples

Example 1: Fetching Google Ads campaign metrics for a specific customer over the last 30 days with raw data output

Platform set to Google Ads, Customer Id provided, Date Range set to 'last_30_days', Raw Data enabled as true

Links

Discussion