oats 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +15 -0
  3. data/README.txt +165 -0
  4. data/Rakefile +2 -0
  5. data/bin/agent +204 -0
  6. data/bin/oats +10 -0
  7. data/bin/occ +29 -0
  8. data/bin/results_cleanup +6 -0
  9. data/doc/COPYING +55 -0
  10. data/doc/LICENSE +55 -0
  11. data/doc/OATS_Framework.doc +0 -0
  12. data/doc/classes/ApplicationLogs.html +239 -0
  13. data/doc/classes/Campaign.html +843 -0
  14. data/doc/classes/CommandlineOptions.html +131 -0
  15. data/doc/classes/Driver.html +182 -0
  16. data/doc/classes/Hash.html +137 -0
  17. data/doc/classes/Ide.html +194 -0
  18. data/doc/classes/MapSelenium.html +197 -0
  19. data/doc/classes/Net.html +107 -0
  20. data/doc/classes/Oats/OatsFilterError.html +119 -0
  21. data/doc/classes/Oats.html +998 -0
  22. data/doc/classes/OatsAssertError.html +119 -0
  23. data/doc/classes/OatsBadInput.html +119 -0
  24. data/doc/classes/OatsData.html +290 -0
  25. data/doc/classes/OatsError.html +117 -0
  26. data/doc/classes/OatsExit.html +117 -0
  27. data/doc/classes/OatsLock.html +254 -0
  28. data/doc/classes/OatsMain.html +182 -0
  29. data/doc/classes/OatsMysqlError.html +113 -0
  30. data/doc/classes/OatsMysqlMissingInput.html +113 -0
  31. data/doc/classes/OatsReportError.html +113 -0
  32. data/doc/classes/OatsSetupError.html +119 -0
  33. data/doc/classes/OatsTestError.html +119 -0
  34. data/doc/classes/OatsTestExit.html +119 -0
  35. data/doc/classes/OatsTestLocateError.html +120 -0
  36. data/doc/classes/OatsVerifyError.html +119 -0
  37. data/doc/classes/Ragent.html +397 -0
  38. data/doc/classes/Rclient.html +236 -0
  39. data/doc/classes/Report.html +368 -0
  40. data/doc/classes/Reports.html +244 -0
  41. data/doc/classes/RestApi.html +333 -0
  42. data/doc/classes/RhttpClient.html +236 -0
  43. data/doc/classes/Rimap.html +170 -0
  44. data/doc/classes/Rmysql.html +176 -0
  45. data/doc/classes/Roptions.html +131 -0
  46. data/doc/classes/Rselenium.html +233 -0
  47. data/doc/classes/Rssh.html +138 -0
  48. data/doc/classes/Runnable.html +174 -0
  49. data/doc/classes/SFTriggers.html +206 -0
  50. data/doc/classes/Selenium/Client/Driver.html +211 -0
  51. data/doc/classes/Selenium/Client.html +107 -0
  52. data/doc/classes/Selenium.html +107 -0
  53. data/doc/classes/SystemCapture.html +304 -0
  54. data/doc/classes/TestCase.html +418 -0
  55. data/doc/classes/TestData.html +235 -0
  56. data/doc/classes/TestList.html +264 -0
  57. data/doc/classes/Tools.html +244 -0
  58. data/doc/classes/Util.html +201 -0
  59. data/doc/classes/Variation.html +206 -0
  60. data/doc/fr_class_index.html +92 -0
  61. data/doc/fr_method_index.html +465 -0
  62. data/doc/index.html +23 -0
  63. data/doc/oats_httpd.conf +32 -0
  64. data/doc/oats_user.yml +25 -0
  65. data/doc/rdoc-style.css +208 -0
  66. data/lib/deep_merge/.gitignore +2 -0
  67. data/lib/deep_merge/core.rb +195 -0
  68. data/lib/deep_merge/deep_merge.rb +1 -0
  69. data/lib/deep_merge/deep_merge_hash.rb +28 -0
  70. data/lib/deep_merge/rails_compat.rb +27 -0
  71. data/lib/oats/application_logs.rb +163 -0
  72. data/lib/oats/build_id.rb +58 -0
  73. data/lib/oats/commandline_options.rb +128 -0
  74. data/lib/oats/diff.rb +278 -0
  75. data/lib/oats/driver.rb +492 -0
  76. data/lib/oats/ide.rb +227 -0
  77. data/lib/oats/keywords.rb +67 -0
  78. data/lib/oats/log4r_init.rb +14 -0
  79. data/lib/oats/mysql.rb +97 -0
  80. data/lib/oats/oats.rb +637 -0
  81. data/lib/oats/oats_data.rb +400 -0
  82. data/lib/oats/oats_exceptions.rb +25 -0
  83. data/lib/oats/oats_lock.rb +261 -0
  84. data/lib/oats/oats_selenium_api.rb +639 -0
  85. data/lib/oats/oselenium.rb +189 -0
  86. data/lib/oats/ossh.rb +36 -0
  87. data/lib/oats/patches_for_eventmachine_12.10.rb +66 -0
  88. data/lib/oats/ragent.rb +321 -0
  89. data/lib/oats/rclient.rb +42 -0
  90. data/lib/oats/report.rb +207 -0
  91. data/lib/oats/roptions.rb +88 -0
  92. data/lib/oats/test_case.rb +510 -0
  93. data/lib/oats/test_data.rb +98 -0
  94. data/lib/oats/test_list.rb +141 -0
  95. data/lib/oats/unixdiff.rb +75 -0
  96. data/lib/oats/util.rb +125 -0
  97. data/lib/oats/version.rb +3 -0
  98. data/lib/oats.rb +36 -0
  99. data/nbproject/configs/agent.properties +0 -0
  100. data/nbproject/configs/gr.properties +0 -0
  101. data/nbproject/project.properties +10 -0
  102. data/nbproject/project.xml +17 -0
  103. data/oats.gemspec +42 -0
  104. data/oats_ini.yml +258 -0
  105. data/oats_tests/Gemfile +18 -0
  106. data/oats_tests/aut_ini.yml +30 -0
  107. data/oats_tests/bin/oats +8 -0
  108. data/oats_tests/environments/qa.yml +4 -0
  109. data/oats_tests/environments/qa_chrome.yml +4 -0
  110. data/oats_tests/examples/core/coreExamples.yml +8 -0
  111. data/oats_tests/examples/core/expectedException.rb +39 -0
  112. data/oats_tests/examples/core/ok_verify.rb +2 -0
  113. data/oats_tests/examples/core/ok_verify.rb_ok/out/myfile.txt +1 -0
  114. data/oats_tests/examples/core/ok_verify.rb_ok/out/myfile2.txt +1 -0
  115. data/oats_tests/examples/core/ok_verify.rb_ok/rats_test.log +2 -0
  116. data/oats_tests/examples/core/unexpectedException.rb +30 -0
  117. data/oats_tests/examples/examples.yml +13 -0
  118. data/oats_tests/examples/gui/guiExamples.yml +7 -0
  119. data/oats_tests/examples/gui/seleniumGoogle.rb +10 -0
  120. data/oats_tests/examples/gui/webdriverGoogle.rb +9 -0
  121. data/oats_tests/examples/keywords/SampleXlList-1.xls +0 -0
  122. data/oats_tests/examples/keywords/SampleXlList-2.xls +0 -0
  123. data/oats_tests/examples/keywords/SampleXlLists.xls +0 -0
  124. data/oats_tests/examples/keywords/keywordsDriver.rb +1 -0
  125. data/oats_tests/examples/keywords/keywordsExamples.yml +8 -0
  126. data/oats_tests/examples/keywords/keywordsTC1.yml +5 -0
  127. data/oats_tests/examples/keywords/keywordsTestlist.yml +16 -0
  128. data/oats_tests/examples/needsWork/addTestDynamically.rb +4 -0
  129. data/oats_tests/examples/needsWork/emailVerify.rb +34 -0
  130. data/oats_tests/examples/needsWork/testSql/rtest.sql +6 -0
  131. data/oats_tests/examples/needsWork/testSql/rtest.yml +11 -0
  132. data/oats_tests/examples/occTest/occTest.rb +13 -0
  133. data/oats_tests/examples/occTest/occTest_1.rb +1 -0
  134. data/oats_tests/examples/occTest/occTest_1_1.rb +1 -0
  135. data/oats_tests/examples/occTest/occTest_1_2.rb +1 -0
  136. data/oats_tests/examples/occTest/occTest_1_3.rb +1 -0
  137. data/oats_tests/examples/occTest/occTest_1_4.rb +1 -0
  138. data/oats_tests/examples/occTest/occTest_2.rb +1 -0
  139. data/oats_tests/examples/occTest/occTest_2_1.rb +1 -0
  140. data/oats_tests/examples/occTest/occTest_2_2.rb +1 -0
  141. data/oats_tests/examples/occTest/occTest_2_3.rb +1 -0
  142. data/oats_tests/examples/occTest/occTest_2_4.rb +1 -0
  143. data/oats_tests/examples/occTest/occTest_3.rb +1 -0
  144. data/oats_tests/examples/occTest/occTest_3_1.rb +1 -0
  145. data/oats_tests/examples/occTest/occTest_3_2.rb +1 -0
  146. data/oats_tests/examples/occTest/occTest_3_3.rb +1 -0
  147. data/oats_tests/examples/occTest/occTest_3_4.rb +1 -0
  148. data/oats_tests/examples/occTest/occTest_4.rb +1 -0
  149. data/oats_tests/examples/occTest/occTestlist.yml +9 -0
  150. data/oats_tests/examples/occTest/occTestlist_1.yml +9 -0
  151. data/oats_tests/examples/occTest/occTestlist_2.yml +9 -0
  152. data/oats_tests/examples/occTest/occTestlist_3.yml +9 -0
  153. data/oats_tests/examples/occTest/variation1.yml +4 -0
  154. data/oats_tests/examples/occTest/variation2.yml +4 -0
  155. data/oats_tests/examples/testFileLocationUnitTests/extn_driver.rb +4 -0
  156. data/oats_tests/examples/testFileLocationUnitTests/folder/oats.yml +3 -0
  157. data/oats_tests/examples/testFileLocationUnitTests/folder/t1.rb +2 -0
  158. data/oats_tests/examples/testFileLocationUnitTests/folder1/t1.yml +2 -0
  159. data/oats_tests/examples/testFileLocationUnitTests/folder1/t1_1.yml +3 -0
  160. data/oats_tests/examples/testFileLocationUnitTests/folder2/oats.yml +3 -0
  161. data/oats_tests/examples/testFileLocationUnitTests/folder2/t1.rb +2 -0
  162. data/oats_tests/examples/testFileLocationUnitTests/folder2/t1.yml +2 -0
  163. data/oats_tests/examples/testFileLocationUnitTests/no_yaml.rb +3 -0
  164. data/oats_tests/examples/testFileLocationUnitTests/post_yaml.rb +1 -0
  165. data/oats_tests/examples/testFileLocationUnitTests/t1.rb +4 -0
  166. data/oats_tests/examples/testFileLocationUnitTests/t1.yml +2 -0
  167. data/oats_tests/examples/testFileLocationUnitTests/t1_1.yml +3 -0
  168. data/oats_tests/examples/testFileLocationUnitTests/testDir/oats.yml +3 -0
  169. data/oats_tests/examples/testFileLocationUnitTests/testDir/t1.rb +2 -0
  170. data/oats_tests/examples/testFileLocationUnitTests/testDir/t1.yml +2 -0
  171. data/oats_tests/examples/testFileLocationUnitTests/testDir2/t1.rb +2 -0
  172. data/oats_tests/examples/testFileLocationUnitTests/testDir2/t1.yml +2 -0
  173. data/oats_tests/examples/testFileLocationUnitTests/unitTestList.yml +36 -0
  174. data/oats_tests/examples/testFileLocationUnitTests/yml_driver.rb +2 -0
  175. data/oats_tests/lib/business.rb +28 -0
  176. data/oats_tests/lib/sample_xl_lists.rb +37 -0
  177. data/test/common_test_unit_setup.rb +21 -0
  178. data/test/test_basic.rb +16 -0
  179. data/test/test_selenium.rb +16 -0
  180. data/test/test_xl_lists.rb +16 -0
  181. metadata +291 -0
