adcenter_api 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +57 -0
- data/lib/adcenter_api.rb +180 -0
- data/lib/adcenter_api/api_config.rb +163 -0
- data/lib/adcenter_api/client_login_header_handler.rb +70 -0
- data/lib/adcenter_api/credential_handler.rb +104 -0
- data/lib/adcenter_api/errors.rb +565 -0
- data/lib/adcenter_api/report_header_handler.rb +46 -0
- data/lib/adcenter_api/report_utils.rb +203 -0
- data/lib/adcenter_api/v7/administration_service.rb +38 -0
- data/lib/adcenter_api/v7/administration_service_registry.rb +30 -0
- data/lib/adcenter_api/v7/campaign_management_service.rb +398 -0
- data/lib/adcenter_api/v7/campaign_management_service_registry.rb +30 -0
- data/lib/adcenter_api/v7/customer_billing_service.rb +58 -0
- data/lib/adcenter_api/v7/customer_billing_service_registry.rb +30 -0
- data/lib/adcenter_api/v7/customer_management_service.rb +98 -0
- data/lib/adcenter_api/v7/customer_management_service_registry.rb +30 -0
- data/lib/adcenter_api/v7/notification_service.rb +38 -0
- data/lib/adcenter_api/v7/notification_service_registry.rb +30 -0
- data/lib/adcenter_api/v7/reporting_service.rb +38 -0
- data/lib/adcenter_api/v7/reporting_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/ad_intelligence_service.rb +86 -0
- data/lib/adcenter_api/v8/ad_intelligence_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/administration_service.rb +38 -0
- data/lib/adcenter_api/v8/administration_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/bulk_service.rb +42 -0
- data/lib/adcenter_api/v8/bulk_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/campaign_management_service.rb +390 -0
- data/lib/adcenter_api/v8/campaign_management_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/customer_billing_service.rb +62 -0
- data/lib/adcenter_api/v8/customer_billing_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/customer_management_service.rb +162 -0
- data/lib/adcenter_api/v8/customer_management_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/notification_service.rb +38 -0
- data/lib/adcenter_api/v8/notification_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/optimizer_service.rb +46 -0
- data/lib/adcenter_api/v8/optimizer_service_registry.rb +30 -0
- data/lib/adcenter_api/v8/reporting_service.rb +38 -0
- data/lib/adcenter_api/v8/reporting_service_registry.rb +30 -0
- data/lib/adcenter_api/version.rb +5 -0
- data/lib/ads_common/api_config_decorator.rb +43 -0
- data/lib/ads_common/auth/client_login_handler_decorator.rb +168 -0
- data/lib/ads_common/build/savon_registry_decorator.rb +16 -0
- data/lib/ads_common/parameters_validator_decorator.rb +37 -0
- data/lib/ads_common/savon_headers_base_header_handler_decorator.rb +23 -0
- data/lib/ads_common/savon_service_decorator.rb +109 -0
- data/rakefile.rb +54 -0
- metadata +157 -0
data/rakefile.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require 'rubygems'
|
3
|
+
begin
|
4
|
+
require 'bundler/setup'
|
5
|
+
rescue LoadError
|
6
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'rake'
|
10
|
+
require 'rdoc/task'
|
11
|
+
require "rspec/core/rake_task"
|
12
|
+
|
13
|
+
desc "Run all test with spec"
|
14
|
+
RSpec::Core::RakeTask.new('spec') do |spec|
|
15
|
+
spec.rspec_opts = %w[--color]
|
16
|
+
spec.pattern = 'spec/*_spec.rb'
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Run tests"
|
20
|
+
task :default => :spec
|
21
|
+
|
22
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
23
|
+
rdoc.rdoc_dir = 'rdoc'
|
24
|
+
rdoc.title = 'AdcenterApi'
|
25
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
26
|
+
rdoc.rdoc_files.include('README.rdoc')
|
27
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
28
|
+
end
|
29
|
+
|
30
|
+
lib = File.expand_path('../lib/', __FILE__)
|
31
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
32
|
+
|
33
|
+
# GENERATE API SERVICES
|
34
|
+
require 'ads_common/build/savon_generator'
|
35
|
+
require 'adcenter_api/api_config'
|
36
|
+
require 'ads_common/api_config_decorator'
|
37
|
+
require 'ads_common/build/savon_registry_decorator'
|
38
|
+
desc 'Generate the Adcenter API stubs.'
|
39
|
+
|
40
|
+
task :generate do
|
41
|
+
logger = Logger.new(STDOUT)
|
42
|
+
logger.level = Logger::INFO
|
43
|
+
api_config = AdcenterApi::ApiConfig
|
44
|
+
versions = api_config.versions()
|
45
|
+
versions.each do |version|
|
46
|
+
code_path = 'lib/%s/%s' % [api_config.api_name.to_s.snakecase, version]
|
47
|
+
wsdls = AdcenterApi::ApiConfig.get_wsdls(version)
|
48
|
+
wsdls.each do |service_name, wsdl_url|
|
49
|
+
logger.info('Processing %s at [%s]...' % [service_name, wsdl_url])
|
50
|
+
generator = AdsCommon::Build::SavonGenerator.new(wsdl_url, code_path, api_config.api_name, version, service_name)
|
51
|
+
generator.process_wsdl()
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
metadata
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: adcenter_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Adrien Rambert
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: savon
|
16
|
+
requirement: &2153226260 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2153226260
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: httpi
|
27
|
+
requirement: &2153225760 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.0
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2153225760
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: activesupport
|
38
|
+
requirement: &2153225300 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.1.0
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2153225300
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-ads-common
|
49
|
+
requirement: &2153224920 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2153224920
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rake
|
60
|
+
requirement: &2153240820 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2153240820
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: &2153240320 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '2.8'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2153240320
|
80
|
+
description: Ruby wrapper for Microsoft Adcenter API
|
81
|
+
email:
|
82
|
+
- arambert@optimeez.com
|
83
|
+
executables: []
|
84
|
+
extensions: []
|
85
|
+
extra_rdoc_files: []
|
86
|
+
files:
|
87
|
+
- lib/adcenter_api/api_config.rb
|
88
|
+
- lib/adcenter_api/client_login_header_handler.rb
|
89
|
+
- lib/adcenter_api/credential_handler.rb
|
90
|
+
- lib/adcenter_api/errors.rb
|
91
|
+
- lib/adcenter_api/report_header_handler.rb
|
92
|
+
- lib/adcenter_api/report_utils.rb
|
93
|
+
- lib/adcenter_api/v7/administration_service.rb
|
94
|
+
- lib/adcenter_api/v7/administration_service_registry.rb
|
95
|
+
- lib/adcenter_api/v7/campaign_management_service.rb
|
96
|
+
- lib/adcenter_api/v7/campaign_management_service_registry.rb
|
97
|
+
- lib/adcenter_api/v7/customer_billing_service.rb
|
98
|
+
- lib/adcenter_api/v7/customer_billing_service_registry.rb
|
99
|
+
- lib/adcenter_api/v7/customer_management_service.rb
|
100
|
+
- lib/adcenter_api/v7/customer_management_service_registry.rb
|
101
|
+
- lib/adcenter_api/v7/notification_service.rb
|
102
|
+
- lib/adcenter_api/v7/notification_service_registry.rb
|
103
|
+
- lib/adcenter_api/v7/reporting_service.rb
|
104
|
+
- lib/adcenter_api/v7/reporting_service_registry.rb
|
105
|
+
- lib/adcenter_api/v8/ad_intelligence_service.rb
|
106
|
+
- lib/adcenter_api/v8/ad_intelligence_service_registry.rb
|
107
|
+
- lib/adcenter_api/v8/administration_service.rb
|
108
|
+
- lib/adcenter_api/v8/administration_service_registry.rb
|
109
|
+
- lib/adcenter_api/v8/bulk_service.rb
|
110
|
+
- lib/adcenter_api/v8/bulk_service_registry.rb
|
111
|
+
- lib/adcenter_api/v8/campaign_management_service.rb
|
112
|
+
- lib/adcenter_api/v8/campaign_management_service_registry.rb
|
113
|
+
- lib/adcenter_api/v8/customer_billing_service.rb
|
114
|
+
- lib/adcenter_api/v8/customer_billing_service_registry.rb
|
115
|
+
- lib/adcenter_api/v8/customer_management_service.rb
|
116
|
+
- lib/adcenter_api/v8/customer_management_service_registry.rb
|
117
|
+
- lib/adcenter_api/v8/notification_service.rb
|
118
|
+
- lib/adcenter_api/v8/notification_service_registry.rb
|
119
|
+
- lib/adcenter_api/v8/optimizer_service.rb
|
120
|
+
- lib/adcenter_api/v8/optimizer_service_registry.rb
|
121
|
+
- lib/adcenter_api/v8/reporting_service.rb
|
122
|
+
- lib/adcenter_api/v8/reporting_service_registry.rb
|
123
|
+
- lib/adcenter_api/version.rb
|
124
|
+
- lib/adcenter_api.rb
|
125
|
+
- lib/ads_common/api_config_decorator.rb
|
126
|
+
- lib/ads_common/auth/client_login_handler_decorator.rb
|
127
|
+
- lib/ads_common/build/savon_registry_decorator.rb
|
128
|
+
- lib/ads_common/parameters_validator_decorator.rb
|
129
|
+
- lib/ads_common/savon_headers_base_header_handler_decorator.rb
|
130
|
+
- lib/ads_common/savon_service_decorator.rb
|
131
|
+
- rakefile.rb
|
132
|
+
- README.md
|
133
|
+
homepage: https://github.com/weboglobin/adcenter_api
|
134
|
+
licenses: []
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
requirements: []
|
152
|
+
rubyforge_project:
|
153
|
+
rubygems_version: 1.8.15
|
154
|
+
signing_key:
|
155
|
+
specification_version: 3
|
156
|
+
summary: Ruby wrapper for Microsoft Adcenter API
|
157
|
+
test_files: []
|