Class DefaultPrimer
java.lang.Object
com.google.ads.googleads.lib.catalog.Primer
com.google.ads.googleads.lib.catalog.DefaultPrimer
Implements Primer by running classloading and OAuth flows asynchronously.
-
Method Summary
Modifier and TypeMethodDescriptionvoidPrimes the classes required byGoogleAdsAllVersionsvoidprimeCredentialsAsync(com.google.auth.Credentials credentials) Primes the credentials, e.g.voidPrimes the gRPC layer asynchronously.voidPrimes the protobuf layer asynchronously.Methods inherited from class com.google.ads.googleads.lib.catalog.Primer
getInstance, isEnabled, primeBasicsIfEnabled
-
Method Details
-
primeGrpcAsync
public void primeGrpcAsync()Description copied from class:PrimerPrimes the gRPC layer asynchronously.- Specified by:
primeGrpcAsyncin classPrimer
-
primeProtobufAsync
public void primeProtobufAsync()Description copied from class:PrimerPrimes the protobuf layer asynchronously.- Specified by:
primeProtobufAsyncin classPrimer
-
primeAllVersionsAsync
public void primeAllVersionsAsync()Description copied from class:PrimerPrimes the classes required byGoogleAdsAllVersions- Specified by:
primeAllVersionsAsyncin classPrimer
-
primeCredentialsAsync
public void primeCredentialsAsync(com.google.auth.Credentials credentials) Description copied from class:PrimerPrimes the credentials, e.g. by preemptively loading an access token.- Specified by:
primeCredentialsAsyncin classPrimer- Parameters:
credentials- the credentials to prime.
-