Package org.apache.beam.sdk.io.googleads
Class GoogleAdsUserCredentialFactory
java.lang.Object
org.apache.beam.sdk.io.googleads.GoogleAdsUserCredentialFactory
- All Implemented Interfaces:
CredentialFactory
Constructs and returns
Credentials to be used by Google Ads API calls. This factory only
supports UserCredentials, ServiceAccountCredentials and domain-wide delegation are not supported.-
Method Summary
Modifier and TypeMethodDescriptionfromOptions(PipelineOptions options) @Nullable com.google.auth.CredentialsReturnsCredentialsas configured byGoogleAdsOptions.
-
Method Details
-
fromOptions
-
getCredential
ReturnsCredentialsas configured byGoogleAdsOptions.- Specified by:
getCredentialin interfaceCredentialFactory
-