The unique name of the domain.
The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.
The identifier of the profile to be taken.
The identifier of the profile to be merged into MainProfileId.