Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Committing v19.1.0 branch to trunk.

  • Loading branch information...
commit a6ee897bb07fc10bb290b0171ca5ab12ac725e4b 2 parents f001177 + edd6d01
api.sgomes authored
Showing with 5,472 additions and 4,545 deletions.
  1. +5 −5 Authors.txt
  2. +7 −1 ChangeLog.txt
  3. +13 −13 Copying.txt
  4. +13 −13 License.txt
  5. +2 −3 Rakefile
  6. BIN  doc/apple-touch-icon.png
  7. +95 −54 doc/classes/AdWords.html
  8. +145 −144 doc/classes/AdWords/API.html
  9. +190 −186 doc/classes/AdWords/AdWordsCredentials.html
  10. +49 −46 doc/classes/AdWords/AdWordsLogger.html
  11. +44 −39 doc/classes/AdWords/AuthToken.html
  12. +17 −16 doc/classes/AdWords/Error.html
  13. +1 −1  doc/classes/AdWords/Error/AccountError.html
  14. +36 −35 doc/classes/AdWords/Error/ApiError.html
  15. +1 −1  doc/classes/AdWords/Error/AuthError.html
  16. +1 −1  doc/classes/AdWords/Error/BillingError.html
  17. +1 −1  doc/classes/AdWords/Error/EnvironmentMismatchError.html
  18. +1 −1  doc/classes/AdWords/Error/GoogleInternalError.html
  19. +1 −1  doc/classes/AdWords/Error/RequestError.html
  20. +1 −1  doc/classes/AdWords/Error/UnknownAPICall.html
  21. +1 −1  doc/classes/AdWords/Error/UnknownType.html
  22. +1 −1  doc/classes/AdWords/Error/WebpageError.html
  23. +257 −110 doc/classes/AdWords/Extensions.html
  24. +94 −92 doc/classes/AdWords/Generator.html
  25. +32 −30 doc/classes/AdWords/Pre2009HeaderHandler.html
  26. +133 −125 doc/classes/AdWords/ResponseHandler.html
  27. +320 −243 doc/classes/AdWords/Service.html
  28. +164 −98 doc/classes/AdWords/Utils.html
  29. +2 −44 doc/classes/AdWords/V13.html
  30. +52 −41 doc/classes/AdWords/V13/AccountService/AccountInfo.html
  31. +114 −107 doc/classes/AdWords/V13/AccountService/AccountServiceWrapper.html
  32. +52 −41 doc/classes/AdWords/V13/AccountService/Address.html
  33. +40 −32 doc/classes/AdWords/V13/AccountService/ApiError.html
  34. +28 −23 doc/classes/AdWords/V13/AccountService/ApiException.html
  35. +16 −14 doc/classes/AdWords/V13/AccountService/ClientAccountInfo.html
  36. +28 −23 doc/classes/AdWords/V13/AccountService/EmailPromotionsPreferences.html
  37. +3 −2 doc/classes/AdWords/V13/AccountService/GetAccountInfoResponse.html
  38. +36 −29 doc/classes/AdWords/V13/AccountService/MccAlert.html
  39. +3 −2 doc/classes/AdWords/V13/AccountService/UpdateAccountInfo.html
  40. +40 −32 doc/classes/AdWords/V13/ReportService/ApiError.html
  41. +28 −23 doc/classes/AdWords/V13/ReportService/ApiException.html
  42. +85 −66 doc/classes/AdWords/V13/ReportService/DefinedReportJob.html
  43. +3 −2 doc/classes/AdWords/V13/ReportService/DeleteReport.html
  44. +3 −2 doc/classes/AdWords/V13/ReportService/GetGzipReportDownloadUrl.html
  45. +3 −2 doc/classes/AdWords/V13/ReportService/GetGzipReportDownloadUrlResponse.html
  46. +3 −2 doc/classes/AdWords/V13/ReportService/GetReportDownloadUrl.html
  47. +3 −2 doc/classes/AdWords/V13/ReportService/GetReportDownloadUrlResponse.html
  48. +3 −2 doc/classes/AdWords/V13/ReportService/GetReportJobStatus.html
  49. +3 −2 doc/classes/AdWords/V13/ReportService/GetReportJobStatusResponse.html
  50. +36 −29 doc/classes/AdWords/V13/ReportService/ReportJob.html
  51. +198 −185 doc/classes/AdWords/V13/ReportService/ReportServiceWrapper.html
  52. +3 −2 doc/classes/AdWords/V13/ReportService/ScheduleReportJob.html
  53. +3 −2 doc/classes/AdWords/V13/ReportService/ScheduleReportJobResponse.html
  54. +3 −2 doc/classes/AdWords/V13/ReportService/ValidateReportJob.html
  55. +16 −14 doc/classes/AdWords/V13/TrafficEstimatorService/AdGroupEstimate.html
  56. +20 −17 doc/classes/AdWords/V13/TrafficEstimatorService/AdGroupRequest.html
  57. +40 −32 doc/classes/AdWords/V13/TrafficEstimatorService/ApiError.html
  58. +28 −23 doc/classes/AdWords/V13/TrafficEstimatorService/ApiException.html
  59. +16 −14 doc/classes/AdWords/V13/TrafficEstimatorService/CampaignEstimate.html
  60. +28 −23 doc/classes/AdWords/V13/TrafficEstimatorService/CampaignRequest.html
  61. +20 −17 doc/classes/AdWords/V13/TrafficEstimatorService/Circle.html
  62. +16 −14 doc/classes/AdWords/V13/TrafficEstimatorService/CityTargets.html
  63. +16 −14 doc/classes/AdWords/V13/TrafficEstimatorService/CountryTargets.html
  64. +32 −26 doc/classes/AdWords/V13/TrafficEstimatorService/GeoTarget.html
  65. +36 −29 doc/classes/AdWords/V13/TrafficEstimatorService/KeywordEstimate.html
  66. +28 −23 doc/classes/AdWords/V13/TrafficEstimatorService/KeywordRequest.html
  67. +20 −17 doc/classes/AdWords/V13/TrafficEstimatorService/KeywordTrafficRequest.html
  68. +16 −14 doc/classes/AdWords/V13/TrafficEstimatorService/MetroTargets.html
  69. +16 −14 doc/classes/AdWords/V13/TrafficEstimatorService/RegionTargets.html
  70. +113 −103 doc/classes/AdWords/V13/TrafficEstimatorService/TrafficEstimatorServiceWrapper.html
  71. +22 −22 doc/classes/AdWords/V200909.html
  72. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtension.html
  73. +32 −26 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverride.html
  74. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideApprovalStatus.html
  75. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideError.html
  76. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideErrorReason.html
  77. +21 −18 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideOperation.html
  78. +21 −18 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverridePage.html
  79. +17 −15 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideReturnValue.html
  80. +28 −23 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideSelector.html
  81. +65 −59 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideServiceWrapper.html
  82. +77 −60 doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideStats.html
  83. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/AdExtensionOverrideStatus.html
  84. +36 −29 doc/classes/AdWords/V200909/AdExtensionOverrideService/Address.html
  85. +20 −17 doc/classes/AdWords/V200909/AdExtensionOverrideService/ApiError.html
  86. +21 −18 doc/classes/AdWords/V200909/AdExtensionOverrideService/ApiException.html
  87. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/ApplicationException.html
  88. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/AuthenticationError.html
  89. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/AuthenticationErrorReason.html
  90. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/AuthorizationError.html
  91. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/AuthorizationErrorReason.html
  92. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/C_RangeError.html
  93. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/ClientTermsError.html
  94. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/ClientTermsErrorReason.html
  95. +12 −11 doc/classes/AdWords/V200909/AdExtensionOverrideService/ComparableValue.html
  96. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/DistinctError.html
  97. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/DistinctErrorReason.html
  98. +17 −15 doc/classes/AdWords/V200909/AdExtensionOverrideService/DoubleValue.html
  99. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/EntityNotFound.html
  100. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/EntityNotFoundReason.html
  101. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/GeoPoint.html
  102. +3 −2 doc/classes/AdWords/V200909/AdExtensionOverrideService/Get.html
  103. +3 −2 doc/classes/AdWords/V200909/AdExtensionOverrideService/GetResponse.html
  104. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/InternalApiError.html
  105. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/InternalApiErrorReason.html
  106. +12 −11 doc/classes/AdWords/V200909/AdExtensionOverrideService/ListReturnValue.html
  107. +49 −39 doc/classes/AdWords/V200909/AdExtensionOverrideService/LocationExtension.html
  108. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/LocationExtensionSource.html
  109. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/LocationOverrideInfo.html
  110. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/LocationOverrideInfoRadiusUnits.html
  111. +17 −15 doc/classes/AdWords/V200909/AdExtensionOverrideService/LongValue.html
  112. +17 −15 doc/classes/AdWords/V200909/AdExtensionOverrideService/Money.html
  113. +3 −2 doc/classes/AdWords/V200909/AdExtensionOverrideService/MutateResponse.html
  114. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/NotEmptyError.html
  115. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/NotEmptyErrorReason.html
  116. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/NotWhitelistedError.html
  117. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/NotWhitelistedErrorReason.html
  118. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/NullError.html
  119. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/NullErrorReason.html
  120. +13 −12 doc/classes/AdWords/V200909/AdExtensionOverrideService/NumberValue.html
  121. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/Operation.html
  122. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/OperatorError.html
  123. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/OperatorErrorReason.html
  124. +12 −11 doc/classes/AdWords/V200909/AdExtensionOverrideService/OverrideInfo.html
  125. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/Page.html
  126. +16 −14 doc/classes/AdWords/V200909/AdExtensionOverrideService/Paging.html
  127. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/QuotaCheckError.html
  128. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/QuotaCheckErrorReason.html
  129. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/QuotaExceededError.html
  130. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/QuotaExceededErrorReason.html
  131. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/ReadOnlyError.html
  132. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/ReadOnlyErrorReason.html
  133. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/RequiredError.html
  134. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/RequiredErrorReason.html
  135. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/SizeLimitError.html
  136. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/SizeLimitErrorReason.html
  137. +36 −29 doc/classes/AdWords/V200909/AdExtensionOverrideService/SoapHeader.html
  138. +24 −20 doc/classes/AdWords/V200909/AdExtensionOverrideService/SoapResponseHeader.html
  139. +76 −59 doc/classes/AdWords/V200909/AdExtensionOverrideService/Stats.html
  140. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/StatsNetwork.html
  141. +25 −21 doc/classes/AdWords/V200909/AdExtensionOverrideService/StringLengthError.html
  142. +1 −1  doc/classes/AdWords/V200909/AdExtensionOverrideService/StringLengthErrorReason.html
  143. +32 −26 doc/classes/AdWords/V200909/AdGroupAdService/Ad.html
  144. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AdApprovalStatus.html
  145. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/AdError.html
  146. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AdErrorReason.html
  147. +77 −60 doc/classes/AdWords/V200909/AdGroupAdService/AdExtensionOverrideStats.html
  148. +24 −20 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAd.html
  149. +33 −27 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdCountLimitExceeded.html
  150. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdError.html
  151. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdErrorReason.html
  152. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdOperation.html
  153. +21 −18 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdPage.html
  154. +17 −15 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdReturnValue.html
  155. +28 −23 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdSelector.html
  156. +65 −59 doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdServiceWrapper.html
  157. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AdGroupAdStatus.html
  158. +37 −30 doc/classes/AdWords/V200909/AdGroupAdService/AdScheduleTarget.html
  159. +81 −63 doc/classes/AdWords/V200909/AdGroupAdService/AdStats.html
  160. +17 −15 doc/classes/AdWords/V200909/AdGroupAdService/AdStatsSelector.html
  161. +16 −14 doc/classes/AdWords/V200909/AdGroupAdService/AdUnionId.html
  162. +36 −29 doc/classes/AdWords/V200909/AdGroupAdService/Address.html
  163. +21 −18 doc/classes/AdWords/V200909/AdGroupAdService/AgeTarget.html
  164. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AgeTargetAge.html
  165. +20 −17 doc/classes/AdWords/V200909/AdGroupAdService/ApiError.html
  166. +21 −18 doc/classes/AdWords/V200909/AdGroupAdService/ApiException.html
  167. +16 −14 doc/classes/AdWords/V200909/AdGroupAdService/ApplicationException.html
  168. +73 −57 doc/classes/AdWords/V200909/AdGroupAdService/Audio.html
  169. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/AuthenticationError.html
  170. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AuthenticationErrorReason.html
  171. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/AuthorizationError.html
  172. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/AuthorizationErrorReason.html
  173. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/C_RangeError.html
  174. +29 −24 doc/classes/AdWords/V200909/AdGroupAdService/CityTarget.html
  175. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/ClientTermsError.html
  176. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/ClientTermsErrorReason.html
  177. +12 −11 doc/classes/AdWords/V200909/AdGroupAdService/ComparableValue.html
  178. +21 −18 doc/classes/AdWords/V200909/AdGroupAdService/CountryTarget.html
  179. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/DatabaseError.html
  180. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/DatabaseErrorReason.html
  181. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/DateError.html
  182. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/DateErrorReason.html
  183. +16 −14 doc/classes/AdWords/V200909/AdGroupAdService/DateRange.html
  184. +17 −15 doc/classes/AdWords/V200909/AdGroupAdService/DemographicTarget.html
  185. +41 −33 doc/classes/AdWords/V200909/AdGroupAdService/DeprecatedAd.html
  186. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/DeprecatedAdType.html
  187. +16 −14 doc/classes/AdWords/V200909/AdGroupAdService/Dimensions.html
  188. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/DistinctError.html
  189. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/DistinctErrorReason.html
  190. +17 −15 doc/classes/AdWords/V200909/AdGroupAdService/DoubleValue.html
  191. +33 −27 doc/classes/AdWords/V200909/AdGroupAdService/EntityCountLimitExceeded.html
  192. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/EntityCountLimitExceededReason.html
  193. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/EntityNotFound.html
  194. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/EntityNotFoundReason.html
  195. +12 −11 doc/classes/AdWords/V200909/AdGroupAdService/ExemptionRequest.html
  196. +21 −18 doc/classes/AdWords/V200909/AdGroupAdService/GenderTarget.html
  197. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/GenderTargetGender.html
  198. +16 −14 doc/classes/AdWords/V200909/AdGroupAdService/GeoPoint.html
  199. +17 −15 doc/classes/AdWords/V200909/AdGroupAdService/GeoTarget.html
  200. +3 −2 doc/classes/AdWords/V200909/AdGroupAdService/Get.html
  201. +3 −2 doc/classes/AdWords/V200909/AdGroupAdService/GetResponse.html
  202. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/IdError.html
  203. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/IdErrorReason.html
  204. +65 −51 doc/classes/AdWords/V200909/AdGroupAdService/Image.html
  205. +41 −33 doc/classes/AdWords/V200909/AdGroupAdService/ImageAd.html
  206. +25 −21 doc/classes/AdWords/V200909/AdGroupAdService/ImageError.html
  207. +1 −1  doc/classes/AdWords/V200909/AdGroupAdService/ImageErrorReason.html
