Skip to main content
All CollectionsWeatherAds Quick-Start GuidesYouTube
How to Set Up WeatherAds for YouTube Campaigns
How to Set Up WeatherAds for YouTube Campaigns

In this tutorial you’ll learn how to set up weather based automation and contextual triggers for your YouTube campaigns using WeatherAds.

Updated over 4 months ago

To use WeatherAds with YouTube, you must first connect your Google Ads account with WeatherAds.

Only YouTube campaigns run via Google Ads are compatible with WeatherAds. YouTube campaigns created in Display & Video 360 are not currently compatible with WeatherAds due to the limitations of Google’s API for DV360.

In order to use WeatherAds for YouTube campaigns you must install a code snippet into your Google Ads account. The installation of the code snippet enables WeatherAds to make changes to your YouTube campaign. You will only need to perform this step once in order to authorize WeatherAds for YouTube. This guide will walk you through this process.

  1. in your WeatherAds dashboard, click on ‘Create Automation’.

  2. Give your automation a name and select ‘YouTube’ as the channel. Click ‘Save & Continue’.

  3. You will see an intro splash screen for YouTube. Click 'Next'.

  4. Copy the script code snippet by clicking ‘copy’.

  5. Sign in to your Google Ads account. If you have more than one Google Ads account, ensure you are logged in to your Master (MCC) account and not a sub-account / client account.

  6. In the menu on the left hand side, navigate to ‘Tools’ > ‘Bulk Actions’ > ‘Scripts’

  7. Click the large blue circle with the + icon, and select ‘new script’.

  8. Delete any code that is already there, and paste in the copied WeatherAds code snippet.

  9. Give your script a name, e.g. 'WeatherAds YouTube Script'. In the bottom right hand corner, click ‘Run’ > ‘Run without preview’.

  10. A small browser window will pop up to authorize the script. Simply follow the authorization step and click ‘Allow’ in the prompt. If you return back to the same screen as before after running through the authorization flow, simply hit ‘Run’ > ‘Run without preview’ a second time.

  11. **IMPORTANT** Navigate to the ‘Scripts’ tab, and under frequency, set the frequency to ‘hourly’ (by default it is set to daily). This will ensure the script runs on an hourly basis, and that your YouTube campaign will be automatically updated according to the latest weather and contextual signals.

  12. Once the script is enabled, navigate back to WeatherAds and click ‘test script installation’ button. You should get a message confirming that the script has been successfully installed.

  13. Continue on through the WeatherAds automation flow as normal - you can learn more about creating an automation for Google Ads here.


You can view your script’s run logs and historic changes (once you have set your automation live), by navigating to the ‘Script history’ tab in Google Ads.


If you are experiencing issues with your YouTube automation due to an error with the script (Google Ads is showing error messages in the YouTube script history), you can follow the steps below to troubleshoot:

  1. Pause your YouTube automation(s) in WeatherAds

  2. Disable the script in Google Ads

  3. Repeat the script installation process as described in this tutorial.

    Note: Once your script has been disabled in Google Ads, it can take up to 24 hours for the change to be updated in WeatherAds. If you are not seeing the YouTube installation splash screen, within the YouTube automation creation flow, please log out and try again a few hours later.

  4. Restart your YouTube automations in WeatherAds.

Did this answer your question?