Skip to content

Commit

Permalink
Export external_ids, pricing, and budget
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Apr 12, 2024
1 parent 1830062 commit 111d079
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/query-jobs/campaign_metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export default async function job(config) {
name,
type,
created_at,
updated_at
updated_at,
external_id,
budget_model,
budget_cents,
budget_currency
FROM ${process.env.BIGQUERY_DATASET}.campaigns
WHERE id IN (
SELECT DISTINCT campaign_id FROM ${process.env.BIGQUERY_DATASET}.flights
Expand Down
6 changes: 5 additions & 1 deletion src/query-jobs/flight_metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export default async function job(config) {
unique_per_campaign,
unique_per_advertiser,
created_at,
updated_at
updated_at,
external_id,
price_model,
price_cents,
price_currency
FROM ${process.env.BIGQUERY_DATASET}.flights
WHERE podcast_id IN (${config.podcastIds.join(", ")})
`;
Expand Down

0 comments on commit 111d079

Please sign in to comment.