Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

TealiumAdIdentifier

Improve this doc

This module depends on the Tealium Cordova Plugin. Without it, this module will not do anything. Makes the IDFA and Google Ad Identifier available in the Tealium data layer.

Repo: https://github.com/Tealium/cordova-plugin

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ''
    $ npm install --save @ionic-native/tealium-adidentifier@4
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { TealiumAdIdentifier } from '@ionic-native/tealium-adidentifier';


constructor(private adIdentifier: TealiumAdIdentifier) { }

...


this.adIdentifier.setPersistent("main");
this.adIdentifier.setVolatile("main");

Instance Members

setPersistent(instanceName)

This function stores the ad identifier information as persistent data

Param Type Details
instanceName string

Your arbitrary Tealium instance name provided at init time

Returns: Promise<any> Returns a promise that resolves when something happens

setVolatile(instanceName)

This function stores the ad identifier information as volatile data

Param Type Details
instanceName string

Your arbitrary Tealium instance name provided at init time

Returns: Promise<any> Returns a promise that resolves when something happens

API

Native

General