adwords4r 13.0.1 → 15.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. data/Authors.txt +2 -1
  2. data/ChangeLog.txt +28 -0
  3. data/Copying.txt +1 -1
  4. data/{Licence.txt → License.txt} +1 -1
  5. data/Rakefile +49 -54
  6. data/Readme.txt +78 -24
  7. data/adwords.properties +1 -1
  8. data/examples/account_info.rb +20 -26
  9. data/examples/create_all.rb +51 -53
  10. data/examples/create_all_v200902.rb +204 -0
  11. data/examples/keyword_suggestions.rb +35 -38
  12. data/examples/multiple_versions.rb +167 -0
  13. data/examples/reports.rb +37 -75
  14. data/lib/adwords4r.rb +123 -123
  15. data/lib/adwords4r/adwordslogger.rb +56 -0
  16. data/lib/adwords4r/apiextensions.rb +79 -0
  17. data/lib/adwords4r/authtoken.rb +56 -0
  18. data/lib/adwords4r/credentials.rb +115 -19
  19. data/lib/adwords4r/services.rb +139 -14
  20. data/lib/adwords4r/soap4rpatches.rb +129 -0
  21. data/lib/adwords4r/v13/AccountService.rb +11 -11
  22. data/lib/adwords4r/v13/AccountServiceDriver.rb +7 -5
  23. data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +56 -56
  24. data/lib/adwords4r/v13/AdGroupService.rb +9 -9
  25. data/lib/adwords4r/v13/AdGroupServiceDriver.rb +11 -9
  26. data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +47 -47
  27. data/lib/adwords4r/v13/AdService.rb +37 -37
  28. data/lib/adwords4r/v13/AdServiceDriver.rb +12 -10
  29. data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +148 -148
  30. data/lib/adwords4r/v13/CampaignService.rb +46 -25
  31. data/lib/adwords4r/v13/CampaignServiceDriver.rb +23 -13
  32. data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +169 -135
  33. data/lib/adwords4r/v13/CriterionService.rb +19 -19
  34. data/lib/adwords4r/v13/CriterionServiceDriver.rb +11 -9
  35. data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +90 -90
  36. data/lib/adwords4r/v13/InfoService.rb +3 -3
  37. data/lib/adwords4r/v13/InfoServiceDriver.rb +10 -8
  38. data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +29 -29
  39. data/lib/adwords4r/v13/KeywordToolService.rb +10 -10
  40. data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +4 -2
  41. data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +37 -37
  42. data/lib/adwords4r/v13/ReportService.rb +13 -13
  43. data/lib/adwords4r/v13/ReportServiceDriver.rb +9 -7
  44. data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +54 -54
  45. data/lib/adwords4r/v13/SiteSuggestionService.rb +15 -15
  46. data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +6 -4
  47. data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +57 -57
  48. data/lib/adwords4r/v13/TrafficEstimatorService.rb +17 -17
  49. data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +6 -4
  50. data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +96 -96
  51. data/lib/adwords4r/v200902/AdGroupAdService.rb +2021 -0
  52. data/lib/adwords4r/v200902/AdGroupAdServiceDriver.rb +63 -0
  53. data/lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb +2234 -0
  54. data/lib/adwords4r/v200902/AdGroupCriterionService.rb +1209 -0
  55. data/lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb +63 -0
  56. data/lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb +1434 -0
  57. data/lib/adwords4r/v200902/AdGroupService.rb +968 -0
  58. data/lib/adwords4r/{v12/KeywordToolServiceDriver.rb → v200902/AdGroupServiceDriver.rb} +15 -13
  59. data/lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb +1114 -0
  60. data/lib/adwords4r/v200902/CampaignCriterionService.rb +741 -0
  61. data/lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb +63 -0
  62. data/lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb +904 -0
  63. data/lib/adwords4r/v200902/CampaignService.rb +1249 -0
  64. data/lib/adwords4r/v200902/CampaignServiceDriver.rb +63 -0
  65. data/lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb +1466 -0
  66. data/lib/adwords4r/v200902/CampaignTargetService.rb +1156 -0
  67. data/lib/adwords4r/v200902/CampaignTargetServiceDriver.rb +63 -0
  68. data/lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb +1304 -0
  69. data/setup.rb +0 -0
  70. metadata +57 -65
  71. data/lib/adwords4r/v12/AccountService.rb +0 -215
  72. data/lib/adwords4r/v12/AccountServiceDriver.rb +0 -69
  73. data/lib/adwords4r/v12/AccountServiceMappingRegistry.rb +0 -243
  74. data/lib/adwords4r/v12/AdGroupService.rb +0 -263
  75. data/lib/adwords4r/v12/AdGroupServiceDriver.rb +0 -109
  76. data/lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb +0 -280
  77. data/lib/adwords4r/v12/AdService.rb +0 -769
  78. data/lib/adwords4r/v12/AdServiceDriver.rb +0 -125
  79. data/lib/adwords4r/v12/AdServiceMappingRegistry.rb +0 -813
  80. data/lib/adwords4r/v12/CampaignService.rb +0 -498
  81. data/lib/adwords4r/v12/CampaignServiceDriver.rb +0 -133
  82. data/lib/adwords4r/v12/CampaignServiceMappingRegistry.rb +0 -642
  83. data/lib/adwords4r/v12/CriterionService.rb +0 -445
  84. data/lib/adwords4r/v12/CriterionServiceDriver.rb +0 -117
  85. data/lib/adwords4r/v12/CriterionServiceMappingRegistry.rb +0 -509
  86. data/lib/adwords4r/v12/InfoService.rb +0 -242
  87. data/lib/adwords4r/v12/InfoServiceDriver.rb +0 -109
  88. data/lib/adwords4r/v12/InfoServiceMappingRegistry.rb +0 -228
  89. data/lib/adwords4r/v12/KeywordToolService.rb +0 -205
  90. data/lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb +0 -227
  91. data/lib/adwords4r/v12/ReportService.rb +0 -322
  92. data/lib/adwords4r/v12/ReportServiceDriver.rb +0 -101
  93. data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +0 -298
  94. data/lib/adwords4r/v12/SiteSuggestionService.rb +0 -242
  95. data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +0 -77
  96. data/lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb +0 -271
  97. data/lib/adwords4r/v12/TrafficEstimatorService.rb +0 -312
  98. data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +0 -77
  99. data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +0 -483
