For instance:
SELECT country FROM `bigquery-public-data.google_political_ads.geo_spend` FOR SYSTEM_TIME AS OF TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 6 DAY) GROUP BY country;
For instance:
SELECT country FROM `bigquery-public-data.google_political_ads.geo_spend` FOR SYSTEM_TIME AS OF TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 6 DAY) GROUP BY country;
BigQuery supports a sort of "time travel" / point-in-time querying. By default and for those datasets it's enabled for 7 days which means you can query data as it was up-to 7 days ago.
1. Create a GCS bucket
2. Open https://console.cloud.google.com/bigquery?ws=!1m4!1m3!3m2!1s...
3. For each table under google_political_ads, run the following query: SELECT * FROM `bigquery-public-data.google_political_ads.<TABLE>` FOR SYSTEM_TIME AS OF TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 6 DAY) GROUP BY country;
3. Export as CSV in GCS
Another procedure that is probably better but requires BigTable is:
1. Open https://console.cloud.google.com/bigquery?ws=!1m4!1m3!3m2!1s...
2. For each table, click Snapshot and set Snapshot time to Sep 23 (Sep 24 works as well)