I have duplicate URLs for each ad page. For example:
https://example.com/ads/2161/%D9%84%D9%83%D8%B2%D8%B3_GS350.html
https://example.com/2161/
I used the second URL for Twitter and Instagram posts.
So I see a message in Google Webmaster Tools that there are duplicate title tags and content.
How can I fix this issue, I want the Googlebot to index only the first URL, not the second URL.