Extract Parent Segment Stats
Project description
td-ml-ps-stats-scan
Introduction
This Python Library allows you to extract Parent Segment, Folder, Audiences info and store it in a table in TD for reporting purposes and mapping audiences to segments and metrics.
Input Params
config.yml
: The workflow YAML
file contains the params that are required by this library to extract the neded information. See below:
- apikey = TD APIKEY
- tdserver = TD ENDPOINT
- sink_database = Database where outout tables will be written
- output_table = name of output table
- folder_depth = how many nested folders in Audience Studio to look into for segments (default =
10
) - v5_flag =
1
- scans PSs that are in V5 version,0
- scans PSs in V4, and1, 0
- scans PS is in both V4 and V5. - apply_ps_filters =
yes
- applies filters below and only returns info on specific Parent Segments, Folders, or Segments and Journeys,no
- returns all objects in Audience Studio - ps_to_include = use REGEXP format such as
'name_1|name_2|ec.'
to only return info on Parent Segments that match the REGEXP. If you leave blank''
, then it will return ALL information. - folders_to_include = use REGEXP format such as
'name_1|name_2|etc.'
to only return info on Folder Names that match the REGEXP. If you leave blank''
, then it will return ALL information. - segments_to_include = use REGEXP format such as
'name_1|name_2|etc.'
to only return info on Audience Segment Names that match the REGEXP. If you leave blank''
, then it will return ALL information. - journeys_to_include = use REGEXP format such as
'name_1|name_2|etc.'
to only return info on Journey Names that match the REGEXP. If you leave blank''
, then it will return ALL information.
Copyright © 2022 Treasure Data, Inc. (or its affiliates). All rights reserved
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file td_ml_ps_stats_scan-0.0.28.tar.gz
.
File metadata
- Download URL: td_ml_ps_stats_scan-0.0.28.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e23e790a14bc09347619c89294e7a1c50e60914b98077c03cf1d595c2921b99d
|
|
MD5 |
b21b053bf4a1a15b7096e66b883280ac
|
|
BLAKE2b-256 |
7ace5269e421c2e17e937e8715d56032dd58b7a37ed2f63bf8ac2ec3971d9243
|
File details
Details for the file td_ml_ps_stats_scan-0.0.28-py3-none-any.whl
.
File metadata
- Download URL: td_ml_ps_stats_scan-0.0.28-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b1253b930946eedb0b32e654ab57208bdfdb7bc48e0e206600f0e711b07bf970
|
|
MD5 |
f3d5b70deb457d13c6a5bde58d57fbdc
|
|
BLAKE2b-256 |
deea325ae28e123d22b9708430f48cf5728016fcc52260233e288fb1358ef6cb
|