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 | |
class fbBusinessManager extends dbFbManager | |
{ | |
//constructor | |
function __construct() { | |
} | |
//Define idFanpage |
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 | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* | |
* @author Jason Davis - https://www.codedevelopr.com/ | |
* | |
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
* | |
* Updated with suggested performance improvement by @PhiSYS. |
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
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.common.exceptions import TimeoutException | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support.ui import Select | |
import time | |
import sys |
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
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.common.exceptions import TimeoutException | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support.ui import Select | |
import re | |
import time |
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
function main(){ | |
var currentAccount = AdsApp.currentAccount(); | |
var todayCost = AdsApp.currentAccount().getStatsFor("TODAY").getCost(); // Затраты сегодня | |
var todayClicks = currentAccount.getStatsFor("TODAY").getClicks(); // Клики сегодня | |
var tagAccounts = 'Samara53'; // Тэг аккаунта для личной статистики | |
sendTelegramMessage( | |
'\nАккаунт ID: ' + currentAccount.getCustomerId() + | |
'\nКликов сегодня: ' + todayClicks + | |
'\nПотрачено сегодня: ' + todayCost + ' ' + currentAccount.getCurrencyCode() + |
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
function main(){ | |
var currentAccount = AdsApp.currentAccount(); | |
var todayCost = AdsApp.currentAccount().getStatsFor("TODAY").getCost(); // Затраты сегодня | |
var todayClicks = currentAccount.getStatsFor("TODAY").getClicks(); // Клики сегодня | |
var todayCpc = currentAccount.getStatsFor("TODAY").getAverageCpc(); // Цена за клик сегодня | |
var todayImpressions = currentAccount.getStatsFor("TODAY").getImpressions(); // Кол-во показов сегодня | |
var tagAccounts = 'Samara53'; // Тэг аккаунта для личной статистики | |
sendTelegramMessage( | |
'\nАккаунт ID: ' + currentAccount.getCustomerId() + |
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
function main(){ | |
var currentAccount = AdsApp.currentAccount(); | |
var todayCost = AdsApp.currentAccount().getStatsFor("TODAY").getCost(); // Затраты сегодня | |
var todayClicks = currentAccount.getStatsFor("TODAY").getClicks(); // Клики сегодня | |
var todayCpc = currentAccount.getStatsFor("TODAY").getAverageCpc(); // Цена за клик сегодня | |
var todayImpressions = currentAccount.getStatsFor("TODAY").getImpressions(); // Цена за клик сегодня | |
var allCost = currentAccount.getStatsFor("ALL_TIME").getCost(); // Потрачено за всё время | |
var tagAccounts = 'Samara53'; // Тэг аккаунта для личной статистики | |
var countDays = 7; // Сколько дней присылать уведомления | |
var dateStart = "2021/01/10"; // Дата старта от которой считать дни |
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
import glob, os | |
import zlib | |
import urllib | |
import socket | |
import requests | |
import ipaddress | |
import time | |
import urllib.request | |
import urllib.error | |
import subprocess |