This trial is conducted in Europe and North and South America. The aim of the trial is to investigate the efficacy and safety of semaglutide once-weekly versus exenatide ER (extended release) 2.0 mg once-weekly as add-on to 1-2 oral antidiabetic drugs (OADs) in subjects with type 2 diabetes.