epom 0.10.5 → 0.10.7
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/lib/epom/version.rb +1 -1
- data/test/epom/banner_test.rb +16 -16
- data/test/epom/campaign_test.rb +38 -38
- 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: 1404f1d6c0e035603434e045c21eb686eaceb989
|
4
|
+
data.tar.gz: 758c02ff70ca25de2ac90b424d6f2a1c465f6c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398a566a43d5e9e14b4975b15dc13724bbd617e4bc552c34c7c89e325151cb1eaddac41afb96f318067eed7c7577e8fb1ec7c7f55b55afe3f28a71699fb7ec70
|
7
|
+
data.tar.gz: 58baa676c57ea59961bca342d812cd2c190f6ad5cfa365bc05b86554a7f3976eb813200b83d5734b8a118e95a3774b125dfecb0bb398e3faa3221bff2e9561f9
|
data/lib/epom/version.rb
CHANGED
data/test/epom/banner_test.rb
CHANGED
@@ -439,22 +439,22 @@ class BannerTest < ActiveSupport::TestCase
|
|
439
439
|
response
|
440
440
|
end
|
441
441
|
|
442
|
-
test "create_or_update_banner_placements" do
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
end
|
442
|
+
# test "create_or_update_banner_placements" do
|
443
|
+
# timestamp = Time.now.to_i * 1000
|
444
|
+
# url_params = {
|
445
|
+
# :bannerId => ENV['banner_id'],
|
446
|
+
# }
|
447
|
+
# body_params = {
|
448
|
+
# :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp),
|
449
|
+
# :timestamp => timestamp,
|
450
|
+
# :username => ENV['username'],
|
451
|
+
# :ids => ENV['placement_id']
|
452
|
+
# }
|
453
|
+
|
454
|
+
# response = Epom::Banner.create_or_update_banner_placements(url_params, body_params)
|
455
|
+
# assert_instance_of Hash, response
|
456
|
+
# assert response['success']
|
457
|
+
# end
|
458
458
|
|
459
459
|
test "update_banner_pricing" do
|
460
460
|
timestamp = Time.now.to_i * 1000
|
data/test/epom/campaign_test.rb
CHANGED
@@ -312,46 +312,46 @@ class CampaignTest < ActiveSupport::TestCase
|
|
312
312
|
## Campaign Adjusted CPM API
|
313
313
|
##########################
|
314
314
|
|
315
|
-
test "add_fixed_cpm_country_pricing" do
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
315
|
+
# test "add_fixed_cpm_country_pricing" do
|
316
|
+
# timestamp = Time.now.to_i * 1000
|
317
|
+
# url_params = {
|
318
|
+
# :campaignId => ENV['campaign_id']
|
319
|
+
# }
|
320
|
+
# body_params = {
|
321
|
+
# :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp),
|
322
|
+
# :timestamp => timestamp,
|
323
|
+
# :username => ENV['username'],
|
324
|
+
# :countryCode => ENV['country_code'],
|
325
|
+
# :value => '2.5',
|
326
|
+
# :date => DateTime.now.strftime('%Y-%m-%d-%H-%M')
|
327
|
+
# }
|
328
328
|
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
end
|
334
|
-
|
335
|
-
test "adjusted_cpm_list" do
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
329
|
+
# response = Epom::Campaign.add_fixed_cpm_country_pricing(url_params, body_params)
|
330
|
+
# assert_instance_of Hash, response
|
331
|
+
# assert_instance_of Fixnum, response['id']
|
332
|
+
# assert response['success']
|
333
|
+
# end
|
334
|
+
|
335
|
+
# test "adjusted_cpm_list" do
|
336
|
+
# timestamp = Time.now.to_i * 1000
|
337
|
+
# url_params = {
|
338
|
+
# :campaignId => ENV['campaign_id']
|
339
|
+
# }
|
340
|
+
# body_params = {
|
341
|
+
# :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp),
|
342
|
+
# :timestamp => timestamp,
|
343
|
+
# :username => ENV['username'],
|
344
|
+
# }
|
345
345
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
end
|
346
|
+
# response = Epom::Campaign.adjusted_cpm_list(url_params, body_params)
|
347
|
+
# assert_instance_of Array, response
|
348
|
+
# if response.count > 0
|
349
|
+
# first = response[0]
|
350
|
+
# assert_instance_of Fixnum, first['id']
|
351
|
+
# assert_instance_of Float, first['value']
|
352
|
+
# assert_instance_of String, first['country']
|
353
|
+
# end
|
354
|
+
# end
|
355
355
|
|
356
356
|
##########################
|
357
357
|
## Campaign Action Management API
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Quintero
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|