This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var CONFIG = { | |
| // Указать минимальное количество дней до окончания средств на аккаунте для отправки уведомления. | |
| days : 7, | |
| // Указать почты для отправки уведомлений, через запятую, если больше одной | |
| email : ['email@gmail.com', 'email2@gmail.com'], | |
| // Указать ники/имена кому отправляется письмо, через запятую, если больше одного | |
| names : ['name', 'name2'], | |
| // Помечаем необходимые для отслеживания аккаунты ярлыком, пример - BudgetControl | |
| labelName : ['BudgetControl'] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| switch ($modx->event->name) { | |
| case 'OnManagerPageInit': | |
| // Вариант 1. Сразу задать значение GET параметра. | |
| $code = 2016; | |
| // Вариант 2. Создать системную настройку adminCode и в ней выставить значение | |
| // $code = $modx->getOption('adminCode'); | |
| // Тут мы проверяем GET параметр code | |
| if ($modx->user->id == 0 && (!isset($_GET['code']) || $_GET['code'] != $code)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This script reviews your GDN placements for the following conditions: | |
| // 1) Placements that are converting at less than $40 | |
| // 2) Placements that have cost more than $50 but haven't converted | |
| // 3) Placements that have more than 5K impressions and less than .10 CTR | |
| function main() { | |
| var body = "<h2>Google Display Network Alert</h2>"; | |
| body += "<h3>Placements that are converting at less than $40:</h3> " ; | |
| body += "<ul>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************** | |
| * YouTube Channels Cleaner | |
| * | |
| * Version 2.0 | |
| * Date 25.03.2017 | |
| * | |
| * Created by: Dmytro Tonkikh | |
| ******************************************/ | |
| var dataFile = "videoIds.txt"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Автор: Виталий Уржумов | |
| //email: cpc@urzhumov.ru | |
| //Сайт: www.urzhumov.ru | |
| //Скрипт BadKeywords останавливает ключевые слова с низким показателем качества и присваиваем им ярлык, | |
| //чтобы можно было такие слова потом быстро найти | |
| //значение, меньше которого фразу считать не качественной | |
| var QualityScore = 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Чтобы скрипт знал с какими компаниями работать, для них нужно добавить ярлык с именем 'scriptCtrl' | |
| //Ярлык с именем "maxCPC15" укажет максимальное значение ставки. В данном случае ставка равна 15 | |
| //Желательно запускать каждый час | |
| // Повышающий коэффициент. Т.е. если он равен 1.05 то изменение составит 5%. | |
| var COEFFICIENT = 1.08; | |
| //работать с фразами у которых за определенный период было не более IMPRESSIONS показов | |
| var IMPRESSIONS = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Чтобы скрипт знал с какими компаниями работать, для них нужно добавить ярлык с именем 'scriptCtrl' | |
| //Ярлык с именем "maxCPC15" укажет максимальное значение ставки. В данном случае ставка равна 15 | |
| //ярлык targetPosition2.4 указывает, что надо удерживать среднюю позиция 2.4 | |
| // Допустимое отклонение для средней позиции. Т.е. если допустимое отклонение = 0.1 а целевая позиция = 2, то скрипт не затронет ключи с позицией 1.9 и 2.1. | |
| var TOLERANCE = 0.2; | |
| // Множитель для изменения ставок. Т.е. если он равно 1.05 то ставки опустятся или поднимутся на 5%. | |
| var BID_ADJUSTMENT_COEFFICIENT = 1.02; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Yandex.Metrika counter --> | |
| <script type="text/javascript"> | |
| var BrowserDetect = { | |
| init: function () { | |
| this.browser = this.searchString(this.dataBrowser) || "--";//An unknown browser | |
| this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "--";//an unknown version | |
| this.OS = this.searchString(this.dataOS) || "--";//an unknown OS | |
| }, | |
| searchString: function (data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Чтобы скрипт знал с какими компаниями работать, для них нужно добавить ярлык с именем 'SC' - script control | |
| //Ярлык с именем "maxCPC15" укажет максимальное значение ставки. В данном случае ставка равна 15 | |
| //ярлык targetPosition2.4 указывает, что надо удерживать среднюю позиция 2.4 | |
| // Допустимое отклонение для средней позиции. Т.е. если допустимое отклонение = 0.1 а целевая позиция = 2, то скрипт не затронет ключи с позицией 1.9 и 2.1. | |
| var TOLERANCE = 0.2; | |
| // Множитель для изменения ставок. Т.е. если он равно 1.05 то ставки опустятся или поднимутся на 5%. | |
| // На повышение обычно множитель больше, так как важнее быть выше, чем ниже | |
| var BID_ADJUSTMENT_COEFFICIENT_up = 1.035; |