OK, so - some analysis here:
Basically the suggestion is that it failed the “acting in a public office” bit because his campaigning was not part of his public role as MP or Mayor of London but separate from it.
I can feel smug because it’s not a million miles from what I thought - but explained better