TealiumAdIdentifierPaid
This plugin might require a paid license, or might take a share of your app's earnings. Check the plugin's repo for more information.
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
- Install the Cordova and Ionic Native plugins:
$ '' $ npm install --save @ionic-native/tealium-adidentifier@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
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