{"key":"tiktok_ads","slug":"tiktok-ads","name":"TikTok Ads","tagline":"TikTok ads performance in your own BigQuery.","summary":"Advertiser accounts, campaigns, ad groups and ads, with daily metrics for delivery, video plays, engagement, attribution, page events and in-app events.","setup":{"in_growth_nirvana":["In Growth Nirvana, open Connections and choose Add connection.","Pick TikTok Ads and choose Sign in with TikTok.","Choose the advertiser accounts to sync (all of them by default; new ones are picked up when you choose all).","Pick the tables to sync, or keep the defaults, and save. The first sync starts right away and fills your BigQuery dataset."],"in_the_vendor":["Sign in with a TikTok For Business user who has access to the advertiser accounts."],"sign_in_link":"Not the person with access? Send them a sign-in link from the connection: they sign in with TikTok once, with no Growth Nirvana login."},"agent_prompts":["Connect TikTok Ads to my BigQuery with Growth Nirvana","Get my TikTok Ads data into BigQuery"],"how_it_syncs":["Each sync re-reads the last 28 days, because TikTok restates recent days.","Report tables are replaced by account and day, so a re-read day never doubles."],"goal":{"slug":"connect-tiktok-ads-to-bigquery","title":"Connect TikTok Ads to BigQuery","intro":"Load TikTok campaigns, ads and daily metrics into your own BigQuery dataset."},"logo":"https://connect.aria-ingest.com/v1/connectors/tiktok_ads/logo","settings":[{"key":"start_date","title":"Start date","description":"The first day of the first sync; later runs continue from each report's bookmark, less the lookback."},{"key":"end_date","title":"End date","description":"Defaults to today."},{"key":"lookback_days","title":"Lookback days","description":"Days of the daily reports pulled again on every run, because TikTok restates recent days.","default":28}],"streams":["ad_accounts","campaigns","ad_groups","ads","ads_basic_data_metrics_by_day","ads_video_play_metrics_by_day","ads_engagement_metrics_by_day","ads_attribution_metrics_by_day","ads_page_event_metrics_by_day","ads_in_app_event_metrics_by_day","ads_attribute_metrics","campaigns_basic_data_metrics_by_day","campaigns_video_play_metrics_by_day","campaigns_engagement_metrics_by_day","campaigns_attribution_metrics_by_day","campaigns_page_event_metrics_by_day","campaigns_in_app_event_metrics_by_day","campaigns_attribute_metrics"],"default_streams":["ad_accounts","campaigns","ad_groups","ads","ads_basic_data_metrics_by_day","ads_video_play_metrics_by_day","ads_engagement_metrics_by_day","ads_attribution_metrics_by_day","ads_page_event_metrics_by_day","ads_in_app_event_metrics_by_day"],"catalog":{"connector":"tiktok_ads","version":"0.1.12","tables":[{"stream":"ad_accounts","table":"stg__ad_accounts","kind":"table","load":"replace","columns":[{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"name","type":"STRING","nullable":true,"description":"The advertiser's name.","role":"dimension"},{"name":"company","type":"STRING","nullable":true,"description":"The company name on the advertiser account.","role":"dimension"},{"name":"contacter","type":"STRING","nullable":true,"description":"The advertiser's contact person.","role":"dimension"},{"name":"promotion_area","type":"STRING","nullable":true,"description":"The region the advertiser promotes in.","role":"dimension"},{"name":"balance","type":"FLOAT","nullable":true,"description":"The account balance, in the account's currency, when the row was synced.","role":"dimension"},{"name":"license_province","type":"STRING","nullable":true,"description":"The province on the advertiser's business license.","role":"dimension"},{"name":"currency","type":"STRING","nullable":true,"description":"The account's currency, an ISO 4217 code. Every money column of the account is in this currency.","role":"dimension"},{"name":"promotion_center_city","type":"STRING","nullable":true,"description":"The city of the advertiser's promotion center.","role":"dimension"},{"name":"display_timezone","type":"STRING","nullable":true,"description":"The account's time zone as TikTok shows it in Ads Manager.","role":"dimension"},{"name":"email","type":"STRING","nullable":true,"description":"The advertiser's contact email.","role":"dimension"},{"name":"telephone","type":"STRING","nullable":true,"description":"The advertiser's contact phone number.","role":"dimension"},{"name":"phonenumber","type":"STRING","nullable":true,"description":"The advertiser's contact mobile number.","role":"dimension"},{"name":"language","type":"STRING","nullable":true,"description":"The advertiser's language.","role":"dimension"},{"name":"industry","type":"STRING","nullable":true,"description":"The advertiser's industry code.","role":"dimension"},{"name":"create_time","type":"INTEGER","nullable":true,"description":"When the item was created.","role":"dimension"},{"name":"address","type":"STRING","nullable":true,"description":"The advertiser's address.","role":"dimension"},{"name":"role","type":"STRING","nullable":true,"description":"The advertiser's role (ROLE_ADVERTISER, ROLE_CHILD_ADVERTISER, ...).","role":"dimension"},{"name":"reason","type":"STRING","nullable":true,"description":"Why the advertiser account was rejected, if it was.","role":"dimension"},{"name":"promotion_center_province","type":"STRING","nullable":true,"description":"The province of the advertiser's promotion center.","role":"dimension"},{"name":"timezone","type":"STRING","nullable":true,"description":"The account's time zone; report days are in this zone.","role":"dimension"},{"name":"license_url","type":"STRING","nullable":true,"description":"A link to the advertiser's business license image.","role":"dimension"},{"name":"country","type":"STRING","nullable":true,"description":"The advertiser's country or region code.","role":"dimension"},{"name":"status","type":"STRING","nullable":true,"description":"The item's status as TikTok reports it (for an advertiser: STATUS_ENABLE, STATUS_DISABLE, ...; for campaigns, ad groups and ads: its serving status).","role":"dimension"},{"name":"brand","type":"STRING","nullable":true,"description":"The advertiser's brand name.","role":"dimension"},{"name":"license_city","type":"STRING","nullable":true,"description":"The city on the advertiser's business license.","role":"dimension"},{"name":"description","type":"STRING","nullable":true,"description":"The advertiser's description.","role":"dimension"},{"name":"license_no","type":"STRING","nullable":true,"description":"The advertiser's business license number.","role":"dimension"},{"name":"owner_bc_id","type":"STRING","nullable":true,"description":"The Business Center that owns the advertiser account.","role":"dimension"},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"One row per advertiser (ad account): name, currency, time zone, status and balance.","replace_scope":["advertiser_id"]},{"stream":"ad_accounts","table":"stg__ad_accounts__changes","kind":"table","load":"replace","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"account_id","type":"STRING","nullable":true,"description":"The advertiser (ad account) the changed item belongs to.","role":"key"},{"name":"entity_id","type":"STRING","nullable":true,"description":"The ID of the item whose setting changed.","role":"key"},{"name":"entity_name","type":"STRING","nullable":true,"description":"The item's name when the change was detected.","role":"dimension"},{"name":"change_type","type":"STRING","nullable":true,"description":"What happened: the item was added, removed, or one of its settings changed.","role":"dimension"},{"name":"field","type":"STRING","nullable":true,"description":"The setting (column) that changed.","role":"dimension"},{"name":"old_value","type":"STRING","nullable":true,"description":"The setting's value in the previous daily snapshot, as text.","role":"dimension"},{"name":"new_value","type":"STRING","nullable":true,"description":"The setting's value in this snapshot, as text.","role":"dimension"},{"name":"changed_on","type":"DATE","nullable":true,"description":"The day of the snapshot that first showed the change.","role":"timestamp"},{"name":"previous_snapshot_date","type":"DATE","nullable":true,"description":"The day of the snapshot it was compared with.","role":"dimension"},{"name":"_aria_scope","type":"STRING","nullable":true,"role":"system"},{"name":"_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_detected_at","type":"TIMESTAMP","nullable":true,"description":"When the sync detected the change (UTC).","role":"system"}],"description":"Changes to the settings of the parent table's items, one row per changed setting, found by comparing daily snapshots (TikTok keeps no history)."},{"stream":"ad_groups","table":"stg__ad_groups","kind":"table","load":"replace","columns":[{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"display_mode","type":"STRING","nullable":true,"description":"Where the ad group's ads are displayed.","role":"dimension"},{"name":"creative_material_mode","type":"STRING","nullable":true,"description":"How the ad group's creatives are built (CUSTOM, DYNAMIC, ...).","role":"dimension"},{"name":"optimize_goal","type":"STRING","nullable":true,"description":"What delivery optimizes for (CLICK, CONVERT, REACH, SHOW, INSTALL, VALUE, ...).","role":"dimension"},{"name":"budget_mode","type":"STRING","nullable":true,"description":"How the budget is set (BUDGET_MODE_DAY, BUDGET_MODE_TOTAL, BUDGET_MODE_INFINITE, ...).","role":"dimension"},{"name":"brand_safety_partner","type":"STRING","nullable":true,"description":"The third-party brand-safety partner, if any.","role":"dimension"},{"name":"enable_inventory_filter","type":"BOOLEAN","nullable":true,"description":"Whether the inventory filter is on.","role":"dimension"},{"name":"conversion_bid","type":"FLOAT","nullable":true,"description":"The bid per conversion (target CPA), in the account's currency.","role":"dimension"},{"name":"scheduled_budget","type":"FLOAT","nullable":true,"description":"A scheduled budget change, in the account's currency.","role":"dimension"},{"name":"deep_external_action","type":"STRING","nullable":true,"description":"The deep (secondary) conversion event the ad group optimizes for.","role":"dimension"},{"name":"modify_time","type":"TIMESTAMP","nullable":true,"description":"When the item was last changed.","role":"dimension"},{"name":"placement_type","type":"STRING","nullable":true,"description":"How placements are chosen (PLACEMENT_TYPE_AUTOMATIC or PLACEMENT_TYPE_NORMAL).","role":"dimension"},{"name":"is_comment_disable","type":"INTEGER","nullable":true,"description":"Whether comments on the ads are turned off (1) or on (0).","role":"dimension"},{"name":"schedule_end_time","type":"TIMESTAMP","nullable":true,"description":"When the ad group stops delivering, in the account's time zone.","role":"dimension"},{"name":"brand_safety","type":"STRING","nullable":true,"description":"The ad group's brand-safety level.","role":"dimension"},{"name":"daily_retention_ratio","type":"FLOAT","nullable":true,"description":"The target day-2 retention rate, for app retention optimization.","role":"dimension"},{"name":"rf_predict_cpr","type":"FLOAT","nullable":true,"description":"Reach and frequency: the predicted cost per 1,000 people reached.","role":"dimension"},{"name":"deep_bid_type","type":"STRING","nullable":true,"description":"The bidding strategy for the deep (secondary) event, if any.","role":"dimension"},{"name":"skip_learning_phase","type":"BOOLEAN","nullable":true,"description":"Whether the learning phase is skipped.","role":"dimension"},{"name":"rf_predict_frequency","type":"FLOAT","nullable":true,"description":"Reach and frequency: the predicted frequency.","role":"dimension"},{"name":"external_type","type":"STRING","nullable":true,"description":"The type of the optimization event's source (website, app, ...).","role":"dimension"},{"name":"gender","type":"STRING","nullable":true,"description":"The gender targeted (GENDER_MALE, GENDER_FEMALE, GENDER_UNLIMITED).","role":"dimension"},{"name":"category","type":"INTEGER","nullable":true,"description":"The ad group's app category.","role":"dimension"},{"name":"pixel_id","type":"STRING","nullable":true,"description":"The TikTok Pixel used for conversion tracking.","role":"dimension"},{"name":"frequency_schedule","type":"INTEGER","nullable":true,"description":"The frequency cap's period in days.","role":"dimension"},{"name":"enable_search_result","type":"BOOLEAN","nullable":true,"description":"Whether the ads may also show in TikTok search results.","role":"dimension"},{"name":"bid","type":"FLOAT","nullable":true,"description":"The bid (CPC or CPM, per bid_type), in the account's currency.","role":"dimension"},{"name":"app_type","type":"STRING","nullable":true,"description":"The promoted app's platform (APP_ANDROID, APP_IOS).","role":"dimension"},{"name":"app_download_url","type":"STRING","nullable":true,"description":"The promoted app's download link.","role":"dimension"},{"name":"create_time","type":"TIMESTAMP","nullable":true,"description":"When the item was created.","role":"dimension"},{"name":"frequency","type":"INTEGER","nullable":true,"description":"The frequency cap: the most times a person sees the ads in frequency_schedule days.","role":"dimension"},{"name":"ios14_quota_type","type":"STRING","nullable":true,"description":"Whether the ad group uses an iOS 14 dedicated campaign quota.","role":"dimension"},{"name":"bid_type","type":"STRING","nullable":true,"description":"The bidding strategy (BID_TYPE_NO_BID, BID_TYPE_CUSTOM, ...).","role":"dimension"},{"name":"app_id","type":"INTEGER","nullable":true,"description":"The promoted app's ID in TikTok.","role":"dimension"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"buy_reach","type":"INTEGER","nullable":true,"description":"Reach and frequency: the people reached bought.","role":"dimension"},{"name":"dayparting","type":"STRING","nullable":true,"description":"The hours of the week the ads deliver, as 336 half-hour flags (0 off, 1 on), Monday first.","role":"dimension"},{"name":"buy_impression","type":"INTEGER","nullable":true,"description":"Reach and frequency: the impressions bought.","role":"dimension"},{"name":"automated_targeting","type":"STRING","nullable":true,"description":"Whether automatic targeting is on.","role":"dimension"},{"name":"pacing","type":"STRING","nullable":true,"description":"How the budget is spent over time (PACING_MODE_SMOOTH or PACING_MODE_FAST).","role":"dimension"},{"name":"statistic_type","type":"STRING","nullable":true,"description":"How conversions are counted (EVERY_ONE or ONCE).","role":"dimension"},{"name":"is_hfss","type":"BOOLEAN","nullable":true,"description":"Whether the promoted product is a high fat, salt or sugar (HFSS) food.","role":"dimension"},{"name":"conversion_id","type":"INTEGER","nullable":true,"description":"The conversion event ID the ad group optimizes for.","role":"dimension"},{"name":"campaign_name","type":"STRING","nullable":true,"description":"The campaign's name.","role":"dimension"},{"name":"rf_buy_type","type":"STRING","nullable":true,"description":"Reach and frequency: how the reach is bought.","role":"dimension"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"schedule_start_time","type":"TIMESTAMP","nullable":true,"description":"When the ad group starts delivering, in the account's time zone.","role":"dimension"},{"name":"opt_status","type":"STRING","nullable":true,"description":"The status the advertiser set (ENABLE, DISABLE).","role":"dimension"},{"name":"status","type":"STRING","nullable":true,"description":"The item's status as TikTok reports it (for an advertiser: STATUS_ENABLE, STATUS_DISABLE, ...; for campaigns, ad groups and ads: its serving status).","role":"dimension"},{"name":"external_action","type":"STRING","nullable":true,"description":"The conversion event the ad group or ad optimizes for.","role":"dimension"},{"name":"conversion_window","type":"INTEGER","nullable":true,"description":"The attribution window for the optimization event.","role":"dimension"},{"name":"adgroup_name","type":"STRING","nullable":true,"description":"The ad group's name.","role":"dimension"},{"name":"billing_event","type":"STRING","nullable":true,"description":"What the advertiser is billed for (CPC, CPM, CPV, OCPM, ...).","role":"dimension"},{"name":"budget","type":"FLOAT","nullable":true,"description":"The budget, in the account's currency; daily or lifetime per budget_mode.","role":"dimension"},{"name":"video_download","type":"STRING","nullable":true,"description":"Whether people may download the ads' videos (ALLOW_DOWNLOAD or PREVENT_DOWNLOAD).","role":"dimension"},{"name":"deep_cpabid","type":"FLOAT","nullable":true,"description":"The bid for the deep (secondary) event, in the account's currency.","role":"dimension"},{"name":"is_share_disable","type":"BOOLEAN","nullable":true,"description":"Whether sharing the ads is turned off.","role":"dimension"},{"name":"feed_type","type":"STRING","nullable":true,"description":"The feed the ads show in.","role":"dimension"},{"name":"schedule_infos","type":"STRING","nullable":true,"description":"Reach and frequency schedule details.","role":"dimension"},{"name":"is_new_structure","type":"BOOLEAN","nullable":true,"description":"Whether the item uses TikTok's newer campaign structure.","role":"dimension"},{"name":"schedule_type","type":"STRING","nullable":true,"description":"How the ad group is scheduled (SCHEDULE_START_END or SCHEDULE_FROM_NOW).","role":"dimension"},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"One row per ad group: targeting, placements, bidding, budget and schedule.","replace_scope":["advertiser_id"]},{"stream":"ad_groups","table":"stg__ad_groups__changes","kind":"table","load":"replace","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"account_id","type":"STRING","nullable":true,"description":"The advertiser (ad account) the changed item belongs to.","role":"key"},{"name":"entity_id","type":"STRING","nullable":true,"description":"The ID of the item whose setting changed.","role":"key"},{"name":"entity_name","type":"STRING","nullable":true,"description":"The item's name when the change was detected.","role":"dimension"},{"name":"change_type","type":"STRING","nullable":true,"description":"What happened: the item was added, removed, or one of its settings changed.","role":"dimension"},{"name":"field","type":"STRING","nullable":true,"description":"The setting (column) that changed.","role":"dimension"},{"name":"old_value","type":"STRING","nullable":true,"description":"The setting's value in the previous daily snapshot, as text.","role":"dimension"},{"name":"new_value","type":"STRING","nullable":true,"description":"The setting's value in this snapshot, as text.","role":"dimension"},{"name":"changed_on","type":"DATE","nullable":true,"description":"The day of the snapshot that first showed the change.","role":"timestamp"},{"name":"previous_snapshot_date","type":"DATE","nullable":true,"description":"The day of the snapshot it was compared with.","role":"dimension"},{"name":"_aria_scope","type":"STRING","nullable":true,"role":"system"},{"name":"_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_detected_at","type":"TIMESTAMP","nullable":true,"description":"When the sync detected the change (UTC).","role":"system"}],"description":"Changes to the settings of the parent table's items, one row per changed setting, found by comparing daily snapshots (TikTok keeps no history)."},{"stream":"ad_groups","table":"stg__ad_groups_action_v2","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"action_categories","type":"INTEGER","nullable":true,"description":"Behavior targeting: the action category IDs.","role":"dimension"},{"name":"action_period","type":"INTEGER","nullable":true,"description":"Behavior targeting: how many past days of actions count (7 or 15).","role":"dimension"},{"name":"action_scene","type":"STRING","nullable":true,"description":"Behavior targeting: where the actions happened (VIDEO_RELATED, CREATOR_RELATED, HASHTAG_RELATED).","role":"dimension"},{"name":"user_actions","type":"STRING","nullable":true,"description":"Behavior targeting: the actions people took (WATCHED_TO_END, LIKED, COMMENTED, SHARED, ...).","role":"dimension"}],"parent":"stg__ad_groups","description":"Behavior targeting of the ad group: one row per action rule."},{"stream":"ad_groups","table":"stg__ad_groups_age","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"An age group (AGE_13_17, AGE_18_24, AGE_25_34, ...).","role":"dimension"}],"parent":"stg__ad_groups","description":"Age groups the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_audience","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"INTEGER","nullable":true,"description":"A custom audience ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Custom audiences the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_connection_type","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A connection type (WIFI, 2G, 3G, 4G, 5G).","role":"dimension"}],"parent":"stg__ad_groups","description":"Network connection types the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_device_models","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"INTEGER","nullable":true,"description":"A device model ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Device models the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_device_price","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A device price range ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Device price ranges the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_exclude_custom_actions","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A custom action.","role":"dimension"}],"parent":"stg__ad_groups","description":"Custom actions that exclude people, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_excluded_audience","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"INTEGER","nullable":true,"description":"A custom audience ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Custom audiences the ad group excludes, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_include_custom_actions","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A custom action.","role":"dimension"}],"parent":"stg__ad_groups","description":"Custom actions people must have taken to be targeted, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_interest_category_v2","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"INTEGER","nullable":true,"description":"An interest category ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Interest categories the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_interest_keywords","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"An interest keyword ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Interest keywords the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_keywords","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A search keyword.","role":"dimension"}],"parent":"stg__ad_groups","description":"Search keywords of the ad group, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_languages","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A language code.","role":"dimension"}],"parent":"stg__ad_groups","description":"Languages the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_location","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"INTEGER","nullable":true,"description":"A location ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"Locations the ad group targets (TikTok location IDs), one per row."},{"stream":"ad_groups","table":"stg__ad_groups_operation_system","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"An operating system (ANDROID, IOS).","role":"dimension"}],"parent":"stg__ad_groups","description":"Operating systems the ad group targets, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_placement","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"A placement (PLACEMENT_TIKTOK, PLACEMENT_PANGLE, ...).","role":"dimension"}],"parent":"stg__ad_groups","description":"Placements the ad group's ads show in, one per row."},{"stream":"ad_groups","table":"stg__ad_groups_split_test_adgroup_ids","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"An ad group ID.","role":"dimension"}],"parent":"stg__ad_groups","description":"The other ad groups in the same split test, one per row."},{"stream":"ads","table":"stg__ads","kind":"table","load":"replace","columns":[{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"ad_format","type":"STRING","nullable":true,"description":"The ad's format (SINGLE_IMAGE, SINGLE_VIDEO, CAROUSEL_ADS, ...).","role":"dimension"},{"name":"campaign_name","type":"STRING","nullable":true,"description":"The campaign's name.","role":"dimension"},{"name":"external_action","type":"STRING","nullable":true,"description":"The conversion event the ad group or ad optimizes for.","role":"dimension"},{"name":"identity_type","type":"STRING","nullable":true,"description":"The kind of identity the ad is posted as (CUSTOMIZED_USER, AUTH_CODE, TT_USER, BC_AUTH_TT).","role":"dimension"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"impression_tracking_url","type":"STRING","nullable":true,"description":"A third-party URL called on each impression.","role":"dimension"},{"name":"brand_safety_postbid_partner","type":"STRING","nullable":true,"description":"The post-bid brand-safety measurement partner.","role":"dimension"},{"name":"ad_name","type":"STRING","nullable":true,"description":"The ad's name.","role":"dimension"},{"name":"avatar_icon_web_uri","type":"STRING","nullable":true,"description":"The avatar image shown with the ad.","role":"dimension"},{"name":"ad_texts","type":"STRING","nullable":true,"description":"The ad's texts, for ads with several.","role":"dimension"},{"name":"vast_moat","type":"BOOLEAN","nullable":true,"description":"Whether Moat viewability measurement is on.","role":"dimension"},{"name":"is_creative_authorized","type":"BOOLEAN","nullable":true,"description":"Whether the creator allowed the ad's video to be used by the advertiser.","role":"dimension"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"call_to_action_id","type":"STRING","nullable":true,"description":"The dynamic call-to-action set used, if any.","role":"dimension"},{"name":"video_id","type":"STRING","nullable":true,"description":"The ad's video.","role":"dimension"},{"name":"adgroup_name","type":"STRING","nullable":true,"description":"The ad group's name.","role":"dimension"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"open_url_type","type":"STRING","nullable":true,"description":"How the ad's deep link opens (NORMAL, DEFERRED_DEEPLINK).","role":"dimension"},{"name":"creative_type","type":"STRING","nullable":true,"description":"The creative's type.","role":"dimension"},{"name":"landing_page_url","type":"STRING","nullable":true,"description":"The ad's landing page URL.","role":"dimension"},{"name":"modify_time","type":"TIMESTAMP","nullable":true,"description":"When the item was last changed.","role":"dimension"},{"name":"profile_image","type":"STRING","nullable":true,"description":"The profile image shown with the ad.","role":"dimension"},{"name":"call_to_action","type":"STRING","nullable":true,"description":"The ad's call to action (LEARN_MORE, SHOP_NOW, DOWNLOAD_NOW, ...).","role":"dimension"},{"name":"identity_id","type":"STRING","nullable":true,"description":"The identity the ad is posted as.","role":"dimension"},{"name":"page_id","type":"FLOAT","nullable":true,"description":"The TikTok Instant Page the ad leads to, if any.","role":"dimension"},{"name":"display_name","type":"STRING","nullable":true,"description":"The name shown on the ad.","role":"dimension"},{"name":"opt_status","type":"STRING","nullable":true,"description":"The status the advertiser set (ENABLE, DISABLE).","role":"dimension"},{"name":"playable_url","type":"STRING","nullable":true,"description":"The playable ad's URL, if any.","role":"dimension"},{"name":"is_new_structure","type":"BOOLEAN","nullable":true,"description":"Whether the item uses TikTok's newer campaign structure.","role":"dimension"},{"name":"click_tracking_url","type":"STRING","nullable":true,"description":"A third-party URL called on each click.","role":"dimension"},{"name":"ad_text","type":"STRING","nullable":true,"description":"The ad's text.","role":"dimension"},{"name":"landing_page_urls","type":"STRING","nullable":true,"description":"The ad's landing page URLs, for ads with several.","role":"dimension"},{"name":"is_aco","type":"BOOLEAN","nullable":true,"description":"Whether the ad is an automated creative optimization ad.","role":"dimension"},{"name":"open_url","type":"STRING","nullable":true,"description":"The ad's deep link.","role":"dimension"},{"name":"app_name","type":"STRING","nullable":true,"description":"The promoted app's name.","role":"dimension"},{"name":"status","type":"STRING","nullable":true,"description":"The item's status as TikTok reports it (for an advertiser: STATUS_ENABLE, STATUS_DISABLE, ...; for campaigns, ad groups and ads: its serving status).","role":"dimension"},{"name":"create_time","type":"TIMESTAMP","nullable":true,"description":"When the item was created.","role":"dimension"},{"name":"card_id","type":"STRING","nullable":true,"description":"The interactive card on the ad, if any.","role":"dimension"},{"name":"fallback_type","type":"STRING","nullable":true,"description":"Where people go when the deep link can't open (APP_INSTALL, WEBSITE, UNSET).","role":"dimension"},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"One row per ad: format, texts, landing page and status.","replace_scope":["advertiser_id"]},{"stream":"ads","table":"stg__ads__changes","kind":"table","load":"replace","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"account_id","type":"STRING","nullable":true,"description":"The advertiser (ad account) the changed item belongs to.","role":"key"},{"name":"entity_id","type":"STRING","nullable":true,"description":"The ID of the item whose setting changed.","role":"key"},{"name":"entity_name","type":"STRING","nullable":true,"description":"The item's name when the change was detected.","role":"dimension"},{"name":"change_type","type":"STRING","nullable":true,"description":"What happened: the item was added, removed, or one of its settings changed.","role":"dimension"},{"name":"field","type":"STRING","nullable":true,"description":"The setting (column) that changed.","role":"dimension"},{"name":"old_value","type":"STRING","nullable":true,"description":"The setting's value in the previous daily snapshot, as text.","role":"dimension"},{"name":"new_value","type":"STRING","nullable":true,"description":"The setting's value in this snapshot, as text.","role":"dimension"},{"name":"changed_on","type":"DATE","nullable":true,"description":"The day of the snapshot that first showed the change.","role":"timestamp"},{"name":"previous_snapshot_date","type":"DATE","nullable":true,"description":"The day of the snapshot it was compared with.","role":"dimension"},{"name":"_aria_scope","type":"STRING","nullable":true,"role":"system"},{"name":"_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_detected_at","type":"TIMESTAMP","nullable":true,"description":"When the sync detected the change (UTC).","role":"system"}],"description":"Changes to the settings of the parent table's items, one row per changed setting, found by comparing daily snapshots (TikTok keeps no history)."},{"stream":"ads_attribute_metrics","table":"stg__ads_attribute_metrics","kind":"table","load":"replace","columns":[{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"campaign_name","type":"STRING","nullable":true,"description":"The campaign's name.","role":"dimension"},{"name":"objective_type","type":"STRING","nullable":true,"description":"The campaign's advertising objective (REACH, TRAFFIC, VIDEO_VIEWS, LEAD_GENERATION, APP_PROMOTION, WEB_CONVERSIONS, PRODUCT_SALES, ...).","role":"dimension"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"adgroup_name","type":"STRING","nullable":true,"description":"The ad group's name.","role":"dimension"},{"name":"placement","type":"STRING","nullable":true,"description":"Where the ads show (TikTok, Pangle, ...).","role":"dimension"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"ad_name","type":"STRING","nullable":true,"description":"The ad's name.","role":"dimension"},{"name":"ad_text","type":"STRING","nullable":true,"description":"The ad's text.","role":"dimension"},{"name":"tt_app_id","type":"STRING","nullable":true,"description":"The TikTok app ID of the promoted app.","role":"dimension"},{"name":"tt_app_name","type":"STRING","nullable":true,"description":"The name of the promoted app in TikTok.","role":"dimension"},{"name":"mobile_app_id","type":"STRING","nullable":true,"description":"The promoted app's store ID.","role":"dimension"},{"name":"promotion_type","type":"STRING","nullable":true,"description":"What the campaign promotes (APP, WEBSITE, ...).","role":"dimension"},{"name":"dpa_target_audience_type","type":"STRING","nullable":true,"description":"Dynamic product ads: the audience targeted (prospecting or retargeting).","role":"dimension"},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Each ad's settings as the reporting API reports them (names, placement, app).","replace_scope":["advertiser_id"]},{"stream":"ads_attribution_metrics_by_day","table":"stg__ads_attribution_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"vta_app_install","type":"STRING","nullable":true,"description":"View-through app installs: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"vta_conversion","type":"STRING","nullable":true,"description":"View-through conversions: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"cost_per_vta_conversion","type":"STRING","nullable":true,"description":"Spend divided by view-through conversions.","role":"metric","summable":false},{"name":"vta_registration","type":"STRING","nullable":true,"description":"View-through registrations: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"cost_per_vta_registration","type":"STRING","nullable":true,"description":"Spend divided by view-through registrations.","role":"metric","summable":false},{"name":"vta_purchase","type":"STRING","nullable":true,"description":"View-through purchases: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"cost_per_vta_purchase","type":"STRING","nullable":true,"description":"Spend divided by view-through purchases.","role":"metric","summable":false},{"name":"cta_app_install","type":"STRING","nullable":true,"description":"Click-through app installs: after someone clicked an ad.","role":"metric","summable":true},{"name":"cta_conversion","type":"STRING","nullable":true,"description":"Click-through conversions: after someone clicked an ad.","role":"metric","summable":true},{"name":"cost_per_cta_conversion","type":"STRING","nullable":true,"description":"Spend divided by click-through conversions.","role":"metric","summable":false},{"name":"cta_registration","type":"STRING","nullable":true,"description":"Click-through registrations: after someone clicked an ad.","role":"metric","summable":true},{"name":"cost_per_cta_registration","type":"STRING","nullable":true,"description":"Spend divided by click-through registrations.","role":"metric","summable":false},{"name":"cta_purchase","type":"STRING","nullable":true,"description":"Click-through purchases: after someone clicked an ad.","role":"metric","summable":true},{"name":"cost_per_cta_purchase","type":"STRING","nullable":true,"description":"Spend divided by click-through purchases.","role":"metric","summable":false},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Ad conversions per day split into view-through and click-through.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"ads_basic_data_metrics_by_day","table":"stg__ads_basic_data_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"spend","type":"STRING","nullable":true,"description":"Amount spent, in the account's currency.","role":"metric","summable":true},{"name":"cpc","type":"STRING","nullable":true,"description":"Average cost per click.","role":"metric","summable":false},{"name":"cpm","type":"STRING","nullable":true,"description":"Average cost per 1,000 impressions.","role":"metric","summable":false},{"name":"impressions","type":"STRING","nullable":true,"description":"Times the ads were shown.","role":"metric","summable":true},{"name":"clicks","type":"STRING","nullable":true,"description":"Clicks on the ads that lead to a destination.","role":"metric","summable":true},{"name":"ctr","type":"STRING","nullable":true,"description":"Clicks divided by impressions, as a percent.","role":"metric","summable":false},{"name":"reach","type":"STRING","nullable":true,"description":"People who saw the ads at least once (unique; doesn't add up across days or ads).","role":"metric","summable":false},{"name":"cost_per_1000_reached","type":"STRING","nullable":true,"description":"Cost per 1,000 people reached.","role":"metric","summable":false},{"name":"conversion","type":"STRING","nullable":true,"description":"Conversions of the optimization event, attributed to the ads by the time of the ad impression or click.","role":"metric","summable":true},{"name":"cost_per_conversion","type":"STRING","nullable":true,"description":"Spend divided by conversions.","role":"metric","summable":false},{"name":"conversion_rate","type":"STRING","nullable":true,"description":"Conversions divided by clicks (or impressions, for impression-optimized ads), as a percent.","role":"metric","summable":false},{"name":"real_time_conversion","type":"STRING","nullable":true,"description":"Conversions counted at the time they happened (real-time attribution).","role":"metric","summable":true},{"name":"real_time_cost_per_conversion","type":"STRING","nullable":true,"description":"Spend divided by real-time conversions.","role":"metric","summable":false},{"name":"real_time_conversion_rate","type":"STRING","nullable":true,"description":"Real-time conversions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"result","type":"STRING","nullable":true,"description":"Results of the optimization goal (the main outcome the ad group is set to get).","role":"metric","summable":true},{"name":"cost_per_result","type":"STRING","nullable":true,"description":"Spend divided by results.","role":"metric","summable":false},{"name":"result_rate","type":"STRING","nullable":true,"description":"Results divided by impressions, as a percent.","role":"metric","summable":false},{"name":"real_time_result","type":"STRING","nullable":true,"description":"Results counted at the time they happened.","role":"metric","summable":true},{"name":"real_time_cost_per_result","type":"STRING","nullable":true,"description":"Spend divided by real-time results.","role":"metric","summable":false},{"name":"real_time_result_rate","type":"STRING","nullable":true,"description":"Real-time results divided by impressions, as a percent.","role":"metric","summable":false},{"name":"secondary_goal_result","type":"STRING","nullable":true,"description":"Results of the secondary (deep) goal.","role":"metric","summable":true},{"name":"cost_per_secondary_goal_result","type":"STRING","nullable":true,"description":"Spend divided by secondary goal results.","role":"metric","summable":false},{"name":"secondary_goal_result_rate","type":"STRING","nullable":true,"description":"Secondary goal results divided by impressions, as a percent.","role":"metric","summable":false},{"name":"frequency","type":"STRING","nullable":true,"description":"Average times each person saw the ads.","role":"metric","summable":false},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Ad performance per day: spend, impressions, clicks, reach, conversions and results.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"ads_engagement_metrics_by_day","table":"stg__ads_engagement_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"profile_visits","type":"STRING","nullable":true,"description":"Visits to the advertiser's TikTok profile from the ads.","role":"metric","summable":true},{"name":"profile_visits_rate","type":"STRING","nullable":true,"description":"Profile visits divided by impressions, as a percent.","role":"metric","summable":false},{"name":"likes","type":"STRING","nullable":true,"description":"Likes on the ads.","role":"metric","summable":true},{"name":"comments","type":"STRING","nullable":true,"description":"Comments on the ads.","role":"metric","summable":true},{"name":"shares","type":"STRING","nullable":true,"description":"Shares of the ads.","role":"metric","summable":true},{"name":"follows","type":"STRING","nullable":true,"description":"New followers from the ads.","role":"metric","summable":true},{"name":"clicks_on_music_disc","type":"STRING","nullable":true,"description":"Clicks on the ads' music disc (to the sound's page).","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Ad engagement per day: likes, comments, shares, follows and profile visits.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"ads","table":"stg__ads_image_ids","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"STRING","nullable":true,"description":"An image ID.","role":"dimension"}],"parent":"stg__ads","description":"The ad's images, one per row."},{"stream":"ads_in_app_event_metrics_by_day","table":"stg__ads_in_app_event_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"real_time_app_install","type":"STRING","nullable":true,"description":"App installs counted at the time they happened.","role":"metric","summable":true},{"name":"real_time_app_install_cost","type":"STRING","nullable":true,"description":"Spend divided by real-time app installs.","role":"metric","summable":false},{"name":"app_install","type":"STRING","nullable":true,"description":"App installs attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_app_install","type":"STRING","nullable":true,"description":"Spend divided by app installs.","role":"metric","summable":false},{"name":"registration","type":"STRING","nullable":true,"description":"In-app registrations attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_registration","type":"STRING","nullable":true,"description":"Spend divided by in-app registrations.","role":"metric","summable":false},{"name":"registration_rate","type":"STRING","nullable":true,"description":"In-app registrations divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_registration","type":"STRING","nullable":true,"description":"In-app registrations attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_registration","type":"STRING","nullable":true,"description":"Spend divided by total in-app registrations.","role":"metric","summable":false},{"name":"purchase","type":"STRING","nullable":true,"description":"In-app purchases attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_purchase","type":"STRING","nullable":true,"description":"Spend divided by in-app purchases.","role":"metric","summable":false},{"name":"purchase_rate","type":"STRING","nullable":true,"description":"In-app purchases divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_purchase","type":"STRING","nullable":true,"description":"In-app purchases attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_purchase","type":"STRING","nullable":true,"description":"Spend divided by total in-app purchases.","role":"metric","summable":false},{"name":"value_per_total_purchase","type":"STRING","nullable":true,"description":"Average value of the total in-app purchases.","role":"metric","summable":false},{"name":"total_purchase_value","type":"STRING","nullable":true,"description":"The total value of in-app purchases, in the account's currency.","role":"metric","summable":true},{"name":"total_active_pay_roas","type":"STRING","nullable":true,"description":"In-app purchase value divided by spend (return on ad spend).","role":"metric","summable":false},{"name":"app_event_add_to_cart","type":"STRING","nullable":true,"description":"In-app add-to-carts attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_app_event_add_to_cart","type":"STRING","nullable":true,"description":"Spend divided by in-app add-to-carts.","role":"metric","summable":false},{"name":"app_event_add_to_cart_rate","type":"STRING","nullable":true,"description":"In-app add-to-carts divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_app_event_add_to_cart","type":"STRING","nullable":true,"description":"In-app add-to-carts attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_app_event_add_to_cart","type":"STRING","nullable":true,"description":"Spend divided by total in-app add-to-carts.","role":"metric","summable":false},{"name":"value_per_total_app_event_add_to_cart","type":"STRING","nullable":true,"description":"Average value of the total in-app add-to-carts.","role":"metric","summable":false},{"name":"total_app_event_add_to_cart_value","type":"STRING","nullable":true,"description":"The total value of the in-app add-to-carts, in the account's currency.","role":"metric","summable":true},{"name":"checkout","type":"STRING","nullable":true,"description":"In-app checkouts attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_checkout","type":"STRING","nullable":true,"description":"Spend divided by in-app checkouts.","role":"metric","summable":false},{"name":"checkout_rate","type":"STRING","nullable":true,"description":"In-app checkouts divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_checkout","type":"STRING","nullable":true,"description":"In-app checkouts attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_checkout","type":"STRING","nullable":true,"description":"Spend divided by total in-app checkouts.","role":"metric","summable":false},{"name":"value_per_checkout","type":"STRING","nullable":true,"description":"Average value of the in-app checkouts.","role":"metric","summable":false},{"name":"total_checkout_value","type":"STRING","nullable":true,"description":"The total value of in-app checkouts, in the account's currency.","role":"metric","summable":true},{"name":"view_content","type":"STRING","nullable":true,"description":"In-app content views attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_view_content","type":"STRING","nullable":true,"description":"Spend divided by in-app content views.","role":"metric","summable":false},{"name":"view_content_rate","type":"STRING","nullable":true,"description":"In-app content views divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_view_content","type":"STRING","nullable":true,"description":"In-app content views attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_view_content","type":"STRING","nullable":true,"description":"Spend divided by total in-app content views.","role":"metric","summable":false},{"name":"value_per_total_view_content","type":"STRING","nullable":true,"description":"Average value of the total in-app content views.","role":"metric","summable":false},{"name":"total_view_content_value","type":"STRING","nullable":true,"description":"The total value of the in-app content views, in the account's currency.","role":"metric","summable":true},{"name":"next_day_open","type":"STRING","nullable":true,"description":"App opens on the day after install attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_next_day_open","type":"STRING","nullable":true,"description":"Spend divided by app opens on the day after install.","role":"metric","summable":false},{"name":"next_day_open_rate","type":"STRING","nullable":true,"description":"App opens on the day after install divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_next_day_open","type":"STRING","nullable":true,"description":"App opens on the day after install attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_next_day_open","type":"STRING","nullable":true,"description":"Spend divided by total app opens on the day after install.","role":"metric","summable":false},{"name":"add_payment_info","type":"STRING","nullable":true,"description":"In-app add-payment-info events attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_add_payment_info","type":"STRING","nullable":true,"description":"Spend divided by in-app add-payment-info events.","role":"metric","summable":false},{"name":"add_payment_info_rate","type":"STRING","nullable":true,"description":"In-app add-payment-info events divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_add_payment_info","type":"STRING","nullable":true,"description":"In-app add-payment-info events attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_total_add_payment_info","type":"STRING","nullable":true,"description":"Spend divided by total in-app add-payment-info events.","role":"metric","summable":false},{"name":"add_to_wishlist","type":"STRING","nullable":true,"description":"In-app add-to-wishlists attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_add_to_wishlist","type":"STRING","nullable":true,"description":"Spend divided by in-app add-to-wishlists.","role":"metric","summable":false},{"name":"add_to_wishlist_rate","type":"STRING","nullable":true,"description":"In-app add-to-wishlists divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_add_to_wishlist","type":"STRING","nullable":true,"description":"In-app add-to-wishlists attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_add_to_wishlist","type":"STRING","nullable":true,"description":"Spend divided by total in-app add-to-wishlists.","role":"metric","summable":false},{"name":"value_per_total_add_to_wishlist","type":"STRING","nullable":true,"description":"Average value of the total in-app add-to-wishlists.","role":"metric","summable":false},{"name":"total_add_to_wishlist_value","type":"STRING","nullable":true,"description":"The total value of the in-app add-to-wishlists, in the account's currency.","role":"metric","summable":true},{"name":"launch_app","type":"STRING","nullable":true,"description":"App launches attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_launch_app","type":"STRING","nullable":true,"description":"Spend divided by app launches.","role":"metric","summable":false},{"name":"launch_app_rate","type":"STRING","nullable":true,"description":"App launches divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_launch_app","type":"STRING","nullable":true,"description":"App launches attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_launch_app","type":"STRING","nullable":true,"description":"Spend divided by total app launches.","role":"metric","summable":false},{"name":"complete_tutorial","type":"STRING","nullable":true,"description":"Completed in-app tutorials attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_complete_tutorial","type":"STRING","nullable":true,"description":"Spend divided by completed in-app tutorials.","role":"metric","summable":false},{"name":"complete_tutorial_rate","type":"STRING","nullable":true,"description":"Completed in-app tutorials divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_complete_tutorial","type":"STRING","nullable":true,"description":"Completed in-app tutorials attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_complete_tutorial","type":"STRING","nullable":true,"description":"Spend divided by total completed in-app tutorials.","role":"metric","summable":false},{"name":"value_per_total_complete_tutorial","type":"STRING","nullable":true,"description":"Average value of the total completed in-app tutorials.","role":"metric","summable":false},{"name":"total_complete_tutorial_value","type":"STRING","nullable":true,"description":"The total value of the completed in-app tutorials, in the account's currency.","role":"metric","summable":true},{"name":"create_group","type":"STRING","nullable":true,"description":"Groups created in the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_create_group","type":"STRING","nullable":true,"description":"Spend divided by groups created in the app.","role":"metric","summable":false},{"name":"create_group_rate","type":"STRING","nullable":true,"description":"Groups created in the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_create_group","type":"STRING","nullable":true,"description":"Groups created in the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_create_group","type":"STRING","nullable":true,"description":"Spend divided by total groups created in the app.","role":"metric","summable":false},{"name":"value_per_total_create_group","type":"STRING","nullable":true,"description":"Average value of the total groups created in the app.","role":"metric","summable":false},{"name":"total_create_group_value","type":"STRING","nullable":true,"description":"The total value of the groups created in the app, in the account's currency.","role":"metric","summable":true},{"name":"join_group","type":"STRING","nullable":true,"description":"Groups joined in the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_join_group","type":"STRING","nullable":true,"description":"Spend divided by groups joined in the app.","role":"metric","summable":false},{"name":"join_group_rate","type":"STRING","nullable":true,"description":"Groups joined in the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_join_group","type":"STRING","nullable":true,"description":"Groups joined in the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_join_group","type":"STRING","nullable":true,"description":"Spend divided by total groups joined in the app.","role":"metric","summable":false},{"name":"value_per_total_join_group","type":"STRING","nullable":true,"description":"Average value of the total groups joined in the app.","role":"metric","summable":false},{"name":"total_join_group_value","type":"STRING","nullable":true,"description":"The total value of the groups joined in the app, in the account's currency.","role":"metric","summable":true},{"name":"create_gamerole","type":"STRING","nullable":true,"description":"Game characters created attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_create_gamerole","type":"STRING","nullable":true,"description":"Spend divided by game characters created.","role":"metric","summable":false},{"name":"create_gamerole_rate","type":"STRING","nullable":true,"description":"Game characters created divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_create_gamerole","type":"STRING","nullable":true,"description":"Game characters created attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_create_gamerole","type":"STRING","nullable":true,"description":"Spend divided by total game characters created.","role":"metric","summable":false},{"name":"value_per_total_create_gamerole","type":"STRING","nullable":true,"description":"Average value of the total game characters created.","role":"metric","summable":false},{"name":"total_create_gamerole_value","type":"STRING","nullable":true,"description":"The total value of the game characters created, in the account's currency.","role":"metric","summable":true},{"name":"spend_credits","type":"STRING","nullable":true,"description":"In-app credit spends attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_spend_credits","type":"STRING","nullable":true,"description":"Spend divided by in-app credit spends.","role":"metric","summable":false},{"name":"spend_credits_rate","type":"STRING","nullable":true,"description":"In-app credit spends divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_spend_credits","type":"STRING","nullable":true,"description":"In-app credit spends attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_spend_credits","type":"STRING","nullable":true,"description":"Spend divided by total in-app credit spends.","role":"metric","summable":false},{"name":"value_per_total_spend_credits","type":"STRING","nullable":true,"description":"Average value of the total in-app credit spends.","role":"metric","summable":false},{"name":"total_spend_credits_value","type":"STRING","nullable":true,"description":"The total value of the in-app credit spends, in the account's currency.","role":"metric","summable":true},{"name":"achieve_level","type":"STRING","nullable":true,"description":"Game levels achieved attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_achieve_level","type":"STRING","nullable":true,"description":"Spend divided by game levels achieved.","role":"metric","summable":false},{"name":"achieve_level_rate","type":"STRING","nullable":true,"description":"Game levels achieved divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_achieve_level","type":"STRING","nullable":true,"description":"Game levels achieved attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_achieve_level","type":"STRING","nullable":true,"description":"Spend divided by total game levels achieved.","role":"metric","summable":false},{"name":"value_per_total_achieve_level","type":"STRING","nullable":true,"description":"Average value of the total game levels achieved.","role":"metric","summable":false},{"name":"total_achieve_level_value","type":"STRING","nullable":true,"description":"The total value of the game levels achieved, in the account's currency.","role":"metric","summable":true},{"name":"unlock_achievement","type":"STRING","nullable":true,"description":"In-app achievements unlocked attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_unlock_achievement","type":"STRING","nullable":true,"description":"Spend divided by in-app achievements unlocked.","role":"metric","summable":false},{"name":"unlock_achievement_rate","type":"STRING","nullable":true,"description":"In-app achievements unlocked divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_unlock_achievement","type":"STRING","nullable":true,"description":"In-app achievements unlocked attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_unlock_achievement","type":"STRING","nullable":true,"description":"Spend divided by total in-app achievements unlocked.","role":"metric","summable":false},{"name":"value_per_total_unlock_achievement","type":"STRING","nullable":true,"description":"Average value of the total in-app achievements unlocked.","role":"metric","summable":false},{"name":"total_unlock_achievement_value","type":"STRING","nullable":true,"description":"The total value of the in-app achievements unlocked, in the account's currency.","role":"metric","summable":true},{"name":"sales_lead","type":"STRING","nullable":true,"description":"In-app sales leads attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_sales_lead","type":"STRING","nullable":true,"description":"Spend divided by in-app sales leads.","role":"metric","summable":false},{"name":"sales_lead_rate","type":"STRING","nullable":true,"description":"In-app sales leads divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_sales_lead","type":"STRING","nullable":true,"description":"In-app sales leads attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_sales_lead","type":"STRING","nullable":true,"description":"Spend divided by total in-app sales leads.","role":"metric","summable":false},{"name":"value_per_total_sales_lead","type":"STRING","nullable":true,"description":"Average value of the total in-app sales leads.","role":"metric","summable":false},{"name":"total_sales_lead_value","type":"STRING","nullable":true,"description":"The total value of the in-app sales leads, in the account's currency.","role":"metric","summable":true},{"name":"in_app_ad_click","type":"STRING","nullable":true,"description":"Clicks on ads inside the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_in_app_ad_click","type":"STRING","nullable":true,"description":"Spend divided by clicks on ads inside the app.","role":"metric","summable":false},{"name":"in_app_ad_click_rate","type":"STRING","nullable":true,"description":"Clicks on ads inside the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_in_app_ad_click","type":"STRING","nullable":true,"description":"Clicks on ads inside the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_in_app_ad_click","type":"STRING","nullable":true,"description":"Spend divided by total clicks on ads inside the app.","role":"metric","summable":false},{"name":"value_per_total_in_app_ad_click","type":"STRING","nullable":true,"description":"Average value of the total clicks on ads inside the app.","role":"metric","summable":false},{"name":"total_in_app_ad_click_value","type":"STRING","nullable":true,"description":"The total value of the clicks on ads inside the app, in the account's currency.","role":"metric","summable":true},{"name":"in_app_ad_impr","type":"STRING","nullable":true,"description":"Ad impressions inside the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_in_app_ad_impr","type":"STRING","nullable":true,"description":"Spend divided by ad impressions inside the app.","role":"metric","summable":false},{"name":"in_app_ad_impr_rate","type":"STRING","nullable":true,"description":"Ad impressions inside the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_in_app_ad_impr","type":"STRING","nullable":true,"description":"Ad impressions inside the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_in_app_ad_impr","type":"STRING","nullable":true,"description":"Spend divided by total ad impressions inside the app.","role":"metric","summable":false},{"name":"value_per_total_in_app_ad_impr","type":"STRING","nullable":true,"description":"Average value of the total ad impressions inside the app.","role":"metric","summable":false},{"name":"total_in_app_ad_impr_value","type":"STRING","nullable":true,"description":"The total value of the ad impressions inside the app, in the account's currency.","role":"metric","summable":true},{"name":"loan_apply","type":"STRING","nullable":true,"description":"Loan applications attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_loan_apply","type":"STRING","nullable":true,"description":"Spend divided by loan applications.","role":"metric","summable":false},{"name":"loan_apply_rate","type":"STRING","nullable":true,"description":"Loan applications divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_loan_apply","type":"STRING","nullable":true,"description":"Loan applications attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_loan_apply","type":"STRING","nullable":true,"description":"Spend divided by total loan applications.","role":"metric","summable":false},{"name":"loan_credit","type":"STRING","nullable":true,"description":"Loan approvals attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_loan_credit","type":"STRING","nullable":true,"description":"Spend divided by loan approvals.","role":"metric","summable":false},{"name":"loan_credit_rate","type":"STRING","nullable":true,"description":"Loan approvals divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_loan_credit","type":"STRING","nullable":true,"description":"Loan approvals attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_loan_credit","type":"STRING","nullable":true,"description":"Spend divided by total loan approvals.","role":"metric","summable":false},{"name":"loan_disbursement","type":"STRING","nullable":true,"description":"Loan disbursements attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_loan_disbursement","type":"STRING","nullable":true,"description":"Spend divided by loan disbursements.","role":"metric","summable":false},{"name":"loan_disbursement_rate","type":"STRING","nullable":true,"description":"Loan disbursements divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_loan_disbursement","type":"STRING","nullable":true,"description":"Loan disbursements attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_loan_disbursement","type":"STRING","nullable":true,"description":"Spend divided by total loan disbursements.","role":"metric","summable":false},{"name":"login","type":"STRING","nullable":true,"description":"In-app logins attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_login","type":"STRING","nullable":true,"description":"Spend divided by in-app logins.","role":"metric","summable":false},{"name":"login_rate","type":"STRING","nullable":true,"description":"In-app logins divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_login","type":"STRING","nullable":true,"description":"In-app logins attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_login","type":"STRING","nullable":true,"description":"Spend divided by total in-app logins.","role":"metric","summable":false},{"name":"ratings","type":"STRING","nullable":true,"description":"In-app ratings attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_ratings","type":"STRING","nullable":true,"description":"Spend divided by in-app ratings.","role":"metric","summable":false},{"name":"ratings_rate","type":"STRING","nullable":true,"description":"In-app ratings divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_ratings","type":"STRING","nullable":true,"description":"In-app ratings attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_ratings","type":"STRING","nullable":true,"description":"Spend divided by total in-app ratings.","role":"metric","summable":false},{"name":"value_per_total_ratings","type":"STRING","nullable":true,"description":"Average value of the total in-app ratings.","role":"metric","summable":false},{"name":"total_ratings_value","type":"STRING","nullable":true,"description":"The total value of the in-app ratings, in the account's currency.","role":"metric","summable":true},{"name":"search","type":"STRING","nullable":true,"description":"In-app searches attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_search","type":"STRING","nullable":true,"description":"Spend divided by in-app searches.","role":"metric","summable":false},{"name":"search_rate","type":"STRING","nullable":true,"description":"In-app searches divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_search","type":"STRING","nullable":true,"description":"In-app searches attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_search","type":"STRING","nullable":true,"description":"Spend divided by total in-app searches.","role":"metric","summable":false},{"name":"start_trial","type":"STRING","nullable":true,"description":"Trials started attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_start_trial","type":"STRING","nullable":true,"description":"Spend divided by trials started.","role":"metric","summable":false},{"name":"start_trial_rate","type":"STRING","nullable":true,"description":"Trials started divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_start_trial","type":"STRING","nullable":true,"description":"Trials started attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_start_trial","type":"STRING","nullable":true,"description":"Spend divided by total trials started.","role":"metric","summable":false},{"name":"subscribe","type":"STRING","nullable":true,"description":"In-app subscriptions attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_subscribe","type":"STRING","nullable":true,"description":"Spend divided by in-app subscriptions.","role":"metric","summable":false},{"name":"subscribe_rate","type":"STRING","nullable":true,"description":"In-app subscriptions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_subscribe","type":"STRING","nullable":true,"description":"In-app subscriptions attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_subscribe","type":"STRING","nullable":true,"description":"Spend divided by total in-app subscriptions.","role":"metric","summable":false},{"name":"value_per_total_subscribe","type":"STRING","nullable":true,"description":"Average value of the total in-app subscriptions.","role":"metric","summable":false},{"name":"total_subscribe_value","type":"STRING","nullable":true,"description":"The total value of the in-app subscriptions, in the account's currency.","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"In-app events per ad and day: installs, registrations, purchases and more, unique and total.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"ads_page_event_metrics_by_day","table":"stg__ads_page_event_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"complete_payment_roas","type":"STRING","nullable":true,"description":"Website payment value divided by spend (return on ad spend).","role":"metric","summable":false},{"name":"complete_payment","type":"STRING","nullable":true,"description":"Completed payments on the website attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_complete_payment","type":"STRING","nullable":true,"description":"Spend divided by completed payments on the website.","role":"metric","summable":false},{"name":"complete_payment_rate","type":"STRING","nullable":true,"description":"Completed payments on the website divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_complete_payment","type":"STRING","nullable":true,"description":"Average value of the completed payments on the website.","role":"metric","summable":false},{"name":"total_complete_payment_rate","type":"STRING","nullable":true,"description":"Website payment value divided by spend (return on ad spend).","role":"metric","summable":false},{"name":"page_browse_view","type":"STRING","nullable":true,"description":"Website page views attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_page_browse_view","type":"STRING","nullable":true,"description":"Spend divided by website page views.","role":"metric","summable":false},{"name":"page_browse_view_rate","type":"STRING","nullable":true,"description":"Website page views divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_page_browse_view_value","type":"STRING","nullable":true,"description":"The total value of the website page views, in the account's currency.","role":"metric","summable":true},{"name":"value_per_page_browse_view","type":"STRING","nullable":true,"description":"Average value of the website page views.","role":"metric","summable":false},{"name":"button_click","type":"STRING","nullable":true,"description":"Website button clicks attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_button_click","type":"STRING","nullable":true,"description":"Spend divided by website button clicks.","role":"metric","summable":false},{"name":"button_click_rate","type":"STRING","nullable":true,"description":"Website button clicks divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_button_click","type":"STRING","nullable":true,"description":"Average value of the website button clicks.","role":"metric","summable":false},{"name":"total_button_click_value","type":"STRING","nullable":true,"description":"The total value of the website button clicks, in the account's currency.","role":"metric","summable":true},{"name":"online_consult","type":"STRING","nullable":true,"description":"Website contacts (online consultations) attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_online_consult","type":"STRING","nullable":true,"description":"Spend divided by website contacts (online consultations).","role":"metric","summable":false},{"name":"online_consult_rate","type":"STRING","nullable":true,"description":"Website contacts (online consultations) divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_online_consult","type":"STRING","nullable":true,"description":"Average value of the website contacts (online consultations).","role":"metric","summable":false},{"name":"total_online_consult_value","type":"STRING","nullable":true,"description":"The total value of the website contacts (online consultations), in the account's currency.","role":"metric","summable":true},{"name":"user_registration","type":"STRING","nullable":true,"description":"Website registrations attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_user_registration","type":"STRING","nullable":true,"description":"Spend divided by website registrations.","role":"metric","summable":false},{"name":"user_registration_rate","type":"STRING","nullable":true,"description":"Website registrations divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_user_registration","type":"STRING","nullable":true,"description":"Average value of the website registrations.","role":"metric","summable":false},{"name":"total_user_registration_value","type":"STRING","nullable":true,"description":"The total value of the website registrations, in the account's currency.","role":"metric","summable":true},{"name":"product_details_page_browse","type":"STRING","nullable":true,"description":"Website product page views attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_product_details_page_browse","type":"STRING","nullable":true,"description":"Spend divided by website product page views.","role":"metric","summable":false},{"name":"product_details_page_browse_rate","type":"STRING","nullable":true,"description":"Website product page views divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_product_details_page_browse","type":"STRING","nullable":true,"description":"Average value of the website product page views.","role":"metric","summable":false},{"name":"total_product_details_page_browse_value","type":"STRING","nullable":true,"description":"The total value of the website product page views, in the account's currency.","role":"metric","summable":true},{"name":"web_event_add_to_cart","type":"STRING","nullable":true,"description":"Website add-to-carts attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_web_event_add_to_cart","type":"STRING","nullable":true,"description":"Spend divided by website add-to-carts.","role":"metric","summable":false},{"name":"web_event_add_to_cart_rate","type":"STRING","nullable":true,"description":"Website add-to-carts divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_web_event_add_to_cart","type":"STRING","nullable":true,"description":"Average value of the website add-to-carts.","role":"metric","summable":false},{"name":"total_web_event_add_to_cart_value","type":"STRING","nullable":true,"description":"The total value of the website add-to-carts, in the account's currency.","role":"metric","summable":true},{"name":"on_web_order","type":"STRING","nullable":true,"description":"Website orders placed attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_on_web_order","type":"STRING","nullable":true,"description":"Spend divided by website orders placed.","role":"metric","summable":false},{"name":"on_web_order_rate","type":"STRING","nullable":true,"description":"Website orders placed divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_on_web_order","type":"STRING","nullable":true,"description":"Average value of the website orders placed.","role":"metric","summable":false},{"name":"total_on_web_order_value","type":"STRING","nullable":true,"description":"The total value of the website orders placed, in the account's currency.","role":"metric","summable":true},{"name":"initiate_checkout","type":"STRING","nullable":true,"description":"Website checkouts started attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_initiate_checkout","type":"STRING","nullable":true,"description":"Spend divided by website checkouts started.","role":"metric","summable":false},{"name":"initiate_checkout_rate","type":"STRING","nullable":true,"description":"Website checkouts started divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_initiate_checkout","type":"STRING","nullable":true,"description":"Average value of the website checkouts started.","role":"metric","summable":false},{"name":"total_initiate_checkout_value","type":"STRING","nullable":true,"description":"The total value of the website checkouts started, in the account's currency.","role":"metric","summable":true},{"name":"add_billing","type":"STRING","nullable":true,"description":"Website add-billing events attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_add_billing","type":"STRING","nullable":true,"description":"Spend divided by website add-billing events.","role":"metric","summable":false},{"name":"add_billing_rate","type":"STRING","nullable":true,"description":"Website add-billing events divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_add_billing","type":"STRING","nullable":true,"description":"Average value of the website add-billing events.","role":"metric","summable":false},{"name":"total_add_billing_value","type":"STRING","nullable":true,"description":"The total value of the website add-billing events, in the account's currency.","role":"metric","summable":true},{"name":"page_event_search","type":"STRING","nullable":true,"description":"Website searches attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_page_event_search","type":"STRING","nullable":true,"description":"Spend divided by website searches.","role":"metric","summable":false},{"name":"page_event_search_rate","type":"STRING","nullable":true,"description":"Website searches divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_page_event_search","type":"STRING","nullable":true,"description":"Average value of the website searches.","role":"metric","summable":false},{"name":"total_page_event_search_value","type":"STRING","nullable":true,"description":"The total value of the website searches, in the account's currency.","role":"metric","summable":true},{"name":"form","type":"STRING","nullable":true,"description":"Website form submissions attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_form","type":"STRING","nullable":true,"description":"Spend divided by website form submissions.","role":"metric","summable":false},{"name":"form_rate","type":"STRING","nullable":true,"description":"Website form submissions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_form","type":"STRING","nullable":true,"description":"Average value of the website form submissions.","role":"metric","summable":false},{"name":"total_form_value","type":"STRING","nullable":true,"description":"The total value of the website form submissions, in the account's currency.","role":"metric","summable":true},{"name":"download_start","type":"STRING","nullable":true,"description":"App downloads started from the website attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_download_start","type":"STRING","nullable":true,"description":"Spend divided by app downloads started from the website.","role":"metric","summable":false},{"name":"download_start_rate","type":"STRING","nullable":true,"description":"App downloads started from the website divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_download_start","type":"STRING","nullable":true,"description":"Average value of the app downloads started from the website.","role":"metric","summable":false},{"name":"total_download_start_value","type":"STRING","nullable":true,"description":"The total value of the app downloads started from the website, in the account's currency.","role":"metric","summable":true},{"name":"on_web_add_to_wishlist","type":"STRING","nullable":true,"description":"Website add-to-wishlists attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_on_web_add_to_wishlist","type":"STRING","nullable":true,"description":"Spend divided by website add-to-wishlists.","role":"metric","summable":false},{"name":"on_web_add_to_wishlist_per_click","type":"STRING","nullable":true,"description":"Website add-to-wishlists divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_on_web_add_to_wishlist","type":"STRING","nullable":true,"description":"Average value of the website add-to-wishlists.","role":"metric","summable":false},{"name":"total_on_web_add_to_wishlist_value","type":"STRING","nullable":true,"description":"The total value of the website add-to-wishlists, in the account's currency.","role":"metric","summable":true},{"name":"on_web_subscribe","type":"STRING","nullable":true,"description":"Website subscriptions attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_on_web_subscribe","type":"STRING","nullable":true,"description":"Spend divided by website subscriptions.","role":"metric","summable":false},{"name":"on_web_subscribe_per_click","type":"STRING","nullable":true,"description":"Website subscriptions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_on_web_subscribe","type":"STRING","nullable":true,"description":"Average value of the website subscriptions.","role":"metric","summable":false},{"name":"total_on_web_subscribe_value","type":"STRING","nullable":true,"description":"The total value of the website subscriptions, in the account's currency.","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Website (pixel) events per ad and day: payments, add-to-carts, registrations, forms and more.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"ads","table":"stg__ads_product_ids","kind":"child","load":"replace_by_parent","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"},{"name":"_item_index","type":"INTEGER","nullable":true,"role":"system"},{"name":"value","type":"INTEGER","nullable":true,"description":"A product ID.","role":"dimension"}],"parent":"stg__ads","description":"Products the ad shows (dynamic product ads), one per row."},{"stream":"ads_video_play_metrics_by_day","table":"stg__ads_video_play_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"ad_id","type":"STRING","nullable":true,"description":"The ad ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"video_play_actions","type":"STRING","nullable":true,"description":"Times the ads' videos started playing.","role":"metric","summable":true},{"name":"video_watched_2s","type":"STRING","nullable":true,"description":"Times the ads' videos played for at least 2 seconds.","role":"metric","summable":true},{"name":"video_watched_6s","type":"STRING","nullable":true,"description":"Times the ads' videos played for at least 6 seconds.","role":"metric","summable":true},{"name":"average_video_play","type":"STRING","nullable":true,"description":"Average seconds each video play lasted.","role":"metric","summable":false},{"name":"average_video_play_per_user","type":"STRING","nullable":true,"description":"Average seconds of video each person watched.","role":"metric","summable":false},{"name":"video_views_p25","type":"STRING","nullable":true,"description":"Times the ads' videos played to 25%.","role":"metric","summable":true},{"name":"video_views_p50","type":"STRING","nullable":true,"description":"Times the ads' videos played to 50%.","role":"metric","summable":true},{"name":"video_views_p75","type":"STRING","nullable":true,"description":"Times the ads' videos played to 75%.","role":"metric","summable":true},{"name":"video_views_p100","type":"STRING","nullable":true,"description":"Times the ads' videos played to the end.","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Ad video plays per day: plays, 2- and 6-second views and completion quartiles.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"campaigns","table":"stg__campaigns","kind":"table","load":"replace","columns":[{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"campaign_name","type":"STRING","nullable":true,"description":"The campaign's name.","role":"dimension"},{"name":"campaign_type","type":"STRING","nullable":true,"description":"The campaign's type (REGULAR_CAMPAIGN or IOS14_CAMPAIGN).","role":"dimension"},{"name":"objective","type":"STRING","nullable":true,"description":"The campaign's legacy objective.","role":"dimension"},{"name":"objective_type","type":"STRING","nullable":true,"description":"The campaign's advertising objective (REACH, TRAFFIC, VIDEO_VIEWS, LEAD_GENERATION, APP_PROMOTION, WEB_CONVERSIONS, PRODUCT_SALES, ...).","role":"dimension"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"budget_mode","type":"STRING","nullable":true,"description":"How the budget is set (BUDGET_MODE_DAY, BUDGET_MODE_TOTAL, BUDGET_MODE_INFINITE, ...).","role":"dimension"},{"name":"deep_bid_type","type":"STRING","nullable":true,"description":"The bidding strategy for the deep (secondary) event, if any.","role":"dimension"},{"name":"status","type":"STRING","nullable":true,"description":"The item's status as TikTok reports it (for an advertiser: STATUS_ENABLE, STATUS_DISABLE, ...; for campaigns, ad groups and ads: its serving status).","role":"dimension"},{"name":"create_time","type":"TIMESTAMP","nullable":true,"description":"When the item was created.","role":"dimension"},{"name":"modify_time","type":"TIMESTAMP","nullable":true,"description":"When the item was last changed.","role":"dimension"},{"name":"opt_status","type":"STRING","nullable":true,"description":"The status the advertiser set (ENABLE, DISABLE).","role":"dimension"},{"name":"is_new_structure","type":"BOOLEAN","nullable":true,"description":"Whether the item uses TikTok's newer campaign structure.","role":"dimension"},{"name":"split_test_variable","type":"STRING","nullable":true,"description":"The variable a split-test campaign tests, if it is one.","role":"dimension"},{"name":"budget","type":"FLOAT","nullable":true,"description":"The budget, in the account's currency; daily or lifetime per budget_mode.","role":"dimension"},{"name":"roas_bid","type":"FLOAT","nullable":true,"description":"The target return on ad spend, for value-optimized bidding.","role":"dimension"},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"One row per campaign: objective, budget and status.","replace_scope":["advertiser_id"]},{"stream":"campaigns","table":"stg__campaigns__changes","kind":"table","load":"replace","columns":[{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"account_id","type":"STRING","nullable":true,"description":"The advertiser (ad account) the changed item belongs to.","role":"key"},{"name":"entity_id","type":"STRING","nullable":true,"description":"The ID of the item whose setting changed.","role":"key"},{"name":"entity_name","type":"STRING","nullable":true,"description":"The item's name when the change was detected.","role":"dimension"},{"name":"change_type","type":"STRING","nullable":true,"description":"What happened: the item was added, removed, or one of its settings changed.","role":"dimension"},{"name":"field","type":"STRING","nullable":true,"description":"The setting (column) that changed.","role":"dimension"},{"name":"old_value","type":"STRING","nullable":true,"description":"The setting's value in the previous daily snapshot, as text.","role":"dimension"},{"name":"new_value","type":"STRING","nullable":true,"description":"The setting's value in this snapshot, as text.","role":"dimension"},{"name":"changed_on","type":"DATE","nullable":true,"description":"The day of the snapshot that first showed the change.","role":"timestamp"},{"name":"previous_snapshot_date","type":"DATE","nullable":true,"description":"The day of the snapshot it was compared with.","role":"dimension"},{"name":"_aria_scope","type":"STRING","nullable":true,"role":"system"},{"name":"_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_detected_at","type":"TIMESTAMP","nullable":true,"description":"When the sync detected the change (UTC).","role":"system"}],"description":"Changes to the settings of the parent table's items, one row per changed setting, found by comparing daily snapshots (TikTok keeps no history)."},{"stream":"campaigns_attribute_metrics","table":"stg__campaigns_attribute_metrics","kind":"table","load":"replace","columns":[{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"campaign_name","type":"STRING","nullable":true,"description":"The campaign's name.","role":"dimension"},{"name":"objective_type","type":"STRING","nullable":true,"description":"The campaign's advertising objective (REACH, TRAFFIC, VIDEO_VIEWS, LEAD_GENERATION, APP_PROMOTION, WEB_CONVERSIONS, PRODUCT_SALES, ...).","role":"dimension"},{"name":"adgroup_name","type":"STRING","nullable":true,"description":"The ad group's name.","role":"dimension"},{"name":"placement","type":"STRING","nullable":true,"description":"Where the ads show (TikTok, Pangle, ...).","role":"dimension"},{"name":"adgroup_id","type":"STRING","nullable":true,"description":"The ad group ID.","role":"key"},{"name":"ad_name","type":"STRING","nullable":true,"description":"The ad's name.","role":"dimension"},{"name":"ad_text","type":"STRING","nullable":true,"description":"The ad's text.","role":"dimension"},{"name":"tt_app_id","type":"STRING","nullable":true,"description":"The TikTok app ID of the promoted app.","role":"dimension"},{"name":"tt_app_name","type":"STRING","nullable":true,"description":"The name of the promoted app in TikTok.","role":"dimension"},{"name":"mobile_app_id","type":"STRING","nullable":true,"description":"The promoted app's store ID.","role":"dimension"},{"name":"promotion_type","type":"STRING","nullable":true,"description":"What the campaign promotes (APP, WEBSITE, ...).","role":"dimension"},{"name":"dpa_target_audience_type","type":"STRING","nullable":true,"description":"Dynamic product ads: the audience targeted (prospecting or retargeting).","role":"dimension"},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Each campaign's settings as the reporting API reports them.","replace_scope":["advertiser_id"]},{"stream":"campaigns_attribution_metrics_by_day","table":"stg__campaigns_attribution_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"vta_app_install","type":"STRING","nullable":true,"description":"View-through app installs: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"vta_conversion","type":"STRING","nullable":true,"description":"View-through conversions: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"cost_per_vta_conversion","type":"STRING","nullable":true,"description":"Spend divided by view-through conversions.","role":"metric","summable":false},{"name":"vta_registration","type":"STRING","nullable":true,"description":"View-through registrations: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"cost_per_vta_registration","type":"STRING","nullable":true,"description":"Spend divided by view-through registrations.","role":"metric","summable":false},{"name":"vta_purchase","type":"STRING","nullable":true,"description":"View-through purchases: after someone saw an ad but didn't click it.","role":"metric","summable":true},{"name":"cost_per_vta_purchase","type":"STRING","nullable":true,"description":"Spend divided by view-through purchases.","role":"metric","summable":false},{"name":"cta_app_install","type":"STRING","nullable":true,"description":"Click-through app installs: after someone clicked an ad.","role":"metric","summable":true},{"name":"cta_conversion","type":"STRING","nullable":true,"description":"Click-through conversions: after someone clicked an ad.","role":"metric","summable":true},{"name":"cost_per_cta_conversion","type":"STRING","nullable":true,"description":"Spend divided by click-through conversions.","role":"metric","summable":false},{"name":"cta_registration","type":"STRING","nullable":true,"description":"Click-through registrations: after someone clicked an ad.","role":"metric","summable":true},{"name":"cost_per_cta_registration","type":"STRING","nullable":true,"description":"Spend divided by click-through registrations.","role":"metric","summable":false},{"name":"cta_purchase","type":"STRING","nullable":true,"description":"Click-through purchases: after someone clicked an ad.","role":"metric","summable":true},{"name":"cost_per_cta_purchase","type":"STRING","nullable":true,"description":"Spend divided by click-through purchases.","role":"metric","summable":false},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Campaign conversions per day split into view-through and click-through.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"campaigns_basic_data_metrics_by_day","table":"stg__campaigns_basic_data_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"spend","type":"STRING","nullable":true,"description":"Amount spent, in the account's currency.","role":"metric","summable":true},{"name":"cpc","type":"STRING","nullable":true,"description":"Average cost per click.","role":"metric","summable":false},{"name":"cpm","type":"STRING","nullable":true,"description":"Average cost per 1,000 impressions.","role":"metric","summable":false},{"name":"impressions","type":"STRING","nullable":true,"description":"Times the ads were shown.","role":"metric","summable":true},{"name":"clicks","type":"STRING","nullable":true,"description":"Clicks on the ads that lead to a destination.","role":"metric","summable":true},{"name":"ctr","type":"STRING","nullable":true,"description":"Clicks divided by impressions, as a percent.","role":"metric","summable":false},{"name":"reach","type":"STRING","nullable":true,"description":"People who saw the ads at least once (unique; doesn't add up across days or ads).","role":"metric","summable":false},{"name":"cost_per_1000_reached","type":"STRING","nullable":true,"description":"Cost per 1,000 people reached.","role":"metric","summable":false},{"name":"conversion","type":"STRING","nullable":true,"description":"Conversions of the optimization event, attributed to the ads by the time of the ad impression or click.","role":"metric","summable":true},{"name":"cost_per_conversion","type":"STRING","nullable":true,"description":"Spend divided by conversions.","role":"metric","summable":false},{"name":"conversion_rate","type":"STRING","nullable":true,"description":"Conversions divided by clicks (or impressions, for impression-optimized ads), as a percent.","role":"metric","summable":false},{"name":"real_time_conversion","type":"STRING","nullable":true,"description":"Conversions counted at the time they happened (real-time attribution).","role":"metric","summable":true},{"name":"real_time_cost_per_conversion","type":"STRING","nullable":true,"description":"Spend divided by real-time conversions.","role":"metric","summable":false},{"name":"real_time_conversion_rate","type":"STRING","nullable":true,"description":"Real-time conversions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"result","type":"STRING","nullable":true,"description":"Results of the optimization goal (the main outcome the ad group is set to get).","role":"metric","summable":true},{"name":"cost_per_result","type":"STRING","nullable":true,"description":"Spend divided by results.","role":"metric","summable":false},{"name":"result_rate","type":"STRING","nullable":true,"description":"Results divided by impressions, as a percent.","role":"metric","summable":false},{"name":"real_time_result","type":"STRING","nullable":true,"description":"Results counted at the time they happened.","role":"metric","summable":true},{"name":"real_time_cost_per_result","type":"STRING","nullable":true,"description":"Spend divided by real-time results.","role":"metric","summable":false},{"name":"real_time_result_rate","type":"STRING","nullable":true,"description":"Real-time results divided by impressions, as a percent.","role":"metric","summable":false},{"name":"secondary_goal_result","type":"STRING","nullable":true,"description":"Results of the secondary (deep) goal.","role":"metric","summable":true},{"name":"cost_per_secondary_goal_result","type":"STRING","nullable":true,"description":"Spend divided by secondary goal results.","role":"metric","summable":false},{"name":"secondary_goal_result_rate","type":"STRING","nullable":true,"description":"Secondary goal results divided by impressions, as a percent.","role":"metric","summable":false},{"name":"frequency","type":"STRING","nullable":true,"description":"Average times each person saw the ads.","role":"metric","summable":false},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Campaign performance per day: spend, impressions, clicks, reach, conversions and results.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"campaigns_engagement_metrics_by_day","table":"stg__campaigns_engagement_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"profile_visits","type":"STRING","nullable":true,"description":"Visits to the advertiser's TikTok profile from the ads.","role":"metric","summable":true},{"name":"profile_visits_rate","type":"STRING","nullable":true,"description":"Profile visits divided by impressions, as a percent.","role":"metric","summable":false},{"name":"likes","type":"STRING","nullable":true,"description":"Likes on the ads.","role":"metric","summable":true},{"name":"comments","type":"STRING","nullable":true,"description":"Comments on the ads.","role":"metric","summable":true},{"name":"shares","type":"STRING","nullable":true,"description":"Shares of the ads.","role":"metric","summable":true},{"name":"follows","type":"STRING","nullable":true,"description":"New followers from the ads.","role":"metric","summable":true},{"name":"clicks_on_music_disc","type":"STRING","nullable":true,"description":"Clicks on the ads' music disc (to the sound's page).","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Campaign engagement per day: likes, comments, shares, follows and profile visits.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"campaigns_in_app_event_metrics_by_day","table":"stg__campaigns_in_app_event_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"real_time_app_install","type":"STRING","nullable":true,"description":"App installs counted at the time they happened.","role":"metric","summable":true},{"name":"real_time_app_install_cost","type":"STRING","nullable":true,"description":"Spend divided by real-time app installs.","role":"metric","summable":false},{"name":"app_install","type":"STRING","nullable":true,"description":"App installs attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_app_install","type":"STRING","nullable":true,"description":"Spend divided by app installs.","role":"metric","summable":false},{"name":"registration","type":"STRING","nullable":true,"description":"In-app registrations attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_registration","type":"STRING","nullable":true,"description":"Spend divided by in-app registrations.","role":"metric","summable":false},{"name":"registration_rate","type":"STRING","nullable":true,"description":"In-app registrations divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_registration","type":"STRING","nullable":true,"description":"In-app registrations attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_registration","type":"STRING","nullable":true,"description":"Spend divided by total in-app registrations.","role":"metric","summable":false},{"name":"purchase","type":"STRING","nullable":true,"description":"In-app purchases attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_purchase","type":"STRING","nullable":true,"description":"Spend divided by in-app purchases.","role":"metric","summable":false},{"name":"purchase_rate","type":"STRING","nullable":true,"description":"In-app purchases divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_purchase","type":"STRING","nullable":true,"description":"In-app purchases attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_purchase","type":"STRING","nullable":true,"description":"Spend divided by total in-app purchases.","role":"metric","summable":false},{"name":"value_per_total_purchase","type":"STRING","nullable":true,"description":"Average value of the total in-app purchases.","role":"metric","summable":false},{"name":"total_purchase_value","type":"STRING","nullable":true,"description":"The total value of in-app purchases, in the account's currency.","role":"metric","summable":true},{"name":"total_active_pay_roas","type":"STRING","nullable":true,"description":"In-app purchase value divided by spend (return on ad spend).","role":"metric","summable":false},{"name":"app_event_add_to_cart","type":"STRING","nullable":true,"description":"In-app add-to-carts attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_app_event_add_to_cart","type":"STRING","nullable":true,"description":"Spend divided by in-app add-to-carts.","role":"metric","summable":false},{"name":"app_event_add_to_cart_rate","type":"STRING","nullable":true,"description":"In-app add-to-carts divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_app_event_add_to_cart","type":"STRING","nullable":true,"description":"In-app add-to-carts attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_app_event_add_to_cart","type":"STRING","nullable":true,"description":"Spend divided by total in-app add-to-carts.","role":"metric","summable":false},{"name":"value_per_total_app_event_add_to_cart","type":"STRING","nullable":true,"description":"Average value of the total in-app add-to-carts.","role":"metric","summable":false},{"name":"total_app_event_add_to_cart_value","type":"STRING","nullable":true,"description":"The total value of the in-app add-to-carts, in the account's currency.","role":"metric","summable":true},{"name":"checkout","type":"STRING","nullable":true,"description":"In-app checkouts attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_checkout","type":"STRING","nullable":true,"description":"Spend divided by in-app checkouts.","role":"metric","summable":false},{"name":"checkout_rate","type":"STRING","nullable":true,"description":"In-app checkouts divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_checkout","type":"STRING","nullable":true,"description":"In-app checkouts attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_checkout","type":"STRING","nullable":true,"description":"Spend divided by total in-app checkouts.","role":"metric","summable":false},{"name":"value_per_checkout","type":"STRING","nullable":true,"description":"Average value of the in-app checkouts.","role":"metric","summable":false},{"name":"total_checkout_value","type":"STRING","nullable":true,"description":"The total value of in-app checkouts, in the account's currency.","role":"metric","summable":true},{"name":"view_content","type":"STRING","nullable":true,"description":"In-app content views attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_view_content","type":"STRING","nullable":true,"description":"Spend divided by in-app content views.","role":"metric","summable":false},{"name":"view_content_rate","type":"STRING","nullable":true,"description":"In-app content views divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_view_content","type":"STRING","nullable":true,"description":"In-app content views attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_view_content","type":"STRING","nullable":true,"description":"Spend divided by total in-app content views.","role":"metric","summable":false},{"name":"value_per_total_view_content","type":"STRING","nullable":true,"description":"Average value of the total in-app content views.","role":"metric","summable":false},{"name":"total_view_content_value","type":"STRING","nullable":true,"description":"The total value of the in-app content views, in the account's currency.","role":"metric","summable":true},{"name":"next_day_open","type":"STRING","nullable":true,"description":"App opens on the day after install attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_next_day_open","type":"STRING","nullable":true,"description":"Spend divided by app opens on the day after install.","role":"metric","summable":false},{"name":"next_day_open_rate","type":"STRING","nullable":true,"description":"App opens on the day after install divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_next_day_open","type":"STRING","nullable":true,"description":"App opens on the day after install attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_next_day_open","type":"STRING","nullable":true,"description":"Spend divided by total app opens on the day after install.","role":"metric","summable":false},{"name":"add_payment_info","type":"STRING","nullable":true,"description":"In-app add-payment-info events attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_add_payment_info","type":"STRING","nullable":true,"description":"Spend divided by in-app add-payment-info events.","role":"metric","summable":false},{"name":"add_payment_info_rate","type":"STRING","nullable":true,"description":"In-app add-payment-info events divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_add_payment_info","type":"STRING","nullable":true,"description":"In-app add-payment-info events attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_total_add_payment_info","type":"STRING","nullable":true,"description":"Spend divided by total in-app add-payment-info events.","role":"metric","summable":false},{"name":"add_to_wishlist","type":"STRING","nullable":true,"description":"In-app add-to-wishlists attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_add_to_wishlist","type":"STRING","nullable":true,"description":"Spend divided by in-app add-to-wishlists.","role":"metric","summable":false},{"name":"add_to_wishlist_rate","type":"STRING","nullable":true,"description":"In-app add-to-wishlists divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_add_to_wishlist","type":"STRING","nullable":true,"description":"In-app add-to-wishlists attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_add_to_wishlist","type":"STRING","nullable":true,"description":"Spend divided by total in-app add-to-wishlists.","role":"metric","summable":false},{"name":"value_per_total_add_to_wishlist","type":"STRING","nullable":true,"description":"Average value of the total in-app add-to-wishlists.","role":"metric","summable":false},{"name":"total_add_to_wishlist_value","type":"STRING","nullable":true,"description":"The total value of the in-app add-to-wishlists, in the account's currency.","role":"metric","summable":true},{"name":"launch_app","type":"STRING","nullable":true,"description":"App launches attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_launch_app","type":"STRING","nullable":true,"description":"Spend divided by app launches.","role":"metric","summable":false},{"name":"launch_app_rate","type":"STRING","nullable":true,"description":"App launches divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_launch_app","type":"STRING","nullable":true,"description":"App launches attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_launch_app","type":"STRING","nullable":true,"description":"Spend divided by total app launches.","role":"metric","summable":false},{"name":"complete_tutorial","type":"STRING","nullable":true,"description":"Completed in-app tutorials attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_complete_tutorial","type":"STRING","nullable":true,"description":"Spend divided by completed in-app tutorials.","role":"metric","summable":false},{"name":"complete_tutorial_rate","type":"STRING","nullable":true,"description":"Completed in-app tutorials divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_complete_tutorial","type":"STRING","nullable":true,"description":"Completed in-app tutorials attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_complete_tutorial","type":"STRING","nullable":true,"description":"Spend divided by total completed in-app tutorials.","role":"metric","summable":false},{"name":"value_per_total_complete_tutorial","type":"STRING","nullable":true,"description":"Average value of the total completed in-app tutorials.","role":"metric","summable":false},{"name":"total_complete_tutorial_value","type":"STRING","nullable":true,"description":"The total value of the completed in-app tutorials, in the account's currency.","role":"metric","summable":true},{"name":"create_group","type":"STRING","nullable":true,"description":"Groups created in the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_create_group","type":"STRING","nullable":true,"description":"Spend divided by groups created in the app.","role":"metric","summable":false},{"name":"create_group_rate","type":"STRING","nullable":true,"description":"Groups created in the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_create_group","type":"STRING","nullable":true,"description":"Groups created in the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_create_group","type":"STRING","nullable":true,"description":"Spend divided by total groups created in the app.","role":"metric","summable":false},{"name":"value_per_total_create_group","type":"STRING","nullable":true,"description":"Average value of the total groups created in the app.","role":"metric","summable":false},{"name":"total_create_group_value","type":"STRING","nullable":true,"description":"The total value of the groups created in the app, in the account's currency.","role":"metric","summable":true},{"name":"join_group","type":"STRING","nullable":true,"description":"Groups joined in the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_join_group","type":"STRING","nullable":true,"description":"Spend divided by groups joined in the app.","role":"metric","summable":false},{"name":"join_group_rate","type":"STRING","nullable":true,"description":"Groups joined in the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_join_group","type":"STRING","nullable":true,"description":"Groups joined in the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_join_group","type":"STRING","nullable":true,"description":"Spend divided by total groups joined in the app.","role":"metric","summable":false},{"name":"value_per_total_join_group","type":"STRING","nullable":true,"description":"Average value of the total groups joined in the app.","role":"metric","summable":false},{"name":"total_join_group_value","type":"STRING","nullable":true,"description":"The total value of the groups joined in the app, in the account's currency.","role":"metric","summable":true},{"name":"create_gamerole","type":"STRING","nullable":true,"description":"Game characters created attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_create_gamerole","type":"STRING","nullable":true,"description":"Spend divided by game characters created.","role":"metric","summable":false},{"name":"create_gamerole_rate","type":"STRING","nullable":true,"description":"Game characters created divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_create_gamerole","type":"STRING","nullable":true,"description":"Game characters created attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_create_gamerole","type":"STRING","nullable":true,"description":"Spend divided by total game characters created.","role":"metric","summable":false},{"name":"value_per_total_create_gamerole","type":"STRING","nullable":true,"description":"Average value of the total game characters created.","role":"metric","summable":false},{"name":"total_create_gamerole_value","type":"STRING","nullable":true,"description":"The total value of the game characters created, in the account's currency.","role":"metric","summable":true},{"name":"spend_credits","type":"STRING","nullable":true,"description":"In-app credit spends attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_spend_credits","type":"STRING","nullable":true,"description":"Spend divided by in-app credit spends.","role":"metric","summable":false},{"name":"spend_credits_rate","type":"STRING","nullable":true,"description":"In-app credit spends divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_spend_credits","type":"STRING","nullable":true,"description":"In-app credit spends attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_spend_credits","type":"STRING","nullable":true,"description":"Spend divided by total in-app credit spends.","role":"metric","summable":false},{"name":"value_per_total_spend_credits","type":"STRING","nullable":true,"description":"Average value of the total in-app credit spends.","role":"metric","summable":false},{"name":"total_spend_credits_value","type":"STRING","nullable":true,"description":"The total value of the in-app credit spends, in the account's currency.","role":"metric","summable":true},{"name":"achieve_level","type":"STRING","nullable":true,"description":"Game levels achieved attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_achieve_level","type":"STRING","nullable":true,"description":"Spend divided by game levels achieved.","role":"metric","summable":false},{"name":"achieve_level_rate","type":"STRING","nullable":true,"description":"Game levels achieved divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_achieve_level","type":"STRING","nullable":true,"description":"Game levels achieved attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_achieve_level","type":"STRING","nullable":true,"description":"Spend divided by total game levels achieved.","role":"metric","summable":false},{"name":"value_per_total_achieve_level","type":"STRING","nullable":true,"description":"Average value of the total game levels achieved.","role":"metric","summable":false},{"name":"total_achieve_level_value","type":"STRING","nullable":true,"description":"The total value of the game levels achieved, in the account's currency.","role":"metric","summable":true},{"name":"unlock_achievement","type":"STRING","nullable":true,"description":"In-app achievements unlocked attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_unlock_achievement","type":"STRING","nullable":true,"description":"Spend divided by in-app achievements unlocked.","role":"metric","summable":false},{"name":"unlock_achievement_rate","type":"STRING","nullable":true,"description":"In-app achievements unlocked divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_unlock_achievement","type":"STRING","nullable":true,"description":"In-app achievements unlocked attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_unlock_achievement","type":"STRING","nullable":true,"description":"Spend divided by total in-app achievements unlocked.","role":"metric","summable":false},{"name":"value_per_total_unlock_achievement","type":"STRING","nullable":true,"description":"Average value of the total in-app achievements unlocked.","role":"metric","summable":false},{"name":"total_unlock_achievement_value","type":"STRING","nullable":true,"description":"The total value of the in-app achievements unlocked, in the account's currency.","role":"metric","summable":true},{"name":"sales_lead","type":"STRING","nullable":true,"description":"In-app sales leads attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_sales_lead","type":"STRING","nullable":true,"description":"Spend divided by in-app sales leads.","role":"metric","summable":false},{"name":"sales_lead_rate","type":"STRING","nullable":true,"description":"In-app sales leads divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_sales_lead","type":"STRING","nullable":true,"description":"In-app sales leads attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_sales_lead","type":"STRING","nullable":true,"description":"Spend divided by total in-app sales leads.","role":"metric","summable":false},{"name":"value_per_total_sales_lead","type":"STRING","nullable":true,"description":"Average value of the total in-app sales leads.","role":"metric","summable":false},{"name":"total_sales_lead_value","type":"STRING","nullable":true,"description":"The total value of the in-app sales leads, in the account's currency.","role":"metric","summable":true},{"name":"in_app_ad_click","type":"STRING","nullable":true,"description":"Clicks on ads inside the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_in_app_ad_click","type":"STRING","nullable":true,"description":"Spend divided by clicks on ads inside the app.","role":"metric","summable":false},{"name":"in_app_ad_click_rate","type":"STRING","nullable":true,"description":"Clicks on ads inside the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_in_app_ad_click","type":"STRING","nullable":true,"description":"Clicks on ads inside the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_in_app_ad_click","type":"STRING","nullable":true,"description":"Spend divided by total clicks on ads inside the app.","role":"metric","summable":false},{"name":"value_per_total_in_app_ad_click","type":"STRING","nullable":true,"description":"Average value of the total clicks on ads inside the app.","role":"metric","summable":false},{"name":"total_in_app_ad_click_value","type":"STRING","nullable":true,"description":"The total value of the clicks on ads inside the app, in the account's currency.","role":"metric","summable":true},{"name":"in_app_ad_impr","type":"STRING","nullable":true,"description":"Ad impressions inside the app attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_in_app_ad_impr","type":"STRING","nullable":true,"description":"Spend divided by ad impressions inside the app.","role":"metric","summable":false},{"name":"in_app_ad_impr_rate","type":"STRING","nullable":true,"description":"Ad impressions inside the app divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_in_app_ad_impr","type":"STRING","nullable":true,"description":"Ad impressions inside the app attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_in_app_ad_impr","type":"STRING","nullable":true,"description":"Spend divided by total ad impressions inside the app.","role":"metric","summable":false},{"name":"value_per_total_in_app_ad_impr","type":"STRING","nullable":true,"description":"Average value of the total ad impressions inside the app.","role":"metric","summable":false},{"name":"total_in_app_ad_impr_value","type":"STRING","nullable":true,"description":"The total value of the ad impressions inside the app, in the account's currency.","role":"metric","summable":true},{"name":"loan_apply","type":"STRING","nullable":true,"description":"Loan applications attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_loan_apply","type":"STRING","nullable":true,"description":"Spend divided by loan applications.","role":"metric","summable":false},{"name":"loan_apply_rate","type":"STRING","nullable":true,"description":"Loan applications divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_loan_apply","type":"STRING","nullable":true,"description":"Loan applications attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_loan_apply","type":"STRING","nullable":true,"description":"Spend divided by total loan applications.","role":"metric","summable":false},{"name":"loan_credit","type":"STRING","nullable":true,"description":"Loan approvals attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_loan_credit","type":"STRING","nullable":true,"description":"Spend divided by loan approvals.","role":"metric","summable":false},{"name":"loan_credit_rate","type":"STRING","nullable":true,"description":"Loan approvals divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_loan_credit","type":"STRING","nullable":true,"description":"Loan approvals attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_loan_credit","type":"STRING","nullable":true,"description":"Spend divided by total loan approvals.","role":"metric","summable":false},{"name":"loan_disbursement","type":"STRING","nullable":true,"description":"Loan disbursements attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_loan_disbursement","type":"STRING","nullable":true,"description":"Spend divided by loan disbursements.","role":"metric","summable":false},{"name":"loan_disbursement_rate","type":"STRING","nullable":true,"description":"Loan disbursements divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_loan_disbursement","type":"STRING","nullable":true,"description":"Loan disbursements attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_loan_disbursement","type":"STRING","nullable":true,"description":"Spend divided by total loan disbursements.","role":"metric","summable":false},{"name":"login","type":"STRING","nullable":true,"description":"In-app logins attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_login","type":"STRING","nullable":true,"description":"Spend divided by in-app logins.","role":"metric","summable":false},{"name":"login_rate","type":"STRING","nullable":true,"description":"In-app logins divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_login","type":"STRING","nullable":true,"description":"In-app logins attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_login","type":"STRING","nullable":true,"description":"Spend divided by total in-app logins.","role":"metric","summable":false},{"name":"ratings","type":"STRING","nullable":true,"description":"In-app ratings attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_ratings","type":"STRING","nullable":true,"description":"Spend divided by in-app ratings.","role":"metric","summable":false},{"name":"ratings_rate","type":"STRING","nullable":true,"description":"In-app ratings divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_ratings","type":"STRING","nullable":true,"description":"In-app ratings attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_ratings","type":"STRING","nullable":true,"description":"Spend divided by total in-app ratings.","role":"metric","summable":false},{"name":"value_per_total_ratings","type":"STRING","nullable":true,"description":"Average value of the total in-app ratings.","role":"metric","summable":false},{"name":"total_ratings_value","type":"STRING","nullable":true,"description":"The total value of the in-app ratings, in the account's currency.","role":"metric","summable":true},{"name":"search","type":"STRING","nullable":true,"description":"In-app searches attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_search","type":"STRING","nullable":true,"description":"Spend divided by in-app searches.","role":"metric","summable":false},{"name":"search_rate","type":"STRING","nullable":true,"description":"In-app searches divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_search","type":"STRING","nullable":true,"description":"In-app searches attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_search","type":"STRING","nullable":true,"description":"Spend divided by total in-app searches.","role":"metric","summable":false},{"name":"start_trial","type":"STRING","nullable":true,"description":"Trials started attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_start_trial","type":"STRING","nullable":true,"description":"Spend divided by trials started.","role":"metric","summable":false},{"name":"start_trial_rate","type":"STRING","nullable":true,"description":"Trials started divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_start_trial","type":"STRING","nullable":true,"description":"Trials started attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_start_trial","type":"STRING","nullable":true,"description":"Spend divided by total trials started.","role":"metric","summable":false},{"name":"subscribe","type":"STRING","nullable":true,"description":"In-app subscriptions attributed to the ads, counting each person once per day (unique).","role":"metric","summable":false},{"name":"cost_per_subscribe","type":"STRING","nullable":true,"description":"Spend divided by in-app subscriptions.","role":"metric","summable":false},{"name":"subscribe_rate","type":"STRING","nullable":true,"description":"In-app subscriptions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_subscribe","type":"STRING","nullable":true,"description":"In-app subscriptions attributed to the ads, counting every event.","role":"metric","summable":true},{"name":"cost_per_total_subscribe","type":"STRING","nullable":true,"description":"Spend divided by total in-app subscriptions.","role":"metric","summable":false},{"name":"value_per_total_subscribe","type":"STRING","nullable":true,"description":"Average value of the total in-app subscriptions.","role":"metric","summable":false},{"name":"total_subscribe_value","type":"STRING","nullable":true,"description":"The total value of the in-app subscriptions, in the account's currency.","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"In-app events per campaign and day, unique and total.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"campaigns_page_event_metrics_by_day","table":"stg__campaigns_page_event_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"complete_payment_roas","type":"STRING","nullable":true,"description":"Website payment value divided by spend (return on ad spend).","role":"metric","summable":false},{"name":"complete_payment","type":"STRING","nullable":true,"description":"Completed payments on the website attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_complete_payment","type":"STRING","nullable":true,"description":"Spend divided by completed payments on the website.","role":"metric","summable":false},{"name":"complete_payment_rate","type":"STRING","nullable":true,"description":"Completed payments on the website divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_complete_payment","type":"STRING","nullable":true,"description":"Average value of the completed payments on the website.","role":"metric","summable":false},{"name":"total_complete_payment_rate","type":"STRING","nullable":true,"description":"Website payment value divided by spend (return on ad spend).","role":"metric","summable":false},{"name":"page_browse_view","type":"STRING","nullable":true,"description":"Website page views attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_page_browse_view","type":"STRING","nullable":true,"description":"Spend divided by website page views.","role":"metric","summable":false},{"name":"page_browse_view_rate","type":"STRING","nullable":true,"description":"Website page views divided by clicks, as a percent.","role":"metric","summable":false},{"name":"total_page_browse_view_value","type":"STRING","nullable":true,"description":"The total value of the website page views, in the account's currency.","role":"metric","summable":true},{"name":"value_per_page_browse_view","type":"STRING","nullable":true,"description":"Average value of the website page views.","role":"metric","summable":false},{"name":"button_click","type":"STRING","nullable":true,"description":"Website button clicks attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_button_click","type":"STRING","nullable":true,"description":"Spend divided by website button clicks.","role":"metric","summable":false},{"name":"button_click_rate","type":"STRING","nullable":true,"description":"Website button clicks divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_button_click","type":"STRING","nullable":true,"description":"Average value of the website button clicks.","role":"metric","summable":false},{"name":"total_button_click_value","type":"STRING","nullable":true,"description":"The total value of the website button clicks, in the account's currency.","role":"metric","summable":true},{"name":"online_consult","type":"STRING","nullable":true,"description":"Website contacts (online consultations) attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_online_consult","type":"STRING","nullable":true,"description":"Spend divided by website contacts (online consultations).","role":"metric","summable":false},{"name":"online_consult_rate","type":"STRING","nullable":true,"description":"Website contacts (online consultations) divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_online_consult","type":"STRING","nullable":true,"description":"Average value of the website contacts (online consultations).","role":"metric","summable":false},{"name":"total_online_consult_value","type":"STRING","nullable":true,"description":"The total value of the website contacts (online consultations), in the account's currency.","role":"metric","summable":true},{"name":"user_registration","type":"STRING","nullable":true,"description":"Website registrations attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_user_registration","type":"STRING","nullable":true,"description":"Spend divided by website registrations.","role":"metric","summable":false},{"name":"user_registration_rate","type":"STRING","nullable":true,"description":"Website registrations divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_user_registration","type":"STRING","nullable":true,"description":"Average value of the website registrations.","role":"metric","summable":false},{"name":"total_user_registration_value","type":"STRING","nullable":true,"description":"The total value of the website registrations, in the account's currency.","role":"metric","summable":true},{"name":"product_details_page_browse","type":"STRING","nullable":true,"description":"Website product page views attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_product_details_page_browse","type":"STRING","nullable":true,"description":"Spend divided by website product page views.","role":"metric","summable":false},{"name":"product_details_page_browse_rate","type":"STRING","nullable":true,"description":"Website product page views divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_product_details_page_browse","type":"STRING","nullable":true,"description":"Average value of the website product page views.","role":"metric","summable":false},{"name":"total_product_details_page_browse_value","type":"STRING","nullable":true,"description":"The total value of the website product page views, in the account's currency.","role":"metric","summable":true},{"name":"web_event_add_to_cart","type":"STRING","nullable":true,"description":"Website add-to-carts attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_web_event_add_to_cart","type":"STRING","nullable":true,"description":"Spend divided by website add-to-carts.","role":"metric","summable":false},{"name":"web_event_add_to_cart_rate","type":"STRING","nullable":true,"description":"Website add-to-carts divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_web_event_add_to_cart","type":"STRING","nullable":true,"description":"Average value of the website add-to-carts.","role":"metric","summable":false},{"name":"total_web_event_add_to_cart_value","type":"STRING","nullable":true,"description":"The total value of the website add-to-carts, in the account's currency.","role":"metric","summable":true},{"name":"on_web_order","type":"STRING","nullable":true,"description":"Website orders placed attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_on_web_order","type":"STRING","nullable":true,"description":"Spend divided by website orders placed.","role":"metric","summable":false},{"name":"on_web_order_rate","type":"STRING","nullable":true,"description":"Website orders placed divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_on_web_order","type":"STRING","nullable":true,"description":"Average value of the website orders placed.","role":"metric","summable":false},{"name":"total_on_web_order_value","type":"STRING","nullable":true,"description":"The total value of the website orders placed, in the account's currency.","role":"metric","summable":true},{"name":"initiate_checkout","type":"STRING","nullable":true,"description":"Website checkouts started attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_initiate_checkout","type":"STRING","nullable":true,"description":"Spend divided by website checkouts started.","role":"metric","summable":false},{"name":"initiate_checkout_rate","type":"STRING","nullable":true,"description":"Website checkouts started divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_initiate_checkout","type":"STRING","nullable":true,"description":"Average value of the website checkouts started.","role":"metric","summable":false},{"name":"total_initiate_checkout_value","type":"STRING","nullable":true,"description":"The total value of the website checkouts started, in the account's currency.","role":"metric","summable":true},{"name":"add_billing","type":"STRING","nullable":true,"description":"Website add-billing events attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_add_billing","type":"STRING","nullable":true,"description":"Spend divided by website add-billing events.","role":"metric","summable":false},{"name":"add_billing_rate","type":"STRING","nullable":true,"description":"Website add-billing events divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_add_billing","type":"STRING","nullable":true,"description":"Average value of the website add-billing events.","role":"metric","summable":false},{"name":"total_add_billing_value","type":"STRING","nullable":true,"description":"The total value of the website add-billing events, in the account's currency.","role":"metric","summable":true},{"name":"page_event_search","type":"STRING","nullable":true,"description":"Website searches attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_page_event_search","type":"STRING","nullable":true,"description":"Spend divided by website searches.","role":"metric","summable":false},{"name":"page_event_search_rate","type":"STRING","nullable":true,"description":"Website searches divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_page_event_search","type":"STRING","nullable":true,"description":"Average value of the website searches.","role":"metric","summable":false},{"name":"total_page_event_search_value","type":"STRING","nullable":true,"description":"The total value of the website searches, in the account's currency.","role":"metric","summable":true},{"name":"form","type":"STRING","nullable":true,"description":"Website form submissions attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_form","type":"STRING","nullable":true,"description":"Spend divided by website form submissions.","role":"metric","summable":false},{"name":"form_rate","type":"STRING","nullable":true,"description":"Website form submissions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_form","type":"STRING","nullable":true,"description":"Average value of the website form submissions.","role":"metric","summable":false},{"name":"total_form_value","type":"STRING","nullable":true,"description":"The total value of the website form submissions, in the account's currency.","role":"metric","summable":true},{"name":"download_start","type":"STRING","nullable":true,"description":"App downloads started from the website attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_download_start","type":"STRING","nullable":true,"description":"Spend divided by app downloads started from the website.","role":"metric","summable":false},{"name":"download_start_rate","type":"STRING","nullable":true,"description":"App downloads started from the website divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_download_start","type":"STRING","nullable":true,"description":"Average value of the app downloads started from the website.","role":"metric","summable":false},{"name":"total_download_start_value","type":"STRING","nullable":true,"description":"The total value of the app downloads started from the website, in the account's currency.","role":"metric","summable":true},{"name":"on_web_add_to_wishlist","type":"STRING","nullable":true,"description":"Website add-to-wishlists attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_on_web_add_to_wishlist","type":"STRING","nullable":true,"description":"Spend divided by website add-to-wishlists.","role":"metric","summable":false},{"name":"on_web_add_to_wishlist_per_click","type":"STRING","nullable":true,"description":"Website add-to-wishlists divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_on_web_add_to_wishlist","type":"STRING","nullable":true,"description":"Average value of the website add-to-wishlists.","role":"metric","summable":false},{"name":"total_on_web_add_to_wishlist_value","type":"STRING","nullable":true,"description":"The total value of the website add-to-wishlists, in the account's currency.","role":"metric","summable":true},{"name":"on_web_subscribe","type":"STRING","nullable":true,"description":"Website subscriptions attributed to the ads (each event counted).","role":"metric","summable":true},{"name":"cost_per_on_web_subscribe","type":"STRING","nullable":true,"description":"Spend divided by website subscriptions.","role":"metric","summable":false},{"name":"on_web_subscribe_per_click","type":"STRING","nullable":true,"description":"Website subscriptions divided by clicks, as a percent.","role":"metric","summable":false},{"name":"value_per_on_web_subscribe","type":"STRING","nullable":true,"description":"Average value of the website subscriptions.","role":"metric","summable":false},{"name":"total_on_web_subscribe_value","type":"STRING","nullable":true,"description":"The total value of the website subscriptions, in the account's currency.","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Website (pixel) events per campaign and day.","replace_scope":["advertiser_id","stat_time_day"]},{"stream":"campaigns_video_play_metrics_by_day","table":"stg__campaigns_video_play_metrics_by_day","kind":"table","load":"replace_window","columns":[{"name":"date","type":"DATE","nullable":true,"description":"The day the row's metrics are for, in the account's time zone.","role":"timestamp"},{"name":"advertiser_id","type":"STRING","nullable":true,"description":"The TikTok advertiser (ad account) ID.","role":"key"},{"name":"campaign_id","type":"STRING","nullable":true,"description":"The campaign ID.","role":"key"},{"name":"stat_time_day","type":"TIMESTAMP","nullable":true,"description":"The day the row's metrics are for (midnight, in the account's time zone).","role":"timestamp"},{"name":"video_play_actions","type":"STRING","nullable":true,"description":"Times the ads' videos started playing.","role":"metric","summable":true},{"name":"video_watched_2s","type":"STRING","nullable":true,"description":"Times the ads' videos played for at least 2 seconds.","role":"metric","summable":true},{"name":"video_watched_6s","type":"STRING","nullable":true,"description":"Times the ads' videos played for at least 6 seconds.","role":"metric","summable":true},{"name":"average_video_play","type":"STRING","nullable":true,"description":"Average seconds each video play lasted.","role":"metric","summable":false},{"name":"average_video_play_per_user","type":"STRING","nullable":true,"description":"Average seconds of video each person watched.","role":"metric","summable":false},{"name":"video_views_p25","type":"STRING","nullable":true,"description":"Times the ads' videos played to 25%.","role":"metric","summable":true},{"name":"video_views_p50","type":"STRING","nullable":true,"description":"Times the ads' videos played to 50%.","role":"metric","summable":true},{"name":"video_views_p75","type":"STRING","nullable":true,"description":"Times the ads' videos played to 75%.","role":"metric","summable":true},{"name":"video_views_p100","type":"STRING","nullable":true,"description":"Times the ads' videos played to the end.","role":"metric","summable":true},{"name":"_aria_tenant","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_run_id","type":"STRING","nullable":true,"role":"system"},{"name":"_aria_extracted_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_aria_loaded_at","type":"TIMESTAMP","nullable":true,"role":"system"},{"name":"_row_id","type":"INTEGER","nullable":true,"role":"system"}],"description":"Campaign video plays per day: plays, 2- and 6-second views and completion quartiles.","replace_scope":["advertiser_id","stat_time_day"]}],"relationships":[{"from_table":"stg__ad_groups_action_v2","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_age","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_audience","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_connection_type","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_device_models","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_device_price","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_exclude_custom_actions","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_excluded_audience","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_include_custom_actions","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_interest_category_v2","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_interest_keywords","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_keywords","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_languages","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_location","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_operation_system","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_placement","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups_split_test_adgroup_ids","from_columns":["_row_id"],"to_table":"stg__ad_groups","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ads_image_ids","from_columns":["_row_id"],"to_table":"stg__ads","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ads_product_ids","from_columns":["_row_id"],"to_table":"stg__ads","to_columns":["_row_id"],"cardinality":"many_to_one","source":"derived"},{"from_table":"stg__ad_groups","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ad_groups","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads","from_columns":["adgroup_id"],"to_table":"stg__ad_groups","to_columns":["adgroup_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_attribute_metrics","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_attribute_metrics","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_attribute_metrics","from_columns":["adgroup_id"],"to_table":"stg__ad_groups","to_columns":["adgroup_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_attribute_metrics","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_attribution_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_attribution_metrics_by_day","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_basic_data_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_basic_data_metrics_by_day","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_engagement_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_engagement_metrics_by_day","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_in_app_event_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_in_app_event_metrics_by_day","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_page_event_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_page_event_metrics_by_day","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_video_play_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__ads_video_play_metrics_by_day","from_columns":["ad_id"],"to_table":"stg__ads","to_columns":["ad_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_attribute_metrics","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_attribute_metrics","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_attribute_metrics","from_columns":["adgroup_id"],"to_table":"stg__ad_groups","to_columns":["adgroup_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_attribution_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_attribution_metrics_by_day","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_basic_data_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_basic_data_metrics_by_day","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_engagement_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_engagement_metrics_by_day","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_in_app_event_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_in_app_event_metrics_by_day","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_page_event_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_page_event_metrics_by_day","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_video_play_metrics_by_day","from_columns":["advertiser_id"],"to_table":"stg__ad_accounts","to_columns":["advertiser_id"],"cardinality":"many_to_one","source":"declared"},{"from_table":"stg__campaigns_video_play_metrics_by_day","from_columns":["campaign_id"],"to_table":"stg__campaigns","to_columns":["campaign_id"],"cardinality":"many_to_one","source":"declared"}]}}
