N-Gram Script

533 views
Skip to first unread message

HG

unread,
Jul 20, 2023, 4:55:04 AM7/20/23
to Google Ads Scripts Forum
I use the updated (for the New Scripts Experience) N-Gram report, however it keeps returning this error:

TypeError: Cannot read properties of undefined (reading 'id')
    at main (Code:236:59)
    at Object.<anonymous> (adsapp_compiled:20166:54)

I haven't changed the script in any way. Can anyone help?

Thank you. 


Google Ads Scripts Forum

unread,
Jul 20, 2023, 9:06:36 AM7/20/23
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/RyjZ4xlOQp8) from the forum as it wasn't routed to our support queue. 

 Regards,
Google Ads Scripts Support Team

HG

unread,
Jul 20, 2023, 9:07:46 AM7/20/23
to Google Ads Scripts Forum
I haven't made this inquiry before. 

Google Ads Scripts Forum

unread,
Jul 20, 2023, 9:26:43 AM7/20/23
to Google Ads Scripts Forum

Hello,


Thank you for reaching out to the Google Ads Scripts Support Team. Please excuse us for only getting back now as your message failed to be routed to our support queue.


I understand you encountered an issue with your N-Gram script. For us to investigate the cause of the issue, kindly provide the following information privately via the “Reply to Author” option or by sending the details to our email <googleadsscr...@google.com>:


On the other hand, if you are using the Search Query N-Gram Performance Script created by Brainlabs, it would be best if you reach out to the Brainlabs support instead for better assistance regarding their script. 


Looking forward to your response.


Regards,

Google Ads Scripts support team


HG

unread,
Aug 8, 2023, 9:01:37 AM8/8/23
to Google Ads Scripts Forum
Hello,

I already sent this information. No one has replied to me. 

Regards

Google Ads Scripts Forum Advisor

unread,
Aug 8, 2023, 2:33:23 PM8/8/23
to adwords...@googlegroups.com
Hello,

I've checked our messages and I can't find your information. Could you please try to send us once again the requested information? You may send it via googleadsscr...@google.com support channel as well. Kindly include the forum link of this thread, so we could trace back where it came from.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2nd1fb:ref"

Thanks,
 
Google Logo Google Ads Scripts Team


Nils Rooijmans

unread,
Aug 9, 2023, 2:51:10 AM8/9/23
to Google Ads Scripts Forum
Not sure if this is the issue, but if you’re using the Google Ads n-gram script (aka ‘Search Query Mining Tool’) you may have noticed it’s not working in the new Google Ads scripts experience.

It throws an error like:

InputError: shared_criterion.keyword.text || shared_criterion.placement.url || etc.

The issue is caused by an AWQL query that is not compatible with the new script environment.

To fix the issue I’ve updated the script so that it now uses GAQL to retrieve the data.

Here's the link to the script:
https://nilsrooijmans.com/updated-google-ads-script-brainlabs-search-query-mining-for-n-gram-analysis/

Hope this helps,

Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/

HG

unread,
Aug 9, 2023, 3:02:22 AM8/9/23
to Google Ads Scripts Forum
Hi Nils, 

I'm actually using your updated script - it works great for my other clients! Thank you for putting it out there, it's been really helpful. 

I just keep getting this with one client, it makes no sense. 

Kind Regards

Nils Rooijmans

unread,
Aug 9, 2023, 3:28:00 AM8/9/23
to Google Ads Scripts Forum
please send me an email with the details, and I can see what I can do.

HG

unread,
Aug 9, 2023, 3:42:45 AM8/9/23
to Google Ads Scripts Forum
Thank you so much Nils, I've sent you an email. 

Jacob Messi sina

unread,
Aug 12, 2023, 8:44:36 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum

DVpsaLMh9J

SAVITA DEVI

unread,
Aug 12, 2023, 8:44:58 AM8/12/23
to Google Ads Scripts Forum on behalf of HG

KogfmQrOGT

Dasch Shaub

unread,
Aug 12, 2023, 8:45:15 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum

ScC7K7ZvKe

Mohammed shaaba Kpatako

unread,
Aug 12, 2023, 8:45:15 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum

ReAlo97S5d

Mohammed shaaba Kpatako

unread,
Aug 12, 2023, 8:45:20 AM8/12/23
to Google Ads Scripts Forum on behalf of HG

QfGWV2Zi49

Dasch Shaub

unread,
Aug 12, 2023, 8:45:20 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum
ry6TmyUmDp

Faixa Hamosu

unread,
Aug 12, 2023, 8:45:26 AM8/12/23
to Nils Rooijmans via Google Ads Scripts Forum

N94jS2XaYL

rinki kumari

unread,
Aug 18, 2023, 8:44:02 AM8/18/23
to Google Ads Scripts Forum on behalf of HG

47Mz1cs45Y

SAVITA DEVI

unread,
Aug 18, 2023, 8:51:07 AM8/18/23
to Google Ads Scripts Forum

7iM4jC5kAu

Mohammed shaaba Kpatako

unread,
Aug 18, 2023, 8:51:10 AM8/18/23
to Nils Rooijmans via Google Ads Scripts Forum
8N7OSrbp2r

Nokleby Cecena

unread,
Aug 18, 2023, 9:07:13 AM8/18/23
to Google Ads Scripts Forum

jD4TZRvMJJ

sonu Kumar

unread,
Aug 18, 2023, 9:46:26 AM8/18/23
to Google Ads Scripts Forum

qA1N0nGWNH

Antoaneta Grigorova

unread,
Sep 18, 2023, 10:55:39 AM9/18/23
to Google Ads Scripts Forum
Hi Nils, did you manage to resolve this with this user, we're seeing the same error with your script too? 
Reply all
Reply to author
Forward
0 new messages