@@ -1,243 +0,0 @@
1
- require 'adwords4r/v12/AccountService'
2
- require 'soap/mapping'
3
-
4
- module AdWords; module AccountService
5
-
6
- module DefaultMappingRegistry
7
- EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
- LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
- NsV12 = "https://adwords.google.com/api/adwords/v12"
10
-
11
- EncodedRegistry.register(
12
- :class => AdWords::AccountService::AccountInfo,
13
- :schema_type => XSD::QName.new(NsV12, "AccountInfo"),
14
- :schema_element => [
15
- ["billingAddress", "AdWords::AccountService::Address"],
16
- ["currencyCode", "SOAP::SOAPString"],
17
- ["customerId", "SOAP::SOAPLong", [0, 1]],
18
- ["defaultNetworkTargeting", "AdWords::AccountService::NetworkTarget"],
19
- ["descriptiveName", "SOAP::SOAPString"],
20
- ["emailPromotionsPreferences", "AdWords::AccountService::EmailPromotionsPreferences"],
21
- ["languagePreference", "SOAP::SOAPString"],
22
- ["primaryAddress", "AdWords::AccountService::Address"],
23
- ["primaryBusinessCategory", "SOAP::SOAPString"],
24
- ["timeZoneEffectiveDate", "SOAP::SOAPLong", [0, 1]],
25
- ["timeZoneId", "SOAP::SOAPString"]
26
- ]
27
- )
28
-
29
- EncodedRegistry.register(
30
- :class => AdWords::AccountService::Address,
31
- :schema_type => XSD::QName.new(NsV12, "Address"),
32
- :schema_element => [
33
- ["addressLine1", "SOAP::SOAPString"],
34
- ["addressLine2", "SOAP::SOAPString"],
35
- ["city", "SOAP::SOAPString"],
36
- ["companyName", "SOAP::SOAPString"],
37
- ["countryCode", "SOAP::SOAPString"],
38
- ["emailAddress", "SOAP::SOAPString"],
39
- ["faxNumber", "SOAP::SOAPString"],
40
- ["name", "SOAP::SOAPString"],
41
- ["phoneNumber", "SOAP::SOAPString"],
42
- ["postalCode", "SOAP::SOAPString"],
43
- ["state", "SOAP::SOAPString"]
44
- ]
45
- )
46
-
47
- EncodedRegistry.register(
48
- :class => AdWords::AccountService::ApiError,
49
- :schema_type => XSD::QName.new(NsV12, "ApiError"),
50
- :schema_element => [
51
- ["code", "SOAP::SOAPInt"],
52
- ["detail", "SOAP::SOAPString"],
53
- ["field", "SOAP::SOAPString", [0, 1]],
54
- ["index", "SOAP::SOAPInt"],
55
- ["isExemptable", "SOAP::SOAPBoolean"],
56
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
57
- ["textLength", "SOAP::SOAPInt", [0, 1]],
58
- ["trigger", "SOAP::SOAPString", [0, 1]]
59
- ]
60
- )
61
-
62
- EncodedRegistry.register(
63
- :class => AdWords::AccountService::ApiException,
64
- :schema_type => XSD::QName.new(NsV12, "ApiException"),
65
- :schema_element => [
66
- ["code", "SOAP::SOAPInt"],
67
- ["errors", "AdWords::AccountService::ApiError[]", [1, nil]],
68
- ["internal", "SOAP::SOAPBoolean"],
69
- ["message", "SOAP::SOAPString"],
70
- ["trigger", "SOAP::SOAPString"]
71
- ]
72
- )
73
-
74
- EncodedRegistry.register(
75
- :class => AdWords::AccountService::EmailPromotionsPreferences,
76
- :schema_type => XSD::QName.new(NsV12, "EmailPromotionsPreferences"),
77
- :schema_element => [
78
- ["accountPerformanceEnabled", "SOAP::SOAPBoolean"],
79
- ["disapprovedAdsEnabled", "SOAP::SOAPBoolean"],
80
- ["marketResearchEnabled", "SOAP::SOAPBoolean"],
81
- ["newsletterEnabled", "SOAP::SOAPBoolean"],
82
- ["promotionsEnabled", "SOAP::SOAPBoolean"]
83
- ]
84
- )
85
-
86
- EncodedRegistry.register(
87
- :class => AdWords::AccountService::NetworkTarget,
88
- :schema_type => XSD::QName.new(NsV12, "NetworkTarget"),
89
- :schema_element => [
90
- ["networkTypes", "AdWords::AccountService::NetworkType[]", [0, nil]]
91
- ]
92
- )
93
-
94
- EncodedRegistry.register(
95
- :class => AdWords::AccountService::NetworkType,
96
- :schema_type => XSD::QName.new(NsV12, "NetworkType")
97
- )
98
-
99
- LiteralRegistry.register(
100
- :class => AdWords::AccountService::AccountInfo,
101
- :schema_type => XSD::QName.new(NsV12, "AccountInfo"),
102
- :schema_element => [
103
- ["billingAddress", "AdWords::AccountService::Address"],
104
- ["currencyCode", "SOAP::SOAPString"],
105
- ["customerId", "SOAP::SOAPLong", [0, 1]],
106
- ["defaultNetworkTargeting", "AdWords::AccountService::NetworkTarget"],
107
- ["descriptiveName", "SOAP::SOAPString"],
108
- ["emailPromotionsPreferences", "AdWords::AccountService::EmailPromotionsPreferences"],
109
- ["languagePreference", "SOAP::SOAPString"],
110
- ["primaryAddress", "AdWords::AccountService::Address"],
111
- ["primaryBusinessCategory", "SOAP::SOAPString"],
112
- ["timeZoneEffectiveDate", "SOAP::SOAPLong", [0, 1]],
113
- ["timeZoneId", "SOAP::SOAPString"]
114
- ]
115
- )
116
-
117
- LiteralRegistry.register(
118
- :class => AdWords::AccountService::Address,
119
- :schema_type => XSD::QName.new(NsV12, "Address"),
120
- :schema_element => [
121
- ["addressLine1", "SOAP::SOAPString"],
122
- ["addressLine2", "SOAP::SOAPString"],
123
- ["city", "SOAP::SOAPString"],
124
- ["companyName", "SOAP::SOAPString"],
125
- ["countryCode", "SOAP::SOAPString"],
126
- ["emailAddress", "SOAP::SOAPString"],
127
- ["faxNumber", "SOAP::SOAPString"],
128
- ["name", "SOAP::SOAPString"],
129
- ["phoneNumber", "SOAP::SOAPString"],
130
- ["postalCode", "SOAP::SOAPString"],
131
- ["state", "SOAP::SOAPString"]
132
- ]
133
- )
134
-
135
- LiteralRegistry.register(
136
- :class => AdWords::AccountService::ApiError,
137
- :schema_type => XSD::QName.new(NsV12, "ApiError"),
138
- :schema_element => [
139
- ["code", "SOAP::SOAPInt"],
140
- ["detail", "SOAP::SOAPString"],
141
- ["field", "SOAP::SOAPString", [0, 1]],
142
- ["index", "SOAP::SOAPInt"],
143
- ["isExemptable", "SOAP::SOAPBoolean"],
144
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
145
- ["textLength", "SOAP::SOAPInt", [0, 1]],
146
- ["trigger", "SOAP::SOAPString", [0, 1]]
147
- ]
148
- )
149
-
150
- LiteralRegistry.register(
151
- :class => AdWords::AccountService::ApiException,
152
- :schema_type => XSD::QName.new(NsV12, "ApiException"),
153
- :schema_element => [
154
- ["code", "SOAP::SOAPInt"],
155
- ["errors", "AdWords::AccountService::ApiError[]", [1, nil]],
156
- ["internal", "SOAP::SOAPBoolean"],
157
- ["message", "SOAP::SOAPString"],
158
- ["trigger", "SOAP::SOAPString"]
159
- ]
160
- )
161
-
162
- LiteralRegistry.register(
163
- :class => AdWords::AccountService::EmailPromotionsPreferences,
164
- :schema_type => XSD::QName.new(NsV12, "EmailPromotionsPreferences"),
165
- :schema_element => [
166
- ["accountPerformanceEnabled", "SOAP::SOAPBoolean"],
167
- ["disapprovedAdsEnabled", "SOAP::SOAPBoolean"],
168
- ["marketResearchEnabled", "SOAP::SOAPBoolean"],
169
- ["newsletterEnabled", "SOAP::SOAPBoolean"],
170
- ["promotionsEnabled", "SOAP::SOAPBoolean"]
171
- ]
172
- )
173
-
174
- LiteralRegistry.register(
175
- :class => AdWords::AccountService::NetworkTarget,
176
- :schema_type => XSD::QName.new(NsV12, "NetworkTarget"),
177
- :schema_element => [
178
- ["networkTypes", "AdWords::AccountService::NetworkType[]", [0, nil]]
179
- ]
180
- )
181
-
182
- LiteralRegistry.register(
183
- :class => AdWords::AccountService::NetworkType,
184
- :schema_type => XSD::QName.new(NsV12, "NetworkType")
185
- )
186
-
187
- LiteralRegistry.register(
188
- :class => AdWords::AccountService::ApiException,
189
- :schema_name => XSD::QName.new(NsV12, "fault"),
190
- :schema_element => [
191
- ["code", "SOAP::SOAPInt"],
192
- ["errors", "AdWords::AccountService::ApiError[]", [1, nil]],
193
- ["internal", "SOAP::SOAPBoolean"],
194
- ["message", "SOAP::SOAPString"],
195
- ["trigger", "SOAP::SOAPString"]
196
- ]
197
- )
198
-
199
- LiteralRegistry.register(
200
- :class => AdWords::AccountService::GetAccountInfo,
201
- :schema_name => XSD::QName.new(NsV12, "getAccountInfo"),
202
- :schema_element => []
203
- )
204
-
205
- LiteralRegistry.register(
206
- :class => AdWords::AccountService::GetAccountInfoResponse,
207
- :schema_name => XSD::QName.new(NsV12, "getAccountInfoResponse"),
208
- :schema_element => [
209
- ["getAccountInfoReturn", "AdWords::AccountService::AccountInfo"]
210
- ]
211
- )
212
-
213
- LiteralRegistry.register(
214
- :class => AdWords::AccountService::GetClientAccounts,
215
- :schema_name => XSD::QName.new(NsV12, "getClientAccounts"),
216
- :schema_element => []
217
- )
218
-
219
- LiteralRegistry.register(
220
- :class => AdWords::AccountService::GetClientAccountsResponse,
221
- :schema_name => XSD::QName.new(NsV12, "getClientAccountsResponse"),
222
- :schema_element => [
223
- ["getClientAccountsReturn", "SOAP::SOAPString[]", [1, nil]]
224
- ]
225
- )
226
-
227
- LiteralRegistry.register(
228
- :class => AdWords::AccountService::UpdateAccountInfo,
229
- :schema_name => XSD::QName.new(NsV12, "updateAccountInfo"),
230
- :schema_element => [
231
- ["accountInfo", "AdWords::AccountService::AccountInfo"]
232
- ]
233
- )
234
-
235
- LiteralRegistry.register(
236
- :class => AdWords::AccountService::UpdateAccountInfoResponse,
237
- :schema_name => XSD::QName.new(NsV12, "updateAccountInfoResponse"),
238
- :schema_element => []
239
- )
240
-
241
- end
242
-
243
- end; end
@@ -1,263 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module AdGroupService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v12}AdGroup
7
- # campaignId - SOAP::SOAPInt
8
- # id - SOAP::SOAPLong
9
- # keywordContentMaxCpc - SOAP::SOAPLong
10
- # keywordMaxCpc - SOAP::SOAPLong
11
- # maxCpa - SOAP::SOAPLong
12
- # name - SOAP::SOAPString
13
- # proxyKeywordMaxCpc - SOAP::SOAPLong
14
- # siteMaxCpc - SOAP::SOAPLong
15
- # siteMaxCpm - SOAP::SOAPLong
16
- # status - AdWords::AdGroupService::AdGroupStatus
17
- class AdGroup
18
- attr_accessor :campaignId
19
- attr_accessor :id
20
- attr_accessor :keywordContentMaxCpc
21
- attr_accessor :keywordMaxCpc
22
- attr_accessor :maxCpa
23
- attr_accessor :name
24
- attr_accessor :proxyKeywordMaxCpc
25
- attr_accessor :siteMaxCpc
26
- attr_accessor :siteMaxCpm
27
- attr_accessor :status
28
-
29
- def initialize(campaignId = nil, id = nil, keywordContentMaxCpc = nil, keywordMaxCpc = nil, maxCpa = nil, name = nil, proxyKeywordMaxCpc = nil, siteMaxCpc = nil, siteMaxCpm = nil, status = nil)
30
- @campaignId = campaignId
31
- @id = id
32
- @keywordContentMaxCpc = keywordContentMaxCpc
33
- @keywordMaxCpc = keywordMaxCpc
34
- @maxCpa = maxCpa
35
- @name = name
36
- @proxyKeywordMaxCpc = proxyKeywordMaxCpc
37
- @siteMaxCpc = siteMaxCpc
38
- @siteMaxCpm = siteMaxCpm
39
- @status = status
40
- end
41
- end
42
-
43
- # {https://adwords.google.com/api/adwords/v12}ApiError
44
- # code - SOAP::SOAPInt
45
- # detail - SOAP::SOAPString
46
- # field - SOAP::SOAPString
47
- # index - SOAP::SOAPInt
48
- # isExemptable - SOAP::SOAPBoolean
49
- # textIndex - SOAP::SOAPInt
50
- # textLength - SOAP::SOAPInt
51
- # trigger - SOAP::SOAPString
52
- class ApiError
53
- attr_accessor :code
54
- attr_accessor :detail
55
- attr_accessor :field
56
- attr_accessor :index
57
- attr_accessor :isExemptable
58
- attr_accessor :textIndex
59
- attr_accessor :textLength
60
- attr_accessor :trigger
61
-
62
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
63
- @code = code
64
- @detail = detail
65
- @field = field
66
- @index = index
67
- @isExemptable = isExemptable
68
- @textIndex = textIndex
69
- @textLength = textLength
70
- @trigger = trigger
71
- end
72
- end
73
-
74
- # {https://adwords.google.com/api/adwords/v12}ApiException
75
- # code - SOAP::SOAPInt
76
- # errors - AdWords::AdGroupService::ApiError
77
- # internal - SOAP::SOAPBoolean
78
- # message - SOAP::SOAPString
79
- # trigger - SOAP::SOAPString
80
- class ApiException
81
- attr_accessor :code
82
- attr_accessor :errors
83
- attr_accessor :internal
84
- attr_accessor :message
85
- attr_accessor :trigger
86
-
87
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
88
- @code = code
89
- @errors = errors
90
- @internal = internal
91
- @message = message
92
- @trigger = trigger
93
- end
94
- end
95
-
96
- # {https://adwords.google.com/api/adwords/v12}StatsRecord
97
- # averagePosition - SOAP::SOAPDouble
98
- # clicks - SOAP::SOAPLong
99
- # conversionRate - SOAP::SOAPDouble
100
- # conversions - SOAP::SOAPLong
101
- # cost - SOAP::SOAPLong
102
- # id - SOAP::SOAPLong
103
- # impressions - SOAP::SOAPLong
104
- class StatsRecord
105
- attr_accessor :averagePosition
106
- attr_accessor :clicks
107
- attr_accessor :conversionRate
108
- attr_accessor :conversions
109
- attr_accessor :cost
110
- attr_accessor :id
111
- attr_accessor :impressions
112
-
113
- def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
114
- @averagePosition = averagePosition
115
- @clicks = clicks
116
- @conversionRate = conversionRate
117
- @conversions = conversions
118
- @cost = cost
119
- @id = id
120
- @impressions = impressions
121
- end
122
- end
123
-
124
- # {https://adwords.google.com/api/adwords/v12}AdGroupStatus
125
- class AdGroupStatus < ::String
126
- Deleted = AdGroupStatus.new("Deleted")
127
- Enabled = AdGroupStatus.new("Enabled")
128
- Paused = AdGroupStatus.new("Paused")
129
- end
130
-
131
- # {https://adwords.google.com/api/adwords/v12}addAdGroup
132
- # campaignID - SOAP::SOAPInt
133
- # newData - AdWords::AdGroupService::AdGroup
134
- class AddAdGroup
135
- attr_accessor :campaignID
136
- attr_accessor :newData
137
-
138
- def initialize(campaignID = nil, newData = nil)
139
- @campaignID = campaignID
140
- @newData = newData
141
- end
142
- end
143
-
144
- # {https://adwords.google.com/api/adwords/v12}addAdGroupList
145
- # campaignID - SOAP::SOAPInt
146
- # newData - AdWords::AdGroupService::AdGroup
147
- class AddAdGroupList
148
- attr_accessor :campaignID
149
- attr_accessor :newData
150
-
151
- def initialize(campaignID = nil, newData = [])
152
- @campaignID = campaignID
153
- @newData = newData
154
- end
155
- end
156
-
157
- # {https://adwords.google.com/api/adwords/v12}addAdGroupListResponse
158
- class AddAdGroupListResponse < ::Array
159
- end
160
-
161
- # {https://adwords.google.com/api/adwords/v12}addAdGroupResponse
162
- # addAdGroupReturn - AdWords::AdGroupService::AdGroup
163
- class AddAdGroupResponse
164
- attr_accessor :addAdGroupReturn
165
-
166
- def initialize(addAdGroupReturn = nil)
167
- @addAdGroupReturn = addAdGroupReturn
168
- end
169
- end
170
-
171
- # {https://adwords.google.com/api/adwords/v12}getAdGroup
172
- # adGroupId - SOAP::SOAPLong
173
- class GetAdGroup
174
- attr_accessor :adGroupId
175
-
176
- def initialize(adGroupId = nil)
177
- @adGroupId = adGroupId
178
- end
179
- end
180
-
181
- # {https://adwords.google.com/api/adwords/v12}getAdGroupList
182
- class GetAdGroupList < ::Array
183
- end
184
-
185
- # {https://adwords.google.com/api/adwords/v12}getAdGroupListResponse
186
- class GetAdGroupListResponse < ::Array
187
- end
188
-
189
- # {https://adwords.google.com/api/adwords/v12}getAdGroupResponse
190
- # getAdGroupReturn - AdWords::AdGroupService::AdGroup
191
- class GetAdGroupResponse
192
- attr_accessor :getAdGroupReturn
193
-
194
- def initialize(getAdGroupReturn = nil)
195
- @getAdGroupReturn = getAdGroupReturn
196
- end
197
- end
198
-
199
- # {https://adwords.google.com/api/adwords/v12}getAdGroupStats
200
- # campaignId - SOAP::SOAPInt
201
- # adGroupIds - SOAP::SOAPLong
202
- # startDay - SOAP::SOAPDate
203
- # endDay - SOAP::SOAPDate
204
- class GetAdGroupStats
205
- attr_accessor :campaignId
206
- attr_accessor :adGroupIds
207
- attr_accessor :startDay
208
- attr_accessor :endDay
209
-
210
- def initialize(campaignId = nil, adGroupIds = [], startDay = nil, endDay = nil)
211
- @campaignId = campaignId
212
- @adGroupIds = adGroupIds
213
- @startDay = startDay
214
- @endDay = endDay
215
- end
216
- end
217
-
218
- # {https://adwords.google.com/api/adwords/v12}getAdGroupStatsResponse
219
- class GetAdGroupStatsResponse < ::Array
220
- end
221
-
222
- # {https://adwords.google.com/api/adwords/v12}getAllAdGroups
223
- # campaignID - SOAP::SOAPInt
224
- class GetAllAdGroups
225
- attr_accessor :campaignID
226
-
227
- def initialize(campaignID = nil)
228
- @campaignID = campaignID
229
- end
230
- end
231
-
232
- # {https://adwords.google.com/api/adwords/v12}getAllAdGroupsResponse
233
- class GetAllAdGroupsResponse < ::Array
234
- end
235
-
236
- # {https://adwords.google.com/api/adwords/v12}updateAdGroup
237
- # changedData - AdWords::AdGroupService::AdGroup
238
- class UpdateAdGroup
239
- attr_accessor :changedData
240
-
241
- def initialize(changedData = nil)
242
- @changedData = changedData
243
- end
244
- end
245
-
246
- # {https://adwords.google.com/api/adwords/v12}updateAdGroupList
247
- class UpdateAdGroupList < ::Array
248
- end
249
-
250
- # {https://adwords.google.com/api/adwords/v12}updateAdGroupListResponse
251
- class UpdateAdGroupListResponse
252
- def initialize
253
- end
254
- end
255
-
256
- # {https://adwords.google.com/api/adwords/v12}updateAdGroupResponse
257
- class UpdateAdGroupResponse
258
- def initialize
259
- end
260
- end
261
-
262
-
263
- end; end