Skip to content

Commit

Permalink
Upgrade to V13
Browse files Browse the repository at this point in the history
  • Loading branch information
Babak Gh committed Dec 2, 2019
1 parent 728c4a3 commit 24b08a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 128 deletions.
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

0 comments on commit 24b08a8

Please sign in to comment.