I'm trying to insert/update multiple contacts (1000+) to google like that:
(in cycle:)
if (contact == null) {
contact = ContactsApp.createContact(first_name, last_name, email);
group.addContact(contact);
} else {
contact.setFullName(first_name+' '+last_name);
contact.setGivenName(first_name);
contact.setFamilyName(last_name);
}
It is working properly however in about 1 minute (100-130 contacts added) the script stops with:
Error Exceeded maximum execution time
Is there a way around this?