{"id":26328697,"url":"https://github.com/forward3d/bing-ads-reporting","last_synced_at":"2025-07-11T11:34:35.085Z","repository":{"id":11276080,"uuid":"13683351","full_name":"forward3d/bing-ads-reporting","owner":"forward3d","description":"Gem for pulling reports from bing ads","archived":false,"fork":false,"pushed_at":"2025-07-02T13:32:22.000Z","size":110,"stargazers_count":10,"open_issues_count":10,"forks_count":14,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-07-02T14:39:10.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forward3d.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","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":"2013-10-18T16:35:58.000Z","updated_at":"2025-07-02T13:32:13.000Z","dependencies_parsed_at":"2025-03-15T21:18:22.122Z","dependency_job_id":"9c38ccb8-ef72-441e-8441-bbfa9c3b7b99","html_url":"https://github.com/forward3d/bing-ads-reporting","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/forward3d/bing-ads-reporting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fbing-ads-reporting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fbing-ads-reporting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fbing-ads-reporting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fbing-ads-reporting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forward3d","download_url":"https://codeload.github.com/forward3d/bing-ads-reporting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fbing-ads-reporting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264795769,"owners_count":23665241,"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":[],"created_at":"2025-03-15T21:18:18.429Z","updated_at":"2025-07-11T11:34:35.058Z","avatar_url":"https://github.com/forward3d.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bing Ads Reports\n\n## Installation\n\n    gem install bing-ads-reporting\n\n## Usage\n\n### Initializing service.\n\n#### All Reporting Service - [Bing Ads Reference for Reporting Service](https://docs.microsoft.com/en-us/advertising/reporting-service/reporting-service-reference?view=bingads-12)\n\n```ruby\nservice = BingAdsReporting::ReportingService.new({\n  developerToken: '',\n  applicationToken: '',\n  authenticationToken: '',\n  :accountId: '',\n  customerId: ''})\n```\n\n#### Bulk Service - [Bing Ads API reference for Bulk Service](https://docs.microsoft.com/en-us/advertising/reporting-service/reporting-service-operations?view=bingads-12)\n\n```ruby\nservice = BingAdsReporting::BulkService.new({\n  developerToken: '',\n  applicationToken: '',\n  authenticationToken: '',\n  :accountId: '',\n  customerId: ''\n})\n```\n\n## Create report and get it's ID\n\n### Reporting Service\n\n```ruby\nperiod = Datebox::Period.new('2013-07-01', '2013-07-03')\nid = service.generate_report({report_type: 'KeywordPerformance',\n                              report_format: 'Tsv',\n                              aggregation: 'Daily',\n                              aggregation_period: 'ReportAggregation::Daily',\n                              columns: %w[AccountId AccountName CampaignId CampaignName AdGroupId AdGroupName KeywordId Keyword DestinationUrl DeliveredMatchType AverageCpc CurrentMaxCpc AdDistribution CurrencyCode Impressions Clicks Ctr CostPerConversion Spend AveragePosition TimePeriod CampaignStatus AdGroupStatus DeviceType]},\n                              {period: period})\n```\n\n### Bulk Service\n\n```ruby\nid = service.generate_report({report_type: 'DownloadCampaignsByAccountIds'\n                              report_format: 'Tsv',\n                              data_scope: 'EntityData'\n                              download_entities: ['Keywords']},\n                              {})\n```\n### Get Report\n\nGet report URL for download by report ID if it's ready\n\n```ruby\nservice.report_url(id) if service.report_ready?(id)\n```\n\nor get its content by ID (also once ready)\n\n```ruby\nservice.report_body(id) if service.report_ready?(id)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforward3d%2Fbing-ads-reporting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforward3d%2Fbing-ads-reporting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforward3d%2Fbing-ads-reporting/lists"}