public class AdManagerAxisHeaderHandler extends Object implements HeaderHandler<AdManagerSession,AdManagerServiceDescriptor>
HeaderHandler
.HeaderHandler.NoOpHeaderHandler<S extends AdsSession,D extends AdsServiceDescriptor>
Constructor and Description |
---|
AdManagerAxisHeaderHandler(AxisHandler soapClientHandler,
com.google.api.ads.admanager.lib.conf.AdManagerApiConfiguration adManagerApiConfiguration,
com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration,
AuthorizationHeaderHandler authorizationHeaderHandler,
AdManagerHttpHeaderHandler adManagerHttpHeaderHandler,
UserAgentCombiner userAgentCombiner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setHeaders(Object soapClient,
AdManagerSession adManagerSession,
AdManagerServiceDescriptor adManagerServiceDescriptor)
Sets the headers on the SOAP client using the session and descriptor.
|
@Inject public AdManagerAxisHeaderHandler(AxisHandler soapClientHandler, com.google.api.ads.admanager.lib.conf.AdManagerApiConfiguration adManagerApiConfiguration, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration, AuthorizationHeaderHandler authorizationHeaderHandler, AdManagerHttpHeaderHandler adManagerHttpHeaderHandler, UserAgentCombiner userAgentCombiner)
soapClientHandler
- the SOAP client handleradManagerApiConfiguration
- the Ad Manager API configurationauthorizationHeaderHandler
- the authorization header handleradManagerHttpHeaderHandler
- the Ad Manager HTTP header handleruserAgentCombiner
- the full user agent providerpublic void setHeaders(Object soapClient, AdManagerSession adManagerSession, AdManagerServiceDescriptor adManagerServiceDescriptor) throws AuthenticationException, ServiceException
HeaderHandler
setHeaders
in interface HeaderHandler<AdManagerSession,AdManagerServiceDescriptor>
soapClient
- the SOAP clientadManagerSession
- the ads sessionadManagerServiceDescriptor
- the ads service descriptorAuthenticationException
- if there was a problem authenticating the
sessionServiceException
- if there was a problem setting the headersHeaderHandler.setHeaders(Object, com.google.api.ads.common.lib.client.AdsSession,
com.google.api.ads.common.lib.client.AdsServiceDescriptor)
Copyright © 2020. All Rights Reserved.