Her services in favour of France were rewarded in 1699 by a pension, which her problematic financial situation made necessary. When Philippe of France, Duke of Anjou, grandson of the French king, was declared heir by the will of Charles II, she took an active part in arranging his marriage with Princess Maria Luisa of Savoy, a daughter of Victor Amadeus II, Duke of Savoy. Her ambition was to secure the post of "camarera mayor de palacio" (head of the queen's household) to the young queen, a child of barely thirteen. By quiet diplomacy and with the help of Madame de Maintenon, she succeeded, and in 1701, she accompanied the young queen to Spain.