adwords4r 13.0.1 → 15.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Authors.txt +2 -1
- data/ChangeLog.txt +28 -0
- data/Copying.txt +1 -1
- data/{Licence.txt → License.txt} +1 -1
- data/Rakefile +49 -54
- data/Readme.txt +78 -24
- data/adwords.properties +1 -1
- data/examples/account_info.rb +20 -26
- data/examples/create_all.rb +51 -53
- data/examples/create_all_v200902.rb +204 -0
- data/examples/keyword_suggestions.rb +35 -38
- data/examples/multiple_versions.rb +167 -0
- data/examples/reports.rb +37 -75
- data/lib/adwords4r.rb +123 -123
- data/lib/adwords4r/adwordslogger.rb +56 -0
- data/lib/adwords4r/apiextensions.rb +79 -0
- data/lib/adwords4r/authtoken.rb +56 -0
- data/lib/adwords4r/credentials.rb +115 -19
- data/lib/adwords4r/services.rb +139 -14
- data/lib/adwords4r/soap4rpatches.rb +129 -0
- data/lib/adwords4r/v13/AccountService.rb +11 -11
- data/lib/adwords4r/v13/AccountServiceDriver.rb +7 -5
- data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +56 -56
- data/lib/adwords4r/v13/AdGroupService.rb +9 -9
- data/lib/adwords4r/v13/AdGroupServiceDriver.rb +11 -9
- data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +47 -47
- data/lib/adwords4r/v13/AdService.rb +37 -37
- data/lib/adwords4r/v13/AdServiceDriver.rb +12 -10
- data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +148 -148
- data/lib/adwords4r/v13/CampaignService.rb +46 -25
- data/lib/adwords4r/v13/CampaignServiceDriver.rb +23 -13
- data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +169 -135
- data/lib/adwords4r/v13/CriterionService.rb +19 -19
- data/lib/adwords4r/v13/CriterionServiceDriver.rb +11 -9
- data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +90 -90
- data/lib/adwords4r/v13/InfoService.rb +3 -3
- data/lib/adwords4r/v13/InfoServiceDriver.rb +10 -8
- data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +29 -29
- data/lib/adwords4r/v13/KeywordToolService.rb +10 -10
- data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +4 -2
- data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +37 -37
- data/lib/adwords4r/v13/ReportService.rb +13 -13
- data/lib/adwords4r/v13/ReportServiceDriver.rb +9 -7
- data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +54 -54
- data/lib/adwords4r/v13/SiteSuggestionService.rb +15 -15
- data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +6 -4
- data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +57 -57
- data/lib/adwords4r/v13/TrafficEstimatorService.rb +17 -17
- data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +6 -4
- data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +96 -96
- data/lib/adwords4r/v200902/AdGroupAdService.rb +2021 -0
- data/lib/adwords4r/v200902/AdGroupAdServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb +2234 -0
- data/lib/adwords4r/v200902/AdGroupCriterionService.rb +1209 -0
- data/lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb +1434 -0
- data/lib/adwords4r/v200902/AdGroupService.rb +968 -0
- data/lib/adwords4r/{v12/KeywordToolServiceDriver.rb → v200902/AdGroupServiceDriver.rb} +15 -13
- data/lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb +1114 -0
- data/lib/adwords4r/v200902/CampaignCriterionService.rb +741 -0
- data/lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb +904 -0
- data/lib/adwords4r/v200902/CampaignService.rb +1249 -0
- data/lib/adwords4r/v200902/CampaignServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb +1466 -0
- data/lib/adwords4r/v200902/CampaignTargetService.rb +1156 -0
- data/lib/adwords4r/v200902/CampaignTargetServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb +1304 -0
- data/setup.rb +0 -0
- metadata +57 -65
- data/lib/adwords4r/v12/AccountService.rb +0 -215
- data/lib/adwords4r/v12/AccountServiceDriver.rb +0 -69
- data/lib/adwords4r/v12/AccountServiceMappingRegistry.rb +0 -243
- data/lib/adwords4r/v12/AdGroupService.rb +0 -263
- data/lib/adwords4r/v12/AdGroupServiceDriver.rb +0 -109
- data/lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb +0 -280
- data/lib/adwords4r/v12/AdService.rb +0 -769
- data/lib/adwords4r/v12/AdServiceDriver.rb +0 -125
- data/lib/adwords4r/v12/AdServiceMappingRegistry.rb +0 -813
- data/lib/adwords4r/v12/CampaignService.rb +0 -498
- data/lib/adwords4r/v12/CampaignServiceDriver.rb +0 -133
- data/lib/adwords4r/v12/CampaignServiceMappingRegistry.rb +0 -642
- data/lib/adwords4r/v12/CriterionService.rb +0 -445
- data/lib/adwords4r/v12/CriterionServiceDriver.rb +0 -117
- data/lib/adwords4r/v12/CriterionServiceMappingRegistry.rb +0 -509
- data/lib/adwords4r/v12/InfoService.rb +0 -242
- data/lib/adwords4r/v12/InfoServiceDriver.rb +0 -109
- data/lib/adwords4r/v12/InfoServiceMappingRegistry.rb +0 -228
- data/lib/adwords4r/v12/KeywordToolService.rb +0 -205
- data/lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb +0 -227
- data/lib/adwords4r/v12/ReportService.rb +0 -322
- data/lib/adwords4r/v12/ReportServiceDriver.rb +0 -101
- data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +0 -298
- data/lib/adwords4r/v12/SiteSuggestionService.rb +0 -242
- data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +0 -77
- data/lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb +0 -271
- data/lib/adwords4r/v12/TrafficEstimatorService.rb +0 -312
- data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +0 -77
- data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +0 -483
@@ -0,0 +1,129 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
#
|
3
|
+
# Copyright 2009, Google Inc. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# Collection of small patches to soap4r, used in the client library.
|
18
|
+
|
19
|
+
require 'rubygems'
|
20
|
+
begin
|
21
|
+
gem 'soap4r', '=1.5.8'
|
22
|
+
rescue
|
23
|
+
require_gem 'soap4r', '=1.5.8'
|
24
|
+
end
|
25
|
+
require 'soap/soap'
|
26
|
+
require 'soap/rpc/driver'
|
27
|
+
|
28
|
+
module SOAP
|
29
|
+
|
30
|
+
# Fix an issue with SOAPDate. Google complains if the dates have any timezone
|
31
|
+
# info in them. There are probably better ways to fix this.
|
32
|
+
class SOAPDate
|
33
|
+
|
34
|
+
def of2tz(offset)
|
35
|
+
diffmin = offset * 24 * 60
|
36
|
+
if diffmin.zero?
|
37
|
+
''
|
38
|
+
else
|
39
|
+
((diffmin < 0) ? '-' : '+') << format('%02d:%02d',
|
40
|
+
(diffmin.abs / 60.0).to_i, (diffmin.abs % 60.0).to_i)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# Monkey-patching soap4r to add a callback at the Proxy level. Not exactly the
|
46
|
+
# prettiest way of doing things, but other callback levels in soap4r don't
|
47
|
+
# provide all the information we need to log.
|
48
|
+
module RPC
|
49
|
+
|
50
|
+
class CallbackHandler
|
51
|
+
|
52
|
+
# The callback handler takes a method name (the API method invoked), an
|
53
|
+
# endpoint and the message envelope. This method is meant to be overloaded
|
54
|
+
# in derived classes.
|
55
|
+
def on_callback(method_name, endpoint, envelope)
|
56
|
+
return nil
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class Driver
|
61
|
+
# Use the Driver class's __attr_proxy method to declare getters and
|
62
|
+
# setters for "callbackhandler". These reference the getters and setters
|
63
|
+
# for the property with the same name in the Proxy object contained
|
64
|
+
# within driver (@proxy).
|
65
|
+
__attr_proxy :callbackhandler, true
|
66
|
+
end
|
67
|
+
|
68
|
+
class Proxy
|
69
|
+
|
70
|
+
attr_accessor :callbackhandler
|
71
|
+
|
72
|
+
# This method is a copy of the one included in soap4r, with the additions
|
73
|
+
# marked below, to enable the callback.
|
74
|
+
def call(name, *params)
|
75
|
+
# name must be used only for lookup
|
76
|
+
op_info = lookup_operation(name)
|
77
|
+
mapping_opt = create_mapping_opt
|
78
|
+
req_header = create_request_header
|
79
|
+
req_body = SOAPBody.new(
|
80
|
+
op_info.request_body(params, @mapping_registry,
|
81
|
+
@literal_mapping_registry, mapping_opt)
|
82
|
+
)
|
83
|
+
reqopt = create_encoding_opt(
|
84
|
+
:soapaction => op_info.soapaction || @soapaction,
|
85
|
+
:envelopenamespace => @options["soap.envelope.requestnamespace"],
|
86
|
+
:default_encodingstyle =>
|
87
|
+
@default_encodingstyle || op_info.request_default_encodingstyle,
|
88
|
+
:use_default_namespace =>
|
89
|
+
op_info.use_default_namespace || @use_default_namespace
|
90
|
+
)
|
91
|
+
resopt = create_encoding_opt(
|
92
|
+
:envelopenamespace => @options["soap.envelope.responsenamespace"],
|
93
|
+
:default_encodingstyle =>
|
94
|
+
@default_encodingstyle || op_info.response_default_encodingstyle
|
95
|
+
)
|
96
|
+
if reqopt[:generate_explicit_type].nil?
|
97
|
+
reqopt[:generate_explicit_type] = (op_info.request_use == :encoded)
|
98
|
+
end
|
99
|
+
if resopt[:generate_explicit_type].nil?
|
100
|
+
resopt[:generate_explicit_type] = (op_info.response_use == :encoded)
|
101
|
+
end
|
102
|
+
env = route(req_header, req_body, reqopt, resopt)
|
103
|
+
if op_info.response_use.nil?
|
104
|
+
return nil
|
105
|
+
end
|
106
|
+
raise EmptyResponseError unless env
|
107
|
+
receive_headers(env.header)
|
108
|
+
begin
|
109
|
+
check_fault(env.body)
|
110
|
+
rescue ::SOAP::FaultError => e
|
111
|
+
op_info.raise_fault(e, @mapping_registry, @literal_mapping_registry)
|
112
|
+
end
|
113
|
+
|
114
|
+
### Patch starts here ###
|
115
|
+
if (!callbackhandler.nil?)
|
116
|
+
callbackhandler.on_callback(name, @endpoint_url, env)
|
117
|
+
end
|
118
|
+
### Patch ends here ###
|
119
|
+
|
120
|
+
if @return_response_as_xml
|
121
|
+
resopt[:response_as_xml]
|
122
|
+
else
|
123
|
+
op_info.response_obj(env.body, @mapping_registry,
|
124
|
+
@literal_mapping_registry, mapping_opt)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'xsd/qname'
|
2
2
|
|
3
|
-
module AdWords; module AccountService
|
3
|
+
module AdWords; module V13; module AccountService
|
4
4
|
|
5
5
|
|
6
6
|
# {https://adwords.google.com/api/adwords/v13}AccountInfo
|
7
|
-
# billingAddress - AdWords::AccountService::Address
|
7
|
+
# billingAddress - AdWords::V13::AccountService::Address
|
8
8
|
# currencyCode - SOAP::SOAPString
|
9
9
|
# customerId - SOAP::SOAPLong
|
10
|
-
# defaultNetworkTargeting - AdWords::AccountService::NetworkTarget
|
10
|
+
# defaultNetworkTargeting - AdWords::V13::AccountService::NetworkTarget
|
11
11
|
# descriptiveName - SOAP::SOAPString
|
12
|
-
# emailPromotionsPreferences - AdWords::AccountService::EmailPromotionsPreferences
|
12
|
+
# emailPromotionsPreferences - AdWords::V13::AccountService::EmailPromotionsPreferences
|
13
13
|
# languagePreference - SOAP::SOAPString
|
14
|
-
# primaryAddress - AdWords::AccountService::Address
|
14
|
+
# primaryAddress - AdWords::V13::AccountService::Address
|
15
15
|
# primaryBusinessCategory - SOAP::SOAPString
|
16
16
|
# timeZoneEffectiveDate - SOAP::SOAPLong
|
17
17
|
# timeZoneId - SOAP::SOAPString
|
@@ -116,7 +116,7 @@ end
|
|
116
116
|
|
117
117
|
# {https://adwords.google.com/api/adwords/v13}ApiException
|
118
118
|
# code - SOAP::SOAPInt
|
119
|
-
# errors - AdWords::AccountService::ApiError
|
119
|
+
# errors - AdWords::V13::AccountService::ApiError
|
120
120
|
# internal - SOAP::SOAPBoolean
|
121
121
|
# message - SOAP::SOAPString
|
122
122
|
# trigger - SOAP::SOAPString
|
@@ -176,9 +176,9 @@ end
|
|
176
176
|
# clientCustomerId - SOAP::SOAPLong
|
177
177
|
# clientLogin - SOAP::SOAPString
|
178
178
|
# clientName - SOAP::SOAPString
|
179
|
-
# priority - AdWords::AccountService::MccAlertPriority
|
179
|
+
# priority - AdWords::V13::AccountService::MccAlertPriority
|
180
180
|
# triggerTime - SOAP::SOAPDateTime
|
181
|
-
# type - AdWords::AccountService::MccAlertType
|
181
|
+
# type - AdWords::V13::AccountService::MccAlertType
|
182
182
|
class MccAlert
|
183
183
|
attr_accessor :clientCompanyName
|
184
184
|
attr_accessor :clientCustomerId
|
@@ -238,7 +238,7 @@ class GetAccountInfo
|
|
238
238
|
end
|
239
239
|
|
240
240
|
# {https://adwords.google.com/api/adwords/v13}getAccountInfoResponse
|
241
|
-
# getAccountInfoReturn - AdWords::AccountService::AccountInfo
|
241
|
+
# getAccountInfoReturn - AdWords::V13::AccountService::AccountInfo
|
242
242
|
class GetAccountInfoResponse
|
243
243
|
attr_accessor :getAccountInfoReturn
|
244
244
|
|
@@ -278,7 +278,7 @@ class GetMccAlertsResponse < ::Array
|
|
278
278
|
end
|
279
279
|
|
280
280
|
# {https://adwords.google.com/api/adwords/v13}updateAccountInfo
|
281
|
-
# accountInfo - AdWords::AccountService::AccountInfo
|
281
|
+
# accountInfo - AdWords::V13::AccountService::AccountInfo
|
282
282
|
class UpdateAccountInfo
|
283
283
|
attr_accessor :accountInfo
|
284
284
|
|
@@ -294,4 +294,4 @@ class UpdateAccountInfoResponse
|
|
294
294
|
end
|
295
295
|
|
296
296
|
|
297
|
-
end; end
|
297
|
+
end; end; end
|
@@ -3,6 +3,7 @@ require 'adwords4r/v13/AccountServiceMappingRegistry'
|
|
3
3
|
require 'soap/rpc/driver'
|
4
4
|
|
5
5
|
module AdWords
|
6
|
+
module V13
|
6
7
|
module AccountService
|
7
8
|
|
8
9
|
class AccountInterface < ::SOAP::RPC::Driver
|
@@ -15,7 +16,7 @@ class AccountInterface < ::SOAP::RPC::Driver
|
|
15
16
|
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAccountInfoResponse"]] ],
|
16
17
|
{ :request_style => :document, :request_use => :literal,
|
17
18
|
:response_style => :document, :response_use => :literal,
|
18
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:
|
19
|
+
:faults => {"AdWords::V13::AccountService::ApiException"=>{:use=>"literal", :name=>"ApiException", :namespace=>nil, :encodingstyle=>"document", :ns=>"https://adwords.google.com/api/adwords/v13"}} }
|
19
20
|
],
|
20
21
|
[ "",
|
21
22
|
"getClientAccountInfos",
|
@@ -23,7 +24,7 @@ class AccountInterface < ::SOAP::RPC::Driver
|
|
23
24
|
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getClientAccountInfosResponse"]] ],
|
24
25
|
{ :request_style => :document, :request_use => :literal,
|
25
26
|
:response_style => :document, :response_use => :literal,
|
26
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:
|
27
|
+
:faults => {"AdWords::V13::AccountService::ApiException"=>{:use=>"literal", :name=>"ApiException", :namespace=>nil, :encodingstyle=>"document", :ns=>"https://adwords.google.com/api/adwords/v13"}} }
|
27
28
|
],
|
28
29
|
[ "",
|
29
30
|
"getClientAccounts",
|
@@ -31,7 +32,7 @@ class AccountInterface < ::SOAP::RPC::Driver
|
|
31
32
|
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getClientAccountsResponse"]] ],
|
32
33
|
{ :request_style => :document, :request_use => :literal,
|
33
34
|
:response_style => :document, :response_use => :literal,
|
34
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:
|
35
|
+
:faults => {"AdWords::V13::AccountService::ApiException"=>{:use=>"literal", :name=>"ApiException", :namespace=>nil, :encodingstyle=>"document", :ns=>"https://adwords.google.com/api/adwords/v13"}} }
|
35
36
|
],
|
36
37
|
[ "",
|
37
38
|
"getMccAlerts",
|
@@ -39,7 +40,7 @@ class AccountInterface < ::SOAP::RPC::Driver
|
|
39
40
|
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getMccAlertsResponse"]] ],
|
40
41
|
{ :request_style => :document, :request_use => :literal,
|
41
42
|
:response_style => :document, :response_use => :literal,
|
42
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:
|
43
|
+
:faults => {"AdWords::V13::AccountService::ApiException"=>{:use=>"literal", :name=>"ApiException", :namespace=>nil, :encodingstyle=>"document", :ns=>"https://adwords.google.com/api/adwords/v13"}} }
|
43
44
|
],
|
44
45
|
[ "",
|
45
46
|
"updateAccountInfo",
|
@@ -47,7 +48,7 @@ class AccountInterface < ::SOAP::RPC::Driver
|
|
47
48
|
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "updateAccountInfoResponse"]] ],
|
48
49
|
{ :request_style => :document, :request_use => :literal,
|
49
50
|
:response_style => :document, :response_use => :literal,
|
50
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:
|
51
|
+
:faults => {"AdWords::V13::AccountService::ApiException"=>{:use=>"literal", :name=>"ApiException", :namespace=>nil, :encodingstyle=>"document", :ns=>"https://adwords.google.com/api/adwords/v13"}} }
|
51
52
|
]
|
52
53
|
]
|
53
54
|
|
@@ -83,3 +84,4 @@ end
|
|
83
84
|
|
84
85
|
end
|
85
86
|
end
|
87
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'adwords4r/v13/AccountService'
|
2
2
|
require 'soap/mapping'
|
3
3
|
|
4
|
-
module AdWords; module AccountService
|
4
|
+
module AdWords; module V13; module AccountService
|
5
5
|
|
6
6
|
module DefaultMappingRegistry
|
7
7
|
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
|
@@ -9,17 +9,17 @@ module DefaultMappingRegistry
|
|
9
9
|
NsV13 = "https://adwords.google.com/api/adwords/v13"
|
10
10
|
|
11
11
|
EncodedRegistry.register(
|
12
|
-
:class => AdWords::AccountService::AccountInfo,
|
12
|
+
:class => AdWords::V13::AccountService::AccountInfo,
|
13
13
|
:schema_type => XSD::QName.new(NsV13, "AccountInfo"),
|
14
14
|
:schema_element => [
|
15
|
-
["billingAddress", "AdWords::AccountService::Address"],
|
15
|
+
["billingAddress", "AdWords::V13::AccountService::Address"],
|
16
16
|
["currencyCode", "SOAP::SOAPString"],
|
17
17
|
["customerId", "SOAP::SOAPLong", [0, 1]],
|
18
|
-
["defaultNetworkTargeting", "AdWords::AccountService::NetworkTarget"],
|
18
|
+
["defaultNetworkTargeting", "AdWords::V13::AccountService::NetworkTarget"],
|
19
19
|
["descriptiveName", "SOAP::SOAPString"],
|
20
|
-
["emailPromotionsPreferences", "AdWords::AccountService::EmailPromotionsPreferences"],
|
20
|
+
["emailPromotionsPreferences", "AdWords::V13::AccountService::EmailPromotionsPreferences"],
|
21
21
|
["languagePreference", "SOAP::SOAPString"],
|
22
|
-
["primaryAddress", "AdWords::AccountService::Address"],
|
22
|
+
["primaryAddress", "AdWords::V13::AccountService::Address"],
|
23
23
|
["primaryBusinessCategory", "SOAP::SOAPString"],
|
24
24
|
["timeZoneEffectiveDate", "SOAP::SOAPLong", [0, 1]],
|
25
25
|
["timeZoneId", "SOAP::SOAPString"]
|
@@ -27,7 +27,7 @@ module DefaultMappingRegistry
|
|
27
27
|
)
|
28
28
|
|
29
29
|
EncodedRegistry.register(
|
30
|
-
:class => AdWords::AccountService::Address,
|
30
|
+
:class => AdWords::V13::AccountService::Address,
|
31
31
|
:schema_type => XSD::QName.new(NsV13, "Address"),
|
32
32
|
:schema_element => [
|
33
33
|
["addressLine1", "SOAP::SOAPString"],
|
@@ -45,7 +45,7 @@ module DefaultMappingRegistry
|
|
45
45
|
)
|
46
46
|
|
47
47
|
EncodedRegistry.register(
|
48
|
-
:class => AdWords::AccountService::ApiError,
|
48
|
+
:class => AdWords::V13::AccountService::ApiError,
|
49
49
|
:schema_type => XSD::QName.new(NsV13, "ApiError"),
|
50
50
|
:schema_element => [
|
51
51
|
["code", "SOAP::SOAPInt"],
|
@@ -60,11 +60,11 @@ module DefaultMappingRegistry
|
|
60
60
|
)
|
61
61
|
|
62
62
|
EncodedRegistry.register(
|
63
|
-
:class => AdWords::AccountService::ApiException,
|
63
|
+
:class => AdWords::V13::AccountService::ApiException,
|
64
64
|
:schema_type => XSD::QName.new(NsV13, "ApiException"),
|
65
65
|
:schema_element => [
|
66
66
|
["code", "SOAP::SOAPInt"],
|
67
|
-
["errors", "AdWords::AccountService::ApiError[]", [1, nil]],
|
67
|
+
["errors", "AdWords::V13::AccountService::ApiError[]", [1, nil]],
|
68
68
|
["internal", "SOAP::SOAPBoolean"],
|
69
69
|
["message", "SOAP::SOAPString"],
|
70
70
|
["trigger", "SOAP::SOAPString"]
|
@@ -72,7 +72,7 @@ module DefaultMappingRegistry
|
|
72
72
|
)
|
73
73
|
|
74
74
|
EncodedRegistry.register(
|
75
|
-
:class => AdWords::AccountService::ClientAccountInfo,
|
75
|
+
:class => AdWords::V13::AccountService::ClientAccountInfo,
|
76
76
|
:schema_type => XSD::QName.new(NsV13, "ClientAccountInfo"),
|
77
77
|
:schema_element => [
|
78
78
|
["emailAddress", "SOAP::SOAPString"],
|
@@ -81,7 +81,7 @@ module DefaultMappingRegistry
|
|
81
81
|
)
|
82
82
|
|
83
83
|
EncodedRegistry.register(
|
84
|
-
:class => AdWords::AccountService::EmailPromotionsPreferences,
|
84
|
+
:class => AdWords::V13::AccountService::EmailPromotionsPreferences,
|
85
85
|
:schema_type => XSD::QName.new(NsV13, "EmailPromotionsPreferences"),
|
86
86
|
:schema_element => [
|
87
87
|
["accountPerformanceEnabled", "SOAP::SOAPBoolean"],
|
@@ -93,54 +93,54 @@ module DefaultMappingRegistry
|
|
93
93
|
)
|
94
94
|
|
95
95
|
EncodedRegistry.register(
|
96
|
-
:class => AdWords::AccountService::MccAlert,
|
96
|
+
:class => AdWords::V13::AccountService::MccAlert,
|
97
97
|
:schema_type => XSD::QName.new(NsV13, "MccAlert"),
|
98
98
|
:schema_element => [
|
99
99
|
["clientCompanyName", "SOAP::SOAPString"],
|
100
100
|
["clientCustomerId", "SOAP::SOAPLong"],
|
101
101
|
["clientLogin", "SOAP::SOAPString"],
|
102
102
|
["clientName", "SOAP::SOAPString"],
|
103
|
-
["priority", "AdWords::AccountService::MccAlertPriority"],
|
103
|
+
["priority", "AdWords::V13::AccountService::MccAlertPriority"],
|
104
104
|
["triggerTime", "SOAP::SOAPDateTime"],
|
105
|
-
["type", "AdWords::AccountService::MccAlertType"]
|
105
|
+
["type", "AdWords::V13::AccountService::MccAlertType"]
|
106
106
|
]
|
107
107
|
)
|
108
108
|
|
109
109
|
EncodedRegistry.register(
|
110
|
-
:class => AdWords::AccountService::NetworkTarget,
|
110
|
+
:class => AdWords::V13::AccountService::NetworkTarget,
|
111
111
|
:schema_type => XSD::QName.new(NsV13, "NetworkTarget"),
|
112
112
|
:schema_element => [
|
113
|
-
["networkTypes", "AdWords::AccountService::NetworkType[]", [0, nil]]
|
113
|
+
["networkTypes", "AdWords::V13::AccountService::NetworkType[]", [0, nil]]
|
114
114
|
]
|
115
115
|
)
|
116
116
|
|
117
117
|
EncodedRegistry.register(
|
118
|
-
:class => AdWords::AccountService::MccAlertPriority,
|
118
|
+
:class => AdWords::V13::AccountService::MccAlertPriority,
|
119
119
|
:schema_type => XSD::QName.new(NsV13, "MccAlertPriority")
|
120
120
|
)
|
121
121
|
|
122
122
|
EncodedRegistry.register(
|
123
|
-
:class => AdWords::AccountService::MccAlertType,
|
123
|
+
:class => AdWords::V13::AccountService::MccAlertType,
|
124
124
|
:schema_type => XSD::QName.new(NsV13, "MccAlertType")
|
125
125
|
)
|
126
126
|
|
127
127
|
EncodedRegistry.register(
|
128
|
-
:class => AdWords::AccountService::NetworkType,
|
128
|
+
:class => AdWords::V13::AccountService::NetworkType,
|
129
129
|
:schema_type => XSD::QName.new(NsV13, "NetworkType")
|
130
130
|
)
|
131
131
|
|
132
132
|
LiteralRegistry.register(
|
133
|
-
:class => AdWords::AccountService::AccountInfo,
|
133
|
+
:class => AdWords::V13::AccountService::AccountInfo,
|
134
134
|
:schema_type => XSD::QName.new(NsV13, "AccountInfo"),
|
135
135
|
:schema_element => [
|
136
|
-
["billingAddress", "AdWords::AccountService::Address"],
|
136
|
+
["billingAddress", "AdWords::V13::AccountService::Address"],
|
137
137
|
["currencyCode", "SOAP::SOAPString"],
|
138
138
|
["customerId", "SOAP::SOAPLong", [0, 1]],
|
139
|
-
["defaultNetworkTargeting", "AdWords::AccountService::NetworkTarget"],
|
139
|
+
["defaultNetworkTargeting", "AdWords::V13::AccountService::NetworkTarget"],
|
140
140
|
["descriptiveName", "SOAP::SOAPString"],
|
141
|
-
["emailPromotionsPreferences", "AdWords::AccountService::EmailPromotionsPreferences"],
|
141
|
+
["emailPromotionsPreferences", "AdWords::V13::AccountService::EmailPromotionsPreferences"],
|
142
142
|
["languagePreference", "SOAP::SOAPString"],
|
143
|
-
["primaryAddress", "AdWords::AccountService::Address"],
|
143
|
+
["primaryAddress", "AdWords::V13::AccountService::Address"],
|
144
144
|
["primaryBusinessCategory", "SOAP::SOAPString"],
|
145
145
|
["timeZoneEffectiveDate", "SOAP::SOAPLong", [0, 1]],
|
146
146
|
["timeZoneId", "SOAP::SOAPString"]
|
@@ -148,7 +148,7 @@ module DefaultMappingRegistry
|
|
148
148
|
)
|
149
149
|
|
150
150
|
LiteralRegistry.register(
|
151
|
-
:class => AdWords::AccountService::Address,
|
151
|
+
:class => AdWords::V13::AccountService::Address,
|
152
152
|
:schema_type => XSD::QName.new(NsV13, "Address"),
|
153
153
|
:schema_element => [
|
154
154
|
["addressLine1", "SOAP::SOAPString"],
|
@@ -166,7 +166,7 @@ module DefaultMappingRegistry
|
|
166
166
|
)
|
167
167
|
|
168
168
|
LiteralRegistry.register(
|
169
|
-
:class => AdWords::AccountService::ApiError,
|
169
|
+
:class => AdWords::V13::AccountService::ApiError,
|
170
170
|
:schema_type => XSD::QName.new(NsV13, "ApiError"),
|
171
171
|
:schema_element => [
|
172
172
|
["code", "SOAP::SOAPInt"],
|
@@ -181,11 +181,11 @@ module DefaultMappingRegistry
|
|
181
181
|
)
|
182
182
|
|
183
183
|
LiteralRegistry.register(
|
184
|
-
:class => AdWords::AccountService::ApiException,
|
184
|
+
:class => AdWords::V13::AccountService::ApiException,
|
185
185
|
:schema_type => XSD::QName.new(NsV13, "ApiException"),
|
186
186
|
:schema_element => [
|
187
187
|
["code", "SOAP::SOAPInt"],
|
188
|
-
["errors", "AdWords::AccountService::ApiError[]", [1, nil]],
|
188
|
+
["errors", "AdWords::V13::AccountService::ApiError[]", [1, nil]],
|
189
189
|
["internal", "SOAP::SOAPBoolean"],
|
190
190
|
["message", "SOAP::SOAPString"],
|
191
191
|
["trigger", "SOAP::SOAPString"]
|
@@ -193,7 +193,7 @@ module DefaultMappingRegistry
|
|
193
193
|
)
|
194
194
|
|
195
195
|
LiteralRegistry.register(
|
196
|
-
:class => AdWords::AccountService::ClientAccountInfo,
|
196
|
+
:class => AdWords::V13::AccountService::ClientAccountInfo,
|
197
197
|
:schema_type => XSD::QName.new(NsV13, "ClientAccountInfo"),
|
198
198
|
:schema_element => [
|
199
199
|
["emailAddress", "SOAP::SOAPString"],
|
@@ -202,7 +202,7 @@ module DefaultMappingRegistry
|
|
202
202
|
)
|
203
203
|
|
204
204
|
LiteralRegistry.register(
|
205
|
-
:class => AdWords::AccountService::EmailPromotionsPreferences,
|
205
|
+
:class => AdWords::V13::AccountService::EmailPromotionsPreferences,
|
206
206
|
:schema_type => XSD::QName.new(NsV13, "EmailPromotionsPreferences"),
|
207
207
|
:schema_element => [
|
208
208
|
["accountPerformanceEnabled", "SOAP::SOAPBoolean"],
|
@@ -214,48 +214,48 @@ module DefaultMappingRegistry
|
|
214
214
|
)
|
215
215
|
|
216
216
|
LiteralRegistry.register(
|
217
|
-
:class => AdWords::AccountService::MccAlert,
|
217
|
+
:class => AdWords::V13::AccountService::MccAlert,
|
218
218
|
:schema_type => XSD::QName.new(NsV13, "MccAlert"),
|
219
219
|
:schema_element => [
|
220
220
|
["clientCompanyName", "SOAP::SOAPString"],
|
221
221
|
["clientCustomerId", "SOAP::SOAPLong"],
|
222
222
|
["clientLogin", "SOAP::SOAPString"],
|
223
223
|
["clientName", "SOAP::SOAPString"],
|
224
|
-
["priority", "AdWords::AccountService::MccAlertPriority"],
|
224
|
+
["priority", "AdWords::V13::AccountService::MccAlertPriority"],
|
225
225
|
["triggerTime", "SOAP::SOAPDateTime"],
|
226
|
-
["type", "AdWords::AccountService::MccAlertType"]
|
226
|
+
["type", "AdWords::V13::AccountService::MccAlertType"]
|
227
227
|
]
|
228
228
|
)
|
229
229
|
|
230
230
|
LiteralRegistry.register(
|
231
|
-
:class => AdWords::AccountService::NetworkTarget,
|
231
|
+
:class => AdWords::V13::AccountService::NetworkTarget,
|
232
232
|
:schema_type => XSD::QName.new(NsV13, "NetworkTarget"),
|
233
233
|
:schema_element => [
|
234
|
-
["networkTypes", "AdWords::AccountService::NetworkType[]", [0, nil]]
|
234
|
+
["networkTypes", "AdWords::V13::AccountService::NetworkType[]", [0, nil]]
|
235
235
|
]
|
236
236
|
)
|
237
237
|
|
238
238
|
LiteralRegistry.register(
|
239
|
-
:class => AdWords::AccountService::MccAlertPriority,
|
239
|
+
:class => AdWords::V13::AccountService::MccAlertPriority,
|
240
240
|
:schema_type => XSD::QName.new(NsV13, "MccAlertPriority")
|
241
241
|
)
|
242
242
|
|
243
243
|
LiteralRegistry.register(
|
244
|
-
:class => AdWords::AccountService::MccAlertType,
|
244
|
+
:class => AdWords::V13::AccountService::MccAlertType,
|
245
245
|
:schema_type => XSD::QName.new(NsV13, "MccAlertType")
|
246
246
|
)
|
247
247
|
|
248
248
|
LiteralRegistry.register(
|
249
|
-
:class => AdWords::AccountService::NetworkType,
|
249
|
+
:class => AdWords::V13::AccountService::NetworkType,
|
250
250
|
:schema_type => XSD::QName.new(NsV13, "NetworkType")
|
251
251
|
)
|
252
252
|
|
253
253
|
LiteralRegistry.register(
|
254
|
-
:class => AdWords::AccountService::ApiException,
|
254
|
+
:class => AdWords::V13::AccountService::ApiException,
|
255
255
|
:schema_name => XSD::QName.new(NsV13, "fault"),
|
256
256
|
:schema_element => [
|
257
257
|
["code", "SOAP::SOAPInt"],
|
258
|
-
["errors", "AdWords::AccountService::ApiError[]", [1, nil]],
|
258
|
+
["errors", "AdWords::V13::AccountService::ApiError[]", [1, nil]],
|
259
259
|
["internal", "SOAP::SOAPBoolean"],
|
260
260
|
["message", "SOAP::SOAPString"],
|
261
261
|
["trigger", "SOAP::SOAPString"]
|
@@ -263,41 +263,41 @@ module DefaultMappingRegistry
|
|
263
263
|
)
|
264
264
|
|
265
265
|
LiteralRegistry.register(
|
266
|
-
:class => AdWords::AccountService::GetAccountInfo,
|
266
|
+
:class => AdWords::V13::AccountService::GetAccountInfo,
|
267
267
|
:schema_name => XSD::QName.new(NsV13, "getAccountInfo"),
|
268
268
|
:schema_element => []
|
269
269
|
)
|
270
270
|
|
271
271
|
LiteralRegistry.register(
|
272
|
-
:class => AdWords::AccountService::GetAccountInfoResponse,
|
272
|
+
:class => AdWords::V13::AccountService::GetAccountInfoResponse,
|
273
273
|
:schema_name => XSD::QName.new(NsV13, "getAccountInfoResponse"),
|
274
274
|
:schema_element => [
|
275
|
-
["getAccountInfoReturn", "AdWords::AccountService::AccountInfo"]
|
275
|
+
["getAccountInfoReturn", "AdWords::V13::AccountService::AccountInfo"]
|
276
276
|
]
|
277
277
|
)
|
278
278
|
|
279
279
|
LiteralRegistry.register(
|
280
|
-
:class => AdWords::AccountService::GetClientAccountInfos,
|
280
|
+
:class => AdWords::V13::AccountService::GetClientAccountInfos,
|
281
281
|
:schema_name => XSD::QName.new(NsV13, "getClientAccountInfos"),
|
282
282
|
:schema_element => []
|
283
283
|
)
|
284
284
|
|
285
285
|
LiteralRegistry.register(
|
286
|
-
:class => AdWords::AccountService::GetClientAccountInfosResponse,
|
286
|
+
:class => AdWords::V13::AccountService::GetClientAccountInfosResponse,
|
287
287
|
:schema_name => XSD::QName.new(NsV13, "getClientAccountInfosResponse"),
|
288
288
|
:schema_element => [
|
289
|
-
["getClientAccountInfosReturn", "AdWords::AccountService::ClientAccountInfo[]", [1, nil]]
|
289
|
+
["getClientAccountInfosReturn", "AdWords::V13::AccountService::ClientAccountInfo[]", [1, nil]]
|
290
290
|
]
|
291
291
|
)
|
292
292
|
|
293
293
|
LiteralRegistry.register(
|
294
|
-
:class => AdWords::AccountService::GetClientAccounts,
|
294
|
+
:class => AdWords::V13::AccountService::GetClientAccounts,
|
295
295
|
:schema_name => XSD::QName.new(NsV13, "getClientAccounts"),
|
296
296
|
:schema_element => []
|
297
297
|
)
|
298
298
|
|
299
299
|
LiteralRegistry.register(
|
300
|
-
:class => AdWords::AccountService::GetClientAccountsResponse,
|
300
|
+
:class => AdWords::V13::AccountService::GetClientAccountsResponse,
|
301
301
|
:schema_name => XSD::QName.new(NsV13, "getClientAccountsResponse"),
|
302
302
|
:schema_element => [
|
303
303
|
["getClientAccountsReturn", "SOAP::SOAPString[]", [1, nil]]
|
@@ -305,33 +305,33 @@ module DefaultMappingRegistry
|
|
305
305
|
)
|
306
306
|
|
307
307
|
LiteralRegistry.register(
|
308
|
-
:class => AdWords::AccountService::GetMccAlerts,
|
308
|
+
:class => AdWords::V13::AccountService::GetMccAlerts,
|
309
309
|
:schema_name => XSD::QName.new(NsV13, "getMccAlerts"),
|
310
310
|
:schema_element => []
|
311
311
|
)
|
312
312
|
|
313
313
|
LiteralRegistry.register(
|
314
|
-
:class => AdWords::AccountService::GetMccAlertsResponse,
|
314
|
+
:class => AdWords::V13::AccountService::GetMccAlertsResponse,
|
315
315
|
:schema_name => XSD::QName.new(NsV13, "getMccAlertsResponse"),
|
316
316
|
:schema_element => [
|
317
|
-
["getMccAlertsReturn", "AdWords::AccountService::MccAlert[]", [1, nil]]
|
317
|
+
["getMccAlertsReturn", "AdWords::V13::AccountService::MccAlert[]", [1, nil]]
|
318
318
|
]
|
319
319
|
)
|
320
320
|
|
321
321
|
LiteralRegistry.register(
|
322
|
-
:class => AdWords::AccountService::UpdateAccountInfo,
|
322
|
+
:class => AdWords::V13::AccountService::UpdateAccountInfo,
|
323
323
|
:schema_name => XSD::QName.new(NsV13, "updateAccountInfo"),
|
324
324
|
:schema_element => [
|
325
|
-
["accountInfo", "AdWords::AccountService::AccountInfo"]
|
325
|
+
["accountInfo", "AdWords::V13::AccountService::AccountInfo"]
|
326
326
|
]
|
327
327
|
)
|
328
328
|
|
329
329
|
LiteralRegistry.register(
|
330
|
-
:class => AdWords::AccountService::UpdateAccountInfoResponse,
|
330
|
+
:class => AdWords::V13::AccountService::UpdateAccountInfoResponse,
|
331
331
|
:schema_name => XSD::QName.new(NsV13, "updateAccountInfoResponse"),
|
332
332
|
:schema_element => []
|
333
333
|
)
|
334
334
|
|
335
335
|
end
|
336
336
|
|
337
|
-
end; end
|
337
|
+
end; end; end
|