Open joeycozza opened 9 years ago
Good catch. I'll refactor that in soon.
Any ideas solving that issue? Making each call forcing a delay of at least 1.5 secs.
@AlonMiz This module is no longer being actively maintained. Please refer to https://github.com/therebelrobot/google-adwords#google-adwords for more info. If you'd like to take up maintaining it, let me know, I just don't have the bandwidth for it anymore.
The problem occurs with 2 separate calls to self.awql. my.awqlOptions gets overwritten there, then later lib/googleadwords.js line 130 sets the variable my.awqlOptions to an empty object, so a race condition is happening.
It seems like it would be better to have the options get passed into _sendAWQL instead of using single modular level variable.