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,205 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module KeywordToolService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v12}ApiError
7
- # code - SOAP::SOAPInt
8
- # detail - SOAP::SOAPString
9
- # field - SOAP::SOAPString
10
- # index - SOAP::SOAPInt
11
- # isExemptable - SOAP::SOAPBoolean
12
- # textIndex - SOAP::SOAPInt
13
- # textLength - SOAP::SOAPInt
14
- # trigger - SOAP::SOAPString
15
- class ApiError
16
- attr_accessor :code
17
- attr_accessor :detail
18
- attr_accessor :field
19
- attr_accessor :index
20
- attr_accessor :isExemptable
21
- attr_accessor :textIndex
22
- attr_accessor :textLength
23
- attr_accessor :trigger
24
-
25
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
26
- @code = code
27
- @detail = detail
28
- @field = field
29
- @index = index
30
- @isExemptable = isExemptable
31
- @textIndex = textIndex
32
- @textLength = textLength
33
- @trigger = trigger
34
- end
35
- end
36
-
37
- # {https://adwords.google.com/api/adwords/v12}ApiException
38
- # code - SOAP::SOAPInt
39
- # errors - AdWords::KeywordToolService::ApiError
40
- # internal - SOAP::SOAPBoolean
41
- # message - SOAP::SOAPString
42
- # trigger - SOAP::SOAPString
43
- class ApiException
44
- attr_accessor :code
45
- attr_accessor :errors
46
- attr_accessor :internal
47
- attr_accessor :message
48
- attr_accessor :trigger
49
-
50
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
51
- @code = code
52
- @errors = errors
53
- @internal = internal
54
- @message = message
55
- @trigger = trigger
56
- end
57
- end
58
-
59
- # {https://adwords.google.com/api/adwords/v12}KeywordVariation
60
- # advertiserCompetitionScale - SOAP::SOAPInt
61
- # language - SOAP::SOAPString
62
- # searchVolumeScale - SOAP::SOAPInt
63
- # text - SOAP::SOAPString
64
- class KeywordVariation
65
- attr_accessor :advertiserCompetitionScale
66
- attr_accessor :language
67
- attr_accessor :searchVolumeScale
68
- attr_accessor :text
69
-
70
- def initialize(advertiserCompetitionScale = nil, language = nil, searchVolumeScale = nil, text = nil)
71
- @advertiserCompetitionScale = advertiserCompetitionScale
72
- @language = language
73
- @searchVolumeScale = searchVolumeScale
74
- @text = text
75
- end
76
- end
77
-
78
- # {https://adwords.google.com/api/adwords/v12}KeywordVariations
79
- # additionalToConsider - AdWords::KeywordToolService::KeywordVariation
80
- # moreSpecific - AdWords::KeywordToolService::KeywordVariation
81
- class KeywordVariations
82
- attr_accessor :additionalToConsider
83
- attr_accessor :moreSpecific
84
-
85
- def initialize(additionalToConsider = [], moreSpecific = [])
86
- @additionalToConsider = additionalToConsider
87
- @moreSpecific = moreSpecific
88
- end
89
- end
90
-
91
- # {https://adwords.google.com/api/adwords/v12}SeedKeyword
92
- # negative - SOAP::SOAPBoolean
93
- # text - SOAP::SOAPString
94
- # type - AdWords::KeywordToolService::KeywordType
95
- class SeedKeyword
96
- attr_accessor :negative
97
- attr_accessor :text
98
- attr_accessor :type
99
-
100
- def initialize(negative = nil, text = nil, type = nil)
101
- @negative = negative
102
- @text = text
103
- @type = type
104
- end
105
- end
106
-
107
- # {https://adwords.google.com/api/adwords/v12}SiteKeyword
108
- # advertiserCompetitionScale - SOAP::SOAPInt
109
- # groupId - SOAP::SOAPInt
110
- # searchVolumeScale - SOAP::SOAPInt
111
- # text - SOAP::SOAPString
112
- class SiteKeyword
113
- attr_accessor :advertiserCompetitionScale
114
- attr_accessor :groupId
115
- attr_accessor :searchVolumeScale
116
- attr_accessor :text
117
-
118
- def initialize(advertiserCompetitionScale = nil, groupId = nil, searchVolumeScale = nil, text = nil)
119
- @advertiserCompetitionScale = advertiserCompetitionScale
120
- @groupId = groupId
121
- @searchVolumeScale = searchVolumeScale
122
- @text = text
123
- end
124
- end
125
-
126
- # {https://adwords.google.com/api/adwords/v12}SiteKeywordGroups
127
- # groups - SOAP::SOAPString
128
- # keywords - AdWords::KeywordToolService::SiteKeyword
129
- class SiteKeywordGroups
130
- attr_accessor :groups
131
- attr_accessor :keywords
132
-
133
- def initialize(groups = [], keywords = [])
134
- @groups = groups
135
- @keywords = keywords
136
- end
137
- end
138
-
139
- # {https://adwords.google.com/api/adwords/v12}KeywordType
140
- class KeywordType < ::String
141
- Broad = KeywordType.new("Broad")
142
- Exact = KeywordType.new("Exact")
143
- Phrase = KeywordType.new("Phrase")
144
- end
145
-
146
- # {https://adwords.google.com/api/adwords/v12}getKeywordVariations
147
- # seedKeywords - AdWords::KeywordToolService::SeedKeyword
148
- # useSynonyms - SOAP::SOAPBoolean
149
- # languages - SOAP::SOAPString
150
- # countries - SOAP::SOAPString
151
- class GetKeywordVariations
152
- attr_accessor :seedKeywords
153
- attr_accessor :useSynonyms
154
- attr_accessor :languages
155
- attr_accessor :countries
156
-
157
- def initialize(seedKeywords = [], useSynonyms = nil, languages = [], countries = [])
158
- @seedKeywords = seedKeywords
159
- @useSynonyms = useSynonyms
160
- @languages = languages
161
- @countries = countries
162
- end
163
- end
164
-
165
- # {https://adwords.google.com/api/adwords/v12}getKeywordVariationsResponse
166
- # getKeywordVariationsReturn - AdWords::KeywordToolService::KeywordVariations
167
- class GetKeywordVariationsResponse
168
- attr_accessor :getKeywordVariationsReturn
169
-
170
- def initialize(getKeywordVariationsReturn = nil)
171
- @getKeywordVariationsReturn = getKeywordVariationsReturn
172
- end
173
- end
174
-
175
- # {https://adwords.google.com/api/adwords/v12}getKeywordsFromSite
176
- # url - SOAP::SOAPString
177
- # includeLinkedPages - SOAP::SOAPBoolean
178
- # languages - SOAP::SOAPString
179
- # countries - SOAP::SOAPString
180
- class GetKeywordsFromSite
181
- attr_accessor :url
182
- attr_accessor :includeLinkedPages
183
- attr_accessor :languages
184
- attr_accessor :countries
185
-
186
- def initialize(url = nil, includeLinkedPages = nil, languages = [], countries = [])
187
- @url = url
188
- @includeLinkedPages = includeLinkedPages
189
- @languages = languages
190
- @countries = countries
191
- end
192
- end
193
-
194
- # {https://adwords.google.com/api/adwords/v12}getKeywordsFromSiteResponse
195
- # getKeywordsFromSiteReturn - AdWords::KeywordToolService::SiteKeywordGroups
196
- class GetKeywordsFromSiteResponse
197
- attr_accessor :getKeywordsFromSiteReturn
198
-
199
- def initialize(getKeywordsFromSiteReturn = nil)
200
- @getKeywordsFromSiteReturn = getKeywordsFromSiteReturn
201
- end
202
- end
203
-
204
-
205
- end; end
@@ -1,227 +0,0 @@
1
- require 'adwords4r/v12/KeywordToolService'
2
- require 'soap/mapping'
3
-
4
- module AdWords; module KeywordToolService
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::KeywordToolService::ApiError,
13
- :schema_type => XSD::QName.new(NsV12, "ApiError"),
14
- :schema_element => [
15
- ["code", "SOAP::SOAPInt"],
16
- ["detail", "SOAP::SOAPString"],
17
- ["field", "SOAP::SOAPString", [0, 1]],
18
- ["index", "SOAP::SOAPInt"],
19
- ["isExemptable", "SOAP::SOAPBoolean"],
20
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
21
- ["textLength", "SOAP::SOAPInt", [0, 1]],
22
- ["trigger", "SOAP::SOAPString", [0, 1]]
23
- ]
24
- )
25
-
26
- EncodedRegistry.register(
27
- :class => AdWords::KeywordToolService::ApiException,
28
- :schema_type => XSD::QName.new(NsV12, "ApiException"),
29
- :schema_element => [
30
- ["code", "SOAP::SOAPInt"],
31
- ["errors", "AdWords::KeywordToolService::ApiError[]", [1, nil]],
32
- ["internal", "SOAP::SOAPBoolean"],
33
- ["message", "SOAP::SOAPString"],
34
- ["trigger", "SOAP::SOAPString"]
35
- ]
36
- )
37
-
38
- EncodedRegistry.register(
39
- :class => AdWords::KeywordToolService::KeywordVariation,
40
- :schema_type => XSD::QName.new(NsV12, "KeywordVariation"),
41
- :schema_element => [
42
- ["advertiserCompetitionScale", "SOAP::SOAPInt"],
43
- ["language", "SOAP::SOAPString"],
44
- ["searchVolumeScale", "SOAP::SOAPInt"],
45
- ["text", "SOAP::SOAPString"]
46
- ]
47
- )
48
-
49
- EncodedRegistry.register(
50
- :class => AdWords::KeywordToolService::KeywordVariations,
51
- :schema_type => XSD::QName.new(NsV12, "KeywordVariations"),
52
- :schema_element => [
53
- ["additionalToConsider", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]],
54
- ["moreSpecific", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]]
55
- ]
56
- )
57
-
58
- EncodedRegistry.register(
59
- :class => AdWords::KeywordToolService::SeedKeyword,
60
- :schema_type => XSD::QName.new(NsV12, "SeedKeyword"),
61
- :schema_element => [
62
- ["negative", "SOAP::SOAPBoolean", [0, 1]],
63
- ["text", "SOAP::SOAPString"],
64
- ["type", "AdWords::KeywordToolService::KeywordType"]
65
- ]
66
- )
67
-
68
- EncodedRegistry.register(
69
- :class => AdWords::KeywordToolService::SiteKeyword,
70
- :schema_type => XSD::QName.new(NsV12, "SiteKeyword"),
71
- :schema_element => [
72
- ["advertiserCompetitionScale", "SOAP::SOAPInt"],
73
- ["groupId", "SOAP::SOAPInt"],
74
- ["searchVolumeScale", "SOAP::SOAPInt"],
75
- ["text", "SOAP::SOAPString"]
76
- ]
77
- )
78
-
79
- EncodedRegistry.register(
80
- :class => AdWords::KeywordToolService::SiteKeywordGroups,
81
- :schema_type => XSD::QName.new(NsV12, "SiteKeywordGroups"),
82
- :schema_element => [
83
- ["groups", "SOAP::SOAPString[]", [1, nil]],
84
- ["keywords", "AdWords::KeywordToolService::SiteKeyword[]", [1, nil]]
85
- ]
86
- )
87
-
88
- EncodedRegistry.register(
89
- :class => AdWords::KeywordToolService::KeywordType,
90
- :schema_type => XSD::QName.new(NsV12, "KeywordType")
91
- )
92
-
93
- LiteralRegistry.register(
94
- :class => AdWords::KeywordToolService::ApiError,
95
- :schema_type => XSD::QName.new(NsV12, "ApiError"),
96
- :schema_element => [
97
- ["code", "SOAP::SOAPInt"],
98
- ["detail", "SOAP::SOAPString"],
99
- ["field", "SOAP::SOAPString", [0, 1]],
100
- ["index", "SOAP::SOAPInt"],
101
- ["isExemptable", "SOAP::SOAPBoolean"],
102
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
103
- ["textLength", "SOAP::SOAPInt", [0, 1]],
104
- ["trigger", "SOAP::SOAPString", [0, 1]]
105
- ]
106
- )
107
-
108
- LiteralRegistry.register(
109
- :class => AdWords::KeywordToolService::ApiException,
110
- :schema_type => XSD::QName.new(NsV12, "ApiException"),
111
- :schema_element => [
112
- ["code", "SOAP::SOAPInt"],
113
- ["errors", "AdWords::KeywordToolService::ApiError[]", [1, nil]],
114
- ["internal", "SOAP::SOAPBoolean"],
115
- ["message", "SOAP::SOAPString"],
116
- ["trigger", "SOAP::SOAPString"]
117
- ]
118
- )
119
-
120
- LiteralRegistry.register(
121
- :class => AdWords::KeywordToolService::KeywordVariation,
122
- :schema_type => XSD::QName.new(NsV12, "KeywordVariation"),
123
- :schema_element => [
124
- ["advertiserCompetitionScale", "SOAP::SOAPInt"],
125
- ["language", "SOAP::SOAPString"],
126
- ["searchVolumeScale", "SOAP::SOAPInt"],
127
- ["text", "SOAP::SOAPString"]
128
- ]
129
- )
130
-
131
- LiteralRegistry.register(
132
- :class => AdWords::KeywordToolService::KeywordVariations,
133
- :schema_type => XSD::QName.new(NsV12, "KeywordVariations"),
134
- :schema_element => [
135
- ["additionalToConsider", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]],
136
- ["moreSpecific", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]]
137
- ]
138
- )
139
-
140
- LiteralRegistry.register(
141
- :class => AdWords::KeywordToolService::SeedKeyword,
142
- :schema_type => XSD::QName.new(NsV12, "SeedKeyword"),
143
- :schema_element => [
144
- ["negative", "SOAP::SOAPBoolean", [0, 1]],
145
- ["text", "SOAP::SOAPString"],
146
- ["type", "AdWords::KeywordToolService::KeywordType"]
147
- ]
148
- )
149
-
150
- LiteralRegistry.register(
151
- :class => AdWords::KeywordToolService::SiteKeyword,
152
- :schema_type => XSD::QName.new(NsV12, "SiteKeyword"),
153
- :schema_element => [
154
- ["advertiserCompetitionScale", "SOAP::SOAPInt"],
155
- ["groupId", "SOAP::SOAPInt"],
156
- ["searchVolumeScale", "SOAP::SOAPInt"],
157
- ["text", "SOAP::SOAPString"]
158
- ]
159
- )
160
-
161
- LiteralRegistry.register(
162
- :class => AdWords::KeywordToolService::SiteKeywordGroups,
163
- :schema_type => XSD::QName.new(NsV12, "SiteKeywordGroups"),
164
- :schema_element => [
165
- ["groups", "SOAP::SOAPString[]", [1, nil]],
166
- ["keywords", "AdWords::KeywordToolService::SiteKeyword[]", [1, nil]]
167
- ]
168
- )
169
-
170
- LiteralRegistry.register(
171
- :class => AdWords::KeywordToolService::KeywordType,
172
- :schema_type => XSD::QName.new(NsV12, "KeywordType")
173
- )
174
-
175
- LiteralRegistry.register(
176
- :class => AdWords::KeywordToolService::ApiException,
177
- :schema_name => XSD::QName.new(NsV12, "fault"),
178
- :schema_element => [
179
- ["code", "SOAP::SOAPInt"],
180
- ["errors", "AdWords::KeywordToolService::ApiError[]", [1, nil]],
181
- ["internal", "SOAP::SOAPBoolean"],
182
- ["message", "SOAP::SOAPString"],
183
- ["trigger", "SOAP::SOAPString"]
184
- ]
185
- )
186
-
187
- LiteralRegistry.register(
188
- :class => AdWords::KeywordToolService::GetKeywordVariations,
189
- :schema_name => XSD::QName.new(NsV12, "getKeywordVariations"),
190
- :schema_element => [
191
- ["seedKeywords", "AdWords::KeywordToolService::SeedKeyword[]", [1, nil]],
192
- ["useSynonyms", "SOAP::SOAPBoolean"],
193
- ["languages", "SOAP::SOAPString[]", [1, nil]],
194
- ["countries", "SOAP::SOAPString[]", [1, nil]]
195
- ]
196
- )
197
-
198
- LiteralRegistry.register(
199
- :class => AdWords::KeywordToolService::GetKeywordVariationsResponse,
200
- :schema_name => XSD::QName.new(NsV12, "getKeywordVariationsResponse"),
201
- :schema_element => [
202
- ["getKeywordVariationsReturn", "AdWords::KeywordToolService::KeywordVariations"]
203
- ]
204
- )
205
-
206
- LiteralRegistry.register(
207
- :class => AdWords::KeywordToolService::GetKeywordsFromSite,
208
- :schema_name => XSD::QName.new(NsV12, "getKeywordsFromSite"),
209
- :schema_element => [
210
- ["url", "SOAP::SOAPString"],
211
- ["includeLinkedPages", "SOAP::SOAPBoolean"],
212
- ["languages", "SOAP::SOAPString[]", [1, nil]],
213
- ["countries", "SOAP::SOAPString[]", [1, nil]]
214
- ]
215
- )
216
-
217
- LiteralRegistry.register(
218
- :class => AdWords::KeywordToolService::GetKeywordsFromSiteResponse,
219
- :schema_name => XSD::QName.new(NsV12, "getKeywordsFromSiteResponse"),
220
- :schema_element => [
221
- ["getKeywordsFromSiteReturn", "AdWords::KeywordToolService::SiteKeywordGroups"]
222
- ]
223
- )
224
-
225
- end
226
-
227
- end; end
@@ -1,322 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module ReportService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v12}ApiError
7
- # code - SOAP::SOAPInt
8
- # detail - SOAP::SOAPString
9
- # field - SOAP::SOAPString
10
- # index - SOAP::SOAPInt
11
- # isExemptable - SOAP::SOAPBoolean
12
- # textIndex - SOAP::SOAPInt
13
- # textLength - SOAP::SOAPInt
14
- # trigger - SOAP::SOAPString
15
- class ApiError
16
- attr_accessor :code
17
- attr_accessor :detail
18
- attr_accessor :field
19
- attr_accessor :index
20
- attr_accessor :isExemptable
21
- attr_accessor :textIndex
22
- attr_accessor :textLength
23
- attr_accessor :trigger
24
-
25
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
26
- @code = code
27
- @detail = detail
28
- @field = field
29
- @index = index
30
- @isExemptable = isExemptable
31
- @textIndex = textIndex
32
- @textLength = textLength
33
- @trigger = trigger
34
- end
35
- end
36
-
37
- # {https://adwords.google.com/api/adwords/v12}ApiException
38
- # code - SOAP::SOAPInt
39
- # errors - AdWords::ReportService::ApiError
40
- # internal - SOAP::SOAPBoolean
41
- # message - SOAP::SOAPString
42
- # trigger - SOAP::SOAPString
43
- class ApiException
44
- attr_accessor :code
45
- attr_accessor :errors
46
- attr_accessor :internal
47
- attr_accessor :message
48
- attr_accessor :trigger
49
-
50
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
51
- @code = code
52
- @errors = errors
53
- @internal = internal
54
- @message = message
55
- @trigger = trigger
56
- end
57
- end
58
-
59
- # {https://adwords.google.com/api/adwords/v12}ReportJob
60
- # abstract
61
- # clientEmails - SOAP::SOAPString
62
- # crossClient - SOAP::SOAPBoolean
63
- # endDay - SOAP::SOAPDate
64
- # id - SOAP::SOAPLong
65
- # name - SOAP::SOAPString
66
- # startDay - SOAP::SOAPDate
67
- # status - AdWords::ReportService::ReportJobStatus
68
- class ReportJob
69
- attr_accessor :clientEmails
70
- attr_accessor :crossClient
71
- attr_accessor :endDay
72
- attr_accessor :id
73
- attr_accessor :name
74
- attr_accessor :startDay
75
- attr_accessor :status
76
-
77
- def initialize(clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil)
78
- @clientEmails = clientEmails
79
- @crossClient = crossClient
80
- @endDay = endDay
81
- @id = id
82
- @name = name
83
- @startDay = startDay
84
- @status = status
85
- end
86
- end
87
-
88
- # {https://adwords.google.com/api/adwords/v12}DefinedReportJob
89
- # clientEmails - SOAP::SOAPString
90
- # crossClient - SOAP::SOAPBoolean
91
- # endDay - SOAP::SOAPDate
92
- # id - SOAP::SOAPLong
93
- # name - SOAP::SOAPString
94
- # startDay - SOAP::SOAPDate
95
- # status - AdWords::ReportService::ReportJobStatus
96
- # adGroupStatuses - AdWords::ReportService::AdGroupStatus
97
- # adGroups - SOAP::SOAPInt
98
- # adWordsType - AdWords::ReportService::AdWordsType
99
- # aggregationTypes - SOAP::SOAPString
100
- # campaignStatuses - AdWords::ReportService::CampaignStatus
101
- # campaigns - SOAP::SOAPInt
102
- # includeZeroImpression - SOAP::SOAPBoolean
103
- # keywordStatuses - AdWords::ReportService::KeywordStatus
104
- # keywordType - AdWords::ReportService::KeywordType
105
- # keywords - SOAP::SOAPString
106
- # selectedColumns - SOAP::SOAPString
107
- # selectedReportType - SOAP::SOAPString
108
- class DefinedReportJob < ReportJob
109
- attr_accessor :clientEmails
110
- attr_accessor :crossClient
111
- attr_accessor :endDay
112
- attr_accessor :id
113
- attr_accessor :name
114
- attr_accessor :startDay
115
- attr_accessor :status
116
- attr_accessor :adGroupStatuses
117
- attr_accessor :adGroups
118
- attr_accessor :adWordsType
119
- attr_accessor :aggregationTypes
120
- attr_accessor :campaignStatuses
121
- attr_accessor :campaigns
122
- attr_accessor :includeZeroImpression
123
- attr_accessor :keywordStatuses
124
- attr_accessor :keywordType
125
- attr_accessor :keywords
126
- attr_accessor :selectedColumns
127
- attr_accessor :selectedReportType
128
-
129
- def initialize(clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adGroupStatuses = [], adGroups = [], adWordsType = nil, aggregationTypes = [], campaignStatuses = [], campaigns = [], includeZeroImpression = nil, keywordStatuses = [], keywordType = nil, keywords = [], selectedColumns = [], selectedReportType = nil)
130
- @clientEmails = clientEmails
131
- @crossClient = crossClient
132
- @endDay = endDay
133
- @id = id
134
- @name = name
135
- @startDay = startDay
136
- @status = status
137
- @adGroupStatuses = adGroupStatuses
138
- @adGroups = adGroups
139
- @adWordsType = adWordsType
140
- @aggregationTypes = aggregationTypes
141
- @campaignStatuses = campaignStatuses
142
- @campaigns = campaigns
143
- @includeZeroImpression = includeZeroImpression
144
- @keywordStatuses = keywordStatuses
145
- @keywordType = keywordType
146
- @keywords = keywords
147
- @selectedColumns = selectedColumns
148
- @selectedReportType = selectedReportType
149
- end
150
- end
151
-
152
- # {https://adwords.google.com/api/adwords/v12}AdGroupStatus
153
- class AdGroupStatus < ::String
154
- Deleted = AdGroupStatus.new("Deleted")
155
- Enabled = AdGroupStatus.new("Enabled")
156
- Paused = AdGroupStatus.new("Paused")
157
- end
158
-
159
- # {https://adwords.google.com/api/adwords/v12}AdWordsType
160
- class AdWordsType < ::String
161
- ContentOnly = AdWordsType.new("ContentOnly")
162
- SearchOnly = AdWordsType.new("SearchOnly")
163
- end
164
-
165
- # {https://adwords.google.com/api/adwords/v12}CampaignStatus
166
- class CampaignStatus < ::String
167
- Active = CampaignStatus.new("Active")
168
- Deleted = CampaignStatus.new("Deleted")
169
- Ended = CampaignStatus.new("Ended")
170
- Paused = CampaignStatus.new("Paused")
171
- Pending = CampaignStatus.new("Pending")
172
- Suspended = CampaignStatus.new("Suspended")
173
- end
174
-
175
- # {https://adwords.google.com/api/adwords/v12}KeywordStatus
176
- class KeywordStatus < ::String
177
- Active = KeywordStatus.new("Active")
178
- Deleted = KeywordStatus.new("Deleted")
179
- Disapproved = KeywordStatus.new("Disapproved")
180
- InActive = KeywordStatus.new("InActive")
181
- Paused = KeywordStatus.new("Paused")
182
- end
183
-
184
- # {https://adwords.google.com/api/adwords/v12}KeywordType
185
- class KeywordType < ::String
186
- Broad = KeywordType.new("Broad")
187
- Exact = KeywordType.new("Exact")
188
- Phrase = KeywordType.new("Phrase")
189
- end
190
-
191
- # {https://adwords.google.com/api/adwords/v12}ReportJobStatus
192
- class ReportJobStatus < ::String
193
- Completed = ReportJobStatus.new("Completed")
194
- Failed = ReportJobStatus.new("Failed")
195
- InProgress = ReportJobStatus.new("InProgress")
196
- Pending = ReportJobStatus.new("Pending")
197
- end
198
-
199
- # {https://adwords.google.com/api/adwords/v12}deleteReport
200
- # reportJobId - SOAP::SOAPLong
201
- class DeleteReport
202
- attr_accessor :reportJobId
203
-
204
- def initialize(reportJobId = nil)
205
- @reportJobId = reportJobId
206
- end
207
- end
208
-
209
- # {https://adwords.google.com/api/adwords/v12}deleteReportResponse
210
- class DeleteReportResponse
211
- def initialize
212
- end
213
- end
214
-
215
- # {https://adwords.google.com/api/adwords/v12}getAllJobs
216
- class GetAllJobs
217
- def initialize
218
- end
219
- end
220
-
221
- # {https://adwords.google.com/api/adwords/v12}getAllJobsResponse
222
- class GetAllJobsResponse < ::Array
223
- end
224
-
225
- # {https://adwords.google.com/api/adwords/v12}getGzipReportDownloadUrl
226
- # reportJobId - SOAP::SOAPLong
227
- class GetGzipReportDownloadUrl
228
- attr_accessor :reportJobId
229
-
230
- def initialize(reportJobId = nil)
231
- @reportJobId = reportJobId
232
- end
233
- end
234
-
235
- # {https://adwords.google.com/api/adwords/v12}getGzipReportDownloadUrlResponse
236
- # getGzipReportDownloadUrlReturn - SOAP::SOAPString
237
- class GetGzipReportDownloadUrlResponse
238
- attr_accessor :getGzipReportDownloadUrlReturn
239
-
240
- def initialize(getGzipReportDownloadUrlReturn = nil)
241
- @getGzipReportDownloadUrlReturn = getGzipReportDownloadUrlReturn
242
- end
243
- end
244
-
245
- # {https://adwords.google.com/api/adwords/v12}getReportDownloadUrl
246
- # reportJobId - SOAP::SOAPLong
247
- class GetReportDownloadUrl
248
- attr_accessor :reportJobId
249
-
250
- def initialize(reportJobId = nil)
251
- @reportJobId = reportJobId
252
- end
253
- end
254
-
255
- # {https://adwords.google.com/api/adwords/v12}getReportDownloadUrlResponse
256
- # getReportDownloadUrlReturn - SOAP::SOAPString
257
- class GetReportDownloadUrlResponse
258
- attr_accessor :getReportDownloadUrlReturn
259
-
260
- def initialize(getReportDownloadUrlReturn = nil)
261
- @getReportDownloadUrlReturn = getReportDownloadUrlReturn
262
- end
263
- end
264
-
265
- # {https://adwords.google.com/api/adwords/v12}getReportJobStatus
266
- # reportJobId - SOAP::SOAPLong
267
- class GetReportJobStatus
268
- attr_accessor :reportJobId
269
-
270
- def initialize(reportJobId = nil)
271
- @reportJobId = reportJobId
272
- end
273
- end
274
-
275
- # {https://adwords.google.com/api/adwords/v12}getReportJobStatusResponse
276
- # getReportJobStatusReturn - AdWords::ReportService::ReportJobStatus
277
- class GetReportJobStatusResponse
278
- attr_accessor :getReportJobStatusReturn
279
-
280
- def initialize(getReportJobStatusReturn = nil)
281
- @getReportJobStatusReturn = getReportJobStatusReturn
282
- end
283
- end
284
-
285
- # {https://adwords.google.com/api/adwords/v12}scheduleReportJob
286
- # job - AdWords::ReportService::ReportJob
287
- class ScheduleReportJob
288
- attr_accessor :job
289
-
290
- def initialize(job = nil)
291
- @job = job
292
- end
293
- end
294
-
295
- # {https://adwords.google.com/api/adwords/v12}scheduleReportJobResponse
296
- # scheduleReportJobReturn - SOAP::SOAPLong
297
- class ScheduleReportJobResponse
298
- attr_accessor :scheduleReportJobReturn
299
-
300
- def initialize(scheduleReportJobReturn = nil)
301
- @scheduleReportJobReturn = scheduleReportJobReturn
302
- end
303
- end
304
-
305
- # {https://adwords.google.com/api/adwords/v12}validateReportJob
306
- # job - AdWords::ReportService::ReportJob
307
- class ValidateReportJob
308
- attr_accessor :job
309
-
310
- def initialize(job = nil)
311
- @job = job
312
- end
313
- end
314
-
315
- # {https://adwords.google.com/api/adwords/v12}validateReportJobResponse
316
- class ValidateReportJobResponse
317
- def initialize
318
- end
319
- end
320
-
321
-
322
- end; end