I have a Google Ads Script, which is supposed to notify me via e-mail, when products in my merchant center account are disapproved.
There is a "include" filter field in this script, which limits the monitored products, however, I can't get it to work. Everything else seems to be working.
This is the part of the script, where you can filter the products:
var productIdToInclude = [];
I have tried the following versions, to no avail:
var productIdToInclude = ["product123"]; var productIdToInclude = ['product123']; var productIdToInclude = [product123];
This is the comment in the script about this filter:
// Filters // These two variables store the product ID's that we want to filter by. // The ID's need to be in string format e.g. productIdToInclude = ["123"];
The whole script can be found here.
I believe, that I have a synthax error, but I can't figure it out.