bing-ads 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 423587915177b9c676bd2534087b0a8f233cbbc9
|
4
|
+
data.tar.gz: 5377b102e6a1512fbd268c97bada27af95482184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
@@ -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
|
data/lib/bing/ads/version.rb
CHANGED
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.
|
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-
|
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
|