adwords4r 0.5 → 0.6
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.
- data/ChangeLog.txt +4 -0
- data/Rakefile +10 -10
- data/Readme.txt +78 -74
- data/Todo.txt +12 -0
- data/adwords.properties +2 -0
- data/examples/campaign.rb +1 -2
- data/examples/keyword_tool_demo.rb +27 -0
- data/examples/sandbox.rb +30 -0
- data/lib/adwords4r.rb +7 -1
- data/lib/adwords4r/credentials.rb +5 -3
- data/lib/adwords4r/services.rb +2 -2
- data/lib/adwords4r/v4/CreativeService.rb +0 -33
- data/lib/adwords4r/{v3 → v5}/AccountService.rb +311 -86
- data/lib/adwords4r/{v3 → v5}/AccountServiceDriver.rb +69 -34
- data/lib/adwords4r/{v3 → v5}/AdGroupService.rb +90 -58
- data/lib/adwords4r/{v3 → v5}/AdGroupServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/CampaignService.rb +121 -89
- data/lib/adwords4r/{v3 → v5}/CampaignServiceDriver.rb +22 -22
- data/lib/adwords4r/{v3 → v5}/CreativeService.rb +84 -81
- data/lib/adwords4r/{v2 → v5}/CreativeServiceDriver.rb +20 -20
- data/lib/adwords4r/{v3 → v5}/CriterionService.rb +96 -64
- data/lib/adwords4r/{v3 → v5}/CriterionServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/InfoService.rb +70 -34
- data/lib/adwords4r/{v2 → v5}/InfoServiceDriver.rb +16 -16
- data/lib/adwords4r/{v3 → v5}/KeywordToolService.rb +62 -26
- data/lib/adwords4r/{v3 → v5}/KeywordToolServiceDriver.rb +6 -6
- data/lib/adwords4r/v5/ReportService.rb +788 -0
- data/lib/adwords4r/{v2 → v5}/ReportServiceDriver.rb +14 -14
- data/lib/adwords4r/{v3 → v5}/TrafficEstimatorService.rb +95 -50
- data/lib/adwords4r/{v2 → v5}/TrafficEstimatorServiceDriver.rb +8 -8
- metadata +23 -46
- data/examples/report_demo.rb +0 -42
- data/lib/adwords4r/registry.rb +0 -31
- data/lib/adwords4r/v2/AccountService.rb +0 -628
- data/lib/adwords4r/v2/AccountServiceDriver.rb +0 -153
- data/lib/adwords4r/v2/AdGroupService.rb +0 -317
- data/lib/adwords4r/v2/AdGroupServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/CampaignService.rb +0 -517
- data/lib/adwords4r/v2/CampaignServiceDriver.rb +0 -111
- data/lib/adwords4r/v2/CreativeService.rb +0 -401
- data/lib/adwords4r/v2/CriterionService.rb +0 -415
- data/lib/adwords4r/v2/CriterionServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/InfoService.rb +0 -260
- data/lib/adwords4r/v2/KeywordService.rb +0 -543
- data/lib/adwords4r/v2/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v2/ReportService.rb +0 -569
- data/lib/adwords4r/v2/TrafficEstimatorService.rb +0 -251
- data/lib/adwords4r/v2/default.rb +0 -364
- data/lib/adwords4r/v2/defaultDriver.rb +0 -102
- data/lib/adwords4r/v3/CreativeServiceDriver.rb +0 -104
- data/lib/adwords4r/v3/InfoServiceDriver.rb +0 -90
- data/lib/adwords4r/v3/KeywordService.rb +0 -543
- data/lib/adwords4r/v3/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v3/ReportService.rb +0 -569
- data/lib/adwords4r/v3/ReportServiceDriver.rb +0 -83
- data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +0 -62
- data/scripts/publish.rb +0 -16
data/ChangeLog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
0.6
|
2
|
+
- added support for API v5
|
3
|
+
- added support for alternateUrl header, in order to work with sandbox
|
4
|
+
- tested with sandbox
|
1
5
|
0.5 Now supports AdWords API v4. Got rid of yaml dependency. Changed properties file name for default credentials to adwords.properties. Enhanced the readme.txt a bit. Added a few samples.
|
2
6
|
0.4 Now all generated classes are within the Adwords module. Will make it easier to use that in Rails. Support for gen classes in a module is not implemented in soap4r for doc/literal style (it works for rpc/encoded). I logged a bug for soap4r. In the meantime I had to fix adwords4r from my module using module_eval to patch the Mapping class.
|
3
7
|
0.3 fixed the bug in InfoService and many others. I fix the wsdl before generation.
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
CLOBBER.include('pkg')
|
22
22
|
|
23
|
-
CURRENT_VERSION = '0.
|
23
|
+
CURRENT_VERSION = '0.6'
|
24
24
|
PKG_VERSION = ENV['REL'] ? ENV['REL'] : CURRENT_VERSION
|
25
25
|
|
26
26
|
SRC_RB = FileList['lib/**/*.rb']
|
@@ -170,11 +170,11 @@ else
|
|
170
170
|
s.version = PKG_VERSION
|
171
171
|
s.summary = "Client library for the AdWords API."
|
172
172
|
s.description = %{\
|
173
|
-
Adwords4r provides an easy to use way to access the AdWords API in ruby
|
174
|
-
Currently the following AdWords API versions are supported
|
175
|
-
|
176
|
-
*
|
177
|
-
*
|
173
|
+
Adwords4r provides an easy to use way to access the AdWords API in ruby.\
|
174
|
+
Currently the following AdWords API versions are supported:\
|
175
|
+
\
|
176
|
+
* V4\
|
177
|
+
* V5\
|
178
178
|
}
|
179
179
|
|
180
180
|
s.files = PKG_FILES.to_a
|
@@ -187,9 +187,9 @@ Currently the following AdWords API versions are supported:
|
|
187
187
|
s.has_rdoc = false
|
188
188
|
#s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
|
189
189
|
#s.rdoc_options <<
|
190
|
-
'--title' << 'Builder -- Easy XML Building' <<
|
191
|
-
'--main' << 'README' <<
|
192
|
-
'--line-numbers'
|
190
|
+
# '--title' << 'Builder -- Easy XML Building' <<
|
191
|
+
# '--main' << 'README' <<
|
192
|
+
# '--line-numbers'
|
193
193
|
|
194
194
|
s.author = "Patrick Chanezon"
|
195
195
|
s.email = "patrick@chanezon.com"
|
@@ -204,5 +204,5 @@ Currently the following AdWords API versions are supported:
|
|
204
204
|
end
|
205
205
|
end
|
206
206
|
|
207
|
-
require 'scripts/publish'
|
207
|
+
#require 'scripts/publish'
|
208
208
|
|
data/Readme.txt
CHANGED
@@ -1,75 +1,79 @@
|
|
1
|
-
Google adwwords4r Library
|
2
|
-
----------------------
|
3
|
-
|
4
|
-
Welcome to adwords4r, bringing the delights of ruby programming to the AdWords world: AdWords::API.new.getAllAdWordsCampaigns(123).each {|c| puts c.name}
|
5
|
-
|
6
|
-
Not much doc or comments yet
|
7
|
-
|
8
|
-
docs for users
|
9
|
-
--------------
|
10
|
-
|
11
|
-
adwords4r is a ruby gem. See http://docs.rubygems.org/read/book/1
|
12
|
-
Install it using the gem install command.
|
13
|
-
> gem install --remote adwords4r
|
14
|
-
|
15
|
-
It's pretty easy to use.
|
16
|
-
See http://docs.rubygems.org/read/chapter/3#page70 for how to set the rubygem environment.
|
17
|
-
export RUBYOPT=rubygems
|
18
|
-
or ruby -rubygems my_program_that_uses_gems
|
19
|
-
|
20
|
-
If you do not use the rubygems option, you need to add
|
21
|
-
require 'rubygems'
|
22
|
-
at the beginning of your programs.
|
23
|
-
|
24
|
-
Then
|
25
|
-
require 'adwords4r'
|
26
|
-
|
27
|
-
adwords = AdWords::API.new
|
28
|
-
creates a driver for the latest version of AdWords API using credentials provided in ~/adwords.properties
|
29
|
-
There is an example in the root adwords4r directory.
|
30
|
-
You can also pass API a manually constructed AdWordsCredentials object like:
|
31
|
-
adwords = AdWords::API.new(AdWords::AdWordsCredentials.new(
|
32
|
-
{ 'token' => 'mytoken',
|
33
|
-
'useragent' => 'P@ playing with the API from ruby',
|
34
|
-
'password' => 'mypasswd',
|
35
|
-
'email' => 'em...@example.com'}
|
36
|
-
))
|
37
|
-
|
38
|
-
If you want something more specific, use the optional parameters of the constructor
|
39
|
-
adwords = AdWords::API.new(credentials, version)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
rake
|
58
|
-
to
|
59
|
-
rake
|
60
|
-
to
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
1
|
+
Google adwwords4r Library
|
2
|
+
----------------------
|
3
|
+
|
4
|
+
Welcome to adwords4r, bringing the delights of ruby programming to the AdWords world: AdWords::API.new.getAllAdWordsCampaigns(123).each {|c| puts c.name}
|
5
|
+
|
6
|
+
Not much doc or comments yet
|
7
|
+
|
8
|
+
docs for users
|
9
|
+
--------------
|
10
|
+
|
11
|
+
adwords4r is a ruby gem. See http://docs.rubygems.org/read/book/1
|
12
|
+
Install it using the gem install command.
|
13
|
+
> gem install --remote adwords4r
|
14
|
+
|
15
|
+
It's pretty easy to use.
|
16
|
+
See http://docs.rubygems.org/read/chapter/3#page70 for how to set the rubygem environment.
|
17
|
+
export RUBYOPT=rubygems
|
18
|
+
or ruby -rubygems my_program_that_uses_gems
|
19
|
+
|
20
|
+
If you do not use the rubygems option, you need to add
|
21
|
+
require 'rubygems'
|
22
|
+
at the beginning of your programs.
|
23
|
+
|
24
|
+
Then
|
25
|
+
require 'adwords4r'
|
26
|
+
|
27
|
+
adwords = AdWords::API.new
|
28
|
+
creates a driver for the latest version of AdWords API using credentials provided in ~/adwords.properties
|
29
|
+
There is an example in the root adwords4r directory.
|
30
|
+
You can also pass API a manually constructed AdWordsCredentials object like:
|
31
|
+
adwords = AdWords::API.new(AdWords::AdWordsCredentials.new(
|
32
|
+
{ 'token' => 'mytoken',
|
33
|
+
'useragent' => 'P@ playing with the API from ruby',
|
34
|
+
'password' => 'mypasswd',
|
35
|
+
'email' => 'em...@example.com'}
|
36
|
+
))
|
37
|
+
|
38
|
+
If you want something more specific, use the optional parameters of the constructor
|
39
|
+
adwords = AdWords::API.new(credentials, version)
|
40
|
+
|
41
|
+
In order to use the sandbox, you can add a credential named
|
42
|
+
alternateUrl, like:
|
43
|
+
alternateUrl=https://sandbox.google.com/api/adwords/v5/
|
44
|
+
|
45
|
+
Then just use methods of the API against your driver.
|
46
|
+
adwords.getAllAdWordsCampaigns(123).each {|c| puts c.name}
|
47
|
+
|
48
|
+
See sample code in examples.
|
49
|
+
|
50
|
+
The client code will generate warnings in the console:
|
51
|
+
Many: warning: already initialized constant XXX
|
52
|
+
A few: at depth 0 - 20: unable to get local issuer certificate
|
53
|
+
These are not serious: I need to make them go but they do not affect the correctness of the program.
|
54
|
+
|
55
|
+
docs for developers
|
56
|
+
-------------------
|
57
|
+
rake getwsdl
|
58
|
+
to get the wsdl files
|
59
|
+
rake generate
|
60
|
+
to regenerate the bindings if needed
|
61
|
+
rake package
|
62
|
+
to package the gem and create a release
|
63
|
+
rake publish
|
64
|
+
to publish the gem to rubyforge
|
65
|
+
|
66
|
+
adwords4r is licensed under the BSD License
|
67
|
+
|
68
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
69
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
70
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
71
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
72
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
73
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
74
|
+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
75
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
76
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
77
|
+
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
78
|
+
|
75
79
|
It is fun to use adwords4r anyway...
|
data/Todo.txt
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
adwords4r todo list
|
2
2
|
---
|
3
3
|
- use XSD::CodeGen::GenSupport.capitalize and unCapitalize instead of my own methods
|
4
|
+
- use SOAP::Property.loadproperty
|
5
|
+
0% ruby -rpp -rsoap/property -e 'pp
|
6
|
+
SOAP::Property.loadproperty("adwords.properties")'
|
7
|
+
#<SOAP::Property:0xb7ebd5b8
|
8
|
+
@hook={},
|
9
|
+
@locked=false,
|
10
|
+
@self_hook=[],
|
11
|
+
@store=
|
12
|
+
{"password"=>"my_very_secret_password",
|
13
|
+
"useragent"=>"P@ playing with the API from ruby",
|
14
|
+
"token"=>"my_token",
|
15
|
+
"email"=>"toto@example.com"}>
|
4
16
|
- fix the bug in reports
|
5
17
|
- handling quota management in the driver
|
6
18
|
- pass in a hash for complex objects
|
data/adwords.properties
CHANGED
data/examples/campaign.rb
CHANGED
@@ -20,8 +20,6 @@ end
|
|
20
20
|
begin
|
21
21
|
adwords = AdWords::API.new
|
22
22
|
|
23
|
-
res = adwords.getCampaign(6000213)
|
24
|
-
puts dumpObj(res)
|
25
23
|
res = adwords.getAllAdWordsCampaigns(123)
|
26
24
|
res.each {|c| puts dumpObj(c)}
|
27
25
|
#adwords.getAllAdWordsCampaigns(123).each {|c| puts dumpObj(c)}
|
@@ -29,6 +27,7 @@ begin
|
|
29
27
|
c.dailyBudget = 10000
|
30
28
|
c.status = 'Paused'
|
31
29
|
c.name = "Test P@ #{rand(10000)}"
|
30
|
+
c.endDay = SOAP::SOAPDate.new("2011-01-01+01:00")
|
32
31
|
puts dumpObj(adwords.addCampaign(c).addCampaignReturn)
|
33
32
|
|
34
33
|
rescue AdWords::Error::UnknownAPICall => e
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'adwords4r'
|
4
|
+
|
5
|
+
def printkw(kw, gname)
|
6
|
+
puts "#{gname} #{kw.advertiserCompetitionScale} #{kw.searchVolumeScale} #{kw.text}"
|
7
|
+
end
|
8
|
+
|
9
|
+
begin
|
10
|
+
if (ARGV.length < 1) then
|
11
|
+
puts "usage keyword_tool_demo.rb url"
|
12
|
+
exit
|
13
|
+
end
|
14
|
+
adwords = AdWords::API.new
|
15
|
+
result = adwords.getKeywordsFromSite(ARGV[0], true, [], [])
|
16
|
+
groups = result.getKeywordsFromSiteReturn.groups
|
17
|
+
kws = result.getKeywordsFromSiteReturn.keywords
|
18
|
+
puts "GroupName AdvertiserCompetitionScale searchVolumeScale text"
|
19
|
+
kws.each {|kw| printkw(kw, groups[kw.groupId.to_i])}
|
20
|
+
|
21
|
+
rescue AdWords::Error::UnknownAPICall => e
|
22
|
+
puts e
|
23
|
+
rescue AdWords::Error::ApiError => e
|
24
|
+
puts e.code
|
25
|
+
puts e.message
|
26
|
+
end
|
27
|
+
|
data/examples/sandbox.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'adwords4r'
|
4
|
+
require 'pp'
|
5
|
+
|
6
|
+
SEP = "---"
|
7
|
+
|
8
|
+
def dumpObj(o)
|
9
|
+
str = ""
|
10
|
+
o.instance_variables.each { |v| str << dumpAttr(o, v)}
|
11
|
+
return str << SEP
|
12
|
+
end
|
13
|
+
|
14
|
+
def dumpAttr(o, v)
|
15
|
+
name = v.sub(/@/,'')
|
16
|
+
value = eval("o.#{name}.to_s")
|
17
|
+
return "#{name}: #{value}\n"
|
18
|
+
end
|
19
|
+
|
20
|
+
begin
|
21
|
+
adwords = AdWords::API.new
|
22
|
+
|
23
|
+
puts dumpObj(adwords)
|
24
|
+
|
25
|
+
rescue AdWords::Error::UnknownAPICall => e
|
26
|
+
puts e
|
27
|
+
rescue AdWords::Error::ApiError => e
|
28
|
+
puts e.code
|
29
|
+
puts e.message
|
30
|
+
end
|
data/lib/adwords4r.rb
CHANGED
@@ -75,7 +75,13 @@ module AdWords
|
|
75
75
|
|
76
76
|
def prepareDriver(s)
|
77
77
|
#driver = eval("AdWordsV#{@version}::#{getServiceName(s)}.new")
|
78
|
-
|
78
|
+
#set alternateurl if it has been set in credentials
|
79
|
+
if (@credentials.alternateUrl) then
|
80
|
+
endpointUrl = @credentials.alternateUrl + s + 'Service'
|
81
|
+
driver = eval("#{getServiceName(s)}.new(\"#{endpointUrl}\")")
|
82
|
+
elsif
|
83
|
+
driver = eval("#{getServiceName(s)}.new")
|
84
|
+
end
|
79
85
|
@credentials.handlers.each {|h| driver.headerhandler << h}
|
80
86
|
#driver.wiredump_dev = STDOUT if @debug
|
81
87
|
driver.wiredump_file_base = "log"
|
@@ -16,7 +16,7 @@ module AdWords
|
|
16
16
|
end
|
17
17
|
|
18
18
|
class AdWordsCredentials
|
19
|
-
attr_reader :handlers
|
19
|
+
attr_reader :handlers, :alternateUrl
|
20
20
|
|
21
21
|
def getDefaults()
|
22
22
|
cred = Hash.new
|
@@ -25,17 +25,19 @@ module AdWords
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def addCredential(cred, arr)
|
28
|
-
cred[arr[0]] = arr[1]
|
28
|
+
cred[arr[0]] = arr[1].strip
|
29
29
|
end
|
30
30
|
|
31
31
|
def initialize(*parm)
|
32
32
|
@handlers = []
|
33
|
+
@alternateUrl = nil
|
33
34
|
if parm[0]
|
34
35
|
credentials = parm[0]
|
35
36
|
else
|
36
37
|
credentials = getDefaults()
|
37
38
|
end
|
38
|
-
credentials.each {|key, value| @handlers << HeaderHandler.new(key, value)}
|
39
|
+
credentials.each {|key, value| @handlers << HeaderHandler.new(key, value) if !(key =~ /^alternateUrl/)}
|
40
|
+
@alternateUrl = credentials['alternateUrl']
|
39
41
|
end
|
40
42
|
end
|
41
43
|
end
|
data/lib/adwords4r/services.rb
CHANGED
@@ -3,8 +3,8 @@ module AdWords
|
|
3
3
|
class Service
|
4
4
|
|
5
5
|
@@services = {
|
6
|
-
|
7
|
-
|
6
|
+
4 => ['Creative', 'Keyword', 'Criterion', 'AdGroup', 'Campaign', 'TrafficEstimator', 'Report', 'Info', 'Account', 'KeywordTool'],
|
7
|
+
5 => ['Creative', 'Criterion', 'AdGroup', 'Campaign', 'TrafficEstimator', 'Report', 'Info', 'Account', 'KeywordTool']
|
8
8
|
}
|
9
9
|
|
10
10
|
def Service.getVersions
|
@@ -329,39 +329,6 @@ class Creative
|
|
329
329
|
end
|
330
330
|
end
|
331
331
|
|
332
|
-
# {https://adwords.google.com/api/adwords/v4}AdPolicyViolation
|
333
|
-
class AdPolicyViolation
|
334
|
-
@@schema_type = "AdPolicyViolation"
|
335
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
336
|
-
@@schema_element = [
|
337
|
-
["detail", "SOAP::SOAPString"],
|
338
|
-
["index", "SOAP::SOAPInt"],
|
339
|
-
["isExemptable", "SOAP::SOAPBoolean"],
|
340
|
-
["line", "SOAP::SOAPInt"],
|
341
|
-
["textIndex", "SOAP::SOAPInt"],
|
342
|
-
["textLength", "SOAP::SOAPInt"],
|
343
|
-
["trigger", "SOAP::SOAPString"]
|
344
|
-
]
|
345
|
-
|
346
|
-
attr_accessor :detail
|
347
|
-
attr_accessor :index
|
348
|
-
attr_accessor :isExemptable
|
349
|
-
attr_accessor :line
|
350
|
-
attr_accessor :textIndex
|
351
|
-
attr_accessor :textLength
|
352
|
-
attr_accessor :trigger
|
353
|
-
|
354
|
-
def initialize(detail = nil, index = nil, isExemptable = nil, line = nil, textIndex = nil, textLength = nil, trigger = nil)
|
355
|
-
@detail = detail
|
356
|
-
@index = index
|
357
|
-
@isExemptable = isExemptable
|
358
|
-
@line = line
|
359
|
-
@textIndex = textIndex
|
360
|
-
@textLength = textLength
|
361
|
-
@trigger = trigger
|
362
|
-
end
|
363
|
-
end
|
364
|
-
|
365
332
|
# {https://adwords.google.com/api/adwords/v4}ApiException
|
366
333
|
class ApiException
|
367
334
|
@@schema_type = "ApiException"
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module AdWords
|
2
2
|
require 'xsd/qname'
|
3
3
|
|
4
|
-
# {https://adwords.google.com/api/adwords/
|
4
|
+
# {https://adwords.google.com/api/adwords/v5}createAdWordsAccount
|
5
5
|
class CreateAdWordsAccount
|
6
6
|
@@schema_type = "createAdWordsAccount"
|
7
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
8
8
|
@@schema_qualified = "true"
|
9
9
|
@@schema_element = [
|
10
10
|
["loginEmail", "SOAP::SOAPString"],
|
@@ -14,7 +14,8 @@ class CreateAdWordsAccount
|
|
14
14
|
["currencyCode", "SOAP::SOAPString"],
|
15
15
|
["cardInfo", "CreditCard"],
|
16
16
|
["contactInfo", "Address"],
|
17
|
-
["defaultAdsCoverage", "CoverageType"]
|
17
|
+
["defaultAdsCoverage", "CoverageType"],
|
18
|
+
["timeZoneId", "SOAP::SOAPString"]
|
18
19
|
]
|
19
20
|
|
20
21
|
attr_accessor :loginEmail
|
@@ -25,8 +26,9 @@ class CreateAdWordsAccount
|
|
25
26
|
attr_accessor :cardInfo
|
26
27
|
attr_accessor :contactInfo
|
27
28
|
attr_accessor :defaultAdsCoverage
|
29
|
+
attr_accessor :timeZoneId
|
28
30
|
|
29
|
-
def initialize(loginEmail = nil, password = nil, languagePreference = nil, emailPrefs = nil, currencyCode = nil, cardInfo = nil, contactInfo = nil, defaultAdsCoverage = nil)
|
31
|
+
def initialize(loginEmail = nil, password = nil, languagePreference = nil, emailPrefs = nil, currencyCode = nil, cardInfo = nil, contactInfo = nil, defaultAdsCoverage = nil, timeZoneId = nil)
|
30
32
|
@loginEmail = loginEmail
|
31
33
|
@password = password
|
32
34
|
@languagePreference = languagePreference
|
@@ -35,13 +37,14 @@ class CreateAdWordsAccount
|
|
35
37
|
@cardInfo = cardInfo
|
36
38
|
@contactInfo = contactInfo
|
37
39
|
@defaultAdsCoverage = defaultAdsCoverage
|
40
|
+
@timeZoneId = timeZoneId
|
38
41
|
end
|
39
42
|
end
|
40
43
|
|
41
|
-
# {https://adwords.google.com/api/adwords/
|
44
|
+
# {https://adwords.google.com/api/adwords/v5}createAdWordsAccountResponse
|
42
45
|
class CreateAdWordsAccountResponse
|
43
46
|
@@schema_type = "createAdWordsAccountResponse"
|
44
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
47
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
45
48
|
@@schema_qualified = "true"
|
46
49
|
@@schema_element = []
|
47
50
|
|
@@ -49,10 +52,10 @@ class CreateAdWordsAccountResponse
|
|
49
52
|
end
|
50
53
|
end
|
51
54
|
|
52
|
-
# {https://adwords.google.com/api/adwords/
|
55
|
+
# {https://adwords.google.com/api/adwords/v5}setLoginInfo
|
53
56
|
class SetLoginInfo
|
54
57
|
@@schema_type = "setLoginInfo"
|
55
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
58
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
56
59
|
@@schema_qualified = "true"
|
57
60
|
@@schema_element = [
|
58
61
|
["login", "SOAP::SOAPString"],
|
@@ -68,10 +71,10 @@ class SetLoginInfo
|
|
68
71
|
end
|
69
72
|
end
|
70
73
|
|
71
|
-
# {https://adwords.google.com/api/adwords/
|
74
|
+
# {https://adwords.google.com/api/adwords/v5}setLoginInfoResponse
|
72
75
|
class SetLoginInfoResponse
|
73
76
|
@@schema_type = "setLoginInfoResponse"
|
74
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
77
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
75
78
|
@@schema_qualified = "true"
|
76
79
|
@@schema_element = []
|
77
80
|
|
@@ -79,10 +82,10 @@ class SetLoginInfoResponse
|
|
79
82
|
end
|
80
83
|
end
|
81
84
|
|
82
|
-
# {https://adwords.google.com/api/adwords/
|
85
|
+
# {https://adwords.google.com/api/adwords/v5}getAccountCurrency
|
83
86
|
class GetAccountCurrency
|
84
87
|
@@schema_type = "getAccountCurrency"
|
85
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
88
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
86
89
|
@@schema_qualified = "true"
|
87
90
|
@@schema_element = []
|
88
91
|
|
@@ -90,10 +93,10 @@ class GetAccountCurrency
|
|
90
93
|
end
|
91
94
|
end
|
92
95
|
|
93
|
-
# {https://adwords.google.com/api/adwords/
|
96
|
+
# {https://adwords.google.com/api/adwords/v5}getAccountCurrencyResponse
|
94
97
|
class GetAccountCurrencyResponse
|
95
98
|
@@schema_type = "getAccountCurrencyResponse"
|
96
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
99
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
97
100
|
@@schema_qualified = "true"
|
98
101
|
@@schema_element = [
|
99
102
|
["getAccountCurrencyReturn", "SOAP::SOAPString"]
|
@@ -106,10 +109,10 @@ class GetAccountCurrencyResponse
|
|
106
109
|
end
|
107
110
|
end
|
108
111
|
|
109
|
-
# {https://adwords.google.com/api/adwords/
|
112
|
+
# {https://adwords.google.com/api/adwords/v5}getCreditCard
|
110
113
|
class GetCreditCard
|
111
114
|
@@schema_type = "getCreditCard"
|
112
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
115
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
113
116
|
@@schema_qualified = "true"
|
114
117
|
@@schema_element = []
|
115
118
|
|
@@ -117,10 +120,10 @@ class GetCreditCard
|
|
117
120
|
end
|
118
121
|
end
|
119
122
|
|
120
|
-
# {https://adwords.google.com/api/adwords/
|
123
|
+
# {https://adwords.google.com/api/adwords/v5}getCreditCardResponse
|
121
124
|
class GetCreditCardResponse
|
122
125
|
@@schema_type = "getCreditCardResponse"
|
123
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
126
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
124
127
|
@@schema_qualified = "true"
|
125
128
|
@@schema_element = [
|
126
129
|
["getCreditCardReturn", "CreditCard"]
|
@@ -133,10 +136,10 @@ class GetCreditCardResponse
|
|
133
136
|
end
|
134
137
|
end
|
135
138
|
|
136
|
-
# {https://adwords.google.com/api/adwords/
|
139
|
+
# {https://adwords.google.com/api/adwords/v5}getBillingAddress
|
137
140
|
class GetBillingAddress
|
138
141
|
@@schema_type = "getBillingAddress"
|
139
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
142
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
140
143
|
@@schema_qualified = "true"
|
141
144
|
@@schema_element = []
|
142
145
|
|
@@ -144,10 +147,10 @@ class GetBillingAddress
|
|
144
147
|
end
|
145
148
|
end
|
146
149
|
|
147
|
-
# {https://adwords.google.com/api/adwords/
|
150
|
+
# {https://adwords.google.com/api/adwords/v5}getBillingAddressResponse
|
148
151
|
class GetBillingAddressResponse
|
149
152
|
@@schema_type = "getBillingAddressResponse"
|
150
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
153
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
151
154
|
@@schema_qualified = "true"
|
152
155
|
@@schema_element = [
|
153
156
|
["getBillingAddressReturn", "Address"]
|
@@ -160,10 +163,10 @@ class GetBillingAddressResponse
|
|
160
163
|
end
|
161
164
|
end
|
162
165
|
|
163
|
-
# {https://adwords.google.com/api/adwords/
|
166
|
+
# {https://adwords.google.com/api/adwords/v5}setCreditCard
|
164
167
|
class SetCreditCard
|
165
168
|
@@schema_type = "setCreditCard"
|
166
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
169
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
167
170
|
@@schema_qualified = "true"
|
168
171
|
@@schema_element = [
|
169
172
|
["cardInfo", "CreditCard"],
|
@@ -179,10 +182,10 @@ class SetCreditCard
|
|
179
182
|
end
|
180
183
|
end
|
181
184
|
|
182
|
-
# {https://adwords.google.com/api/adwords/
|
185
|
+
# {https://adwords.google.com/api/adwords/v5}setCreditCardResponse
|
183
186
|
class SetCreditCardResponse
|
184
187
|
@@schema_type = "setCreditCardResponse"
|
185
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
188
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
186
189
|
@@schema_qualified = "true"
|
187
190
|
@@schema_element = []
|
188
191
|
|
@@ -190,10 +193,10 @@ class SetCreditCardResponse
|
|
190
193
|
end
|
191
194
|
end
|
192
195
|
|
193
|
-
# {https://adwords.google.com/api/adwords/
|
196
|
+
# {https://adwords.google.com/api/adwords/v5}getDefaultAdsCoverage
|
194
197
|
class GetDefaultAdsCoverage
|
195
198
|
@@schema_type = "getDefaultAdsCoverage"
|
196
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
199
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
197
200
|
@@schema_qualified = "true"
|
198
201
|
@@schema_element = []
|
199
202
|
|
@@ -201,10 +204,10 @@ class GetDefaultAdsCoverage
|
|
201
204
|
end
|
202
205
|
end
|
203
206
|
|
204
|
-
# {https://adwords.google.com/api/adwords/
|
207
|
+
# {https://adwords.google.com/api/adwords/v5}getDefaultAdsCoverageResponse
|
205
208
|
class GetDefaultAdsCoverageResponse
|
206
209
|
@@schema_type = "getDefaultAdsCoverageResponse"
|
207
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
210
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
208
211
|
@@schema_qualified = "true"
|
209
212
|
@@schema_element = [
|
210
213
|
["getDefaultAdsCoverageReturn", "CoverageType"]
|
@@ -217,10 +220,10 @@ class GetDefaultAdsCoverageResponse
|
|
217
220
|
end
|
218
221
|
end
|
219
222
|
|
220
|
-
# {https://adwords.google.com/api/adwords/
|
223
|
+
# {https://adwords.google.com/api/adwords/v5}setDefaultAdsCoverage
|
221
224
|
class SetDefaultAdsCoverage
|
222
225
|
@@schema_type = "setDefaultAdsCoverage"
|
223
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
226
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
224
227
|
@@schema_qualified = "true"
|
225
228
|
@@schema_element = [
|
226
229
|
["coverage", "CoverageType"]
|
@@ -233,10 +236,10 @@ class SetDefaultAdsCoverage
|
|
233
236
|
end
|
234
237
|
end
|
235
238
|
|
236
|
-
# {https://adwords.google.com/api/adwords/
|
239
|
+
# {https://adwords.google.com/api/adwords/v5}setDefaultAdsCoverageResponse
|
237
240
|
class SetDefaultAdsCoverageResponse
|
238
241
|
@@schema_type = "setDefaultAdsCoverageResponse"
|
239
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
242
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
240
243
|
@@schema_qualified = "true"
|
241
244
|
@@schema_element = []
|
242
245
|
|
@@ -244,10 +247,10 @@ class SetDefaultAdsCoverageResponse
|
|
244
247
|
end
|
245
248
|
end
|
246
249
|
|
247
|
-
# {https://adwords.google.com/api/adwords/
|
250
|
+
# {https://adwords.google.com/api/adwords/v5}getLanguagePreference
|
248
251
|
class GetLanguagePreference
|
249
252
|
@@schema_type = "getLanguagePreference"
|
250
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
253
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
251
254
|
@@schema_qualified = "true"
|
252
255
|
@@schema_element = []
|
253
256
|
|
@@ -255,10 +258,10 @@ class GetLanguagePreference
|
|
255
258
|
end
|
256
259
|
end
|
257
260
|
|
258
|
-
# {https://adwords.google.com/api/adwords/
|
261
|
+
# {https://adwords.google.com/api/adwords/v5}getLanguagePreferenceResponse
|
259
262
|
class GetLanguagePreferenceResponse
|
260
263
|
@@schema_type = "getLanguagePreferenceResponse"
|
261
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
264
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
262
265
|
@@schema_qualified = "true"
|
263
266
|
@@schema_element = [
|
264
267
|
["getLanguagePreferenceReturn", "SOAP::SOAPString"]
|
@@ -271,10 +274,10 @@ class GetLanguagePreferenceResponse
|
|
271
274
|
end
|
272
275
|
end
|
273
276
|
|
274
|
-
# {https://adwords.google.com/api/adwords/
|
277
|
+
# {https://adwords.google.com/api/adwords/v5}setLanguagePreference
|
275
278
|
class SetLanguagePreference
|
276
279
|
@@schema_type = "setLanguagePreference"
|
277
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
280
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
278
281
|
@@schema_qualified = "true"
|
279
282
|
@@schema_element = [
|
280
283
|
["languagePref", "SOAP::SOAPString"]
|
@@ -287,10 +290,10 @@ class SetLanguagePreference
|
|
287
290
|
end
|
288
291
|
end
|
289
292
|
|
290
|
-
# {https://adwords.google.com/api/adwords/
|
293
|
+
# {https://adwords.google.com/api/adwords/v5}setLanguagePreferenceResponse
|
291
294
|
class SetLanguagePreferenceResponse
|
292
295
|
@@schema_type = "setLanguagePreferenceResponse"
|
293
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
296
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
294
297
|
@@schema_qualified = "true"
|
295
298
|
@@schema_element = []
|
296
299
|
|
@@ -298,10 +301,10 @@ class SetLanguagePreferenceResponse
|
|
298
301
|
end
|
299
302
|
end
|
300
303
|
|
301
|
-
# {https://adwords.google.com/api/adwords/
|
304
|
+
# {https://adwords.google.com/api/adwords/v5}getEmailPromotionsPreferences
|
302
305
|
class GetEmailPromotionsPreferences
|
303
306
|
@@schema_type = "getEmailPromotionsPreferences"
|
304
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
307
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
305
308
|
@@schema_qualified = "true"
|
306
309
|
@@schema_element = []
|
307
310
|
|
@@ -309,10 +312,10 @@ class GetEmailPromotionsPreferences
|
|
309
312
|
end
|
310
313
|
end
|
311
314
|
|
312
|
-
# {https://adwords.google.com/api/adwords/
|
315
|
+
# {https://adwords.google.com/api/adwords/v5}getEmailPromotionsPreferencesResponse
|
313
316
|
class GetEmailPromotionsPreferencesResponse
|
314
317
|
@@schema_type = "getEmailPromotionsPreferencesResponse"
|
315
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
318
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
316
319
|
@@schema_qualified = "true"
|
317
320
|
@@schema_element = [
|
318
321
|
["getEmailPromotionsPreferencesReturn", "EmailPromotionsPreferences"]
|
@@ -325,10 +328,10 @@ class GetEmailPromotionsPreferencesResponse
|
|
325
328
|
end
|
326
329
|
end
|
327
330
|
|
328
|
-
# {https://adwords.google.com/api/adwords/
|
331
|
+
# {https://adwords.google.com/api/adwords/v5}setEmailPromotionsPreferences
|
329
332
|
class SetEmailPromotionsPreferences
|
330
333
|
@@schema_type = "setEmailPromotionsPreferences"
|
331
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
334
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
332
335
|
@@schema_qualified = "true"
|
333
336
|
@@schema_element = [
|
334
337
|
["prefs", "EmailPromotionsPreferences"]
|
@@ -341,10 +344,10 @@ class SetEmailPromotionsPreferences
|
|
341
344
|
end
|
342
345
|
end
|
343
346
|
|
344
|
-
# {https://adwords.google.com/api/adwords/
|
347
|
+
# {https://adwords.google.com/api/adwords/v5}setEmailPromotionsPreferencesResponse
|
345
348
|
class SetEmailPromotionsPreferencesResponse
|
346
349
|
@@schema_type = "setEmailPromotionsPreferencesResponse"
|
347
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
350
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
348
351
|
@@schema_qualified = "true"
|
349
352
|
@@schema_element = []
|
350
353
|
|
@@ -352,10 +355,10 @@ class SetEmailPromotionsPreferencesResponse
|
|
352
355
|
end
|
353
356
|
end
|
354
357
|
|
355
|
-
# {https://adwords.google.com/api/adwords/
|
358
|
+
# {https://adwords.google.com/api/adwords/v5}getPrimaryBusinessCategory
|
356
359
|
class GetPrimaryBusinessCategory
|
357
360
|
@@schema_type = "getPrimaryBusinessCategory"
|
358
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
361
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
359
362
|
@@schema_qualified = "true"
|
360
363
|
@@schema_element = []
|
361
364
|
|
@@ -363,10 +366,10 @@ class GetPrimaryBusinessCategory
|
|
363
366
|
end
|
364
367
|
end
|
365
368
|
|
366
|
-
# {https://adwords.google.com/api/adwords/
|
369
|
+
# {https://adwords.google.com/api/adwords/v5}getPrimaryBusinessCategoryResponse
|
367
370
|
class GetPrimaryBusinessCategoryResponse
|
368
371
|
@@schema_type = "getPrimaryBusinessCategoryResponse"
|
369
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
372
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
370
373
|
@@schema_qualified = "true"
|
371
374
|
@@schema_element = [
|
372
375
|
["getPrimaryBusinessCategoryReturn", "SOAP::SOAPString"]
|
@@ -379,10 +382,10 @@ class GetPrimaryBusinessCategoryResponse
|
|
379
382
|
end
|
380
383
|
end
|
381
384
|
|
382
|
-
# {https://adwords.google.com/api/adwords/
|
385
|
+
# {https://adwords.google.com/api/adwords/v5}setPrimaryBusinessCategory
|
383
386
|
class SetPrimaryBusinessCategory
|
384
387
|
@@schema_type = "setPrimaryBusinessCategory"
|
385
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
388
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
386
389
|
@@schema_qualified = "true"
|
387
390
|
@@schema_element = [
|
388
391
|
["bizType", "SOAP::SOAPString"]
|
@@ -395,10 +398,10 @@ class SetPrimaryBusinessCategory
|
|
395
398
|
end
|
396
399
|
end
|
397
400
|
|
398
|
-
# {https://adwords.google.com/api/adwords/
|
401
|
+
# {https://adwords.google.com/api/adwords/v5}setPrimaryBusinessCategoryResponse
|
399
402
|
class SetPrimaryBusinessCategoryResponse
|
400
403
|
@@schema_type = "setPrimaryBusinessCategoryResponse"
|
401
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
404
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
402
405
|
@@schema_qualified = "true"
|
403
406
|
@@schema_element = []
|
404
407
|
|
@@ -406,10 +409,10 @@ class SetPrimaryBusinessCategoryResponse
|
|
406
409
|
end
|
407
410
|
end
|
408
411
|
|
409
|
-
# {https://adwords.google.com/api/adwords/
|
412
|
+
# {https://adwords.google.com/api/adwords/v5}getTermsAndConditions
|
410
413
|
class GetTermsAndConditions
|
411
414
|
@@schema_type = "getTermsAndConditions"
|
412
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
415
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
413
416
|
@@schema_qualified = "true"
|
414
417
|
@@schema_element = []
|
415
418
|
|
@@ -417,10 +420,10 @@ class GetTermsAndConditions
|
|
417
420
|
end
|
418
421
|
end
|
419
422
|
|
420
|
-
# {https://adwords.google.com/api/adwords/
|
423
|
+
# {https://adwords.google.com/api/adwords/v5}getTermsAndConditionsResponse
|
421
424
|
class GetTermsAndConditionsResponse
|
422
425
|
@@schema_type = "getTermsAndConditionsResponse"
|
423
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
426
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
424
427
|
@@schema_qualified = "true"
|
425
428
|
@@schema_element = [
|
426
429
|
["getTermsAndConditionsReturn", "SOAP::SOAPString"]
|
@@ -433,10 +436,10 @@ class GetTermsAndConditionsResponse
|
|
433
436
|
end
|
434
437
|
end
|
435
438
|
|
436
|
-
# {https://adwords.google.com/api/adwords/
|
439
|
+
# {https://adwords.google.com/api/adwords/v5}getClientAccounts
|
437
440
|
class GetClientAccounts
|
438
441
|
@@schema_type = "getClientAccounts"
|
439
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
442
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
440
443
|
@@schema_qualified = "true"
|
441
444
|
@@schema_element = []
|
442
445
|
|
@@ -444,17 +447,152 @@ class GetClientAccounts
|
|
444
447
|
end
|
445
448
|
end
|
446
449
|
|
447
|
-
# {https://adwords.google.com/api/adwords/
|
450
|
+
# {https://adwords.google.com/api/adwords/v5}getClientAccountsResponse
|
448
451
|
class GetClientAccountsResponse < ::Array
|
449
452
|
@@schema_element = [
|
450
|
-
["getClientAccountsReturn", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
453
|
+
["getClientAccountsReturn", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getClientAccountsReturn")]]
|
454
|
+
]
|
455
|
+
end
|
456
|
+
|
457
|
+
# {https://adwords.google.com/api/adwords/v5}getLocalTimezone
|
458
|
+
class GetLocalTimezone
|
459
|
+
@@schema_type = "getLocalTimezone"
|
460
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
461
|
+
@@schema_qualified = "true"
|
462
|
+
@@schema_element = []
|
463
|
+
|
464
|
+
def initialize
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
# {https://adwords.google.com/api/adwords/v5}getLocalTimezoneResponse
|
469
|
+
class GetLocalTimezoneResponse
|
470
|
+
@@schema_type = "getLocalTimezoneResponse"
|
471
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
472
|
+
@@schema_qualified = "true"
|
473
|
+
@@schema_element = [
|
474
|
+
["getLocalTimezoneReturn", "SOAP::SOAPString"]
|
475
|
+
]
|
476
|
+
|
477
|
+
attr_accessor :getLocalTimezoneReturn
|
478
|
+
|
479
|
+
def initialize(getLocalTimezoneReturn = nil)
|
480
|
+
@getLocalTimezoneReturn = getLocalTimezoneReturn
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# {https://adwords.google.com/api/adwords/v5}setLocalTimezone
|
485
|
+
class SetLocalTimezone
|
486
|
+
@@schema_type = "setLocalTimezone"
|
487
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
488
|
+
@@schema_qualified = "true"
|
489
|
+
@@schema_element = [
|
490
|
+
["timezoneID", "SOAP::SOAPString"]
|
491
|
+
]
|
492
|
+
|
493
|
+
attr_accessor :timezoneID
|
494
|
+
|
495
|
+
def initialize(timezoneID = nil)
|
496
|
+
@timezoneID = timezoneID
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
500
|
+
# {https://adwords.google.com/api/adwords/v5}setLocalTimezoneResponse
|
501
|
+
class SetLocalTimezoneResponse
|
502
|
+
@@schema_type = "setLocalTimezoneResponse"
|
503
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
504
|
+
@@schema_qualified = "true"
|
505
|
+
@@schema_element = []
|
506
|
+
|
507
|
+
def initialize
|
508
|
+
end
|
509
|
+
end
|
510
|
+
|
511
|
+
# {https://adwords.google.com/api/adwords/v5}getTimezoneEffectiveDate
|
512
|
+
class GetTimezoneEffectiveDate
|
513
|
+
@@schema_type = "getTimezoneEffectiveDate"
|
514
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
515
|
+
@@schema_qualified = "true"
|
516
|
+
@@schema_element = []
|
517
|
+
|
518
|
+
def initialize
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
522
|
+
# {https://adwords.google.com/api/adwords/v5}getTimezoneEffectiveDateResponse
|
523
|
+
class GetTimezoneEffectiveDateResponse
|
524
|
+
@@schema_type = "getTimezoneEffectiveDateResponse"
|
525
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
526
|
+
@@schema_qualified = "true"
|
527
|
+
@@schema_element = [
|
528
|
+
["getTimezoneEffectiveDateReturn", "SOAP::SOAPLong"]
|
529
|
+
]
|
530
|
+
|
531
|
+
attr_accessor :getTimezoneEffectiveDateReturn
|
532
|
+
|
533
|
+
def initialize(getTimezoneEffectiveDateReturn = nil)
|
534
|
+
@getTimezoneEffectiveDateReturn = getTimezoneEffectiveDateReturn
|
535
|
+
end
|
536
|
+
end
|
537
|
+
|
538
|
+
# {https://adwords.google.com/api/adwords/v5}getAccountInfo
|
539
|
+
class GetAccountInfo
|
540
|
+
@@schema_type = "getAccountInfo"
|
541
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
542
|
+
@@schema_qualified = "true"
|
543
|
+
@@schema_element = []
|
544
|
+
|
545
|
+
def initialize
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
# {https://adwords.google.com/api/adwords/v5}getAccountInfoResponse
|
550
|
+
class GetAccountInfoResponse
|
551
|
+
@@schema_type = "getAccountInfoResponse"
|
552
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
553
|
+
@@schema_qualified = "true"
|
554
|
+
@@schema_element = [
|
555
|
+
["getAccountInfoReturn", "AccountInfo"]
|
556
|
+
]
|
557
|
+
|
558
|
+
attr_accessor :getAccountInfoReturn
|
559
|
+
|
560
|
+
def initialize(getAccountInfoReturn = nil)
|
561
|
+
@getAccountInfoReturn = getAccountInfoReturn
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
565
|
+
# {https://adwords.google.com/api/adwords/v5}updateAccountInfo
|
566
|
+
class UpdateAccountInfo
|
567
|
+
@@schema_type = "updateAccountInfo"
|
568
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
569
|
+
@@schema_qualified = "true"
|
570
|
+
@@schema_element = [
|
571
|
+
["accountInfo", "AccountInfo"]
|
451
572
|
]
|
573
|
+
|
574
|
+
attr_accessor :accountInfo
|
575
|
+
|
576
|
+
def initialize(accountInfo = nil)
|
577
|
+
@accountInfo = accountInfo
|
578
|
+
end
|
452
579
|
end
|
453
580
|
|
454
|
-
# {https://adwords.google.com/api/adwords/
|
581
|
+
# {https://adwords.google.com/api/adwords/v5}updateAccountInfoResponse
|
582
|
+
class UpdateAccountInfoResponse
|
583
|
+
@@schema_type = "updateAccountInfoResponse"
|
584
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
585
|
+
@@schema_qualified = "true"
|
586
|
+
@@schema_element = []
|
587
|
+
|
588
|
+
def initialize
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
# {https://adwords.google.com/api/adwords/v5}EmailPromotionsPreferences
|
455
593
|
class EmailPromotionsPreferences
|
456
594
|
@@schema_type = "EmailPromotionsPreferences"
|
457
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
595
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
458
596
|
@@schema_element = [
|
459
597
|
["marketResearchEnabled", "SOAP::SOAPBoolean"],
|
460
598
|
["newsletterEnabled", "SOAP::SOAPBoolean"],
|
@@ -472,10 +610,10 @@ class EmailPromotionsPreferences
|
|
472
610
|
end
|
473
611
|
end
|
474
612
|
|
475
|
-
# {https://adwords.google.com/api/adwords/
|
613
|
+
# {https://adwords.google.com/api/adwords/v5}CreditCard
|
476
614
|
class CreditCard
|
477
615
|
@@schema_type = "CreditCard"
|
478
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
616
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
479
617
|
@@schema_element = [
|
480
618
|
["cardNumber", "SOAP::SOAPString"],
|
481
619
|
["cardType", "SOAP::SOAPString"],
|
@@ -514,10 +652,10 @@ class CreditCard
|
|
514
652
|
end
|
515
653
|
end
|
516
654
|
|
517
|
-
# {https://adwords.google.com/api/adwords/
|
655
|
+
# {https://adwords.google.com/api/adwords/v5}Address
|
518
656
|
class Address
|
519
657
|
@@schema_type = "Address"
|
520
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
658
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
521
659
|
@@schema_element = [
|
522
660
|
["addressLine1", "SOAP::SOAPString"],
|
523
661
|
["addressLine2", "SOAP::SOAPString"],
|
@@ -528,7 +666,8 @@ class Address
|
|
528
666
|
["name", "SOAP::SOAPString"],
|
529
667
|
["phoneNumber", "SOAP::SOAPString"],
|
530
668
|
["postalCode", "SOAP::SOAPString"],
|
531
|
-
["state", "SOAP::SOAPString"]
|
669
|
+
["state", "SOAP::SOAPString"],
|
670
|
+
["emailAddress", "SOAP::SOAPString"]
|
532
671
|
]
|
533
672
|
|
534
673
|
attr_accessor :addressLine1
|
@@ -541,8 +680,9 @@ class Address
|
|
541
680
|
attr_accessor :phoneNumber
|
542
681
|
attr_accessor :postalCode
|
543
682
|
attr_accessor :state
|
683
|
+
attr_accessor :emailAddress
|
544
684
|
|
545
|
-
def initialize(addressLine1 = nil, addressLine2 = nil, city = nil, companyName = nil, countryCode = nil, faxNumber = nil, name = nil, phoneNumber = nil, postalCode = nil, state = nil)
|
685
|
+
def initialize(addressLine1 = nil, addressLine2 = nil, city = nil, companyName = nil, countryCode = nil, faxNumber = nil, name = nil, phoneNumber = nil, postalCode = nil, state = nil, emailAddress = nil)
|
546
686
|
@addressLine1 = addressLine1
|
547
687
|
@addressLine2 = addressLine2
|
548
688
|
@city = city
|
@@ -553,13 +693,14 @@ class Address
|
|
553
693
|
@phoneNumber = phoneNumber
|
554
694
|
@postalCode = postalCode
|
555
695
|
@state = state
|
696
|
+
@emailAddress = emailAddress
|
556
697
|
end
|
557
698
|
end
|
558
699
|
|
559
|
-
# {https://adwords.google.com/api/adwords/
|
700
|
+
# {https://adwords.google.com/api/adwords/v5}CoverageType
|
560
701
|
class CoverageType
|
561
702
|
@@schema_type = "CoverageType"
|
562
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
703
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
563
704
|
@@schema_element = [
|
564
705
|
["optInContentNetwork", "SOAP::SOAPBoolean"],
|
565
706
|
["optInSearchNetwork", "SOAP::SOAPBoolean"]
|
@@ -574,37 +715,121 @@ class CoverageType
|
|
574
715
|
end
|
575
716
|
end
|
576
717
|
|
577
|
-
# {https://adwords.google.com/api/adwords/
|
718
|
+
# {https://adwords.google.com/api/adwords/v5}AccountInfo
|
719
|
+
class AccountInfo
|
720
|
+
@@schema_type = "AccountInfo"
|
721
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
722
|
+
@@schema_element = [
|
723
|
+
["currencyCode", "SOAP::SOAPString"],
|
724
|
+
["billingAddress", "Address"],
|
725
|
+
["primaryAddress", "Address"],
|
726
|
+
["emailPromotionsPreferences", "EmailPromotionsPreferences"],
|
727
|
+
["languagePreference", "SOAP::SOAPString"],
|
728
|
+
["timeZoneId", "SOAP::SOAPString"],
|
729
|
+
["timeZoneEffectiveDate", "SOAP::SOAPLong"],
|
730
|
+
["customerId", "SOAP::SOAPLong"],
|
731
|
+
["descriptiveName", "SOAP::SOAPString"],
|
732
|
+
["termsAndConditions", "SOAP::SOAPString"],
|
733
|
+
["primaryBusinessCategory", "SOAP::SOAPString"],
|
734
|
+
["defaultAdsCoverage", "CoverageType"]
|
735
|
+
]
|
736
|
+
|
737
|
+
attr_accessor :currencyCode
|
738
|
+
attr_accessor :billingAddress
|
739
|
+
attr_accessor :primaryAddress
|
740
|
+
attr_accessor :emailPromotionsPreferences
|
741
|
+
attr_accessor :languagePreference
|
742
|
+
attr_accessor :timeZoneId
|
743
|
+
attr_accessor :timeZoneEffectiveDate
|
744
|
+
attr_accessor :customerId
|
745
|
+
attr_accessor :descriptiveName
|
746
|
+
attr_accessor :termsAndConditions
|
747
|
+
attr_accessor :primaryBusinessCategory
|
748
|
+
attr_accessor :defaultAdsCoverage
|
749
|
+
|
750
|
+
def initialize(currencyCode = nil, billingAddress = nil, primaryAddress = nil, emailPromotionsPreferences = nil, languagePreference = nil, timeZoneId = nil, timeZoneEffectiveDate = nil, customerId = nil, descriptiveName = nil, termsAndConditions = nil, primaryBusinessCategory = nil, defaultAdsCoverage = nil)
|
751
|
+
@currencyCode = currencyCode
|
752
|
+
@billingAddress = billingAddress
|
753
|
+
@primaryAddress = primaryAddress
|
754
|
+
@emailPromotionsPreferences = emailPromotionsPreferences
|
755
|
+
@languagePreference = languagePreference
|
756
|
+
@timeZoneId = timeZoneId
|
757
|
+
@timeZoneEffectiveDate = timeZoneEffectiveDate
|
758
|
+
@customerId = customerId
|
759
|
+
@descriptiveName = descriptiveName
|
760
|
+
@termsAndConditions = termsAndConditions
|
761
|
+
@primaryBusinessCategory = primaryBusinessCategory
|
762
|
+
@defaultAdsCoverage = defaultAdsCoverage
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
766
|
+
# {https://adwords.google.com/api/adwords/v5}ApiException
|
578
767
|
class ApiException
|
579
768
|
@@schema_type = "ApiException"
|
580
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
769
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
581
770
|
@@schema_element = [
|
582
771
|
["code", "SOAP::SOAPInt"],
|
583
772
|
["internal", "SOAP::SOAPBoolean"],
|
584
773
|
["message", "SOAP::SOAPString"],
|
585
774
|
["trigger", "SOAP::SOAPString"],
|
586
|
-
["
|
775
|
+
["errors", "ApiError[]"]
|
587
776
|
]
|
588
777
|
|
589
778
|
attr_accessor :code
|
590
779
|
attr_accessor :internal
|
591
780
|
attr_accessor :message
|
592
781
|
attr_accessor :trigger
|
593
|
-
attr_accessor :
|
782
|
+
attr_accessor :errors
|
594
783
|
|
595
|
-
def initialize(code = nil, internal = nil, message = nil, trigger = nil,
|
784
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
|
596
785
|
@code = code
|
597
786
|
@internal = internal
|
598
787
|
@message = message
|
599
788
|
@trigger = trigger
|
600
|
-
@
|
789
|
+
@errors = errors
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
793
|
+
# {https://adwords.google.com/api/adwords/v5}ApiError
|
794
|
+
class ApiError
|
795
|
+
@@schema_type = "ApiError"
|
796
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
797
|
+
@@schema_element = [
|
798
|
+
["index", "SOAP::SOAPInt"],
|
799
|
+
["field", "SOAP::SOAPString"],
|
800
|
+
["textIndex", "SOAP::SOAPInt"],
|
801
|
+
["textLength", "SOAP::SOAPInt"],
|
802
|
+
["trigger", "SOAP::SOAPString"],
|
803
|
+
["code", "SOAP::SOAPInt"],
|
804
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
805
|
+
["detail", "SOAP::SOAPString"]
|
806
|
+
]
|
807
|
+
|
808
|
+
attr_accessor :index
|
809
|
+
attr_accessor :field
|
810
|
+
attr_accessor :textIndex
|
811
|
+
attr_accessor :textLength
|
812
|
+
attr_accessor :trigger
|
813
|
+
attr_accessor :code
|
814
|
+
attr_accessor :isExemptable
|
815
|
+
attr_accessor :detail
|
816
|
+
|
817
|
+
def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
|
818
|
+
@index = index
|
819
|
+
@field = field
|
820
|
+
@textIndex = textIndex
|
821
|
+
@textLength = textLength
|
822
|
+
@trigger = trigger
|
823
|
+
@code = code
|
824
|
+
@isExemptable = isExemptable
|
825
|
+
@detail = detail
|
601
826
|
end
|
602
827
|
end
|
603
828
|
|
604
|
-
# {https://adwords.google.com/api/adwords/
|
829
|
+
# {https://adwords.google.com/api/adwords/v5}CreditCardType
|
605
830
|
class CreditCardType < ::String
|
606
831
|
@@schema_type = "CreditCardType"
|
607
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
832
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
608
833
|
|
609
834
|
AmericanExpress = CreditCardType.new("AmericanExpress")
|
610
835
|
JCB = CreditCardType.new("JCB")
|
@@ -614,10 +839,10 @@ class CreditCardType < ::String
|
|
614
839
|
VISA = CreditCardType.new("VISA")
|
615
840
|
end
|
616
841
|
|
617
|
-
# {https://adwords.google.com/api/adwords/
|
842
|
+
# {https://adwords.google.com/api/adwords/v5}TaxStatus
|
618
843
|
class TaxStatus < ::String
|
619
844
|
@@schema_type = "TaxStatus"
|
620
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
845
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
621
846
|
|
622
847
|
Charity = TaxStatus.new("Charity")
|
623
848
|
ExtraTerritorial = TaxStatus.new("ExtraTerritorial")
|