Skip to content

Simple script for validating final urls with Google Ads Scripts

Notifications You must be signed in to change notification settings

PatrickSchababerle/google-ads-linkchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Google Ads Link Checker 👋

Version Documentation Maintenance License: ISC

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. '[email protected],yy.company.com'
  *   replyTo     -> This is the reply-to adress of the message
  */
  
  mail : {
    recipient : '[email protected]',
    replyTo : '[email protected]'
  },
  
  /**
  *
  * "Do not touch"-area
  *
  * These functions are used for the setup 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.

Changelog

  • 1.0.1 Bugfix regarding url gathering from extensions
  • 1.0.0 Initial Release

Author

👤 Patrick Schababerle

Show your support

Give a ⭐️ if this project helped you!


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