| 9064 |
manish.sha |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>Saholic - Google Adwords Management</title>
|
|
|
5 |
<link rel="stylesheet" href="css/jquery-ui.css">
|
|
|
6 |
<link type = "text/css" href = "css/pincode.css" rel = "stylesheet"/>
|
|
|
7 |
<link type = "text/css" href = "css/colorbox.css" rel = "stylesheet"/>
|
|
|
8 |
<link type = "text/css" rel="stylesheet" href="css/jquery-ui.css">
|
|
|
9 |
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
|
|
|
10 |
<script type="text/javascript" src="js/jquery.colorbox-min.js"></script>
|
|
|
11 |
<script type = "text/javascript" src = "js/google-adwords.js"></script>
|
|
|
12 |
<script type = "text/javascript" src = "js/jquery-ui.min.js"></script>
|
|
|
13 |
<script type="text/javascript">
|
|
|
14 |
$(function() {
|
|
|
15 |
$( "#startDate" ).datepicker({
|
|
|
16 |
changeMonth: true,
|
|
|
17 |
changeYear: true,
|
|
|
18 |
minDate: 0,
|
|
|
19 |
yearRange: '2013:2037'
|
|
|
20 |
});
|
|
|
21 |
$( "#endDate" ).datepicker({
|
|
|
22 |
changeMonth: true,
|
|
|
23 |
changeYear: true,
|
|
|
24 |
minDate: 1,
|
|
|
25 |
yearRange: '2013:2037'
|
|
|
26 |
});
|
|
|
27 |
$('#adgroupName').attr({ maxLength : 255 });
|
|
|
28 |
$('#headline').attr({ maxLength : 25 });
|
|
|
29 |
$('#description1').attr({ maxLength : 35 });
|
|
|
30 |
$('#description2').attr({ maxLength : 35 });
|
|
|
31 |
$('#displayUrl').attr({ maxLength : 35 });
|
| 9232 |
manish.sha |
32 |
$('#catalogItemId').keypress(function(e) {
|
|
|
33 |
var a = [];
|
|
|
34 |
var k = e.which;
|
|
|
35 |
|
|
|
36 |
for (i = 48; i < 58; i++){
|
|
|
37 |
{
|
|
|
38 |
a.push(i);
|
|
|
39 |
}
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
if (!(a.indexOf(k)>=0)){
|
|
|
43 |
e.preventDefault();
|
|
|
44 |
}
|
|
|
45 |
});
|
|
|
46 |
$('#catalogItemIdUpdate').keypress(function(e) {
|
|
|
47 |
var a = [];
|
|
|
48 |
var k = e.which;
|
|
|
49 |
|
|
|
50 |
for (i = 48; i < 58; i++){
|
|
|
51 |
{
|
|
|
52 |
a.push(i);
|
|
|
53 |
}
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
if (!(a.indexOf(k)>=0)){
|
|
|
57 |
e.preventDefault();
|
|
|
58 |
}
|
|
|
59 |
});
|
| 9064 |
manish.sha |
60 |
$('#campaignAmount').keypress(function(e) {
|
|
|
61 |
var a = [];
|
|
|
62 |
var k = e.which;
|
|
|
63 |
|
|
|
64 |
for (i = 46; i < 58; i++){
|
|
|
65 |
if(i == 47){
|
|
|
66 |
continue;
|
|
|
67 |
}
|
|
|
68 |
else{
|
|
|
69 |
a.push(i);
|
|
|
70 |
}
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
if (!(a.indexOf(k)>=0)){
|
|
|
74 |
e.preventDefault();
|
|
|
75 |
}
|
|
|
76 |
});
|
|
|
77 |
$('#bidAmount').keypress(function(e) {
|
|
|
78 |
var a = [];
|
|
|
79 |
var k = e.which;
|
|
|
80 |
|
|
|
81 |
for (i = 46; i < 58; i++){
|
|
|
82 |
if(i == 47){
|
|
|
83 |
continue;
|
|
|
84 |
}
|
|
|
85 |
else{
|
|
|
86 |
a.push(i);
|
|
|
87 |
}
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
if (!(a.indexOf(k)>=0)){
|
|
|
91 |
e.preventDefault();
|
|
|
92 |
}
|
|
|
93 |
});
|
|
|
94 |
$('#bid1').keypress(function(e) {
|
|
|
95 |
var a = [];
|
|
|
96 |
var k = e.which;
|
|
|
97 |
|
|
|
98 |
for (i = 46; i < 58; i++){
|
|
|
99 |
if(i == 47){
|
|
|
100 |
continue;
|
|
|
101 |
}
|
|
|
102 |
else{
|
|
|
103 |
a.push(i);
|
|
|
104 |
}
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
if (!(a.indexOf(k)>=0)){
|
|
|
108 |
e.preventDefault();
|
|
|
109 |
}
|
|
|
110 |
});
|
|
|
111 |
$('#bid2').keypress(function(e) {
|
|
|
112 |
var a = [];
|
|
|
113 |
var k = e.which;
|
|
|
114 |
|
|
|
115 |
for (i = 46; i < 58; i++){
|
|
|
116 |
if(i == 47){
|
|
|
117 |
continue;
|
|
|
118 |
}
|
|
|
119 |
else{
|
|
|
120 |
a.push(i);
|
|
|
121 |
}
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
if (!(a.indexOf(k)>=0)){
|
|
|
125 |
e.preventDefault();
|
|
|
126 |
}
|
|
|
127 |
});
|
|
|
128 |
$('#bid3').keypress(function(e) {
|
|
|
129 |
var a = [];
|
|
|
130 |
var k = e.which;
|
|
|
131 |
|
|
|
132 |
for (i = 46; i < 58; i++){
|
|
|
133 |
if(i == 47){
|
|
|
134 |
continue;
|
|
|
135 |
}
|
|
|
136 |
else{
|
|
|
137 |
a.push(i);
|
|
|
138 |
}
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
if (!(a.indexOf(k)>=0)){
|
|
|
142 |
e.preventDefault();
|
|
|
143 |
}
|
|
|
144 |
});
|
|
|
145 |
$('#bid4').keypress(function(e) {
|
|
|
146 |
var a = [];
|
|
|
147 |
var k = e.which;
|
|
|
148 |
|
|
|
149 |
for (i = 46; i < 58; i++){
|
|
|
150 |
if(i == 47){
|
|
|
151 |
continue;
|
|
|
152 |
}
|
|
|
153 |
else{
|
|
|
154 |
a.push(i);
|
|
|
155 |
}
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
if (!(a.indexOf(k)>=0)){
|
|
|
159 |
e.preventDefault();
|
|
|
160 |
}
|
|
|
161 |
});
|
|
|
162 |
$('#bid5').keypress(function(e) {
|
|
|
163 |
var a = [];
|
|
|
164 |
var k = e.which;
|
|
|
165 |
|
|
|
166 |
for (i = 46; i < 58; i++){
|
|
|
167 |
if(i == 47){
|
|
|
168 |
continue;
|
|
|
169 |
}
|
|
|
170 |
else{
|
|
|
171 |
a.push(i);
|
|
|
172 |
}
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
if (!(a.indexOf(k)>=0)){
|
|
|
176 |
e.preventDefault();
|
|
|
177 |
}
|
|
|
178 |
});
|
| 9232 |
manish.sha |
179 |
$('#campaignAmountUpdate').keypress(function(e) {
|
|
|
180 |
var a = [];
|
|
|
181 |
var k = e.which;
|
|
|
182 |
|
|
|
183 |
for (i = 46; i < 58; i++){
|
|
|
184 |
if(i == 47){
|
|
|
185 |
continue;
|
|
|
186 |
}
|
|
|
187 |
else{
|
|
|
188 |
a.push(i);
|
|
|
189 |
}
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
if (!(a.indexOf(k)>=0)){
|
|
|
193 |
e.preventDefault();
|
|
|
194 |
}
|
|
|
195 |
});
|
|
|
196 |
$('#bidAmountUpdate').keypress(function(e) {
|
|
|
197 |
var a = [];
|
|
|
198 |
var k = e.which;
|
|
|
199 |
|
|
|
200 |
for (i = 46; i < 58; i++){
|
|
|
201 |
if(i == 47){
|
|
|
202 |
continue;
|
|
|
203 |
}
|
|
|
204 |
else{
|
|
|
205 |
a.push(i);
|
|
|
206 |
}
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
if (!(a.indexOf(k)>=0)){
|
|
|
210 |
e.preventDefault();
|
|
|
211 |
}
|
|
|
212 |
});
|
|
|
213 |
$('#bidUpdate').keypress(function(e) {
|
|
|
214 |
var a = [];
|
|
|
215 |
var k = e.which;
|
|
|
216 |
|
|
|
217 |
for (i = 46; i < 58; i++){
|
|
|
218 |
if(i == 47){
|
|
|
219 |
continue;
|
|
|
220 |
}
|
|
|
221 |
else{
|
|
|
222 |
a.push(i);
|
|
|
223 |
}
|
|
|
224 |
}
|
|
|
225 |
|
|
|
226 |
if (!(a.indexOf(k)>=0)){
|
|
|
227 |
e.preventDefault();
|
|
|
228 |
}
|
|
|
229 |
});
|
| 9064 |
manish.sha |
230 |
});
|
|
|
231 |
|
|
|
232 |
</script>
|
|
|
233 |
</head>
|
|
|
234 |
<body>
|
|
|
235 |
<h3>Saholic - Google Adwords Management</h3>
|
| 9437 |
manish.sha |
236 |
|
| 9064 |
manish.sha |
237 |
#set($errorMsg=$action.getErrorMsg())
|
|
|
238 |
#if(!$errorMsg.isEmpty())
|
|
|
239 |
<div style="color:red">
|
|
|
240 |
$errorMsg
|
|
|
241 |
</div>
|
|
|
242 |
#end
|
|
|
243 |
#set($successMsg=$action.getSuccessMessage())
|
|
|
244 |
#if(!$successMsg.isEmpty())
|
|
|
245 |
<div style="color:blue">
|
|
|
246 |
$successMsg
|
|
|
247 |
</div>
|
|
|
248 |
#end
|
|
|
249 |
|
|
|
250 |
<br>
|
|
|
251 |
<form id ='adwordsDataForm' name='adwordsDataForm' action='$request.getContextPath()/google-adwords' onsubmit="return validateFields()" method="post" >
|
|
|
252 |
<div id='adwordsOperations'>
|
|
|
253 |
<input type = 'radio' id = 'addOpRadio' name = 'adwordOpRadio' value = 'addOpRadio' />Add Operation
|
|
|
254 |
<input type = 'radio' id = 'updateOpRadio' name = 'adwordOpRadio' value = 'updateOpRadio' />Update Operation
|
| 9353 |
manish.sha |
255 |
</div><br>
|
| 9064 |
manish.sha |
256 |
<div id='addRecordDataDiv' class='hidden'>
|
|
|
257 |
<input type = 'radio' id = 'campaignRdo' name = 'adwordAddRadio' value = 'campaignRdo' />Campaign
|
|
|
258 |
<input type = 'radio' id = 'adgroupRdo' name = 'adwordAddRadio' value = 'adgroupRdo' />AdGroup
|
|
|
259 |
<input type = 'radio' id = 'textAdRdo' name = 'adwordAddRadio' value = 'textAdRdo' />TextAd
|
|
|
260 |
<input type = 'radio' id = 'keywordRdo' name = 'adwordAddRadio' value = 'keywordRdo' />Keyword
|
| 9353 |
manish.sha |
261 |
<br>
|
| 9064 |
manish.sha |
262 |
<div id='addCampaignDiv' class="hidden">
|
|
|
263 |
<span>Name: </span>
|
|
|
264 |
<input type="text" id="campaignName" name="campaignName"/>
|
|
|
265 |
<br>
|
|
|
266 |
<span>Status: </span>
|
|
|
267 |
<select id='campaignStatus' name='campaignStatus'>
|
|
|
268 |
<option value='1'>ACTIVE</option>
|
|
|
269 |
<option value='2' selected='selected'>PAUSED</option>
|
|
|
270 |
<option value='3'>DELETED</option>
|
|
|
271 |
</select>
|
|
|
272 |
<br>
|
|
|
273 |
<span>Start Date: </span><span style="color:red">*</span>
|
|
|
274 |
<input id="startDate" name="startDate" type="text" size="25">
|
|
|
275 |
<br>
|
|
|
276 |
<span>End Date: </span><span style="color:red">*</span>
|
|
|
277 |
<input id="endDate" name="endDate" type="text" size="25">
|
|
|
278 |
<br>
|
|
|
279 |
<span>Budget Amount: </span>
|
|
|
280 |
<input type="text" id="campaignAmount" name="campaignAmount"/>
|
|
|
281 |
<br>
|
|
|
282 |
<span>Network Setting Type: </span><br>
|
|
|
283 |
<span>Google Search And Search Network</span>
|
|
|
284 |
<input type='checkBox' id = 'googleSearchNetwork' name = 'googleSearchNetwork'>
|
|
|
285 |
|
|
|
286 |
<span>Display Network</span>
|
|
|
287 |
<input type='checkBox' id = 'displayNetwork' name = 'displayNetwork'>
|
|
|
288 |
|
|
|
289 |
<span>Google Partner Search Network</span>
|
|
|
290 |
<input type='checkBox' id = 'partnerSearchNetwork' name = 'partnerSearchNetwork'>
|
|
|
291 |
<br>
|
|
|
292 |
|
|
|
293 |
<span style='font-size:14px;padding-left:5px;color:red;'>* Current Date as Start Date and 30-Dec-2037 as End Date will be passed if Dates are empty.</span>
|
|
|
294 |
<br>
|
|
|
295 |
</div>
|
|
|
296 |
|
|
|
297 |
<div id='addAdgroupDiv' class="hidden">
|
|
|
298 |
<span>Select Campaign: </span>
|
| 9437 |
manish.sha |
299 |
|
| 9064 |
manish.sha |
300 |
<select id='campaignList1' name='campaignList1'>
|
|
|
301 |
<option value='-1'>---Select Campaign--</option>
|
| 9437 |
manish.sha |
302 |
|
| 9064 |
manish.sha |
303 |
</select>
|
|
|
304 |
<br>
|
|
|
305 |
<span>Adgroup Name: </span>
|
|
|
306 |
<input type='text' id='adgroupName' name='adgroupName'/><span style='font-size:12px;padding-left:5px;color:red;'>(Max. 255 Characters)</span>
|
|
|
307 |
<br>
|
|
|
308 |
<span>Status: </span>
|
|
|
309 |
<select id='adgroupStatus' name='adgroupStatus'>
|
|
|
310 |
<option value='1'>ENABLED</option>
|
|
|
311 |
<option value='2' selected='selected'>PAUSED</option>
|
|
|
312 |
<option value='3'>DELETED</option>
|
|
|
313 |
</select>
|
|
|
314 |
<br>
|
|
|
315 |
<span>Catalog Item Id: </span>
|
|
|
316 |
<input type='text' id='catalogItemId' name='catalogItemId'/>
|
|
|
317 |
<br>
|
|
|
318 |
<span>Bid Amount: </span>
|
|
|
319 |
<input type='text' id='bidAmount' name='bidAmount'/><br>
|
|
|
320 |
<span>Stock Linked</span>
|
|
|
321 |
<input type='checkBox' id = 'stockLinked' name = 'stockLinked' checked='checked'>
|
|
|
322 |
<br>
|
|
|
323 |
</div>
|
|
|
324 |
|
|
|
325 |
<div id='addAdgroupAdDiv' class="hidden">
|
|
|
326 |
<span>Select Campaign: </span>
|
| 9437 |
manish.sha |
327 |
|
| 9064 |
manish.sha |
328 |
<select id='campaignList2' name='campaignList2'>
|
|
|
329 |
<option value='-1'>---Select Campaign--</option>
|
| 9437 |
manish.sha |
330 |
|
| 9064 |
manish.sha |
331 |
</select>
|
|
|
332 |
<br>
|
|
|
333 |
<span>Select Adgroup: </span>
|
|
|
334 |
<select id='adgroupList1' name='adgroupList1'>
|
|
|
335 |
<option value='-1'>---Select Adgroup--</option>
|
|
|
336 |
</select>
|
|
|
337 |
<br>
|
|
|
338 |
<span>HeadLine: </span>
|
|
|
339 |
<input type='text' id='headline' name='headline'/><span style='font-size:12px;padding-left:5px;color:red;'>(Max. 25 Characters)</span>
|
|
|
340 |
<br>
|
|
|
341 |
<span>Description 1: </span>
|
|
|
342 |
<input type='text' id='description1' name='description1'/><span style='font-size:12px;padding-left:5px;color:red;'>(Max. 35 Characters)</span>
|
|
|
343 |
<br>
|
|
|
344 |
<span>Description 2: </span>
|
|
|
345 |
<input type='text' id='description2' name='description2'/><span style='font-size:12px;padding-left:5px;color:red;'>(Max. 35 Characters)</span>
|
|
|
346 |
<br>
|
|
|
347 |
<span>Url: </span>
|
|
|
348 |
<input type='text' id='url' name='url'/>
|
|
|
349 |
<br>
|
|
|
350 |
<span>Display Url: </span>
|
|
|
351 |
<input type='text' id='displayUrl' name='displayUrl'/><span style='font-size:12px;padding-left:5px;color:red;'>(Max. 35 Characters)</span>
|
|
|
352 |
<br>
|
| 9232 |
manish.sha |
353 |
<span style='font-size:14px;padding-left:5px;color:red;'>* Use #price to include Item Price in Descrpition1.(Use once only) </span>
|
|
|
354 |
<br>
|
| 9064 |
manish.sha |
355 |
</div>
|
|
|
356 |
<div id='addKeywordDiv' class="hidden">
|
|
|
357 |
<span>Select Campaign: </span>
|
| 9437 |
manish.sha |
358 |
|
| 9064 |
manish.sha |
359 |
<select id='campaignList3' name='campaignList3'>
|
|
|
360 |
<option value='-1'>---Select Campaign--</option>
|
| 9437 |
manish.sha |
361 |
|
| 9064 |
manish.sha |
362 |
</select>
|
|
|
363 |
<br>
|
|
|
364 |
<span>Select Adgroup: </span>
|
|
|
365 |
<select id='adgroupList2' name='adgroupList2'>
|
|
|
366 |
<option value='-1'>---Select Adgroup--</option>
|
|
|
367 |
</select>
|
|
|
368 |
<br>
|
|
|
369 |
<span>Keywords: </span><br>
|
|
|
370 |
<input type='text' id='keyword1' name='keyword1'/><span> Bid: </span><span style="color:red">*</span><input type='text' id='bid1' name='bid1'/><span> Match Type: </span><select id='matchType1' name='matchType1'><option value='1'>EXACT</option><option value='2'>PHRASE</option><option value='3' selected='selected'>BROAD</option></select><br>
|
|
|
371 |
<input type='text' id='keyword2' name='keyword2'/><span> Bid: </span><span style="color:red">*</span><input type='text' id='bid2' name='bid2'/><span> Match Type: </span><select id='matchType2' name='matchType2'><option value='1'>EXACT</option><option value='2'>PHRASE</option><option value='3' selected='selected'>BROAD</option></select><br>
|
|
|
372 |
<input type='text' id='keyword3' name='keyword3'/><span> Bid: </span><span style="color:red">*</span><input type='text' id='bid3' name='bid3'/><span> Match Type: </span><select id='matchType3' name='matchType3'><option value='1'>EXACT</option><option value='2'>PHRASE</option><option value='3' selected='selected'>BROAD</option></select><br>
|
|
|
373 |
<input type='text' id='keyword4' name='keyword4'/><span> Bid: </span><span style="color:red">*</span><input type='text' id='bid4' name='bid4'/><span> Match Type: </span><select id='matchType4' name='matchType4'><option value='1'>EXACT</option><option value='2'>PHRASE</option><option value='3' selected='selected'>BROAD</option></select><br>
|
|
|
374 |
<input type='text' id='keyword5' name='keyword5'/><span> Bid: </span><span style="color:red">*</span><input type='text' id='bid5' name='bid5'/><span> Match Type: </span><select id='matchType5' name='matchType5'><option value='1'>EXACT</option><option value='2'>PHRASE</option><option value='3' selected='selected'>BROAD</option></select><br>
|
|
|
375 |
<br>
|
|
|
376 |
<span style='font-size:14px;padding-left:5px;color:red;'>* Default AdGroup Bid Amount will be passed if Bid Details are empty.</span>
|
|
|
377 |
</div>
|
| 9232 |
manish.sha |
378 |
|
| 9064 |
manish.sha |
379 |
</div>
|
|
|
380 |
<div id='updateRecordDataDiv' class='hidden'>
|
| 9232 |
manish.sha |
381 |
<input type = 'radio' id = 'campaignRdoUpdate' name = 'adwordUpdateRadio' value = 'campaignRdoUpdate' />Campaign
|
|
|
382 |
<input type = 'radio' id = 'adgroupRdoUpdate' name = 'adwordUpdateRadio' value = 'adgroupRdoUpdate' />AdGroup
|
|
|
383 |
<input type = 'radio' id = 'keywordRdoUpdate' name = 'adwordUpdateRadio' value = 'keywordRdoUpdate' />Keyword
|
| 9353 |
manish.sha |
384 |
<br>
|
| 9232 |
manish.sha |
385 |
<div id='updateCampaignDiv' class="hidden">
|
|
|
386 |
<span>Select Campaign: </span>
|
| 9437 |
manish.sha |
387 |
|
| 9232 |
manish.sha |
388 |
<select id='campaignListUpdate1' name='campaignListUpdate1'>
|
|
|
389 |
<option value='-1'>---Select Campaign--</option>
|
| 9437 |
manish.sha |
390 |
|
| 9232 |
manish.sha |
391 |
</select><br>
|
|
|
392 |
<span>Name: </span>
|
|
|
393 |
<input type="text" id="campaignNameUpdate" name="campaignNameUpdate"/>
|
|
|
394 |
<br>
|
|
|
395 |
<span>Status: </span>
|
|
|
396 |
<select id='campaignStatusUpdate' name='campaignStatusUpdate'>
|
|
|
397 |
<option value='1'>ACTIVE</option>
|
|
|
398 |
<option value='2' selected='selected'>PAUSED</option>
|
|
|
399 |
<option value='3'>DELETED</option>
|
|
|
400 |
</select>
|
|
|
401 |
<br>
|
|
|
402 |
<!-- <span>Start Date: </span><span style="color:red">*</span>
|
|
|
403 |
<input id="startDateUpdate" name="startDate" type="text" size="25">
|
|
|
404 |
<br>
|
|
|
405 |
<span>End Date: </span><span style="color:red">*</span>
|
|
|
406 |
<input id="endDateUpdate" name="endDateUpdate" type="text" size="25">
|
|
|
407 |
<br> -->
|
|
|
408 |
<span>Budget Amount: </span>
|
|
|
409 |
<input type="text" id="campaignAmountUpdate" name="campaignAmountUpdate"/>
|
|
|
410 |
<br>
|
|
|
411 |
|
|
|
412 |
</div>
|
|
|
413 |
|
|
|
414 |
<div id='updateAdgroupDiv' class="hidden">
|
|
|
415 |
<span>Select Campaign: </span>
|
| 9437 |
manish.sha |
416 |
|
| 9232 |
manish.sha |
417 |
<select id='campaignListUpdate2' name='campaignListUpdate2'>
|
|
|
418 |
<option value='-1'>---Select Campaign--</option>
|
| 9437 |
manish.sha |
419 |
|
| 9232 |
manish.sha |
420 |
</select>
|
|
|
421 |
<br>
|
|
|
422 |
<span>Select Adgroup: </span>
|
|
|
423 |
<select id='adgroupListUpdate1' name='adgroupListUpdate1'>
|
|
|
424 |
<option value='-1'>---Select Adgroup--</option>
|
|
|
425 |
</select>
|
|
|
426 |
<br>
|
|
|
427 |
<span>Adgroup Name: </span>
|
|
|
428 |
<input type='text' id='adgroupNameUpdate' name='adgroupNameUpdate'/><span style='font-size:12px;padding-left:5px;color:red;'>(Max. 255 Characters)</span>
|
|
|
429 |
<br>
|
|
|
430 |
<span>Status: </span>
|
|
|
431 |
<select id='adgroupStatusUpdate' name='adgroupStatusUpdate'>
|
|
|
432 |
<option value='1'>ENABLED</option>
|
|
|
433 |
<option value='2' selected='selected'>PAUSED</option>
|
|
|
434 |
<option value='3'>DELETED</option>
|
|
|
435 |
</select>
|
|
|
436 |
<br>
|
|
|
437 |
<span>Catalog Item Id: </span>
|
|
|
438 |
<input type='text' id='catalogItemIdUpdate' name='catalogItemIdUpdate'/>
|
|
|
439 |
<br>
|
|
|
440 |
<span>Bid Amount: </span>
|
|
|
441 |
<input type='text' id='bidAmountUpdate' name='bidAmountUpdate'/><br>
|
| 9462 |
manish.sha |
442 |
<br>
|
|
|
443 |
<span>Stock Linked</span>
|
|
|
444 |
<input type='checkBox' id = 'stockLinkedUpdate' name = 'stockLinkedUpdate' checked='checked'>
|
| 9232 |
manish.sha |
445 |
</div>
|
|
|
446 |
<div id='updateKeywordDiv' class="hidden">
|
|
|
447 |
<span>Select Campaign: </span>
|
| 9437 |
manish.sha |
448 |
|
| 9232 |
manish.sha |
449 |
<select id='campaignListUpdate3' name='campaignListUpdate3'>
|
|
|
450 |
<option value='-1'>---Select Campaign--</option>
|
| 9437 |
manish.sha |
451 |
|
| 9232 |
manish.sha |
452 |
</select>
|
|
|
453 |
<br>
|
|
|
454 |
<span>Select Adgroup: </span>
|
|
|
455 |
<select id='adgroupListUpdate2' name='adgroupListUpdate2'>
|
|
|
456 |
<option value='-1'>---Select Adgroup--</option>
|
|
|
457 |
</select>
|
|
|
458 |
<br>
|
|
|
459 |
<span>Select Keyword: </span>
|
|
|
460 |
<select id='keywordListUpdate1' name='keywordListUpdate1'>
|
|
|
461 |
<option value='-1'>---Select Keyword--</option>
|
|
|
462 |
</select>
|
|
|
463 |
<br>
|
|
|
464 |
<span> Text: </span><input type='text' id='keywordUpdate' name='keywordUpdate'/>
|
|
|
465 |
<br>
|
|
|
466 |
<span> Bid: </span><input type='text' id='bidUpdate' name='bidUpdate'/>
|
|
|
467 |
<br>
|
|
|
468 |
<span> Match Type: </span><select id='matchTypeUpdate' name='matchTypeUpdate'><option value='1'>EXACT</option><option value='2'>PHRASE</option><option value='3' selected='selected'>BROAD</option></select><br>
|
|
|
469 |
</div>
|
|
|
470 |
</div>
|
|
|
471 |
<div id = 'addUpdateRecordsSubmitDiv'>
|
|
|
472 |
<input disabled='disabled' type="submit" value = "Submit" id="addUpdateRecordSubmit"/>
|
|
|
473 |
<input id='cancelAddUpdateRecords' type='button' value='Cancel'>
|
|
|
474 |
</div>
|
|
|
475 |
<!-- <div>
|
| 9064 |
manish.sha |
476 |
<span style='font-size:14px;padding-left:5px;color:red;'>Coming Soon</span></div>
|
| 9232 |
manish.sha |
477 |
</div> -->
|
| 9353 |
manish.sha |
478 |
<br>
|
| 9232 |
manish.sha |
479 |
</div>
|
| 9064 |
manish.sha |
480 |
</form>
|
|
|
481 |
<a href='$request.getContextPath()/reports'>
|
| 9353 |
manish.sha |
482 |
<--Back to Dashboard
|
| 9064 |
manish.sha |
483 |
</a>
|
|
|
484 |
</body>
|
|
|
485 |
|
|
|
486 |
<script type='text/javascript'>
|
| 9353 |
manish.sha |
487 |
function validateFields() {
|
| 9064 |
manish.sha |
488 |
var adwordsOpRadioBtnValue = $("input[name='adwordOpRadio']:checked").val();
|
|
|
489 |
var adwordsAddRadioBtnValue = $("input[name='adwordAddRadio']:checked").val();
|
|
|
490 |
if(adwordsOpRadioBtnValue == 'addOpRadio'){
|
|
|
491 |
if(adwordsAddRadioBtnValue == 'campaignRdo'){
|
|
|
492 |
var campaignname = $("input[name='campaignName']").val();
|
|
|
493 |
var budgetAmount = $("input[name='campaignAmount']").val();
|
|
|
494 |
var googleSrchNetwork = $("input[name='googleSearchNetwork']").attr('checked');
|
|
|
495 |
var displaynetwork = $("input[name='displayNetwork']").attr('checked');
|
|
|
496 |
var partnerSrchNetwork = $("input[name='partnerSearchNetwork']").attr('checked');
|
|
|
497 |
if(campaignname == null || campaignname==""){
|
|
|
498 |
alert('Campaign Name is Mandatory');
|
|
|
499 |
$('input[name=campaignName]').focus();
|
|
|
500 |
return false;
|
|
|
501 |
}
|
|
|
502 |
if(budgetAmount == null || budgetAmount==""){
|
|
|
503 |
alert('Budget Amount is Mandatory');
|
|
|
504 |
$('input[name=budgetAmount]').focus();
|
|
|
505 |
return false;
|
|
|
506 |
}
|
|
|
507 |
if(!googleSrchNetwork && !displaynetwork && !partnerSrchNetwork){
|
|
|
508 |
alert('Atleast One Option should be checked for Network Type Setting');
|
|
|
509 |
return false;
|
|
|
510 |
}
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
if(adwordsAddRadioBtnValue == 'adgroupRdo'){
|
|
|
514 |
var campaignSelected = $("select[id='campaignList1']").val();
|
|
|
515 |
var adgroupname = $("input[name='adgroupName']").val();
|
|
|
516 |
var bidamount = $("input[name='bidAmount']").val();
|
|
|
517 |
if(campaignSelected == '-1'){
|
|
|
518 |
alert('Please Select a Campaign');
|
|
|
519 |
$("select[id='campaignList1']").focus();
|
|
|
520 |
return false;
|
|
|
521 |
}
|
|
|
522 |
if(adgroupname == null || adgroupname == ""){
|
|
|
523 |
alert('AdGroup Name is Mandatory');
|
|
|
524 |
$('input[name=adgroupName]').focus();
|
|
|
525 |
return false;
|
|
|
526 |
}
|
|
|
527 |
if(bidamount == null || bidamount == ""){
|
|
|
528 |
alert('Bid Amount is Mandatory');
|
|
|
529 |
$('input[name=bidAmount]').focus();
|
|
|
530 |
return false;
|
|
|
531 |
}
|
|
|
532 |
}
|
|
|
533 |
if(adwordsAddRadioBtnValue == 'textAdRdo'){
|
|
|
534 |
var campaignSeletced1 = $("select[id='campaignList2']").val();
|
|
|
535 |
var adgroupSelected1 = $("select[id='adgroupList1']").val();
|
|
|
536 |
var headline = $("input[name='headline']").val();
|
|
|
537 |
var description1 = $("input[name='description1']").val();
|
|
|
538 |
var description2 = $("input[name='description2']").val();
|
|
|
539 |
var displayurl = $("input[name='displayUrl']").val();
|
|
|
540 |
var url = $("input[name='url']").val();
|
|
|
541 |
if(campaignSeletced1 == '-1'){
|
|
|
542 |
alert('Please Select a Campaign');
|
|
|
543 |
$("select[id='campaignList2']").focus();
|
|
|
544 |
return false;
|
|
|
545 |
}
|
|
|
546 |
if(adgroupSelected1 == '-1'){
|
|
|
547 |
alert('Please Select a AdGroup');
|
|
|
548 |
$("select[id='adgroupList1']").focus();
|
|
|
549 |
return false;
|
|
|
550 |
}
|
|
|
551 |
if(headline == null || headline == ""){
|
|
|
552 |
alert('Headline is Mandatory for Text Ad');
|
|
|
553 |
$('input[name=headline]').focus();
|
|
|
554 |
return false;
|
|
|
555 |
}
|
|
|
556 |
if(description1 == null || description1 == ""){
|
|
|
557 |
alert('Description1 is Mandatory for Text Ad');
|
|
|
558 |
$('input[name=description1]').focus();
|
|
|
559 |
return false;
|
|
|
560 |
}
|
|
|
561 |
if(description2 == null || description2 == ""){
|
|
|
562 |
alert('Description2 is Mandatory for Text Ad');
|
|
|
563 |
$('input[name=description2]').focus();
|
|
|
564 |
return false;
|
|
|
565 |
}
|
|
|
566 |
if(displayurl == null || displayurl == ""){
|
|
|
567 |
alert('Display Url is Mandatory for Text Ad');
|
|
|
568 |
$('input[name=displayUrl]').focus();
|
|
|
569 |
return false;
|
|
|
570 |
}
|
|
|
571 |
if(url == null || url == ""){
|
|
|
572 |
alert('Url is Mandatory for Text Ad');
|
|
|
573 |
$('input[name=url]').focus();
|
|
|
574 |
return false;
|
|
|
575 |
}
|
|
|
576 |
}
|
|
|
577 |
if(adwordsAddRadioBtnValue == 'keywordRdo'){
|
|
|
578 |
var campaignSeletced2 = $("select[id='campaignList3']").val();
|
|
|
579 |
var adgroupSelected2 = $("select[id='adgroupList2']").val();
|
|
|
580 |
var keyword1 = $("input[name='keyword1']").val();
|
|
|
581 |
var keyword2 = $("input[name='keyword2']").val();
|
|
|
582 |
var keyword3 = $("input[name='keyword3']").val();
|
|
|
583 |
var keyword4 = $("input[name='keyword4']").val();
|
|
|
584 |
var keyword5 = $("input[name='keyword5']").val();
|
|
|
585 |
if(campaignSeletced2 == '-1'){
|
|
|
586 |
alert('Please Select a Campaign');
|
|
|
587 |
$("select[id='campaignList3']").focus();
|
|
|
588 |
return false;
|
|
|
589 |
}
|
|
|
590 |
if(adgroupSelected2 == '-1'){
|
|
|
591 |
alert('Please Select a AdGroup');
|
|
|
592 |
$("select[id='adgroupList2']").focus();
|
|
|
593 |
return false;
|
|
|
594 |
}
|
|
|
595 |
if((keyword1 == null || keyword1 == "") && (keyword2 == null || keyword2 == "") && (keyword3 == null || keyword3 == "") && (keyword4 == null || keyword4 == "") && (keyword5 == null || keyword5 == "")){
|
|
|
596 |
alert('Keyword is Mandatory. Please enter a Keyword');
|
|
|
597 |
$('input[name=keyword1]').focus();
|
|
|
598 |
return false;
|
|
|
599 |
}
|
|
|
600 |
}
|
|
|
601 |
}
|
| 9232 |
manish.sha |
602 |
if(adwordsOpRadioBtnValue == 'updateOpRadio'){
|
|
|
603 |
if(adwordUpdateRadio =='campaignRdoUpdate'){
|
|
|
604 |
var campaignSelectedUpdate1 = $("select[id='campaignListUpdate1']").val();
|
|
|
605 |
var campaignNameUpdate = $("input[name='campaignNameUpdate']").val();
|
|
|
606 |
var campaignAmountUpdate = $("select[id='campaignAmountUpdate']").val();
|
|
|
607 |
if(campaignSelectedUpdate1 =='-1'){
|
|
|
608 |
alert('Please Select a Campaign');
|
|
|
609 |
$("select[id='campaignListUpdate1']").focus();
|
|
|
610 |
return false;
|
|
|
611 |
}
|
|
|
612 |
if(campaignNameUpdate == null || campaignNameUpdate == ""){
|
|
|
613 |
alert('Campaign Name is Mandatory');
|
|
|
614 |
$("input[name='campaignNameUpdate']").focus();
|
|
|
615 |
return false;
|
|
|
616 |
}
|
|
|
617 |
if(campaignAmountUpdate == null || campaignAmountUpdate == ""){
|
|
|
618 |
alert('Campaign Amount is Mandatory');
|
|
|
619 |
$("input[name='campaignAmountUpdate']").focus();
|
|
|
620 |
return false;
|
|
|
621 |
}
|
|
|
622 |
}
|
|
|
623 |
if(adwordUpdateRadio =='adgroupRdoUpdate'){
|
|
|
624 |
var campaignSelectedUpdate2 = $("select[id='campaignListUpdate2']").val();
|
|
|
625 |
var adgroupSelectUpdate1 = $("select[id='adgroupListUpdate1']").val();
|
|
|
626 |
var adgroupNameUpdate = $("select[id='adgroupNameUpdate']").val();
|
|
|
627 |
var bidAmountUpdate = $("select[id='bidAmountUpdate']").val();
|
|
|
628 |
if(campaignSelectedUpdate2 =='-1'){
|
|
|
629 |
alert('Please Select a Campaign');
|
|
|
630 |
$("select[id='campaignListUpdate2']").focus();
|
|
|
631 |
return false;
|
|
|
632 |
}
|
|
|
633 |
if(adgroupSelectUpdate1 =='-1'){
|
|
|
634 |
alert('Please Select a Ad Group');
|
|
|
635 |
$("select[id='adgroupListUpdate1']").focus();
|
|
|
636 |
return false;
|
|
|
637 |
}
|
|
|
638 |
if(adgroupNameUpdate == null || adgroupNameUpdate == ""){
|
|
|
639 |
alert('Ad Group Name is Mandatory');
|
|
|
640 |
$("input[name='adgroupNameUpdate']").focus();
|
|
|
641 |
return false;
|
|
|
642 |
}
|
|
|
643 |
if(bidAmountUpdate == null || bidAmountUpdate == ""){
|
|
|
644 |
alert('Bid Amount is Mandatory');
|
|
|
645 |
$("input[name='bidAmountUpdate']").focus();
|
|
|
646 |
return false;
|
|
|
647 |
}
|
|
|
648 |
}
|
|
|
649 |
if(adwordUpdateRadio =='keywordRdoUpdate'){
|
|
|
650 |
var campaignSelectedUpdate3 = $("select[id='campaignListUpdate3']").val();
|
|
|
651 |
var adgroupSelectUpdate2 = $("select[id='adgroupListUpdate2']").val();
|
|
|
652 |
var keywordSelectUpdate1 = $("select[id='keywordListUpdate1']").val();
|
|
|
653 |
var keywordUpdate = $("select[id='keywordUpdate']").val();
|
|
|
654 |
var bidUpdate = $("select[id='bidUpdate']").val();
|
|
|
655 |
if(campaignSelectedUpdate3 == '-1'){
|
|
|
656 |
alert('Please Select a Campaign');
|
|
|
657 |
$("select[id='campaignListUpdate3']").focus();
|
|
|
658 |
return false;
|
|
|
659 |
}
|
|
|
660 |
if(adgroupSelectUpdate2 =='-1'){
|
|
|
661 |
alert('Please Select a Ad Group');
|
|
|
662 |
$("select[id='adgroupListUpdate2']").focus();
|
|
|
663 |
return false;
|
|
|
664 |
}
|
|
|
665 |
if(keywordSelectUpdate1 =='-1'){
|
|
|
666 |
alert('Please Select a Keyword');
|
|
|
667 |
$("select[id='keywordListUpdate1']").focus();
|
|
|
668 |
return false;
|
|
|
669 |
}
|
|
|
670 |
if(keywordUpdate == null || keywordUpdate == ""){
|
|
|
671 |
alert('Keyword Text is Mandatory');
|
|
|
672 |
$("input[name='keywordUpdate']").focus();
|
|
|
673 |
return false;
|
|
|
674 |
}
|
|
|
675 |
if(bidUpdate == null || bidUpdate == ""){
|
|
|
676 |
alert('Bid Amount is Mandatory');
|
|
|
677 |
$("input[name='bidUpdate']").focus();
|
|
|
678 |
return false;
|
|
|
679 |
}
|
|
|
680 |
}
|
|
|
681 |
}
|
| 9064 |
manish.sha |
682 |
return true;
|
|
|
683 |
}
|
|
|
684 |
</script>
|
|
|
685 |
</html>
|