adzerk 0.1 → 0.1.2

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.
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Creative API" do
4
+
5
+ $creative_url = 'http://www.adzerk.com'
6
+ @@creative = $adzerk::Creative.new
7
+ @@advertiser = $adzerk::Advertiser.new
8
+
9
+ before(:all) do
10
+ new_advertiser = {
11
+ 'Title' => "Test"
12
+ }
13
+ response = @@advertiser.create(new_advertiser)
14
+ $advertiserId = JSON.parse(response.body)["Id"]
15
+ end
16
+
17
+ it "should create a creative" do
18
+ $Title = 'Test creative ' + rand(1000000).to_s
19
+ $ImageName = ""
20
+ $Url = "http://adzerk.com"
21
+ $AdvertiserId = $advertiserId
22
+ $AdTypeId = 18
23
+ $IsActive = true
24
+ $Alt = "test alt"
25
+ $IsDeleted = false
26
+ $IsSync = false
27
+
28
+ new_creative = {
29
+ 'Title' => $Title,
30
+ 'ImageName' => $ImageName,
31
+ 'Url' => $Url,
32
+ 'AdvertiserId' => $AdvertiserId,
33
+ 'AdTypeId' => $AdTypeId,
34
+ 'IsActive' => $IsActive,
35
+ 'Alt' => $Alt,
36
+ 'IsDeleted' => $IsDeleted,
37
+ 'IsSync' => $IsSync
38
+ }
39
+ response = @@creative.create(new_creative, '250x250.gif')
40
+ puts response
41
+
42
+ end
43
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adzerk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- version: "0.1"
9
+ - 2
10
+ version: 0.1.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Kacy Fortner
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-09-30 00:00:00 Z
18
+ date: 2012-04-10 00:00:00 Z
18
19
  dependencies: []
19
20
 
20
21
  description: Ruby library for the Adzerk API
@@ -30,11 +31,13 @@ files:
30
31
  - lib/adzerk/Advertiser.rb
31
32
  - lib/adzerk/Campaign.rb
32
33
  - lib/adzerk/Channel.rb
34
+ - lib/adzerk/ChannelSiteMap.rb
33
35
  - lib/adzerk/Creative.rb
34
36
  - lib/adzerk/CreativeMap.rb
35
37
  - lib/adzerk/Flight.rb
36
38
  - lib/adzerk/Invitation.rb
37
39
  - lib/adzerk/Login.rb
40
+ - lib/adzerk/Priority.rb
38
41
  - lib/adzerk/Publisher.rb
39
42
  - lib/adzerk/Reporting.rb
40
43
  - lib/adzerk/Site.rb
@@ -42,16 +45,19 @@ files:
42
45
  - test/campaign_api_spec.rb
43
46
  - test/channel_api_security_spec.rb
44
47
  - test/channel_api_spec.rb
48
+ - test/channel_site_map_api_spec.rb
45
49
  - test/creative_api_spec.rb
46
50
  - test/creative_map_api_spec.rb
47
51
  - test/flight_api_spec.rb
48
52
  - test/invitation_api_spec.rb
49
53
  - test/login_api_spec.rb
54
+ - test/priority_api_spec.rb
50
55
  - test/publisher_api_spec.rb
51
56
  - test/rakefile.rb
52
57
  - test/report_api_spec.rb
53
58
  - test/site_api_spec.rb
54
59
  - test/spec_helper.rb
60
+ - test/test.rb
55
61
  homepage: http://adzerk.com
56
62
  licenses: []
57
63