Skip to main content

TikTok Ads Destination Connector

This package exposes the first-party retl/tiktok-ads destination connector.

Surfaces

  • custom_audiences: State surface for TikTok Ads Custom Audience membership. Supports upsert and remove, requires a Target audience, and supports managed target creation.

RETL accepts email, phone_e164, and mobile_advertising_id identifiers. The connector hashes values with SHA-256 unless they are already SHA-256 hex. Email and phone values are trimmed and lowercased before hashing; mobile advertising IDs are trimmed and lowercased before hashing.

Auth

The connector uses TikTok's Access-Token header:

destination = retl.destinations.load(
    "retl/tiktok-ads",
    binding_name="tiktok_ads_primary",
    credential_namespace="destinations.tiktok_ads",
    config_namespace="destinations.tiktok_ads",
)

Environment-backed names:

DESTINATIONS__TIKTOK_ADS__ACCESS_TOKEN
DESTINATIONS__TIKTOK_ADS__ADVERTISER_ID
DESTINATIONS__TIKTOK_ADS__API_VERSION
DESTINATIONS__TIKTOK_ADS__MOBILE_ADVERTISING_ID_TYPE

Config

Required public config:

  • advertiser_id: TikTok Ads advertiser ID.

Optional public config:

  • api_version: defaults to TikTok Business API version 1.3, including the TikTok path prefix used by the Business API.
  • mobile_advertising_id_type: defaults to MAID_SHA256; may be IDFA_SHA256 or GAID_SHA256 when the source column is platform-specific.

The connector owns the production API origin https://business-api.tiktok.com in package code. Tests use injected transports to capture requests without changing that origin.

API Notes

This connector uses TikTok Business API version 1.3 DMP Custom Audience endpoints. Membership data is rendered as an in-memory text file, uploaded to TikTok, and then referenced by the create/update request:

  • POST /open_api/{api_version}/dmp/custom_audience/file/upload/
  • POST /open_api/{api_version}/dmp/custom_audience/create/
  • POST /open_api/{api_version}/dmp/custom_audience/update/

Managed target lookup uses:

  • GET /open_api/{api_version}/dmp/custom_audience/list/

TikTok audience processing can be asynchronous; submission evidence is therefore reported as accepted.

Proof

Default package tests are deterministic and offline. They use injected transports to verify request paths, headers, bodies, target mapping, dry-run behavior, response classification, and managed target lookup/create behavior.

The opt-in live sandbox test reads local/env/.env.tiktok_ads-sandbox when present and runs with:

make test-sandbox-tiktok-ads

It creates a disposable Custom Audience through file upload, submits one synthetic upsert and one synthetic remove, asserts TikTok acceptance evidence, and best-effort deletes the audience through the DMP Custom Audience delete endpoint.

Metadata

Release files for condor-retl-tiktok-ads 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for condor-retl-tiktok-ads 0.1.0
File Size Uploaded
condor_retl_tiktok_ads-0.1.0.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for condor-retl-tiktok-ads 0.1.0
File Interpreter ABI Platform
condor_retl_tiktok_ads-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / condor_retl_tiktok_ads-0.1.0.tar.gz

Download URL condor_retl_tiktok_ads-0.1.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e8c2ce9debd8667241d2dabb54fc04b17bd8c14c450dc9313a6bda56bf671c9a
BLAKE2b-256 checksum
How to use checksums
9e4390dffaa5ff5f63162375868214a2a57b9b59d5274d81a0102191082f4701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log

Release files / condor_retl_tiktok_ads-0.1.0-py3-none-any.whl

Download URL condor_retl_tiktok_ads-0.1.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
405e033ea1c3ea6fcabec68de164a69d40399a907158e80c14aa81759c28ebe5
BLAKE2b-256 checksum
How to use checksums
82967117e5e0eae05cf58f7b45c5b2829a0454e0ae9727de37508cd63abe68e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page