bing_ads_api 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +57 -0
- data/lib/ads_common_for_bing_ads.rb +49 -0
- data/lib/ads_common_for_bing_ads/api_config.rb +41 -0
- data/lib/ads_common_for_bing_ads/auth/client_login_handler.rb +168 -0
- data/lib/ads_common_for_bing_ads/build/savon_registry.rb +15 -0
- data/lib/ads_common_for_bing_ads/parameters_validator.rb +36 -0
- data/lib/ads_common_for_bing_ads/savon_headers_base_header_handler.rb +9 -0
- data/lib/ads_common_for_bing_ads/savon_service.rb +141 -0
- data/lib/bing_ads_api.rb +175 -0
- data/lib/bing_ads_api/api_config.rb +162 -0
- data/lib/bing_ads_api/client_login_header_handler.rb +21 -0
- data/lib/bing_ads_api/credential_handler.rb +91 -0
- data/lib/bing_ads_api/errors.rb +564 -0
- data/lib/bing_ads_api/report_header_handler.rb +46 -0
- data/lib/bing_ads_api/report_utils.rb +202 -0
- data/lib/bing_ads_api/v7/administration_service.rb +37 -0
- data/lib/bing_ads_api/v7/administration_service_registry.rb +30 -0
- data/lib/bing_ads_api/v7/campaign_management_service.rb +398 -0
- data/lib/bing_ads_api/v7/campaign_management_service_registry.rb +30 -0
- data/lib/bing_ads_api/v7/customer_billing_service.rb +58 -0
- data/lib/bing_ads_api/v7/customer_billing_service_registry.rb +30 -0
- data/lib/bing_ads_api/v7/customer_management_service.rb +98 -0
- data/lib/bing_ads_api/v7/customer_management_service_registry.rb +30 -0
- data/lib/bing_ads_api/v7/notification_service.rb +38 -0
- data/lib/bing_ads_api/v7/notification_service_registry.rb +30 -0
- data/lib/bing_ads_api/v7/reporting_service.rb +38 -0
- data/lib/bing_ads_api/v7/reporting_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/ad_intelligence_service.rb +86 -0
- data/lib/bing_ads_api/v8/ad_intelligence_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/administration_service.rb +38 -0
- data/lib/bing_ads_api/v8/administration_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/bulk_service.rb +42 -0
- data/lib/bing_ads_api/v8/bulk_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/campaign_management_service.rb +390 -0
- data/lib/bing_ads_api/v8/campaign_management_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/customer_billing_service.rb +62 -0
- data/lib/bing_ads_api/v8/customer_billing_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/customer_management_service.rb +162 -0
- data/lib/bing_ads_api/v8/customer_management_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/notification_service.rb +38 -0
- data/lib/bing_ads_api/v8/notification_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/optimizer_service.rb +46 -0
- data/lib/bing_ads_api/v8/optimizer_service_registry.rb +30 -0
- data/lib/bing_ads_api/v8/reporting_service.rb +38 -0
- data/lib/bing_ads_api/v8/reporting_service_registry.rb +30 -0
- data/lib/bing_ads_api/version.rb +5 -0
- data/rakefile.rb +54 -0
- metadata +156 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.7.3 on 2012-07-04 16:50:32.
|
9
|
+
|
10
|
+
require 'ads_common_for_bing_ads/savon_service'
|
11
|
+
require 'bing_ads_api/v8/reporting_service_registry'
|
12
|
+
|
13
|
+
module BingAdsApi; module V8; module ReportingService
|
14
|
+
class ReportingService < AdsCommonForBingAds::SavonService
|
15
|
+
def initialize(config, endpoint)
|
16
|
+
namespace = 'https://adcenter.microsoft.com/v8'
|
17
|
+
super(config, endpoint, namespace, :v8)
|
18
|
+
end
|
19
|
+
|
20
|
+
def submit_generate_report(*args, &block)
|
21
|
+
return execute_action('submit_generate_report', args, &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def poll_generate_report(*args, &block)
|
25
|
+
return execute_action('poll_generate_report', args, &block)
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def get_service_registry()
|
31
|
+
return ReportingServiceRegistry
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_module()
|
35
|
+
return BingAdsApi::V8::ReportingService
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end; end; end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
#
|
3
|
+
# This is auto-generated code, changes will be overwritten.
|
4
|
+
#
|
5
|
+
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
|
6
|
+
# License:: Licensed under the Apache License, Version 2.0.
|
7
|
+
#
|
8
|
+
# Code generated by AdsCommon library 0.7.3 on 2012-07-04 16:50:32.
|
9
|
+
|
10
|
+
require 'bing_ads_api/errors'
|
11
|
+
|
12
|
+
module BingAdsApi; module V8; module ReportingService
|
13
|
+
class ReportingServiceRegistry
|
14
|
+
REPORTINGSERVICE_METHODS = {:submit_generate_report=>{:input=>{:name=>"submit_generate_report_request", :fields=>[]}, :output=>{:name=>"submit_generate_report_response", :fields=>[]}, :original_name=>"SubmitGenerateReport"}, :poll_generate_report=>{:input=>{:name=>"poll_generate_report_request", :fields=>[]}, :output=>{:name=>"poll_generate_report_response", :fields=>[]}, :original_name=>"PollGenerateReport"}}
|
15
|
+
REPORTINGSERVICE_TYPES = {}
|
16
|
+
REPORTINGSERVICE_NAMESPACES = []
|
17
|
+
|
18
|
+
def self.get_method_signature(method_name)
|
19
|
+
return REPORTINGSERVICE_METHODS[method_name.to_sym]
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.get_type_signature(type_name)
|
23
|
+
return REPORTINGSERVICE_TYPES[type_name.to_sym]
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_namespace(index)
|
27
|
+
return REPORTINGSERVICE_NAMESPACES[index]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end; end; end
|
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 = 'BingAdsApi'
|
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_for_bing_ads'
|
35
|
+
require 'bing_ads_api/api_config'
|
36
|
+
require 'ads_common_for_bing_ads/api_config'
|
37
|
+
require 'ads_common_for_bing_ads/build/savon_registry'
|
38
|
+
desc 'Generate the Bing Ads API stubs.'
|
39
|
+
|
40
|
+
task :generate do
|
41
|
+
logger = Logger.new(STDOUT)
|
42
|
+
logger.level = Logger::INFO
|
43
|
+
api_config = BingAdsApi::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 = BingAdsApi::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 = AdsCommonForBingAds::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,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bing_ads_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Adrien Rambert
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: google-ads-common
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.8.0
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.8.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.8'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.8'
|
78
|
+
description: Ruby wrapper for Bing Ads API
|
79
|
+
email:
|
80
|
+
- arambert@optimeez.com
|
81
|
+
executables: []
|
82
|
+
extensions: []
|
83
|
+
extra_rdoc_files: []
|
84
|
+
files:
|
85
|
+
- lib/ads_common_for_bing_ads/api_config.rb
|
86
|
+
- lib/ads_common_for_bing_ads/auth/client_login_handler.rb
|
87
|
+
- lib/ads_common_for_bing_ads/build/savon_registry.rb
|
88
|
+
- lib/ads_common_for_bing_ads/parameters_validator.rb
|
89
|
+
- lib/ads_common_for_bing_ads/savon_headers_base_header_handler.rb
|
90
|
+
- lib/ads_common_for_bing_ads/savon_service.rb
|
91
|
+
- lib/ads_common_for_bing_ads.rb
|
92
|
+
- lib/bing_ads_api/api_config.rb
|
93
|
+
- lib/bing_ads_api/client_login_header_handler.rb
|
94
|
+
- lib/bing_ads_api/credential_handler.rb
|
95
|
+
- lib/bing_ads_api/errors.rb
|
96
|
+
- lib/bing_ads_api/report_header_handler.rb
|
97
|
+
- lib/bing_ads_api/report_utils.rb
|
98
|
+
- lib/bing_ads_api/v7/administration_service.rb
|
99
|
+
- lib/bing_ads_api/v7/administration_service_registry.rb
|
100
|
+
- lib/bing_ads_api/v7/campaign_management_service.rb
|
101
|
+
- lib/bing_ads_api/v7/campaign_management_service_registry.rb
|
102
|
+
- lib/bing_ads_api/v7/customer_billing_service.rb
|
103
|
+
- lib/bing_ads_api/v7/customer_billing_service_registry.rb
|
104
|
+
- lib/bing_ads_api/v7/customer_management_service.rb
|
105
|
+
- lib/bing_ads_api/v7/customer_management_service_registry.rb
|
106
|
+
- lib/bing_ads_api/v7/notification_service.rb
|
107
|
+
- lib/bing_ads_api/v7/notification_service_registry.rb
|
108
|
+
- lib/bing_ads_api/v7/reporting_service.rb
|
109
|
+
- lib/bing_ads_api/v7/reporting_service_registry.rb
|
110
|
+
- lib/bing_ads_api/v8/ad_intelligence_service.rb
|
111
|
+
- lib/bing_ads_api/v8/ad_intelligence_service_registry.rb
|
112
|
+
- lib/bing_ads_api/v8/administration_service.rb
|
113
|
+
- lib/bing_ads_api/v8/administration_service_registry.rb
|
114
|
+
- lib/bing_ads_api/v8/bulk_service.rb
|
115
|
+
- lib/bing_ads_api/v8/bulk_service_registry.rb
|
116
|
+
- lib/bing_ads_api/v8/campaign_management_service.rb
|
117
|
+
- lib/bing_ads_api/v8/campaign_management_service_registry.rb
|
118
|
+
- lib/bing_ads_api/v8/customer_billing_service.rb
|
119
|
+
- lib/bing_ads_api/v8/customer_billing_service_registry.rb
|
120
|
+
- lib/bing_ads_api/v8/customer_management_service.rb
|
121
|
+
- lib/bing_ads_api/v8/customer_management_service_registry.rb
|
122
|
+
- lib/bing_ads_api/v8/notification_service.rb
|
123
|
+
- lib/bing_ads_api/v8/notification_service_registry.rb
|
124
|
+
- lib/bing_ads_api/v8/optimizer_service.rb
|
125
|
+
- lib/bing_ads_api/v8/optimizer_service_registry.rb
|
126
|
+
- lib/bing_ads_api/v8/reporting_service.rb
|
127
|
+
- lib/bing_ads_api/v8/reporting_service_registry.rb
|
128
|
+
- lib/bing_ads_api/version.rb
|
129
|
+
- lib/bing_ads_api.rb
|
130
|
+
- rakefile.rb
|
131
|
+
- README.md
|
132
|
+
homepage: https://github.com/weboglobin/bing_ads_api
|
133
|
+
licenses: []
|
134
|
+
post_install_message:
|
135
|
+
rdoc_options: []
|
136
|
+
require_paths:
|
137
|
+
- lib
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
requirements: []
|
151
|
+
rubyforge_project:
|
152
|
+
rubygems_version: 1.8.24
|
153
|
+
signing_key:
|
154
|
+
specification_version: 3
|
155
|
+
summary: Ruby wrapper for Bing Ads API
|
156
|
+
test_files: []
|