Tencent on Wednesday posted a fourth-quarter beat on top and bottom line driven by a surge in gaming and advertising revenue.