Nothing in this chapter shall make unlawful the printing or other production of any advertisements for, or any ticket, chance, or share in a lottery conducted in any other state or nation where such lottery is not prohibited by the laws of such state or nation; or the sale of such materials by the manufacturer thereof to any person or entity conducting or participating in the conduct of such a lottery in any such state or nation. This section does not authorize any advertisement within California relating to lotteries, or the sale or resale within California of lottery tickets, chances, or shares to individuals, or acts otherwise in violation of any laws of the state.
Ca. Pen. Code § 328