def client
      @client ||= begin
        client = Google::APIClient.new
        client.authorization = Signet::OAuth2::Client.new(
          token_credential_uri: 'https://accounts.google.com/o/oauth2/token',
          audience: 'https://accounts.google.com/o/oauth2/token',
          scope: 'https://www.googleapis.com/auth/analytics.readonly',
          issuer: Gxapi.config.google.email,
          signing_key: self.get_key
        )
        client.authorization.fetch_access_token!
        client
      end
    end
def client
      @client ||= begin
        client = Google::APIClient.new
        client.authorization = Signet::OAuth2::Client.new(
          token_credential_uri: 'https://accounts.google.com/o/oauth2/token',
          audience: 'https://accounts.google.com/o/oauth2/token',
          scope: 'https://www.googleapis.com/auth/analytics.readonly',
          issuer: Gxapi.config.google.email,
          signing_key: self.get_key
        )
        client.authorization.fetch_access_token!
        client
      end
    end
google api client

 @return [Google::APIClient]