bing_ads_ruby_sdk 1.5.0 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +21 -5
  4. data/Rakefile +1 -1
  5. data/bing_ads_ruby_sdk.gemspec +9 -1
  6. data/changelog.md +3 -0
  7. data/lib/Rakefile +4 -0
  8. data/lib/bing_ads_ruby_sdk/errors/errors.rb +1 -1
  9. data/lib/bing_ads_ruby_sdk/railtie.rb +13 -0
  10. data/{tasks → lib/bing_ads_ruby_sdk/tasks}/bing_ads_ruby_sdk.rake +1 -1
  11. data/lib/bing_ads_ruby_sdk/version.rb +1 -1
  12. data/lib/bing_ads_ruby_sdk.rb +1 -0
  13. metadata +6 -85
  14. data/.circleci/config.yml +0 -54
  15. data/.github/.keep +0 -0
  16. data/.github/renovate.json +0 -225
  17. data/.gitignore +0 -19
  18. data/.rspec +0 -4
  19. data/spec/bing_ads_ruby_sdk/api_spec.rb +0 -17
  20. data/spec/bing_ads_ruby_sdk/errors/error_handler_spec.rb +0 -477
  21. data/spec/bing_ads_ruby_sdk/errors/errors_spec.rb +0 -13
  22. data/spec/bing_ads_ruby_sdk/header_spec.rb +0 -60
  23. data/spec/bing_ads_ruby_sdk/http_client_spec.rb +0 -42
  24. data/spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb +0 -19
  25. data/spec/bing_ads_ruby_sdk/postprocessors/cast_long_arrays_spec.rb +0 -29
  26. data/spec/bing_ads_ruby_sdk/postprocessors/snakize_spec.rb +0 -39
  27. data/spec/bing_ads_ruby_sdk/preprocessors/camelize_spec.rb +0 -39
  28. data/spec/bing_ads_ruby_sdk/preprocessors/order_spec.rb +0 -130
  29. data/spec/bing_ads_ruby_sdk/services/bulk_spec.rb +0 -51
  30. data/spec/bing_ads_ruby_sdk/services/campaign_management_spec.rb +0 -314
  31. data/spec/bing_ads_ruby_sdk/services/customer_management_spec.rb +0 -96
  32. data/spec/bing_ads_ruby_sdk_spec.rb +0 -5
  33. data/spec/examples/1_customer_creation/customer_spec.rb +0 -35
  34. data/spec/examples/2_with_customer/budget_spec.rb +0 -52
  35. data/spec/examples/2_with_customer/campaigns_spec.rb +0 -26
  36. data/spec/examples/2_with_customer/customer_management_spec.rb +0 -188
  37. data/spec/examples/2_with_customer/uet_tags_spec.rb +0 -42
  38. data/spec/examples/3_with_uet_tag/conversion_goal_spec.rb +0 -40
  39. data/spec/examples/3_with_uet_tag/uet_tags_spec.rb +0 -56
  40. data/spec/examples/4_with_conversion_goal/conversion_goals_spec.rb +0 -76
  41. data/spec/examples/5_with_campaign/ad_extension_spec.rb +0 -235
  42. data/spec/examples/5_with_campaign/ad_group_spec.rb +0 -34
  43. data/spec/examples/5_with_campaign/campaign_criterions_spec.rb +0 -72
  44. data/spec/examples/5_with_campaign/campaign_spec.rb +0 -70
  45. data/spec/examples/6_with_ad_group/ad_group_spec.rb +0 -70
  46. data/spec/examples/6_with_ad_group/ads_spec.rb +0 -110
  47. data/spec/examples/6_with_ad_group/keywords_spec.rb +0 -105
  48. data/spec/examples/examples.rb +0 -75
  49. data/spec/fixtures/bulk/download_campaigns_by_account_ids/standard.xml +0 -23
  50. data/spec/fixtures/bulk/download_campaigns_by_account_ids/standard_response.xml +0 -11
  51. data/spec/fixtures/bulk/get_bulk_download_status/standard.xml +0 -14
  52. data/spec/fixtures/bulk/get_bulk_download_status/standard_response.xml +0 -15
  53. data/spec/fixtures/campaign_management/add_ad_extensions/standard.xml +0 -21
  54. data/spec/fixtures/campaign_management/add_ad_extensions/standard_response.xml +0 -17
  55. data/spec/fixtures/campaign_management/add_conversion_goals/standard.xml +0 -27
  56. data/spec/fixtures/campaign_management/add_conversion_goals/standard_response.xml +0 -14
  57. data/spec/fixtures/campaign_management/add_shared_entity/standard.xml +0 -16
  58. data/spec/fixtures/campaign_management/add_shared_entity/standard_response.xml +0 -13
  59. data/spec/fixtures/campaign_management/add_uet_tags/standard.xml +0 -19
  60. data/spec/fixtures/campaign_management/add_uet_tags/standard_response.xml +0 -21
  61. data/spec/fixtures/campaign_management/get_ad_extension_ids_by_account_id/standard.xml +0 -15
  62. data/spec/fixtures/campaign_management/get_ad_extension_ids_by_account_id/standard_response.xml +0 -13
  63. data/spec/fixtures/campaign_management/get_ad_extensions_associations/standard.xml +0 -19
  64. data/spec/fixtures/campaign_management/get_ad_extensions_associations/standard_response.xml +0 -47
  65. data/spec/fixtures/campaign_management/get_budgets_by_ids/standard.xml +0 -12
  66. data/spec/fixtures/campaign_management/get_budgets_by_ids/standard_response.xml +0 -20
  67. data/spec/fixtures/campaign_management/get_campaigns_by_account_id/standard.xml +0 -14
  68. data/spec/fixtures/campaign_management/get_campaigns_by_account_id/standard_response.xml +0 -84
  69. data/spec/fixtures/campaign_management/get_conversion_goals_by_ids/standard.xml +0 -18
  70. data/spec/fixtures/campaign_management/get_conversion_goals_by_ids/standard_response.xml +0 -61
  71. data/spec/fixtures/campaign_management/get_shared_entities_by_account_id/standard.xml +0 -14
  72. data/spec/fixtures/campaign_management/get_shared_entities_by_account_id/standard_response.xml +0 -20
  73. data/spec/fixtures/campaign_management/get_shared_entity_associations_by_entity_ids/standard.xml +0 -18
  74. data/spec/fixtures/campaign_management/get_shared_entity_associations_by_entity_ids/standard_response.xml +0 -19
  75. data/spec/fixtures/campaign_management/get_uet_tags_by_ids/standard.xml +0 -16
  76. data/spec/fixtures/campaign_management/get_uet_tags_by_ids/standard_response.xml +0 -21
  77. data/spec/fixtures/campaign_management/set_ad_extensions_associations/standard.xml +0 -21
  78. data/spec/fixtures/campaign_management/set_ad_extensions_associations/standard_response.xml +0 -11
  79. data/spec/fixtures/campaign_management/set_shared_entity_associations/standard.xml +0 -21
  80. data/spec/fixtures/campaign_management/set_shared_entity_associations/standard_response.xml +0 -11
  81. data/spec/fixtures/campaign_management/update_conversion_goals/standard.xml +0 -27
  82. data/spec/fixtures/campaign_management/update_conversion_goals/standard_response.xml +0 -11
  83. data/spec/fixtures/campaign_management/update_uet_tags/standard.xml +0 -20
  84. data/spec/fixtures/campaign_management/update_uet_tags/standard_response.xml +0 -11
  85. data/spec/fixtures/customer_management/find_accounts_or_customers_info/standard.xml +0 -15
  86. data/spec/fixtures/customer_management/find_accounts_or_customers_info/standard_response.xml +0 -21
  87. data/spec/fixtures/customer_management/get_account/standard.xml +0 -14
  88. data/spec/fixtures/customer_management/get_account/standard_response.xml +0 -43
  89. data/spec/fixtures/customer_management/signup_customer/standard.xml +0 -30
  90. data/spec/fixtures/customer_management/signup_customer/standard_response.xml +0 -15
  91. data/spec/fixtures/customer_management/update_account/standard.xml +0 -19
  92. data/spec/fixtures/customer_management/update_account/standard_response.xml +0 -11
  93. data/spec/spec_helper.rb +0 -33
  94. data/spec/support/spec_helpers.rb +0 -46
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a6b39b428d7a606c0072d095766bff29b4d7c9e44dd2f825bdb2654915ad14a
4
- data.tar.gz: 7d6c717dbec5df6bceeb13ec38a000bbf1252f83ce2030c1071a55fe3a8386ab
3
+ metadata.gz: ee1dd6d1c423e271f716d5a8d71aea958a73126002eb777a765f10416a0aa095
4
+ data.tar.gz: d145e027e36d473eb849a06e5eac94641f85f4c427a96a76136841e1a70a7814
5
5
  SHA512:
