glitch-javascript-sdk 1.7.8 → 1.7.9
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/dist/cjs/index.js +57 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +36 -0
- package/dist/esm/index.js +57 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +36 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +447 -377
- package/src/routes/AdsRoute.ts +128 -113
package/dist/index.d.ts
CHANGED
|
@@ -826,6 +826,42 @@ declare class Ads {
|
|
|
826
826
|
* @returns A 204 No Content response on success
|
|
827
827
|
*/
|
|
828
828
|
static deleteTrigger<T>(campaign_id: string, group_id: string, trigger_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
829
|
+
/**
|
|
830
|
+
* List platform-level businesses for the given campaign ID,
|
|
831
|
+
* as defined by /ads/campaigns/{id}/businesses on the backend.
|
|
832
|
+
*
|
|
833
|
+
* Typically relevant for Reddit (list businesses), or might return a
|
|
834
|
+
* "not supported" message for Meta/TikTok.
|
|
835
|
+
*
|
|
836
|
+
* @param campaign_id The UUID of the Ad Campaign
|
|
837
|
+
* @param params Optional query parameters, e.g. page.size, etc.
|
|
838
|
+
* @returns A response object with data (business list or messages)
|
|
839
|
+
*/
|
|
840
|
+
static listCampaignBusinesses<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
841
|
+
/**
|
|
842
|
+
* List Ad Accounts for the given campaign ID,
|
|
843
|
+
* as defined by /ads/campaigns/{id}/ad_accounts on the backend.
|
|
844
|
+
*
|
|
845
|
+
* E.g. for Reddit, you can pass ?business_id= to get business-level ad accounts,
|
|
846
|
+
* or for Twitter, it might just return a user’s ad accounts, etc.
|
|
847
|
+
*
|
|
848
|
+
* @param campaign_id The UUID of the Ad Campaign
|
|
849
|
+
* @param params Optional query parameters, e.g. business_id, page.size, etc.
|
|
850
|
+
* @returns A response object with data (ad account list)
|
|
851
|
+
*/
|
|
852
|
+
static listCampaignAdAccounts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
853
|
+
/**
|
|
854
|
+
* List funding instruments for the given campaign ID,
|
|
855
|
+
* as defined by /ads/campaigns/{id}/funding_instruments on the backend.
|
|
856
|
+
*
|
|
857
|
+
* For Twitter, pass ?account_id=...
|
|
858
|
+
* For Reddit, pass ?ad_account_id=... or ?business_id=...
|
|
859
|
+
*
|
|
860
|
+
* @param campaign_id The UUID of the Ad Campaign
|
|
861
|
+
* @param params Optional query parameters
|
|
862
|
+
* @returns A response object with data (funding instruments)
|
|
863
|
+
*/
|
|
864
|
+
static listCampaignFundingInstruments<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
829
865
|
}
|
|
830
866
|
|
|
831
867
|
declare class Communities {
|