public class UserAgentCombiner extends Object
Constructor and Description |
---|
UserAgentCombiner(ProductUserAgentProvider productUserAgentProvider,
com.google.api.ads.common.lib.useragent.UserAgentCombiner.ProductFrameworkProviderHolder productFrameworkProviderHolder,
AdsLibraryUserAgentProvider adsLibraryUserAgentProvider,
com.google.api.ads.common.lib.useragent.UserAgentCombiner.FrameworkProviderHolder frameworkProviderHolder,
RuntimeUserAgentProvider runtimeUserAgentProvider,
BuildTypeUserAgentProvider buildTypeUserAgentProvider,
AdsUtilitiesUserAgentProvider adsUtilitiesUserAgentProvider,
com.google.api.ads.common.lib.useragent.UserAgentCombiner.ExtensionProviderHolder extensionProviderHolder)
Constructor that builds an instance based on a list of underlying user agent
providers.
|
Modifier and Type | Method and Description |
---|---|
String |
getUserAgent(String nonLibraryUserAgent)
Gets the full user agent in the form of
"(UserAgent1,UserAgent2,UserAgent3,...)" |
@Inject public UserAgentCombiner(ProductUserAgentProvider productUserAgentProvider, com.google.api.ads.common.lib.useragent.UserAgentCombiner.ProductFrameworkProviderHolder productFrameworkProviderHolder, AdsLibraryUserAgentProvider adsLibraryUserAgentProvider, com.google.api.ads.common.lib.useragent.UserAgentCombiner.FrameworkProviderHolder frameworkProviderHolder, RuntimeUserAgentProvider runtimeUserAgentProvider, BuildTypeUserAgentProvider buildTypeUserAgentProvider, AdsUtilitiesUserAgentProvider adsUtilitiesUserAgentProvider, com.google.api.ads.common.lib.useragent.UserAgentCombiner.ExtensionProviderHolder extensionProviderHolder)
xyzHolder
parameters are for user agent providers that
may be null in certain contexts.productUserAgentProvider
- the product user agent library user agent providerproductFrameworkProviderHolder
- holder for the product/framework user agent
provideradsLibraryUserAgentProvider
- the ads library user agent providerframeworkProviderHolder
- holder for the framework user agent providerruntimeUserAgentProvider
- the runtime user agent providerbuildTypeUserAgentProvider
- the build type user agent providerextensionProviderHolder
- holder for the extension user agent providerCopyright © 2018. All Rights Reserved.