bing_ads_ruby_sdk 1.1.1 → 1.2.0

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: ce80af64e821e08a142bf3ae1bfc9aa1e2da67ba
4
- data.tar.gz: 46e97d7d9485da0eb2df87c37c1906adbc1f78ec
3
+ metadata.gz: 1b8c8ea369c5e217bbcf2f35fe0c1225d119ced4
4
+ data.tar.gz: cd88b1d04577c366e05295dfafcab96882c1dfc4
5
5
  SHA512:
6
- metadata.gz: f8542fd01bb8f3d8b0c1e381edd6ba387eea99406048475c0eea5abaf10ca7a2338a2a05953f76ab04c1ff15f2c5a65e50f6e9fbbd3294b01d7e96daaa91957d
7
- data.tar.gz: 547ef10450196ac9ff56c412db09fb96fd969fecb2f58d3b2031f407d501388cc8a5a1fa0e61fee7fce1176bd2a075c2281d70ac92379cf3ff6d0d5d6545c52d
6
+ metadata.gz: 335e4444c0a1ce0ed3a17211373cf8cdcbcf8036e84672f87f7da363f0f62fc2c2f41c49a6278b67d3eb05f241f53ddddfbaaf7c3abcbaaa249b23d6ee709db2
7
+ data.tar.gz: 85cc37120c77bab6522eb72922d77801060581616d804279a41caffa9057b9202af01e46d603d4f632ee39aa22d973efbca9467489236efd49c80c5655a591be
data/.gitignore CHANGED
@@ -16,4 +16,4 @@ vendor/bundle/
16
16
 
17
17
  .byebug_history
18
18
  .env
19
- custom_setup.rb
19
+ custom_setup.rb
@@ -1,3 +1,10 @@
1
+ ## V1.2.0 Release
2
+ Replaced Live connect auth with Microsoft Identity as it is now the default from Bing.
3
+
4
+ ## V1.1.1 Release
5
+
6
+ - fix broken 1.1.0 which didnt bundle lib folder in gem release
7
+
1
8
  ## V1.1.0 Release
2
9
 
3
10
  - Use bing api v13
@@ -27,4 +34,4 @@ Alongside these key points, we now have:
27
34
 
28
35
  - Use bing api v12
29
36
 
30
- - Bulk api v6
37
+ - Bulk api v6
@@ -19,7 +19,9 @@ module BingAdsRubySdk
19
19
  # @return [nil] if client.client_id is nil.
20
20
  def code_url
21
21
  return nil if client.client_id.nil?
22
- "https://login.live.com/oauth20_authorize.srf?client_id=#{client.client_id}&scope=bingads.manage&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf"
22
+ "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=#{client.client_id}&"\
23
+ "scope=offline_access+https://ads.microsoft.com/ads.manage&response_type=code&"\
24
+ "redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient"
23
25
  end
24
26
 
25
27
  # Once you have completed the oauth process in your browser using the code_url
@@ -73,11 +75,12 @@ module BingAdsRubySdk
73
75
 
74
76
  def build_client(developer_token, client_id)
75
77
  Signet::OAuth2::Client.new({
76
- authorization_uri: 'https://login.live.com/oauth20_authorize.srf',
77
- token_credential_uri: 'https://login.live.com/oauth20_token.srf',
78
- redirect_uri: 'https://login.live.com/oauth20_desktop.srf',
78
+ authorization_uri: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
79
+ token_credential_uri: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
80
+ redirect_uri: 'https://login.microsoftonline.com/common/oauth2/nativeclient',
79
81
  developer_token: developer_token,
80
- client_id: client_id
82
+ client_id: client_id,
83
+ scope: 'offline_access'
81
84
  })
82
85
  end
83
86
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BingAdsRubySdk
4
- VERSION = '1.1.1'.freeze
4
+ VERSION = '1.2.0'.freeze
5
5
  DEFAULT_SDK_VERSION = :v13
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bing_ads_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Effilab
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-29 00:00:00.000000000 Z
12
+ date: 2019-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: signet