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
data/setup.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,30 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adwords4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
platform:
|
4
|
+
version: 15.0.1
|
5
|
+
platform: ""
|
6
6
|
authors:
|
7
|
-
- Jeffrey Posnick, Patrick Chanezon, Ryan Leavengood
|
7
|
+
- Sergio Gomes, Jeffrey Posnick, Patrick Chanezon, Ryan Leavengood
|
8
8
|
autorequire: adwords4r
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-05-14 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: soap4r
|
17
|
-
type: :runtime
|
18
17
|
version_requirement:
|
19
18
|
version_requirements: !ruby/object:Gem::Requirement
|
20
19
|
requirements:
|
21
|
-
- - "
|
20
|
+
- - "="
|
22
21
|
- !ruby/object:Gem::Version
|
23
22
|
version: 1.5.8
|
24
23
|
version:
|
25
24
|
- !ruby/object:Gem::Dependency
|
26
25
|
name: httpclient
|
27
|
-
type: :runtime
|
28
26
|
version_requirement:
|
29
27
|
version_requirements: !ruby/object:Gem::Requirement
|
30
28
|
requirements:
|
@@ -32,8 +30,8 @@ dependencies:
|
|
32
30
|
- !ruby/object:Gem::Version
|
33
31
|
version: 2.1.2
|
34
32
|
version:
|
35
|
-
description: Adwords4r provides an easy to use way to access the AdWords API in
|
36
|
-
email:
|
33
|
+
description: Adwords4r provides an easy to use way to access the AdWords API in Ruby.Currently the following AdWords API versions are supported:* V13* V200902 (sandbox)
|
34
|
+
email: api.sgomes@gmail.com
|
37
35
|
executables: []
|
38
36
|
|
39
37
|
extensions: []
|
@@ -41,7 +39,7 @@ extensions: []
|
|
41
39
|
extra_rdoc_files: []
|
42
40
|
|
43
41
|
files:
|
44
|
-
-
|
42
|
+
- License.txt
|
45
43
|
- setup.rb
|
46
44
|
- Authors.txt
|
47
45
|
- ChangeLog.txt
|
@@ -50,74 +48,68 @@ files:
|
|
50
48
|
- adwords.properties
|
51
49
|
- Rakefile
|
52
50
|
- lib/adwords4r/v13/AccountService.rb
|
51
|
+
- lib/adwords4r/v13/KeywordToolServiceDriver.rb
|
52
|
+
- lib/adwords4r/v13/CriterionService.rb
|
53
|
+
- lib/adwords4r/v13/InfoServiceMappingRegistry.rb
|
54
|
+
- lib/adwords4r/v13/AdServiceDriver.rb
|
53
55
|
- lib/adwords4r/v13/AccountServiceMappingRegistry.rb
|
54
|
-
- lib/adwords4r/v13/AccountServiceDriver.rb
|
55
56
|
- lib/adwords4r/v13/AdGroupService.rb
|
56
|
-
- lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb
|
57
|
-
- lib/adwords4r/v13/AdGroupServiceDriver.rb
|
58
|
-
- lib/adwords4r/v13/AdService.rb
|
59
|
-
- lib/adwords4r/v13/AdServiceMappingRegistry.rb
|
60
|
-
- lib/adwords4r/v13/AdServiceDriver.rb
|
61
|
-
- lib/adwords4r/v13/InfoService.rb
|
62
|
-
- lib/adwords4r/v13/CampaignService.rb
|
63
|
-
- lib/adwords4r/v13/CampaignServiceMappingRegistry.rb
|
64
|
-
- lib/adwords4r/v13/CampaignServiceDriver.rb
|
65
|
-
- lib/adwords4r/v13/CriterionService.rb
|
66
57
|
- lib/adwords4r/v13/CriterionServiceMappingRegistry.rb
|
67
|
-
- lib/adwords4r/v13/
|
68
|
-
- lib/adwords4r/v13/
|
58
|
+
- lib/adwords4r/v13/TrafficEstimatorService.rb
|
59
|
+
- lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb
|
69
60
|
- lib/adwords4r/v13/InfoServiceDriver.rb
|
70
|
-
- lib/adwords4r/v13/
|
71
|
-
- lib/adwords4r/v13/
|
72
|
-
- lib/adwords4r/v13/KeywordToolServiceDriver.rb
|
61
|
+
- lib/adwords4r/v13/AccountServiceDriver.rb
|
62
|
+
- lib/adwords4r/v13/CriterionServiceDriver.rb
|
73
63
|
- lib/adwords4r/v13/ReportService.rb
|
74
|
-
- lib/adwords4r/v13/
|
75
|
-
- lib/adwords4r/v13/ReportServiceDriver.rb
|
64
|
+
- lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb
|
76
65
|
- lib/adwords4r/v13/SiteSuggestionService.rb
|
66
|
+
- lib/adwords4r/v13/AdGroupServiceDriver.rb
|
67
|
+
- lib/adwords4r/v13/CampaignService.rb
|
68
|
+
- lib/adwords4r/v13/ReportServiceMappingRegistry.rb
|
77
69
|
- lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb
|
78
|
-
- lib/adwords4r/v13/
|
79
|
-
- lib/adwords4r/v13/TrafficEstimatorService.rb
|
80
|
-
- lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb
|
70
|
+
- lib/adwords4r/v13/KeywordToolService.rb
|
81
71
|
- lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb
|
82
|
-
- lib/adwords4r/
|
83
|
-
- lib/adwords4r/
|
84
|
-
- lib/adwords4r/
|
85
|
-
- lib/adwords4r/
|
86
|
-
- lib/adwords4r/
|
87
|
-
- lib/adwords4r/
|
88
|
-
- lib/adwords4r/
|
89
|
-
- lib/adwords4r/
|
90
|
-
- lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb
|
91
|
-
- lib/adwords4r/v12/TrafficEstimatorService.rb
|
92
|
-
- lib/adwords4r/v12/InfoServiceDriver.rb
|
93
|
-
- lib/adwords4r/v12/AccountServiceDriver.rb
|
94
|
-
- lib/adwords4r/v12/CriterionServiceDriver.rb
|
95
|
-
- lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb
|
96
|
-
- lib/adwords4r/v12/ReportService.rb
|
97
|
-
- lib/adwords4r/v12/SiteSuggestionService.rb
|
98
|
-
- lib/adwords4r/v12/AdGroupServiceDriver.rb
|
99
|
-
- lib/adwords4r/v12/CampaignService.rb
|
100
|
-
- lib/adwords4r/v12/ReportServiceMappingRegistry.rb
|
101
|
-
- lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb
|
102
|
-
- lib/adwords4r/v12/KeywordToolService.rb
|
103
|
-
- lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb
|
104
|
-
- lib/adwords4r/v12/AdService.rb
|
105
|
-
- lib/adwords4r/v12/CampaignServiceMappingRegistry.rb
|
106
|
-
- lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb
|
107
|
-
- lib/adwords4r/v12/ReportServiceDriver.rb
|
108
|
-
- lib/adwords4r/v12/SiteSuggestionServiceDriver.rb
|
109
|
-
- lib/adwords4r/v12/AdServiceMappingRegistry.rb
|
110
|
-
- lib/adwords4r/v12/CampaignServiceDriver.rb
|
111
|
-
- lib/adwords4r/v12/InfoService.rb
|
72
|
+
- lib/adwords4r/v13/CampaignServiceMappingRegistry.rb
|
73
|
+
- lib/adwords4r/v13/AdService.rb
|
74
|
+
- lib/adwords4r/v13/ReportServiceDriver.rb
|
75
|
+
- lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb
|
76
|
+
- lib/adwords4r/v13/SiteSuggestionServiceDriver.rb
|
77
|
+
- lib/adwords4r/v13/AdServiceMappingRegistry.rb
|
78
|
+
- lib/adwords4r/v13/InfoService.rb
|
79
|
+
- lib/adwords4r/v13/CampaignServiceDriver.rb
|
112
80
|
- lib/adwords4r/credentials.rb
|
113
81
|
- lib/adwords4r/services.rb
|
82
|
+
- lib/adwords4r/adwordslogger.rb
|
83
|
+
- lib/adwords4r/apiextensions.rb
|
84
|
+
- lib/adwords4r/authtoken.rb
|
85
|
+
- lib/adwords4r/soap4rpatches.rb
|
86
|
+
- lib/adwords4r/v200902/AdGroupAdService.rb
|
87
|
+
- lib/adwords4r/v200902/AdGroupAdServiceDriver.rb
|
88
|
+
- lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb
|
89
|
+
- lib/adwords4r/v200902/AdGroupCriterionService.rb
|
90
|
+
- lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb
|
91
|
+
- lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb
|
92
|
+
- lib/adwords4r/v200902/AdGroupService.rb
|
93
|
+
- lib/adwords4r/v200902/AdGroupServiceDriver.rb
|
94
|
+
- lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb
|
95
|
+
- lib/adwords4r/v200902/CampaignCriterionService.rb
|
96
|
+
- lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb
|
97
|
+
- lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb
|
98
|
+
- lib/adwords4r/v200902/CampaignService.rb
|
99
|
+
- lib/adwords4r/v200902/CampaignServiceDriver.rb
|
100
|
+
- lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb
|
101
|
+
- lib/adwords4r/v200902/CampaignTargetService.rb
|
102
|
+
- lib/adwords4r/v200902/CampaignTargetServiceDriver.rb
|
103
|
+
- lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb
|
114
104
|
- lib/adwords4r.rb
|
115
105
|
- examples/reports.rb
|
116
106
|
- examples/keyword_suggestions.rb
|
117
107
|
- examples/account_info.rb
|
118
108
|
- examples/create_all.rb
|
109
|
+
- examples/create_all_v200902.rb
|
110
|
+
- examples/multiple_versions.rb
|
119
111
|
has_rdoc: false
|
120
|
-
homepage: http://
|
112
|
+
homepage: http://code.google.com/p/google-api-adwords-ruby/
|
121
113
|
post_install_message:
|
122
114
|
rdoc_options: []
|
123
115
|
|
@@ -136,10 +128,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
128
|
version: "0"
|
137
129
|
version:
|
138
130
|
requirements:
|
139
|
-
- soap4r v1.5.8
|
131
|
+
- soap4r v1.5.8
|
140
132
|
- httpclient v2.1.2 or greater
|
141
|
-
rubyforge_project:
|
142
|
-
rubygems_version:
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 0.9.5
|
143
135
|
signing_key:
|
144
136
|
specification_version: 2
|
145
137
|
summary: Client library for the AdWords API.
|
@@ -1,215 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
2
|
-
|
3
|
-
module AdWords; module AccountService
|
4
|
-
|
5
|
-
|
6
|
-
# {https://adwords.google.com/api/adwords/v12}AccountInfo
|
7
|
-
# billingAddress - AdWords::AccountService::Address
|
8
|
-
# currencyCode - SOAP::SOAPString
|
9
|
-
# customerId - SOAP::SOAPLong
|
10
|
-
# defaultNetworkTargeting - AdWords::AccountService::NetworkTarget
|
11
|
-
# descriptiveName - SOAP::SOAPString
|
12
|
-
# emailPromotionsPreferences - AdWords::AccountService::EmailPromotionsPreferences
|
13
|
-
# languagePreference - SOAP::SOAPString
|
14
|
-
# primaryAddress - AdWords::AccountService::Address
|
15
|
-
# primaryBusinessCategory - SOAP::SOAPString
|
16
|
-
# timeZoneEffectiveDate - SOAP::SOAPLong
|
17
|
-
# timeZoneId - SOAP::SOAPString
|
18
|
-
class AccountInfo
|
19
|
-
attr_accessor :billingAddress
|
20
|
-
attr_accessor :currencyCode
|
21
|
-
attr_accessor :customerId
|
22
|
-
attr_accessor :defaultNetworkTargeting
|
23
|
-
attr_accessor :descriptiveName
|
24
|
-
attr_accessor :emailPromotionsPreferences
|
25
|
-
attr_accessor :languagePreference
|
26
|
-
attr_accessor :primaryAddress
|
27
|
-
attr_accessor :primaryBusinessCategory
|
28
|
-
attr_accessor :timeZoneEffectiveDate
|
29
|
-
attr_accessor :timeZoneId
|
30
|
-
|
31
|
-
def initialize(billingAddress = nil, currencyCode = nil, customerId = nil, defaultNetworkTargeting = nil, descriptiveName = nil, emailPromotionsPreferences = nil, languagePreference = nil, primaryAddress = nil, primaryBusinessCategory = nil, timeZoneEffectiveDate = nil, timeZoneId = nil)
|
32
|
-
@billingAddress = billingAddress
|
33
|
-
@currencyCode = currencyCode
|
34
|
-
@customerId = customerId
|
35
|
-
@defaultNetworkTargeting = defaultNetworkTargeting
|
36
|
-
@descriptiveName = descriptiveName
|
37
|
-
@emailPromotionsPreferences = emailPromotionsPreferences
|
38
|
-
@languagePreference = languagePreference
|
39
|
-
@primaryAddress = primaryAddress
|
40
|
-
@primaryBusinessCategory = primaryBusinessCategory
|
41
|
-
@timeZoneEffectiveDate = timeZoneEffectiveDate
|
42
|
-
@timeZoneId = timeZoneId
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# {https://adwords.google.com/api/adwords/v12}Address
|
47
|
-
# addressLine1 - SOAP::SOAPString
|
48
|
-
# addressLine2 - SOAP::SOAPString
|
49
|
-
# city - SOAP::SOAPString
|
50
|
-
# companyName - SOAP::SOAPString
|
51
|
-
# countryCode - SOAP::SOAPString
|
52
|
-
# emailAddress - SOAP::SOAPString
|
53
|
-
# faxNumber - SOAP::SOAPString
|
54
|
-
# name - SOAP::SOAPString
|
55
|
-
# phoneNumber - SOAP::SOAPString
|
56
|
-
# postalCode - SOAP::SOAPString
|
57
|
-
# state - SOAP::SOAPString
|
58
|
-
class Address
|
59
|
-
attr_accessor :addressLine1
|
60
|
-
attr_accessor :addressLine2
|
61
|
-
attr_accessor :city
|
62
|
-
attr_accessor :companyName
|
63
|
-
attr_accessor :countryCode
|
64
|
-
attr_accessor :emailAddress
|
65
|
-
attr_accessor :faxNumber
|
66
|
-
attr_accessor :name
|
67
|
-
attr_accessor :phoneNumber
|
68
|
-
attr_accessor :postalCode
|
69
|
-
attr_accessor :state
|
70
|
-
|
71
|
-
def initialize(addressLine1 = nil, addressLine2 = nil, city = nil, companyName = nil, countryCode = nil, emailAddress = nil, faxNumber = nil, name = nil, phoneNumber = nil, postalCode = nil, state = nil)
|
72
|
-
@addressLine1 = addressLine1
|
73
|
-
@addressLine2 = addressLine2
|
74
|
-
@city = city
|
75
|
-
@companyName = companyName
|
76
|
-
@countryCode = countryCode
|
77
|
-
@emailAddress = emailAddress
|
78
|
-
@faxNumber = faxNumber
|
79
|
-
@name = name
|
80
|
-
@phoneNumber = phoneNumber
|
81
|
-
@postalCode = postalCode
|
82
|
-
@state = state
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
# {https://adwords.google.com/api/adwords/v12}ApiError
|
87
|
-
# code - SOAP::SOAPInt
|
88
|
-
# detail - SOAP::SOAPString
|
89
|
-
# field - SOAP::SOAPString
|
90
|
-
# index - SOAP::SOAPInt
|
91
|
-
# isExemptable - SOAP::SOAPBoolean
|
92
|
-
# textIndex - SOAP::SOAPInt
|
93
|
-
# textLength - SOAP::SOAPInt
|
94
|
-
# trigger - SOAP::SOAPString
|
95
|
-
class ApiError
|
96
|
-
attr_accessor :code
|
97
|
-
attr_accessor :detail
|
98
|
-
attr_accessor :field
|
99
|
-
attr_accessor :index
|
100
|
-
attr_accessor :isExemptable
|
101
|
-
attr_accessor :textIndex
|
102
|
-
attr_accessor :textLength
|
103
|
-
attr_accessor :trigger
|
104
|
-
|
105
|
-
def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
|
106
|
-
@code = code
|
107
|
-
@detail = detail
|
108
|
-
@field = field
|
109
|
-
@index = index
|
110
|
-
@isExemptable = isExemptable
|
111
|
-
@textIndex = textIndex
|
112
|
-
@textLength = textLength
|
113
|
-
@trigger = trigger
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
# {https://adwords.google.com/api/adwords/v12}ApiException
|
118
|
-
# code - SOAP::SOAPInt
|
119
|
-
# errors - AdWords::AccountService::ApiError
|
120
|
-
# internal - SOAP::SOAPBoolean
|
121
|
-
# message - SOAP::SOAPString
|
122
|
-
# trigger - SOAP::SOAPString
|
123
|
-
class ApiException
|
124
|
-
attr_accessor :code
|
125
|
-
attr_accessor :errors
|
126
|
-
attr_accessor :internal
|
127
|
-
attr_accessor :message
|
128
|
-
attr_accessor :trigger
|
129
|
-
|
130
|
-
def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
|
131
|
-
@code = code
|
132
|
-
@errors = errors
|
133
|
-
@internal = internal
|
134
|
-
@message = message
|
135
|
-
@trigger = trigger
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
# {https://adwords.google.com/api/adwords/v12}EmailPromotionsPreferences
|
140
|
-
# accountPerformanceEnabled - SOAP::SOAPBoolean
|
141
|
-
# disapprovedAdsEnabled - SOAP::SOAPBoolean
|
142
|
-
# marketResearchEnabled - SOAP::SOAPBoolean
|
143
|
-
# newsletterEnabled - SOAP::SOAPBoolean
|
144
|
-
# promotionsEnabled - SOAP::SOAPBoolean
|
145
|
-
class EmailPromotionsPreferences
|
146
|
-
attr_accessor :accountPerformanceEnabled
|
147
|
-
attr_accessor :disapprovedAdsEnabled
|
148
|
-
attr_accessor :marketResearchEnabled
|
149
|
-
attr_accessor :newsletterEnabled
|
150
|
-
attr_accessor :promotionsEnabled
|
151
|
-
|
152
|
-
def initialize(accountPerformanceEnabled = nil, disapprovedAdsEnabled = nil, marketResearchEnabled = nil, newsletterEnabled = nil, promotionsEnabled = nil)
|
153
|
-
@accountPerformanceEnabled = accountPerformanceEnabled
|
154
|
-
@disapprovedAdsEnabled = disapprovedAdsEnabled
|
155
|
-
@marketResearchEnabled = marketResearchEnabled
|
156
|
-
@newsletterEnabled = newsletterEnabled
|
157
|
-
@promotionsEnabled = promotionsEnabled
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
# {https://adwords.google.com/api/adwords/v12}NetworkTarget
|
162
|
-
class NetworkTarget < ::Array
|
163
|
-
end
|
164
|
-
|
165
|
-
# {https://adwords.google.com/api/adwords/v12}NetworkType
|
166
|
-
class NetworkType < ::String
|
167
|
-
ContentNetwork = NetworkType.new("ContentNetwork")
|
168
|
-
GoogleSearch = NetworkType.new("GoogleSearch")
|
169
|
-
SearchNetwork = NetworkType.new("SearchNetwork")
|
170
|
-
end
|
171
|
-
|
172
|
-
# {https://adwords.google.com/api/adwords/v12}getAccountInfo
|
173
|
-
class GetAccountInfo
|
174
|
-
def initialize
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
# {https://adwords.google.com/api/adwords/v12}getAccountInfoResponse
|
179
|
-
# getAccountInfoReturn - AdWords::AccountService::AccountInfo
|
180
|
-
class GetAccountInfoResponse
|
181
|
-
attr_accessor :getAccountInfoReturn
|
182
|
-
|
183
|
-
def initialize(getAccountInfoReturn = nil)
|
184
|
-
@getAccountInfoReturn = getAccountInfoReturn
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
# {https://adwords.google.com/api/adwords/v12}getClientAccounts
|
189
|
-
class GetClientAccounts
|
190
|
-
def initialize
|
191
|
-
end
|
192
|
-
end
|
193
|
-
|
194
|
-
# {https://adwords.google.com/api/adwords/v12}getClientAccountsResponse
|
195
|
-
class GetClientAccountsResponse < ::Array
|
196
|
-
end
|
197
|
-
|
198
|
-
# {https://adwords.google.com/api/adwords/v12}updateAccountInfo
|
199
|
-
# accountInfo - AdWords::AccountService::AccountInfo
|
200
|
-
class UpdateAccountInfo
|
201
|
-
attr_accessor :accountInfo
|
202
|
-
|
203
|
-
def initialize(accountInfo = nil)
|
204
|
-
@accountInfo = accountInfo
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
# {https://adwords.google.com/api/adwords/v12}updateAccountInfoResponse
|
209
|
-
class UpdateAccountInfoResponse
|
210
|
-
def initialize
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
|
215
|
-
end; end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
require 'adwords4r/v12/AccountService'
|
2
|
-
require 'adwords4r/v12/AccountServiceMappingRegistry'
|
3
|
-
require 'soap/rpc/driver'
|
4
|
-
|
5
|
-
module AdWords
|
6
|
-
module AccountService
|
7
|
-
|
8
|
-
class AccountInterface < ::SOAP::RPC::Driver
|
9
|
-
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v12/AccountService"
|
10
|
-
|
11
|
-
Methods = [
|
12
|
-
[ "",
|
13
|
-
"getAccountInfo",
|
14
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAccountInfo"]],
|
15
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAccountInfoResponse"]] ],
|
16
|
-
{ :request_style => :document, :request_use => :literal,
|
17
|
-
:response_style => :document, :response_use => :literal,
|
18
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
19
|
-
],
|
20
|
-
[ "",
|
21
|
-
"getClientAccounts",
|
22
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getClientAccounts"]],
|
23
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getClientAccountsResponse"]] ],
|
24
|
-
{ :request_style => :document, :request_use => :literal,
|
25
|
-
:response_style => :document, :response_use => :literal,
|
26
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
27
|
-
],
|
28
|
-
[ "",
|
29
|
-
"updateAccountInfo",
|
30
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAccountInfo"]],
|
31
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAccountInfoResponse"]] ],
|
32
|
-
{ :request_style => :document, :request_use => :literal,
|
33
|
-
:response_style => :document, :response_use => :literal,
|
34
|
-
:faults => {"AdWords::AccountService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
35
|
-
]
|
36
|
-
]
|
37
|
-
|
38
|
-
def initialize(endpoint_url = nil)
|
39
|
-
endpoint_url ||= DefaultEndpointUrl
|
40
|
-
super(endpoint_url, nil)
|
41
|
-
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
42
|
-
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
43
|
-
init_methods
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
|
48
|
-
def init_methods
|
49
|
-
Methods.each do |definitions|
|
50
|
-
opt = definitions.last
|
51
|
-
if opt[:request_style] == :document
|
52
|
-
add_document_operation(*definitions)
|
53
|
-
else
|
54
|
-
add_rpc_operation(*definitions)
|
55
|
-
qname = definitions[0]
|
56
|
-
name = definitions[2]
|
57
|
-
if qname.name != name and qname.name.capitalize == name.capitalize
|
58
|
-
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
59
|
-
__send__(name, *arg)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
|
68
|
-
end
|
69
|
-
end
|