{
  "format": "dataset-manifest/1",
  "slug": "ad-spend-and-conversions",
  "version": 1,
  "seed": "ad-spend-and-conversions:1",
  "spec": {
    "format": "dataset/1",
    "slug": "ad-spend-and-conversions",
    "name": "Ad Spend and Conversions",
    "tagline": "Ad spend, campaign details, channels, ad groups, daily impressions, and conversions for paid advertising analysis.",
    "description": "Paid advertising campaigns leverage various channels to drive traffic and conversions. This dataset provides a comprehensive view of ad spend across multiple channels, campaigns, and ad groups, capturing daily spending, impressions, and conversion data. Each table in this dataset models a specific aspect of advertising performance, allowing analysts to explore the relationship between expenditure and effectiveness in driving user actions. By analyzing this data, marketers can answer critical questions about return on ad spend, optimize budgeting across channels, and assess the performance of specific campaigns and ad groups. The dataset is synthetic and designed for practice and testing purposes, ideal for SQL queries and ETL pipeline development.",
    "domain": "marketing",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "etl-pipelines"
    ],
    "keywords": [
      "advertising",
      "spend",
      "conversions",
      "campaigns",
      "analytics",
      "marketing"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "channels": {
        "description": "This table lists the various advertising channels, linking to campaigns that utilize them. Each channel has a unique identifier.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the advertising channel."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the advertising channel, e.g., Google Ads, Facebook.",
            "nullable": true
          }
        }
      },
      "campaigns": {
        "description": "This table contains campaigns linked to channels, representing distinct marketing initiatives. Each campaign has a unique identifier.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the campaign."
          },
          "channel_id": {
            "kind": "fk",
            "ref": "channels.id",
            "description": "References the channel to which this campaign belongs."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the campaign.",
            "nullable": true
          }
        }
      },
      "ad_groups": {
        "description": "This table outlines the ad groups associated with campaigns, providing structure to how ads are grouped for marketing efforts.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the ad group."
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "description": "References the campaign this ad group belongs to."
          },
          "name": {
            "kind": "fullName",
            "description": "Name of the ad group.",
            "nullable": true
          }
        }
      },
      "daily_spend": {
        "description": "This table records daily spending for each ad group, providing a detailed view of advertising expenditure over time.",
        "rows": 120,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the daily spend record."
          },
          "ad_group_id": {
            "kind": "fk",
            "ref": "ad_groups.id",
            "description": "References the ad group for which this spend is recorded."
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the recorded spend.",
            "trend": "growing"
          },
          "spend": {
            "kind": "decimal",
            "min": 10,
            "max": 500,
            "scale": 2,
            "description": "Amount spent on this date, in dollars.",
            "nullable": true
          },
          "impressions": {
            "kind": "int",
            "min": 100,
            "max": 10000,
            "description": "Number of impressions generated on this date.",
            "nullable": true
          }
        }
      },
      "conversions": {
        "description": "This table captures conversion data attributed to ad groups, linking back to daily spend records for performance analysis.",
        "rows": 120,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the conversion record."
          },
          "ad_group_id": {
            "kind": "fk",
            "ref": "ad_groups.id",
            "description": "References the ad group associated with this conversion."
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the recorded conversion.",
            "trend": "growing"
          },
          "conversions": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Number of conversions attributed to the ad group on this date.",
            "nullable": true
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the return on ad spend for each campaign?",
      "Which ad groups are generating the most conversions?",
      "How does daily spend impact the number of impressions?",
      "What trends can be observed in conversion rates over time?",
      "Which channels yield the highest conversion rates?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Daily Spend and Conversions by Ad Group",
        "sql": "SELECT ds.date, ds.spend, c.conversions FROM daily_spend ds JOIN conversions c ON ds.ad_group_id = c.ad_group_id WHERE ds.date = c.date;",
        "dialect": "postgres"
      },
      {
        "title": "Total Spend and Conversions by Campaign",
        "sql": "SELECT ca.name, SUM(ds.spend) AS total_spend, SUM(c.conversions) AS total_conversions FROM campaigns ca JOIN ad_groups ag ON ca.id = ag.campaign_id JOIN daily_spend ds ON ag.id = ds.ad_group_id JOIN conversions c ON ag.id = c.ad_group_id GROUP BY ca.name;",
        "dialect": "postgres"
      },
      {
        "title": "Daily Spend Trends",
        "sql": "SELECT date, SUM(spend) AS daily_total FROM daily_spend GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      },
      {
        "title": "Average Conversion Rate by Ad Group",
        "sql": "SELECT ag.name, AVG(c.conversions::decimal / ds.impressions) AS conversion_rate FROM ad_groups ag JOIN daily_spend ds ON ag.id = ds.ad_group_id JOIN conversions c ON ag.id = c.ad_group_id GROUP BY ag.name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Analysts",
        "body": "Marketing analysts would utilize this dataset to assess the effectiveness of various advertising campaigns. By examining the relationship between ad spend and conversion rates, they can identify which campaigns are yielding the best return on investment and optimize future marketing strategies accordingly."
      },
      {
        "title": "Data Engineers",
        "body": "Data engineers tasked with building ETL pipelines can leverage this dataset to integrate advertising performance data into larger marketing analytics platforms. They can create workflows that aggregate daily spend and conversion metrics for reporting and analysis."
      },
      {
        "title": "Business Intelligence Professionals",
        "body": "Business intelligence professionals can use this dataset to create dashboards that visualize ad performance metrics. By analyzing trends in spending and conversions, they can provide insights to stakeholders regarding the effectiveness of different channels and campaigns."
      }
    ]
  },
  "counts": {
    "channels": 10,
    "campaigns": 20,
    "ad_groups": 30,
    "conversions": 120,
    "daily_spend": 120
  },
  "stats": {
    "channels": {
      "rows": 10,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "name": {
          "nulls": 1,
          "distinct": 9,
          "min": "Anna Klein",
          "max": "Zoe Miller"
        }
      }
    },
    "campaigns": {
      "rows": 20,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 20,
          "min": 1,
          "max": 20
        },
        "channel_id": {
          "nulls": 0,
          "distinct": 9,
          "min": 1,
          "max": 10
        },
        "name": {
          "nulls": 3,
          "distinct": 17,
          "min": "Ana Andersen",
          "max": "Tariq Hansen"
        }
      }
    },
    "ad_groups": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "campaign_id": {
          "nulls": 0,
          "distinct": 18,
          "min": 1,
          "max": 20
        },
        "name": {
          "nulls": 1,
          "distinct": 29,
          "min": "Andre Ruiz",
          "max": "Zara Silva"
        }
      }
    },
    "daily_spend": {
      "rows": 120,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 120,
          "min": 1,
          "max": 120
        },
        "ad_group_id": {
          "nulls": 0,
          "distinct": 29,
          "min": 1,
          "max": 30
        },
        "date": {
          "nulls": 0,
          "distinct": 97,
          "min": "2023-01-08",
          "max": "2023-12-31"
        },
        "spend": {
          "nulls": 14,
          "distinct": 106,
          "min": 16.07,
          "max": 480.82
        },
        "impressions": {
          "nulls": 14,
          "distinct": 106,
          "min": 198,
          "max": 9989
        }
      }
    },
    "conversions": {
      "rows": 120,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 120,
          "min": 1,
          "max": 120
        },
        "ad_group_id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "date": {
          "nulls": 0,
          "distinct": 100,
          "min": "2023-01-07",
          "max": "2023-12-29"
        },
        "conversions": {
          "nulls": 14,
          "distinct": 65,
          "min": 0,
          "max": 100
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/channels.csv",
      "format": "csv",
      "table": "channels",
      "key": "datasets/ad-spend-and-conversions/v1/csv/channels.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/csv/channels.csv",
      "bytes": 149,
      "sha256": "0aa456f8cd8c4b18dd1fd9b40eafb82a6f88658cb415d1304eb9ba636a89f9ec",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/campaigns.csv",
      "format": "csv",
      "table": "campaigns",
      "key": "datasets/ad-spend-and-conversions/v1/csv/campaigns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/csv/campaigns.csv",
      "bytes": 343,
      "sha256": "f052ae6ea7371b204447d3502aefb1b2fe58d3061639c5d8d1e86555a7d53747",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/ad_groups.csv",
      "format": "csv",
      "table": "ad_groups",
      "key": "datasets/ad-spend-and-conversions/v1/csv/ad_groups.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/csv/ad_groups.csv",
      "bytes": 570,
      "sha256": "bb80235728503bed56cb190282de1ab107de023616c8b64a5ff3f993bf7386c7",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/conversions.csv",
      "format": "csv",
      "table": "conversions",
      "key": "datasets/ad-spend-and-conversions/v1/csv/conversions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/csv/conversions.csv",
      "bytes": 2487,
      "sha256": "423e31d6fab2e53937d585c4996201b0bf0098aa0e825d782a1e04c3240fabaf",
      "rows": 120,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/daily_spend.csv",
      "format": "csv",
      "table": "daily_spend",
      "key": "datasets/ad-spend-and-conversions/v1/csv/daily_spend.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/csv/daily_spend.csv",
      "bytes": 3451,
      "sha256": "91f1a3272df049e034e0a392a7f80021406413ccd310fa4eda71cbc4ab4a11fe",
      "rows": 120,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ad-spend-and-conversions.json",
      "format": "json",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/ad-spend-and-conversions.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/ad-spend-and-conversions.json",
      "bytes": 33015,
      "sha256": "573c8068b2331ec682513ce6ff58de63e414332bf7841660bf079fd642e347d9",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/sql/postgres.sql",
      "bytes": 12853,
      "sha256": "250865206e473b04663cfe9244f9b0e2488298c47d31a00eabaec5b9766d156c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/sql/mysql.sql",
      "bytes": 12282,
      "sha256": "2504b134b4c2dc93c24c37ff8dc785bc6ca8a64920097321bfc4c086c5341ba6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/sql/mssql.sql",
      "bytes": 12901,
      "sha256": "2b91e6018a0edfcac88113afc3d22c6a10cd57b78469e35d24b1add7e7bec6d6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/sql/sqlite.sql",
      "bytes": 12105,
      "sha256": "24c65aa88b913d82ada143f0401ca1482e9f086eea860538bc28e5535c455b33",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/prisma/seed.ts",
      "bytes": 25372,
      "sha256": "3fa457f8a475bf60da126584a0a7c785c7fb8781a6168e7a0939dc253fb7c99e",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ad-spend-and-conversions/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ad-spend-and-conversions/v1/django/fixtures.json",
      "bytes": 46201,
      "sha256": "82cfb22fe0b7659ebedd122d8a9d1e3fa3af95fa9f4b36e564d36b7ab2990362",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734453846,
  "updatedAt": 1788734453846
}