@@ -0,0 +1,843 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Campaign</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Campaign</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/tests/lib/campaign_rb.html">
59
+ tests/lib/campaign.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000213">add_adgroup</a>&nbsp;&nbsp;
90
+ <a href="#M000190">add_new</a>&nbsp;&nbsp;
91
+ <a href="#M000212">adgroup</a>&nbsp;&nbsp;
92
+ <a href="#M000199">ads</a>&nbsp;&nbsp;
93
+ <a href="#M000185">advertiser</a>&nbsp;&nbsp;
94
+ <a href="#M000206">approve_ads</a>&nbsp;&nbsp;
95
+ <a href="#M000210">approve_email</a>&nbsp;&nbsp;
96
+ <a href="#M000207">approve_keywords</a>&nbsp;&nbsp;
97
+ <a href="#M000208">approve_page</a>&nbsp;&nbsp;
98
+ <a href="#M000209">approve_phone</a>&nbsp;&nbsp;
99
+ <a href="#M000180">bu</a>&nbsp;&nbsp;
100
+ <a href="#M000189">cid</a>&nbsp;&nbsp;
101
+ <a href="#M000198">complete</a>&nbsp;&nbsp;
102
+ <a href="#M000202">create_ads_by_publisher</a>&nbsp;&nbsp;
103
+ <a href="#M000204">create_my_ads</a>&nbsp;&nbsp;
104
+ <a href="#M000205">create_my_ads</a>&nbsp;&nbsp;
105
+ <a href="#M000176">current</a>&nbsp;&nbsp;
106
+ <a href="#M000177">current=</a>&nbsp;&nbsp;
107
+ <a href="#M000187">delete</a>&nbsp;&nbsp;
108
+ <a href="#M000188">finish</a>&nbsp;&nbsp;
109
+ <a href="#M000182">first</a>&nbsp;&nbsp;
110
+ <a href="#M000184">is_admin?</a>&nbsp;&nbsp;
111
+ <a href="#M000183">last</a>&nbsp;&nbsp;
112
+ <a href="#M000201">master_ad</a>&nbsp;&nbsp;
113
+ <a href="#M000186">name</a>&nbsp;&nbsp;
114
+ <a href="#M000178">new</a>&nbsp;&nbsp;
115
+ <a href="#M000181">password</a>&nbsp;&nbsp;
116
+ <a href="#M000196">payment</a>&nbsp;&nbsp;
117
+ <a href="#M000197">receipt</a>&nbsp;&nbsp;
118
+ <a href="#M000200">review</a>&nbsp;&nbsp;
119
+ <a href="#M000195">shopping_cart</a>&nbsp;&nbsp;
120
+ <a href="#M000191">step2</a>&nbsp;&nbsp;
121
+ <a href="#M000192">step4</a>&nbsp;&nbsp;
122
+ <a href="#M000193">step5</a>&nbsp;&nbsp;
123
+ <a href="#M000194">step6</a>&nbsp;&nbsp;
124
+ <a href="#M000179">to_s</a>&nbsp;&nbsp;
125
+ <a href="#M000203">upload_image</a>&nbsp;&nbsp;
126
+ <a href="#M000211">wpc_setup</a>&nbsp;&nbsp;
127
+ </div>
128
+ </div>
129
+
130
+ </div>
131
+
132
+
133
+ <!-- if includes -->
134
+
135
+ <div id="section">
136
+
137
+
138
+
139
+
140
+
141
+ <div id="attribute-list">
142
+ <h3 class="section-bar">Attributes</h3>
143
+
144
+ <div class="name-list">
145
+ <table>
146
+ <tr class="top-aligned-row context-row">
147
+ <td class="context-item-name">ag_current</td>
148
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
149
+ <td class="context-item-desc"></td>
150
+ </tr>
151
+ <tr class="top-aligned-row context-row">
152
+ <td class="context-item-name">cid</td>
153
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
154
+ <td class="context-item-desc"></td>
155
+ </tr>
156
+ <tr class="top-aligned-row context-row">
157
+ <td class="context-item-name">offer</td>
158
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
159
+ <td class="context-item-desc"></td>
160
+ </tr>
161
+ <tr class="top-aligned-row context-row">
162
+ <td class="context-item-name">type</td>
163
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
164
+ <td class="context-item-desc"></td>
165
+ </tr>
166
+ </table>
167
+ </div>
168
+ </div>
169
+
170
+
171
+
172
+ <!-- if method_list -->
173
+ <div id="methods">
174
+ <h3 class="section-bar">Public Class methods</h3>
175
+
176
+ <div id="method-M000190" class="method-detail">
177
+ <a name="M000190"></a>
178
+
179
+ <div class="method-heading">
180
+ <a href="Campaign.src/M000190.html" target="Code" class="method-signature"
181
+ onclick="popupCode('Campaign.src/M000190.html');return false;">
182
+ <span class="method-name">add_new</span><span class="method-args">(*args)</span>
183
+ </a>
184
+ </div>
185
+
186
+ <div class="method-description">
187
+ <p>
188
+ Returns a campaign obj at the <a href="Campaign.html#M000199">ads</a> page
189
+ (step 1)
190
+ </p>
191
+ <p>
192
+ <a href="Oats.html#M000320">Oats.data</a>[&#8216;<a
193
+ href="Campaign.html">Campaign</a>&#8217;][&#8216;reuse&#8217;] will supply
194
+ <a href="Campaign.html#M000176">Campaign.current</a> if exists
195
+ </p>
196
+ <p>
197
+ Parameters: Supplied in this order, or as a Hash
198
+ </p>
199
+ <pre>
200
+ type:: :search, :display, or :offer
201
+ oid:: offer id (when type = offer)
202
+ </pre>
203
+ <p>
204
+ Examples:
205
+ </p>
206
+ <pre>
207
+ Campaign.add_new(:type =&gt; 'search', :product_name =&gt; 'test', :advertiser =&gt; 'test')
208
+ Campaign.add_new(:display)
209
+ Campaign.add_new(:offer, 12345)
210
+ </pre>
211
+ </div>
212
+ </div>
213
+
214
+ <div id="method-M000212" class="method-detail">
215
+ <a name="M000212"></a>
216
+
217
+ <div class="method-heading">
218
+ <a href="Campaign.src/M000212.html" target="Code" class="method-signature"
219
+ onclick="popupCode('Campaign.src/M000212.html');return false;">
220
+ <span class="method-name">adgroup</span><span class="method-args">()</span>
221
+ </a>
222
+ </div>
223
+
224
+ <div class="method-description">
225
+ </div>
226
+ </div>
227
+
228
+ <div id="method-M000205" class="method-detail">
229
+ <a name="M000205"></a>
230
+
231
+ <div class="method-heading">
232
+ <a href="Campaign.src/M000205.html" target="Code" class="method-signature"
233
+ onclick="popupCode('Campaign.src/M000205.html');return false;">
234
+ <span class="method-name">create_my_ads</span><span class="method-args">(operation)</span>
235
+ </a>
236
+ </div>
237
+
238
+ <div class="method-description">
239
+ </div>
240
+ </div>
241
+
242
+ <div id="method-M000176" class="method-detail">
243
+ <a name="M000176"></a>
244
+
245
+ <div class="method-heading">
246
+ <a href="Campaign.src/M000176.html" target="Code" class="method-signature"
247
+ onclick="popupCode('Campaign.src/M000176.html');return false;">
248
+ <span class="method-name">current</span><span class="method-args">()</span>
249
+ </a>
250
+ </div>
251
+
252
+ <div class="method-description">
253
+ <p>
254
+ Returns a campaign for Campaign.reuse or <a
255
+ href="Campaign.html#M000176">current</a> if there is any
256
+ </p>
257
+ </div>
258
+ </div>
259
+
260
+ <div id="method-M000177" class="method-detail">
261
+ <a name="M000177"></a>
262
+
263
+ <div class="method-heading">
264
+ <a href="Campaign.src/M000177.html" target="Code" class="method-signature"
265
+ onclick="popupCode('Campaign.src/M000177.html');return false;">
266
+ <span class="method-name">current=</span><span class="method-args">(campaign)</span>
267
+ </a>
268
+ </div>
269
+
270
+ <div class="method-description">
271
+ </div>
272
+ </div>
273
+
274
+ <div id="method-M000178" class="method-detail">
275
+ <a name="M000178"></a>
276
+
277
+ <div class="method-heading">
278
+ <a href="Campaign.src/M000178.html" target="Code" class="method-signature"
279
+ onclick="popupCode('Campaign.src/M000178.html');return false;">
280
+ <span class="method-name">new</span><span class="method-args">(*args)</span>
281
+ </a>
282
+ </div>
283
+
284
+ <div class="method-description">
285
+ <p>
286
+ Initialize <a href="Campaign.html">Campaign</a> class
287
+ </p>
288
+ <p>
289
+ Parameters: Supplied in this order, or as a Hash
290
+ </p>
291
+ <pre>
292
+ cid:: campaign id
293
+ type:: :search, :display, or :offer
294
+ oid:: offer id (when type = offer)
295
+ </pre>
296
+ <p>
297
+ Examples:
298
+ </p>
299
+ <pre>
300
+ Campaign.new(:cid =&gt; '12345', :type =&gt; 'search')
301
+ Campaign.new(12345)
302
+ Campaign.new(12345, :display)
303
+ Campaign.new(:offer, 12345)
304
+ </pre>
305
+ </div>
306
+ </div>
307
+
308
+ <h3 class="section-bar">Public Instance methods</h3>
309
+
310
+ <div id="method-M000213" class="method-detail">
311
+ <a name="M000213"></a>
312
+
313
+ <div class="method-heading">
314
+ <a href="Campaign.src/M000213.html" target="Code" class="method-signature"
315
+ onclick="popupCode('Campaign.src/M000213.html');return false;">
316
+ <span class="method-name">add_adgroup</span><span class="method-args">(input_ad_group_name)</span>
317
+ </a>
318
+ </div>
319
+
320
+ <div class="method-description">
321
+ </div>
322
+ </div>
323
+
324
+ <div id="method-M000199" class="method-detail">
325
+ <a name="M000199"></a>
326
+
327
+ <div class="method-heading">
328
+ <a href="Campaign.src/M000199.html" target="Code" class="method-signature"
329
+ onclick="popupCode('Campaign.src/M000199.html');return false;">
330
+ <span class="method-name">ads</span><span class="method-args">(is_admin_mode = nil)</span>
331
+ </a>
332
+ </div>
333
+
334
+ <div class="method-description">
335
+ <p>
336
+ Open register/ads page of a campaign for Agency or Admin
337
+ </p>
338
+ </div>
339
+ </div>
340
+
341
+ <div id="method-M000185" class="method-detail">
342
+ <a name="M000185"></a>
343
+
344
+ <div class="method-heading">
345
+ <a href="Campaign.src/M000185.html" target="Code" class="method-signature"
346
+ onclick="popupCode('Campaign.src/M000185.html');return false;">
347
+ <span class="method-name">advertiser</span><span class="method-args">()</span>
348
+ </a>
349
+ </div>
350
+
351
+ <div class="method-description">
352
+ </div>
353
+ </div>
354
+
355
+ <div id="method-M000206" class="method-detail">
356
+ <a name="M000206"></a>
357
+
358
+ <div class="method-heading">
359
+ <a href="Campaign.src/M000206.html" target="Code" class="method-signature"
360
+ onclick="popupCode('Campaign.src/M000206.html');return false;">
361
+ <span class="method-name">approve_ads</span><span class="method-args">(operation = &quot;Approve&quot;)</span>
362
+ </a>
363
+ </div>
364
+
365
+ <div class="method-description">
366
+ </div>
367
+ </div>
368
+
369
+ <div id="method-M000210" class="method-detail">
370
+ <a name="M000210"></a>
371
+
372
+ <div class="method-heading">
373
+ <a href="Campaign.src/M000210.html" target="Code" class="method-signature"
374
+ onclick="popupCode('Campaign.src/M000210.html');return false;">
375
+ <span class="method-name">approve_email</span><span class="method-args">(actions)</span>
376
+ </a>
377
+ </div>
378
+
379
+ <div class="method-description">
380
+ <p>
381
+ Apply actions to Admin Email page
382
+ </p>
383
+ <pre>
384
+ action(s):: Comma separated list of actions, applied sequentially
385
+ </pre>
386
+ </div>
387
+ </div>
388
+
389
+ <div id="method-M000207" class="method-detail">
390
+ <a name="M000207"></a>
391
+
392
+ <div class="method-heading">
393
+ <a href="Campaign.src/M000207.html" target="Code" class="method-signature"
394
+ onclick="popupCode('Campaign.src/M000207.html');return false;">
395
+ <span class="method-name">approve_keywords</span><span class="method-args">(action = &quot;Approve&quot;)</span>
396
+ </a>
397
+ </div>
398
+
399
+ <div class="method-description">
400
+ <p>
401
+ Apply actions to Admin Phone page
402
+ </p>
403
+ <pre>
404
+ action(s):: Comma separated list of actions, applied sequentially
405
+ </pre>
406
+ </div>
407
+ </div>
408
+
409
+ <div id="method-M000208" class="method-detail">
410
+ <a name="M000208"></a>
411
+
412
+ <div class="method-heading">
413
+ <a href="Campaign.src/M000208.html" target="Code" class="method-signature"
414
+ onclick="popupCode('Campaign.src/M000208.html');return false;">
415
+ <span class="method-name">approve_page</span><span class="method-args">(actions)</span>
416
+ </a>
417
+ </div>
418
+
419
+ <div class="method-description">
420
+ <p>
421
+ Apply actions to Admin Page
422
+ </p>
423
+ <pre>
424
+ action(s):: Comma separated list of actions, applied sequentially
425
+ </pre>
426
+ </div>
427
+ </div>
428
+
429
+ <div id="method-M000209" class="method-detail">
430
+ <a name="M000209"></a>
431
+
432
+ <div class="method-heading">
433
+ <a href="Campaign.src/M000209.html" target="Code" class="method-signature"
434
+ onclick="popupCode('Campaign.src/M000209.html');return false;">
435
+ <span class="method-name">approve_phone</span><span class="method-args">(actions)</span>
436
+ </a>
437
+ </div>
438
+
439
+ <div class="method-description">
440
+ <p>
441
+ Apply actions to Admin Email page
442
+ </p>
443
+ <pre>
444
+ action(s):: Comma separated list of actions, applied sequentially
445
+ </pre>
446
+ </div>
447
+ </div>
448
+
449
+ <div id="method-M000180" class="method-detail">
450
+ <a name="M000180"></a>
451
+
452
+ <div class="method-heading">
453
+ <a href="Campaign.src/M000180.html" target="Code" class="method-signature"
454
+ onclick="popupCode('Campaign.src/M000180.html');return false;">
455
+ <span class="method-name">bu</span><span class="method-args">()</span>
456
+ </a>
457
+ </div>
458
+
459
+ <div class="method-description">
460
+ </div>
461
+ </div>
462
+
463
+ <div id="method-M000189" class="method-detail">
464
+ <a name="M000189"></a>
465
+
466
+ <div class="method-heading">
467
+ <a href="Campaign.src/M000189.html" target="Code" class="method-signature"
468
+ onclick="popupCode('Campaign.src/M000189.html');return false;">
469
+ <span class="method-name">cid</span><span class="method-args">(do_lookup = false)</span>
470
+ </a>
471
+ </div>
472
+
473
+ <div class="method-description">
474
+ <p>
475
+ Return <a href="Campaign.html#M000176">current</a> CID of campaign or look
476
+ it up in the <a href="Campaign.html#M000176">current</a> URL
477
+ </p>
478
+ </div>
479
+ </div>
480
+
481
+ <div id="method-M000198" class="method-detail">
482
+ <a name="M000198"></a>
483
+
484
+ <div class="method-heading">
485
+ <a href="Campaign.src/M000198.html" target="Code" class="method-signature"
486
+ onclick="popupCode('Campaign.src/M000198.html');return false;">
487
+ <span class="method-name">complete</span><span class="method-args">()</span>
488
+ </a>
489
+ </div>
490
+
491
+ <div class="method-description">
492
+ </div>
493
+ </div>
494
+
495
+ <div id="method-M000202" class="method-detail">
496
+ <a name="M000202"></a>
497
+
498
+ <div class="method-heading">
499
+ <a href="Campaign.src/M000202.html" target="Code" class="method-signature"
500
+ onclick="popupCode('Campaign.src/M000202.html');return false;">
501
+ <span class="method-name">create_ads_by_publisher</span><span class="method-args">(operation, publisher)</span>
502
+ </a>
503
+ </div>
504
+
505
+ <div class="method-description">
506
+ </div>
507
+ </div>
508
+
509
+ <div id="method-M000204" class="method-detail">
510
+ <a name="M000204"></a>
511
+
512
+ <div class="method-heading">
513
+ <a href="Campaign.src/M000204.html" target="Code" class="method-signature"
514
+ onclick="popupCode('Campaign.src/M000204.html');return false;">
515
+ <span class="method-name">create_my_ads</span><span class="method-args">(operation)</span>
516
+ </a>
517
+ </div>
518
+
519
+ <div class="method-description">
520
+ </div>
521
+ </div>
522
+
523
+ <div id="method-M000187" class="method-detail">
524
+ <a name="M000187"></a>
525
+
526
+ <div class="method-heading">
527
+ <a href="Campaign.src/M000187.html" target="Code" class="method-signature"
528
+ onclick="popupCode('Campaign.src/M000187.html');return false;">
529
+ <span class="method-name">delete</span><span class="method-args">()</span>
530
+ </a>
531
+ </div>
532
+
533
+ <div class="method-description">
534
+ </div>
535
+ </div>
536
+
537
+ <div id="method-M000188" class="method-detail">
538
+ <a name="M000188"></a>
539
+
540
+ <div class="method-heading">
541
+ <a href="Campaign.src/M000188.html" target="Code" class="method-signature"
542
+ onclick="popupCode('Campaign.src/M000188.html');return false;">
543
+ <span class="method-name">finish</span><span class="method-args">()</span>
544
+ </a>
545
+ </div>
546
+
547
+ <div class="method-description">
548
+ </div>
549
+ </div>
550
+
551
+ <div id="method-M000182" class="method-detail">
552
+ <a name="M000182"></a>
553
+
554
+ <div class="method-heading">
555
+ <a href="Campaign.src/M000182.html" target="Code" class="method-signature"
556
+ onclick="popupCode('Campaign.src/M000182.html');return false;">
557
+ <span class="method-name">first</span><span class="method-args">()</span>
558
+ </a>
559
+ </div>
560
+
561
+ <div class="method-description">
562
+ </div>
563
+ </div>
564
+
565
+ <div id="method-M000184" class="method-detail">
566
+ <a name="M000184"></a>
567
+
568
+ <div class="method-heading">
569
+ <a href="Campaign.src/M000184.html" target="Code" class="method-signature"
570
+ onclick="popupCode('Campaign.src/M000184.html');return false;">
571
+ <span class="method-name">is_admin?</span><span class="method-args">()</span>
572
+ </a>
573
+ </div>
574
+
575
+ <div class="method-description">
576
+ </div>
577
+ </div>
578
+
579
+ <div id="method-M000183" class="method-detail">
580
+ <a name="M000183"></a>
581
+
582
+ <div class="method-heading">
583
+ <a href="Campaign.src/M000183.html" target="Code" class="method-signature"
584
+ onclick="popupCode('Campaign.src/M000183.html');return false;">
585
+ <span class="method-name">last</span><span class="method-args">()</span>
586
+ </a>
587
+ </div>
588
+
589
+ <div class="method-description">
590
+ </div>
591
+ </div>
592
+
593
+ <div id="method-M000201" class="method-detail">
594
+ <a name="M000201"></a>
595
+
596
+ <div class="method-heading">
597
+ <a href="Campaign.src/M000201.html" target="Code" class="method-signature"
598
+ onclick="popupCode('Campaign.src/M000201.html');return false;">
599
+ <span class="method-name">master_ad</span><span class="method-args">(operation, input_hash = nil)</span>
600
+ </a>
601
+ </div>
602
+
603
+ <div class="method-description">
604
+ </div>
605
+ </div>
606
+
607
+ <div id="method-M000186" class="method-detail">
608
+ <a name="M000186"></a>
609
+
610
+ <div class="method-heading">
611
+ <a href="Campaign.src/M000186.html" target="Code" class="method-signature"
612
+ onclick="popupCode('Campaign.src/M000186.html');return false;">
613
+ <span class="method-name">name</span><span class="method-args">(new = nil)</span>
614
+ </a>
615
+ </div>
616
+
617
+ <div class="method-description">
618
+ </div>
619
+ </div>
620
+
621
+ <div id="method-M000181" class="method-detail">
622
+ <a name="M000181"></a>
623
+
624
+ <div class="method-heading">
625
+ <a href="Campaign.src/M000181.html" target="Code" class="method-signature"
626
+ onclick="popupCode('Campaign.src/M000181.html');return false;">
627
+ <span class="method-name">password</span><span class="method-args">()</span>
628
+ </a>
629
+ </div>
630
+
631
+ <div class="method-description">
632
+ </div>
633
+ </div>
634
+
635
+ <div id="method-M000196" class="method-detail">
636
+ <a name="M000196"></a>
637
+
638
+ <div class="method-heading">
639
+ <a href="Campaign.src/M000196.html" target="Code" class="method-signature"
640
+ onclick="popupCode('Campaign.src/M000196.html');return false;">
641
+ <span class="method-name">payment</span><span class="method-args">(type = :invoice)</span>
642
+ </a>
643
+ </div>
644
+
645
+ <div class="method-description">
646
+ </div>
647
+ </div>
648
+
649
+ <div id="method-M000197" class="method-detail">
650
+ <a name="M000197"></a>
651
+
652
+ <div class="method-heading">
653
+ <a href="Campaign.src/M000197.html" target="Code" class="method-signature"
654
+ onclick="popupCode('Campaign.src/M000197.html');return false;">
655
+ <span class="method-name">receipt</span><span class="method-args">()</span>
656
+ </a>
657
+ </div>
658
+
659
+ <div class="method-description">
660
+ </div>
661
+ </div>
662
+
663
+ <div id="method-M000200" class="method-detail">
664
+ <a name="M000200"></a>
665
+
666
+ <div class="method-heading">
667
+ <a href="Campaign.src/M000200.html" target="Code" class="method-signature"
668
+ onclick="popupCode('Campaign.src/M000200.html');return false;">
669
+ <span class="method-name">review</span><span class="method-args">()</span>
670
+ </a>
671
+ </div>
672
+
673
+ <div class="method-description">
674
+ </div>
675
+ </div>
676
+
677
+ <div id="method-M000195" class="method-detail">
678
+ <a name="M000195"></a>
679
+
680
+ <div class="method-heading">
681
+ <a href="Campaign.src/M000195.html" target="Code" class="method-signature"
682
+ onclick="popupCode('Campaign.src/M000195.html');return false;">
683
+ <span class="method-name">shopping_cart</span><span class="method-args">(cids = nil)</span>
684
+ </a>
685
+ </div>
686
+
687
+ <div class="method-description">
688
+ <p>
689
+ Use cids when multiple campaigns suppose to be picked up
690
+ </p>
691
+ </div>
692
+ </div>
693
+
694
+ <div id="method-M000191" class="method-detail">
695
+ <a name="M000191"></a>
696
+
697
+ <div class="method-heading">
698
+ <a href="Campaign.src/M000191.html" target="Code" class="method-signature"
699
+ onclick="popupCode('Campaign.src/M000191.html');return false;">
700
+ <span class="method-name">step2</span><span class="method-args">()</span>
701
+ </a>
702
+ </div>
703
+
704
+ <div class="method-description">
705
+ </div>
706
+ </div>
707
+
708
+ <div id="method-M000192" class="method-detail">
709
+ <a name="M000192"></a>
710
+
711
+ <div class="method-heading">
712
+ <a href="Campaign.src/M000192.html" target="Code" class="method-signature"
713
+ onclick="popupCode('Campaign.src/M000192.html');return false;">
714
+ <span class="method-name">step4</span><span class="method-args">(option = nil) {|| ...}</span>
715
+ </a>
716
+ </div>
717
+
718
+ <div class="method-description">
719
+ <p>
720
+ Performs <a href="Campaign.html">Campaign</a> step-4 <a
721
+ href="AdGroup.html">AdGroup</a> related operations using the block if given
722
+ option: if &#8216;ba&#8217;, uploads a GIF file for LBAs
723
+ </p>
724
+ <p>
725
+ Example: # Use platform and own text instead of OATS, and add creative.
726
+ </p>
727
+ <pre>
728
+ campaign.step4 do
729
+ Creative.master_ad &quot;save&quot;, {:headline1 =&gt; 'My headline1.' }
730
+ AdGroup.new.add_creative
731
+ </pre>
732
+ <p>
733
+ end
734
+ </p>
735
+ </div>
736
+ </div>
737
+
738
+ <div id="method-M000193" class="method-detail">
739
+ <a name="M000193"></a>
740
+
741
+ <div class="method-heading">
742
+ <a href="Campaign.src/M000193.html" target="Code" class="method-signature"
743
+ onclick="popupCode('Campaign.src/M000193.html');return false;">
744
+ <span class="method-name">step5</span><span class="method-args">()</span>
745
+ </a>
746
+ </div>
747
+
748
+ <div class="method-description">
749
+ </div>
750
+ </div>
751
+
752
+ <div id="method-M000194" class="method-detail">
753
+ <a name="M000194"></a>
754
+
755
+ <div class="method-heading">
756
+ <a href="Campaign.src/M000194.html" target="Code" class="method-signature"
757
+ onclick="popupCode('Campaign.src/M000194.html');return false;">
758
+ <span class="method-name">step6</span><span class="method-args">()</span>
759
+ </a>
760
+ </div>
761
+
762
+ <div class="method-description">
763
+ </div>
764
+ </div>
765
+
766
+ <div id="method-M000179" class="method-detail">
767
+ <a name="M000179"></a>
768
+
769
+ <div class="method-heading">
770
+ <a href="Campaign.src/M000179.html" target="Code" class="method-signature"
771
+ onclick="popupCode('Campaign.src/M000179.html');return false;">
772
+ <span class="method-name">to_s</span><span class="method-args">()</span>
773
+ </a>
774
+ </div>
775
+
776
+ <div class="method-description">
777
+ </div>
778
+ </div>
779
+
780
+ <div id="method-M000203" class="method-detail">
781
+ <a name="M000203"></a>
782
+
783
+ <div class="method-heading">
784
+ <a href="Campaign.src/M000203.html" target="Code" class="method-signature"
785
+ onclick="popupCode('Campaign.src/M000203.html');return false;">
786
+ <span class="method-name">upload_image</span><span class="method-args">(operation, file = nil)</span>
787
+ </a>
788
+ </div>
789
+
790
+ <div class="method-description">
791
+ </div>
792
+ </div>
793
+
794
+ <div id="method-M000211" class="method-detail">
795
+ <a name="M000211"></a>
796
+
797
+ <div class="method-heading">
798
+ <a href="Campaign.src/M000211.html" target="Code" class="method-signature"
799
+ onclick="popupCode('Campaign.src/M000211.html');return false;">
800
+ <span class="method-name">wpc_setup</span><span class="method-args">(actions = 'END', wpc_id_or_names = nil, is_ok_missing_wpc = nil)</span>
801
+ </a>
802
+ </div>
803
+
804
+ <div class="method-description">
805
+ <p>
806
+ Web <a href="Publisher.html">Publisher</a> <a
807
+ href="Campaign.html">Campaign</a> Setup. Returns names (or id) of the acted
808
+ WPCs.
809
+ </p>
810
+ <pre>
811
+ action(s):: (Array of ) action string(s), applied sequentially when the
812
+ action is applicable. Default: END
813
+ wpc_id_or_names:: An integer WPC_ID or (array of) WPC name string(s)
814
+ All names which RegExp match to the input string will be acted on.
815
+ If omitted, setup all existing WPCs.
816
+ If first name is '-', setup all WPCs except for listed ones.
817
+ is_check_wpc_names:: If true, raises error unless input WPCs exist.
818
+ Otherwise ignores WPCs that are not found.
819
+ </pre>
820
+ <p>
821
+ Example:
822
+ </p>
823
+ <pre>
824
+ campaign.wpc_setup(&quot;PROVISION&quot;) # Provision all WPCS that can be provisioned
825
+ campaign.wpc_setup %w[END STOP], &quot;Yahoo Site Submit DMA&quot; # END or STOP Yahoo
826
+ campaign.wpc_setup &quot;PROVISION,AUTO RUN&quot;, &quot;-,Google&quot; # Provision and AutoRun
827
+ </pre>
828
+ </div>
829
+ </div>
830
+
831
+
832
+ </div>
833
+
834
+
835
+ </div>
836
+
837
+
838
+ <div id="validator-badges">
839
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
840
+ </div>
841
+
842
+ </body>
843
+ </html>