added functions to create/update trigger and template type campaigns