Are there any restrictions for promoting my books in a course?
This stuff is all covered in the instructor terms.
Yes, only allowed in Bonus lecture.
https://www--udemy--com.udemy.coolkeypoint.com/terms/instructor/