SearchAuthInfo

public class SearchAuthInfo extends Object

Container for auth info used to serving items. Objects of this class contain the info necessary to authenticate as a given user and perform a serving on their behalf. See https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret for instructions to generate the client secrets.

Public Constructor Summary

SearchAuthInfo(File clientSecrets, File credentialsDirectory, String userEmail)
Constructor.

Public Method Summary

InputStream
File
String

Inherited Method Summary

Public Constructors

public SearchAuthInfo (File clientSecrets, File credentialsDirectory, String userEmail)

Constructor.

Parameters
clientSecrets - path to the client secrets JSON file.
credentialsDirectory - path to the directory containing the StoredCredential file for the client secrets.
userEmail - e-mail of the user associated to the client secrets file.

Public Methods

public InputStream getClientSecretsStream ()

Throws
FileNotFoundException

public File getCredentialsDirectory ()

public String getUserEmail ()