sklik-api 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sklik-api/campaign.rb +2 -2
- data/lib/sklik-api/campaign_parts/adgroup.rb +2 -2
- data/sklik-api.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/sklik-api/campaign.rb
CHANGED
@@ -320,7 +320,7 @@ Example of input hash
|
|
320
320
|
errors << message
|
321
321
|
end
|
322
322
|
|
323
|
-
def rollback!
|
323
|
+
def rollback! suffix = "FAILED ON CREATION"
|
324
324
|
#don't rollback if it is disabled!
|
325
325
|
return false unless SklikApi.use_rollback?
|
326
326
|
|
@@ -328,7 +328,7 @@ Example of input hash
|
|
328
328
|
old_errors = errors
|
329
329
|
|
330
330
|
SklikApi.log :info, "Campaign: #{@args[:campaign_id]} - ROLLBACK!"
|
331
|
-
update :name => "#{@args[:name]}
|
331
|
+
update :name => "#{@args[:name]} #{suffix} - #{Time.now.strftime("%Y.%m.%d %H:%M:%S")}"
|
332
332
|
#remove adgroup
|
333
333
|
remove
|
334
334
|
|
@@ -431,7 +431,7 @@ Example of input hash
|
|
431
431
|
errors << message
|
432
432
|
end
|
433
433
|
|
434
|
-
def rollback!
|
434
|
+
def rollback! suffix = "FAILED ON CREATION"
|
435
435
|
#don't rollback if it is disabled!
|
436
436
|
return false unless SklikApi.use_rollback?
|
437
437
|
|
@@ -439,7 +439,7 @@ Example of input hash
|
|
439
439
|
old_errors = errors
|
440
440
|
|
441
441
|
SklikApi.log :info, "Adgroup: #{@args[:adgroup_id]} - ROLLBACK!"
|
442
|
-
update :name => "#{@args[:name]}
|
442
|
+
update :name => "#{@args[:name]} #{suffix} - #{Time.now.strftime("%Y.%m.%d %H:%M:%S")}"
|
443
443
|
#remove adgroup
|
444
444
|
remove
|
445
445
|
|
data/sklik-api.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sklik-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -304,7 +304,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
304
304
|
version: '0'
|
305
305
|
segments:
|
306
306
|
- 0
|
307
|
-
hash:
|
307
|
+
hash: 88735919641886214
|
308
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
309
|
none: false
|
310
310
|
requirements:
|