bing-ads 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb865140e65821f31450432bb087cb89143455d2
4
- data.tar.gz: 02b9ad77ad75865f776349d756a8db170379755f
3
+ metadata.gz: 423587915177b9c676bd2534087b0a8f233cbbc9
4
+ data.tar.gz: 5377b102e6a1512fbd268c97bada27af95482184
5
5
  SHA512:
6
- metadata.gz: f267aae4e994cab02ef1e910a51c10958b7f1c7da008088fddcc3a403b25fd910138477729cb1c21a9afa3b4ef1a4bce9ea1d8eded3506ac22a760d8b34962ad
7
- data.tar.gz: 3190d86f5f162e44ac0700ff48c3cad6c26412e74dbe5db166e56fc5809f3bc5eedf9bebeb66612a4ad84fb08f3bcfae1f8a9ed68f0537f59464b65117e56ceb
6
+ metadata.gz: 56a1313389de341e937e47b94ec8fec9be888f619a547000bbfc305f28dd78de618b5578b8e6f345e7117ca2dc89a6f2693cca82ea9c43666283bf9344e2be33
7
+ data.tar.gz: 5dbd8a412d30767047a3a7dc6380fdb134f240d543ba121653f7857d0247e22470ae2ae8ca8cee07f660b1bfc07fcdd2ef2d9c772048c67b1b7d292cf968dfda
@@ -2,7 +2,9 @@ sandbox:
2
2
  customer_management: https://clientcenter.api.sandbox.bingads.microsoft.com/Api/CustomerManagement/v11/CustomerManagementService.svc?singleWsdl
3
3
  campaign_management: "https://campaign.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/CampaignManagementService.svc?singleWsdl"
4
4
  reporting: "https://api.sandbox.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc?singleWsdl"
5
+ bulk: 'https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc?singleWsdl'
5
6
  production:
6
7
  customer_management: https://clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v11/CustomerManagementService.svc?singleWsdl
7
8
  campaign_management: "https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/CampaignManagementService.svc?singleWsdl"
8
9
  reporting: "https://api.bingads.microsoft.com/Api/Advertiser/Reporting/V11/ReportingService.svc?singleWsdl"
10
+ bulk: 'https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/V11/BulkService.svc?singleWsdl'
@@ -1,3 +1,4 @@
1
1
  require_relative './services/base'
2
+ require_relative './services/bulk'
2
3
  require_relative './services/campaign_management'
3
4
  require_relative './services/customer_management'
@@ -0,0 +1,36 @@
1
+ module Bing
2
+ module Ads
3
+ module API
4
+ module V11
5
+ module Services
6
+ # Bing::Ads::API::V11::Services::Bulk
7
+ class Bulk < Base
8
+ def initialize(options = {})
9
+ super(options)
10
+ end
11
+
12
+ def get_bulk_upload_url(account_id = nil, response_mode = 'ErrorsOnly')
13
+ account_id ||= @account_id
14
+
15
+ response = call(__method__, response_mode: response_mode, account_id: account_id)
16
+ response_body = response_body(response, __method__)
17
+ response_body.slice(:request_id, :upload_url)
18
+ end
19
+
20
+ def get_bulk_upload_status(request_id)
21
+ response = call(__method__, request_id: request_id)
22
+ response_body = response_body(response, __method__)
23
+ response_body.slice(:errors, :percent_complete, :request_status, :result_file_url)
24
+ end
25
+
26
+ private
27
+
28
+ def service_name
29
+ 'bulk'
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -1,5 +1,5 @@
1
1
  module Bing
2
2
  module Ads
3
- VERSION = '0.1.10'
3
+ VERSION = '0.1.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bing-ads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - oss92
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -132,6 +132,7 @@ files:
132
132
  - lib/bing/ads/api/v11/data/keyword.rb
133
133
  - lib/bing/ads/api/v11/services.rb
134
134
  - lib/bing/ads/api/v11/services/base.rb
135
+ - lib/bing/ads/api/v11/services/bulk.rb
135
136
  - lib/bing/ads/api/v11/services/campaign_management.rb
136
137
  - lib/bing/ads/api/v11/services/customer_management.rb
137
138
  - lib/bing/ads/utils.rb