Simplify interface of Google examples and fix the name and comment of userName variable

@najtmar If you have run the examples successfully against `1.8.0`, then I would argue that this change is preferred over `1.7.2`.