Class DefaultPrimer
- java.lang.Object
-
- com.google.ads.googleads.lib.catalog.Primer
-
- com.google.ads.googleads.lib.catalog.DefaultPrimer
-
public class DefaultPrimer extends Primer
Implements Primer by running classloading and OAuth flows asynchronously.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprimeAllVersionsAsync()Primes the classes required byGoogleAdsAllVersionsvoidprimeCredentialsAsync(com.google.auth.Credentials credentials)Primes the credentials, e.g.voidprimeGrpcAsync()Primes the gRPC layer asynchronously.voidprimeProtobufAsync()Primes the protobuf layer asynchronously.-
Methods inherited from class com.google.ads.googleads.lib.catalog.Primer
getInstance, isEnabled, primeBasicsIfEnabled
-
-
-
-
Method Detail
-
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.
-
-