; (B) enforce compliance with this title; (C) on behalf of residents of the States, obtain damages, restitution, or other compensation, each of which shall be distributed in accordance with State law; or (D) obtain such other relief as the court may consider to be appropriate. (2) Rights of federal trade commission (A) Notice to federal trade commission (i) In general The attorney general of a State shall notify the Commission in writing that the attorney general intends to bring a civil action under paragraph (1) before the filing of the civil action. (ii) Contents The notification required under clause (i) with respect to a civil action shall include a copy of the complaint to be filed to initiate the civil action. (iii) Clause (i) shall not apply with respect to the filing of an action by an attorney general of a State under this paragraph if the attorney general of the State determines that it not feasible to provide the notice required in that clause before filing the action. (B) Intervention by federal trade commission Upon receiving notice under subparagraph (A)(i), the Commission shall have the right to intervene in the action that is the subject of the notice. (3) Effect of intervention If the Commission intervenes in an action under paragraph (1), it shall have the right— (A) to be heard with respect to any matter that arises in that action; and (B) file a petition for appeal. (4) Investigatory powers Nothing in this subsection may be construed to prevent the attorney general of a State from exercising the powers conferred on the attorney general by the laws of the State to— (A) conduct investigations; (B) administer oaths or affirmations