@whop/sdk 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/client.d.mts +88 -40
- package/client.d.mts.map +1 -1
- package/client.d.ts +88 -40
- package/client.d.ts.map +1 -1
- package/client.js +59 -0
- package/client.js.map +1 -1
- package/client.mjs +59 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/accounts.d.mts +244 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +244 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +46 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +42 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/ad-campaigns.d.mts +296 -0
- package/resources/ad-campaigns.d.mts.map +1 -0
- package/resources/ad-campaigns.d.ts +296 -0
- package/resources/ad-campaigns.d.ts.map +1 -0
- package/resources/ad-campaigns.js +104 -0
- package/resources/ad-campaigns.js.map +1 -0
- package/resources/ad-campaigns.mjs +100 -0
- package/resources/ad-campaigns.mjs.map +1 -0
- package/resources/ad-groups.d.mts +1461 -0
- package/resources/ad-groups.d.mts.map +1 -0
- package/resources/ad-groups.d.ts +1461 -0
- package/resources/ad-groups.d.ts.map +1 -0
- package/resources/ad-groups.js +121 -0
- package/resources/ad-groups.js.map +1 -0
- package/resources/ad-groups.mjs +117 -0
- package/resources/ad-groups.mjs.map +1 -0
- package/resources/ad-reports.d.mts +379 -0
- package/resources/ad-reports.d.mts.map +1 -0
- package/resources/ad-reports.d.ts +379 -0
- package/resources/ad-reports.d.ts.map +1 -0
- package/resources/ad-reports.js +26 -0
- package/resources/ad-reports.js.map +1 -0
- package/resources/ad-reports.mjs +22 -0
- package/resources/ad-reports.mjs.map +1 -0
- package/resources/ads.d.mts +234 -0
- package/resources/ads.d.mts.map +1 -0
- package/resources/ads.d.ts +234 -0
- package/resources/ads.d.ts.map +1 -0
- package/resources/ads.js +56 -0
- package/resources/ads.js.map +1 -0
- package/resources/ads.mjs +52 -0
- package/resources/ads.mjs.map +1 -0
- package/resources/affiliates/affiliates.d.mts +31 -31
- package/resources/affiliates/affiliates.d.mts.map +1 -1
- package/resources/affiliates/affiliates.d.ts +31 -31
- package/resources/affiliates/affiliates.d.ts.map +1 -1
- package/resources/affiliates/affiliates.js +21 -21
- package/resources/affiliates/affiliates.js.map +1 -1
- package/resources/affiliates/affiliates.mjs +21 -21
- package/resources/affiliates/affiliates.mjs.map +1 -1
- package/resources/affiliates/index.d.mts +2 -2
- package/resources/affiliates/index.d.mts.map +1 -1
- package/resources/affiliates/index.d.ts +2 -2
- package/resources/affiliates/index.d.ts.map +1 -1
- package/resources/affiliates/overrides.d.mts +37 -37
- package/resources/affiliates/overrides.d.mts.map +1 -1
- package/resources/affiliates/overrides.d.ts +37 -37
- package/resources/affiliates/overrides.d.ts.map +1 -1
- package/resources/affiliates/overrides.js +23 -23
- package/resources/affiliates/overrides.js.map +1 -1
- package/resources/affiliates/overrides.mjs +23 -23
- package/resources/affiliates/overrides.mjs.map +1 -1
- package/resources/ai-chats.d.mts +23 -23
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +23 -23
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +6 -6
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +6 -6
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +54 -54
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +54 -54
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +21 -21
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +21 -21
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +57 -57
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +57 -57
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +15 -15
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +15 -15
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +36 -36
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +36 -36
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +21 -21
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +21 -21
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/bounties.d.mts +281 -0
- package/resources/bounties.d.mts.map +1 -0
- package/resources/bounties.d.ts +281 -0
- package/resources/bounties.d.ts.map +1 -0
- package/resources/bounties.js +63 -0
- package/resources/bounties.js.map +1 -0
- package/resources/bounties.mjs +59 -0
- package/resources/bounties.mjs.map +1 -0
- package/resources/chat-channels.d.mts +43 -43
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +43 -43
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +24 -24
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +24 -24
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +77 -49
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +77 -49
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +11 -11
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +11 -11
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +98 -35
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +98 -35
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +24 -17
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +24 -17
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +39 -39
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +39 -39
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +14 -14
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +14 -14
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/conversions.d.mts +248 -0
- package/resources/conversions.d.mts.map +1 -0
- package/resources/conversions.d.ts +248 -0
- package/resources/conversions.d.ts.map +1 -0
- package/resources/conversions.js +30 -0
- package/resources/conversions.js.map +1 -0
- package/resources/conversions.mjs +26 -0
- package/resources/conversions.mjs.map +1 -0
- package/resources/course-chapters.d.mts +36 -36
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +36 -36
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +23 -23
- package/resources/course-chapters.js.map +1 -1
- package/resources/course-chapters.mjs +23 -23
- package/resources/course-chapters.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +5 -5
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +5 -5
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +7 -7
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +7 -7
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +40 -40
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +40 -40
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +22 -22
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +22 -22
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +5 -5
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +5 -5
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +10 -10
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +10 -10
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +40 -40
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +40 -40
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +19 -19
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +19 -19
- package/resources/courses.mjs.map +1 -1
- package/resources/deposits.d.mts +64 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +64 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +16 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +12 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/dispute-alerts.d.mts +10 -10
- package/resources/dispute-alerts.d.mts.map +1 -1
- package/resources/dispute-alerts.d.ts +10 -10
- package/resources/dispute-alerts.d.ts.map +1 -1
- package/resources/dispute-alerts.js +13 -13
- package/resources/dispute-alerts.js.map +1 -1
- package/resources/dispute-alerts.mjs +13 -13
- package/resources/dispute-alerts.mjs.map +1 -1
- package/resources/disputes.d.mts +13 -15
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +13 -15
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +11 -11
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +11 -11
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +37 -37
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +37 -37
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +19 -19
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +19 -19
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +38 -38
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +38 -38
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +21 -21
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +21 -21
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +5 -5
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +5 -5
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -7
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -7
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +50 -50
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +50 -50
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +17 -17
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +17 -17
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +36 -36
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +36 -36
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +18 -18
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +18 -18
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +18 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +18 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +52 -48
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +52 -48
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +21 -21
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +21 -21
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +33 -33
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +33 -33
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +11 -11
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +11 -11
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +45 -35
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +45 -35
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +22 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +89 -84
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +89 -84
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +40 -40
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +40 -40
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +53 -53
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +53 -53
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +24 -24
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +24 -24
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +34 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +34 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -7
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +9 -7
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +7 -7
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +7 -7
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +67 -47
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +67 -47
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +38 -38
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +38 -38
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +36 -36
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +36 -36
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +16 -16
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +16 -16
- package/resources/messages.mjs.map +1 -1
- package/resources/payment-methods.d.mts +20 -20
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +20 -20
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +10 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +10 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +177 -145
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +177 -145
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +68 -68
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +68 -68
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-accounts.d.mts +1 -1
- package/resources/payout-accounts.d.ts +1 -1
- package/resources/payout-methods.d.mts +5 -5
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +5 -5
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +10 -10
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +10 -10
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +130 -72
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +130 -72
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +21 -21
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +21 -21
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +81 -65
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +81 -65
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +25 -25
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +25 -25
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +59 -59
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +59 -59
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +22 -22
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +22 -22
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -25
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -25
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +11 -11
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +11 -11
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +59 -10
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +59 -10
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +12 -10
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +12 -10
- package/resources/refunds.mjs.map +1 -1
- package/resources/resolution-center-cases.d.mts +6 -6
- package/resources/resolution-center-cases.d.mts.map +1 -1
- package/resources/resolution-center-cases.d.ts +6 -6
- package/resources/resolution-center-cases.d.ts.map +1 -1
- package/resources/resolution-center-cases.js +10 -10
- package/resources/resolution-center-cases.js.map +1 -1
- package/resources/resolution-center-cases.mjs +10 -10
- package/resources/resolution-center-cases.mjs.map +1 -1
- package/resources/reviews.d.mts +4 -4
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +4 -4
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +6 -6
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +6 -6
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +6 -6
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +6 -6
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +11 -11
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +11 -11
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +100 -6
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +100 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +35 -35
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +35 -35
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +20 -20
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +20 -20
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +42 -38
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +42 -38
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +21 -23
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +21 -23
- package/resources/support-channels.mjs.map +1 -1
- package/resources/swaps.d.mts +62 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +62 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +15 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +11 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transfers.d.mts +57 -55
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +57 -55
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +19 -19
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +19 -19
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +20 -20
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -20
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +16 -16
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +16 -16
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +2 -2
- package/resources/verifications.d.ts +2 -2
- package/resources/wallets.d.mts +89 -0
- package/resources/wallets.d.mts.map +1 -0
- package/resources/wallets.d.ts +89 -0
- package/resources/wallets.d.ts.map +1 -0
- package/resources/wallets.js +28 -0
- package/resources/wallets.js.map +1 -0
- package/resources/wallets.mjs +24 -0
- package/resources/wallets.mjs.map +1 -0
- package/resources/webhooks.d.mts +2182 -1196
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +2182 -1196
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +31 -31
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +31 -31
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +47 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +47 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +21 -21
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +21 -21
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +277 -60
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/accounts.ts +318 -0
- package/src/resources/ad-campaigns.ts +376 -0
- package/src/resources/ad-groups.ts +1958 -0
- package/src/resources/ad-reports.ts +484 -0
- package/src/resources/ads.ts +295 -0
- package/src/resources/affiliates/affiliates.ts +39 -39
- package/src/resources/affiliates/index.ts +2 -2
- package/src/resources/affiliates/overrides.ts +51 -51
- package/src/resources/ai-chats.ts +33 -33
- package/src/resources/app-builds.ts +68 -68
- package/src/resources/apps.ts +86 -86
- package/src/resources/authorized-users.ts +48 -48
- package/src/resources/bounties.ts +353 -0
- package/src/resources/chat-channels.ts +57 -57
- package/src/resources/checkout-configurations.ts +101 -67
- package/src/resources/companies.ts +123 -41
- package/src/resources/company-token-transactions.ts +55 -55
- package/src/resources/conversions.ts +316 -0
- package/src/resources/course-chapters.ts +47 -47
- package/src/resources/course-lesson-interactions.ts +12 -12
- package/src/resources/course-lessons.ts +54 -54
- package/src/resources/course-students.ts +12 -12
- package/src/resources/courses.ts +51 -51
- package/src/resources/deposits.ts +87 -0
- package/src/resources/dispute-alerts.ts +18 -18
- package/src/resources/disputes.ts +18 -20
- package/src/resources/dm-channels.ts +45 -45
- package/src/resources/dm-members.ts +45 -45
- package/src/resources/entries.ts +10 -10
- package/src/resources/experiences.ts +64 -64
- package/src/resources/fee-markups.ts +44 -44
- package/src/resources/files.ts +22 -0
- package/src/resources/forum-posts.ts +65 -60
- package/src/resources/forums.ts +44 -44
- package/src/resources/index.ts +129 -57
- package/src/resources/invoices.ts +116 -110
- package/src/resources/leads.ts +64 -64
- package/src/resources/ledger-accounts.ts +41 -1
- package/src/resources/members.ts +14 -12
- package/src/resources/memberships.ts +80 -61
- package/src/resources/messages.ts +48 -48
- package/src/resources/payment-methods.ts +30 -30
- package/src/resources/payments.ts +229 -183
- package/src/resources/payout-accounts.ts +1 -1
- package/src/resources/payout-methods.ts +11 -11
- package/src/resources/plans.ts +153 -90
- package/src/resources/products.ts +98 -84
- package/src/resources/promo-codes.ts +74 -74
- package/src/resources/reactions.ts +33 -33
- package/src/resources/refunds.ts +65 -15
- package/src/resources/resolution-center-cases.ts +11 -12
- package/src/resources/reviews.ts +7 -7
- package/src/resources/setup-intents.ts +13 -13
- package/src/resources/shared.ts +107 -5
- package/src/resources/shipments.ts +44 -44
- package/src/resources/support-channels.ts +54 -49
- package/src/resources/swaps.ts +87 -0
- package/src/resources/transfers.ts +68 -66
- package/src/resources/users.ts +29 -29
- package/src/resources/verifications.ts +2 -2
- package/src/resources/wallets.ts +136 -0
- package/src/resources/webhooks.ts +2449 -1277
- package/src/resources/withdrawals.ts +55 -55
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,1461 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as AdCampaignsAPI from "./ad-campaigns.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Ad groups
|
|
8
|
+
*/
|
|
9
|
+
export declare class AdGroups extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of ad groups scoped by campaign or company, with
|
|
12
|
+
* optional filtering by status and creation date.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `ad_campaign:basic:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const adGroupListResponse of client.adGroups.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query?: AdGroupListParams | null | undefined, options?: RequestOptions): PagePromise<AdGroupListResponsesCursorPage, AdGroupListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a single ad group by its unique identifier.
|
|
29
|
+
*
|
|
30
|
+
* Required permissions:
|
|
31
|
+
*
|
|
32
|
+
* - `ad_campaign:basic:read`
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const adGroup = await client.adGroups.retrieve(
|
|
37
|
+
* 'adgrp_xxxxxxxxxxxx',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<AdGroup>;
|
|
42
|
+
/**
|
|
43
|
+
* Updates an existing ad group.
|
|
44
|
+
*
|
|
45
|
+
* Required permissions:
|
|
46
|
+
*
|
|
47
|
+
* - `ad_campaign:update`
|
|
48
|
+
* - `ad_campaign:basic:read`
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const adGroup = await client.adGroups.update(
|
|
53
|
+
* 'adgrp_xxxxxxxxxxxx',
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
update(id: string, body?: AdGroupUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AdGroup>;
|
|
58
|
+
/**
|
|
59
|
+
* Soft-deletes an ad group.
|
|
60
|
+
*
|
|
61
|
+
* Required permissions:
|
|
62
|
+
*
|
|
63
|
+
* - `ad_campaign:update`
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const adGroup = await client.adGroups.delete(
|
|
68
|
+
* 'adgrp_xxxxxxxxxxxx',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
delete(id: string, options?: RequestOptions): APIPromise<AdGroupDeleteResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Pauses an ad group.
|
|
75
|
+
*
|
|
76
|
+
* Required permissions:
|
|
77
|
+
*
|
|
78
|
+
* - `ad_campaign:update`
|
|
79
|
+
* - `ad_campaign:basic:read`
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const adGroup = await client.adGroups.pause(
|
|
84
|
+
* 'adgrp_xxxxxxxxxxxx',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
pause(id: string, options?: RequestOptions): APIPromise<AdGroup>;
|
|
89
|
+
/**
|
|
90
|
+
* Resumes a paused ad group.
|
|
91
|
+
*
|
|
92
|
+
* Required permissions:
|
|
93
|
+
*
|
|
94
|
+
* - `ad_campaign:update`
|
|
95
|
+
* - `ad_campaign:basic:read`
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const adGroup = await client.adGroups.unpause(
|
|
100
|
+
* 'adgrp_xxxxxxxxxxxx',
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
unpause(id: string, options?: RequestOptions): APIPromise<AdGroup>;
|
|
105
|
+
}
|
|
106
|
+
export type AdGroupListResponsesCursorPage = CursorPage<AdGroupListResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* The budget type for an ad campaign or ad group.
|
|
109
|
+
*/
|
|
110
|
+
export type AdBudgetType = 'daily' | 'lifetime';
|
|
111
|
+
/**
|
|
112
|
+
* An ad group (ad set) belonging to an ad campaign.
|
|
113
|
+
*/
|
|
114
|
+
export interface AdGroup {
|
|
115
|
+
/**
|
|
116
|
+
* The unique identifier for this ad group.
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
/**
|
|
120
|
+
* The ad campaign this ad group belongs to.
|
|
121
|
+
*/
|
|
122
|
+
ad_campaign: AdGroup.AdCampaign;
|
|
123
|
+
/**
|
|
124
|
+
* Budget amount in dollars.
|
|
125
|
+
*/
|
|
126
|
+
budget: number | null;
|
|
127
|
+
/**
|
|
128
|
+
* The budget type for an ad campaign or ad group.
|
|
129
|
+
*/
|
|
130
|
+
budget_type: AdBudgetType | null;
|
|
131
|
+
/**
|
|
132
|
+
* When the ad group was created.
|
|
133
|
+
*/
|
|
134
|
+
created_at: string;
|
|
135
|
+
/**
|
|
136
|
+
* The external ad platform this ad group is running on (e.g., meta, tiktok).
|
|
137
|
+
*/
|
|
138
|
+
platform: AdCampaignsAPI.AdCampaignPlatform;
|
|
139
|
+
/**
|
|
140
|
+
* Current operational status of the ad group.
|
|
141
|
+
*/
|
|
142
|
+
status: AdGroupStatus;
|
|
143
|
+
/**
|
|
144
|
+
* Human-readable name shown on the external platform.
|
|
145
|
+
*/
|
|
146
|
+
title: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* When the ad group was last updated.
|
|
149
|
+
*/
|
|
150
|
+
updated_at: string;
|
|
151
|
+
}
|
|
152
|
+
export declare namespace AdGroup {
|
|
153
|
+
/**
|
|
154
|
+
* The ad campaign this ad group belongs to.
|
|
155
|
+
*/
|
|
156
|
+
interface AdCampaign {
|
|
157
|
+
/**
|
|
158
|
+
* The unique identifier for this ad campaign.
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The status of an external ad group.
|
|
165
|
+
*/
|
|
166
|
+
export type AdGroupStatus = 'active' | 'paused' | 'inactive' | 'in_review' | 'rejected' | 'flagged';
|
|
167
|
+
/**
|
|
168
|
+
* An ad group (ad set) belonging to an ad campaign.
|
|
169
|
+
*/
|
|
170
|
+
export interface AdGroupListResponse {
|
|
171
|
+
/**
|
|
172
|
+
* The unique identifier for this ad group.
|
|
173
|
+
*/
|
|
174
|
+
id: string;
|
|
175
|
+
/**
|
|
176
|
+
* The ad campaign this ad group belongs to.
|
|
177
|
+
*/
|
|
178
|
+
ad_campaign: AdGroupListResponse.AdCampaign;
|
|
179
|
+
/**
|
|
180
|
+
* Budget amount in dollars.
|
|
181
|
+
*/
|
|
182
|
+
budget: number | null;
|
|
183
|
+
/**
|
|
184
|
+
* The budget type for an ad campaign or ad group.
|
|
185
|
+
*/
|
|
186
|
+
budget_type: AdBudgetType | null;
|
|
187
|
+
/**
|
|
188
|
+
* When the ad group was created.
|
|
189
|
+
*/
|
|
190
|
+
created_at: string;
|
|
191
|
+
/**
|
|
192
|
+
* The external ad platform this ad group is running on (e.g., meta, tiktok).
|
|
193
|
+
*/
|
|
194
|
+
platform: AdCampaignsAPI.AdCampaignPlatform;
|
|
195
|
+
/**
|
|
196
|
+
* Current operational status of the ad group.
|
|
197
|
+
*/
|
|
198
|
+
status: AdGroupStatus;
|
|
199
|
+
/**
|
|
200
|
+
* Human-readable name shown on the external platform.
|
|
201
|
+
*/
|
|
202
|
+
title: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* When the ad group was last updated.
|
|
205
|
+
*/
|
|
206
|
+
updated_at: string;
|
|
207
|
+
}
|
|
208
|
+
export declare namespace AdGroupListResponse {
|
|
209
|
+
/**
|
|
210
|
+
* The ad campaign this ad group belongs to.
|
|
211
|
+
*/
|
|
212
|
+
interface AdCampaign {
|
|
213
|
+
/**
|
|
214
|
+
* The unique identifier for this ad campaign.
|
|
215
|
+
*/
|
|
216
|
+
id: string;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Represents `true` or `false` values.
|
|
221
|
+
*/
|
|
222
|
+
export type AdGroupDeleteResponse = boolean;
|
|
223
|
+
export interface AdGroupListParams extends CursorPageParams {
|
|
224
|
+
/**
|
|
225
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
226
|
+
*/
|
|
227
|
+
before?: string | null;
|
|
228
|
+
/**
|
|
229
|
+
* Filter by campaign. Provide exactly one of campaign_id or company_id.
|
|
230
|
+
*/
|
|
231
|
+
campaign_id?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* Filter by company. Provide exactly one of campaign_id or company_id.
|
|
234
|
+
*/
|
|
235
|
+
company_id?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* Only return ad groups created after this timestamp.
|
|
238
|
+
*/
|
|
239
|
+
created_after?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
* Only return ad groups created before this timestamp.
|
|
242
|
+
*/
|
|
243
|
+
created_before?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Returns the first _n_ elements from the list.
|
|
246
|
+
*/
|
|
247
|
+
first?: number | null;
|
|
248
|
+
/**
|
|
249
|
+
* When false, excludes paused ad groups so pagination matches the dashboard's
|
|
250
|
+
* hide-paused toggle.
|
|
251
|
+
*/
|
|
252
|
+
include_paused?: boolean | null;
|
|
253
|
+
/**
|
|
254
|
+
* Returns the last _n_ elements from the list.
|
|
255
|
+
*/
|
|
256
|
+
last?: number | null;
|
|
257
|
+
/**
|
|
258
|
+
* Case-insensitive substring match against the ad group name.
|
|
259
|
+
*/
|
|
260
|
+
query?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* The status of an external ad group.
|
|
263
|
+
*/
|
|
264
|
+
status?: AdGroupStatus | null;
|
|
265
|
+
}
|
|
266
|
+
export interface AdGroupUpdateParams {
|
|
267
|
+
/**
|
|
268
|
+
* Budget amount in dollars.
|
|
269
|
+
*/
|
|
270
|
+
budget?: number | null;
|
|
271
|
+
/**
|
|
272
|
+
* The budget type for an ad campaign or ad group.
|
|
273
|
+
*/
|
|
274
|
+
budget_type?: AdBudgetType | null;
|
|
275
|
+
/**
|
|
276
|
+
* Unified ad group configuration (bidding, optimization, targeting).
|
|
277
|
+
*/
|
|
278
|
+
config?: AdGroupUpdateParams.Config | null;
|
|
279
|
+
/**
|
|
280
|
+
* Daily budget in dollars.
|
|
281
|
+
*/
|
|
282
|
+
daily_budget?: number | null;
|
|
283
|
+
/**
|
|
284
|
+
* Human-readable ad group name.
|
|
285
|
+
*/
|
|
286
|
+
name?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Platform-specific ad group configuration.
|
|
289
|
+
*/
|
|
290
|
+
platform_config?: AdGroupUpdateParams.PlatformConfig | null;
|
|
291
|
+
/**
|
|
292
|
+
* The status of an external ad group.
|
|
293
|
+
*/
|
|
294
|
+
status?: AdGroupStatus | null;
|
|
295
|
+
}
|
|
296
|
+
export declare namespace AdGroupUpdateParams {
|
|
297
|
+
/**
|
|
298
|
+
* Unified ad group configuration (bidding, optimization, targeting).
|
|
299
|
+
*/
|
|
300
|
+
interface Config {
|
|
301
|
+
/**
|
|
302
|
+
* Bid cap amount in cents. Used when bid_strategy is bid_cap or cost_cap.
|
|
303
|
+
*/
|
|
304
|
+
bid_amount?: number | null;
|
|
305
|
+
/**
|
|
306
|
+
* Bid strategy: lowest_cost, bid_cap, or cost_cap.
|
|
307
|
+
*/
|
|
308
|
+
bid_strategy?: 'lowest_cost' | 'bid_cap' | 'cost_cap' | null;
|
|
309
|
+
/**
|
|
310
|
+
* How you are billed (e.g., impressions, clicks).
|
|
311
|
+
*/
|
|
312
|
+
billing_event?: 'impressions' | 'clicks' | 'optimized_cpm' | 'video_views' | null;
|
|
313
|
+
/**
|
|
314
|
+
* Scheduled end time (ISO8601). Required for lifetime budgets.
|
|
315
|
+
*/
|
|
316
|
+
end_time?: string | null;
|
|
317
|
+
/**
|
|
318
|
+
* Maximum number of times to show ads to each person in the frequency interval.
|
|
319
|
+
*/
|
|
320
|
+
frequency_cap?: number | null;
|
|
321
|
+
/**
|
|
322
|
+
* Number of days for the frequency cap interval.
|
|
323
|
+
*/
|
|
324
|
+
frequency_cap_interval_days?: number | null;
|
|
325
|
+
/**
|
|
326
|
+
* What the ad group optimizes for (e.g., conversions, link_clicks, reach).
|
|
327
|
+
*/
|
|
328
|
+
optimization_goal?: 'conversions' | 'link_clicks' | 'landing_page_views' | 'reach' | 'impressions' | 'app_installs' | 'video_views' | 'lead_generation' | 'value' | 'page_likes' | 'conversations' | 'ad_recall_lift' | 'two_second_continuous_video_views' | 'post_engagement' | 'event_responses' | 'reminders_set' | 'quality_lead' | null;
|
|
329
|
+
/**
|
|
330
|
+
* Budget pacing: standard (even) or accelerated (fast).
|
|
331
|
+
*/
|
|
332
|
+
pacing?: 'standard' | 'accelerated' | null;
|
|
333
|
+
/**
|
|
334
|
+
* Scheduled start time (ISO8601).
|
|
335
|
+
*/
|
|
336
|
+
start_time?: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* Audience targeting settings (demographics, geo, interests, audiences, devices).
|
|
339
|
+
*/
|
|
340
|
+
targeting?: Config.Targeting | null;
|
|
341
|
+
}
|
|
342
|
+
namespace Config {
|
|
343
|
+
/**
|
|
344
|
+
* Audience targeting settings (demographics, geo, interests, audiences, devices).
|
|
345
|
+
*/
|
|
346
|
+
interface Targeting {
|
|
347
|
+
/**
|
|
348
|
+
* Maximum age for demographic targeting.
|
|
349
|
+
*/
|
|
350
|
+
age_max?: number | null;
|
|
351
|
+
/**
|
|
352
|
+
* Minimum age for demographic targeting.
|
|
353
|
+
*/
|
|
354
|
+
age_min?: number | null;
|
|
355
|
+
/**
|
|
356
|
+
* ISO 3166-1 alpha-2 country codes to target.
|
|
357
|
+
*/
|
|
358
|
+
countries?: Array<string> | null;
|
|
359
|
+
/**
|
|
360
|
+
* Device platforms to target.
|
|
361
|
+
*/
|
|
362
|
+
device_platforms?: Array<'mobile' | 'desktop'> | null;
|
|
363
|
+
/**
|
|
364
|
+
* Platform audience IDs to exclude.
|
|
365
|
+
*/
|
|
366
|
+
exclude_audience_ids?: Array<string> | null;
|
|
367
|
+
/**
|
|
368
|
+
* Genders to target.
|
|
369
|
+
*/
|
|
370
|
+
genders?: Array<'male' | 'female' | 'all'> | null;
|
|
371
|
+
/**
|
|
372
|
+
* Platform audience IDs to include.
|
|
373
|
+
*/
|
|
374
|
+
include_audience_ids?: Array<string> | null;
|
|
375
|
+
/**
|
|
376
|
+
* Platform-specific interest IDs to target.
|
|
377
|
+
*/
|
|
378
|
+
interest_ids?: Array<string> | null;
|
|
379
|
+
/**
|
|
380
|
+
* Language codes to target.
|
|
381
|
+
*/
|
|
382
|
+
languages?: Array<string> | null;
|
|
383
|
+
/**
|
|
384
|
+
* Placement strategy for ad delivery.
|
|
385
|
+
*/
|
|
386
|
+
placement_type?: 'automatic' | 'manual' | null;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Platform-specific ad group configuration.
|
|
391
|
+
*/
|
|
392
|
+
interface PlatformConfig {
|
|
393
|
+
/**
|
|
394
|
+
* Meta (Facebook/Instagram) ad set configuration.
|
|
395
|
+
*/
|
|
396
|
+
meta?: PlatformConfig.Meta | null;
|
|
397
|
+
/**
|
|
398
|
+
* TikTok ad group configuration.
|
|
399
|
+
*/
|
|
400
|
+
tiktok?: PlatformConfig.Tiktok | null;
|
|
401
|
+
}
|
|
402
|
+
namespace PlatformConfig {
|
|
403
|
+
/**
|
|
404
|
+
* Meta (Facebook/Instagram) ad set configuration.
|
|
405
|
+
*/
|
|
406
|
+
interface Meta {
|
|
407
|
+
android_devices?: Array<string> | null;
|
|
408
|
+
/**
|
|
409
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
410
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
411
|
+
*/
|
|
412
|
+
attribution_setting?: string | null;
|
|
413
|
+
/**
|
|
414
|
+
* Conversion attribution windows.
|
|
415
|
+
*/
|
|
416
|
+
attribution_spec?: Array<Meta.AttributionSpec> | null;
|
|
417
|
+
audience_network_positions?: Array<string> | null;
|
|
418
|
+
/**
|
|
419
|
+
* Audience type for retargeting.
|
|
420
|
+
*/
|
|
421
|
+
audience_type?: string | null;
|
|
422
|
+
/**
|
|
423
|
+
* Bid amount in cents.
|
|
424
|
+
*/
|
|
425
|
+
bid_amount?: number | null;
|
|
426
|
+
/**
|
|
427
|
+
* Meta bid strategy.
|
|
428
|
+
*/
|
|
429
|
+
bid_strategy?: 'LOWEST_COST_WITHOUT_CAP' | 'LOWEST_COST_WITH_BID_CAP' | 'COST_CAP' | 'LOWEST_COST_WITH_MIN_ROAS' | null;
|
|
430
|
+
/**
|
|
431
|
+
* How you are billed on Meta.
|
|
432
|
+
*/
|
|
433
|
+
billing_event?: 'APP_INSTALLS' | 'CLICKS' | 'IMPRESSIONS' | 'LINK_CLICKS' | 'NONE' | 'OFFER_CLAIMS' | 'PAGE_LIKES' | 'POST_ENGAGEMENT' | 'THRUPLAY' | 'PURCHASE' | 'LISTING_INTERACTION' | null;
|
|
434
|
+
brand_safety_content_filter_levels?: Array<string> | null;
|
|
435
|
+
/**
|
|
436
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
437
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
438
|
+
*/
|
|
439
|
+
budget_remaining?: string | null;
|
|
440
|
+
/**
|
|
441
|
+
* Represents signed double-precision fractional values as specified by
|
|
442
|
+
* [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
443
|
+
*/
|
|
444
|
+
cost_per_result_goal?: number | null;
|
|
445
|
+
/**
|
|
446
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
447
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
448
|
+
*/
|
|
449
|
+
created_time?: string | null;
|
|
450
|
+
/**
|
|
451
|
+
* Daily budget in cents.
|
|
452
|
+
*/
|
|
453
|
+
daily_budget?: number | null;
|
|
454
|
+
/**
|
|
455
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
456
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
457
|
+
*/
|
|
458
|
+
daily_min_spend_target?: string | null;
|
|
459
|
+
/**
|
|
460
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
461
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
462
|
+
*/
|
|
463
|
+
daily_spend_cap?: string | null;
|
|
464
|
+
/**
|
|
465
|
+
* Where ads in this ad set direct people.
|
|
466
|
+
*/
|
|
467
|
+
destination_type?: 'UNDEFINED' | 'WEBSITE' | 'APP' | 'FACEBOOK' | 'MESSENGER' | 'WHATSAPP' | 'INSTAGRAM_DIRECT' | 'INSTAGRAM_PROFILE' | 'PHONE_CALL' | 'SHOP_AUTOMATIC' | 'APPLINKS_AUTOMATIC' | 'ON_AD' | 'ON_POST' | 'ON_VIDEO' | 'ON_PAGE' | 'ON_EVENT' | 'MESSAGING_MESSENGER_WHATSAPP' | 'MESSAGING_INSTAGRAM_DIRECT_MESSENGER' | 'MESSAGING_INSTAGRAM_DIRECT_WHATSAPP' | 'MESSAGING_INSTAGRAM_DIRECT_MESSENGER_WHATSAPP' | 'INSTAGRAM_PROFILE_AND_FACEBOOK_PAGE' | 'FACEBOOK_PAGE' | 'INSTAGRAM_LIVE' | 'FACEBOOK_LIVE' | 'IMAGINE' | 'LEAD_FROM_IG_DIRECT' | 'LEAD_FROM_MESSENGER' | 'LEAD_FORM_MESSENGER' | 'WEBSITE_AND_LEAD_FORM' | 'WEBSITE_AND_PHONE_CALL' | 'BROADCAST_CHANNEL' | null;
|
|
468
|
+
/**
|
|
469
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
470
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
471
|
+
*/
|
|
472
|
+
dsa_beneficiary?: string | null;
|
|
473
|
+
/**
|
|
474
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
475
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
476
|
+
*/
|
|
477
|
+
dsa_payor?: string | null;
|
|
478
|
+
/**
|
|
479
|
+
* End time (ISO8601). Required for lifetime budgets.
|
|
480
|
+
*/
|
|
481
|
+
end_time?: string | null;
|
|
482
|
+
/**
|
|
483
|
+
* Geo locations to exclude.
|
|
484
|
+
*/
|
|
485
|
+
excluded_geo_locations?: Meta.ExcludedGeoLocations | null;
|
|
486
|
+
/**
|
|
487
|
+
* Facebook ad placements (feed, reels, stories, etc.).
|
|
488
|
+
*/
|
|
489
|
+
facebook_positions?: Array<string> | null;
|
|
490
|
+
/**
|
|
491
|
+
* Represents non-fractional signed whole numeric values. Int can represent values
|
|
492
|
+
* between -(2^31) and 2^31 - 1.
|
|
493
|
+
*/
|
|
494
|
+
frequency_control_count?: number | null;
|
|
495
|
+
/**
|
|
496
|
+
* Represents non-fractional signed whole numeric values. Int can represent values
|
|
497
|
+
* between -(2^31) and 2^31 - 1.
|
|
498
|
+
*/
|
|
499
|
+
frequency_control_days?: number | null;
|
|
500
|
+
/**
|
|
501
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
502
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
503
|
+
*/
|
|
504
|
+
frequency_control_type?: string | null;
|
|
505
|
+
geo_cities?: Array<Meta.GeoCity> | null;
|
|
506
|
+
/**
|
|
507
|
+
* Geo targeting (countries, regions, cities, zips).
|
|
508
|
+
*/
|
|
509
|
+
geo_locations?: Meta.GeoLocations | null;
|
|
510
|
+
geo_regions?: Array<Meta.GeoRegion> | null;
|
|
511
|
+
geo_zips?: Array<string> | null;
|
|
512
|
+
/**
|
|
513
|
+
* Instagram account ID for this ad set.
|
|
514
|
+
*/
|
|
515
|
+
instagram_actor_id?: string | null;
|
|
516
|
+
/**
|
|
517
|
+
* Instagram ad placements (stream, story, reels, etc.).
|
|
518
|
+
*/
|
|
519
|
+
instagram_positions?: Array<string> | null;
|
|
520
|
+
ios_devices?: Array<string> | null;
|
|
521
|
+
/**
|
|
522
|
+
* Represents `true` or `false` values.
|
|
523
|
+
*/
|
|
524
|
+
is_dynamic_creative?: boolean | null;
|
|
525
|
+
lead_conversion_location?: 'website' | 'instant_forms' | 'website_and_instant_forms' | 'messenger' | 'instagram' | 'calls' | 'app' | null;
|
|
526
|
+
/**
|
|
527
|
+
* Configuration for a Meta lead gen instant form.
|
|
528
|
+
*/
|
|
529
|
+
lead_form_config?: Meta.LeadFormConfig | null;
|
|
530
|
+
/**
|
|
531
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
532
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
533
|
+
*/
|
|
534
|
+
lead_gen_form_id?: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* Lifetime budget in cents.
|
|
537
|
+
*/
|
|
538
|
+
lifetime_budget?: number | null;
|
|
539
|
+
/**
|
|
540
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
541
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
542
|
+
*/
|
|
543
|
+
lifetime_min_spend_target?: string | null;
|
|
544
|
+
/**
|
|
545
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
546
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
547
|
+
*/
|
|
548
|
+
lifetime_spend_cap?: string | null;
|
|
549
|
+
location_types?: Array<string> | null;
|
|
550
|
+
messenger_positions?: Array<string> | null;
|
|
551
|
+
/**
|
|
552
|
+
* What this ad set optimizes for on Meta.
|
|
553
|
+
*/
|
|
554
|
+
optimization_goal?: 'NONE' | 'APP_INSTALLS' | 'AD_RECALL_LIFT' | 'ENGAGED_USERS' | 'EVENT_RESPONSES' | 'IMPRESSIONS' | 'LEAD_GENERATION' | 'QUALITY_LEAD' | 'LINK_CLICKS' | 'OFFSITE_CONVERSIONS' | 'PAGE_LIKES' | 'POST_ENGAGEMENT' | 'QUALITY_CALL' | 'REACH' | 'LANDING_PAGE_VIEWS' | 'VISIT_INSTAGRAM_PROFILE' | 'VALUE' | 'THRUPLAY' | 'DERIVED_EVENTS' | 'APP_INSTALLS_AND_OFFSITE_CONVERSIONS' | 'CONVERSATIONS' | 'IN_APP_VALUE' | 'MESSAGING_PURCHASE_CONVERSION' | 'SUBSCRIBERS' | 'REMINDERS_SET' | 'MEANINGFUL_CALL_ATTEMPT' | 'PROFILE_VISIT' | 'PROFILE_AND_PAGE_ENGAGEMENT' | 'TWO_SECOND_CONTINUOUS_VIDEO_VIEWS' | 'ENGAGED_REACH' | 'ENGAGED_PAGE_VIEWS' | 'MESSAGING_DEEP_CONVERSATION_AND_FOLLOW' | 'ADVERTISER_SILOED_VALUE' | 'AUTOMATIC_OBJECTIVE' | 'MESSAGING_APPOINTMENT_CONVERSION' | null;
|
|
555
|
+
/**
|
|
556
|
+
* Facebook Page ID for this ad set.
|
|
557
|
+
*/
|
|
558
|
+
page_id?: string | null;
|
|
559
|
+
/**
|
|
560
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
561
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
562
|
+
*/
|
|
563
|
+
pixel_id?: string | null;
|
|
564
|
+
/**
|
|
565
|
+
* The object this ad set promotes (pixel, page, etc.).
|
|
566
|
+
*/
|
|
567
|
+
promoted_object?: Meta.PromotedObject | null;
|
|
568
|
+
/**
|
|
569
|
+
* Platforms to publish on (facebook, instagram, messenger, audience_network).
|
|
570
|
+
*/
|
|
571
|
+
publisher_platforms?: Array<string> | null;
|
|
572
|
+
/**
|
|
573
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
574
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
575
|
+
*/
|
|
576
|
+
source_adset_id?: string | null;
|
|
577
|
+
/**
|
|
578
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
579
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
580
|
+
*/
|
|
581
|
+
start_time?: string | null;
|
|
582
|
+
status?: 'ACTIVE' | 'PAUSED' | null;
|
|
583
|
+
/**
|
|
584
|
+
* Advantage+ audience expansion settings.
|
|
585
|
+
*/
|
|
586
|
+
targeting_automation?: Meta.TargetingAutomation | null;
|
|
587
|
+
threads_positions?: Array<string> | null;
|
|
588
|
+
/**
|
|
589
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
590
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
591
|
+
*/
|
|
592
|
+
updated_time?: string | null;
|
|
593
|
+
user_device?: Array<string> | null;
|
|
594
|
+
user_os?: Array<string> | null;
|
|
595
|
+
/**
|
|
596
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
597
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
598
|
+
*/
|
|
599
|
+
whatsapp_phone_number?: string | null;
|
|
600
|
+
whatsapp_positions?: Array<string> | null;
|
|
601
|
+
}
|
|
602
|
+
namespace Meta {
|
|
603
|
+
/**
|
|
604
|
+
* Meta conversion attribution window.
|
|
605
|
+
*/
|
|
606
|
+
interface AttributionSpec {
|
|
607
|
+
/**
|
|
608
|
+
* Attribution event type (e.g., CLICK_THROUGH, VIEW_THROUGH).
|
|
609
|
+
*/
|
|
610
|
+
event_type: string;
|
|
611
|
+
/**
|
|
612
|
+
* Attribution window in days (1, 7, 28).
|
|
613
|
+
*/
|
|
614
|
+
window_days: number;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Geo locations to exclude.
|
|
618
|
+
*/
|
|
619
|
+
interface ExcludedGeoLocations {
|
|
620
|
+
/**
|
|
621
|
+
* City targets.
|
|
622
|
+
*/
|
|
623
|
+
cities?: Array<ExcludedGeoLocations.City> | null;
|
|
624
|
+
/**
|
|
625
|
+
* ISO 3166-1 alpha-2 country codes.
|
|
626
|
+
*/
|
|
627
|
+
countries?: Array<string> | null;
|
|
628
|
+
/**
|
|
629
|
+
* Location types (home, recent, travel_in).
|
|
630
|
+
*/
|
|
631
|
+
location_types?: Array<string> | null;
|
|
632
|
+
/**
|
|
633
|
+
* Region/state targets.
|
|
634
|
+
*/
|
|
635
|
+
regions?: Array<ExcludedGeoLocations.Region> | null;
|
|
636
|
+
/**
|
|
637
|
+
* Zip/postal code targets.
|
|
638
|
+
*/
|
|
639
|
+
zips?: Array<ExcludedGeoLocations.Zip> | null;
|
|
640
|
+
}
|
|
641
|
+
namespace ExcludedGeoLocations {
|
|
642
|
+
/**
|
|
643
|
+
* A Meta geo target entry (region, city, or zip).
|
|
644
|
+
*/
|
|
645
|
+
interface City {
|
|
646
|
+
/**
|
|
647
|
+
* Meta geo target key/ID.
|
|
648
|
+
*/
|
|
649
|
+
key: string;
|
|
650
|
+
/**
|
|
651
|
+
* Country code for this entry.
|
|
652
|
+
*/
|
|
653
|
+
country?: string | null;
|
|
654
|
+
/**
|
|
655
|
+
* Display name.
|
|
656
|
+
*/
|
|
657
|
+
name?: string | null;
|
|
658
|
+
/**
|
|
659
|
+
* Radius in miles (cities only).
|
|
660
|
+
*/
|
|
661
|
+
radius?: number | null;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* A Meta geo target entry (region, city, or zip).
|
|
665
|
+
*/
|
|
666
|
+
interface Region {
|
|
667
|
+
/**
|
|
668
|
+
* Meta geo target key/ID.
|
|
669
|
+
*/
|
|
670
|
+
key: string;
|
|
671
|
+
/**
|
|
672
|
+
* Country code for this entry.
|
|
673
|
+
*/
|
|
674
|
+
country?: string | null;
|
|
675
|
+
/**
|
|
676
|
+
* Display name.
|
|
677
|
+
*/
|
|
678
|
+
name?: string | null;
|
|
679
|
+
/**
|
|
680
|
+
* Radius in miles (cities only).
|
|
681
|
+
*/
|
|
682
|
+
radius?: number | null;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* A Meta geo target entry (region, city, or zip).
|
|
686
|
+
*/
|
|
687
|
+
interface Zip {
|
|
688
|
+
/**
|
|
689
|
+
* Meta geo target key/ID.
|
|
690
|
+
*/
|
|
691
|
+
key: string;
|
|
692
|
+
/**
|
|
693
|
+
* Country code for this entry.
|
|
694
|
+
*/
|
|
695
|
+
country?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* Display name.
|
|
698
|
+
*/
|
|
699
|
+
name?: string | null;
|
|
700
|
+
/**
|
|
701
|
+
* Radius in miles (cities only).
|
|
702
|
+
*/
|
|
703
|
+
radius?: number | null;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* A Meta geo target entry (region, city, or zip).
|
|
708
|
+
*/
|
|
709
|
+
interface GeoCity {
|
|
710
|
+
/**
|
|
711
|
+
* Meta geo target key/ID.
|
|
712
|
+
*/
|
|
713
|
+
key: string;
|
|
714
|
+
/**
|
|
715
|
+
* Country code for this entry.
|
|
716
|
+
*/
|
|
717
|
+
country?: string | null;
|
|
718
|
+
/**
|
|
719
|
+
* Display name.
|
|
720
|
+
*/
|
|
721
|
+
name?: string | null;
|
|
722
|
+
/**
|
|
723
|
+
* Radius in miles (cities only).
|
|
724
|
+
*/
|
|
725
|
+
radius?: number | null;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Geo targeting (countries, regions, cities, zips).
|
|
729
|
+
*/
|
|
730
|
+
interface GeoLocations {
|
|
731
|
+
/**
|
|
732
|
+
* City targets.
|
|
733
|
+
*/
|
|
734
|
+
cities?: Array<GeoLocations.City> | null;
|
|
735
|
+
/**
|
|
736
|
+
* ISO 3166-1 alpha-2 country codes.
|
|
737
|
+
*/
|
|
738
|
+
countries?: Array<string> | null;
|
|
739
|
+
/**
|
|
740
|
+
* Location types (home, recent, travel_in).
|
|
741
|
+
*/
|
|
742
|
+
location_types?: Array<string> | null;
|
|
743
|
+
/**
|
|
744
|
+
* Region/state targets.
|
|
745
|
+
*/
|
|
746
|
+
regions?: Array<GeoLocations.Region> | null;
|
|
747
|
+
/**
|
|
748
|
+
* Zip/postal code targets.
|
|
749
|
+
*/
|
|
750
|
+
zips?: Array<GeoLocations.Zip> | null;
|
|
751
|
+
}
|
|
752
|
+
namespace GeoLocations {
|
|
753
|
+
/**
|
|
754
|
+
* A Meta geo target entry (region, city, or zip).
|
|
755
|
+
*/
|
|
756
|
+
interface City {
|
|
757
|
+
/**
|
|
758
|
+
* Meta geo target key/ID.
|
|
759
|
+
*/
|
|
760
|
+
key: string;
|
|
761
|
+
/**
|
|
762
|
+
* Country code for this entry.
|
|
763
|
+
*/
|
|
764
|
+
country?: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* Display name.
|
|
767
|
+
*/
|
|
768
|
+
name?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
* Radius in miles (cities only).
|
|
771
|
+
*/
|
|
772
|
+
radius?: number | null;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* A Meta geo target entry (region, city, or zip).
|
|
776
|
+
*/
|
|
777
|
+
interface Region {
|
|
778
|
+
/**
|
|
779
|
+
* Meta geo target key/ID.
|
|
780
|
+
*/
|
|
781
|
+
key: string;
|
|
782
|
+
/**
|
|
783
|
+
* Country code for this entry.
|
|
784
|
+
*/
|
|
785
|
+
country?: string | null;
|
|
786
|
+
/**
|
|
787
|
+
* Display name.
|
|
788
|
+
*/
|
|
789
|
+
name?: string | null;
|
|
790
|
+
/**
|
|
791
|
+
* Radius in miles (cities only).
|
|
792
|
+
*/
|
|
793
|
+
radius?: number | null;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* A Meta geo target entry (region, city, or zip).
|
|
797
|
+
*/
|
|
798
|
+
interface Zip {
|
|
799
|
+
/**
|
|
800
|
+
* Meta geo target key/ID.
|
|
801
|
+
*/
|
|
802
|
+
key: string;
|
|
803
|
+
/**
|
|
804
|
+
* Country code for this entry.
|
|
805
|
+
*/
|
|
806
|
+
country?: string | null;
|
|
807
|
+
/**
|
|
808
|
+
* Display name.
|
|
809
|
+
*/
|
|
810
|
+
name?: string | null;
|
|
811
|
+
/**
|
|
812
|
+
* Radius in miles (cities only).
|
|
813
|
+
*/
|
|
814
|
+
radius?: number | null;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* A Meta geo target entry (region, city, or zip).
|
|
819
|
+
*/
|
|
820
|
+
interface GeoRegion {
|
|
821
|
+
/**
|
|
822
|
+
* Meta geo target key/ID.
|
|
823
|
+
*/
|
|
824
|
+
key: string;
|
|
825
|
+
/**
|
|
826
|
+
* Country code for this entry.
|
|
827
|
+
*/
|
|
828
|
+
country?: string | null;
|
|
829
|
+
/**
|
|
830
|
+
* Display name.
|
|
831
|
+
*/
|
|
832
|
+
name?: string | null;
|
|
833
|
+
/**
|
|
834
|
+
* Radius in miles (cities only).
|
|
835
|
+
*/
|
|
836
|
+
radius?: number | null;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Configuration for a Meta lead gen instant form.
|
|
840
|
+
*/
|
|
841
|
+
interface LeadFormConfig {
|
|
842
|
+
/**
|
|
843
|
+
* Name of the lead form.
|
|
844
|
+
*/
|
|
845
|
+
name: string;
|
|
846
|
+
/**
|
|
847
|
+
* URL to your privacy policy. Required by Meta.
|
|
848
|
+
*/
|
|
849
|
+
privacy_policy_url: string;
|
|
850
|
+
/**
|
|
851
|
+
* Questions to ask on the form.
|
|
852
|
+
*/
|
|
853
|
+
questions: Array<LeadFormConfig.Question>;
|
|
854
|
+
/**
|
|
855
|
+
* Background image source: from_ad or custom.
|
|
856
|
+
*/
|
|
857
|
+
background_image_source?: string | null;
|
|
858
|
+
/**
|
|
859
|
+
* URL of custom background image.
|
|
860
|
+
*/
|
|
861
|
+
background_image_url?: string | null;
|
|
862
|
+
/**
|
|
863
|
+
* Whether conditional logic is enabled for questions.
|
|
864
|
+
*/
|
|
865
|
+
conditional_logic_enabled?: boolean | null;
|
|
866
|
+
/**
|
|
867
|
+
* CTA button text on the greeting card.
|
|
868
|
+
*/
|
|
869
|
+
context_card_button_text?: string | null;
|
|
870
|
+
/**
|
|
871
|
+
* Optional greeting card bullet points.
|
|
872
|
+
*/
|
|
873
|
+
context_card_content?: Array<string> | null;
|
|
874
|
+
/**
|
|
875
|
+
* Greeting layout: PARAGRAPH_STYLE or LIST_STYLE.
|
|
876
|
+
*/
|
|
877
|
+
context_card_style?: string | null;
|
|
878
|
+
/**
|
|
879
|
+
* Optional greeting card title.
|
|
880
|
+
*/
|
|
881
|
+
context_card_title?: string | null;
|
|
882
|
+
/**
|
|
883
|
+
* Custom disclaimer body text.
|
|
884
|
+
*/
|
|
885
|
+
custom_disclaimer_body?: string | null;
|
|
886
|
+
/**
|
|
887
|
+
* Consent checkboxes for the custom disclaimer.
|
|
888
|
+
*/
|
|
889
|
+
custom_disclaimer_checkboxes?: Array<LeadFormConfig.CustomDisclaimerCheckbox> | null;
|
|
890
|
+
/**
|
|
891
|
+
* Custom disclaimer section title.
|
|
892
|
+
*/
|
|
893
|
+
custom_disclaimer_title?: string | null;
|
|
894
|
+
/**
|
|
895
|
+
* Form type: more_volume, higher_intent, or rich_creative.
|
|
896
|
+
*/
|
|
897
|
+
form_type?: string | null;
|
|
898
|
+
/**
|
|
899
|
+
* Enable Messenger follow-up after form submission.
|
|
900
|
+
*/
|
|
901
|
+
messenger_enabled?: boolean | null;
|
|
902
|
+
/**
|
|
903
|
+
* Require phone number verification via OTP (higher_intent only).
|
|
904
|
+
*/
|
|
905
|
+
phone_verification_enabled?: boolean | null;
|
|
906
|
+
/**
|
|
907
|
+
* Custom link text for privacy policy (max 70 chars).
|
|
908
|
+
*/
|
|
909
|
+
privacy_policy_link_text?: string | null;
|
|
910
|
+
/**
|
|
911
|
+
* Custom headline for the questions page.
|
|
912
|
+
*/
|
|
913
|
+
question_page_custom_headline?: string | null;
|
|
914
|
+
/**
|
|
915
|
+
* Headline for rich creative form intro.
|
|
916
|
+
*/
|
|
917
|
+
rich_creative_headline?: string | null;
|
|
918
|
+
/**
|
|
919
|
+
* Overview description for rich creative form intro.
|
|
920
|
+
*/
|
|
921
|
+
rich_creative_overview?: string | null;
|
|
922
|
+
/**
|
|
923
|
+
* Uploaded image URL for rich creative form type.
|
|
924
|
+
*/
|
|
925
|
+
rich_creative_url?: string | null;
|
|
926
|
+
/**
|
|
927
|
+
* Thank you / ending pages (supports multiple for conditional routing).
|
|
928
|
+
*/
|
|
929
|
+
thank_you_pages?: Array<LeadFormConfig.ThankYouPage> | null;
|
|
930
|
+
}
|
|
931
|
+
namespace LeadFormConfig {
|
|
932
|
+
/**
|
|
933
|
+
* A question on a Meta lead gen form.
|
|
934
|
+
*/
|
|
935
|
+
interface Question {
|
|
936
|
+
/**
|
|
937
|
+
* Question type (EMAIL, FULL_NAME, PHONE, CUSTOM, DATE_TIME, etc.).
|
|
938
|
+
*/
|
|
939
|
+
type: string;
|
|
940
|
+
/**
|
|
941
|
+
* Group ID for conditional question routing.
|
|
942
|
+
*/
|
|
943
|
+
conditional_questions_group_id?: string | null;
|
|
944
|
+
/**
|
|
945
|
+
* Questions shown conditionally based on this question's answer.
|
|
946
|
+
*/
|
|
947
|
+
dependent_conditional_questions?: Array<Question.DependentConditionalQuestion> | null;
|
|
948
|
+
/**
|
|
949
|
+
* Helper text shown below the question.
|
|
950
|
+
*/
|
|
951
|
+
inline_context?: string | null;
|
|
952
|
+
/**
|
|
953
|
+
* Unique key for this question.
|
|
954
|
+
*/
|
|
955
|
+
key?: string | null;
|
|
956
|
+
/**
|
|
957
|
+
* Custom label for CUSTOM questions.
|
|
958
|
+
*/
|
|
959
|
+
label?: string | null;
|
|
960
|
+
/**
|
|
961
|
+
* Answer options for multiple choice CUSTOM questions.
|
|
962
|
+
*/
|
|
963
|
+
options?: Array<Question.Option> | null;
|
|
964
|
+
/**
|
|
965
|
+
* UI hint: short_answer, multiple_choice, or appointment.
|
|
966
|
+
*/
|
|
967
|
+
question_format?: string | null;
|
|
968
|
+
}
|
|
969
|
+
namespace Question {
|
|
970
|
+
/**
|
|
971
|
+
* A dependent conditional question (non-recursive to avoid schema recursion).
|
|
972
|
+
*/
|
|
973
|
+
interface DependentConditionalQuestion {
|
|
974
|
+
/**
|
|
975
|
+
* Question type (EMAIL, FULL_NAME, PHONE, CUSTOM, DATE_TIME, etc.).
|
|
976
|
+
*/
|
|
977
|
+
type: string;
|
|
978
|
+
/**
|
|
979
|
+
* Helper text shown below the question.
|
|
980
|
+
*/
|
|
981
|
+
inline_context?: string | null;
|
|
982
|
+
/**
|
|
983
|
+
* Unique key for this question.
|
|
984
|
+
*/
|
|
985
|
+
key?: string | null;
|
|
986
|
+
/**
|
|
987
|
+
* Custom label for CUSTOM questions.
|
|
988
|
+
*/
|
|
989
|
+
label?: string | null;
|
|
990
|
+
/**
|
|
991
|
+
* Answer options for multiple choice questions.
|
|
992
|
+
*/
|
|
993
|
+
options?: Array<DependentConditionalQuestion.Option> | null;
|
|
994
|
+
}
|
|
995
|
+
namespace DependentConditionalQuestion {
|
|
996
|
+
/**
|
|
997
|
+
* An answer option for a multiple choice lead form question.
|
|
998
|
+
*/
|
|
999
|
+
interface Option {
|
|
1000
|
+
/**
|
|
1001
|
+
* Unique key for this option.
|
|
1002
|
+
*/
|
|
1003
|
+
key: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Display text for this option.
|
|
1006
|
+
*/
|
|
1007
|
+
value: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Conditional logic routing for this answer option.
|
|
1010
|
+
*/
|
|
1011
|
+
logic?: Option.Logic | null;
|
|
1012
|
+
}
|
|
1013
|
+
namespace Option {
|
|
1014
|
+
/**
|
|
1015
|
+
* Conditional logic routing for this answer option.
|
|
1016
|
+
*/
|
|
1017
|
+
interface Logic {
|
|
1018
|
+
/**
|
|
1019
|
+
* Logic type: go_to_question, submit_form, or close_form.
|
|
1020
|
+
*/
|
|
1021
|
+
type: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Index of the end page to route to (for submit_form type).
|
|
1024
|
+
*/
|
|
1025
|
+
target_end_page_index?: number | null;
|
|
1026
|
+
/**
|
|
1027
|
+
* Index of the question to route to (for go_to_question type).
|
|
1028
|
+
*/
|
|
1029
|
+
target_question_index?: number | null;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* An answer option for a multiple choice lead form question.
|
|
1035
|
+
*/
|
|
1036
|
+
interface Option {
|
|
1037
|
+
/**
|
|
1038
|
+
* Unique key for this option.
|
|
1039
|
+
*/
|
|
1040
|
+
key: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* Display text for this option.
|
|
1043
|
+
*/
|
|
1044
|
+
value: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* Conditional logic routing for this answer option.
|
|
1047
|
+
*/
|
|
1048
|
+
logic?: Option.Logic | null;
|
|
1049
|
+
}
|
|
1050
|
+
namespace Option {
|
|
1051
|
+
/**
|
|
1052
|
+
* Conditional logic routing for this answer option.
|
|
1053
|
+
*/
|
|
1054
|
+
interface Logic {
|
|
1055
|
+
/**
|
|
1056
|
+
* Logic type: go_to_question, submit_form, or close_form.
|
|
1057
|
+
*/
|
|
1058
|
+
type: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* Index of the end page to route to (for submit_form type).
|
|
1061
|
+
*/
|
|
1062
|
+
target_end_page_index?: number | null;
|
|
1063
|
+
/**
|
|
1064
|
+
* Index of the question to route to (for go_to_question type).
|
|
1065
|
+
*/
|
|
1066
|
+
target_question_index?: number | null;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* A consent checkbox for the custom disclaimer section.
|
|
1072
|
+
*/
|
|
1073
|
+
interface CustomDisclaimerCheckbox {
|
|
1074
|
+
/**
|
|
1075
|
+
* Unique key for this checkbox.
|
|
1076
|
+
*/
|
|
1077
|
+
key: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Label text for the checkbox.
|
|
1080
|
+
*/
|
|
1081
|
+
text: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* Whether the checkbox is checked by default.
|
|
1084
|
+
*/
|
|
1085
|
+
is_checked_by_default?: boolean | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Whether the checkbox must be checked to submit.
|
|
1088
|
+
*/
|
|
1089
|
+
is_required?: boolean | null;
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* A thank-you / ending page for a Meta lead gen form.
|
|
1093
|
+
*/
|
|
1094
|
+
interface ThankYouPage {
|
|
1095
|
+
/**
|
|
1096
|
+
* Body text for this ending page.
|
|
1097
|
+
*/
|
|
1098
|
+
body?: string | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* Business phone number for call CTA.
|
|
1101
|
+
*/
|
|
1102
|
+
business_phone?: string | null;
|
|
1103
|
+
/**
|
|
1104
|
+
* Custom button text.
|
|
1105
|
+
*/
|
|
1106
|
+
button_text?: string | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* CTA button type: VIEW_WEBSITE, CALL_BUSINESS, DOWNLOAD.
|
|
1109
|
+
*/
|
|
1110
|
+
button_type?: string | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Question group ID for conditional routing to this page.
|
|
1113
|
+
*/
|
|
1114
|
+
conditional_question_group_id?: string | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* Enable Messenger follow-up.
|
|
1117
|
+
*/
|
|
1118
|
+
enable_messenger?: boolean | null;
|
|
1119
|
+
/**
|
|
1120
|
+
* Uploaded file URL for gated content download.
|
|
1121
|
+
*/
|
|
1122
|
+
gated_file_url?: string | null;
|
|
1123
|
+
/**
|
|
1124
|
+
* URL the button links to.
|
|
1125
|
+
*/
|
|
1126
|
+
link?: string | null;
|
|
1127
|
+
/**
|
|
1128
|
+
* Internal name for this ending page.
|
|
1129
|
+
*/
|
|
1130
|
+
name?: string | null;
|
|
1131
|
+
/**
|
|
1132
|
+
* Headline for this ending page.
|
|
1133
|
+
*/
|
|
1134
|
+
title?: string | null;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* The object this ad set promotes (pixel, page, etc.).
|
|
1139
|
+
*/
|
|
1140
|
+
interface PromotedObject {
|
|
1141
|
+
/**
|
|
1142
|
+
* Custom conversion rule ID (numeric, from Meta Events Manager).
|
|
1143
|
+
*/
|
|
1144
|
+
custom_conversion_id?: string | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* Pixel event name, used when custom_event_type is OTHER.
|
|
1147
|
+
*/
|
|
1148
|
+
custom_event_str?: string | null;
|
|
1149
|
+
/**
|
|
1150
|
+
* Custom event type (e.g., PURCHASE, COMPLETE_REGISTRATION, OTHER).
|
|
1151
|
+
*/
|
|
1152
|
+
custom_event_type?: string | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* Facebook Page ID.
|
|
1155
|
+
*/
|
|
1156
|
+
page_id?: string | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* Meta Pixel ID for conversion tracking.
|
|
1159
|
+
*/
|
|
1160
|
+
pixel_id?: string | null;
|
|
1161
|
+
/**
|
|
1162
|
+
* WhatsApp phone number for messaging campaigns.
|
|
1163
|
+
*/
|
|
1164
|
+
whatsapp_phone_number?: string | null;
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Advantage+ audience expansion settings.
|
|
1168
|
+
*/
|
|
1169
|
+
interface TargetingAutomation {
|
|
1170
|
+
/**
|
|
1171
|
+
* 0 = off (use exact targeting), 1 = on (let Meta expand audience).
|
|
1172
|
+
*/
|
|
1173
|
+
advantage_audience?: number | null;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* TikTok ad group configuration.
|
|
1178
|
+
*/
|
|
1179
|
+
interface Tiktok {
|
|
1180
|
+
actions?: Array<Tiktok.Action> | null;
|
|
1181
|
+
age_groups?: Array<'AGE_13_17' | 'AGE_18_24' | 'AGE_25_34' | 'AGE_35_44' | 'AGE_45_54' | 'AGE_55_100'> | null;
|
|
1182
|
+
/**
|
|
1183
|
+
* App ID for app promotion campaigns.
|
|
1184
|
+
*/
|
|
1185
|
+
app_id?: string | null;
|
|
1186
|
+
attribution_event_count?: 'UNSET' | 'EVERY' | 'ONCE' | null;
|
|
1187
|
+
audience_ids?: Array<string> | null;
|
|
1188
|
+
/**
|
|
1189
|
+
* Represents untyped JSON
|
|
1190
|
+
*/
|
|
1191
|
+
audience_rule?: {
|
|
1192
|
+
[key: string]: unknown;
|
|
1193
|
+
} | null;
|
|
1194
|
+
audience_type?: 'NORMAL' | 'SMART_INTERESTS_BEHAVIORS' | null;
|
|
1195
|
+
/**
|
|
1196
|
+
* Bid price (cost per result for Cost Cap).
|
|
1197
|
+
*/
|
|
1198
|
+
bid_price?: number | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* Bidding strategy (BID_TYPE_NO_BID, BID_TYPE_CUSTOM).
|
|
1201
|
+
*/
|
|
1202
|
+
bid_type?: 'BID_TYPE_NO_BID' | 'BID_TYPE_CUSTOM' | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* How you are billed on TikTok (CPC, CPM, OCPM, CPV).
|
|
1205
|
+
*/
|
|
1206
|
+
billing_event?: 'CPC' | 'CPM' | 'OCPM' | 'CPV' | null;
|
|
1207
|
+
brand_safety_type?: 'NO_BRAND_SAFETY' | 'STANDARD_INVENTORY' | 'LIMITED_INVENTORY' | 'FULL_INVENTORY' | 'EXPANDED_INVENTORY' | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* Budget mode (BUDGET_MODE_DAY, BUDGET_MODE_TOTAL,
|
|
1210
|
+
* BUDGET_MODE_DYNAMIC_DAILY_BUDGET).
|
|
1211
|
+
*/
|
|
1212
|
+
budget_mode?: 'BUDGET_MODE_DAY' | 'BUDGET_MODE_TOTAL' | 'BUDGET_MODE_DYNAMIC_DAILY_BUDGET' | null;
|
|
1213
|
+
carrier_ids?: Array<string> | null;
|
|
1214
|
+
category_exclusion_ids?: Array<string> | null;
|
|
1215
|
+
click_attribution_window?: 'OFF' | 'ONE_DAY' | 'SEVEN_DAYS' | 'FOURTEEN_DAYS' | 'TWENTY_EIGHT_DAYS' | null;
|
|
1216
|
+
/**
|
|
1217
|
+
* Represents `true` or `false` values.
|
|
1218
|
+
*/
|
|
1219
|
+
comment_disabled?: boolean | null;
|
|
1220
|
+
contextual_tag_ids?: Array<string> | null;
|
|
1221
|
+
/**
|
|
1222
|
+
* Target cost per conversion for oCPM.
|
|
1223
|
+
*/
|
|
1224
|
+
conversion_bid_price?: number | null;
|
|
1225
|
+
/**
|
|
1226
|
+
* Creative delivery strategy.
|
|
1227
|
+
*/
|
|
1228
|
+
creative_material_mode?: string | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* Ad delivery schedule (48x7 character string).
|
|
1231
|
+
*/
|
|
1232
|
+
dayparting?: string | null;
|
|
1233
|
+
/**
|
|
1234
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1235
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1236
|
+
*/
|
|
1237
|
+
deep_funnel_event_source?: string | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1240
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1241
|
+
*/
|
|
1242
|
+
deep_funnel_event_source_id?: string | null;
|
|
1243
|
+
deep_funnel_optimization_status?: 'ON' | 'OFF' | null;
|
|
1244
|
+
device_model_ids?: Array<string> | null;
|
|
1245
|
+
device_price_ranges?: Array<string> | null;
|
|
1246
|
+
engaged_view_attribution_window?: 'OFF' | 'ONE_DAY' | 'SEVEN_DAYS' | null;
|
|
1247
|
+
excluded_audience_ids?: Array<string> | null;
|
|
1248
|
+
/**
|
|
1249
|
+
* TikTok location/region IDs to exclude.
|
|
1250
|
+
*/
|
|
1251
|
+
excluded_location_ids?: Array<string> | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* Represents non-fractional signed whole numeric values. Int can represent values
|
|
1254
|
+
* between -(2^31) and 2^31 - 1.
|
|
1255
|
+
*/
|
|
1256
|
+
frequency?: number | null;
|
|
1257
|
+
/**
|
|
1258
|
+
* Represents non-fractional signed whole numeric values. Int can represent values
|
|
1259
|
+
* between -(2^31) and 2^31 - 1.
|
|
1260
|
+
*/
|
|
1261
|
+
frequency_schedule?: number | null;
|
|
1262
|
+
gender?: 'GENDER_UNLIMITED' | 'GENDER_MALE' | 'GENDER_FEMALE' | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Business Center ID for BC_AUTH_TT identity.
|
|
1265
|
+
*/
|
|
1266
|
+
identity_authorized_bc_id?: string | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* TikTok identity ID for the ad group.
|
|
1269
|
+
*/
|
|
1270
|
+
identity_id?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Identity type (AUTH_CODE, TT_USER, BC_AUTH_TT).
|
|
1273
|
+
*/
|
|
1274
|
+
identity_type?: string | null;
|
|
1275
|
+
/**
|
|
1276
|
+
* Instant form configuration for lead generation campaigns.
|
|
1277
|
+
*/
|
|
1278
|
+
instant_form_config?: Tiktok.InstantFormConfig | null;
|
|
1279
|
+
/**
|
|
1280
|
+
* TikTok instant form ID (set automatically when instant_form_config is provided).
|
|
1281
|
+
*/
|
|
1282
|
+
instant_form_id?: string | null;
|
|
1283
|
+
interest_category_ids?: Array<string> | null;
|
|
1284
|
+
interest_keyword_ids?: Array<string> | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* Represents `true` or `false` values.
|
|
1287
|
+
*/
|
|
1288
|
+
inventory_filter_enabled?: boolean | null;
|
|
1289
|
+
ios14_targeting?: 'UNSET' | 'IOS14_MINUS' | 'IOS14_PLUS' | 'ALL' | null;
|
|
1290
|
+
isp_ids?: Array<string> | null;
|
|
1291
|
+
languages?: Array<string> | null;
|
|
1292
|
+
/**
|
|
1293
|
+
* TikTok location/region IDs for geo targeting.
|
|
1294
|
+
*/
|
|
1295
|
+
location_ids?: Array<string> | null;
|
|
1296
|
+
/**
|
|
1297
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1298
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1299
|
+
*/
|
|
1300
|
+
min_android_version?: string | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1303
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1304
|
+
*/
|
|
1305
|
+
min_ios_version?: string | null;
|
|
1306
|
+
network_types?: Array<string> | null;
|
|
1307
|
+
operating_systems?: Array<'ANDROID' | 'IOS'> | null;
|
|
1308
|
+
/**
|
|
1309
|
+
* Initial status (ENABLE, DISABLE).
|
|
1310
|
+
*/
|
|
1311
|
+
operation_status?: 'ENABLE' | 'DISABLE' | null;
|
|
1312
|
+
/**
|
|
1313
|
+
* Conversion event (e.g., COMPLETE_PAYMENT).
|
|
1314
|
+
*/
|
|
1315
|
+
optimization_event?: string | null;
|
|
1316
|
+
/**
|
|
1317
|
+
* What this ad group optimizes for on TikTok.
|
|
1318
|
+
*/
|
|
1319
|
+
optimization_goal?: 'CLICK' | 'CONVERT' | 'INSTALL' | 'IN_APP_EVENT' | 'REACH' | 'SHOW' | 'VIDEO_VIEW' | 'ENGAGED_VIEW' | 'ENGAGED_VIEW_FIFTEEN' | 'LEAD_GENERATION' | 'PREFERRED_LEAD' | 'CONVERSATION' | 'FOLLOWERS' | 'PROFILE_VIEWS' | 'PAGE_VISIT' | 'VALUE' | 'AUTOMATIC_VALUE_OPTIMIZATION' | 'TRAFFIC_LANDING_PAGE_VIEW' | 'DESTINATION_VISIT' | 'MT_LIVE_ROOM' | 'PRODUCT_CLICK_IN_LIVE' | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Budget pacing (PACING_MODE_SMOOTH, PACING_MODE_FAST).
|
|
1322
|
+
*/
|
|
1323
|
+
pacing?: 'PACING_MODE_SMOOTH' | 'PACING_MODE_FAST' | null;
|
|
1324
|
+
pangle_audience_package_exclude_ids?: Array<string> | null;
|
|
1325
|
+
pangle_audience_package_include_ids?: Array<string> | null;
|
|
1326
|
+
pangle_block_app_ids?: Array<string> | null;
|
|
1327
|
+
/**
|
|
1328
|
+
* TikTok Pixel ID for conversion tracking.
|
|
1329
|
+
*/
|
|
1330
|
+
pixel_id?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Placement strategy (PLACEMENT_TYPE_AUTOMATIC, PLACEMENT_TYPE_NORMAL).
|
|
1333
|
+
*/
|
|
1334
|
+
placement_type?: 'PLACEMENT_TYPE_AUTOMATIC' | 'PLACEMENT_TYPE_NORMAL' | null;
|
|
1335
|
+
/**
|
|
1336
|
+
* Placements (PLACEMENT_TIKTOK, PLACEMENT_PANGLE, etc.).
|
|
1337
|
+
*/
|
|
1338
|
+
placements?: Array<string> | null;
|
|
1339
|
+
/**
|
|
1340
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1341
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1342
|
+
*/
|
|
1343
|
+
product_set_id?: string | null;
|
|
1344
|
+
product_source?: 'CATALOG' | 'STORE' | 'SHOWCASE' | null;
|
|
1345
|
+
/**
|
|
1346
|
+
* Promotion type (optimization location).
|
|
1347
|
+
*/
|
|
1348
|
+
promotion_type?: string | null;
|
|
1349
|
+
/**
|
|
1350
|
+
* Schedule end time (UTC, YYYY-MM-DD HH:MM:SS).
|
|
1351
|
+
*/
|
|
1352
|
+
schedule_end_time?: string | null;
|
|
1353
|
+
/**
|
|
1354
|
+
* Schedule start time (UTC, YYYY-MM-DD HH:MM:SS).
|
|
1355
|
+
*/
|
|
1356
|
+
schedule_start_time?: string | null;
|
|
1357
|
+
/**
|
|
1358
|
+
* Schedule type (SCHEDULE_START_END, SCHEDULE_FROM_NOW).
|
|
1359
|
+
*/
|
|
1360
|
+
schedule_type?: 'SCHEDULE_START_END' | 'SCHEDULE_FROM_NOW' | null;
|
|
1361
|
+
/**
|
|
1362
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1363
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1364
|
+
*/
|
|
1365
|
+
secondary_optimization_event?: string | null;
|
|
1366
|
+
/**
|
|
1367
|
+
* Represents non-fractional signed whole numeric values. Int can represent values
|
|
1368
|
+
* between -(2^31) and 2^31 - 1.
|
|
1369
|
+
*/
|
|
1370
|
+
shopping_ads_retargeting_actions_days?: number | null;
|
|
1371
|
+
shopping_ads_retargeting_type?: 'OFF' | 'LAB1' | 'LAB2' | 'LAB3' | 'LAB4' | 'LAB5' | null;
|
|
1372
|
+
spending_power?: 'ALL' | 'HIGH' | null;
|
|
1373
|
+
/**
|
|
1374
|
+
* TikTok subplacements (IN_FEED, SEARCH_FEED, etc.).
|
|
1375
|
+
*/
|
|
1376
|
+
tiktok_subplacements?: Array<string> | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* Represents textual data as UTF-8 character sequences. This type is most often
|
|
1379
|
+
* used by GraphQL to represent free-form human-readable text.
|
|
1380
|
+
*/
|
|
1381
|
+
vertical_sensitivity_id?: string | null;
|
|
1382
|
+
/**
|
|
1383
|
+
* Represents `true` or `false` values.
|
|
1384
|
+
*/
|
|
1385
|
+
video_download_disabled?: boolean | null;
|
|
1386
|
+
video_user_actions?: Array<string> | null;
|
|
1387
|
+
view_attribution_window?: 'OFF' | 'ONE_DAY' | 'SEVEN_DAYS' | null;
|
|
1388
|
+
}
|
|
1389
|
+
namespace Tiktok {
|
|
1390
|
+
/**
|
|
1391
|
+
* A single TikTok behavioral targeting entry. One category of past user behavior
|
|
1392
|
+
* (what they did, over what window, on which kind of content). See
|
|
1393
|
+
* docs/tiktok_api/ad_group.md § actions.
|
|
1394
|
+
*/
|
|
1395
|
+
interface Action {
|
|
1396
|
+
/**
|
|
1397
|
+
* Behavioral category IDs. Use /tool/action_category/ to list them.
|
|
1398
|
+
*/
|
|
1399
|
+
action_category_ids?: Array<string> | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Lookback window in days. TikTok accepts 7, 15, 30, 60, 90, or 180.
|
|
1402
|
+
*/
|
|
1403
|
+
action_period?: number | null;
|
|
1404
|
+
/**
|
|
1405
|
+
* The category of TikTok content a behavioral targeting rule applies to. See
|
|
1406
|
+
* docs/tiktok_api/ad_group.md § actions.
|
|
1407
|
+
*/
|
|
1408
|
+
action_scene?: 'VIDEO_RELATED' | 'CREATOR_RELATED' | 'HASHTAG_RELATED' | 'LIVE_RELATED' | null;
|
|
1409
|
+
/**
|
|
1410
|
+
* Specific video interactions (WATCHED_TO_END, LIKED, COMMENTED, SHARED, FOLLOWED,
|
|
1411
|
+
* PROFILE_VISITED).
|
|
1412
|
+
*/
|
|
1413
|
+
video_user_actions?: Array<'WATCHED_TO_END' | 'LIKED' | 'COMMENTED' | 'SHARED' | 'FOLLOWED' | 'PROFILE_VISITED'> | null;
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Instant form configuration for lead generation campaigns.
|
|
1417
|
+
*/
|
|
1418
|
+
interface InstantFormConfig {
|
|
1419
|
+
/**
|
|
1420
|
+
* URL to your privacy policy.
|
|
1421
|
+
*/
|
|
1422
|
+
privacy_policy_url: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* Form questions (at least one required).
|
|
1425
|
+
*/
|
|
1426
|
+
questions: Array<InstantFormConfig.Question>;
|
|
1427
|
+
/**
|
|
1428
|
+
* Submit button text.
|
|
1429
|
+
*/
|
|
1430
|
+
button_text?: string | null;
|
|
1431
|
+
/**
|
|
1432
|
+
* Greeting text shown at the top of the form.
|
|
1433
|
+
*/
|
|
1434
|
+
greeting?: string | null;
|
|
1435
|
+
/**
|
|
1436
|
+
* Form name. Auto-generated if omitted.
|
|
1437
|
+
*/
|
|
1438
|
+
name?: string | null;
|
|
1439
|
+
}
|
|
1440
|
+
namespace InstantFormConfig {
|
|
1441
|
+
/**
|
|
1442
|
+
* A question for a TikTok instant form.
|
|
1443
|
+
*/
|
|
1444
|
+
interface Question {
|
|
1445
|
+
/**
|
|
1446
|
+
* Question type (EMAIL, PHONE_NUMBER, NAME, CUSTOM).
|
|
1447
|
+
*/
|
|
1448
|
+
field_type: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* Custom label for the question.
|
|
1451
|
+
*/
|
|
1452
|
+
label?: string | null;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
export declare namespace AdGroups {
|
|
1459
|
+
export { type AdBudgetType as AdBudgetType, type AdGroup as AdGroup, type AdGroupStatus as AdGroupStatus, type AdGroupListResponse as AdGroupListResponse, type AdGroupDeleteResponse as AdGroupDeleteResponse, type AdGroupListResponsesCursorPage as AdGroupListResponsesCursorPage, type AdGroupListParams as AdGroupListParams, type AdGroupUpdateParams as AdGroupUpdateParams, };
|
|
1460
|
+
}
|
|
1461
|
+
//# sourceMappingURL=ad-groups.d.ts.map
|