Google will pay $170 million to settle allegations that YouTube collected personal information from children without their parents' consent.