To create Sms Ru records from Yandex Metrika without manual input, use a ready-made scenario.
You can launch this Yandex Metrika + Sms Ru integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.