Israel has apologised to Turkey in an effort to defuse a row over the treatment of its envoy in Tel Aviv.
Israel's prime minister said he hoped this "would end the affair".
Ankara had threatened to withdraw the ambassador unless it received a formal apology from Israel by Wednesday evening.
The row began when the envoy was summoned to Israel's foreign ministry over a Turkish TV series portraying Israeli agents kidnapping babies.
Deputy Foreign Minister Danny Ayalon summoned Ambassador Oguz Celikkol to rebuke him over the fictional television series Valley of the Wolves, popular in Turkey.
Mr Ayalon ensured the ambassador was seated on a lower chair and removed the Turkish flag from the table.
Turkish President Abdullah Gul said the ambassador would "return on the first plane" on Thursday unless Israel issued a public apology.
In the letter of apology, Israel's Prime Minister Benjamin Netanyahu "again expressed his concern over the cooling of the ties between Israel and Turkey" and instructed officials "to find ways to prevent this trend", according to a statement from his office.
The Turkish Prime Minister Recep Tayyip Erdogan said Turkey had received the apology it "wanted and expected in diplomatic terms."
But at a news conference he added that "Israel must put itself in order and must be more just and more on the side of peace in the region."
Footage of Mr Ayalon urging journalists to make clear the ambassador was seated on a low sofa, while the Israeli officials were in much higher chairs, has been widely broadcast by the Israeli media.
He is also heard pointing out in Hebrew that "there is only one flag" and "we are not smiling".
"In terms of the diplomatic tactics available, this was the minimum that was warranted given the repeated provocation by political and other players in Turkey," he said, according to Reuters.
One Israeli newspaper marked the height difference in a photo, and captioned it "the height of humiliation".
Last October Israel complained over another Turkish series, which depicted Israeli soldiers killing Palestinians. In one clip, an Israeli soldier shoots dead a smiling young girl at close range.
The row comes ahead of a planned visit by Israeli Defence Minister Ehud Barak to Turkey on Sunday.
Turkey has long been an ally of Israel, but relations have deteriorated as Ankara has repeatedly criticised Israel for its offensive in Gaza a year ago.
Rights groups say about 1,400 Palestinians died during the operation, which Israel said had been aimed at ending rocket fire by Hamas.
Thirteen Israelis died during the violence.
NOW AN AMAZON KINDLE BOOK ON YOUR PC, iPHONE OR KINDLE DEVICE
Debating the Holocaust: A New Look at Both Sides By Thomas Dalton
In this remarkable, balanced book, the author skillfully reviews and compares "traditional" and "revisionist" views on the "The Holocaust."
On one side is the traditional, orthodox view -- six million Jewish casualties, gas chambers, cremation ovens, mass graves, and thousands of witnesses. On the other is the view of a small band of skeptical writers and researchers, often unfairly labeled "deniers," who contend that the public has been gravely misled about this emotion-laden chapter of history.
The author establishes that the arguments and findings of revisionist scholars are substantive, and deserve serious consideration. He points out, for example, that even the eminent Jewish Holocaust scholar Raul Hilberg acknowledged that there was no budget, plan or order by Hitler for a World War II program to exterminate Europe's Jews.
This book is especially relevant right now, as "Holocaust deniers" are routinely and harshly punished for their "blasphemy," and as growing numbers of people regard the standard, Hollywoodized "Holocaust" narrative with mounting suspicion and distrust.
The author of this book, who writes under the pen name of "Thomas Dalton," is an American scholar who holds a doctoral degree from a major US university.
This is no peripheral debate between arcane views of some obscure aspect of twentieth century history. Instead, this is a clash with profound social-political implications regarding freedom of speech and press, the manipulation of public opinion, how our cultural life is shaped, and how power is wielded in our society.
Call anytime: 917-974-6367