Memory limit in AdWords scripts

214 views
Skip to first unread message

john doe

unread,
Feb 14, 2017, 5:14:23 PM2/14/17
to AdWords Scripts Forum
Hey,
I have an issue, which I cant find solution to.
Last week i keep getting error
Exceeded memory limit
My code loads csv filed and makes arrays of them. It worked good for half a year now, without any errors. And nothing really changed recently.
The thing is, error is not poiting to any row of code and I cant catch it with try{}catch(){}, it still breaks execution even if a put this problem code in try{}.
And i cant find any description to this error.
Another thing to point - it breaks on a different files and different amount of data processed.
Iterating through files goes ok, problems start when i start getting content of it.
I cant get, what type of memory is exceeded, array sizes of string sizes when i parse csv, or overall memory used by script? And how can i clean it and aoid this error?
Please help someone!

Paul Justine de Honor

unread,
Feb 15, 2017, 1:38:43 AM2/15/17
to AdWords Scripts Forum
Hi John,

Would be able to provide the CID and the name of the script so we could further investigate? Please use reply privately to author.

Also, you may check AdWords Scripts limits here.

Thanks,
Paul Justine De Honor
AdWords Scripts Team

Kilian

unread,
Feb 15, 2017, 4:24:37 AM2/15/17
to AdWords Scripts Forum
Hey AdWords Script Team,
I am running into the exact same error described by John: 
Exceeded memory limit
And I have the same problem that no hint is given what exactly causes the memory problem.
I have a custom modified version of the base code from the Google "Link Checker" Script (MCC version) with a lot of modifications.
The script loads about 25k strings from a spreadsheet and stores them in one array. This is okay so far. After fetching entities with the limit of 50k the error occurs randomly in every thread during processing of entities. For smaller MCC accounts the error doesn´t appear, But in huge MCC accounts, meanwhile it happens on every run. In the AdWords Limit documentation nothing is described about 'memory limits'.
Any advice is appreciated. 

Kind regards,
Kilian     

Anash Oommen

unread,
Feb 15, 2017, 12:27:04 PM2/15/17
to AdWords Scripts Forum
Folks,

This is a known issue at our end. We are working on a fix; I will update this thread once the fix is live.

Cheers,
Anash P. Oommen,
AdWords Scripts Team.

Anash Oommen

unread,
Feb 15, 2017, 5:48:34 PM2/15/17
to AdWords Scripts Forum
Folks,

This issue should be fixed now, let me know if you continue to see errors.

Cheers,
Anash P. Oommen,
AdWords Scripts Team.

On Wednesday, February 15, 2017 at 4:24:37 AM UTC-5, Kilian wrote:

Kilian

unread,
Feb 16, 2017, 6:00:34 AM2/16/17
to AdWords Scripts Forum
Hey Anash, 

I can confirm that the issue seems to be fixed: Last three test runs the error message did not appear anymore. 
Thanks for the quick fix and good job there! 

Kind regards,
Kilian 
Reply all
Reply to author
Forward
0 new messages