abacusai.ad_template

Classes

AdTemplate

Ad Template — a Studio ad format card (client-safe registry fields; recipes stay server-side).

Module Contents

class abacusai.ad_template.AdTemplate(client, slug=None, name=None, category=None, speaks=None, supportsAvatar=None, defaultDuration=None, defaultAspectRatio=None, cardOneLiner=None, description=None, exampleMedia=None)

Bases: abacusai.return_class.AbstractApiClass

Ad Template — a Studio ad format card (client-safe registry fields; recipes stay server-side).

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • slug (str) – Stable template identifier

  • name (str) – Display name

  • category (str) – Explore subtab (ugc, tiktok, commercial)

  • speaks (bool) – Whether the avatar speaks (voice/lip-sync formats)

  • supportsAvatar (bool) – Whether an avatar can be attached (some formats are product-only)

  • defaultDuration (int) – Suggested duration in seconds

  • defaultAspectRatio (str) – Suggested aspect ratio

  • cardOneLiner (str) – One-line pitch on the format card

  • description (str) – Gallery caption / display copy

  • exampleMedia (list) – CDN URLs of preview videos for the card

slug = None
name = None
category = None
speaks = None
supports_avatar = None
default_duration = None
default_aspect_ratio = None
card_one_liner = None
description = None
example_media = None
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict