I wonder how many that have posted in here would buck the rules of temple etiquette while in Bali
http://blog.kura2guide.com/7-rules-of-bali-temple-etiquette/
Entering any Hindu temple in Bali requires both men and women to cover their legs below the knee by using a sarong.
Camisoles, tank tops and singlets, exposing bare shoulders, are not considered appropriate for a visit to a temple. At the very least, your shoulders should be covered or you will not be allowed to enter the temple.
Menstruating women and women who have given birth in the last 6 weeks may not enter temples. Likewise, if you have an open wound or injury you should not enter a temple.
As feet are considered unclean in Bali, you should not point them to shrines or holy objects. For this reason men sit with their legs crossed and women kneel while in prayer.
It is considered disrespectful to have your head higher than the head of the priest, so be careful not to stand or sit in a position higher than that of the manku to avoid causing offense.
Generally speaking admission is not charged to enter a temple, although some sort of a "donation" is expected. There is no fixed amount, however Rp. 5,000 ~ Rp. 10,000 per person is a good guideline.
Don't forget that you are in a holy place of worship. Use your common sense and act appropriately. The Balinese welcome visitors of all religions and are happy to share their traditions and customs, so treat their temples as you would your own.