| Line 20... |
Line 20... |
| 20 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
20 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 21 |
$('#adgroupNameUpdate').val('');
|
21 |
$('#adgroupNameUpdate').val('');
|
| 22 |
$('#adgroupStatusUpdate').val('2');
|
22 |
$('#adgroupStatusUpdate').val('2');
|
| 23 |
$('#catalogItemIdUpdate').val('');
|
23 |
$('#catalogItemIdUpdate').val('');
|
| 24 |
$('#bidAmountUpdate').val('');
|
24 |
$('#bidAmountUpdate').val('');
|
| - |
|
25 |
$('#stockLinkedUpdate').attr("checked",false);
|
| 25 |
|
26 |
|
| 26 |
$('#campaignListUpdate3').val('-1');
|
27 |
$('#campaignListUpdate3').val('-1');
|
| 27 |
$('#adgroupListUpdate2').find("option").remove();
|
28 |
$('#adgroupListUpdate2').find("option").remove();
|
| 28 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
29 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 29 |
$('#keywordListUpdate1').find("option").remove();
|
30 |
$('#keywordListUpdate1').find("option").remove();
|
| Line 355... |
Line 356... |
| 355 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
356 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 356 |
$('#adgroupNameUpdate').val('');
|
357 |
$('#adgroupNameUpdate').val('');
|
| 357 |
$('#adgroupStatusUpdate').val('2');
|
358 |
$('#adgroupStatusUpdate').val('2');
|
| 358 |
$('#catalogItemIdUpdate').val('');
|
359 |
$('#catalogItemIdUpdate').val('');
|
| 359 |
$('#bidAmountUpdate').val('');
|
360 |
$('#bidAmountUpdate').val('');
|
| - |
|
361 |
$('#stockLinkedUpdate').attr("checked",false);
|
| 360 |
|
362 |
|
| 361 |
$('#campaignListUpdate3').val('-1');
|
363 |
$('#campaignListUpdate3').val('-1');
|
| 362 |
$('#adgroupListUpdate2').find("option").remove();
|
364 |
$('#adgroupListUpdate2').find("option").remove();
|
| 363 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
365 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 364 |
$('#keywordListUpdate1').find("option").remove();
|
366 |
$('#keywordListUpdate1').find("option").remove();
|
| Line 385... |
Line 387... |
| 385 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
387 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 386 |
$('#adgroupNameUpdate').val('');
|
388 |
$('#adgroupNameUpdate').val('');
|
| 387 |
$('#adgroupStatusUpdate').val('2');
|
389 |
$('#adgroupStatusUpdate').val('2');
|
| 388 |
$('#catalogItemIdUpdate').val('');
|
390 |
$('#catalogItemIdUpdate').val('');
|
| 389 |
$('#bidAmountUpdate').val('');
|
391 |
$('#bidAmountUpdate').val('');
|
| - |
|
392 |
$('#stockLinkedUpdate').attr("checked",false);
|
| 390 |
|
393 |
|
| 391 |
$("#campaignListUpdate3").find("option:gt(0)").remove();
|
394 |
$("#campaignListUpdate3").find("option:gt(0)").remove();
|
| 392 |
$.ajax({
|
395 |
$.ajax({
|
| 393 |
type : 'GET',
|
396 |
type : 'GET',
|
| 394 |
url : '/Support/google-adwords!getCampaigns',
|
397 |
url : '/Support/google-adwords!getCampaigns',
|
| Line 439... |
Line 442... |
| 439 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
442 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 440 |
$('#adgroupNameUpdate').val('');
|
443 |
$('#adgroupNameUpdate').val('');
|
| 441 |
$('#adgroupStatusUpdate').val('2');
|
444 |
$('#adgroupStatusUpdate').val('2');
|
| 442 |
$('#catalogItemIdUpdate').val('');
|
445 |
$('#catalogItemIdUpdate').val('');
|
| 443 |
$('#bidAmountUpdate').val('');
|
446 |
$('#bidAmountUpdate').val('');
|
| - |
|
447 |
$('#stockLinkedUpdate').attr("checked",false);
|
| 444 |
|
448 |
|
| 445 |
$('#campaignListUpdate3').val('-1');
|
449 |
$('#campaignListUpdate3').val('-1');
|
| 446 |
$('#adgroupListUpdate2').find("option").remove();
|
450 |
$('#adgroupListUpdate2').find("option").remove();
|
| 447 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
451 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 448 |
$('#keywordListUpdate1').find("option").remove();
|
452 |
$('#keywordListUpdate1').find("option").remove();
|
| Line 520... |
Line 524... |
| 520 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
524 |
$('#adgroupListUpdate1').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 521 |
$('#adgroupNameUpdate').val('');
|
525 |
$('#adgroupNameUpdate').val('');
|
| 522 |
$('#adgroupStatusUpdate').val('2');
|
526 |
$('#adgroupStatusUpdate').val('2');
|
| 523 |
$('#catalogItemIdUpdate').val('');
|
527 |
$('#catalogItemIdUpdate').val('');
|
| 524 |
$('#bidAmountUpdate').val('');
|
528 |
$('#bidAmountUpdate').val('');
|
| - |
|
529 |
$('#stockLinkedUpdate').attr("checked",false);
|
| 525 |
|
530 |
|
| 526 |
$('#campaignListUpdate3').val('-1');
|
531 |
$('#campaignListUpdate3').val('-1');
|
| 527 |
$('#adgroupListUpdate2').find("option").remove();
|
532 |
$('#adgroupListUpdate2').find("option").remove();
|
| 528 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
533 |
$('#adgroupListUpdate2').append($("<option></option>").val('-1').html('---Select AdGroup---'));
|
| 529 |
$('#keywordListUpdate1').find("option").remove();
|
534 |
$('#keywordListUpdate1').find("option").remove();
|
| Line 610... |
Line 615... |
| 610 |
$("#adgroupListUpdate1").change(function () {
|
615 |
$("#adgroupListUpdate1").change(function () {
|
| 611 |
$('#adgroupNameUpdate').val('');
|
616 |
$('#adgroupNameUpdate').val('');
|
| 612 |
$('#adgroupStatusUpdate').val('2');
|
617 |
$('#adgroupStatusUpdate').val('2');
|
| 613 |
$('#catalogItemIdUpdate').val('');
|
618 |
$('#catalogItemIdUpdate').val('');
|
| 614 |
$('#bidAmountUpdate').val('');
|
619 |
$('#bidAmountUpdate').val('');
|
| - |
|
620 |
$('#stockLinkedUpdate').attr("checked",false);
|
| 615 |
$.ajax({
|
621 |
$.ajax({
|
| 616 |
type : 'GET',
|
622 |
type : 'GET',
|
| 617 |
url : '/Support/google-adwords!getAdGroupDetails',
|
623 |
url : '/Support/google-adwords!getAdGroupDetails',
|
| 618 |
data : 'adgroupId=' + $(this).val(),
|
624 |
data : 'adgroupId=' + $(this).val(),
|
| 619 |
dataType : 'json',
|
625 |
dataType : 'json',
|
| 620 |
success : function(reply) {
|
626 |
success : function(reply) {
|
| 621 |
$('#adgroupNameUpdate').val(reply.Name);
|
627 |
$('#adgroupNameUpdate').val(reply.Name);
|
| 622 |
$('#adgroupStatusUpdate').val(reply.Status);
|
628 |
$('#adgroupStatusUpdate').val(reply.Status);
|
| 623 |
$('#catalogItemIdUpdate').val(reply.CatalogItemId);
|
629 |
$('#catalogItemIdUpdate').val(reply.CatalogItemId);
|
| 624 |
$('#bidAmountUpdate').val(reply.BidAmount);
|
630 |
$('#bidAmountUpdate').val(reply.BidAmount);
|
| - |
|
631 |
if(reply.StockLinked=='1'){
|
| - |
|
632 |
$('#stockLinkedUpdate').attr("checked",true);
|
| 625 |
|
633 |
}
|
| 626 |
}
|
634 |
}
|
| 627 |
});
|
635 |
});
|
| 628 |
});
|
636 |
});
|
| 629 |
|
637 |
|
| 630 |
$("#campaignListUpdate3").change(function () {
|
638 |
$("#campaignListUpdate3").change(function () {
|