〜おかげで This pattern is used to give credit for a good result ("thanks to ~"). It shows gratitude — for bad results, use せいで.
Formation
plain form + おかげで (な-adjective + な / noun + の)
| 先生 | 先生 + の + おかげで | 先生のおかげで |
| 薬 | 薬 + の + おかげで | 薬のおかげで |
| 手伝う | 手伝ってくれた + おかげで | 手伝ってくれたおかげで |
Examples
先生のおかげで、試験に合格できました。
Thanks to my teacher, I was able to pass the exam.
友達が手伝ってくれたおかげで、早く終わった。
Thanks to my friend helping me, I finished early.