{"id":22793450,"url":"https://github.com/fivetran/dbt_facebook_ads_creative_history","last_synced_at":"2025-04-30T15:27:46.372Z","repository":{"id":43668844,"uuid":"336099344","full_name":"fivetran/dbt_facebook_ads_creative_history","owner":"fivetran","description":"Fivetran backwards compatibility data models for the Facebook Ads connector, using dbt.","archived":false,"fork":false,"pushed_at":"2025-01-07T17:16:50.000Z","size":867,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":40,"default_branch":"main","last_synced_at":"2025-03-30T17:23:28.846Z","etag":null,"topics":["dbt","dbt-packages","facebook-ads","fivetran"],"latest_commit_sha":null,"homepage":"https://fivetran.github.io/dbt_facebook_ads_creative_history/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fivetran.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-04T22:27:56.000Z","updated_at":"2024-01-05T17:08:24.000Z","dependencies_parsed_at":"2025-02-05T18:59:46.705Z","dependency_job_id":"595ee1f6-bac8-4248-ba8f-bce73aaea1d2","html_url":"https://github.com/fivetran/dbt_facebook_ads_creative_history","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_facebook_ads_creative_history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_facebook_ads_creative_history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_facebook_ads_creative_history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_facebook_ads_creative_history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivetran","download_url":"https://codeload.github.com/fivetran/dbt_facebook_ads_creative_history/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251731199,"owners_count":21634534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dbt","dbt-packages","facebook-ads","fivetran"],"created_at":"2024-12-12T03:19:56.894Z","updated_at":"2025-04-30T15:27:46.343Z","avatar_url":"https://github.com/fivetran.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca alt=\"License\"\n        href=\"https://github.com/fivetran/dbt_facebook_ads_source/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"dbt-core\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/dbt_Core™_version-\u003e=1.0.0_,\u003c2.0.0-orange.svg\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"Maintained?\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Maintained%3F-no-red.svg\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"PRs\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Contributions-paused-red\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Facebook Ads Backwards Compatibility\n\n\n\u003e ## ⚠️ Warning! ⚠️\n\u003e\n\u003e This package is no longer maintained by the Fivetran team and is not recommended for use. This package was required for an older version of the Facebook Ads dbt package. This compatibility is no longer needed and is not listed as a dependency in our other Facebook Ads packages. We recommend removing this package from your `packages.yml` and using the latest version of the dbt_facebook_ads package instead. \n\u003e\n\u003e To view the current release of the dbt_facebook_ads package, please refer to the [release list](https://github.com/fivetran/dbt_facebook_ads/releases).\n\nThis package models Facebook Ads data from [Fivetran's connector](https://fivetran.com/docs/applications/facebook-ads). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/facebook-ads#schemainformation). \n\nThe main focus of the package is to transform the core ad object tables into models with schemas that match the old Fivetran Facebook connector. \n\n## Models\n\nThis package contains transformation models, designed to work simultaneously with our [Facebook Ads source package](https://github.com/fivetran/dbt_facebook_ads_source) and our [multi-platform Ad Reporting package](https://github.com/fivetran/dbt_ad_reporting). A dependency on the source package is declared in this package's `packages.yml` file, so it will automatically download when you run `dbt deps`. The primary outputs of this package are described below.\n\n| **model**                                   | **description**                                                                                     |\n| ------------------------------------------- | --------------------------------------------------------------------------------------------------  |\n| stg_facebook_ads__app_link                  | Maps to the app_link table in the old connector                                                     |\n| stg_facebook_ads__carousel_media_url_tags   | Maps to the carousel_media_url_tag table in the old connector                                       |\n| stg_facebook_ads__carousel_media            | Maps to the carousel_media table in the old connector                                               |\n| stg_facebook_ads__creative_history_asset_feed_spec_link_url    | Maps to the creative_history_asset_feed_spec_link_url table in the old connector |\n| stg_facebook_ads__asset_feed_spec_link_url    | (Postgres Only) Maps to the creative_history_asset_feed_spec_link_url table in the old connector |\n| stg_facebook_ads__url_tag                   | Maps to the url_tag table in the old connector                                                      |\n\n## Installation Instructions\n\nCheck [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages.\n\nInclude in your `packages.yml`\n\n```yaml\npackages:\n  - package: fivetran/facebook_ads_creative_history\n    version: [\"\u003e=0.4.0\", \"\u003c0.5.0\"]\n```\n\n## Configuration\n\nBy default, this package will look for your Facebook Ads data in the `facebook_ads` schema of your [target database](https://docs.getdbt.com/docs/running-a-dbt-project/using-the-command-line-interface/configure-your-profile). If this is not where your Facebook Ads data is, please add the following configuration to your `dbt_project.yml` file:\n\n```yml\n# dbt_project.yml\n\n...\nconfig-version: 2\n\nvars:\n    facebook_ads_schema: your_schema_name\n    facebook_ads_database: your_database_name \n```\n\nFor additional configurations for the source models, visit the [Facebook Ads source package](https://github.com/fivetran/dbt_facebook_ads_source).\n\n### Changing the Build Schema\nBy default this package will build the Facebook Ads staging models within a schema titled (\u003ctarget_schema\u003e + `_stg_facebook_ads`) and the Facebook Creative History final models with a schema titled (\u003ctarget_schema\u003e + `_facebook_ads_creative_history`) in your target database. If this is not where you would like your modeled Facebook data to be written to, add the following configuration to your `dbt_project.yml` file:\n\n```yml\n# dbt_project.yml\n\n...\nmodels:\n  facebook_ads_creative_history:\n    +schema: my_new_schema_name # leave blank for just the target_schema\n  facebook_ads_source:\n    +schema: my_new_schema_name # leave blank for just the target_schema\n```\n## Database Support\n\nThis package has been tested on BigQuery, Snowflake, Redshift, Postgres, and Databricks.\n\n### Databricks Dispatch Configuration\ndbt `v0.20.0` introduced a new project-level dispatch configuration that enables an \"override\" setting for all dispatched macros. If you are using a Databricks destination with this package you will need to add the below (or a variation of the below) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively.\n```yml\n# dbt_project.yml\n\ndispatch:\n  - macro_namespace: dbt_utils\n    search_order: ['spark_utils', 'dbt_utils']\n```\n## Contributions\n\nAdditional contributions to this package are very welcome! Please create issues or open PRs against `main`. Check out [this post](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package.\n\n## Resources:\n- Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next\n- Have questions or feedback, or need help? Book a time during our office hours [here](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or email us at solutions@fivetran.com.\n- Find all of Fivetran's pre-built dbt packages in our [dbt hub](https://hub.getdbt.com/fivetran/)\n- Learn how to orchestrate your models with [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt)\n- Learn more about Fivetran overall [in our docs](https://fivetran.com/docs)\n- Check out [Fivetran's blog](https://fivetran.com/blog)\n- Learn more about dbt [in the dbt docs](https://docs.getdbt.com/docs/introduction)\n- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers\n- Join the [chat](http://slack.getdbt.com/) on Slack for live discussions and support\n- Find [dbt events](https://events.getdbt.com) near you\n- Check out [the dbt blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivetran%2Fdbt_facebook_ads_creative_history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivetran%2Fdbt_facebook_ads_creative_history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivetran%2Fdbt_facebook_ads_creative_history/lists"}