8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/epom/placement.rb', line 8
def self.extended_methods
{
:delete_placement => {
:url => '/rest-api/placements/PLACEMENT_ID/delete.do',
:url_parameters => [:placementId],
:body_parameters => [:hash, :timestamp, :username],
:method => :post
},
:set_placement_pricing => {
:url => '/rest-api/placements/PLACEMENT_ID/pricing.do?username=USERNAME×tamp=TIMESTAMP&hash=HASH',
:url_parameters => [:placementId, :hash, :timestamp, :username],
:body_parameters => [],
:method => :post,
:headers => {'Content-type' => 'application/json'}
},
:get_placement_summary => {
:url => '/rest-api/placements/summary.do',
:body_parameters => [:placementIds, :publishingCategories, :hash, :timestamp, :username],
:method => :get
},
:update_mobile_placement => {
:url => '/rest-api/placements/update/mobile.do',
:body_parameters => [:id, :zoneId, :type, :name, :description, :defaultCode, :hash, :timestamp, :username],
:method => :post
},
:update_non_standard_placement => {
:url => '/rest-api/placements/update/non-standard.do',
:body_parameters => [:id, :zoneId, :type, :name, :description, :hash, :timestamp, :username],
:method => :post
},
:create_non_standard_placement => {
:url => '/rest-api/placements/update/non-standard.do',
:body_parameters => [:zoneId, :type, :name, :description, :hash, :timestamp, :username],
:method => :post
},
:update_standard_placement => {
:url => '/rest-api/placements/update/standard.do',
:body_parameters => [:id, :zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
:method => :post
},
:create_standard_placement => {
:url => '/rest-api/placements/update/standard.do',
:body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
:method => :post
},
:update_placement => {
:url => '/rest-api/placements/update/standard.do',
:body_parameters => [:id, :zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
:method => :post
},
:create_placement => {
:url => '/rest-api/placements/update/standard.do',
:body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
:method => :post
}
}
end
|