Overview
An advocate general of a state 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.
India
In India, an advocate general is a legal advisor to a state government. The post is created by the Constitution of India and corresponds to that of Attorney General of India at the central-level. The Governor of each state shall appoint a person who is qualified to be appointed judges in high court. There is no fixed term of office and no upper-age-limit mentioned for the Advocate general.
Pakistan
From Wikipedia (CC BY-SA 4.0).