DynamicLink.GoogleAnalyticsParameters.Builder

public static final class DynamicLink.GoogleAnalyticsParameters.Builder extends Object

Builder for Google Analytics parameters.

Public Constructor Summary

DynamicLink.GoogleAnalyticsParameters.Builder()
Create Google Analytics parameters builder.
DynamicLink.GoogleAnalyticsParameters.Builder(String source, String medium, String campaign)
Create Google Analytics parameters builder.

Public Method Summary

DynamicLink.GoogleAnalyticsParameters
build()
Build GoogleAnalyticsParameters for use with setGoogleAnalyticsParameters(GoogleAnalyticsParameters).
DynamicLink.GoogleAnalyticsParameters.Builder
setCampaign(String campaign)
Sets the campaign name.
DynamicLink.GoogleAnalyticsParameters.Builder
setContent(String content)
Sets the campaign content.
DynamicLink.GoogleAnalyticsParameters.Builder
setMedium(String medium)
Sets the campaign medium.
DynamicLink.GoogleAnalyticsParameters.Builder
setSource(String source)
Sets the campaign source.
DynamicLink.GoogleAnalyticsParameters.Builder
setTerm(String term)
Sets the campaign term.

Inherited Method Summary

Public Constructors

public DynamicLink.GoogleAnalyticsParameters.Builder ()

Create Google Analytics parameters builder.

public DynamicLink.GoogleAnalyticsParameters.Builder (String source, String medium, String campaign)

Create Google Analytics parameters builder.

Parameters
source The campaign source; used to identify a search engine, newsletter, or other source.
medium The campaign medium; used to identify a medium such as email or cost-per-click (cpc).
campaign The campaign name; The individual campaign name, slogan, promo code, etc. for a product.

Public Methods

public DynamicLink.GoogleAnalyticsParameters build ()

Build GoogleAnalyticsParameters for use with setGoogleAnalyticsParameters(GoogleAnalyticsParameters).

public DynamicLink.GoogleAnalyticsParameters.Builder setCampaign (String campaign)

Sets the campaign name.

Parameters
campaign The campaign name; The individual campaign name, slogan, promo code, etc. for a product.

public DynamicLink.GoogleAnalyticsParameters.Builder setContent (String content)

Sets the campaign content.

Parameters
content The campaign content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL.

public DynamicLink.GoogleAnalyticsParameters.Builder setMedium (String medium)

Sets the campaign medium.

Parameters
medium The campaign medium; used to identify a medium such as email or cost-per-click (cpc).

public DynamicLink.GoogleAnalyticsParameters.Builder setSource (String source)

Sets the campaign source.

Parameters
source The campaign source; used to identify a search engine, newsletter, or other source.

public DynamicLink.GoogleAnalyticsParameters.Builder setTerm (String term)

Sets the campaign term.

Parameters
term The campaign term; used with paid search to supply the keywords for ads.