/** * @example * { * access_token: "new-token", * account_id: "biz_xxxxxxxxxxxxxx", * external_id: "998877665544", * platform: "meta" * } */ export interface CreateAdPixelsRequest { /** A credential that can send events to the pixel on the ad platform: a Meta Conversions API access token, a TikTok Events API access token, or for `google`, the JSON key of a Google Cloud service account. The service account needs Standard access to the Google Ads account, and its project needs the Google Ads API and the Data Manager API turned on and Explorer access or higher to the Google Ads API. Use a service account made only for Whop, with no roles in its project. Whop never returns it. */ access_token: string; /** The business whose claimed campaigns send conversions to this pixel, prefixed `biz_`. You must have claimed at least one of its campaigns. */ account_id: string; /** The pixel's ID on the ad platform: the Meta pixel or dataset ID, the TikTok pixel code, or the Google Ads customer ID. */ external_id: string; /** The ad platform the pixel belongs to. */ platform: CreateAdPixelsRequest.Platform; } export declare namespace CreateAdPixelsRequest { /** The ad platform the pixel belongs to. */ const Platform: { readonly Meta: "meta"; readonly Tiktok: "tiktok"; readonly Google: "google"; }; type Platform = (typeof Platform)[keyof typeof Platform]; }