Skip to main content

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, and 1, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

td_ml_ps_stats_scan-0.0.28.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

td_ml_ps_stats_scan-0.0.28-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for td_ml_ps_stats_scan-0.0.28.tar.gz
Algorithm Hash digest
SHA256 e23e790a14bc09347619c89294e7a1c50e60914b98077c03cf1d595c2921b99d
MD5 b21b053bf4a1a15b7096e66b883280ac
BLAKE2b-256 7ace5269e421c2e17e937e8715d56032dd58b7a37ed2f63bf8ac2ec3971d9243

See more details on using hashes here.

File details

Details for the file td_ml_ps_stats_scan-0.0.28-py3-none-any.whl.

File metadata

File hashes

Hashes for td_ml_ps_stats_scan-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 b1253b930946eedb0b32e654ab57208bdfdb7bc48e0e206600f0e711b07bf970
MD5 f3d5b70deb457d13c6a5bde58d57fbdc
BLAKE2b-256 deea325ae28e123d22b9708430f48cf5728016fcc52260233e288fb1358ef6cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page