OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Hide or unhide an ad comment

POSThttps://zernio.com/api/v1/ads/{adId}/comments/{commentId}/hide

Hide or restore a TikTok ad comment. Send hidden=true to hide it or hidden=false to make it public again.

Identity and video item ID are not required; no identity lookup is performed.

Requires Ads access. The ad is resolved within the caller's accessible profiles.

PlatformsTikTok

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

adIdstringRequired

Internal Zernio ad ID or indexed platform ad ID.

commentIdstringRequired

TikTok comment ID from the ad comment listing.

Query parameters

Optional
sincestring (date)

Start date of the comment lookup window. Defaults to 30 days before until.

untilstring (date)

End date of the comment lookup window. Defaults to today in UTC.

Body

application/json

What every request needs

hiddenbooleanRequired

True to hide the comment; false to restore it.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Comment lookup

Before moderation, Zernio verifies that the comment belongs to this ad using TikTok's ad-group comment listing.

  • The default search window is the last 30 days.
  • Use since/until for older comments, with at most 30 days between the dates.
  • Lookups scan at most 2,000 ad-group comments; narrow the date window if exceeded.

Meta

Meta returns 501 feature_not_available with guidance to use the existing inbox comment endpoints and the account/post IDs from GET /v1/ads/{adId}/comments.

Reply to an ad comment

Reply to a first-level TikTok ad comment. Replies to replies are rejected. The response commentId identifies the new reply. This operation is not idempotent; do not blindly retry an uncertain response. ### Requirements - Requires Ads access. The ad is resolved within the caller's accessible profiles. - Requires a TT_USER or CUSTOMIZED_USER identity with comment-management permission. ### Identity resolution Unknown identity and video item fields are resolved only when needed for this action, then persisted for reuse. Comment-specific fields take precedence. - 404 ad_not_found: TikTok no longer returns the ad needed to resolve identity. Check deletion or archival in TikTok Ads Manager. Listing can still succeed. - 403 feature_not_available: unsupported or unavailable identity. - 403 insufficient_permissions: denied access to ad details, with reconnect guidance and the upstream platformError. ### Comment verification Before moderation, Zernio verifies that the comment belongs to this ad using TikTok's ad-group comment listing. - The default search window is the last 30 days. - Use since/until for older comments, with at most 30 days between the dates. - Lookups scan at most 2,000 ad-group comments; narrow the date window if exceeded. ### Meta Meta returns 501 feature_not_available with guidance to use the existing inbox comment endpoints and the account/post IDs from GET /v1/ads/{adId}/comments.

Delete an ad comment

Delete your own TikTok ad comment or reply. TikTok must return can_delete=true for the comment. Other users' comments can be hidden instead. Requires Ads access. The ad is resolved within the caller's accessible profiles. ### Identity resolution Unknown identity and video item fields are resolved only when needed for this action, then persisted for reuse. Comment-specific fields take precedence. ### Comment lookup Before moderation, Zernio verifies that the comment belongs to this ad using TikTok's ad-group comment listing. - The default search window is the last 30 days. - Use since/until for older comments, with at most 30 days between the dates. - Lookups scan at most 2,000 ad-group comments; narrow the date window if exceeded. ### Errors - 404 ad_not_found: TikTok no longer returns the ad needed to resolve identity. Check deletion or archival in TikTok Ads Manager. Listing can still succeed. - 403 feature_not_available: unsupported or unavailable identity. - 403 insufficient_permissions: denied access to ad details. Comes with reconnect guidance and the upstream platformError. - 501 feature_not_available (Meta): with guidance to use the existing inbox comment endpoints and the account/post IDs from GET /v1/ads/{adId}/comments.

POST/v1/ads/{adId}/comments/{commentId}/hide
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.hideAdComment({  path: {    adId: 'ad_abc123',    commentId: 'comment_abc123',  },  body: {    hidden: false,  },});console.log(data);
{  "status": "success",  "commentId": "7512345678901234567",  "hidden": true}
OpenAPI specification
Was this page helpful?