| 9065 |
manish.sha |
1 |
$(function() {
|
|
|
2 |
$('#addOpRadio').live('click', function() {
|
| 9231 |
manish.sha |
3 |
$('#addUpdateRecordSubmit').attr('disabled', 'true');
|
| 9065 |
manish.sha |
4 |
$('div#addRecordDataDiv').show();
|
|
|
5 |
$('div#updateRecordDataDiv').hide();
|
| 9231 |
manish.sha |
6 |
|
|
|
7 |
$('div#updateCampaignDiv').hide();
|
|
|
8 |
$('div#updateKeywordDiv').hide();
|
|
|
9 |
$('div#updateAdgroupDiv').hide();
|
|
|
10 |
|
|
|
11 |
$('#campaignRdoUpdate').attr("checked",false);
|
|
|
12 |
$('#adgroupRdoUpdate').attr("checked",false);
|
|
|
13 |
$('#keywordRdoUpdate').attr("checked",false);
|
|
|
14 |
$('#campaignListUpdate1').val('-1');
|
|
|
15 |
$('#campaignNameUpdate').val('');
|
|
|
16 |
$('#campaignStatusUpdate').val('2');
|
|
|
17 |
|
|
|
18 |
$('#campaignListUpdate2').val('-1');
|
|
|
19 |
$('#adgroupListUpdate1').find("option").remove();
|
|
|
20 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
21 |
$('#adgroupNameUpdate').val('');
|
|
|
22 |
$('#adgroupStatusUpdate').val('2');
|
|
|
23 |
$('#catalogItemIdUpdate').val('');
|
|
|
24 |
$('#bidAmountUpdate').val('');
|
|
|
25 |
|
|
|
26 |
$('#campaignListUpdate3').val('-1');
|
|
|
27 |
$('#adgroupListUpdate2').find("option").remove();
|
|
|
28 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
29 |
$('#keywordListUpdate1').find("option").remove();
|
|
|
30 |
$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
|
|
|
31 |
$('#keywordUpdate').val('');
|
|
|
32 |
$('#bidUpdate').val('');
|
|
|
33 |
$('#matchTypeUpdate').val('2');
|
|
|
34 |
|
| 9065 |
manish.sha |
35 |
});
|
|
|
36 |
|
|
|
37 |
$('#updateOpRadio').live('click', function() {
|
|
|
38 |
$('div#addRecordDataDiv').hide();
|
|
|
39 |
$('div#updateRecordDataDiv').show();
|
| 9231 |
manish.sha |
40 |
$('#addUpdateRecordSubmit').attr('disabled', 'true');
|
|
|
41 |
|
| 9065 |
manish.sha |
42 |
$("#campaignRdo").attr("checked", false);
|
|
|
43 |
$("#adgroupRdo").attr("checked", false);
|
|
|
44 |
$("#textAdRdo").attr("checked", false);
|
|
|
45 |
$("#keywordRdo").attr("checked", false);
|
|
|
46 |
$('div#addCampaignDiv').hide();
|
|
|
47 |
$('div#addAdgroupDiv').hide();
|
|
|
48 |
$('div#addAdgroupAdDiv').hide();
|
|
|
49 |
$('div#addKeywordDiv').hide();
|
|
|
50 |
$('#campaignName').val('');
|
|
|
51 |
$("#campaignStatus").val('2');
|
|
|
52 |
$('#startDate').val('');
|
|
|
53 |
$('#endDate').val('');
|
|
|
54 |
$("#googleSearchNetwork").attr("checked", false);
|
|
|
55 |
$("#displayNetwork").attr("checked", false);
|
|
|
56 |
$("#partnerSearchNetwork").attr("checked", false);
|
|
|
57 |
$("#campaignAmount").val('');
|
|
|
58 |
$("#adgroupList1").find("option").remove();
|
|
|
59 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
60 |
$("#adgroupList2").find("option").remove();
|
|
|
61 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
62 |
$("#campaignList1").val('-1');
|
|
|
63 |
$('#adgroupName').val('');
|
|
|
64 |
$('#adgroupStatus').val('2');
|
|
|
65 |
$('#bidAmount').val('');
|
|
|
66 |
$('#catalogItemId').val('');
|
|
|
67 |
$("#campaignList2").val('-1');
|
|
|
68 |
$("#adgroupList1").val('-1');
|
|
|
69 |
$("#headline").val('');
|
|
|
70 |
$("#description1").val('');
|
|
|
71 |
$("#description2").val('');
|
|
|
72 |
$("#url").val('');
|
|
|
73 |
$("#displayUrl").val('');
|
|
|
74 |
$("#campaignList3").val('-1');
|
|
|
75 |
$("#adgroupList2").val('-1');
|
|
|
76 |
$("#keyword1").val('');
|
|
|
77 |
$("#keyword2").val('');
|
|
|
78 |
$("#keyword3").val('');
|
|
|
79 |
$("#keyword4").val('');
|
|
|
80 |
$("#keyword5").val('');
|
|
|
81 |
$("#bid1").val('');
|
|
|
82 |
$("#bid2").val('');
|
|
|
83 |
$("#bid3").val('');
|
|
|
84 |
$("#bid4").val('');
|
|
|
85 |
$("#bid5").val('');
|
|
|
86 |
$("#matchType1").val('3');
|
|
|
87 |
$("#matchType2").val('3');
|
|
|
88 |
$("#matchType3").val('3');
|
|
|
89 |
$("#matchType4").val('3');
|
|
|
90 |
$("#matchType5").val('3');
|
|
|
91 |
});
|
|
|
92 |
|
|
|
93 |
$('#campaignRdo').live('click', function() {
|
|
|
94 |
$('div#addCampaignDiv').show();
|
|
|
95 |
$('div#addAdgroupDiv').hide();
|
|
|
96 |
$('div#addAdgroupAdDiv').hide();
|
|
|
97 |
$('div#addKeywordDiv').hide();
|
| 9231 |
manish.sha |
98 |
|
| 9065 |
manish.sha |
99 |
$("#adgroupList1").find("option").remove();
|
|
|
100 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
101 |
$("#adgroupList2").find("option").remove();
|
|
|
102 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 9231 |
manish.sha |
103 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
| 9065 |
manish.sha |
104 |
$("#campaignList1").val('-1');
|
|
|
105 |
$('#adgroupName').val('');
|
|
|
106 |
$('#adgroupStatus').val('2');
|
|
|
107 |
$('#bidAmount').val('');
|
|
|
108 |
$('#catalogItemId').val('');
|
|
|
109 |
$("#campaignList2").val('-1');
|
|
|
110 |
$("#adgroupList1").val('-1');
|
|
|
111 |
$("#headline").val('');
|
|
|
112 |
$("#description1").val('');
|
|
|
113 |
$("#description2").val('');
|
|
|
114 |
$("#url").val('');
|
|
|
115 |
$("#displayUrl").val('');
|
|
|
116 |
$("#campaignList3").val('-1');
|
|
|
117 |
$("#adgroupList2").val('-1');
|
|
|
118 |
$("#keyword1").val('');
|
|
|
119 |
$("#keyword2").val('');
|
|
|
120 |
$("#keyword3").val('');
|
|
|
121 |
$("#keyword4").val('');
|
|
|
122 |
$("#keyword5").val('');
|
|
|
123 |
$("#bid1").val('');
|
|
|
124 |
$("#bid2").val('');
|
|
|
125 |
$("#bid3").val('');
|
|
|
126 |
$("#bid4").val('');
|
|
|
127 |
$("#bid5").val('');
|
|
|
128 |
$("#matchType1").val('3');
|
|
|
129 |
$("#matchType2").val('3');
|
|
|
130 |
$("#matchType3").val('3');
|
|
|
131 |
$("#matchType4").val('3');
|
|
|
132 |
$("#matchType5").val('3');
|
|
|
133 |
$('#campaignName').val('');
|
|
|
134 |
$("#campaignStatus").val('2');
|
|
|
135 |
$('#startDate').val('');
|
|
|
136 |
$('#endDate').val('');
|
|
|
137 |
$("#googleSearchNetwork").attr("checked", false);
|
|
|
138 |
$("#displayNetwork").attr("checked", false);
|
|
|
139 |
$("#partnerSearchNetwork").attr("checked", false);
|
|
|
140 |
$("#campaignAmount").val('');
|
|
|
141 |
});
|
|
|
142 |
|
|
|
143 |
$('#adgroupRdo').live('click', function() {
|
|
|
144 |
$('div#addCampaignDiv').hide();
|
|
|
145 |
$('div#addAdgroupDiv').show();
|
|
|
146 |
$('div#addAdgroupAdDiv').hide();
|
|
|
147 |
$('div#addKeywordDiv').hide();
|
|
|
148 |
$("#adgroupList1").find("option").remove();
|
|
|
149 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
150 |
$("#adgroupList2").find("option").remove();
|
|
|
151 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 9231 |
manish.sha |
152 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
| 9065 |
manish.sha |
153 |
$("#campaignList1").val('-1');
|
|
|
154 |
$('#adgroupName').val('');
|
|
|
155 |
$('#adgroupStatus').val('2');
|
|
|
156 |
$('#bidAmount').val('');
|
|
|
157 |
$('#catalogItemId').val('');
|
|
|
158 |
$("#campaignList2").val('-1');
|
|
|
159 |
$("#adgroupList1").val('-1');
|
|
|
160 |
$("#headline").val('');
|
|
|
161 |
$("#description1").val('');
|
|
|
162 |
$("#description2").val('');
|
|
|
163 |
$("#url").val('');
|
|
|
164 |
$("#displayUrl").val('');
|
|
|
165 |
$("#campaignList3").val('-1');
|
|
|
166 |
$("#adgroupList2").val('-1');
|
|
|
167 |
$("#keyword1").val('');
|
|
|
168 |
$("#keyword2").val('');
|
|
|
169 |
$("#keyword3").val('');
|
|
|
170 |
$("#keyword4").val('');
|
|
|
171 |
$("#keyword5").val('');
|
|
|
172 |
$("#bid1").val('');
|
|
|
173 |
$("#bid2").val('');
|
|
|
174 |
$("#bid3").val('');
|
|
|
175 |
$("#bid4").val('');
|
|
|
176 |
$("#bid5").val('');
|
|
|
177 |
$("#matchType1").val('3');
|
|
|
178 |
$("#matchType2").val('3');
|
|
|
179 |
$("#matchType3").val('3');
|
|
|
180 |
$("#matchType4").val('3');
|
|
|
181 |
$("#matchType5").val('3');
|
|
|
182 |
$('#campaignName').val('');
|
|
|
183 |
$("#campaignStatus").val('2');
|
|
|
184 |
$('#startDate').val('');
|
|
|
185 |
$('#endDate').val('');
|
|
|
186 |
$("#googleSearchNetwork").attr("checked", false);
|
|
|
187 |
$("#displayNetwork").attr("checked", false);
|
|
|
188 |
$("#partnerSearchNetwork").attr("checked", false);
|
|
|
189 |
$("#campaignAmount").val('');
|
|
|
190 |
});
|
|
|
191 |
|
|
|
192 |
$('#textAdRdo').live('click', function() {
|
|
|
193 |
$('div#addCampaignDiv').hide();
|
|
|
194 |
$('div#addAdgroupDiv').hide();
|
|
|
195 |
$('div#addAdgroupAdDiv').show();
|
|
|
196 |
$('div#addKeywordDiv').hide();
|
|
|
197 |
$("#adgroupList1").find("option").remove();
|
|
|
198 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
199 |
$("#adgroupList2").find("option").remove();
|
|
|
200 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 9231 |
manish.sha |
201 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
| 9065 |
manish.sha |
202 |
$("#campaignList1").val('-1');
|
|
|
203 |
$('#adgroupName').val('');
|
|
|
204 |
$('#adgroupStatus').val('2');
|
|
|
205 |
$('#bidAmount').val('');
|
|
|
206 |
$('#catalogItemId').val('');
|
|
|
207 |
$("#campaignList2").val('-1');
|
|
|
208 |
$("#adgroupList1").val('-1');
|
|
|
209 |
$("#headline").val('');
|
|
|
210 |
$("#description1").val('');
|
|
|
211 |
$("#description2").val('');
|
|
|
212 |
$("#url").val('');
|
|
|
213 |
$("#displayUrl").val('');
|
|
|
214 |
$("#campaignList3").val('-1');
|
|
|
215 |
$("#adgroupList2").val('-1');
|
|
|
216 |
$("#keyword1").val('');
|
|
|
217 |
$("#keyword2").val('');
|
|
|
218 |
$("#keyword3").val('');
|
|
|
219 |
$("#keyword4").val('');
|
|
|
220 |
$("#keyword5").val('');
|
|
|
221 |
$("#bid1").val('');
|
|
|
222 |
$("#bid2").val('');
|
|
|
223 |
$("#bid3").val('');
|
|
|
224 |
$("#bid4").val('');
|
|
|
225 |
$("#bid5").val('');
|
|
|
226 |
$("#matchType1").val('3');
|
|
|
227 |
$("#matchType2").val('3');
|
|
|
228 |
$("#matchType3").val('3');
|
|
|
229 |
$("#matchType4").val('3');
|
|
|
230 |
$("#matchType5").val('3');
|
|
|
231 |
$('#campaignName').val('');
|
|
|
232 |
$("#campaignStatus").val('2');
|
|
|
233 |
$('#startDate').val('');
|
|
|
234 |
$('#endDate').val('');
|
|
|
235 |
$("#googleSearchNetwork").attr("checked", false);
|
|
|
236 |
$("#displayNetwork").attr("checked", false);
|
|
|
237 |
$("#partnerSearchNetwork").attr("checked", false);
|
|
|
238 |
$("#campaignAmount").val('');
|
|
|
239 |
});
|
|
|
240 |
|
|
|
241 |
$('#keywordRdo').live('click', function() {
|
|
|
242 |
$('div#addCampaignDiv').hide();
|
|
|
243 |
$('div#addAdgroupDiv').hide();
|
|
|
244 |
$('div#addAdgroupAdDiv').hide();
|
|
|
245 |
$('div#addKeywordDiv').show();
|
|
|
246 |
$("#adgroupList1").find("option").remove();
|
|
|
247 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
248 |
$("#adgroupList2").find("option").remove();
|
|
|
249 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
250 |
$("#campaignList1").val('-1');
|
|
|
251 |
$('#adgroupName').val('');
|
|
|
252 |
$('#adgroupStatus').val('2');
|
|
|
253 |
$('#bidAmount').val('');
|
|
|
254 |
$('#catalogItemId').val('');
|
|
|
255 |
$("#campaignList2").val('-1');
|
|
|
256 |
$("#adgroupList1").val('-1');
|
|
|
257 |
$("#headline").val('');
|
|
|
258 |
$("#description1").val('');
|
|
|
259 |
$("#description2").val('');
|
|
|
260 |
$("#url").val('');
|
|
|
261 |
$("#displayUrl").val('');
|
|
|
262 |
$("#campaignList3").val('-1');
|
|
|
263 |
$("#adgroupList2").val('-1');
|
|
|
264 |
$("#keyword1").val('');
|
|
|
265 |
$("#keyword2").val('');
|
|
|
266 |
$("#keyword3").val('');
|
|
|
267 |
$("#keyword4").val('');
|
|
|
268 |
$("#keyword5").val('');
|
|
|
269 |
$("#bid1").val('');
|
|
|
270 |
$("#bid2").val('');
|
|
|
271 |
$("#bid3").val('');
|
|
|
272 |
$("#bid4").val('');
|
|
|
273 |
$("#bid5").val('');
|
|
|
274 |
$("#matchType1").val('3');
|
|
|
275 |
$("#matchType2").val('3');
|
|
|
276 |
$("#matchType3").val('3');
|
|
|
277 |
$("#matchType4").val('3');
|
|
|
278 |
$("#matchType5").val('3');
|
| 9231 |
manish.sha |
279 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
| 9065 |
manish.sha |
280 |
$('#campaignName').val('');
|
|
|
281 |
$("#campaignStatus").val('2');
|
|
|
282 |
$('#startDate').val('');
|
|
|
283 |
$('#endDate').val('');
|
|
|
284 |
$("#googleSearchNetwork").attr("checked", false);
|
|
|
285 |
$("#displayNetwork").attr("checked", false);
|
|
|
286 |
$("#partnerSearchNetwork").attr("checked", false);
|
|
|
287 |
$("#campaignAmount").val('');
|
|
|
288 |
});
|
|
|
289 |
|
| 9231 |
manish.sha |
290 |
$('#campaignRdoUpdate').live('click', function() {
|
|
|
291 |
$('div#updateCampaignDiv').show();
|
|
|
292 |
$('div#updateKeywordDiv').hide();
|
|
|
293 |
$('div#updateAdgroupDiv').hide();
|
|
|
294 |
|
|
|
295 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
|
|
296 |
|
|
|
297 |
$('#campaignListUpdate1').val('-1');
|
|
|
298 |
$('#campaignNameUpdate').val('');
|
|
|
299 |
$('#campaignStatusUpdate').val('2');
|
|
|
300 |
|
|
|
301 |
$('#campaignListUpdate2').val('-1');
|
|
|
302 |
$('#adgroupListUpdate1').find("option").remove();
|
|
|
303 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
304 |
$('#adgroupNameUpdate').val('');
|
|
|
305 |
$('#adgroupStatusUpdate').val('2');
|
|
|
306 |
$('#catalogItemIdUpdate').val('');
|
|
|
307 |
$('#bidAmountUpdate').val('');
|
|
|
308 |
|
|
|
309 |
$('#campaignListUpdate3').val('-1');
|
|
|
310 |
$('#adgroupListUpdate2').find("option").remove();
|
|
|
311 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
312 |
$('#keywordListUpdate1').find("option").remove();
|
|
|
313 |
$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
|
|
|
314 |
$('#keywordUpdate').val('');
|
|
|
315 |
$('#bidUpdate').val('');
|
|
|
316 |
$('#matchTypeUpdate').val('2');
|
|
|
317 |
});
|
|
|
318 |
|
|
|
319 |
$('#keywordRdoUpdate').live('click', function() {
|
|
|
320 |
$('div#updateCampaignDiv').hide();
|
|
|
321 |
$('div#updateKeywordDiv').show();
|
|
|
322 |
$('div#updateAdgroupDiv').hide();
|
|
|
323 |
|
|
|
324 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
|
|
325 |
|
|
|
326 |
$('#campaignListUpdate1').val('-1');
|
|
|
327 |
$('#campaignNameUpdate').val('');
|
|
|
328 |
$('#campaignStatusUpdate').val('2');
|
|
|
329 |
|
|
|
330 |
$('#campaignListUpdate2').val('-1');
|
|
|
331 |
$('#adgroupListUpdate1').find("option").remove();
|
|
|
332 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
333 |
$('#adgroupNameUpdate').val('');
|
|
|
334 |
$('#adgroupStatusUpdate').val('2');
|
|
|
335 |
$('#catalogItemIdUpdate').val('');
|
|
|
336 |
$('#bidAmountUpdate').val('');
|
|
|
337 |
|
|
|
338 |
$('#campaignListUpdate3').val('-1');
|
|
|
339 |
$('#adgroupListUpdate2').find("option").remove();
|
|
|
340 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
341 |
$('#keywordListUpdate1').find("option").remove();
|
|
|
342 |
$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
|
|
|
343 |
$('#keywordUpdate').val('');
|
|
|
344 |
$('#bidUpdate').val('');
|
|
|
345 |
$('#matchTypeUpdate').val('2');
|
|
|
346 |
});
|
|
|
347 |
|
|
|
348 |
$('#adgroupRdoUpdate').live('click', function() {
|
|
|
349 |
$('div#updateCampaignDiv').hide();
|
|
|
350 |
$('div#updateKeywordDiv').hide();
|
|
|
351 |
$('div#updateAdgroupDiv').show();
|
|
|
352 |
|
|
|
353 |
$('#addUpdateRecordSubmit').removeAttr('disabled');
|
|
|
354 |
|
|
|
355 |
$('#campaignListUpdate1').val('-1');
|
|
|
356 |
$('#campaignNameUpdate').val('');
|
|
|
357 |
$('#campaignStatusUpdate').val('2');
|
|
|
358 |
|
|
|
359 |
$('#campaignListUpdate2').val('-1');
|
|
|
360 |
$('#adgroupListUpdate1').find("option").remove();
|
|
|
361 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
362 |
$('#adgroupNameUpdate').val('');
|
|
|
363 |
$('#adgroupStatusUpdate').val('2');
|
|
|
364 |
$('#catalogItemIdUpdate').val('');
|
|
|
365 |
$('#bidAmountUpdate').val('');
|
|
|
366 |
|
|
|
367 |
$('#campaignListUpdate3').val('-1');
|
|
|
368 |
$('#adgroupListUpdate2').find("option").remove();
|
|
|
369 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
370 |
$('#keywordListUpdate1').find("option").remove();
|
|
|
371 |
$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
|
|
|
372 |
$('#keywordUpdate').val('');
|
|
|
373 |
$('#bidUpdate').val('');
|
|
|
374 |
$('#matchTypeUpdate').val('2');
|
|
|
375 |
});
|
|
|
376 |
|
|
|
377 |
$('#cancelAddUpdateRecords').live('click', function() {
|
| 9065 |
manish.sha |
378 |
$("#campaignRdo").attr("checked", false);
|
|
|
379 |
$("#adgroupRdo").attr("checked", false);
|
|
|
380 |
$("#textAdRdo").attr("checked", false);
|
|
|
381 |
$("#keywordRdo").attr("checked", false);
|
|
|
382 |
$('div#addCampaignDiv').hide();
|
|
|
383 |
$('div#addAdgroupDiv').hide();
|
|
|
384 |
$('div#addAdgroupAdDiv').hide();
|
|
|
385 |
$('div#addKeywordDiv').hide();
|
|
|
386 |
$('#campaignName').val('');
|
|
|
387 |
$("#campaignStatus").val('2');
|
|
|
388 |
$('#startDate').val('');
|
|
|
389 |
$('#endDate').val('');
|
|
|
390 |
$("#googleSearchNetwork").attr("checked", false);
|
|
|
391 |
$("#displayNetwork").attr("checked", false);
|
|
|
392 |
$("#partnerSearchNetwork").attr("checked", false);
|
|
|
393 |
$("#campaignAmount").val('');
|
|
|
394 |
$("#adgroupList1").find("option").remove();
|
|
|
395 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
396 |
$("#adgroupList2").find("option").remove();
|
|
|
397 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
398 |
$("#campaignList1").val('-1');
|
|
|
399 |
$('#adgroupName').val('');
|
|
|
400 |
$('#adgroupStatus').val('2');
|
|
|
401 |
$('#bidAmount').val('');
|
|
|
402 |
$('#catalogItemId').val('');
|
|
|
403 |
$("#campaignList2").val('-1');
|
|
|
404 |
$("#adgroupList1").val('-1');
|
|
|
405 |
$("#headline").val('');
|
|
|
406 |
$("#description1").val('');
|
|
|
407 |
$("#description2").val('');
|
|
|
408 |
$("#url").val('');
|
|
|
409 |
$("#displayUrl").val('');
|
|
|
410 |
$("#campaignList3").val('-1');
|
|
|
411 |
$("#adgroupList2").val('-1');
|
|
|
412 |
$("#keyword1").val('');
|
|
|
413 |
$("#keyword2").val('');
|
|
|
414 |
$("#keyword3").val('');
|
|
|
415 |
$("#keyword4").val('');
|
|
|
416 |
$("#keyword5").val('');
|
|
|
417 |
$("#bid1").val('');
|
|
|
418 |
$("#bid2").val('');
|
|
|
419 |
$("#bid3").val('');
|
|
|
420 |
$("#bid4").val('');
|
|
|
421 |
$("#bid5").val('');
|
|
|
422 |
$("#matchType1").val('3');
|
|
|
423 |
$("#matchType2").val('3');
|
|
|
424 |
$("#matchType3").val('3');
|
|
|
425 |
$("#matchType4").val('3');
|
|
|
426 |
$("#matchType5").val('3');
|
| 9231 |
manish.sha |
427 |
$('#addUpdateRecordSubmit').attr('disabled', 'true');
|
|
|
428 |
|
|
|
429 |
$('div#updateCampaignDiv').hide();
|
|
|
430 |
$('div#updateKeywordDiv').hide();
|
|
|
431 |
$('div#updateAdgroupDiv').hide();
|
|
|
432 |
$('#campaignRdoUpdate').attr("checked",false);
|
|
|
433 |
$('#adgroupRdoUpdate').attr("checked",false);
|
|
|
434 |
$('#keywordRdoUpdate').attr("checked",false);
|
|
|
435 |
$('#campaignListUpdate1').val('-1');
|
|
|
436 |
$('#campaignNameUpdate').val('');
|
|
|
437 |
$('#campaignStatusUpdate').val('2');
|
|
|
438 |
|
|
|
439 |
$('#campaignListUpdate2').val('-1');
|
|
|
440 |
$('#adgroupListUpdate1').find("option").remove();
|
|
|
441 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
442 |
$('#adgroupNameUpdate').val('');
|
|
|
443 |
$('#adgroupStatusUpdate').val('2');
|
|
|
444 |
$('#catalogItemIdUpdate').val('');
|
|
|
445 |
$('#bidAmountUpdate').val('');
|
|
|
446 |
|
|
|
447 |
$('#campaignListUpdate3').val('-1');
|
|
|
448 |
$('#adgroupListUpdate2').find("option").remove();
|
|
|
449 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
450 |
$('#keywordListUpdate1').find("option").remove();
|
|
|
451 |
$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
|
|
|
452 |
$('#keywordUpdate').val('');
|
|
|
453 |
$('#bidUpdate').val('');
|
|
|
454 |
$('#matchTypeUpdate').val('2');
|
|
|
455 |
|
| 9065 |
manish.sha |
456 |
});
|
|
|
457 |
$("#campaignList2").change(function () {
|
|
|
458 |
$("#adgroupList1").find("option:gt(0)").remove();
|
|
|
459 |
|
|
|
460 |
$.ajax({
|
|
|
461 |
type : 'GET',
|
|
|
462 |
url : '/Support/google-adwords!getAdgroupList',
|
|
|
463 |
data : 'campaignId=' + $(this).val(),
|
|
|
464 |
dataType : 'json',
|
|
|
465 |
success : function(reply) {
|
|
|
466 |
$("#adgroupList1").find("option").remove();
|
|
|
467 |
$('#adgroupList1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
468 |
$.each(reply.AdGroupData, function(i,obj) {
|
|
|
469 |
$('#adgroupList1').append($("<option></option>").val(obj.AdgroupId).html(obj.Name));
|
|
|
470 |
});
|
|
|
471 |
}
|
|
|
472 |
});
|
|
|
473 |
});
|
|
|
474 |
$("#campaignList3").change(function () {
|
|
|
475 |
$("#adgroupList2").find("option:gt(0)").remove();
|
|
|
476 |
|
|
|
477 |
$.ajax({
|
|
|
478 |
type : 'GET',
|
|
|
479 |
url : '/Support/google-adwords!getAdgroupList',
|
|
|
480 |
data : 'campaignId=' + $(this).val(),
|
|
|
481 |
dataType : 'json',
|
|
|
482 |
success : function(reply) {
|
|
|
483 |
$("#adgroupList2").find("option").remove();
|
|
|
484 |
$('#adgroupList2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
485 |
$.each(reply.AdGroupData, function(i,obj) {
|
|
|
486 |
$('#adgroupList2').append($("<option></option>").val(obj.AdgroupId).html(obj.Name));
|
|
|
487 |
});
|
|
|
488 |
}
|
|
|
489 |
});
|
|
|
490 |
});
|
| 9231 |
manish.sha |
491 |
|
|
|
492 |
$("#campaignListUpdate1").change(function () {
|
|
|
493 |
$('#campaignNameUpdate').val('');
|
|
|
494 |
$('#campaignStatusUpdate').val('2');
|
|
|
495 |
$('#campaignAmountUpdate').val('');
|
|
|
496 |
$.ajax({
|
|
|
497 |
type : 'GET',
|
|
|
498 |
url : '/Support/google-adwords!getCampaignDetails',
|
|
|
499 |
data : 'campaignId=' + $(this).val(),
|
|
|
500 |
dataType : 'json',
|
|
|
501 |
success : function(reply) {
|
|
|
502 |
$('#campaignNameUpdate').val(reply.Name);
|
|
|
503 |
$('#campaignStatusUpdate').val(reply.Status);
|
|
|
504 |
$('#campaignAmountUpdate').val(reply.BudgetAmount);
|
|
|
505 |
}
|
|
|
506 |
});
|
|
|
507 |
});
|
|
|
508 |
|
|
|
509 |
$("#campaignListUpdate2").change(function () {
|
|
|
510 |
$("#adgroupListUpdate1").find("option:gt(0)").remove();
|
|
|
511 |
$('#adgroupNameUpdate').val('');
|
|
|
512 |
$('#adgroupStatusUpdate').val('2');
|
|
|
513 |
$('#catalogItemIdUpdate').val('');
|
|
|
514 |
$('#bidAmountUpdate').val('');
|
|
|
515 |
|
|
|
516 |
$.ajax({
|
|
|
517 |
type : 'GET',
|
|
|
518 |
url : '/Support/google-adwords!getAdgroupList',
|
|
|
519 |
data : 'campaignId=' + $(this).val(),
|
|
|
520 |
dataType : 'json',
|
|
|
521 |
success : function(reply) {
|
|
|
522 |
$("#adgroupListUpdate1").find("option").remove();
|
|
|
523 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
524 |
$.each(reply.AdGroupData, function(i,obj) {
|
|
|
525 |
$('#adgroupListUpdate1').append($("<option></option>").val(obj.AdgroupId).html(obj.Name));
|
|
|
526 |
});
|
|
|
527 |
}
|
|
|
528 |
});
|
|
|
529 |
});
|
|
|
530 |
|
|
|
531 |
$("#adgroupListUpdate1").change(function () {
|
|
|
532 |
$('#adgroupNameUpdate').val('');
|
|
|
533 |
$('#adgroupStatusUpdate').val('2');
|
|
|
534 |
$('#catalogItemIdUpdate').val('');
|
|
|
535 |
$('#bidAmountUpdate').val('');
|
|
|
536 |
$.ajax({
|
|
|
537 |
type : 'GET',
|
|
|
538 |
url : '/Support/google-adwords!getAdGroupDetails',
|
|
|
539 |
data : 'adgroupId=' + $(this).val(),
|
|
|
540 |
dataType : 'json',
|
|
|
541 |
success : function(reply) {
|
|
|
542 |
$('#adgroupNameUpdate').val(reply.Name);
|
|
|
543 |
$('#adgroupStatusUpdate').val(reply.Status);
|
|
|
544 |
$('#catalogItemIdUpdate').val(reply.CatalogItemId);
|
|
|
545 |
$('#bidAmountUpdate').val(reply.BidAmount);
|
|
|
546 |
|
|
|
547 |
}
|
|
|
548 |
});
|
|
|
549 |
});
|
|
|
550 |
|
|
|
551 |
$("#campaignListUpdate3").change(function () {
|
|
|
552 |
$("#adgroupListUpdate2").find("option:gt(0)").remove();
|
|
|
553 |
$("#keywordListUpdate1").find("option:gt(0)").remove();
|
|
|
554 |
$('#keywordUpdate').val('');
|
|
|
555 |
$('#matchTypeUpdate').val('2');
|
|
|
556 |
$('#bidUpdate').val('');
|
|
|
557 |
$.ajax({
|
|
|
558 |
type : 'GET',
|
|
|
559 |
url : '/Support/google-adwords!getAdgroupList',
|
|
|
560 |
data : 'campaignId=' + $(this).val(),
|
|
|
561 |
dataType : 'json',
|
|
|
562 |
success : function(reply) {
|
|
|
563 |
$("#adgroupListUpdate2").find("option").remove();
|
|
|
564 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
|
|
565 |
$.each(reply.AdGroupData, function(i,obj) {
|
|
|
566 |
$('#adgroupListUpdate2').append($("<option></option>").val(obj.AdgroupId).html(obj.Name));
|
|
|
567 |
});
|
|
|
568 |
}
|
|
|
569 |
});
|
|
|
570 |
});
|
|
|
571 |
|
|
|
572 |
$("#adgroupListUpdate2").change(function () {
|
|
|
573 |
$("#keywordListUpdate1").find("option:gt(0)").remove();
|
|
|
574 |
$('#keywordUpdate').val('');
|
|
|
575 |
$('#matchTypeUpdate').val('2');
|
|
|
576 |
$('#bidUpdate').val('');
|
|
|
577 |
$.ajax({
|
|
|
578 |
type : 'GET',
|
|
|
579 |
url : '/Support/google-adwords!getKeywordList',
|
|
|
580 |
data : 'adgroupId=' + $(this).val(),
|
|
|
581 |
dataType : 'json',
|
|
|
582 |
success : function(reply) {
|
|
|
583 |
$("#keywordListUpdate1").find("option").remove();
|
|
|
584 |
$('#keywordListUpdate1').append($("<option></option>").val('-1').html('---Select Keyword---'));
|
|
|
585 |
$.each(reply.AdKeywordData, function(i,obj) {
|
|
|
586 |
$('#keywordListUpdate1').append($("<option></option>").val(obj.KeywordId).html(obj.Text));
|
|
|
587 |
});
|
|
|
588 |
}
|
|
|
589 |
});
|
|
|
590 |
});
|
|
|
591 |
|
|
|
592 |
$("#keywordListUpdate1").change(function () {
|
|
|
593 |
$('#keywordUpdate').val('');
|
|
|
594 |
$('#matchTypeUpdate').val('2');
|
|
|
595 |
$('#bidUpdate').val('');
|
|
|
596 |
$.ajax({
|
|
|
597 |
type : 'GET',
|
|
|
598 |
url : '/Support/google-adwords!getKeywordDetails',
|
|
|
599 |
data : 'keywordId=' + $(this).val() + '&adgroupId=' + $("#adgroupListUpdate2").val(),
|
|
|
600 |
dataType : 'json',
|
|
|
601 |
success : function(reply) {
|
|
|
602 |
$('#keywordUpdate').val(reply.Text);
|
|
|
603 |
$('#matchTypeUpdate').val(reply.MatchType);
|
|
|
604 |
$('#bidUpdate').val(reply.Bid);
|
|
|
605 |
|
|
|
606 |
}
|
|
|
607 |
});
|
|
|
608 |
});
|
|
|
609 |
|
| 9352 |
manish.sha |
610 |
$('#sendProductFeedForm').live('submit', function() {
|
|
|
611 |
var catalogItemId = $("input[name='cataLogItemId']").val();
|
|
|
612 |
if(catalogItemId==null || catalogItemId=="")
|
|
|
613 |
{
|
|
|
614 |
alert("Please enter Catalog Item Id");
|
|
|
615 |
$('input[name=cataLogitemId]').focus();
|
|
|
616 |
return false;
|
|
|
617 |
}
|
|
|
618 |
sendProductFeeds($(this).serialize());
|
|
|
619 |
return false;
|
|
|
620 |
});
|
|
|
621 |
|
|
|
622 |
$('#sendProductFeedLink').live('click', function() {
|
|
|
623 |
$("div#sendProductFeedDiv").show();
|
|
|
624 |
$.colorbox({
|
|
|
625 |
inline : true,
|
|
|
626 |
width : "400px",
|
|
|
627 |
height : "140px",
|
|
|
628 |
href : "div#sendProductFeedDiv",
|
|
|
629 |
onClosed : function() {
|
|
|
630 |
$("div#sendProductFeedDiv").hide();
|
|
|
631 |
}
|
|
|
632 |
});
|
|
|
633 |
});
|
|
|
634 |
|
|
|
635 |
});
|
|
|
636 |
|
|
|
637 |
function sendProductFeeds(params) {
|
|
|
638 |
$.ajax({
|
|
|
639 |
type : "POST",
|
|
|
640 |
url : "/Support/google-adwords!sendProductFeeds",
|
|
|
641 |
data : params,
|
|
|
642 |
success : function(response) {
|
|
|
643 |
alert(response);
|
|
|
644 |
$.colorbox.close();
|
|
|
645 |
},
|
|
|
646 |
error : function() {
|
|
|
647 |
alert("Error in sending products feeds");
|
|
|
648 |
$.colorbox.close();
|
|
|
649 |
}
|
|
|
650 |
});
|
|
|
651 |
}
|