Polymers or oligomers of diolefins, aromatic vinyl monomers or unsaturated acids or derivatives thereof