{"id":24988614,"url":"https://github.com/valenthr/ad_campaigns","last_synced_at":"2026-01-07T15:34:13.554Z","repository":{"id":259766379,"uuid":"879193189","full_name":"valenthr/ad_campaigns","owner":"valenthr","description":"Analysis of marketing campaigns","archived":false,"fork":false,"pushed_at":"2024-10-29T15:04:18.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T12:04:46.891Z","etag":null,"topics":["advertising-campaigns","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valenthr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-27T08:56:31.000Z","updated_at":"2024-10-29T15:04:22.000Z","dependencies_parsed_at":"2024-10-27T23:04:38.495Z","dependency_job_id":"7650d6fb-b3dc-4ee9-b96d-e2fcb06fe8b4","html_url":"https://github.com/valenthr/ad_campaigns","commit_stats":null,"previous_names":["valenthr/ad_campaigns"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fad_campaigns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fad_campaigns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fad_campaigns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valenthr%2Fad_campaigns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valenthr","download_url":"https://codeload.github.com/valenthr/ad_campaigns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174604,"owners_count":20735417,"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":["advertising-campaigns","sql"],"created_at":"2025-02-04T12:04:51.091Z","updated_at":"2026-01-07T15:34:13.489Z","avatar_url":"https://github.com/valenthr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analysis of marketing campaigns\n\n## Data\n\nThere are 4 tables:\n1. google_ads_basic_daily:\n   ad_date - the date of the launch of the advertising in google;\n   campaign_name - name of advertisement campaign in google;\n   adset_name - name of google advertising;\n   spend - advertising cost;\n   impressions - number of ad impressions;\n   reach - ad reach (how many unique people viewed the ad);\n   clicks - the number of visits to the advertiser's site after the advertisement;\n   leads - the number of potential customers who provided their contact information;\n   value - ad revenue;\n   url_parameters - values ​​of the measured parameters from the url address.\n2.  facebook_ads_basic_daily:\n   ad_date - the date of the launch of the advertising in facebook;\n   campaign_id - id of facebook advertisement campaign;\n   adset_id - id of advertising in facebook;\n   spend - asvertising cost;\n   impressions - number of ad impressions;\n   reach - ad reach (how many unique people viewed the ad);\n   clicks - the number of visits to the advertiser's site after the advertisement;\n   leads - the number of potential customers who provided their contact information;\n   value - ad revenue;\n   url_parameters - values ​​of the measured parameters from the url address.\n3. facebook_campaign:\n   campaign_id - id of advertisement campaign in facebook;\n   campaign_name - name of advertisement campaign in facebook.\n4. facebook_adset:\n   adset_name - name of advertising in facebook;\n   adset_id - id of facebook advertising.\n\n## Tools\n\nSQL, Looker studio.\n\n## Goals\n\nThe main goal is to boost advertising strategies and optimize marketing efforts.\n\n## What metrics were observed\n\nFor each ad campaign was calculated: spends, impressions, clicks, income, CPM, ROMI, CTR and CPC. Preparation query are in the \"Script-advertising_1\", results are [there](https://lookerstudio.google.com/reporting/7626cbef-f329-447e-a435-60cc7ace02ce).\n\n## Source and utm campaigns comparison\n\nFor each source (google and facebook) was calculated the same metrics as for campaigns, query are in the \"Script_source_comparison\". \nFor each utm campaign was calculated the same metrics and were compared with results in previous month. Query are in \"Script-advertising_2\". Also was calculated a rating of each campaign by month based on metric values (in \"Script-advertising_3\").\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalenthr%2Fad_campaigns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalenthr%2Fad_campaigns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalenthr%2Fad_campaigns/lists"}