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 +4 -4
- data/.gitignore +1 -1
- data/changelog.md +8 -1
- data/lib/bing_ads_ruby_sdk/oauth2/authorization_handler.rb +8 -5
- data/lib/bing_ads_ruby_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b8c8ea369c5e217bbcf2f35fe0c1225d119ced4
|
|
4
|
+
data.tar.gz: cd88b1d04577c366e05295dfafcab96882c1dfc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 335e4444c0a1ce0ed3a17211373cf8cdcbcf8036e84672f87f7da363f0f62fc2c2f41c49a6278b67d3eb05f241f53ddddfbaaf7c3abcbaaa249b23d6ee709db2
|
|
7
|
+
data.tar.gz: 85cc37120c77bab6522eb72922d77801060581616d804279a41caffa9057b9202af01e46d603d4f632ee39aa22d973efbca9467489236efd49c80c5655a591be
|
data/.gitignore
CHANGED
data/changelog.md
CHANGED
|
@@ -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.
|
|
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.
|
|
77
|
-
token_credential_uri: 'https://login.
|
|
78
|
-
redirect_uri: 'https://login.
|
|
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
|
|
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.
|
|
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-
|
|
12
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: signet
|