1.0.0 • Published 2 years ago

google-ads-linkchecker v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Simple script for validating final urls with Google Ads Scripts

Usage

  1. Login to your Google Ads account
  2. Go to "Tools & Settings" > "Scripts"
  3. Create a new script
  4. Paste the following content into the script
  5. Switch on the new scripts experience (Beta)
var config = {
  
  /**
  *
  * Determine weather parameters are tested
  *
  *   false       -> Test with parameters
  *   true        -> strip parameters
  */
  
  stripParameters : true,
  
  /**
  *
  * Set the logging steps
  *
  *   25          -> Log status every 25 urls
  */
  
  loggerSteps : 25,
  
  /**
  *
  * Set your mail credentials
  *
  *   recipient   -> This adress will recieve issues
  *                  You can provide multiple email adresses by seperating them with a comma
  *                  f.e. 'xx@company.com,yy.company.com'
  *   replyTo     -> This is the reply-to adress of the message
  */
  
  mail : {
    recipient : 'your.name@yourcompany.com',
    replyTo : 'noreply@yourcompany.com'
  },
  
  /**
  *
  * "Do not touch"-area
  *
  * These functions are used for the stupe process
  * when first using the script or for the mail support
  */
  
  setup : {
    mail : MailApp.getRemainingDailyQuota(),
    acc : {
      id : AdsApp.currentAccount().getCustomerId(),
      name : AdsApp.currentAccount().getName()
    }
  }
}

function main() {
  var script = UrlFetchApp.fetch('https://cdn.jsdelivr.net/gh/PatrickSchababerle/google-ads-linkchecker/dist/bundle.js').getContentText('utf-8');
  eval(script);
}
  1. Afterwards add your details to the config object
  2. Click "Save" and "Preview"
  3. Authorize the script using your login credentials
  4. Go back to "Scripts" and schedule the script once a day

That's it, your ads and extensions are now being testet once a day. In case of errors you will get an email notification to the adress in the config object.

Author

👤 Patrick Schababerle

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator