Six shots were fired at the USA embassy, the Ankara governor's office said, adding that three bullets hit the iron gate and window wall.
The US embassy spokesman David Gainer confirmed to Agence France-Presse that a "security incident" had taken place.
Video footage from broadcaster Haberturk showed police teams inspecting one of the entrances to the embassy and apparent damage caused by a gunshot could be seen in one window. "We thank the Turkish national police for their rapid response", he said. Omer Celik, a spokesman for the ruling Justice and Development Party (AKP), called the incident an "open provocation", without elaborating further.
Ties between Ankara and Washington have been strained over the case of an imprisoned American pastor, leading the U.S.to impose sanctions, and increased tariffs that sent the Turkish lira tumbling last week.
Turkey and the USA also disagree over their military interventions in the Syria war, Ankara's plan to buy missile defense systems from Russian Federation and the U.S. conviction of a Turkish state bank executive on sanctions-busting charges in January.
President Erdogan remained defiant ahead of the Muslim feast of Eid al-Adha with another characteristically fiery statement.
President Erdogan even called for a boycott of American goods such as iPhones, saying Turks would use Samsung handsets instead.
In response to the sanctions, Turkish President Recep Erdogan has confirmed that his country will boycott USA electronic goods, including Apple's flagship iPhone device - which was helpful in saving his regime in 2016.