-
Notifications
You must be signed in to change notification settings - Fork 2
/
fyber.rb
36 lines (30 loc) · 1.1 KB
/
fyber.rb
1
2
3
4
5
6
7
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
class AdtekioAdnetworks::Postbacks::Fyber < AdtekioAdnetworks::BasePostbackClass
include AdtekioAdnetworks::BasePostbacks
define_network_config do
[:appid]
end
define_postback_for :ios, :mac do
{ :url => "http://service.sponsorpay.com/installs/v2",
:params => {
:answer_received => "0",
:appid => "@{netcfg.appid}@",
:apple_idfa => "@{event.adid}@",
:apple_idfa_tracking_enabled => "true",
:ip => "@{event.ip}@",
:subid => "@{params[:click]}@"
},
}
end
define_postback_for :android, :mac do
{ :url => "http://service.sponsorpay.com/installs/v2",
:params => {
:answer_received => "0",
:appid => "@{netcfg.appid}@",
:google_ad_id => "@{event.gadid}@",
:google_ad_id_tracking_enabled => "true",
:ip => "@{event.ip}@",
:subid => "@{params[:click]}@"
},
}
end
end