Fix code examples

Fixed all examples after google changed its responses.