Sorry, we could not display the entire diff because too many files (3,213) changed.
View
10 Authors.txt
@@ -1,5 +1,5 @@
-sgomes@google.com (Current)
-jeffy@google.com
-opensource@google.com
-chanezon@google.com
-leavengood@gmail.com
+sgomes@google.com (Current)
+jeffy@google.com
+opensource@google.com
+chanezon@google.com
+leavengood@gmail.com
View
8 ChangeLog.txt
@@ -1,3 +1,9 @@
+19.1.0
+- Added support for v201003.
+- Added several examples for v201003, removed deprecated examples.
+- Reorganized service tests into versions.
+- Added extension methods for v201003 report downloading.
+
19.0.0
- Removed support for v13 and v13-dependent utilities.
@@ -121,7 +127,7 @@
AdWords::API.get_last_units() will return the number of API units used for the last API call.
- Started the process of creating new sample code. The existing code samples are a bit lacking and were moved to the 'examples/old' directory.
A new sample program, 'examples/reports.rb' was created. This sample validates, schedules, and downloads a Keyword Structure report.
- It's a fairly extensive sample and illustrates some of the new API features as well as general best-practices.
+ It's a fairly extensive sample and illustrates some of the new API features as well as general best-practices.
Look for more sample code in future releases.
11.0.3
View
26 Copying.txt
@@ -1,13 +1,13 @@
-Copyright 2009, Google Inc. All Rights Reserved.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+Copyright 2009, Google Inc. All Rights Reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
26 License.txt
@@ -1,13 +1,13 @@
-Copyright 2010, Google Inc. All Rights Reserved.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+Copyright 2010, Google Inc. All Rights Reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
5 Rakefile
@@ -1,6 +1,5 @@
#!/usr/bin/ruby
#
-#
# Authors:: sgomes@google.com (Sérgio Gomes)
# jeffy@google.com (Jeffrey Posnick)
# chanezon@google.com (Patrick Chanezon)
@@ -44,7 +43,7 @@ require 'adwords4r/apiextensions'
require 'adwords4r/generator'
# Configure some constants and built-in tasks
-CURRENT_VERSION = '19.0.0'
+CURRENT_VERSION = '19.1.0'
PKG_VERSION = ENV['REL'] ? ENV['REL'] : CURRENT_VERSION
WSDLDIR = 'wsdl'
@@ -259,7 +258,7 @@ end
# Create a task to perform the unit testing.
Rake::TestTask.new("test") do |test|
test.libs << TESTDIR
- test.pattern = "#{TESTDIR}/test_*.rb"
+ test.pattern = "#{TESTDIR}/**/test_*.rb"
test.verbose = true
end
View
BIN  doc/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
149 doc/classes/AdWords.html
@@ -21,113 +21,149 @@
</h1>
<ul class="files">
- <li><a href="../files/lib/adwords4r/credentials_rb.html">lib/adwords4r/credentials.rb</a></li>
-
<li><a href="../files/lib/adwords4r_rb.html">lib/adwords4r.rb</a></li>
- <li><a href="../files/lib/adwords4r/utils_rb.html">lib/adwords4r/utils.rb</a></li>
-
- <li><a href="../files/lib/adwords4r/authtoken_rb.html">lib/adwords4r/authtoken.rb</a></li>
-
- <li><a href="../files/lib/adwords4r/services_rb.html">lib/adwords4r/services.rb</a></li>
-
<li><a href="../files/lib/adwords4r/adwordslogger_rb.html">lib/adwords4r/adwordslogger.rb</a></li>
- <li><a href="../files/lib/adwords4r/generator_rb.html">lib/adwords4r/generator.rb</a></li>
-
<li><a href="../files/lib/adwords4r/apiextensions_rb.html">lib/adwords4r/apiextensions.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/AdGroupServiceWrapper_rb.html">lib/adwords4r/v13/AdGroupServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/authtoken_rb.html">lib/adwords4r/authtoken.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/TrafficEstimatorServiceWrapper_rb.html">lib/adwords4r/v13/TrafficEstimatorServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/credentials_rb.html">lib/adwords4r/credentials.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/CampaignServiceWrapper_rb.html">lib/adwords4r/v13/CampaignServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/generator_rb.html">lib/adwords4r/generator.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/AdServiceWrapper_rb.html">lib/adwords4r/v13/AdServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/services_rb.html">lib/adwords4r/services.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/InfoServiceWrapper_rb.html">lib/adwords4r/v13/InfoServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/utils_rb.html">lib/adwords4r/utils.rb</a></li>
<li><a href="../files/lib/adwords4r/v13/AccountServiceWrapper_rb.html">lib/adwords4r/v13/AccountServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/CriterionServiceWrapper_rb.html">lib/adwords4r/v13/CriterionServiceWrapper.rb</a></li>
-
<li><a href="../files/lib/adwords4r/v13/ReportServiceWrapper_rb.html">lib/adwords4r/v13/ReportServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/SiteSuggestionServiceWrapper_rb.html">lib/adwords4r/v13/SiteSuggestionServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v13/TrafficEstimatorServiceWrapper_rb.html">lib/adwords4r/v13/TrafficEstimatorServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/KeywordToolServiceWrapper_rb.html">lib/adwords4r/v13/KeywordToolServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/AdExtensionOverrideServiceWrapper_rb.html">lib/adwords4r/v200909/AdExtensionOverrideServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/CampaignCriterionServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignCriterionServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/AdGroupAdServiceWrapper_rb.html">lib/adwords4r/v200909/AdGroupAdServiceWrapper.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/AdGroupCriterionServiceWrapper_rb.html">lib/adwords4r/v200909/AdGroupCriterionServiceWrapper.rb</a></li>
<li><a href="../files/lib/adwords4r/v200909/AdGroupServiceWrapper_rb.html">lib/adwords4r/v200909/AdGroupServiceWrapper.rb</a></li>
<li><a href="../files/lib/adwords4r/v200909/AdParamServiceWrapper_rb.html">lib/adwords4r/v200909/AdParamServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/TargetingIdeaServiceWrapper_rb.html">lib/adwords4r/v200909/TargetingIdeaServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/BulkMutateJobServiceWrapper_rb.html">lib/adwords4r/v200909/BulkMutateJobServiceWrapper.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/CampaignAdExtensionServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignAdExtensionServiceWrapper.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/CampaignCriterionServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignCriterionServiceWrapper.rb</a></li>
<li><a href="../files/lib/adwords4r/v200909/CampaignServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/CampaignAdExtensionServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignAdExtensionServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/CampaignTargetServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignTargetServiceWrapper.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/GeoLocationServiceWrapper_rb.html">lib/adwords4r/v200909/GeoLocationServiceWrapper.rb</a></li>
<li><a href="../files/lib/adwords4r/v200909/InfoServiceWrapper_rb.html">lib/adwords4r/v200909/InfoServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/GeoLocationServiceWrapper_rb.html">lib/adwords4r/v200909/GeoLocationServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/TargetingIdeaServiceWrapper_rb.html">lib/adwords4r/v200909/TargetingIdeaServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdGroupAdServiceWrapper_rb.html">lib/adwords4r/v200909/AdGroupAdServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdExtensionOverrideServiceWrapper_rb.html">lib/adwords4r/v201003/AdExtensionOverrideServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/BulkMutateJobServiceWrapper_rb.html">lib/adwords4r/v200909/BulkMutateJobServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdGroupAdServiceWrapper_rb.html">lib/adwords4r/v201003/AdGroupAdServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdGroupCriterionServiceWrapper_rb.html">lib/adwords4r/v200909/AdGroupCriterionServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdGroupCriterionServiceWrapper_rb.html">lib/adwords4r/v201003/AdGroupCriterionServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdExtensionOverrideServiceWrapper_rb.html">lib/adwords4r/v200909/AdExtensionOverrideServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdGroupServiceWrapper_rb.html">lib/adwords4r/v201003/AdGroupServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/CampaignTargetServiceWrapper_rb.html">lib/adwords4r/v200909/CampaignTargetServiceWrapper.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdParamServiceWrapper_rb.html">lib/adwords4r/v201003/AdParamServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/AccountService_rb.html">lib/adwords4r/v13/AccountService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/BidLandscapeServiceWrapper_rb.html">lib/adwords4r/v201003/BidLandscapeServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/CriterionService_rb.html">lib/adwords4r/v13/CriterionService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/BulkMutateJobServiceWrapper_rb.html">lib/adwords4r/v201003/BulkMutateJobServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/AdGroupService_rb.html">lib/adwords4r/v13/AdGroupService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/CampaignAdExtensionServiceWrapper_rb.html">lib/adwords4r/v201003/CampaignAdExtensionServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/SiteSuggestionService_rb.html">lib/adwords4r/v13/SiteSuggestionService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/CampaignCriterionServiceWrapper_rb.html">lib/adwords4r/v201003/CampaignCriterionServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/CampaignService_rb.html">lib/adwords4r/v13/CampaignService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/CampaignServiceWrapper_rb.html">lib/adwords4r/v201003/CampaignServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/KeywordToolService_rb.html">lib/adwords4r/v13/KeywordToolService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/CampaignTargetServiceWrapper_rb.html">lib/adwords4r/v201003/CampaignTargetServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/InfoService_rb.html">lib/adwords4r/v13/InfoService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/GeoLocationServiceWrapper_rb.html">lib/adwords4r/v201003/GeoLocationServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/TrafficEstimatorService_rb.html">lib/adwords4r/v13/TrafficEstimatorService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/InfoServiceWrapper_rb.html">lib/adwords4r/v201003/InfoServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/ReportService_rb.html">lib/adwords4r/v13/ReportService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/MediaServiceWrapper_rb.html">lib/adwords4r/v201003/MediaServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v13/AdService_rb.html">lib/adwords4r/v13/AdService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/ReportDefinitionServiceWrapper_rb.html">lib/adwords4r/v201003/ReportDefinitionServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdGroupService_rb.html">lib/adwords4r/v200909/AdGroupService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/TargetingIdeaServiceWrapper_rb.html">lib/adwords4r/v201003/TargetingIdeaServiceWrapper.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdParamService_rb.html">lib/adwords4r/v200909/AdParamService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v13/AccountService_rb.html">lib/adwords4r/v13/AccountService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdGroupAdService_rb.html">lib/adwords4r/v200909/AdGroupAdService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v13/ReportService_rb.html">lib/adwords4r/v13/ReportService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/TargetingIdeaService_rb.html">lib/adwords4r/v200909/TargetingIdeaService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v13/TrafficEstimatorService_rb.html">lib/adwords4r/v13/TrafficEstimatorService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/BulkMutateJobService_rb.html">lib/adwords4r/v200909/BulkMutateJobService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/AdExtensionOverrideService_rb.html">lib/adwords4r/v200909/AdExtensionOverrideService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/CampaignService_rb.html">lib/adwords4r/v200909/CampaignService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/AdGroupAdService_rb.html">lib/adwords4r/v200909/AdGroupAdService.rb</a></li>
<li><a href="../files/lib/adwords4r/v200909/AdGroupCriterionService_rb.html">lib/adwords4r/v200909/AdGroupCriterionService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/AdGroupService_rb.html">lib/adwords4r/v200909/AdGroupService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/AdParamService_rb.html">lib/adwords4r/v200909/AdParamService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/BulkMutateJobService_rb.html">lib/adwords4r/v200909/BulkMutateJobService.rb</a></li>
+
<li><a href="../files/lib/adwords4r/v200909/CampaignAdExtensionService_rb.html">lib/adwords4r/v200909/CampaignAdExtensionService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/CampaignCriterionService_rb.html">lib/adwords4r/v200909/CampaignCriterionService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v200909/CampaignService_rb.html">lib/adwords4r/v200909/CampaignService.rb</a></li>
+
<li><a href="../files/lib/adwords4r/v200909/CampaignTargetService_rb.html">lib/adwords4r/v200909/CampaignTargetService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/GeoLocationService_rb.html">lib/adwords4r/v200909/GeoLocationService.rb</a></li>
+
<li><a href="../files/lib/adwords4r/v200909/InfoService_rb.html">lib/adwords4r/v200909/InfoService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/CampaignCriterionService_rb.html">lib/adwords4r/v200909/CampaignCriterionService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v200909/TargetingIdeaService_rb.html">lib/adwords4r/v200909/TargetingIdeaService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/GeoLocationService_rb.html">lib/adwords4r/v200909/GeoLocationService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdExtensionOverrideService_rb.html">lib/adwords4r/v201003/AdExtensionOverrideService.rb</a></li>
- <li><a href="../files/lib/adwords4r/v200909/AdExtensionOverrideService_rb.html">lib/adwords4r/v200909/AdExtensionOverrideService.rb</a></li>
+ <li><a href="../files/lib/adwords4r/v201003/AdGroupAdService_rb.html">lib/adwords4r/v201003/AdGroupAdService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/AdGroupCriterionService_rb.html">lib/adwords4r/v201003/AdGroupCriterionService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/AdGroupService_rb.html">lib/adwords4r/v201003/AdGroupService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/AdParamService_rb.html">lib/adwords4r/v201003/AdParamService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/BidLandscapeService_rb.html">lib/adwords4r/v201003/BidLandscapeService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/BulkMutateJobService_rb.html">lib/adwords4r/v201003/BulkMutateJobService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/CampaignAdExtensionService_rb.html">lib/adwords4r/v201003/CampaignAdExtensionService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/CampaignCriterionService_rb.html">lib/adwords4r/v201003/CampaignCriterionService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/CampaignService_rb.html">lib/adwords4r/v201003/CampaignService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/CampaignTargetService_rb.html">lib/adwords4r/v201003/CampaignTargetService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/GeoLocationService_rb.html">lib/adwords4r/v201003/GeoLocationService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/InfoService_rb.html">lib/adwords4r/v201003/InfoService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/MediaService_rb.html">lib/adwords4r/v201003/MediaService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/ReportDefinitionService_rb.html">lib/adwords4r/v201003/ReportDefinitionService.rb</a></li>
+
+ <li><a href="../files/lib/adwords4r/v201003/TargetingIdeaService_rb.html">lib/adwords4r/v201003/TargetingIdeaService.rb</a></li>
</ul>
</div>
@@ -138,19 +174,22 @@
<p>
Main namespace for all the client library&#8217;s modules and classes.
</p>
-<hr size="1"></hr><table>
-<tr><td valign="top">Authors:</td><td>sgomes@google.com (Sérgio Gomes) jeffy@google.com (Jeffrey Posnick)
+<hr style="height: 1px"></hr><table>
+<tr><td valign="top">Authors</td><td><p>
+sgomes@google.com (Sérgio Gomes) jeffy@google.com (Jeffrey Posnick)
chanezon@google.com (Patrick Chanezon) leavengood@gmail.com (Ryan
Leavengood)
-
+</p>
</td></tr>
-<tr><td valign="top">Copyright:</td><td>Copyright 2010, Google Inc. All Rights Reserved.
-
+<tr><td valign="top">Copyright</td><td><p>
+Copyright 2010, Google Inc. All Rights Reserved.
+</p>
</td></tr>
-<tr><td valign="top">License:</td><td>Licensed under the Apache License, Version 2.0 (the &#8220;License&#8221;);
+<tr><td valign="top">License</td><td><p>
+Licensed under the Apache License, Version 2.0 (the &#8220;License&#8221;);
you may not use this file except in compliance with the License. You may
obtain a copy of the License at
-
+</p>
<p>
<a
href="http://www.apache.org/licenses/LICENSE-2.0">www.apache.org/licenses/LICENSE-2.0</a>
@@ -201,6 +240,8 @@
<li><span class="type">MODULE</span> <a href="AdWords/V200909.html">AdWords::V200909</a></li>
+ <li><span class="type">MODULE</span> <a href="AdWords/V201003.html">AdWords::V201003</a></li>
+
<li><span class="type">CLASS</span> <a href="AdWords/API.html">AdWords::API</a></li>
<li><span class="type">CLASS</span> <a href="AdWords/AdWordsCredentials.html">AdWords::AdWordsCredentials</a></li>
View
289 doc/classes/AdWords/API.html
@@ -60,7 +60,7 @@
<dd>
<ul>
- <li><a href="#M000007">get_service</a></li>
+ <li><a href="#method-i-get_service">get_service</a></li>
</ul>
</dd>
@@ -69,7 +69,7 @@
<dd>
<ul>
- <li><a href="#M000002">new</a></li>
+ <li><a href="#method-c-new">new</a></li>
</ul>
</dd>
@@ -78,7 +78,7 @@
<dd>
<ul>
- <li><a href="#M000010">service</a></li>
+ <li><a href="#method-i-service">service</a></li>
</ul>
</dd>
@@ -87,9 +87,9 @@
<dd>
<ul>
- <li><a href="#M000003">use_mcc</a>,</li>
+ <li><a href="#method-i-use_mcc">use_mcc</a>,</li>
- <li><a href="#M000004">use_mcc=</a></li>
+ <li><a href="#method-i-use_mcc%3D">use_mcc=</a></li>
</ul>
</dd>
@@ -98,9 +98,9 @@
<dd>
<ul>
- <li><a href="#M000005">validate_only</a>,</li>
+ <li><a href="#method-i-validate_only">validate_only</a>,</li>
- <li><a href="#M000006">validate_only=</a></li>
+ <li><a href="#method-i-validate_only%3D">validate_only=</a></li>
</ul>
</dd>
@@ -192,9 +192,9 @@
<div class="sectiontitle">Class Public methods</div>
<div class="method">
- <div class="title" id="M000002">
+ <div class="title" id="method-c-new">
- <a name="M000002"></a><b>new</b>(credentials = AdWordsCredentials.new)
+ <a name="method-c-new"></a><b>new</b>(credentials = AdWordsCredentials.new)
</div>
@@ -206,9 +206,10 @@
Args:
</p>
<ul>
-<li>credentials: <a href="AdWordsCredentials.html">AdWordsCredentials</a>
+<li><p>
+credentials: <a href="AdWordsCredentials.html">AdWordsCredentials</a>
object containing the login information
-
+</p>
</li>
</ul>
@@ -219,28 +220,28 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
+ Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
</p>
- <div id="M000002_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r.rb, line 69</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">credentials</span> = <span class="ruby-constant">AdWordsCredentials</span>.<span class="ruby-identifier">new</span>)
- <span class="ruby-ivar">@credentials</span> = <span class="ruby-identifier">credentials</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">environments</span>.<span class="ruby-identifier">include?</span> <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">environment</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>,
- <span class="ruby-node">&quot;Unknown environment #{@credentials.environment}&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-ivar">@drivers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
- <span class="ruby-ivar">@wrappers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
- <span class="ruby-ivar">@total_units</span> = <span class="ruby-value">0</span>
- <span class="ruby-ivar">@last_units</span> = <span class="ruby-value">0</span>
- <span class="ruby-identifier">log_to_console</span> = <span class="ruby-operator">!</span><span class="ruby-constant">ENV</span>[<span class="ruby-value str">'ADWORDS4R_DEBUG'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span>
- <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'ADWORDS4R_DEBUG'</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'TRUE'</span>
- <span class="ruby-ivar">@xml_logger</span> = <span class="ruby-constant">AdWordsLogger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'soap_xml'</span>, <span class="ruby-identifier">log_to_console</span>)
- <span class="ruby-ivar">@unit_logger</span> = <span class="ruby-constant">AdWordsLogger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'request_info'</span>)
- <span class="ruby-ivar">@mutex</span> = <span class="ruby-constant">Mutex</span>.<span class="ruby-identifier">new</span>
- <span class="ruby-identifier">prepare_drivers</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-c-new_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r.rb, line 69</span>
+69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">credentials</span> = <span class="ruby-constant">AdWordsCredentials</span>.<span class="ruby-identifier">new</span>)
+70: <span class="ruby-ivar">@credentials</span> = <span class="ruby-identifier">credentials</span>
+71: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">environments</span>.<span class="ruby-identifier">include?</span> <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">environment</span>
+72: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>,
+73: <span class="ruby-node">&quot;Unknown environment #{@credentials.environment}&quot;</span>
+74: <span class="ruby-keyword kw">end</span>
+75: <span class="ruby-ivar">@drivers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
+76: <span class="ruby-ivar">@wrappers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
+77: <span class="ruby-ivar">@total_units</span> = <span class="ruby-value">0</span>
+78: <span class="ruby-ivar">@last_units</span> = <span class="ruby-value">0</span>
+79: <span class="ruby-identifier">log_to_console</span> = <span class="ruby-operator">!</span><span class="ruby-constant">ENV</span>[<span class="ruby-value str">'ADWORDS4R_DEBUG'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span>
+80: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'ADWORDS4R_DEBUG'</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'TRUE'</span>
+81: <span class="ruby-ivar">@xml_logger</span> = <span class="ruby-constant">AdWordsLogger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'soap_xml'</span>, <span class="ruby-identifier">log_to_console</span>)
+82: <span class="ruby-ivar">@unit_logger</span> = <span class="ruby-constant">AdWordsLogger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'request_info'</span>)
+83: <span class="ruby-ivar">@mutex</span> = <span class="ruby-constant">Mutex</span>.<span class="ruby-identifier">new</span>
+84: <span class="ruby-identifier">prepare_drivers</span>
+85: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -249,9 +250,9 @@
<div class="sectiontitle">Instance Public methods</div>
<div class="method">
- <div class="title" id="M000007">
+ <div class="title" id="method-i-get_service">
- <a name="M000007"></a><b>get_service</b>(name, version = nil)
+ <a name="method-i-get_service"></a><b>get_service</b>(name, version = nil)
</div>
@@ -263,19 +264,22 @@
Args:
</p>
<ul>
-<li>name: name for the intended service
-
+<li><p>
+name: name for the intended service
+</p>
</li>
-<li>version: intended <a href="API.html">API</a> version. Must be an integer.
-
+<li><p>
+version: intended <a href="API.html">API</a> version. Must be an integer.
+</p>
</li>
</ul>
<p>
Returns:
</p>
<ul>
-<li>the service wrapper for the intended service.
-
+<li><p>
+the service wrapper for the intended service.
+</p>
</li>
</ul>
@@ -285,7 +289,7 @@
<div class="aka">
This method is also aliased as
- <a href="API.html#M000010">service</a>
+ <a href="API.html#method-i-service">service</a>
</div>
@@ -293,72 +297,65 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-get_service_source')" id="l_method-i-get_service_source">show</a>
</p>
- <div id="M000007_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r.rb, line 166</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_service</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span> = <span class="ruby-keyword kw">nil</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Integer</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">version</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
- <span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span> = <span class="ruby-identifier">version</span>, <span class="ruby-identifier">name</span>
- <span class="ruby-identifier">warn</span>(<span class="ruby-value str">&quot;This parameter order is deprecated. &quot;</span> <span class="ruby-operator">+</span>
- <span class="ruby-value str">&quot;Please use get_service(name, version) from now on.&quot;</span>)
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
- <span class="ruby-comment cmt"># Do nothing</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Wrong arguments. &quot;</span> <span class="ruby-operator">+</span>
- <span class="ruby-value str">&quot;Expected: get_service(name, version = nil)&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">version</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span><span class="ruby-operator">::</span><span class="ruby-identifier">get_default_version</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
- <span class="ruby-comment cmt"># Check if version exists</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_versions</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">version</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">version</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Unknown version '#{version}'. Please &quot;</span> <span class="ruby-operator">+</span>
- <span class="ruby-value str">&quot;note that version numbers should be numeric, not strings&quot;</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Unknown version #{version}&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-comment cmt"># Check if the current environment supports the requested version</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">environment_has_version</span>(<span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">environment</span>,
- <span class="ruby-identifier">version</span>)
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Environment #{@credentials.environment}&quot;</span> <span class="ruby-operator">+</span>
- <span class="ruby-node">&quot; does not support version #{version}&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-comment cmt"># Check if the specified version has the requested service</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">version_has_service</span>(<span class="ruby-identifier">version</span>, <span class="ruby-identifier">name</span>)
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Version #{version} does not contain &quot;</span> <span class="ruby-operator">+</span>
- <span class="ruby-node">&quot;service #{name}&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@wrappers</span>[[<span class="ruby-identifier">version</span>, <span class="ruby-identifier">name</span>]]
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-get_service_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r.rb, line 166</span>
+166: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_service</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span> = <span class="ruby-keyword kw">nil</span>)
+167: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Integer</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">version</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
+168: <span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span> = <span class="ruby-identifier">version</span>, <span class="ruby-identifier">name</span>
+169: <span class="ruby-identifier">warn</span>(<span class="ruby-value str">&quot;This parameter order is deprecated. &quot;</span> <span class="ruby-operator">+</span>
+170: <span class="ruby-value str">&quot;Please use get_service(name, version) from now on.&quot;</span>)
+171: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
+172: <span class="ruby-comment cmt"># Do nothing</span>
+173: <span class="ruby-keyword kw">else</span>
+174: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Wrong arguments. &quot;</span> <span class="ruby-operator">+</span>
+175: <span class="ruby-value str">&quot;Expected: get_service(name, version = nil)&quot;</span>
+176: <span class="ruby-keyword kw">end</span>
+177: <span class="ruby-identifier">version</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span><span class="ruby-operator">::</span><span class="ruby-identifier">get_default_version</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
+178: <span class="ruby-comment cmt"># Check if version exists</span>
+179: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_versions</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">version</span>)
+180: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">version</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
+181: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Unknown version '#{version}'. Please &quot;</span> <span class="ruby-operator">+</span>
+182: <span class="ruby-value str">&quot;note that version numbers should be numeric, not strings&quot;</span>
+183: <span class="ruby-keyword kw">else</span>
+184: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Unknown version #{version}&quot;</span>
+185: <span class="ruby-keyword kw">end</span>
+186: <span class="ruby-keyword kw">end</span>
+187: <span class="ruby-comment cmt"># Check if the current environment supports the requested version</span>
+188: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">environment_has_version</span>(<span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">environment</span>,
+189: <span class="ruby-identifier">version</span>)
+190: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Environment #{@credentials.environment}&quot;</span> <span class="ruby-operator">+</span>
+191: <span class="ruby-node">&quot; does not support version #{version}&quot;</span>
+192: <span class="ruby-keyword kw">end</span>
+193: <span class="ruby-comment cmt"># Check if the specified version has the requested service</span>
+194: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">version_has_service</span>(<span class="ruby-identifier">version</span>, <span class="ruby-identifier">name</span>)
+195: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-node">&quot;Version #{version} does not contain &quot;</span> <span class="ruby-operator">+</span>
+196: <span class="ruby-node">&quot;service #{name}&quot;</span>
+197: <span class="ruby-keyword kw">end</span>
+198: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@wrappers</span>[[<span class="ruby-identifier">version</span>, <span class="ruby-identifier">name</span>]]
+199: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000010">
+ <div class="title" id="method-i-service">
- <a name="M000010"></a><b>service</b>(name, version = nil)
+ <a name="method-i-service"></a><b>service</b>(name, version = nil)
</div>
- <div class="description">
- <p>
-Alias for <a href="API.html#M000007">get_service</a>
-</p>
-
- </div>
-
</div>
<div class="method">
- <div class="title" id="M000003">
+ <div class="title" id="method-i-use_mcc">
- <a name="M000003"></a><b>use_mcc</b>()
+ <a name="method-i-use_mcc"></a><b>use_mcc</b>()
</div>
@@ -372,8 +369,9 @@
Args:
</p>
<ul>
-<li>accepts a block, which it will execute as an MCC-level operation.
-
+<li><p>
+accepts a block, which it will execute as an MCC-level operation.
+</p>
</li>
</ul>
<p>
@@ -388,32 +386,32 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-use_mcc_source')" id="l_method-i-use_mcc_source">show</a>
</p>
- <div id="M000003_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r.rb, line 98</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_mcc</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
- <span class="ruby-identifier">previous</span> = <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span>
- <span class="ruby-keyword kw">begin</span>
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span> = <span class="ruby-keyword kw">true</span>
- <span class="ruby-keyword kw">yield</span>
- <span class="ruby-keyword kw">ensure</span>
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span> = <span class="ruby-identifier">previous</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-use_mcc_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r.rb, line 98</span>
+ 98: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_mcc</span>
+ 99: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
+100: <span class="ruby-identifier">previous</span> = <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span>
+101: <span class="ruby-keyword kw">begin</span>
+102: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span> = <span class="ruby-keyword kw">true</span>
+103: <span class="ruby-keyword kw">yield</span>
+104: <span class="ruby-keyword kw">ensure</span>
+105: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span> = <span class="ruby-identifier">previous</span>
+106: <span class="ruby-keyword kw">end</span>
+107: <span class="ruby-keyword kw">end</span>
+108: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span>
+109: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000004">
+ <div class="title" id="method-i-use_mcc%3D">
- <a name="M000004"></a><b>use_mcc=</b>(value)
+ <a name="method-i-use_mcc%3D"></a><b>use_mcc=</b>(value)
</div>
@@ -427,8 +425,9 @@
Args:
</p>
<ul>
-<li>value: the new value for the property (boolean)
-
+<li><p>
+value: the new value for the property (boolean)
+</p>
</li>
</ul>
@@ -439,23 +438,23 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-use_mcc%3D_source')" id="l_method-i-use_mcc%3D_source">show</a>
</p>
- <div id="M000004_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r.rb, line 118</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_mcc=</span>(<span class="ruby-identifier">value</span>)
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span> = <span class="ruby-identifier">value</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-use_mcc%3D_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r.rb, line 118</span>
+118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">use_mcc=</span>(<span class="ruby-identifier">value</span>)
+119: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">use_mcc</span> = <span class="ruby-identifier">value</span>
+120: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000005">
+ <div class="title" id="method-i-validate_only">
- <a name="M000005"></a><b>validate_only</b>()
+ <a name="method-i-validate_only"></a><b>validate_only</b>()
</div>
@@ -469,8 +468,9 @@
Args:
</p>
<ul>
-<li>accepts a block, which it will execute as a validate-only operation.
-
+<li><p>
+accepts a block, which it will execute as a validate-only operation.
+</p>
</li>
</ul>
<p>
@@ -485,32 +485,32 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-validate_only_source')" id="l_method-i-validate_only_source">show</a>
</p>
- <div id="M000005_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r.rb, line 133</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_only</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
- <span class="ruby-identifier">previous</span> = <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span>
- <span class="ruby-keyword kw">begin</span>
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span> = <span class="ruby-keyword kw">true</span>
- <span class="ruby-keyword kw">yield</span>
- <span class="ruby-keyword kw">ensure</span>
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span> = <span class="ruby-identifier">previous</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-validate_only_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r.rb, line 133</span>
+133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_only</span>
+134: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
+135: <span class="ruby-identifier">previous</span> = <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span>
+136: <span class="ruby-keyword kw">begin</span>
+137: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span> = <span class="ruby-keyword kw">true</span>
+138: <span class="ruby-keyword kw">yield</span>
+139: <span class="ruby-keyword kw">ensure</span>
+140: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span> = <span class="ruby-identifier">previous</span>
+141: <span class="ruby-keyword kw">end</span>
+142: <span class="ruby-keyword kw">end</span>
+143: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span>
+144: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000006">
+ <div class="title" id="method-i-validate_only%3D">
- <a name="M000006"></a><b>validate_only=</b>(value)
+ <a name="method-i-validate_only%3D"></a><b>validate_only=</b>(value)
</div>
@@ -524,8 +524,9 @@
Args:
</p>
<ul>
-<li>value: the new value for the property (boolean)
-
+<li><p>
+value: the new value for the property (boolean)
+</p>
</li>
</ul>
@@ -536,14 +537,14 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-validate_only%3D_source')" id="l_method-i-validate_only%3D_source">show</a>
</p>
- <div id="M000006_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r.rb, line 153</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_only=</span>(<span class="ruby-identifier">value</span>)
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span> = <span class="ruby-identifier">value</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-validate_only%3D_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r.rb, line 153</span>
+153: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate_only=</span>(<span class="ruby-identifier">value</span>)
+154: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">validate_only</span> = <span class="ruby-identifier">value</span>
+155: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
View
376 doc/classes/AdWords/AdWordsCredentials.html
@@ -56,7 +56,7 @@
<dd>
<ul>
- <li><a href="#M000018">auth_token</a></li>
+ <li><a href="#method-i-auth_token">auth_token</a></li>
</ul>
</dd>
@@ -65,9 +65,9 @@
<dd>
<ul>
- <li><a href="#M000016">client_customer_id</a>,</li>
+ <li><a href="#method-i-client_customer_id">client_customer_id</a>,</li>
- <li><a href="#M000015">client_email</a></li>
+ <li><a href="#method-i-client_email">client_email</a></li>
</ul>
</dd>
@@ -76,7 +76,7 @@
<dd>
<ul>
- <li><a href="#M000022">dup</a></li>
+ <li><a href="#method-i-dup">dup</a></li>
</ul>
</dd>
@@ -85,9 +85,9 @@
<dd>
<ul>
- <li><a href="#M000019">generate_auth_token</a>,</li>
+ <li><a href="#method-i-generate_auth_token">generate_auth_token</a>,</li>
- <li><a href="#M000017">get_handlers</a></li>
+ <li><a href="#method-i-get_handlers">get_handlers</a></li>
</ul>
</dd>
@@ -96,7 +96,7 @@
<dd>
<ul>
- <li><a href="#M000011">new</a></li>
+ <li><a href="#method-c-new">new</a></li>
</ul>
</dd>
@@ -105,7 +105,7 @@
<dd>
<ul>
- <li><a href="#M000021">set_header</a></li>
+ <li><a href="#method-i-set_header">set_header</a></li>
</ul>
</dd>
@@ -172,9 +172,9 @@
<div class="sectiontitle">Class Public methods</div>
<div class="method">
- <div class="title" id="M000011">
+ <div class="title" id="method-c-new">
- <a name="M000011"></a><b>new</b>(credentials=nil)
+ <a name="method-c-new"></a><b>new</b>(credentials=nil)
</div>
@@ -186,8 +186,9 @@
Args:
</p>
<ul>
-<li>credentials: Hash of credentials (credential key to value). E.g.:
-
+<li><p>
+credentials: Hash of credentials (credential key to value). E.g.:
+</p>
<pre>
{
'developerToken' =&gt; 'user@domain.com++USD',
@@ -197,8 +198,7 @@
'clientEmail' =&gt; 'client_1+user@domain.com',
'applicationToken' =&gt; 'IGNORED',
'environment' =&gt; 'SANDBOX'
- }
-</pre>
+ }</pre>
</li>
</ul>
@@ -209,76 +209,76 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
+ Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
</p>
- <div id="M000011_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 147</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">credentials</span>=<span class="ruby-keyword kw">nil</span>)
- <span class="ruby-ivar">@credentials</span> = {}
- <span class="ruby-ivar">@environment</span> = <span class="ruby-keyword kw">nil</span>
- <span class="ruby-ivar">@auth_token</span> = <span class="ruby-keyword kw">nil</span>
- <span class="ruby-ivar">@handlers</span> = []
- <span class="ruby-ivar">@use_mcc</span> = <span class="ruby-keyword kw">false</span>
- <span class="ruby-ivar">@validate_only</span> = <span class="ruby-keyword kw">false</span>
- <span class="ruby-identifier">credentials</span> = <span class="ruby-identifier">get_defaults</span>() <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">credentials</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-identifier">credentials</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
- <span class="ruby-comment cmt"># 'environment' shouldn't go in the credentials array, and we'll ignore</span>
- <span class="ruby-comment cmt"># 'alternateUrl' to avoid errors on upgraders' apps.</span>
- <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">key</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^alternateUrl/</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">credentials</span>[<span class="ruby-value str">&quot;environment&quot;</span>].<span class="ruby-identifier">nil?</span>)
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>,
- <span class="ruby-value str">&quot;'alternateUrl' is no longer supported. Please consult the &quot;</span> <span class="ruby-operator">+</span>
- <span class="ruby-value str">&quot;Readme on how to use 'environment' instead.&quot;</span>
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">key</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^environment/</span>)
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span>
-
- <span class="ruby-comment cmt"># The user agent header differs in v13 (useragent) and v2009 (userAgent).</span>
- <span class="ruby-comment cmt"># Properly populate both values, and use the name of the program ($0) if</span>
- <span class="ruby-comment cmt"># nothing is given.</span>
- <span class="ruby-identifier">user_agent</span> = <span class="ruby-value str">'adwords4r: %s'</span> <span class="ruby-operator">%</span> (<span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'useragent'</span>] <span class="ruby-operator">||</span>
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'userAgent'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">$0</span>)
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'useragent'</span>] = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'userAgent'</span>] = <span class="ruby-identifier">user_agent</span>
-
- <span class="ruby-comment cmt"># The properties file may include the clientEmail in a clientId property.</span>
- <span class="ruby-comment cmt"># clientId might be a clientCustomerId, though, so check to make sure it</span>
- <span class="ruby-comment cmt"># is an email address before assigning it to clientEmail.</span>
- <span class="ruby-comment cmt"># clientCustomerIds don't seem to be supported elsewhere in this client</span>
- <span class="ruby-comment cmt"># library, so ignore them.</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientId'</span>] <span class="ruby-keyword kw">and</span>
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientId'</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'@'</span>)
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>] = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientId'</span>]
- <span class="ruby-keyword kw">end</span>
-
- <span class="ruby-comment cmt"># Normalize 'token' to 'developerToken'</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'developerToken'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'token'</span>]
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'developerToken'</span>] = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'token'</span>]
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'token'</span>)
- <span class="ruby-keyword kw">end</span>
-
- <span class="ruby-comment cmt"># Set environment</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">credentials</span>[<span class="ruby-value str">'environment'</span>].<span class="ruby-identifier">nil?</span>
- <span class="ruby-comment cmt"># Get default environment</span>
- <span class="ruby-ivar">@environment</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_default_environment</span>
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span>(<span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_environments</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">credentials</span>[<span class="ruby-value str">'environment'</span>]))
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>,
- <span class="ruby-node">&quot;Unknown environment: #{credentials['environment']}&quot;</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-ivar">@environment</span> = <span class="ruby-identifier">credentials</span>[<span class="ruby-value str">'environment'</span>]
- <span class="ruby-keyword kw">end</span>
-
- <span class="ruby-comment cmt"># Fix potential problems with changing clientEmail, by forcing it to be</span>
- <span class="ruby-comment cmt"># created</span>
- <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>] = <span class="ruby-value str">''</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>].<span class="ruby-identifier">nil?</span>
-
- <span class="ruby-comment cmt"># Check for environment mismatches.</span>
- <span class="ruby-identifier">validate_headers_for_server</span>
-
- <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
- <span class="ruby-ivar">@handlers</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Pre2009HeaderHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key</span>, <span class="ruby-keyword kw">self</span>)
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-c-new_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 147</span>
+147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">credentials</span>=<span class="ruby-keyword kw">nil</span>)
+148: <span class="ruby-ivar">@credentials</span> = {}
+149: <span class="ruby-ivar">@environment</span> = <span class="ruby-keyword kw">nil</span>
+150: <span class="ruby-ivar">@auth_token</span> = <span class="ruby-keyword kw">nil</span>
+151: <span class="ruby-ivar">@handlers</span> = []
+152: <span class="ruby-ivar">@use_mcc</span> = <span class="ruby-keyword kw">false</span>
+153: <span class="ruby-ivar">@validate_only</span> = <span class="ruby-keyword kw">false</span>
+154: <span class="ruby-identifier">credentials</span> = <span class="ruby-identifier">get_defaults</span>() <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">credentials</span>.<span class="ruby-identifier">nil?</span>
+155: <span class="ruby-identifier">credentials</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
+156: <span class="ruby-comment cmt"># 'environment' shouldn't go in the credentials array, and we'll ignore</span>
+157: <span class="ruby-comment cmt"># 'alternateUrl' to avoid errors on upgraders' apps.</span>
+158: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">key</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^alternateUrl/</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">credentials</span>[<span class="ruby-value str">&quot;environment&quot;</span>].<span class="ruby-identifier">nil?</span>)
+159: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>,
+160: <span class="ruby-value str">&quot;'alternateUrl' is no longer supported. Please consult the &quot;</span> <span class="ruby-operator">+</span>
+161: <span class="ruby-value str">&quot;Readme on how to use 'environment' instead.&quot;</span>
+162: <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">key</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^environment/</span>)
+163: <span class="ruby-ivar">@credentials</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
+164: <span class="ruby-keyword kw">end</span>
+165: <span class="ruby-keyword kw">end</span>
+166:
+167: <span class="ruby-comment cmt"># The user agent header differs in v13 (useragent) and v2009 (userAgent).</span>
+168: <span class="ruby-comment cmt"># Properly populate both values, and use the name of the program ($0) if</span>
+169: <span class="ruby-comment cmt"># nothing is given.</span>
+170: <span class="ruby-identifier">user_agent</span> = <span class="ruby-value str">'adwords4r: %s'</span> <span class="ruby-operator">%</span> (<span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'useragent'</span>] <span class="ruby-operator">||</span>
+171: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'userAgent'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">$0</span>)
+172: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'useragent'</span>] = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'userAgent'</span>] = <span class="ruby-identifier">user_agent</span>
+173:
+174: <span class="ruby-comment cmt"># The properties file may include the clientEmail in a clientId property.</span>
+175: <span class="ruby-comment cmt"># clientId might be a clientCustomerId, though, so check to make sure it</span>
+176: <span class="ruby-comment cmt"># is an email address before assigning it to clientEmail.</span>
+177: <span class="ruby-comment cmt"># clientCustomerIds don't seem to be supported elsewhere in this client</span>
+178: <span class="ruby-comment cmt"># library, so ignore them.</span>
+179: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientId'</span>] <span class="ruby-keyword kw">and</span>
+180: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientId'</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'@'</span>)
+181: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>] = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientId'</span>]
+182: <span class="ruby-keyword kw">end</span>
+183:
+184: <span class="ruby-comment cmt"># Normalize 'token' to 'developerToken'</span>
+185: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'developerToken'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'token'</span>]
+186: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'developerToken'</span>] = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'token'</span>]
+187: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'token'</span>)
+188: <span class="ruby-keyword kw">end</span>
+189:
+190: <span class="ruby-comment cmt"># Set environment</span>
+191: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">credentials</span>[<span class="ruby-value str">'environment'</span>].<span class="ruby-identifier">nil?</span>
+192: <span class="ruby-comment cmt"># Get default environment</span>
+193: <span class="ruby-ivar">@environment</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_default_environment</span>
+194: <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span>(<span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_environments</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">credentials</span>[<span class="ruby-value str">'environment'</span>]))
+195: <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>,
+196: <span class="ruby-node">&quot;Unknown environment: #{credentials['environment']}&quot;</span>
+197: <span class="ruby-keyword kw">else</span>
+198: <span class="ruby-ivar">@environment</span> = <span class="ruby-identifier">credentials</span>[<span class="ruby-value str">'environment'</span>]
+199: <span class="ruby-keyword kw">end</span>
+200:
+201: <span class="ruby-comment cmt"># Fix potential problems with changing clientEmail, by forcing it to be</span>
+202: <span class="ruby-comment cmt"># created</span>
+203: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>] = <span class="ruby-value str">''</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>].<span class="ruby-identifier">nil?</span>
+204:
+205: <span class="ruby-comment cmt"># Check for environment mismatches.</span>
+206: <span class="ruby-identifier">validate_headers_for_server</span>
+207:
+208: <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
+209: <span class="ruby-ivar">@handlers</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Pre2009HeaderHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key</span>, <span class="ruby-keyword kw">self</span>)
+210: <span class="ruby-keyword kw">end</span>
+211: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -287,9 +287,9 @@
<div class="sectiontitle">Instance Public methods</div>
<div class="method">
- <div class="title" id="M000018">
+ <div class="title" id="method-i-auth_token">
- <a name="M000018"></a><b>auth_token</b>()
+ <a name="method-i-auth_token"></a><b>auth_token</b>()
</div>
@@ -309,24 +309,24 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-auth_token_source')" id="l_method-i-auth_token_source">show</a>
</p>
- <div id="M000018_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 265</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">auth_token</span>
- <span class="ruby-identifier">generate_auth_token</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@auth_token</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@auth_token</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-auth_token_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 265</span>
+265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">auth_token</span>
+266: <span class="ruby-identifier">generate_auth_token</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@auth_token</span>.<span class="ruby-identifier">nil?</span>
+267: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@auth_token</span>
+268: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000016">
+ <div class="title" id="method-i-client_customer_id">
- <a name="M000016"></a><b>client_customer_id</b>()
+ <a name="method-i-client_customer_id"></a><b>client_customer_id</b>()
</div>
@@ -348,27 +348,27 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-client_customer_id_source')" id="l_method-i-client_customer_id_source">show</a>
</p>
- <div id="M000016_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 233</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_customer_id</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@use_mcc</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientCustomerId'</span>]
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-client_customer_id_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 233</span>
+233: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_customer_id</span>
+234: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@use_mcc</span>
+235: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span>
+236: <span class="ruby-keyword kw">else</span>
+237: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientCustomerId'</span>]
+238: <span class="ruby-keyword kw">end</span>
+239: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000015">
+ <div class="title" id="method-i-client_email">
- <a name="M000015"></a><b>client_email</b>()
+ <a name="method-i-client_email"></a><b>client_email</b>()
</div>
@@ -390,27 +390,27 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-client_email_source')" id="l_method-i-client_email_source">show</a>
</p>
- <div id="M000015_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 219</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_email</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@use_mcc</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>]
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-client_email_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 219</span>
+219: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_email</span>
+220: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@use_mcc</span>
+221: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span>
+222: <span class="ruby-keyword kw">else</span>
+223: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'clientEmail'</span>]
+224: <span class="ruby-keyword kw">end</span>
+225: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000022">
+ <div class="title" id="method-i-dup">
- <a name="M000022"></a><b>dup</b>()
+ <a name="method-i-dup"></a><b>dup</b>()
</div>
@@ -432,27 +432,27 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-dup_source')" id="l_method-i-dup_source">show</a>
</p>
- <div id="M000022_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 320</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
- <span class="ruby-identifier">creds</span> = <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">dup</span>
- <span class="ruby-comment cmt"># Remove the prepended 'adwords4r: ' string before creating the duplicate</span>
- <span class="ruby-identifier">creds</span>[<span class="ruby-value str">'userAgent'</span>][<span class="ruby-value str">'adwords4r: '</span>] = <span class="ruby-value str">''</span>
- <span class="ruby-identifier">creds</span>[<span class="ruby-value str">'environment'</span>] = <span class="ruby-ivar">@environment</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@environment</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWordsCredentials</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">creds</span>)
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-dup_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 320</span>
+320: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
+321: <span class="ruby-identifier">creds</span> = <span class="ruby-ivar">@credentials</span>.<span class="ruby-identifier">dup</span>
+322: <span class="ruby-comment cmt"># Remove the prepended 'adwords4r: ' string before creating the duplicate</span>
+323: <span class="ruby-identifier">creds</span>[<span class="ruby-value str">'userAgent'</span>][<span class="ruby-value str">'adwords4r: '</span>] = <span class="ruby-value str">''</span>
+324: <span class="ruby-identifier">creds</span>[<span class="ruby-value str">'environment'</span>] = <span class="ruby-ivar">@environment</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@environment</span>.<span class="ruby-identifier">nil?</span>
+325: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWordsCredentials</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">creds</span>)
+326: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
<div class="method">
- <div class="title" id="M000019">
+ <div class="title" id="method-i-generate_auth_token">
- <a name="M000019"></a><b>generate_auth_token</b>()
+ <a name="method-i-generate_auth_token"></a><b>generate_auth_token</b>()
</div>
@@ -474,38 +474,38 @@
<div class="sourcecode">
<p class="source-link">
- Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
+ Source: <a href="javascript:toggleSource('method-i-generate_auth_token_source')" id="l_method-i-generate_auth_token_source">show</a>
</p>
- <div id="M000019_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 278</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_auth_token</span>
- <span class="ruby-identifier">email</span> = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'email'</span>]
- <span class="ruby-identifier">password</span> = <span class="ruby-ivar">@credentials</span>[<span class="ruby-value str">'password'</span>]
-
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">email</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">AuthError</span>,
- <span class="ruby-value str">'Email address not included in credentials.'</span>
- <span class="ruby-keyword kw">end</span>
-
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">password</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-constant">AuthError</span>, <span class="ruby-value str">'Password not included in credentials.'</span>
- <span class="ruby-keyword kw">end</span>
-
- <span class="ruby-identifier">hostname</span>, <span class="ruby-identifier">port</span>, <span class="ruby-identifier">use_ssl</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">get_auth_server</span>(<span class="ruby-ivar">@environment</span>)
- <span class="ruby-ivar">@auth_token</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">AuthToken</span><span class="ruby-operator">::</span><span class="ruby-identifier">get_token</span>(<span class="ruby-identifier">email</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">hostname</span>,
- <span class="ruby-identifier">port</span>, <span class="ruby-identifier">use_ssl</span>)
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@auth_token</span>
- <span class="ruby-keyword kw">end</span></pre>
+ <div id="method-i-generate_auth_token_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/adwords4r/credentials.rb, line 278</span>
+278: <