import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace AdPixelsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * An Ad Pixel connects a pixel you own on an ad platform to a business whose campaigns you claimed through the advertiser supplier program. Whop sends that pixel the conversions credited to your claimed campaigns for that business, using the access token you provide. * * Use the Ad Pixels API to add one pixel per business on each ad platform, list or retrieve your pixels, replace an access token the ad platform rejected, and remove a pixel to stop deliveries. */ export declare class AdPixelsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AdPixelsClient.Options); /** * List the pixels you added for businesses whose campaigns you claimed. * * @param {Whop.ListAdPixelsRequest} request * @param {AdPixelsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adPixels.list() */ list(request?: Whop.ListAdPixelsRequest, requestOptions?: AdPixelsClient.RequestOptions): Promise>; /** * Add your pixel for a business whose campaigns you claimed. Whop checks the access token with the ad platform, then sends the pixel the conversions credited to your claimed campaigns for that business. Each business takes one pixel per ad platform, and each pixel can serve one business. On Google, the pixel is your Google Ads account, which can serve several businesses, and Whop creates its conversion actions there with your service account key. * * @param {Whop.CreateAdPixelsRequest} request * @param {AdPixelsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adPixels.create({ * access_token: "new-token", * account_id: "biz_xxxxxxxxxxxxxx", * external_id: "998877665544", * platform: "meta" * }) */ create(request: Whop.CreateAdPixelsRequest, requestOptions?: AdPixelsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * @param {Whop.RetrieveAdPixelsRequest} request * @param {AdPixelsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adPixels.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveAdPixelsRequest, requestOptions?: AdPixelsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Remove the pixel and its access token. Whop stops sending it conversions. * * @param {Whop.DeleteAdPixelsRequest} request * @param {AdPixelsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adPixels.delete({ * id: "id" * }) */ delete(request: Whop.DeleteAdPixelsRequest, requestOptions?: AdPixelsClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Replace the pixel's access token. Whop checks the new token with the ad platform and resumes deliveries to an `errored` pixel. * * @param {Whop.UpdateAdPixelsRequest} request * @param {AdPixelsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.adPixels.update({ * id: "id", * access_token: "new-token" * }) */ update(request: Whop.UpdateAdPixelsRequest, requestOptions?: AdPixelsClient.RequestOptions): core.HttpResponsePromise; private __update; }