When your [ad landing page](https://docs.ranksyapp.com/hc/docs/articles/ad-landing-pages) uses your own domain, verify that domain with Meta. Domain verification shows Meta that your business owns the domain.

To connect your own domain to the landing page, see [Use Your Own Domain for Ad Landing Pages](https://docs.ranksyapp.com/hc/docs/articles/custom-domain-for-landing-pages).

## Why Verify Your Domain

Meta says that domain verification lets you do these things:

- Claim ownership of your domain in Meta Business Suite.
- Control who can edit the links to your domain, in ads and in organic posts.
- Help prevent misuse of your domain.

Domain verification is free.

## Verify the Root Domain, Not the Subdomain

Your landing page uses a subdomain, for example `lp.yourdomain.com`. In Meta, verify the root domain, `yourdomain.com`.

- When you verify the root domain, Meta also gives you control of all its subdomains. This includes `lp.yourdomain.com`.
- Enter the root domain only. Do not enter `www.`, `lp.`, or `https://`.

## What You Need

- A Meta business portfolio. You must have full control of the business portfolio.
- Access to the DNS settings of your root domain.

You can verify the root domain before or after your custom domain is **Live** in Ranksy.

## Verify with a DNS TXT Record

1. Open Meta Business Suite **Settings**. You can also go directly to the [Domains page in Meta Business Suite](https://business.facebook.com/settings/owned-domains).
2. In the **Brand safety** section, select **Domains**.
3. Click **+ Add**.
4. Select **Create a domain**.
5. Enter your root domain, for example `yourdomain.com`.
6. Click **Add**.
7. Select **Update the DNS TXT record with your domain registrar**.
8. Copy the TXT record that Meta shows.
9. At your DNS provider, add a new TXT record to your root domain. Paste the value from Meta.
10. Wait for the DNS change.
11. Check the record with a DNS lookup tool, for example [Google Admin Toolbox Dig](https://toolbox.googleapps.com/apps/dig/). Select **TXT**. Enter `yourdomain.com`. Make sure that the result shows the value from Meta.
12. In Meta, click **Verify domain**.

For step 9, use the name for the root domain in the name field. Many DNS providers use `@`. Some providers want an empty name field. The help pages of your DNS provider tell you which one to use.

⚠️ **Warning:** Do not change or delete the TXT records that are already on your root domain. For example, your email can use a TXT record. A domain can have more than one TXT record. Add the Meta record as a new record.

**Note:** The optional `_cf-custom-hostname` TXT record from Ranksy is for Ranksy only. It does not verify your domain with Meta.

Meta says that a DNS TXT change can take a few minutes, or up to 72 hours.

## Why Use the DNS TXT Method

Meta has three verification methods: a DNS TXT record, a meta tag, and an HTML file.

- The meta tag method and the HTML file method need a website on your root domain. Meta checks `yourdomain.com`, not `lp.yourdomain.com`.
- Ranksy shows only your landing page on your subdomain. Ranksy cannot add a meta tag or a file to your root domain.
- The DNS TXT method works with or without a website on your root domain.

If you control a website on your root domain, you can also use the meta tag method or the HTML file method.

## Use Your Domain in Meta Ads

After your custom domain is **Live** in Ranksy:

1. In Ranksy, open the **Landing Page** tab.
2. Copy the **Meta ads** URL. The URL uses your domain, for example `https://lp.yourdomain.com/your-app-a1b2c3d4`.
3. In Meta Ads Manager, open your ad.
4. Set the website URL of the ad to the URL that you copied. Keep your `utm_` parameters.
5. Publish the change.

The **Meta ad destination URL** on the **Meta Conversions API** tab is the same URL. For more information about this tab, see [Meta Ads Attribution](https://docs.ranksyapp.com/hc/docs/articles/meta-ads-attribution).

Ranksy does not change your ads. Do these steps for each ad.

## Troubleshooting

### Messages in Meta

| Message | What to do |
| --- | --- |
| Invalid domain was entered | Enter only the root domain, for example `yourdomain.com`. Do not enter `www.`, a subdomain, or `https://`. |
| Domain has already been verified by another business | A different business portfolio verified the domain. Ask that business to share the domain with you. This can also occur after a change of ownership. |
| DNS record fetch error | Meta could not read the DNS record. Check the TXT record with a DNS lookup tool. Wait for the DNS change. Then try again. |
| No DNS entries were found | Meta did not find the TXT record. Make sure that you added it to the root domain. Wait for the DNS change. Then try again. |
| DNS TXT record doesn't match | Copy the TXT record from Meta again. Make sure that the value at your DNS provider is the same. |
| Domain verification failed | Refresh the page. Then try again. If the error continues, contact Meta support. |

### Other Problems

**You added the TXT record to the subdomain.** Meta checks the root domain. Add the TXT record to `yourdomain.com`, not to `lp.yourdomain.com`.

**You cannot find Domains in Meta Business Suite.** Meta can change its interface. See the [Meta help article about domain verification](https://www.facebook.com/business/help/321167023127050).

**Your ads still use the ranksyapp.com URL.** Ranksy does not change your ads. Change the website URL of each ad to the new **Meta ads** URL.

## Next steps

- [Use Your Own Domain for Ad Landing Pages](https://docs.ranksyapp.com/hc/docs/articles/custom-domain-for-landing-pages) — Connect your subdomain to the landing page in Ranksy.
- [Add the DNS Records for Your Custom Domain](https://docs.ranksyapp.com/hc/docs/articles/custom-domain-dns-records) — Add the CNAME record for your subdomain at your DNS provider.
- [Ad Landing Pages](https://docs.ranksyapp.com/hc/docs/articles/ad-landing-pages) — Change the text and the links of the landing page.
- [Meta Ads Attribution](https://docs.ranksyapp.com/hc/docs/articles/meta-ads-attribution) — Send install and revenue conversions to your Meta pixel.