What is Advocate General?

Legal Definition
An advocate general is a senior officer of the law. In some common law and hybrid jurisdictions the officer performs the function of a legal advisor to the government, analogous to attorneys general in other common law and hybrid jurisdictions. By contrast, in the European Union and some continental European jurisdictions, the officer is a neutral legal advisor to the courts.
-- Wikipedia
Legal Definition
The adviser of the crown in England on questions of naval and military law.
-- Black's Law Dictionary