DynamicLink.GoogleAnalyticsParameters.Builder

public final class DynamicLink.GoogleAnalyticsParameters.Builder


Builder for Google Analytics parameters.

Summary

Public constructors

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

Builder(
    @NonNull String source,
    @NonNull String medium,
    @NonNull String campaign
)

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

Public methods

@NonNull DynamicLink.GoogleAnalyticsParameters

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull String

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull String

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull String

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull String

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull String

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull DynamicLink.GoogleAnalyticsParameters.Builder

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull DynamicLink.GoogleAnalyticsParameters.Builder

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull DynamicLink.GoogleAnalyticsParameters.Builder

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull DynamicLink.GoogleAnalyticsParameters.Builder

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNull DynamicLink.GoogleAnalyticsParameters.Builder

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

Public constructors

Builder

public Builder()

Create Google Analytics parameters builder.

Builder

public Builder(
    @NonNull String source,
    @NonNull String medium,
    @NonNull String campaign
)

Create Google Analytics parameters builder.

Parameters
@NonNull String source

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

@NonNull String medium

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

@NonNull String campaign

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

Public methods

build

public @NonNull DynamicLink.GoogleAnalyticsParameters build()

Build GoogleAnalyticsParameters for use with setGoogleAnalyticsParameters.

getCampaign

public @NonNull String getCampaign()

Returns the campaign name.

Returns
@NonNull String

the campaign name.

getContent

public @NonNull String getContent()

Returns the campaign content.

Returns
@NonNull String

the campaign content.

getMedium

public @NonNull String getMedium()

Returns the campaign medium.

Returns
@NonNull String

the campaign medium.

getSource

public @NonNull String getSource()

Returns the campaign source.

Returns
@NonNull String

the campaign source

getTerm

public @NonNull String getTerm()

Returns the campaign term.

Returns
@NonNull String

the campaign term.

setCampaign

public @NonNull DynamicLink.GoogleAnalyticsParameters.Builder setCampaign(@NonNull String campaign)

Sets the campaign name.

Parameters
@NonNull String campaign

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

setContent

public @NonNull DynamicLink.GoogleAnalyticsParameters.Builder setContent(@NonNull String content)

Sets the campaign content.

Parameters
@NonNull String content

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

setMedium

public @NonNull DynamicLink.GoogleAnalyticsParameters.Builder setMedium(@NonNull String medium)

Sets the campaign medium.

Parameters
@NonNull String medium

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

setSource

public @NonNull DynamicLink.GoogleAnalyticsParameters.Builder setSource(@NonNull String source)

Sets the campaign source.

Parameters
@NonNull String source

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

setTerm

public @NonNull DynamicLink.GoogleAnalyticsParameters.Builder setTerm(@NonNull String term)

Sets the campaign term.

Parameters
@NonNull String term

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