Felipe Solera Bosso
08/29/2025, 4:42 PMAndy Carter
09/01/2025, 7:24 AMgthesheep variant (Gary James)?Andy Carter
09/01/2025, 7:28 AMcampaigns_basic_data_metrics_by_day stream should give you what you need. What streams are you seeing returned? Happy to help if you can share your meltano.yml too.Felipe Solera Bosso
09/01/2025, 2:52 PMYes, I'm using this variant.
The stream fields are created in BigQuery, but they arrive empty. The ads fields arrive normally. My problem is exclusively with the metrics. In Airbyte, it works perfectly only with the ads_reports_daily stream.
My meltano.yml:
- name: tap-tiktok
variant: gthesheep
pip_url: git+<https://github.com/gthesheep/tap-tiktok.git>
config:
start_date: '2025-01-01'
select:
- ads.*
- ads_basic_data_metrics_by_day
- ads_video_play_metrics_by_day
- campaigns_basic_data_metrics_by_dayEdgar Ramírez (Arch.dev)
09/02/2025, 2:47 AM.* to the other patterns?Felipe Solera Bosso
09/02/2025, 1:30 PMyes, I tried and nothing worked, is there anything I can do to solve this? or does anyone have a real example of this tap absorbing metric dataAndy Carter
09/02/2025, 1:34 PMmeltano invoke tap-tiktok and see if if the tap is an issue or your target? What meltano command are you running?Felipe Solera Bosso
09/02/2025, 1:39 PMmeltano invoke tap-tiktok and it works — it successfully connects and returns data.
But right now it’s only returning the ads stream, which contains ad metadata (IDs, names, campaign/adgroup references, landing page URL, etc.), not performance metrics.
That’s why I don’t see fields like spend, impressions, clicks, or complete_views.Andy Carter
09/02/2025, 2:11 PMselect block from your meltano.yml completely for this tap and run again?Felipe Solera Bosso
09/02/2025, 2:37 PMFelipe Solera Bosso
09/02/2025, 2:43 PMAndy Carter
09/02/2025, 2:58 PMmeltano invoke tap-tiktok > output.jsonl and see if the desired stream is in the output fileAndy Carter
09/02/2025, 2:59 PMcampaigns_basic_data_metrics_by_day streamAndy Carter
09/02/2025, 2:59 PMad_accounts
ad_groups
ads
ads_attribute_metrics
ads_attribution_metrics_by_day
ads_basic_data_metrics_by_day
ads_engagement_metrics_by_day
ads_in_app_event_metrics_by_day
ads_page_event_metrics_by_day
ads_video_play_metrics_by_day
campaigns
campaigns_attribute_metrics
campaigns_attribution_metrics_by_day
campaigns_basic_data_metrics_by_day
campaigns_engagement_metrics_by_day
campaigns_in_app_event_metrics_by_day
campaigns_page_event_metrics_by_day
campaigns_video_play_metrics_by_dayFelipe Solera Bosso
09/02/2025, 5:33 PMmeltano invoke tap-tiktok > output.jsonl as suggested and then searched for the campaigns_basic_data_metrics_by_day stream. Here's what I found:
{"type": "SCHEMA", "stream": "campaigns_basic_data_metrics_by_day", "schema": {...}}
{"type": "STATE", "value": {"bookmarks": {"campaigns_basic_data_metrics_by_day": {}}}}
The Stream exists, the SCHEMA section shows the fields that campaigns_basic_data_metrics_by_day would have (spend, cpc, impressions, clicks, conversions, etc.).
No actual metric records were extracted — all the STATE bookmarks are empty, meaning no data was pulled.Andy Carter
09/03/2025, 7:39 AMAndy Carter
09/03/2025, 7:41 AMFelipe Solera Bosso
09/03/2025, 2:00 PMads stream is bringing ad metadata correctly, but the ads_basic_data_metrics_by_day stream (and possibly other daily metric streams) is still returning empty.
I’ve also reviewed the start_date parameter to ensure it covers the correct period. Could you confirm if there is any specific limitation in the API or additional configuration required for these metric streams to return data?Felipe Solera Bosso
09/03/2025, 3:20 PMI checked the start date and the save status, we currently have airbyte active and it is resulting in data normallyAndy Carter
09/03/2025, 8:16 PMAndy Carter
09/03/2025, 8:19 PMAndy Carter
09/03/2025, 8:26 PMAdsReportsDaily returns data, can you see any metrics in the ads_basic_data_metrics_by_day meltano stream? That would be the equivalent in the meltano tap.Andy Carter
09/03/2025, 8:28 PM--full-refresh flag to reset the state?
Try setting the lookback in the config to 100 to see if that has an effect.
https://github.com/GtheSheep/tap-tiktok/blob/653e286c1d68e2883caf836202e639b8f175ae8b/tap_tiktok/tap.py#L79Felipe Solera Bosso
09/05/2025, 6:54 PMAndy Carter
09/10/2025, 7:50 AMaccess_token in your meltano.yml or through env variables?Andy Carter
09/10/2025, 7:52 AMFelipe Solera Bosso
09/10/2025, 6:09 PMTAP_TIKTOK_ACCESS_TOKEN and TAP_TIKTOK_ADVERTISER_ID.Andy Carter
09/11/2025, 3:49 PMAndy Carter
09/11/2025, 3:57 PM