Hi Anthony,
Thanks for your response.
Actually, the tracking template we are trying to use is done from the user interface when trying to edit an Ad.
See screenshot below:

All the parameters get replaced with the right values, except {creative} gets replaced by 0. It should get replaced by the Ad ID, right?
Thanks,