Skip to content

Commit

Permalink
Merge pull request #28 from forward3d/upgrade-13
Browse files Browse the repository at this point in the history
Upgrade V13
  • Loading branch information
Babak Gh authored Dec 2, 2019
2 parents 728c4a3 + fa35db3 commit e9318cd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 129 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* 5.0.0
Fully using API V13
BREAKING CHANGE: AdInsightService class removed, use ReportingService instead

* 4.2.0
Add InsightService request class for custom reports.

Expand Down
116 changes: 0 additions & 116 deletions lib/bing-ads-reporting/ad_insight_service.rb

This file was deleted.

12 changes: 1 addition & 11 deletions lib/bing-ads-reporting/bulk_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module BingAdsReporting
class BulkService < ServiceCore
WDSL = 'https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V12/BulkService.svc?wsdl'.freeze
WDSL = 'https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V13/BulkService.svc?wsdl'.freeze
FAILED_STATUS = 'Failed'.freeze
SUCCESS_STATUS = 'Completed'.freeze

Expand Down Expand Up @@ -33,8 +33,6 @@ def generate_report_message(options)
data_scope = options[:data_scope]

message = report_message(options, data_scope)
message = message_data_scope(message, period) if data_scope == 'EntityPerformanceData'
# end
message
end

Expand All @@ -50,14 +48,6 @@ def report_message(options, data_scope)
}
end

def message_data_scope(message)
message[ns('PerformanceStatsDateRange')] = {
# apparently order is important, and end date has to be before start date, wtf
ns('CustomDateRangeEnd') => scope_data_range(period.to),
ns('CustomDateRangeStart') => scope_data_range(period.from)
}
end

def scope_data_range(period_range)
day_key = ns('Day')
month_key = ns('Month')
Expand Down
2 changes: 1 addition & 1 deletion lib/bing-ads-reporting/reporting_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module BingAdsReporting
class ReportingService < ServiceCore
WDSL = 'https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V12/ReportingService.svc?singleWsdl'.freeze
WDSL = 'https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V13/ReportingService.svc?singleWsdl'.freeze
FAILED_STATUS = 'Error'.freeze
SUCCESS_STATUS = 'Success'.freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/bing-ads-reporting/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BingAdsReporting
VERSION = '4.2.0'.freeze
VERSION = '5.0.0'.freeze
end

0 comments on commit e9318cd

Please sign in to comment.