In some countries, like Canada, directly advertising for prescription drugs is illegal. But the marketing folks behind the drugs find these sorts of legal loopholes. The “ask your doctor” line is a cover-your-ass version which is actually saying “Google it”.