ANKARA, July 20 (Reuters) - Turkish President Tayyip Erdogan's spokesman on Thursday lashed out at Germany after Berlin threatened to end corporate investment guarantees, saying Ankara could not accept such a stance, escalating a row between the NATO allies.

"It is not possible for us to accept statements aiming to blur the economic environment based on political motivation, we hope they turn back from this," Ibrahim Kalin told a news conference in Ankara.

The latest feud between Turkey and Germany - which have seen ties strained after last year's failed coup - stems from Turkey's detention of rights activists, including a German national.

(Reporting by Ece Toksabay and Tuvan Gumrukcu; Writing by David Dolan; Editing by Daren Butler) ((david.dolan@tr.com; +90 212 350 7046; Reuters Messaging: david.dolan.thomsonreuters.com@reuters.net))