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
// Author : Vincent Hsu twitter.com/suisseo | |
// This function returns the total cost for today | |
function getTodayTotalCost(){ | |
var totalcost = AdWordsApp.currentAccount().getStatsFor("TODAY").getCost(); | |
} | |
return totalcost; | |
} |
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
// Author Vincent Hsu @suisseo | |
// In this example the targeted location bids are increased by 10% (0.10) | |
var locationSelector = AdWordsApp.targeting() | |
.targetedLocations() | |
//.withCondition("CampaignName CONTAINS_IGNORE_CASE 'somecampaignName'") | |
var locationIterator = locationSelector.get(); | |
while (locationIterator.hasNext()) { | |
var location = locationIterator.next(); |
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
// D'ont forget to change suisseo.ch en your own domain | |
// 12036452-2 in the expid of your experiment | |
// test = 1 to the variable that will trigger the change | |
// Author : Vincent Hsu twitter.com/suisseo | |
<script> | |
_udn ="suisseo.ch"; | |
</script> | |
<script> | |
function getUrlVars(url) { |
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
// Overwrites Ajax requests on a page, used to track ajax stuff with tag manager, or to test stuff with visual website | |
// optimizer or optimizely | |
function addXMLRequestCallback(callback){ | |
let oldSend, i; | |
if( XMLHttpRequest.callbacks ) { | |
// we've already overridden send() so just add the callback | |
XMLHttpRequest.callbacks.push( callback ); | |
} else { | |
// create a callback queue |
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
1.Uploader la Base de donnée à transférer en sql ou gzip via le ftp (avec winscp par exemple) | |
2 : Récupérer les infos pour la connexion SSH avec le serveur de fichier | |
Serveur SSH : ssh.cluster***.ovh.net | |
Utilisateur : ****** | |
Mot de passe : ****** | |
Télécharger Putty et faire bien attention d'aller dans connection et mettre par exemple 120s (Seconds between keepalives (0 to turn of)) pour éviter d'être sans cesse déconnecté |
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 module can be used to trigger the Google Adwords remarketing or conversion tag asynchronously only when you need it (lazy loading) without loading unused ressources | |
// Mostly useful when the Google Remarketing tag or Conversion tag is triggered only on specific conditions. | |
// Author : Vincent Hsu -> twitter.com/suisseo -> http://www.suisseo.ch | |
// Language : Javascript | |
// Usage : googremarketing.loadTag(conversionid, conversionlabel) | |
// Start Google Remarketing Module | |
var googremarketing = (function() { | |
var asyncload = 0; | |
// Load Async Google Adwords remarketing code | |
function Gremloader() { |
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
// Sum all rows by day in a 2 column Google Spreadsheet containing a date and a number : I use it with a trigger that runs every day | |
// To free space in a constantly updated spreadsheet. | |
// Author : Vincent Hsu -> twitter.com/suisseo -> http://www.suisseo.ch | |
// Language : Javascript | |
// Usage : aggregateDailySum(tabname,days) | |
// where tabname is the a string containing the name of the tab to update and days a number : if days is for example 1 the script | |
// will look look for all rows containing yesterday's date in the first column and sum the numbers in the second column, then it will | |
// delete the rows and insert the summed up row. Dates must be sorted in order for the script to work. | |
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() { | |
Logger.log('AdWordsApp.extensions().sitelinks() list.'); | |
logSitelinks(AdWordsApp); | |
Logger.log('Campaign and AdGroup list.'); | |
var campIter = AdWordsApp.campaigns().get(); | |
while(campIter.hasNext()) { | |
var camp = campIter.next(); | |
logSitelinks(camp); | |
var agIter = camp.adGroups().get(); |
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
// Title : SiteLink 404 Checker Mcc level script for Single Account go here : https://goo.gl/QyuuG2 | |
// Author : Vincent Hsu @suisseo | |
// Website : http://www.suisseo.ch/en | |
// Checks sitelinks in campaigns and adgroups with at least 1 impression during the last 30 days | |
// for 50 first accounts with over than 100 impressions during the last 30 days in your MCC | |
// Broken links are simply logged in the adwords console. An e-mail is sent to you when the script is executed. | |
//You should add your e-mail here. | |
var emailAlert= "[email protected]"; |
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
// Title : SiteLink 404 Checker Account Level for Mcc level : https://goo.gl/P0SKk3 | |
// Author : Vincent Hsu @suisseo | |
// Website : http://www.suisseo.ch/en | |
// Checks sitelinks in campaigns and adgroups with at least 1 impression during the last 30 days | |
// Broken links are simply logged in the adwords console. An e-mail is sent to you when the script is executed. | |
//You should add your e-mail here. | |
var emailAlert= "[email protected]"; | |
function main() { |
OlderNewer