@zernio/node 0.2.121 → 0.2.123
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/README.md +8 -0
- package/dist/index.d.mts +409 -22
- package/dist/index.d.ts +409 -22
- package/dist/index.js +56 -0
- package/dist/index.mjs +56 -0
- package/package.json +1 -1
- package/src/client.ts +16 -0
- package/src/generated/sdk.gen.ts +181 -15
- package/src/generated/types.gen.ts +426 -21
package/dist/index.js
CHANGED
|
@@ -1909,6 +1909,54 @@ var listConversionDestinations = (options) => {
|
|
|
1909
1909
|
url: "/v1/accounts/{accountId}/conversion-destinations"
|
|
1910
1910
|
});
|
|
1911
1911
|
};
|
|
1912
|
+
var createConversionDestination = (options) => {
|
|
1913
|
+
return (options?.client ?? client).post({
|
|
1914
|
+
...options,
|
|
1915
|
+
url: "/v1/accounts/{accountId}/conversion-destinations"
|
|
1916
|
+
});
|
|
1917
|
+
};
|
|
1918
|
+
var getConversionDestination = (options) => {
|
|
1919
|
+
return (options?.client ?? client).get({
|
|
1920
|
+
...options,
|
|
1921
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}"
|
|
1922
|
+
});
|
|
1923
|
+
};
|
|
1924
|
+
var updateConversionDestination = (options) => {
|
|
1925
|
+
return (options?.client ?? client).patch({
|
|
1926
|
+
...options,
|
|
1927
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}"
|
|
1928
|
+
});
|
|
1929
|
+
};
|
|
1930
|
+
var deleteConversionDestination = (options) => {
|
|
1931
|
+
return (options?.client ?? client).delete({
|
|
1932
|
+
...options,
|
|
1933
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}"
|
|
1934
|
+
});
|
|
1935
|
+
};
|
|
1936
|
+
var listConversionAssociations = (options) => {
|
|
1937
|
+
return (options?.client ?? client).get({
|
|
1938
|
+
...options,
|
|
1939
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations"
|
|
1940
|
+
});
|
|
1941
|
+
};
|
|
1942
|
+
var addConversionAssociations = (options) => {
|
|
1943
|
+
return (options?.client ?? client).post({
|
|
1944
|
+
...options,
|
|
1945
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations"
|
|
1946
|
+
});
|
|
1947
|
+
};
|
|
1948
|
+
var removeConversionAssociations = (options) => {
|
|
1949
|
+
return (options?.client ?? client).delete({
|
|
1950
|
+
...options,
|
|
1951
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations"
|
|
1952
|
+
});
|
|
1953
|
+
};
|
|
1954
|
+
var getConversionMetrics = (options) => {
|
|
1955
|
+
return (options?.client ?? client).get({
|
|
1956
|
+
...options,
|
|
1957
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics"
|
|
1958
|
+
});
|
|
1959
|
+
};
|
|
1912
1960
|
var sendWhatsAppConversion = (options) => {
|
|
1913
1961
|
return (options?.client ?? client).post({
|
|
1914
1962
|
...options,
|
|
@@ -2479,6 +2527,14 @@ var Zernio = class {
|
|
|
2479
2527
|
searchAdTargetingLocations,
|
|
2480
2528
|
sendConversions,
|
|
2481
2529
|
listConversionDestinations,
|
|
2530
|
+
createConversionDestination,
|
|
2531
|
+
getConversionDestination,
|
|
2532
|
+
updateConversionDestination,
|
|
2533
|
+
deleteConversionDestination,
|
|
2534
|
+
listConversionAssociations,
|
|
2535
|
+
addConversionAssociations,
|
|
2536
|
+
removeConversionAssociations,
|
|
2537
|
+
getConversionMetrics,
|
|
2482
2538
|
createCtwaAd
|
|
2483
2539
|
};
|
|
2484
2540
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1878,6 +1878,54 @@ var listConversionDestinations = (options) => {
|
|
|
1878
1878
|
url: "/v1/accounts/{accountId}/conversion-destinations"
|
|
1879
1879
|
});
|
|
1880
1880
|
};
|
|
1881
|
+
var createConversionDestination = (options) => {
|
|
1882
|
+
return (options?.client ?? client).post({
|
|
1883
|
+
...options,
|
|
1884
|
+
url: "/v1/accounts/{accountId}/conversion-destinations"
|
|
1885
|
+
});
|
|
1886
|
+
};
|
|
1887
|
+
var getConversionDestination = (options) => {
|
|
1888
|
+
return (options?.client ?? client).get({
|
|
1889
|
+
...options,
|
|
1890
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}"
|
|
1891
|
+
});
|
|
1892
|
+
};
|
|
1893
|
+
var updateConversionDestination = (options) => {
|
|
1894
|
+
return (options?.client ?? client).patch({
|
|
1895
|
+
...options,
|
|
1896
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}"
|
|
1897
|
+
});
|
|
1898
|
+
};
|
|
1899
|
+
var deleteConversionDestination = (options) => {
|
|
1900
|
+
return (options?.client ?? client).delete({
|
|
1901
|
+
...options,
|
|
1902
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}"
|
|
1903
|
+
});
|
|
1904
|
+
};
|
|
1905
|
+
var listConversionAssociations = (options) => {
|
|
1906
|
+
return (options?.client ?? client).get({
|
|
1907
|
+
...options,
|
|
1908
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations"
|
|
1909
|
+
});
|
|
1910
|
+
};
|
|
1911
|
+
var addConversionAssociations = (options) => {
|
|
1912
|
+
return (options?.client ?? client).post({
|
|
1913
|
+
...options,
|
|
1914
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations"
|
|
1915
|
+
});
|
|
1916
|
+
};
|
|
1917
|
+
var removeConversionAssociations = (options) => {
|
|
1918
|
+
return (options?.client ?? client).delete({
|
|
1919
|
+
...options,
|
|
1920
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations"
|
|
1921
|
+
});
|
|
1922
|
+
};
|
|
1923
|
+
var getConversionMetrics = (options) => {
|
|
1924
|
+
return (options?.client ?? client).get({
|
|
1925
|
+
...options,
|
|
1926
|
+
url: "/v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics"
|
|
1927
|
+
});
|
|
1928
|
+
};
|
|
1881
1929
|
var sendWhatsAppConversion = (options) => {
|
|
1882
1930
|
return (options?.client ?? client).post({
|
|
1883
1931
|
...options,
|
|
@@ -2448,6 +2496,14 @@ var Zernio = class {
|
|
|
2448
2496
|
searchAdTargetingLocations,
|
|
2449
2497
|
sendConversions,
|
|
2450
2498
|
listConversionDestinations,
|
|
2499
|
+
createConversionDestination,
|
|
2500
|
+
getConversionDestination,
|
|
2501
|
+
updateConversionDestination,
|
|
2502
|
+
deleteConversionDestination,
|
|
2503
|
+
listConversionAssociations,
|
|
2504
|
+
addConversionAssociations,
|
|
2505
|
+
removeConversionAssociations,
|
|
2506
|
+
getConversionMetrics,
|
|
2451
2507
|
createCtwaAd
|
|
2452
2508
|
};
|
|
2453
2509
|
/**
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
client,
|
|
3
3
|
activateSequence,
|
|
4
4
|
addBroadcastRecipients,
|
|
5
|
+
addConversionAssociations,
|
|
5
6
|
addMessageReaction,
|
|
6
7
|
addUsersToAdAudience,
|
|
7
8
|
addWhatsAppGroupParticipants,
|
|
@@ -26,6 +27,7 @@ import {
|
|
|
26
27
|
createBroadcast,
|
|
27
28
|
createCommentAutomation,
|
|
28
29
|
createContact,
|
|
30
|
+
createConversionDestination,
|
|
29
31
|
createCtwaAd,
|
|
30
32
|
createCustomField,
|
|
31
33
|
createGoogleBusinessMedia,
|
|
@@ -51,6 +53,7 @@ import {
|
|
|
51
53
|
deleteBroadcast,
|
|
52
54
|
deleteCommentAutomation,
|
|
53
55
|
deleteContact,
|
|
56
|
+
deleteConversionDestination,
|
|
54
57
|
deleteCustomField,
|
|
55
58
|
deleteGoogleBusinessMedia,
|
|
56
59
|
deleteGoogleBusinessPlaceAction,
|
|
@@ -89,6 +92,8 @@ import {
|
|
|
89
92
|
getContact,
|
|
90
93
|
getContactChannels,
|
|
91
94
|
getContentDecay,
|
|
95
|
+
getConversionDestination,
|
|
96
|
+
getConversionMetrics,
|
|
92
97
|
getDailyMetrics,
|
|
93
98
|
getDiscordChannels,
|
|
94
99
|
getDiscordSettings,
|
|
@@ -167,6 +172,7 @@ import {
|
|
|
167
172
|
listCommentAutomationLogs,
|
|
168
173
|
listCommentAutomations,
|
|
169
174
|
listContacts,
|
|
175
|
+
listConversionAssociations,
|
|
170
176
|
listConversionDestinations,
|
|
171
177
|
listCustomFields,
|
|
172
178
|
listFacebookPages,
|
|
@@ -197,6 +203,7 @@ import {
|
|
|
197
203
|
rejectWhatsAppGroupJoinRequests,
|
|
198
204
|
releaseWhatsAppPhoneNumber,
|
|
199
205
|
removeBookmark,
|
|
206
|
+
removeConversionAssociations,
|
|
200
207
|
removeMessageReaction,
|
|
201
208
|
removeWhatsAppGroupParticipants,
|
|
202
209
|
replyToInboxPost,
|
|
@@ -240,6 +247,7 @@ import {
|
|
|
240
247
|
updateBroadcast,
|
|
241
248
|
updateCommentAutomation,
|
|
242
249
|
updateContact,
|
|
250
|
+
updateConversionDestination,
|
|
243
251
|
updateCustomField,
|
|
244
252
|
updateDiscordSettings,
|
|
245
253
|
updateFacebookPage,
|
|
@@ -827,6 +835,14 @@ export class Zernio {
|
|
|
827
835
|
searchAdTargetingLocations: searchAdTargetingLocations,
|
|
828
836
|
sendConversions: sendConversions,
|
|
829
837
|
listConversionDestinations: listConversionDestinations,
|
|
838
|
+
createConversionDestination: createConversionDestination,
|
|
839
|
+
getConversionDestination: getConversionDestination,
|
|
840
|
+
updateConversionDestination: updateConversionDestination,
|
|
841
|
+
deleteConversionDestination: deleteConversionDestination,
|
|
842
|
+
listConversionAssociations: listConversionAssociations,
|
|
843
|
+
addConversionAssociations: addConversionAssociations,
|
|
844
|
+
removeConversionAssociations: removeConversionAssociations,
|
|
845
|
+
getConversionMetrics: getConversionMetrics,
|
|
830
846
|
createCtwaAd: createCtwaAd,
|
|
831
847
|
};
|
|
832
848
|
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeChannelInsightsData, GetYouTubeChannelInsightsError, GetYouTubeChannelInsightsResponse, GetLinkedInOrgAggregateAnalyticsData, GetLinkedInOrgAggregateAnalyticsError, GetLinkedInOrgAggregateAnalyticsResponse, GetTikTokAccountInsightsData, GetTikTokAccountInsightsError, GetTikTokAccountInsightsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetFacebookPageInsightsData, GetFacebookPageInsightsError, GetFacebookPageInsightsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramFollowerHistoryData, GetInstagramFollowerHistoryError, GetInstagramFollowerHistoryResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetYouTubeDemographicsData, GetYouTubeDemographicsError, GetYouTubeDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, GetGoogleBusinessPerformanceData, GetGoogleBusinessPerformanceError, GetGoogleBusinessPerformanceResponse, GetGoogleBusinessSearchKeywordsData, GetGoogleBusinessSearchKeywordsError, GetGoogleBusinessSearchKeywordsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetXApiPricingError, GetXApiPricingResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, EditPostData, EditPostError, EditPostResponse, UpdatePostMetadataData, UpdatePostMetadataError, UpdatePostMetadataResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ConnectAdsData, ConnectAdsError, ConnectAdsResponse, ConfigureTikTokAdsBrandIdentityData, ConfigureTikTokAdsBrandIdentityError, ConfigureTikTokAdsBrandIdentityResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, UpdateGoogleBusinessPlaceActionData, UpdateGoogleBusinessPlaceActionError, UpdateGoogleBusinessPlaceActionResponse, GetGoogleBusinessServicesData, GetGoogleBusinessServicesError, GetGoogleBusinessServicesResponse, UpdateGoogleBusinessServicesData, UpdateGoogleBusinessServicesError, UpdateGoogleBusinessServicesResponse, BatchGetGoogleBusinessReviewsData, BatchGetGoogleBusinessReviewsError, BatchGetGoogleBusinessReviewsResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, ListWhatsAppPhoneNumbersData, ListWhatsAppPhoneNumbersError, ListWhatsAppPhoneNumbersResponse, CompleteWhatsAppPhoneSelectionData, CompleteWhatsAppPhoneSelectionError, CompleteWhatsAppPhoneSelectionResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetYoutubePlaylistsData, GetYoutubePlaylistsError, GetYoutubePlaylistsResponse, UpdateYoutubeDefaultPlaylistData, UpdateYoutubeDefaultPlaylistError, UpdateYoutubeDefaultPlaylistResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, GetDiscordSettingsData, GetDiscordSettingsError, GetDiscordSettingsResponse, UpdateDiscordSettingsData, UpdateDiscordSettingsError, UpdateDiscordSettingsResponse, GetDiscordChannelsData, GetDiscordChannelsError, GetDiscordChannelsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, ListLogsData, ListLogsError, ListLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, CreateInboxConversationData, CreateInboxConversationError, CreateInboxConversationResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, DeleteInboxMessageData, DeleteInboxMessageError, DeleteInboxMessageResponse, SendTypingIndicatorData, SendTypingIndicatorError, SendTypingIndicatorResponse, AddMessageReactionData, AddMessageReactionError, AddMessageReactionResponse, RemoveMessageReactionData, RemoveMessageReactionError, RemoveMessageReactionResponse, UploadMediaDirectData, UploadMediaDirectError, UploadMediaDirectResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListWhatsAppGroupChatsData, ListWhatsAppGroupChatsError, ListWhatsAppGroupChatsResponse, CreateWhatsAppGroupChatData, CreateWhatsAppGroupChatError, CreateWhatsAppGroupChatResponse, GetWhatsAppGroupChatData, GetWhatsAppGroupChatError, GetWhatsAppGroupChatResponse, UpdateWhatsAppGroupChatData, UpdateWhatsAppGroupChatError, UpdateWhatsAppGroupChatResponse, DeleteWhatsAppGroupChatData, DeleteWhatsAppGroupChatError, DeleteWhatsAppGroupChatResponse, AddWhatsAppGroupParticipantsData, AddWhatsAppGroupParticipantsError, AddWhatsAppGroupParticipantsResponse, RemoveWhatsAppGroupParticipantsData, RemoveWhatsAppGroupParticipantsError, RemoveWhatsAppGroupParticipantsResponse, CreateWhatsAppGroupInviteLinkData, CreateWhatsAppGroupInviteLinkError, CreateWhatsAppGroupInviteLinkResponse, ListWhatsAppGroupJoinRequestsData, ListWhatsAppGroupJoinRequestsError, ListWhatsAppGroupJoinRequestsResponse, ApproveWhatsAppGroupJoinRequestsData, ApproveWhatsAppGroupJoinRequestsError, ApproveWhatsAppGroupJoinRequestsResponse, RejectWhatsAppGroupJoinRequestsData, RejectWhatsAppGroupJoinRequestsError, RejectWhatsAppGroupJoinRequestsResponse, ListWhatsAppFlowsData, ListWhatsAppFlowsError, ListWhatsAppFlowsResponse, CreateWhatsAppFlowData, CreateWhatsAppFlowError, CreateWhatsAppFlowResponse, GetWhatsAppFlowData, GetWhatsAppFlowError, GetWhatsAppFlowResponse, UpdateWhatsAppFlowData, UpdateWhatsAppFlowError, UpdateWhatsAppFlowResponse, DeleteWhatsAppFlowData, DeleteWhatsAppFlowError, DeleteWhatsAppFlowResponse, GetWhatsAppFlowJsonData, GetWhatsAppFlowJsonError, GetWhatsAppFlowJsonResponse, UploadWhatsAppFlowJsonData, UploadWhatsAppFlowJsonError, UploadWhatsAppFlowJsonResponse, PublishWhatsAppFlowData, PublishWhatsAppFlowError, PublishWhatsAppFlowResponse, DeprecateWhatsAppFlowData, DeprecateWhatsAppFlowError, DeprecateWhatsAppFlowResponse, SendWhatsAppFlowMessageData, SendWhatsAppFlowMessageError, SendWhatsAppFlowMessageResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse, ListAdsData, ListAdsError, ListAdsResponse, ListAdCampaignsData, ListAdCampaignsError, ListAdCampaignsResponse, UpdateAdCampaignStatusData, UpdateAdCampaignStatusError, UpdateAdCampaignStatusResponse, UpdateAdCampaignData, UpdateAdCampaignError, UpdateAdCampaignResponse, DeleteAdCampaignData, DeleteAdCampaignError, DeleteAdCampaignResponse, BulkUpdateAdCampaignStatusData, BulkUpdateAdCampaignStatusError, BulkUpdateAdCampaignStatusResponse, DuplicateAdCampaignData, DuplicateAdCampaignError, DuplicateAdCampaignResponse, UpdateAdSetData, UpdateAdSetError, UpdateAdSetResponse, UpdateAdSetStatusData, UpdateAdSetStatusError, UpdateAdSetStatusResponse, GetAdTreeData, GetAdTreeError, GetAdTreeResponse, GetAdData, GetAdError, GetAdResponse, UpdateAdData, UpdateAdError, UpdateAdResponse, DeleteAdData, DeleteAdError, DeleteAdResponse, GetAdAnalyticsData, GetAdAnalyticsError, GetAdAnalyticsResponse, GetAdCommentsData, GetAdCommentsError, GetAdCommentsResponse, ListAdsBusinessCentersData, ListAdsBusinessCentersError, ListAdsBusinessCentersResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, SearchAdTargetingLocationsData, SearchAdTargetingLocationsError, SearchAdTargetingLocationsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse, SendConversionsData, SendConversionsError, SendConversionsResponse, ListConversionDestinationsData, ListConversionDestinationsError, ListConversionDestinationsResponse, SendWhatsAppConversionData, SendWhatsAppConversionError, SendWhatsAppConversionResponse, CreateCtwaAdData, CreateCtwaAdError, CreateCtwaAdResponse } from './types.gen';
|
|
4
|
+
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeChannelInsightsData, GetYouTubeChannelInsightsError, GetYouTubeChannelInsightsResponse, GetLinkedInOrgAggregateAnalyticsData, GetLinkedInOrgAggregateAnalyticsError, GetLinkedInOrgAggregateAnalyticsResponse, GetTikTokAccountInsightsData, GetTikTokAccountInsightsError, GetTikTokAccountInsightsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetFacebookPageInsightsData, GetFacebookPageInsightsError, GetFacebookPageInsightsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramFollowerHistoryData, GetInstagramFollowerHistoryError, GetInstagramFollowerHistoryResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetYouTubeDemographicsData, GetYouTubeDemographicsError, GetYouTubeDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, GetGoogleBusinessPerformanceData, GetGoogleBusinessPerformanceError, GetGoogleBusinessPerformanceResponse, GetGoogleBusinessSearchKeywordsData, GetGoogleBusinessSearchKeywordsError, GetGoogleBusinessSearchKeywordsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetXApiPricingError, GetXApiPricingResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, EditPostData, EditPostError, EditPostResponse, UpdatePostMetadataData, UpdatePostMetadataError, UpdatePostMetadataResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ConnectAdsData, ConnectAdsError, ConnectAdsResponse, ConfigureTikTokAdsBrandIdentityData, ConfigureTikTokAdsBrandIdentityError, ConfigureTikTokAdsBrandIdentityResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, UpdateGoogleBusinessPlaceActionData, UpdateGoogleBusinessPlaceActionError, UpdateGoogleBusinessPlaceActionResponse, GetGoogleBusinessServicesData, GetGoogleBusinessServicesError, GetGoogleBusinessServicesResponse, UpdateGoogleBusinessServicesData, UpdateGoogleBusinessServicesError, UpdateGoogleBusinessServicesResponse, BatchGetGoogleBusinessReviewsData, BatchGetGoogleBusinessReviewsError, BatchGetGoogleBusinessReviewsResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, ListWhatsAppPhoneNumbersData, ListWhatsAppPhoneNumbersError, ListWhatsAppPhoneNumbersResponse, CompleteWhatsAppPhoneSelectionData, CompleteWhatsAppPhoneSelectionError, CompleteWhatsAppPhoneSelectionResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetYoutubePlaylistsData, GetYoutubePlaylistsError, GetYoutubePlaylistsResponse, UpdateYoutubeDefaultPlaylistData, UpdateYoutubeDefaultPlaylistError, UpdateYoutubeDefaultPlaylistResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, GetDiscordSettingsData, GetDiscordSettingsError, GetDiscordSettingsResponse, UpdateDiscordSettingsData, UpdateDiscordSettingsError, UpdateDiscordSettingsResponse, GetDiscordChannelsData, GetDiscordChannelsError, GetDiscordChannelsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, ListLogsData, ListLogsError, ListLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, CreateInboxConversationData, CreateInboxConversationError, CreateInboxConversationResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, DeleteInboxMessageData, DeleteInboxMessageError, DeleteInboxMessageResponse, SendTypingIndicatorData, SendTypingIndicatorError, SendTypingIndicatorResponse, AddMessageReactionData, AddMessageReactionError, AddMessageReactionResponse, RemoveMessageReactionData, RemoveMessageReactionError, RemoveMessageReactionResponse, UploadMediaDirectData, UploadMediaDirectError, UploadMediaDirectResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListWhatsAppGroupChatsData, ListWhatsAppGroupChatsError, ListWhatsAppGroupChatsResponse, CreateWhatsAppGroupChatData, CreateWhatsAppGroupChatError, CreateWhatsAppGroupChatResponse, GetWhatsAppGroupChatData, GetWhatsAppGroupChatError, GetWhatsAppGroupChatResponse, UpdateWhatsAppGroupChatData, UpdateWhatsAppGroupChatError, UpdateWhatsAppGroupChatResponse, DeleteWhatsAppGroupChatData, DeleteWhatsAppGroupChatError, DeleteWhatsAppGroupChatResponse, AddWhatsAppGroupParticipantsData, AddWhatsAppGroupParticipantsError, AddWhatsAppGroupParticipantsResponse, RemoveWhatsAppGroupParticipantsData, RemoveWhatsAppGroupParticipantsError, RemoveWhatsAppGroupParticipantsResponse, CreateWhatsAppGroupInviteLinkData, CreateWhatsAppGroupInviteLinkError, CreateWhatsAppGroupInviteLinkResponse, ListWhatsAppGroupJoinRequestsData, ListWhatsAppGroupJoinRequestsError, ListWhatsAppGroupJoinRequestsResponse, ApproveWhatsAppGroupJoinRequestsData, ApproveWhatsAppGroupJoinRequestsError, ApproveWhatsAppGroupJoinRequestsResponse, RejectWhatsAppGroupJoinRequestsData, RejectWhatsAppGroupJoinRequestsError, RejectWhatsAppGroupJoinRequestsResponse, ListWhatsAppFlowsData, ListWhatsAppFlowsError, ListWhatsAppFlowsResponse, CreateWhatsAppFlowData, CreateWhatsAppFlowError, CreateWhatsAppFlowResponse, GetWhatsAppFlowData, GetWhatsAppFlowError, GetWhatsAppFlowResponse, UpdateWhatsAppFlowData, UpdateWhatsAppFlowError, UpdateWhatsAppFlowResponse, DeleteWhatsAppFlowData, DeleteWhatsAppFlowError, DeleteWhatsAppFlowResponse, GetWhatsAppFlowJsonData, GetWhatsAppFlowJsonError, GetWhatsAppFlowJsonResponse, UploadWhatsAppFlowJsonData, UploadWhatsAppFlowJsonError, UploadWhatsAppFlowJsonResponse, PublishWhatsAppFlowData, PublishWhatsAppFlowError, PublishWhatsAppFlowResponse, DeprecateWhatsAppFlowData, DeprecateWhatsAppFlowError, DeprecateWhatsAppFlowResponse, SendWhatsAppFlowMessageData, SendWhatsAppFlowMessageError, SendWhatsAppFlowMessageResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse, ListAdsData, ListAdsError, ListAdsResponse, ListAdCampaignsData, ListAdCampaignsError, ListAdCampaignsResponse, UpdateAdCampaignStatusData, UpdateAdCampaignStatusError, UpdateAdCampaignStatusResponse, UpdateAdCampaignData, UpdateAdCampaignError, UpdateAdCampaignResponse, DeleteAdCampaignData, DeleteAdCampaignError, DeleteAdCampaignResponse, BulkUpdateAdCampaignStatusData, BulkUpdateAdCampaignStatusError, BulkUpdateAdCampaignStatusResponse, DuplicateAdCampaignData, DuplicateAdCampaignError, DuplicateAdCampaignResponse, UpdateAdSetData, UpdateAdSetError, UpdateAdSetResponse, UpdateAdSetStatusData, UpdateAdSetStatusError, UpdateAdSetStatusResponse, GetAdTreeData, GetAdTreeError, GetAdTreeResponse, GetAdData, GetAdError, GetAdResponse, UpdateAdData, UpdateAdError, UpdateAdResponse, DeleteAdData, DeleteAdError, DeleteAdResponse, GetAdAnalyticsData, GetAdAnalyticsError, GetAdAnalyticsResponse, GetAdCommentsData, GetAdCommentsError, GetAdCommentsResponse, ListAdsBusinessCentersData, ListAdsBusinessCentersError, ListAdsBusinessCentersResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, SearchAdTargetingLocationsData, SearchAdTargetingLocationsError, SearchAdTargetingLocationsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse, SendConversionsData, SendConversionsError, SendConversionsResponse, ListConversionDestinationsData, ListConversionDestinationsError, ListConversionDestinationsResponse, CreateConversionDestinationData, CreateConversionDestinationError, CreateConversionDestinationResponse, GetConversionDestinationData, GetConversionDestinationError, GetConversionDestinationResponse, UpdateConversionDestinationData, UpdateConversionDestinationError, UpdateConversionDestinationResponse, DeleteConversionDestinationData, DeleteConversionDestinationError, DeleteConversionDestinationResponse, ListConversionAssociationsData, ListConversionAssociationsError, ListConversionAssociationsResponse, AddConversionAssociationsData, AddConversionAssociationsError, AddConversionAssociationsResponse, RemoveConversionAssociationsData, RemoveConversionAssociationsError, RemoveConversionAssociationsResponse, GetConversionMetricsData, GetConversionMetricsError, GetConversionMetricsResponse, SendWhatsAppConversionData, SendWhatsAppConversionError, SendWhatsAppConversionResponse, CreateCtwaAdData, CreateCtwaAdError, CreateCtwaAdResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -3630,29 +3630,49 @@ export const addUsersToAdAudience = <ThrowOnError extends boolean = false>(optio
|
|
|
3630
3630
|
* Send conversion events to an ad platform
|
|
3631
3631
|
* Relay one or more conversion events to the target ad platform's native
|
|
3632
3632
|
* Conversions API. Supported platforms: Meta (metaads) via Graph API,
|
|
3633
|
-
* Google Ads (googleads) via Data Manager API `ingestEvents
|
|
3633
|
+
* Google Ads (googleads) via Data Manager API `ingestEvents`, LinkedIn
|
|
3634
|
+
* (linkedinads) via `/rest/conversionEvents`.
|
|
3634
3635
|
*
|
|
3635
3636
|
* Platform is inferred from the provided `accountId`. `destinationId`
|
|
3636
3637
|
* semantics differ per platform:
|
|
3637
3638
|
* - Meta: pixel (dataset) ID, e.g. "123456789012345"
|
|
3638
3639
|
* - Google: conversion action resource name, e.g.
|
|
3639
3640
|
* "customers/1234567890/conversionActions/987654321"
|
|
3641
|
+
* - LinkedIn: conversion rule ID or URN, e.g. "104012" or
|
|
3642
|
+
* "urn:lla:llaPartnerConversion:104012"
|
|
3640
3643
|
*
|
|
3641
3644
|
* Callers can list valid destinations via
|
|
3642
3645
|
* `GET /v1/accounts/{accountId}/conversion-destinations`.
|
|
3643
3646
|
*
|
|
3644
3647
|
* All PII (email, phone, names, external IDs) is hashed with SHA-256
|
|
3645
3648
|
* server-side per each platform's normalization spec (including Google's
|
|
3646
|
-
* Gmail-specific dot/plus-suffix stripping). Send plaintext.
|
|
3649
|
+
* Gmail-specific dot/plus-suffix stripping). Send plaintext. Note:
|
|
3650
|
+
* LinkedIn `externalIds` are passed through as plaintext per LinkedIn's
|
|
3651
|
+
* spec — only emails and phones are hashed.
|
|
3647
3652
|
*
|
|
3648
|
-
* Requires the Ads add-on.
|
|
3653
|
+
* Requires the Ads add-on. For LinkedIn, the connected account must
|
|
3654
|
+
* have been authorized after the Conversions API rollout (i.e. the
|
|
3655
|
+
* OAuth grant must include `rw_conversions`); older accounts must
|
|
3656
|
+
* reconnect.
|
|
3649
3657
|
*
|
|
3650
3658
|
* Batching: Meta caps at 1000 events per request and rejects the entire
|
|
3651
|
-
* batch if any event is malformed. Google caps at 2000.
|
|
3652
|
-
*
|
|
3659
|
+
* batch if any event is malformed. Google caps at 2000. LinkedIn caps
|
|
3660
|
+
* at 5000 and is also all-or-nothing per chunk. All three are handled
|
|
3661
|
+
* automatically.
|
|
3653
3662
|
*
|
|
3654
|
-
* Dedup: pass a stable `eventId` on every event. Meta
|
|
3655
|
-
* against pixel events; Google
|
|
3663
|
+
* Dedup: pass a stable `eventId` on every event. Meta and LinkedIn use
|
|
3664
|
+
* it to dedupe against browser-side pixel/Insight Tag events; Google
|
|
3665
|
+
* maps it to transactionId.
|
|
3666
|
+
*
|
|
3667
|
+
* Per-platform `eventName` semantics:
|
|
3668
|
+
* - Meta: free-form. Standard names (Purchase, Lead, ...) match Meta's
|
|
3669
|
+
* built-in events; custom strings are accepted.
|
|
3670
|
+
* - Google: ignored — the conversion action's category determines the
|
|
3671
|
+
* event type. Send the standard name closest to your action for
|
|
3672
|
+
* documentation, but the platform will not branch on it.
|
|
3673
|
+
* - LinkedIn: ignored — the conversion rule's `type` (LEAD, PURCHASE,
|
|
3674
|
+
* etc.) is locked to the destination at rule-creation time. Send the
|
|
3675
|
+
* standard name for documentation; LinkedIn does not branch on it.
|
|
3656
3676
|
*
|
|
3657
3677
|
*/
|
|
3658
3678
|
export const sendConversions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendConversionsData, ThrowOnError>) => {
|
|
@@ -3664,14 +3684,20 @@ export const sendConversions = <ThrowOnError extends boolean = false>(options: O
|
|
|
3664
3684
|
|
|
3665
3685
|
/**
|
|
3666
3686
|
* List destinations for the Conversions API
|
|
3667
|
-
* Returns the list of pixels (Meta)
|
|
3668
|
-
* accessible to the connected ads account.
|
|
3669
|
-
* `destinationId` when posting to
|
|
3687
|
+
* Returns the list of pixels (Meta), conversion actions (Google), or
|
|
3688
|
+
* conversion rules (LinkedIn) accessible to the connected ads account.
|
|
3689
|
+
* Use the returned `id` as `destinationId` when posting to
|
|
3690
|
+
* `POST /v1/ads/conversions`.
|
|
3691
|
+
*
|
|
3692
|
+
* For Google and LinkedIn, each destination's `type` reflects the
|
|
3693
|
+
* conversion type (PURCHASE, LEAD, SIGN_UP, etc.) — the event type is
|
|
3694
|
+
* locked to the destination. For Meta, `type` is absent: pixels accept
|
|
3695
|
+
* any event name per request.
|
|
3670
3696
|
*
|
|
3671
|
-
* For
|
|
3672
|
-
*
|
|
3673
|
-
*
|
|
3674
|
-
*
|
|
3697
|
+
* For LinkedIn, destinations are returned across every sponsored ad
|
|
3698
|
+
* account the connected token can access; the `adAccountId` field on
|
|
3699
|
+
* each destination identifies the parent ad account and is required for
|
|
3700
|
+
* subsequent CRUD calls (update, delete, associations, metrics).
|
|
3675
3701
|
*
|
|
3676
3702
|
*/
|
|
3677
3703
|
export const listConversionDestinations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListConversionDestinationsData, ThrowOnError>) => {
|
|
@@ -3681,6 +3707,146 @@ export const listConversionDestinations = <ThrowOnError extends boolean = false>
|
|
|
3681
3707
|
});
|
|
3682
3708
|
};
|
|
3683
3709
|
|
|
3710
|
+
/**
|
|
3711
|
+
* Create a conversion destination (LinkedIn)
|
|
3712
|
+
* Create a new conversion rule on the platform. LinkedIn-only today;
|
|
3713
|
+
* other platforms manage destinations in their own UIs and return 405.
|
|
3714
|
+
*
|
|
3715
|
+
* For LinkedIn, the rule is created with `conversionMethod=CONVERSIONS_API`
|
|
3716
|
+
* and (by default) auto-associated with all of the ad account's campaigns
|
|
3717
|
+
* via `autoAssociationType=ALL_CAMPAIGNS`. Pass `autoAssociationType: NONE`
|
|
3718
|
+
* to opt out and manage associations explicitly via the associations
|
|
3719
|
+
* endpoints below.
|
|
3720
|
+
*
|
|
3721
|
+
* 365-day attribution windows are only valid for `SUBMIT_APPLICATION`,
|
|
3722
|
+
* `PURCHASE`, `ADD_TO_CART`, `QUALIFIED_LEAD`, and `LEAD` rule types;
|
|
3723
|
+
* the API rejects other combinations locally.
|
|
3724
|
+
*
|
|
3725
|
+
*/
|
|
3726
|
+
export const createConversionDestination = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateConversionDestinationData, ThrowOnError>) => {
|
|
3727
|
+
return (options?.client ?? client).post<CreateConversionDestinationResponse, CreateConversionDestinationError, ThrowOnError>({
|
|
3728
|
+
...options,
|
|
3729
|
+
url: '/v1/accounts/{accountId}/conversion-destinations'
|
|
3730
|
+
});
|
|
3731
|
+
};
|
|
3732
|
+
|
|
3733
|
+
/**
|
|
3734
|
+
* Fetch a single conversion destination
|
|
3735
|
+
* LinkedIn-only today. Returns the full destination record for one
|
|
3736
|
+
* conversion rule. The `adAccountId` query parameter is required because
|
|
3737
|
+
* LinkedIn rules are scoped to a sponsored ad account.
|
|
3738
|
+
*
|
|
3739
|
+
*/
|
|
3740
|
+
export const getConversionDestination = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetConversionDestinationData, ThrowOnError>) => {
|
|
3741
|
+
return (options?.client ?? client).get<GetConversionDestinationResponse, GetConversionDestinationError, ThrowOnError>({
|
|
3742
|
+
...options,
|
|
3743
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}'
|
|
3744
|
+
});
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Update a conversion destination
|
|
3749
|
+
* Partial-update a conversion rule. LinkedIn-only today. Whitelisted
|
|
3750
|
+
* fields: `name`, `enabled`, attribution windows, `valueType`, `value`,
|
|
3751
|
+
* `attributionType`. The rule's `type` and parent ad account are
|
|
3752
|
+
* intentionally not exposed for update — recreate the rule if those
|
|
3753
|
+
* need to change.
|
|
3754
|
+
*
|
|
3755
|
+
*/
|
|
3756
|
+
export const updateConversionDestination = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateConversionDestinationData, ThrowOnError>) => {
|
|
3757
|
+
return (options?.client ?? client).patch<UpdateConversionDestinationResponse, UpdateConversionDestinationError, ThrowOnError>({
|
|
3758
|
+
...options,
|
|
3759
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}'
|
|
3760
|
+
});
|
|
3761
|
+
};
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* Soft-delete a conversion destination
|
|
3765
|
+
* LinkedIn-only today. LinkedIn does not expose hard-delete on conversion
|
|
3766
|
+
* rules — what their UI calls "delete" is the same `enabled: false` flip
|
|
3767
|
+
* we apply here. The rule remains fetchable via GET with
|
|
3768
|
+
* `status: 'inactive'`; the unified discovery endpoint hides it by
|
|
3769
|
+
* default.
|
|
3770
|
+
*
|
|
3771
|
+
* `adAccountId` may be passed as a query parameter (recommended) or as
|
|
3772
|
+
* a JSON body field for clients that can send DELETE bodies.
|
|
3773
|
+
*
|
|
3774
|
+
*/
|
|
3775
|
+
export const deleteConversionDestination = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteConversionDestinationData, ThrowOnError>) => {
|
|
3776
|
+
return (options?.client ?? client).delete<DeleteConversionDestinationResponse, DeleteConversionDestinationError, ThrowOnError>({
|
|
3777
|
+
...options,
|
|
3778
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}'
|
|
3779
|
+
});
|
|
3780
|
+
};
|
|
3781
|
+
|
|
3782
|
+
/**
|
|
3783
|
+
* List campaigns associated with a conversion destination
|
|
3784
|
+
* LinkedIn-only today. Returns the campaigns currently associated with
|
|
3785
|
+
* this conversion rule. Note that auto-association on rule creation
|
|
3786
|
+
* runs once at create time; campaigns created after the rule still need
|
|
3787
|
+
* explicit association.
|
|
3788
|
+
*
|
|
3789
|
+
*/
|
|
3790
|
+
export const listConversionAssociations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListConversionAssociationsData, ThrowOnError>) => {
|
|
3791
|
+
return (options?.client ?? client).get<ListConversionAssociationsResponse, ListConversionAssociationsError, ThrowOnError>({
|
|
3792
|
+
...options,
|
|
3793
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations'
|
|
3794
|
+
});
|
|
3795
|
+
};
|
|
3796
|
+
|
|
3797
|
+
/**
|
|
3798
|
+
* Associate campaigns with a conversion destination
|
|
3799
|
+
* Associate one or more campaigns with this conversion rule. Returns a
|
|
3800
|
+
* per-campaign success/failure result so callers can retry only the
|
|
3801
|
+
* rows that failed (e.g. wrong campaign type for the rule's objective).
|
|
3802
|
+
*
|
|
3803
|
+
*/
|
|
3804
|
+
export const addConversionAssociations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddConversionAssociationsData, ThrowOnError>) => {
|
|
3805
|
+
return (options?.client ?? client).post<AddConversionAssociationsResponse, AddConversionAssociationsError, ThrowOnError>({
|
|
3806
|
+
...options,
|
|
3807
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations'
|
|
3808
|
+
});
|
|
3809
|
+
};
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* Remove campaign↔conversion associations
|
|
3813
|
+
* Remove one or more campaign associations from this conversion rule.
|
|
3814
|
+
* Accepts `adAccountId` and `campaignIds` either as query parameters
|
|
3815
|
+
* (campaignIds comma-separated) or as a JSON body, for clients that
|
|
3816
|
+
* can't send DELETE bodies.
|
|
3817
|
+
*
|
|
3818
|
+
*/
|
|
3819
|
+
export const removeConversionAssociations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RemoveConversionAssociationsData, ThrowOnError>) => {
|
|
3820
|
+
return (options?.client ?? client).delete<RemoveConversionAssociationsResponse, RemoveConversionAssociationsError, ThrowOnError>({
|
|
3821
|
+
...options,
|
|
3822
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations'
|
|
3823
|
+
});
|
|
3824
|
+
};
|
|
3825
|
+
|
|
3826
|
+
/**
|
|
3827
|
+
* Fetch attribution metrics for a conversion destination
|
|
3828
|
+
* LinkedIn-only today. Returns conversion-attribution metrics
|
|
3829
|
+
* (`externalWebsiteConversions`, `externalWebsitePostClickConversions`,
|
|
3830
|
+
* `externalWebsitePostViewConversions`, `conversionValueInLocalCurrency`,
|
|
3831
|
+
* `qualifiedLeads`, `costInLocalCurrency`) bucketed by date.
|
|
3832
|
+
*
|
|
3833
|
+
* Date-range constraints (passed through from LinkedIn):
|
|
3834
|
+
* - `granularity=DAILY` is retained for ~6 months only
|
|
3835
|
+
* - `granularity=ALL` with a range > 6 months auto-rounds to month boundaries
|
|
3836
|
+
* - `granularity=MONTHLY`/`YEARLY` retains 24 months
|
|
3837
|
+
*
|
|
3838
|
+
* Throttle: LinkedIn caps adAnalytics at 45M metric values per 5-minute
|
|
3839
|
+
* window across the calling token. Single-rule queries are well within
|
|
3840
|
+
* that limit; surfaces as 429 if hit.
|
|
3841
|
+
*
|
|
3842
|
+
*/
|
|
3843
|
+
export const getConversionMetrics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetConversionMetricsData, ThrowOnError>) => {
|
|
3844
|
+
return (options?.client ?? client).get<GetConversionMetricsResponse, GetConversionMetricsError, ThrowOnError>({
|
|
3845
|
+
...options,
|
|
3846
|
+
url: '/v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics'
|
|
3847
|
+
});
|
|
3848
|
+
};
|
|
3849
|
+
|
|
3684
3850
|
/**
|
|
3685
3851
|
* Send WhatsApp conversion event
|
|
3686
3852
|
* Forward a WhatsApp Business Messaging conversion event (`LeadSubmitted`,
|