The ADP-ribosylation by a protein of one or more of its own amino acid residues, or residues on an identical protein.