Tens of thousands of people are attending the funeral in New York of Rafael Ramos, one of the two policemen shot dead a week ago.
Vice-President Joe Biden praised the "finest police department in the world" at the service, attended by police forces from across the US and Canada.
Mr Ramos and Wenjian Liu were shot after weeks of anti-police protests.
Police at the funeral again snubbed New York Mayor Bill de Blasio, who appeared to back some of the protests.
Funeral details for Officer Liu have yet to be announced.
Telling the mourners Officer Ramos had been a "hero", Police Commissioner Bill Bratton announced he had promoted both officers posthumously to Detective First Grade.
New York Governor Andrew Cuomo also paid tribute to the dead officer as well as to the New York Police Department (NYPD).'Killed by a madman'
"To the Ramos family, we're all lucky to have Rafael," Vice-President Biden told the congregation at the Christ Tabernacle Church in Queens.
"He didn't just have a bible in his locker, he lived it in his heart. He was a cop for all the right reasons."
Officer Ramos, 40, had been studying to become a police chaplain and was described as "a man of great faith" by a pastor who knew him.
Commissioner Bratton, his voice choking with emotion, said: "Rafael Ramos was assassinated because he represented all of us."
The two police officers had been killed by a "madman", he continued, who had only been able to see two uniforms, not the people wearing them.
When the Ramos family arrived for the service, the eldest son Justin, wearing his father's NYPD jacket, was hugged by a police officer.History of violence
Police officers outside the overflowing church could be seen turning their backs on a giant video screen when Mr de Blasio addressed the congregation.
The mayor had been snubbed in a similar manner by officers at the hospital where the two men were pronounced dead on 20 December.
The two police officers were shot following weeks of protests over several killings of unarmed black men by white police officers.
In New York, a grand jury decided not to press charges against a white police officer over the death of unarmed black man Eric Garner, who was placed in a chokehold while being restrained by New York police officers.
Commissioner Bratton has said he strongly rejects the notion that Mayor de Blasio increased the risk to police officers by appearing to side with protesters following the death of Mr Garner.
Black man Ismaaiyl Brinsley, 28, shot and killed officers Ramos and Liu as they were sitting in a patrol vehicle in the borough of Brooklyn. He then killed himself nearby.
Brinsley had a history of violence and mental instability and had been arrested at least 19 times in Georgia and Ohio, police said. Before attacking the police officers, he had shot and injured his girlfriend.
On the day of the shooting, he went on social media to say he was planning to kill police officers.