Thanks for mentioning that you have an internal logic for your script. I'd appreciate it if you can provide the file that contains the internal logic you have written so I can assist you further. You may send them privately via the reply to author option. Note that you may need to join the Google Group for you to use this option. If this option is not available at your end still, you may send it through our email (googleadsscr...@google.com
As a side note, if you're having trouble receiving replies from us, please check your Spam folder. Additionally, please add the 'From address' on that email to your contact list to ensure we aren't flagged as Spam in future messages. If you don't see a message from us in your Spam folder, please email us directly through the email stated above referring to this forum thread.
Looking forward to your reply.