DynamicLink.GoogleAnalyticsParameters.Builder

class DynamicLink.GoogleAnalyticsParameters.Builder


Builder for Google Analytics parameters.

Summary

Public constructors

This function is deprecated.

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

Builder(source: String, medium: String, campaign: String)

This function is deprecated.

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

Public functions

DynamicLink.GoogleAnalyticsParameters

This function is deprecated.

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

String

This function is deprecated.

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

String

This function is deprecated.

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

String

This function is deprecated.

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

String

This function is deprecated.

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

String

This function is deprecated.

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

DynamicLink.GoogleAnalyticsParameters.Builder
setCampaign(campaign: String)

This function is deprecated.

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

DynamicLink.GoogleAnalyticsParameters.Builder
setContent(content: String)

This function is deprecated.

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

DynamicLink.GoogleAnalyticsParameters.Builder
setMedium(medium: String)

This function is deprecated.

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

DynamicLink.GoogleAnalyticsParameters.Builder
setSource(source: String)

This function is deprecated.

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

DynamicLink.GoogleAnalyticsParameters.Builder
setTerm(term: String)

This function is deprecated.

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

Public constructors

Builder

Builder()

Create Google Analytics parameters builder.

Builder

Builder(source: String, medium: String, campaign: String)

Create Google Analytics parameters builder.

Parameters
source: String

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

medium: String

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

campaign: String

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

Public functions

build

fun build(): DynamicLink.GoogleAnalyticsParameters

Build GoogleAnalyticsParameters for use with setGoogleAnalyticsParameters.

getCampaign

fun getCampaign(): String

Returns the campaign name.

Returns
String

the campaign name.

getContent

fun getContent(): String

Returns the campaign content.

Returns
String

the campaign content.

getMedium

fun getMedium(): String

Returns the campaign medium.

Returns
String

the campaign medium.

getSource

fun getSource(): String

Returns the campaign source.

Returns
String

the campaign source

getTerm

fun getTerm(): String

Returns the campaign term.

Returns
String

the campaign term.

setCampaign

fun setCampaign(campaign: String): DynamicLink.GoogleAnalyticsParameters.Builder

Sets the campaign name.

Parameters
campaign: String

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

setContent

fun setContent(content: String): DynamicLink.GoogleAnalyticsParameters.Builder

Sets the campaign content.

Parameters
content: String

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

setMedium

fun setMedium(medium: String): DynamicLink.GoogleAnalyticsParameters.Builder

Sets the campaign medium.

Parameters
medium: String

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

setSource

fun setSource(source: String): DynamicLink.GoogleAnalyticsParameters.Builder

Sets the campaign source.

Parameters
source: String

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

setTerm

fun setTerm(term: String): DynamicLink.GoogleAnalyticsParameters.Builder

Sets the campaign term.

Parameters
term: String

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