Skip to content
Project Team24
Advertising

How to Prepare a CRM File for Yandex Audiences: a Step-by-Step Guide

Yandex requirements for the CSV file and a step-by-step guide: clean CRM phones and emails in Excel or Google Sheets, save the file and create a segment for Direct.

01

Why upload your customer base to Yandex Audiences

Your CRM already holds the most valuable thing for advertising: real customer contacts. Upload them to Yandex Audiences and Yandex Direct can show ads to exactly these people, exclude them from campaigns or find lookalikes. Yandex matches the phones and emails in the file with its users and builds a segment — personal data is never shown in ads.

02

Yandex requirements for the file

  • Format: CSV, comma-separated, column names in the first row.
  • Encoding: UTF-8 or Windows-1251.
  • One row = one customer; at least 100 records; file size up to 1 GB.
  • Each record needs at least a phone or an email.
  • phone: digits only with the country code, e.g. 79995551111 (not 8 (999) 555-11-11).
  • email: Latin characters in lower case, e.g. client@mail.ru.
  • external_id: the customer ID from your CRM, no spaces.

If contacts cannot be shared in plain form, hash them with SHA-256, add the _SHA256 suffix to the column names (phone_SHA256, email_SHA256) and enable "Hashed data" when uploading. New MD5 hashes are not accepted since 2025.

03

Step-by-step guide

1. Export only the fields you need

Phone, email and optionally the customer ID are enough. Filter the group you need right away — for example, everyone who bought in the last year.

2. Set the phone column to text format

Otherwise Excel turns numbers into values like 7.99955E+10.

3. Keep digits only

Remove spaces, brackets, dashes and "+" with Find and Replace, or in Google Sheets use =REGEXREPLACE(TO_TEXT(A2), "[^0-9]", "").

4. Bring numbers to the 7XXXXXXXXXX format

In Google Sheets: =IF(LEN(B2)=10, "7"&B2, IF(LEFT(B2,1)="8", "7"&MID(B2,2,10), B2)). Then check that every number has 11 digits.

5. Clean up emails

Use =LOWER(TRIM(D2)) and remove addresses without "@".

6. Remove duplicates and empty rows

One customer per row; delete rows with neither a phone nor an email.

7. Build the final sheet

Keep only the cleaned columns named phone, email, external_id and paste them as values, not formulas.

8. Save as comma-separated CSV

In Excel choose "CSV UTF-8 (Comma delimited)"; in Google Sheets — File → Download → CSV.

9. Check the file in a text editor

The first line should read phone,email,external_id, followed by rows like 79995551111,client@mail.ru,10001 — no semicolons and no "E+10".

10. Upload it to Yandex Audiences

Create segment → Universal segment, upload the file, name it and use Cross-Device mode for phones and emails. The segment becomes "Ready" once Yandex matches at least 100 of its users — so upload a base with some margin.

04

How to use the segment in Yandex Direct

  • Add it to targeting conditions to show ads only to your customers.
  • Exclude current customers from campaigns.
  • Adjust bids for people who have already bought.
  • Build a lookalike segment — processing takes at least two hours.

06

Frequently asked questions

CSV with comma-separated fields, column names in the first row, UTF-8 or Windows-1251 encoding, up to 1 GB.

At least 100 records in the file; the segment becomes "Ready" only when at least 100 Yandex users are matched.

Digits only with the country code, no spaces, brackets, dashes or "+", e.g. 79995551111.

No. If you need to, use SHA-256 with the _SHA256 column suffix and enable "Hashed data". MD5 is not supported for new uploads.

Want to discuss your project?

If you'd like to apply this to your business, message me on Telegram. I'll review your situation and suggest where to start.

All articles