On this page
What you will get from this post
- Advertising report collection uses different mechanisms, including queries and asynchronous jobs. Do not assume every channel works the same way.
- Reporting dimensions determine record granularity. Preserve account, date, and segmentation definitions when deduplicating and aggregating data.
- Retain account currencies, time zones, reporting dates, and collection timestamps. Aggregate spend separately by its original currency.
- Scheduled processing handles data that has already been collected. Displaying data on a dashboard is not the same as collecting it upstream.
- Historical data may be revised. Handle failed jobs, no records returned, and confirmed zero values separately.
Automated aggregation of cross-border e-commerce ad data typically follows this workflow: report collection → raw result retention → field and metric definition mapping → scheduled processing → dashboard display → recovery collection. The key is not to treat every channel as the same type of API, but to preserve context such as accounts, dates, currencies, and segmentation dimensions so downstream aggregations remain traceable.
Define what to aggregate and the reporting granularity first
Start by clarifying what your team needs to see: metrics such as impressions, clicks, spend, and conversions, along with breakdowns by dimensions such as date, account, campaign, or device. Granularity determines what each record represents. When aggregating, identify records using the platform, account, date, campaign, and selected segmentation dimensions. Do not deduplicate using ad names alone or add campaign-level and device-level results together without distinguishing between them.
This workflow focuses on ad performance reports and differs from automated multi-platform order synchronization. Ad spend and performance data are not settlement transaction details, either, so ad aggregation cannot replace automated multi-platform billing reconciliation.
Automated collection: report queries and asynchronous reports
Reporting mechanisms may vary by platform. The Google Ads API lets you select attributes, segmentation dimensions, and metrics by resource, and supports streaming responses or paginated queries. Microsoft Advertising’s official reporting example uses an asynchronous workflow: submit a report request, check the task status, then download and extract the file once the task succeeds. These are examples of each platform’s mechanisms, not a basis for assuming every channel works the same way.
In implementation, record each collection run as a separate task, saving its account scope, date range, query conditions, start and end times, status, and error details. For asynchronous tasks, confirm that report generation succeeded before processing the downloaded file. For paginated or streaming results, read the full result set and track processing progress to avoid marking a task as successful after retrieving only partial results.
Standardize fields while preserving currencies, time zones, and dimensions
The suggested mapping fields are listed below. They are recommendations for designing a unified data model, not fields that every platform necessarily provides in exactly this form:
| Field | Purpose |
|---|---|
| Source platform, account ID | Distinguish data sources and accounts |
| Campaign ID, reporting date | Identify the reporting entity and date |
| Account time zone, account currency | Clarify date boundaries and monetary units |
| Impressions, clicks, spend, conversions | Store common performance metrics |
| Selected segmentation dimensions | Preserve breakdowns such as device |
| Collection time, task status | Track data refreshes and task results |
Google Ads account information includes currency and time zone fields, so the model should preserve each account's original currency and time zone. Raw spend in different currencies should be aggregated separately. If the business needs reporting in a single currency, retain the original amounts, conversion rules, and exchange rate dates alongside the converted values to avoid overwriting source data.
Segmentation dimensions change the number of report rows and the level of detail in each record, and some combinations of dimensions and metrics may be incompatible. The aggregation layer should clearly define each table's level of detail and which metrics can be summed to avoid mixing data from different levels.
From Raw Reports to Scheduled Processing and Dashboards
The pipeline can be divided into three layers: a raw layer that stores downloaded or queried results along with the request parameters; a mapping layer that standardizes field names, date formats, and statuses; and an aggregation layer that generates operational metrics at a clearly defined level of detail. A data warehouse's scheduled query capabilities can run processing statements periodically, but this only processes data already loaded into the warehouse—it does not automatically collect data from external advertising platforms.
Dashboard connectors can read and visualize tables, views, or custom query results from a data warehouse. Dashboards handle presentation; they do not replace upstream data collection or data quality processing. Access also requires the appropriate data and query permissions, and query or storage costs should be considered.
Why Today's and Yesterday's Data Can Still Change
Advertising performance data is not always available immediately, and refresh timing varies by metric. Historical metrics may also be revised due to invalid traffic, delayed conversions, or month-end adjustments. The data model should therefore store the reporting date and collection execution time separately, and recheck recent dates as business needs require. Do not assume all platforms have the same delay or treat a fixed lookback period for fetching data again as a universal rule.
Handle Missing Rows, Duplicates, and Limit Errors Separately
If no records are returned for a date, it does not necessarily mean data collection missed it. Google Ads documentation explains that when reports are segmented by dimensions such as date, rows with zero values for all selected metrics may not be returned. The system should distinguish between “task failed,” “request succeeded but returned no records,” and “confirmed zero values.” Do not fill in zeros when a request fails, and evaluate missing rows in the context of task status and reporting rules.
When rerunning the same account and date range, update existing results based on the fields that identify each record rather than appending duplicates. For API errors, retain the error type and limit details. When requests encounter quota or response limits, reduce concurrency, narrow the query scope, and schedule recovery tasks. Do not present requests that exceeded limits as complete reports.
Minimum implementation plan: From account reports to consistent reconciliation
- Define the accounts, date range, metrics, and segmentation dimensions, and document the record-level granularity of each report.
- Collect data using each platform’s supported methods, and save raw responses or downloaded files, query parameters, and job statuses.
- Set up field mappings, retaining the platform, account, time zone, currency, reporting date, and collection timestamp.
- Process collected data on a schedule. Update results when rerunning the same record scope, and schedule checks of recent dates as needed.
- Reconcile aggregated results against platform reports using the same dates, currencies, and segmentation dimensions. Keep error and recovery logs when issues occur.
- Connect the standardized data to dashboards, clearly distinguishing statuses such as success, failure, and no data returned.
If you also need to handle order workflows or settlement funds, design them as separate data pipelines based on order synchronization and billing reconciliation workflows, respectively. Do not mix them into advertising performance metrics.
How to communicate your engineering integration requirements
Before starting an integration, outline the advertising platforms and accounts in scope, the metrics you want to view, reporting granularity, refresh requirements, currencies and time zones, historical data retention needs, and how exceptions should be handled. Based in Guangzhou, Niusi Network Technology Co., Ltd. provides forward-deployed engineering and software development for global markets, helping AI applications and software systems move from demos to production. Start by exploring Niusi’s engineering services, then discuss your advertising report integration needs.
Common questions
References and practical resources
- Google Ads reporting overview (opens in a new tab)
- Microsoft Advertising report requests and downloads (opens in a new tab)
- Google Ads account fields (opens in a new tab)
- Google Ads account currency field (opens in a new tab)
- Google Ads account time zone field (opens in a new tab)
- Google Ads reporting segmentation dimensions (opens in a new tab)
- Google Cloud scheduled queries (opens in a new tab)
- Connecting Google Looker Studio to a data warehouse (opens in a new tab)
- Google Ads data freshness (opens in a new tab)
- Google Ads zero-value metrics (opens in a new tab)
- Google Ads API quotas (opens in a new tab)