6
- metadata.gz: d6232334e3e2c510825d83b9d2476ca601eae477c744e7b9b30ac637d0afc3f965127043c5465d5797ec87dc67b4c80150c52dc54f680676c7be49da1f8d6c98
7
- data.tar.gz: e3ff1cc382a5099754b37fb42b7858d79c0474dcfd22faef5e05c8498ce9c61a625df852adc638d94463682beb37cbf1d715358d4fa80b6daf022510011640bf
6
+ metadata.gz: 7b78346cc370f6c287987c32cab9f898051158b40070375d3ae9f33b29fce2538674d276b8917cf9ce6710897b8727bd43dce1ae56a2346facf0087867300d6a
7
+ data.tar.gz: b3fdebf99829b5d1dafa5d30197829dabeedb8960727d0c49b7ab8b1990304f3589873137becefdc9b7f03c1ac5953c8174b76f29ee35b8323a011ea7034e70a
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in bing_ads_ruby_sdk.gemspec
4
4
  gemspec
5
5
 
6
- gem "standard", "1.16.1"
6
+ gem "standard", "1.25.3"
data/README.md CHANGED
@@ -18,14 +18,19 @@ Or install it yourself as:
18
18
 
19
19
  ## Getting Started
20
20
 
21
- In order to use Bing's api you need to get your api credentials from bing. From there gem handles the oauth token generation.
21
+ In order to use Microsoft's advertising API you need to
22
+ [get your API credentials from MS](https://learn.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13).
22
23
 
24
+ From there gem handles OAuth token generation.
23
25
  By default, there is only one store in the gem to store the oauth token. It's a file system based store. You can create one yourself to store credentials in a database or wherever you desire. The store class must implement `read` and `write(data)` instance methods.
24
26
 
25
- To get your token, run:
26
- ```ruby
27
- rake bing_token:get[my_token.json,your_dev_token,your_bing_client_id]
27
+ To get your token, run the `bing_token:get` rake task, then follow the prompts. Here's an example:
28
+
29
+ ```shell
30
+ bin/rake bing_token:get['credentials.json',YOUR_DEVELOPER_TOKEN,YOUR_CLIENT_ID,YOUR_CLIENT_SECRET]
28
31
 
32
+ # For example:
33
+ bin/rake bing_token:get['credentials.json',ABC1234,3431b6d0-a2ac-48e1-a1c5-1d0b82f3187f,SECRETVALUEHERE]
29
34
  ```
30
35
 
31
36
 
@@ -37,13 +42,22 @@ api = BingAdsRubySdk::Api.new(
37
42
  developer_token: 'your_dev_token',
38
43
  client_id: 'your_bing_client_id'
39
44
  )
45
+ ```
46
+
47
+ If you want to create an account using the API:
48
+ ```ruby
40
49
  api.customer_management.signup_customer(
41
50
  parent_customer_id: parent_customer_id,
42
51
  customer: customer_data, # a hash with your params
43
52
  account: account_data.merge("@type" => "AdvertiserAccount")
44
53
  )
54
+ ```
55
+
56
+ Otherwise you can [use existing account IDs as explained here](https://learn.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13#get-ids),
57
+ or use the `customer_management` endpoint as explained below.
45
58
 
46
- # once you have your bing customer and account ids:
59
+ Once you have your MS Advertising customer and account ids:
60
+ ```ruby
47
61
  api.set_customer(customer_id: customer_id, account_id: account_id )
48
62
 
49
63
  api.campaign_management.get_campaigns_by_account_id(account_id: account_id)
@@ -54,6 +68,8 @@ You'll see services like `customer_management` implement some methods, but not a
54
68
  The methods implemented contain additional code to ease data manipulation but any endpoint can be reached using `call` on a service.
55
69
 
56
70
  ```ruby
71
+ @cm = api.customer_management
72
+
57
73
  @cm.call(:find_accounts_or_customers_info, filter: 'name', top_n: 1)
58
74
  # => { account_info_with_customer_data: { account_info_with_customer_data: [{ customer_id: "250364751", :
59
75
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
  require "./lib/bing_ads_ruby_sdk"
4
- import "tasks/bing_ads_ruby_sdk.rake"
4
+ import "lib/bing_ads_ruby_sdk/tasks/bing_ads_ruby_sdk.rake"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
@@ -15,7 +15,15 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = "https://github.com/Effilab/bing_ads_ruby_sdk"
16
16
  spec.license = "MIT"
17
17
 
18
- spec.files = `git ls-files`.split($/)
18
+ spec.files = Dir[
19
+ "bing_ads_ruby_sdk.gemspec",
20
+ "changelog.md",
21
+ "README.md",
22
+ "Gemfile",
23
+ "Rakefile",
24
+ "LICENSE.txt",
25
+ "{bin,lib,tasks}/**/*"
26
+ ]
19
27
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
28
  spec.require_paths = ["lib"]
21
29
 
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## V1.5.1 Release
2
+ - Bug fix: Rake task missing
3
+
1
4
  ## V1.5.0 Release
2
5
  - Breaking: Now raises functional errors
3
6
  - Breaking: Now raises an error if not able to read the store in order to refresh the token
data/lib/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ require "bing_ads_ruby_sdk"
2
+
3
+ path = File.expand_path(__dir__)
4
+ Dir.glob("#{path}/tasks/**/*.rake").each { |f| import f }
@@ -67,7 +67,7 @@ module BingAdsRubySdk
67
67
 
68
68
  # Call sometimes returns an empty string instead of
69
69
  # nil for empty lists
70
- list.nil? || list.empty? ? nil : list
70
+ (list.nil? || list.empty?) ? nil : list
71
71
  end.compact
72
72
  end
73
73
 
@@ -0,0 +1,13 @@
1
+ require "bing_ads_ruby_sdk"
2
+ require "rails"
3
+
4
+ module BingAdsRubySdk
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :bing_ads_ruby_sdk
7
+
8
+ rake_tasks do
9
+ path = File.expand_path(__dir__)
10
+ Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f }
11
+ end
12
+ end
13
+ end
@@ -1,7 +1,7 @@
1
1
  require "dotenv/load"
2
2
 
3
3
  namespace :bing_token do
4
- desc "Gets and stores Bing OAuth token in file"
4
+ desc "Gets OAuth token from MS and stores it in a JSON file defined by filename parameter"
5
5
  task :get, [:filename, :bing_developer_token, :bing_client_id, :bing_client_secret] do |task, args|
6
6
  filename = args[:filename] || ENV.fetch("BING_STORE_FILENAME")
7
7
  developer_token = args[:bing_developer_token] || ENV.fetch("BING_DEVELOPER_TOKEN")
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BingAdsRubySdk
4
- VERSION = "1.5.0"
4
+ VERSION = "1.5.2"
5
5
  DEFAULT_SDK_VERSION = :v13
6
6
  end
@@ -7,6 +7,7 @@ require "bing_ads_ruby_sdk/version"
7
7
  require "bing_ads_ruby_sdk/configuration"
8
8
  require "bing_ads_ruby_sdk/api"
9
9
  require "bing_ads_ruby_sdk/string_utils"
10
+ require "bing_ads_ruby_sdk/railtie" if defined?(Rails)
10
11
 
11
12
  module BingAdsRubySdk
12
13
  def self.config
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.5.0
4
+ version: 1.5.2
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: 2022-11-04 00:00:00.000000000 Z
12
+ date: 2023-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: signet
@@ -188,11 +188,6 @@ executables:
188
188
  extensions: []
189
189
  extra_rdoc_files: []
190
190
  files:
191
- - ".circleci/config.yml"
192
- - ".github/.keep"
193
- - ".github/renovate.json"
194
- - ".gitignore"
195
- - ".rspec"
196
191
  - Gemfile
197
192
  - LICENSE.txt
198
193
  - README.md
@@ -201,6 +196,7 @@ files:
201
196
  - bin/setup
202
197
  - bing_ads_ruby_sdk.gemspec
203
198
  - changelog.md
199
+ - lib/Rakefile
204
200
  - lib/bing_ads_ruby_sdk.rb
205
201
  - lib/bing_ads_ruby_sdk/api.rb
206
202
  - lib/bing_ads_ruby_sdk/augmented_parser.rb
@@ -216,6 +212,7 @@ files:
216
212
  - lib/bing_ads_ruby_sdk/postprocessors/snakize.rb
217
213
  - lib/bing_ads_ruby_sdk/preprocessors/camelize.rb
218
214
  - lib/bing_ads_ruby_sdk/preprocessors/order.rb
215
+ - lib/bing_ads_ruby_sdk/railtie.rb
219
216
  - lib/bing_ads_ruby_sdk/services/ad_insight.rb
220
217
  - lib/bing_ads_ruby_sdk/services/base.rb
221
218
  - lib/bing_ads_ruby_sdk/services/bulk.rb
@@ -225,6 +222,7 @@ files:
225
222
  - lib/bing_ads_ruby_sdk/services/reporting.rb
226
223
  - lib/bing_ads_ruby_sdk/soap_client.rb
227
224
  - lib/bing_ads_ruby_sdk/string_utils.rb
225
+ - lib/bing_ads_ruby_sdk/tasks/bing_ads_ruby_sdk.rake
228
226
  - lib/bing_ads_ruby_sdk/version.rb
229
227
  - lib/bing_ads_ruby_sdk/wsdl/v13/production/ad_insight.xml
230
228
  - lib/bing_ads_ruby_sdk/wsdl/v13/production/bulk.xml
@@ -246,83 +244,6 @@ files:
246
244
  - lib/bing_ads_ruby_sdk/wsdl/v13/test/reporting.xml
247
245
  - lib/bing_ads_ruby_sdk/wsdl/wsdl_source.txt
248
246
  - lib/bing_ads_ruby_sdk/wsdl_operation_wrapper.rb
249
- - spec/bing_ads_ruby_sdk/api_spec.rb
250
- - spec/bing_ads_ruby_sdk/errors/error_handler_spec.rb
251
- - spec/bing_ads_ruby_sdk/errors/errors_spec.rb
252
- - spec/bing_ads_ruby_sdk/header_spec.rb
253
- - spec/bing_ads_ruby_sdk/http_client_spec.rb
254
- - spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
255
- - spec/bing_ads_ruby_sdk/postprocessors/cast_long_arrays_spec.rb
256
- - spec/bing_ads_ruby_sdk/postprocessors/snakize_spec.rb
257
- - spec/bing_ads_ruby_sdk/preprocessors/camelize_spec.rb
258
- - spec/bing_ads_ruby_sdk/preprocessors/order_spec.rb
259
- - spec/bing_ads_ruby_sdk/services/bulk_spec.rb
260
- - spec/bing_ads_ruby_sdk/services/campaign_management_spec.rb
261
- - spec/bing_ads_ruby_sdk/services/customer_management_spec.rb
262
- - spec/bing_ads_ruby_sdk_spec.rb
263
- - spec/examples/1_customer_creation/customer_spec.rb
264
- - spec/examples/2_with_customer/budget_spec.rb
265
- - spec/examples/2_with_customer/campaigns_spec.rb
266
- - spec/examples/2_with_customer/customer_management_spec.rb
267
- - spec/examples/2_with_customer/uet_tags_spec.rb
268
- - spec/examples/3_with_uet_tag/conversion_goal_spec.rb
269
- - spec/examples/3_with_uet_tag/uet_tags_spec.rb
270
- - spec/examples/4_with_conversion_goal/conversion_goals_spec.rb
271
- - spec/examples/5_with_campaign/ad_extension_spec.rb
272
- - spec/examples/5_with_campaign/ad_group_spec.rb
273
- - spec/examples/5_with_campaign/campaign_criterions_spec.rb
274
- - spec/examples/5_with_campaign/campaign_spec.rb
275
- - spec/examples/6_with_ad_group/ad_group_spec.rb
276
- - spec/examples/6_with_ad_group/ads_spec.rb
277
- - spec/examples/6_with_ad_group/keywords_spec.rb
278
- - spec/examples/examples.rb
279
- - spec/fixtures/bulk/download_campaigns_by_account_ids/standard.xml
280
- - spec/fixtures/bulk/download_campaigns_by_account_ids/standard_response.xml
281
- - spec/fixtures/bulk/get_bulk_download_status/standard.xml
282
- - spec/fixtures/bulk/get_bulk_download_status/standard_response.xml
283
- - spec/fixtures/campaign_management/add_ad_extensions/standard.xml
284
- - spec/fixtures/campaign_management/add_ad_extensions/standard_response.xml
285
- - spec/fixtures/campaign_management/add_conversion_goals/standard.xml
286
- - spec/fixtures/campaign_management/add_conversion_goals/standard_response.xml
287
- - spec/fixtures/campaign_management/add_shared_entity/standard.xml
288
- - spec/fixtures/campaign_management/add_shared_entity/standard_response.xml
289
- - spec/fixtures/campaign_management/add_uet_tags/standard.xml
290
- - spec/fixtures/campaign_management/add_uet_tags/standard_response.xml
291
- - spec/fixtures/campaign_management/get_ad_extension_ids_by_account_id/standard.xml
292
- - spec/fixtures/campaign_management/get_ad_extension_ids_by_account_id/standard_response.xml
293
- - spec/fixtures/campaign_management/get_ad_extensions_associations/standard.xml
294
- - spec/fixtures/campaign_management/get_ad_extensions_associations/standard_response.xml
295
- - spec/fixtures/campaign_management/get_budgets_by_ids/standard.xml
296
- - spec/fixtures/campaign_management/get_budgets_by_ids/standard_response.xml
297
- - spec/fixtures/campaign_management/get_campaigns_by_account_id/standard.xml
298
- - spec/fixtures/campaign_management/get_campaigns_by_account_id/standard_response.xml
299
- - spec/fixtures/campaign_management/get_conversion_goals_by_ids/standard.xml
300
- - spec/fixtures/campaign_management/get_conversion_goals_by_ids/standard_response.xml
301
- - spec/fixtures/campaign_management/get_shared_entities_by_account_id/standard.xml
302
- - spec/fixtures/campaign_management/get_shared_entities_by_account_id/standard_response.xml
303
- - spec/fixtures/campaign_management/get_shared_entity_associations_by_entity_ids/standard.xml
304
- - spec/fixtures/campaign_management/get_shared_entity_associations_by_entity_ids/standard_response.xml
305
- - spec/fixtures/campaign_management/get_uet_tags_by_ids/standard.xml
306
- - spec/fixtures/campaign_management/get_uet_tags_by_ids/standard_response.xml
307
- - spec/fixtures/campaign_management/set_ad_extensions_associations/standard.xml
308
- - spec/fixtures/campaign_management/set_ad_extensions_associations/standard_response.xml
309
- - spec/fixtures/campaign_management/set_shared_entity_associations/standard.xml
310
- - spec/fixtures/campaign_management/set_shared_entity_associations/standard_response.xml
311
- - spec/fixtures/campaign_management/update_conversion_goals/standard.xml
312
- - spec/fixtures/campaign_management/update_conversion_goals/standard_response.xml
313
- - spec/fixtures/campaign_management/update_uet_tags/standard.xml
314
- - spec/fixtures/campaign_management/update_uet_tags/standard_response.xml
315
- - spec/fixtures/customer_management/find_accounts_or_customers_info/standard.xml
316
- - spec/fixtures/customer_management/find_accounts_or_customers_info/standard_response.xml
317
- - spec/fixtures/customer_management/get_account/standard.xml
318
- - spec/fixtures/customer_management/get_account/standard_response.xml
319
- - spec/fixtures/customer_management/signup_customer/standard.xml
320
- - spec/fixtures/customer_management/signup_customer/standard_response.xml
321
- - spec/fixtures/customer_management/update_account/standard.xml
322
- - spec/fixtures/customer_management/update_account/standard_response.xml
323
- - spec/spec_helper.rb
324
- - spec/support/spec_helpers.rb
325
- - tasks/bing_ads_ruby_sdk.rake
326
247
  homepage: https://github.com/Effilab/bing_ads_ruby_sdk
327
248
  licenses:
328
249
  - MIT
@@ -342,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
263
  - !ruby/object:Gem::Version
343
264
  version: '0'
344
265
  requirements: []
345
- rubygems_version: 3.2.3
266
+ rubygems_version: 3.4.9
346
267
  signing_key:
347
268
  specification_version: 4
348
269
  summary: Bing Ads Ruby SDK
data/.circleci/config.yml DELETED
@@ -1,54 +0,0 @@
1
- version: 2.1
2
-
3
- commands:
4
- build:
5
- steps:
6
- - checkout
7
- # We can't use restore_cache because we don't include a Gemfile.lock in the Gem repo
8
- - run:
9
- name: install dependencies
10
- command: |
11
- bundle install --jobs=4 --retry=3 --path vendor/bundle
12
- - run: bundle exec standardrb
13
- - run:
14
- name: run tests
15
- command: |
16
- mkdir log/
17
- mkdir /tmp/test-results
18
- TEST_FILES="$(circleci tests glob "spec/bing_ads_ruby_sdk/**/*_spec.rb" | \
19
- circleci tests split --split-by=timings)"
20
-
21
- bundle exec rspec \
22
- --format progress \
23
- --format RspecJunitFormatter \
24
- --out /tmp/test-results/rspec.xml \
25
- --format progress \
26
- $TEST_FILES
27
- # collect reports
28
- - store_test_results:
29
- path: /tmp/test-results
30
- - store_artifacts:
31
- path: /tmp/test-results
32
- destination: test-results
33
-
34
- jobs:
35
- build_2_x:
36
- docker:
37
- - image: ruby:2.7.6
38
- working_directory: ~/repo
39
- steps:
40
- - build
41
-
42
- build_3_x:
43
- docker:
44
- - image: ruby:3.1.2
45
- working_directory: ~/repo
46
- steps:
47
- - build
48
-
49
- workflows:
50
- version: 2
51
- build:
52
- jobs:
53
- - build_2_x
54
- - build_3_x
data/.github/.keep DELETED
File without changes
@@ -1,225 +0,0 @@
1
- {
2
- "extends": [
3
- "config:base",
4
- "schedule:weekly",
5
- ":preserveSemverRanges"
6
- ],
7
- "kubernetes": {
8
- "fileMatch": [
9
- "\\.yaml$",
10
- "\\.tpl$"
11
- ]
12
- },
13
- "branchPrefix": "bot-",
14
- "hostRules": [
15
- {
16
- "matchHost": "github.com",
17
- "hostType": "rubygems",
18
- "encrypted": {
19
- "token": "wcFMA/xDdHCJBTolARAAjumTJ4PWx0T4aV3fSFZrLqZsnGUW+j+IKh1WPdzAiGdj+9zUQNcdJimlokWffqMzn3pNC8B8GMb+UjStyxQjZH+kzK6fEU4bn9hsg+g8LVHccvRXjzbIwaIyDcBZE0scr9yS7QRk/xI2vviDMAXTiyQEwMIRCfIAaPhcJBbg7L9kRmDmvnlDXPIVkzvenQYFA+3Smib0tL2glJ5NhS/ZgQUAIaz64d/Ibe+PM5atR2+cEf4o0PmBGSa6yGcGJX32kiR0AFMesNtIKWjh5UUjH4M5k0Uuz3bHU2Q85NjXrcmZD1Pqz//LZn+aFYSiDHM7sOHk+LXYnPtjs3+6KrI40tfo64kS4Xp72L/XhE0trhVPki2NmoQXU9ux8YgCCNZb4La3XcGlS0tWAAJU5Ebajx7qCVqweKpoEHHkim+sXl75s3Qu3WOQCgdAWtL3Vds3cu9D4ZEe0Hax6XxurZ/BuE5MS5i3Kd85JFlRgPD+C+/2EABKrCzTpDHNIK72tAY50rgFM1uvGIgaQVHEVsU0l1dm0DzxTwisWERpr90CNaz5dhGT5lYer+p8z5Gye00kn+SWyqWWTTZ0c+ZLh+eEQ6/TdWhFHjBi8524lvotbAT3Wq7lLDWeS3vAW/bj39v7LPbUGIXdvxIvF9EUwr1NRTviOASLXrEH7NNk99RheiLSdgFWqKKuKEGE2gq0t3vXA85GoT7wU0wB4RKCKqGrCK8AbL+PwvKxKZ+P63F+EfMyhIq89Qw9Szu6KbeNoYwsEQgYyXko/HDMWWqfQcTKEMF6rGf7KRmCFEIjrsSO4LJ+RcbmZBESr+L1T790c2nuFjwGI1qcA0Y"
20
- }
21
- }
22
- ],
23
- "vulnerabilityAlerts": {
24
- "enabled": true,
25
- "automerge": true,
26
- "groupName": null,
27
- "labels": [
28
- "security"
29
- ],
30
- "schedule": [
31
- "after 2am and before 6am every day"
32
- ]
33
- },
34
- "packageRules": [
35
- {
36
- "matchPackagePatterns": ["*"],
37
- "stabilityDays": 5
38
- },
39
- {
40
- "matchDatasources": ["terraform-module","terraform-provider"],
41
- "labels": ["terraform"],
42
- "groupName": "terraform",
43
- "automerge": false
44
- },
45
- {
46
- "matchDepTypes": ["devDependencies"],
47
- "matchPackagePatterns": ["lint", "prettier"],
48
- "groupName": "linter-update",
49
- "labels": ["linter-update"],
50
- "automerge": true
51
- },
52
- {
53
- "matchManagers": ["nodenv", "npm"],
54
- "groupName": "js-update",
55
- "labels": ["js-update"],
56
- "automerge": true
57
- },
58
- {
59
- "matchManagers": ["bundler", "ruby-version"],
60
- "groupName": "ruby-update",
61
- "automerge": true,
62
- "labels": ["ruby-update"]
63
- },
64
- {
65
- "matchManagers": ["pip-compile", "pip_requirements", "pip_setup", "pipenv", "pyenv", "setup-cfg"],
66
- "groupName": "python-update",
67
- "automerge": true,
68
- "labels": ["python-update"]
69
- },
70
- {
71
- "matchDepTypes": ["peerDependencies", "devDependencies", "dependencies"],
72
- "matchUpdateTypes": ["minor","patch","pin","digest","rollback","bump"],
73
- "groupName": "dep-update",
74
- "labels": ["dependencies-update"],
75
- "automerge": true
76
- },
77
- {
78
- "matchCurrentVersion": "/^v?[~ -]?0/",
79
- "matchUpdateTypes": [
80
- "minor",
81
- "patch",
82
- "pin",
83
- "digest",
84
- "rollback",
85
- "bump"
86
- ],
87
- "groupName": "betas can break",
88
- "labels": ["betas-update"],
89
- "description": "according semver spec, version <1 can introduce breaking changes on each rel",
90
- "automerge": false
91
- },
92
- {
93
- "matchManagers": ["gitlabci", "gitlabci-include", "circleci", "helm-requirements", "helm-values", "helmfile", "helmv3","docker-compose", "dockerfile","kubernetes"],
94
- "automerge": true,
95
- "groupName": "ci-update",
96
- "labels": ["ci-update"]
97
- },
98
- {
99
- "matchManagers": [
100
- "gitlabci",
101
- "gitlabci-include",
102
- "circleci",
103
- "helm-requirements",
104
- "helm-values",
105
- "helmfile",
106
- "helmv3",
107
- "docker-compose",
108
- "dockerfile",
109
- "kubernetes"
110
- ],
111
- "matchPackageNames": ["redis"],
112
- "allowedVersions": "<6",
113
- "automerge": true,
114
- "groupName": "redis-update",
115
- "description": "explicit max version to keep coherence with real infra on GCP"
116
- },
117
- {
118
- "matchPackageNames": ["jdk","openjdk"],
119
- "allowedVersions": "<18",
120
- "automerge": true,
121
- "groupName": "jdk-update",
122
- "description": "explicit max version to keep LTS only"
123
- },
124
- {
125
- "matchPackageNames": ["cimg/postgres","postgres","postgis","postgis/postgis"],
126
- "allowedVersions": "<14",
127
- "automerge": true,
128
- "groupName": "postgres-update",
129
- "labels": ["postgres"],
130
- "description": "explicit max version to prevent issue like need to coordinate with real infra on GCP"
131
- },
132
- {
133
- "matchPackageNames": ["ruby","circleci/ruby","cimg/ruby"],
134
- "allowedVersions": "<4",
135
- "groupName": "rubycore-update",
136
- "description": "explicit max version to prevent issues",
137
- "labels": ["rubycore-update"]
138
- },
139
- {
140
- "matchPackageNames": ["node","circleci/node","cimg/node"],
141
- "automerge": true,
142
- "allowedVersions": "<17",
143
- "groupName": "node-update",
144
- "labels": ["node-update"],
145
- "description": "explicit max LTS version to prevent issues : https://cloud.google.com/functions/docs/concepts/nodejs-runtime "
146
- },
147
- {
148
- "matchPackageNames": ["python"],
149
- "automerge": true,
150
- "groupName": "python-update",
151
- "labels": ["python-update"]
152
- },
153
- {
154
- "matchPackageNames": ["circleci/python","cimg/python"],
155
- "automerge": true,
156
- "allowedVersions": "<4",
157
- "groupName": "pythoncore-update",
158
- "labels": ["pythoncore-update"],
159
- "description": "explicit max major version to prevent issues"
160
- },
161
- {
162
- "matchPackageNames": ["xgboost"],
163
- "automerge": true,
164
- "allowedVersions": "<1.5",
165
- "groupName": "xgboost-update",
166
- "description": "limitation from the data model used in pricer"
167
- },
168
- {
169
- "matchPackageNames": ["pandas"],
170
- "allowedVersions": "<1.4",
171
- "automerge": true,
172
- "groupName": "pandas-update",
173
- "description": "limitation from dataiku, don't merge upper than 1.3 for now"
174
- },
175
- {
176
- "matchPackageNames": [
177
- "gql"
178
- ],
179
- "automerge": true,
180
- "allowedVersions": "<3",
181
- "groupName": "gql-update",
182
- "description": "limitation from dataiku"
183
- },
184
- {
185
- "matchPackageNames": [
186
- "envkey"
187
- ],
188
- "automerge": true,
189
- "allowedVersions": "<2",
190
- "groupName": "envkey-update",
191
- "description": "no switch for now"
192
- },
193
- {
194
- "matchPackageNames": [
195
- "facebookbusiness"
196
- ],
197
- "groupName": "envkey-update",
198
- "description": "Facebook API",
199
- "labels": [
200
- "apifacebook-update"
201
- ]
202
- },
203
- {
204
- "matchPackageNames": [
205
- "google-ads-googleads"
206
- ],
207
- "groupName": "googleads-update",
208
- "description": "Google Ads API",
209
- "labels": [
210
- "apigoogleads-update"
211
- ]
212
- }
213
- ],
214
- "lockFileMaintenance": {
215
- "enabled": true,
216
- "schedule": ["after 2am and before 6am every monday"],
217
- "commitMessageAction": "Update lockfiles",
218
- "groupName": "lockfile-update",
219
- "labels": ["lockfile-update"],
220
- "automerge": true
221
- },
222
- "dependencyDashboard": true,
223
- "timezone": "Europe/Paris",
224
- "prHourlyLimit": 6
225
- }
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /log/*
11
- vendor/bundle/
12
-
13
- # rspec failure tracking
14
- .rspec_status
15
- .token_*
16
-
17
- .byebug_history
18
- .env
19
- custom_setup.rb
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- --format progress
2
- --color
3
- --exclude-pattern '**/examples/**/*_spec.rb'
4
- --require spec_helper
@@ -1,17 +0,0 @@
1
- RSpec.describe BingAdsRubySdk::Api do
2
- subject do
3
- described_class.new(
4
- environment: :test,
5
- oauth_store: SpecHelpers.default_store,
6
- client_id: "client_id",
7
- developer_token: "developer_token"
8
- )
9
- end
10
-
11
- it { expect(subject.ad_insight).to be_a(BingAdsRubySdk::Services::AdInsight) }
12
- it { expect(subject.bulk).to be_a(BingAdsRubySdk::Services::Bulk) }
13
- it { expect(subject.campaign_management).to be_a(BingAdsRubySdk::Services::CampaignManagement) }
14
- it { expect(subject.customer_billing).to be_a(BingAdsRubySdk::Services::CustomerBilling) }
15
- it { expect(subject.customer_management).to be_a(BingAdsRubySdk::Services::CustomerManagement) }
16
- it { expect(subject.reporting).to be_a(BingAdsRubySdk::Services::Reporting) }
17
- end