Variables are containers that store customizable data values. To work, a variable must correspond to specific objects and entities in your Google Ads account.
A variable is expressed by Var followed by something in the script code.
Example: Var keywords = AdsApp.keywords()
There are 4 types of objects in Google Ads: AdsApp, SpreadsheetApp, AdsmanagerApp and UrlFetchApp.
AdsApp is however the best known and most used in Google Ads.
There are several entities in the AdsApp object including the following: Accounts, campaigns, ad groups, ad parameters, ad schedule, budgets etc.
Selectors are filters. Your script will use it to extract data from your Google Ads account. Most selectors fall into one of the following categories: withCondition( ), withIds( ), forDateRange( ), orderBy( ), and withLimit( ).
To refine your data, you can use multiple selectors at once.
These are the commands in your code. Methods allow you to automate certain tasks. They are many. But the most common are recognized in the code by Get, Set, Add.
Iterators create loops and allow your script to fire and continuously return valid data.
Why use Google Ads Scripts
We use Google Ads scripts for one main reason: to save time.
Optimizing Google Ads accounts is a tedious task especially for large accounts. Automating these processes with custom or preconfigured scripts not only saves you valuable time, but also allows you to detect problems or errors and opportunities that escape the naked eye.
With Google Ads scripts, you can for example:
- automate the adjustment of your real bids;
- have visual representations of users’ search behavior (heat maps);
- monitor the quality level of your keywords;
- pause ads with low CTR;
- benefit from precise reports on broken links;
- analyze your advertising expenditure.
How to configure Google Ads Scripts
To write a Google Ads Script, you need to follow these steps :
- log in to your Google Ads account;
- click on TOOLS AND SETTINGS from the main menu of your account;
- click on Scripts from the Bulk Actions section;
- click on the icon;
- Click New Script to write a completely new script or Start from a new template.
- Give your script a name or rename it ;
- Click on Allow button which is displayed at the top right end of the page.
The newly configured script will show up in the scripts dashboard in enabled mode.
Examples of usable scripts
are numerous on the Web. The ones you are thinking of are probably already created and used by Google partners
. Seek and you will find. And if that happens, know that you can import them into your Google Ads account in order to use them..