Google Ads Scripts Forum Advisor
unread,Nov 11, 2019, 2:55:46 PM11/11/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwords-scripts+apn2wqeiau4hbtxb...@googlegroups.com, adwords-scripts+apn2wqeiau4hbtxb...@googlegroups.co, adwords...@googlegroups.com
Hi Martijn,
Thank you for providing access to the spreadsheet. I've tested your script and at the moment, the issue I see is that your negativeKeywords array contains an empty item at the end of the array, which throws the error when the array of negatives gets added to an existing negatives list:
Invalid argument: keywordText. Should be of type: non-empty string (file Code.gs, line 82)
You understand the ranges better as the author of the script and spreadsheet, but a quick fix is just popping up off the last item of the array:
//lastly, add the negative keywords to the list
negativeKeywords.pop();
negativeKeywordList.addNegativeKeywords(negativeKeywords);
Regarding the 'Item not found' error: I have reported this to our team for further review.