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.Credentials
ReturnsCredentials
as configured byGoogleAdsOptions
.
-
Method Details
-
fromOptions
-
getCredential
ReturnsCredentials
as configured byGoogleAdsOptions
.- Specified by:
getCredential
in interfaceCredentialFactory
-