throws Exception {
// Request the service.
AdvertiserGroupRemote service = dfaServices.get(session, AdvertiserGroupRemote.class);
// Assign the advertisers to the advertiser group.
service.assignAdvertisersToAdvertiserGroup(advertiserGroupId, advertiserIds);
// If we get to this line with no errors, the assignment succeeded.
System.out.printf("The advertisers were successfully assigned to the advertiser group%n");
}