@postrun/js 3.1.0 → 3.2.0
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/{chunk-BJ6NXBN5.js → chunk-A6DM6I6G.js} +64 -3
- package/dist/chunk-A6DM6I6G.js.map +1 -0
- package/dist/{chunk-DT4DW5LA.js → chunk-PE3ULG66.js} +87 -5
- package/dist/chunk-PE3ULG66.js.map +1 -0
- package/dist/index.cjs +174 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -3
- package/dist/index.d.ts +39 -3
- package/dist/index.js +32 -4
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +62 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +550 -1
- package/dist/query.d.ts +550 -1
- package/dist/query.js +61 -1
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +69 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +83 -1
- package/dist/schemas/index.d.ts +83 -1
- package/dist/schemas/index.js +2 -2
- package/dist/server.cjs +108 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-MxJw6FpT.d.cts → types.gen-K4cuIpk3.d.cts} +529 -6
- package/dist/{types.gen-MxJw6FpT.d.ts → types.gen-K4cuIpk3.d.ts} +529 -6
- package/package.json +2 -1
- package/dist/chunk-BJ6NXBN5.js.map +0 -1
- package/dist/chunk-DT4DW5LA.js.map +0 -1
package/dist/query.d.ts
CHANGED
|
@@ -20795,6 +20795,523 @@ type GoogleGetConversionActionErrors = {
|
|
|
20795
20795
|
};
|
|
20796
20796
|
};
|
|
20797
20797
|
type GoogleGetConversionActionError = GoogleGetConversionActionErrors[keyof GoogleGetConversionActionErrors];
|
|
20798
|
+
type GoogleUpdateConversionActionData = {
|
|
20799
|
+
body?: {
|
|
20800
|
+
/**
|
|
20801
|
+
* A name for the conversion action, unique within the Google Ads account.
|
|
20802
|
+
*/
|
|
20803
|
+
name?: string;
|
|
20804
|
+
/**
|
|
20805
|
+
* The conversion category (e.g. PURCHASE, SIGNUP, SUBMIT_LEAD_FORM) — any member of Google’s ConversionActionCategory.
|
|
20806
|
+
*/
|
|
20807
|
+
category?: 'DEFAULT' | 'PAGE_VIEW' | 'PURCHASE' | 'SIGNUP' | 'DOWNLOAD' | 'ADD_TO_CART' | 'BEGIN_CHECKOUT' | 'SUBSCRIBE_PAID' | 'PHONE_CALL_LEAD' | 'IMPORTED_LEAD' | 'SUBMIT_LEAD_FORM' | 'BOOK_APPOINTMENT' | 'REQUEST_QUOTE' | 'GET_DIRECTIONS' | 'OUTBOUND_CLICK' | 'CONTACT' | 'ENGAGEMENT' | 'STORE_VISIT' | 'STORE_SALE' | 'QUALIFIED_LEAD' | 'CONVERTED_LEAD' | 'YOUTUBE_FOLLOW_ON_VIEWS';
|
|
20808
|
+
/**
|
|
20809
|
+
* The conversion action status. Only ENABLED is settable (the proto has no PAUSED). Use the remove endpoint to soft-delete.
|
|
20810
|
+
*/
|
|
20811
|
+
status?: 'ENABLED';
|
|
20812
|
+
/**
|
|
20813
|
+
* How to value conversions. Omit to let Google apply its category-based defaults.
|
|
20814
|
+
*/
|
|
20815
|
+
value_settings?: {
|
|
20816
|
+
/**
|
|
20817
|
+
* The value to assign a conversion when the event reports no value.
|
|
20818
|
+
*/
|
|
20819
|
+
default_value?: number;
|
|
20820
|
+
/**
|
|
20821
|
+
* The ISO 4217 currency code (3 letters) for the default value.
|
|
20822
|
+
*/
|
|
20823
|
+
default_currency_code?: string;
|
|
20824
|
+
/**
|
|
20825
|
+
* When true, always use the default value (ignore any value reported with the event).
|
|
20826
|
+
*/
|
|
20827
|
+
always_use_default_value?: boolean;
|
|
20828
|
+
};
|
|
20829
|
+
/**
|
|
20830
|
+
* How to count conversions per ad interaction: ONE_PER_CLICK (e.g. leads) or MANY_PER_CLICK (e.g. purchases).
|
|
20831
|
+
*/
|
|
20832
|
+
counting_type?: 'ONE_PER_CLICK' | 'MANY_PER_CLICK';
|
|
20833
|
+
/**
|
|
20834
|
+
* The max days between an ad click and a conversion to attribute it (click-through).
|
|
20835
|
+
*/
|
|
20836
|
+
click_through_lookback_window_days?: number;
|
|
20837
|
+
/**
|
|
20838
|
+
* The max days between an ad impression and a conversion to attribute it (view-through).
|
|
20839
|
+
*/
|
|
20840
|
+
view_through_lookback_window_days?: number;
|
|
20841
|
+
/**
|
|
20842
|
+
* Whether this action is a primary (biddable) action for its conversion goal. Pass false to make it observation-only. Update-only: on create Google always starts an action as primary.
|
|
20843
|
+
*/
|
|
20844
|
+
primary_for_goal?: boolean;
|
|
20845
|
+
/**
|
|
20846
|
+
* When true, validate the request against Google without creating anything (Google’s native validate_only).
|
|
20847
|
+
*/
|
|
20848
|
+
dry_run?: boolean;
|
|
20849
|
+
};
|
|
20850
|
+
headers?: {
|
|
20851
|
+
/**
|
|
20852
|
+
* Optional. A unique key (1–255 chars; a UUID is ideal) that makes this write safe to retry: the first request executes and its outcome is stored; an identical retry replays that exact outcome instead of re-executing. A retry with the same key but a different body returns 422; a retry while the first is still in flight returns 409. See https://docs.postrun.ai/idempotency.
|
|
20853
|
+
*/
|
|
20854
|
+
'Idempotency-Key'?: string;
|
|
20855
|
+
};
|
|
20856
|
+
path: {
|
|
20857
|
+
/**
|
|
20858
|
+
* The id of a Google Ads connection in your account.
|
|
20859
|
+
*/
|
|
20860
|
+
connection_id: string;
|
|
20861
|
+
/**
|
|
20862
|
+
* The numeric id of the resource.
|
|
20863
|
+
*/
|
|
20864
|
+
id: string;
|
|
20865
|
+
};
|
|
20866
|
+
query?: never;
|
|
20867
|
+
url: '/google/{connection_id}/conversion-actions/{id}';
|
|
20868
|
+
};
|
|
20869
|
+
type GoogleUpdateConversionActionErrors = {
|
|
20870
|
+
/**
|
|
20871
|
+
* An RFC 9457 problem response.
|
|
20872
|
+
*/
|
|
20873
|
+
400: {
|
|
20874
|
+
type: string;
|
|
20875
|
+
title: string;
|
|
20876
|
+
status: number;
|
|
20877
|
+
/**
|
|
20878
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
20879
|
+
*/
|
|
20880
|
+
code: 'idempotency_key_invalid' | 'google_request_failed';
|
|
20881
|
+
display_error: string;
|
|
20882
|
+
detail?: string;
|
|
20883
|
+
request_id?: string;
|
|
20884
|
+
source?: ErrorSource;
|
|
20885
|
+
errors?: Array<{
|
|
20886
|
+
field: string;
|
|
20887
|
+
code: string;
|
|
20888
|
+
detail: string;
|
|
20889
|
+
display_error: string;
|
|
20890
|
+
hint?: string;
|
|
20891
|
+
allowed?: Array<string>;
|
|
20892
|
+
got?: string;
|
|
20893
|
+
}>;
|
|
20894
|
+
};
|
|
20895
|
+
/**
|
|
20896
|
+
* An RFC 9457 problem response.
|
|
20897
|
+
*/
|
|
20898
|
+
401: {
|
|
20899
|
+
type: string;
|
|
20900
|
+
title: string;
|
|
20901
|
+
status: number;
|
|
20902
|
+
/**
|
|
20903
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
20904
|
+
*/
|
|
20905
|
+
code: 'unauthorized' | 'google_auth_expired';
|
|
20906
|
+
display_error: string;
|
|
20907
|
+
detail?: string;
|
|
20908
|
+
request_id?: string;
|
|
20909
|
+
source?: ErrorSource;
|
|
20910
|
+
errors?: Array<{
|
|
20911
|
+
field: string;
|
|
20912
|
+
code: string;
|
|
20913
|
+
detail: string;
|
|
20914
|
+
display_error: string;
|
|
20915
|
+
hint?: string;
|
|
20916
|
+
allowed?: Array<string>;
|
|
20917
|
+
got?: string;
|
|
20918
|
+
}>;
|
|
20919
|
+
};
|
|
20920
|
+
/**
|
|
20921
|
+
* An RFC 9457 problem response.
|
|
20922
|
+
*/
|
|
20923
|
+
403: {
|
|
20924
|
+
type: string;
|
|
20925
|
+
title: string;
|
|
20926
|
+
status: number;
|
|
20927
|
+
/**
|
|
20928
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
20929
|
+
*/
|
|
20930
|
+
code: 'forbidden' | 'google_permission_denied';
|
|
20931
|
+
display_error: string;
|
|
20932
|
+
detail?: string;
|
|
20933
|
+
request_id?: string;
|
|
20934
|
+
source?: ErrorSource;
|
|
20935
|
+
errors?: Array<{
|
|
20936
|
+
field: string;
|
|
20937
|
+
code: string;
|
|
20938
|
+
detail: string;
|
|
20939
|
+
display_error: string;
|
|
20940
|
+
hint?: string;
|
|
20941
|
+
allowed?: Array<string>;
|
|
20942
|
+
got?: string;
|
|
20943
|
+
}>;
|
|
20944
|
+
};
|
|
20945
|
+
/**
|
|
20946
|
+
* An RFC 9457 problem response.
|
|
20947
|
+
*/
|
|
20948
|
+
404: {
|
|
20949
|
+
type: string;
|
|
20950
|
+
title: string;
|
|
20951
|
+
status: number;
|
|
20952
|
+
/**
|
|
20953
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
20954
|
+
*/
|
|
20955
|
+
code: 'not_found';
|
|
20956
|
+
display_error: string;
|
|
20957
|
+
detail?: string;
|
|
20958
|
+
request_id?: string;
|
|
20959
|
+
source?: ErrorSource;
|
|
20960
|
+
errors?: Array<{
|
|
20961
|
+
field: string;
|
|
20962
|
+
code: string;
|
|
20963
|
+
detail: string;
|
|
20964
|
+
display_error: string;
|
|
20965
|
+
hint?: string;
|
|
20966
|
+
allowed?: Array<string>;
|
|
20967
|
+
got?: string;
|
|
20968
|
+
}>;
|
|
20969
|
+
};
|
|
20970
|
+
/**
|
|
20971
|
+
* An RFC 9457 problem response.
|
|
20972
|
+
*/
|
|
20973
|
+
409: {
|
|
20974
|
+
type: string;
|
|
20975
|
+
title: string;
|
|
20976
|
+
status: number;
|
|
20977
|
+
/**
|
|
20978
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
20979
|
+
*/
|
|
20980
|
+
code: 'conflict' | 'idempotency_request_in_progress';
|
|
20981
|
+
display_error: string;
|
|
20982
|
+
detail?: string;
|
|
20983
|
+
request_id?: string;
|
|
20984
|
+
source?: ErrorSource;
|
|
20985
|
+
errors?: Array<{
|
|
20986
|
+
field: string;
|
|
20987
|
+
code: string;
|
|
20988
|
+
detail: string;
|
|
20989
|
+
display_error: string;
|
|
20990
|
+
hint?: string;
|
|
20991
|
+
allowed?: Array<string>;
|
|
20992
|
+
got?: string;
|
|
20993
|
+
}>;
|
|
20994
|
+
};
|
|
20995
|
+
/**
|
|
20996
|
+
* An RFC 9457 problem response.
|
|
20997
|
+
*/
|
|
20998
|
+
422: {
|
|
20999
|
+
type: string;
|
|
21000
|
+
title: string;
|
|
21001
|
+
status: number;
|
|
21002
|
+
/**
|
|
21003
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21004
|
+
*/
|
|
21005
|
+
code: 'idempotency_key_reused';
|
|
21006
|
+
display_error: string;
|
|
21007
|
+
detail?: string;
|
|
21008
|
+
request_id?: string;
|
|
21009
|
+
source?: ErrorSource;
|
|
21010
|
+
errors?: Array<{
|
|
21011
|
+
field: string;
|
|
21012
|
+
code: string;
|
|
21013
|
+
detail: string;
|
|
21014
|
+
display_error: string;
|
|
21015
|
+
hint?: string;
|
|
21016
|
+
allowed?: Array<string>;
|
|
21017
|
+
got?: string;
|
|
21018
|
+
}>;
|
|
21019
|
+
};
|
|
21020
|
+
/**
|
|
21021
|
+
* An RFC 9457 problem response.
|
|
21022
|
+
*/
|
|
21023
|
+
429: {
|
|
21024
|
+
type: string;
|
|
21025
|
+
title: string;
|
|
21026
|
+
status: number;
|
|
21027
|
+
/**
|
|
21028
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21029
|
+
*/
|
|
21030
|
+
code: 'rate_limited' | 'google_rate_limited';
|
|
21031
|
+
display_error: string;
|
|
21032
|
+
detail?: string;
|
|
21033
|
+
request_id?: string;
|
|
21034
|
+
source?: ErrorSource;
|
|
21035
|
+
errors?: Array<{
|
|
21036
|
+
field: string;
|
|
21037
|
+
code: string;
|
|
21038
|
+
detail: string;
|
|
21039
|
+
display_error: string;
|
|
21040
|
+
hint?: string;
|
|
21041
|
+
allowed?: Array<string>;
|
|
21042
|
+
got?: string;
|
|
21043
|
+
}>;
|
|
21044
|
+
};
|
|
21045
|
+
/**
|
|
21046
|
+
* An RFC 9457 problem response.
|
|
21047
|
+
*/
|
|
21048
|
+
502: {
|
|
21049
|
+
type: string;
|
|
21050
|
+
title: string;
|
|
21051
|
+
status: number;
|
|
21052
|
+
/**
|
|
21053
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21054
|
+
*/
|
|
21055
|
+
code: 'google_server_error';
|
|
21056
|
+
display_error: string;
|
|
21057
|
+
detail?: string;
|
|
21058
|
+
request_id?: string;
|
|
21059
|
+
source?: ErrorSource;
|
|
21060
|
+
errors?: Array<{
|
|
21061
|
+
field: string;
|
|
21062
|
+
code: string;
|
|
21063
|
+
detail: string;
|
|
21064
|
+
display_error: string;
|
|
21065
|
+
hint?: string;
|
|
21066
|
+
allowed?: Array<string>;
|
|
21067
|
+
got?: string;
|
|
21068
|
+
}>;
|
|
21069
|
+
};
|
|
21070
|
+
};
|
|
21071
|
+
type GoogleUpdateConversionActionError = GoogleUpdateConversionActionErrors[keyof GoogleUpdateConversionActionErrors];
|
|
21072
|
+
type GoogleUpdateConversionActionResponses = {
|
|
21073
|
+
/**
|
|
21074
|
+
* OK
|
|
21075
|
+
*/
|
|
21076
|
+
200: GoogleAdsEditResult;
|
|
21077
|
+
};
|
|
21078
|
+
type GoogleUpdateConversionActionResponse = GoogleUpdateConversionActionResponses[keyof GoogleUpdateConversionActionResponses];
|
|
21079
|
+
type GoogleRemoveConversionActionData = {
|
|
21080
|
+
body?: {
|
|
21081
|
+
/**
|
|
21082
|
+
* When true, validate the request against Google without creating anything (Google’s native validate_only).
|
|
21083
|
+
*/
|
|
21084
|
+
dry_run?: boolean;
|
|
21085
|
+
};
|
|
21086
|
+
headers?: {
|
|
21087
|
+
/**
|
|
21088
|
+
* Optional. A unique key (1–255 chars; a UUID is ideal) that makes this write safe to retry: the first request executes and its outcome is stored; an identical retry replays that exact outcome instead of re-executing. A retry with the same key but a different body returns 422; a retry while the first is still in flight returns 409. See https://docs.postrun.ai/idempotency.
|
|
21089
|
+
*/
|
|
21090
|
+
'Idempotency-Key'?: string;
|
|
21091
|
+
};
|
|
21092
|
+
path: {
|
|
21093
|
+
/**
|
|
21094
|
+
* The id of a Google Ads connection in your account.
|
|
21095
|
+
*/
|
|
21096
|
+
connection_id: string;
|
|
21097
|
+
/**
|
|
21098
|
+
* The numeric id of the resource.
|
|
21099
|
+
*/
|
|
21100
|
+
id: string;
|
|
21101
|
+
};
|
|
21102
|
+
query?: never;
|
|
21103
|
+
url: '/google/{connection_id}/conversion-actions/{id}/remove';
|
|
21104
|
+
};
|
|
21105
|
+
type GoogleRemoveConversionActionErrors = {
|
|
21106
|
+
/**
|
|
21107
|
+
* An RFC 9457 problem response.
|
|
21108
|
+
*/
|
|
21109
|
+
400: {
|
|
21110
|
+
type: string;
|
|
21111
|
+
title: string;
|
|
21112
|
+
status: number;
|
|
21113
|
+
/**
|
|
21114
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21115
|
+
*/
|
|
21116
|
+
code: 'idempotency_key_invalid' | 'google_request_failed';
|
|
21117
|
+
display_error: string;
|
|
21118
|
+
detail?: string;
|
|
21119
|
+
request_id?: string;
|
|
21120
|
+
source?: ErrorSource;
|
|
21121
|
+
errors?: Array<{
|
|
21122
|
+
field: string;
|
|
21123
|
+
code: string;
|
|
21124
|
+
detail: string;
|
|
21125
|
+
display_error: string;
|
|
21126
|
+
hint?: string;
|
|
21127
|
+
allowed?: Array<string>;
|
|
21128
|
+
got?: string;
|
|
21129
|
+
}>;
|
|
21130
|
+
};
|
|
21131
|
+
/**
|
|
21132
|
+
* An RFC 9457 problem response.
|
|
21133
|
+
*/
|
|
21134
|
+
401: {
|
|
21135
|
+
type: string;
|
|
21136
|
+
title: string;
|
|
21137
|
+
status: number;
|
|
21138
|
+
/**
|
|
21139
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21140
|
+
*/
|
|
21141
|
+
code: 'unauthorized' | 'google_auth_expired';
|
|
21142
|
+
display_error: string;
|
|
21143
|
+
detail?: string;
|
|
21144
|
+
request_id?: string;
|
|
21145
|
+
source?: ErrorSource;
|
|
21146
|
+
errors?: Array<{
|
|
21147
|
+
field: string;
|
|
21148
|
+
code: string;
|
|
21149
|
+
detail: string;
|
|
21150
|
+
display_error: string;
|
|
21151
|
+
hint?: string;
|
|
21152
|
+
allowed?: Array<string>;
|
|
21153
|
+
got?: string;
|
|
21154
|
+
}>;
|
|
21155
|
+
};
|
|
21156
|
+
/**
|
|
21157
|
+
* An RFC 9457 problem response.
|
|
21158
|
+
*/
|
|
21159
|
+
403: {
|
|
21160
|
+
type: string;
|
|
21161
|
+
title: string;
|
|
21162
|
+
status: number;
|
|
21163
|
+
/**
|
|
21164
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21165
|
+
*/
|
|
21166
|
+
code: 'forbidden' | 'google_permission_denied';
|
|
21167
|
+
display_error: string;
|
|
21168
|
+
detail?: string;
|
|
21169
|
+
request_id?: string;
|
|
21170
|
+
source?: ErrorSource;
|
|
21171
|
+
errors?: Array<{
|
|
21172
|
+
field: string;
|
|
21173
|
+
code: string;
|
|
21174
|
+
detail: string;
|
|
21175
|
+
display_error: string;
|
|
21176
|
+
hint?: string;
|
|
21177
|
+
allowed?: Array<string>;
|
|
21178
|
+
got?: string;
|
|
21179
|
+
}>;
|
|
21180
|
+
};
|
|
21181
|
+
/**
|
|
21182
|
+
* An RFC 9457 problem response.
|
|
21183
|
+
*/
|
|
21184
|
+
404: {
|
|
21185
|
+
type: string;
|
|
21186
|
+
title: string;
|
|
21187
|
+
status: number;
|
|
21188
|
+
/**
|
|
21189
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21190
|
+
*/
|
|
21191
|
+
code: 'not_found';
|
|
21192
|
+
display_error: string;
|
|
21193
|
+
detail?: string;
|
|
21194
|
+
request_id?: string;
|
|
21195
|
+
source?: ErrorSource;
|
|
21196
|
+
errors?: Array<{
|
|
21197
|
+
field: string;
|
|
21198
|
+
code: string;
|
|
21199
|
+
detail: string;
|
|
21200
|
+
display_error: string;
|
|
21201
|
+
hint?: string;
|
|
21202
|
+
allowed?: Array<string>;
|
|
21203
|
+
got?: string;
|
|
21204
|
+
}>;
|
|
21205
|
+
};
|
|
21206
|
+
/**
|
|
21207
|
+
* An RFC 9457 problem response.
|
|
21208
|
+
*/
|
|
21209
|
+
409: {
|
|
21210
|
+
type: string;
|
|
21211
|
+
title: string;
|
|
21212
|
+
status: number;
|
|
21213
|
+
/**
|
|
21214
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21215
|
+
*/
|
|
21216
|
+
code: 'conflict' | 'idempotency_request_in_progress';
|
|
21217
|
+
display_error: string;
|
|
21218
|
+
detail?: string;
|
|
21219
|
+
request_id?: string;
|
|
21220
|
+
source?: ErrorSource;
|
|
21221
|
+
errors?: Array<{
|
|
21222
|
+
field: string;
|
|
21223
|
+
code: string;
|
|
21224
|
+
detail: string;
|
|
21225
|
+
display_error: string;
|
|
21226
|
+
hint?: string;
|
|
21227
|
+
allowed?: Array<string>;
|
|
21228
|
+
got?: string;
|
|
21229
|
+
}>;
|
|
21230
|
+
};
|
|
21231
|
+
/**
|
|
21232
|
+
* An RFC 9457 problem response.
|
|
21233
|
+
*/
|
|
21234
|
+
422: {
|
|
21235
|
+
type: string;
|
|
21236
|
+
title: string;
|
|
21237
|
+
status: number;
|
|
21238
|
+
/**
|
|
21239
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21240
|
+
*/
|
|
21241
|
+
code: 'idempotency_key_reused';
|
|
21242
|
+
display_error: string;
|
|
21243
|
+
detail?: string;
|
|
21244
|
+
request_id?: string;
|
|
21245
|
+
source?: ErrorSource;
|
|
21246
|
+
errors?: Array<{
|
|
21247
|
+
field: string;
|
|
21248
|
+
code: string;
|
|
21249
|
+
detail: string;
|
|
21250
|
+
display_error: string;
|
|
21251
|
+
hint?: string;
|
|
21252
|
+
allowed?: Array<string>;
|
|
21253
|
+
got?: string;
|
|
21254
|
+
}>;
|
|
21255
|
+
};
|
|
21256
|
+
/**
|
|
21257
|
+
* An RFC 9457 problem response.
|
|
21258
|
+
*/
|
|
21259
|
+
429: {
|
|
21260
|
+
type: string;
|
|
21261
|
+
title: string;
|
|
21262
|
+
status: number;
|
|
21263
|
+
/**
|
|
21264
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21265
|
+
*/
|
|
21266
|
+
code: 'rate_limited' | 'google_rate_limited';
|
|
21267
|
+
display_error: string;
|
|
21268
|
+
detail?: string;
|
|
21269
|
+
request_id?: string;
|
|
21270
|
+
source?: ErrorSource;
|
|
21271
|
+
errors?: Array<{
|
|
21272
|
+
field: string;
|
|
21273
|
+
code: string;
|
|
21274
|
+
detail: string;
|
|
21275
|
+
display_error: string;
|
|
21276
|
+
hint?: string;
|
|
21277
|
+
allowed?: Array<string>;
|
|
21278
|
+
got?: string;
|
|
21279
|
+
}>;
|
|
21280
|
+
};
|
|
21281
|
+
/**
|
|
21282
|
+
* An RFC 9457 problem response.
|
|
21283
|
+
*/
|
|
21284
|
+
502: {
|
|
21285
|
+
type: string;
|
|
21286
|
+
title: string;
|
|
21287
|
+
status: number;
|
|
21288
|
+
/**
|
|
21289
|
+
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
21290
|
+
*/
|
|
21291
|
+
code: 'google_server_error';
|
|
21292
|
+
display_error: string;
|
|
21293
|
+
detail?: string;
|
|
21294
|
+
request_id?: string;
|
|
21295
|
+
source?: ErrorSource;
|
|
21296
|
+
errors?: Array<{
|
|
21297
|
+
field: string;
|
|
21298
|
+
code: string;
|
|
21299
|
+
detail: string;
|
|
21300
|
+
display_error: string;
|
|
21301
|
+
hint?: string;
|
|
21302
|
+
allowed?: Array<string>;
|
|
21303
|
+
got?: string;
|
|
21304
|
+
}>;
|
|
21305
|
+
};
|
|
21306
|
+
};
|
|
21307
|
+
type GoogleRemoveConversionActionError = GoogleRemoveConversionActionErrors[keyof GoogleRemoveConversionActionErrors];
|
|
21308
|
+
type GoogleRemoveConversionActionResponses = {
|
|
21309
|
+
/**
|
|
21310
|
+
* OK
|
|
21311
|
+
*/
|
|
21312
|
+
200: GoogleAdsDeleteResult;
|
|
21313
|
+
};
|
|
21314
|
+
type GoogleRemoveConversionActionResponse = GoogleRemoveConversionActionResponses[keyof GoogleRemoveConversionActionResponses];
|
|
20798
21315
|
type GoogleSendConversionsData = {
|
|
20799
21316
|
body: {
|
|
20800
21317
|
/**
|
|
@@ -27573,6 +28090,8 @@ declare const googleListConversionActionsOptions: (options: Options<GoogleListCo
|
|
|
27573
28090
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27574
28091
|
primary_for_goal: boolean;
|
|
27575
28092
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28093
|
+
click_through_lookback_window_days: number | null;
|
|
28094
|
+
view_through_lookback_window_days: number | null;
|
|
27576
28095
|
value_settings: {
|
|
27577
28096
|
default_value: number | null;
|
|
27578
28097
|
default_currency_code: string | null;
|
|
@@ -27596,6 +28115,8 @@ declare const googleListConversionActionsOptions: (options: Options<GoogleListCo
|
|
|
27596
28115
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27597
28116
|
primary_for_goal: boolean;
|
|
27598
28117
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28118
|
+
click_through_lookback_window_days: number | null;
|
|
28119
|
+
view_through_lookback_window_days: number | null;
|
|
27599
28120
|
value_settings: {
|
|
27600
28121
|
default_value: number | null;
|
|
27601
28122
|
default_currency_code: string | null;
|
|
@@ -27624,6 +28145,8 @@ declare const googleListConversionActionsOptions: (options: Options<GoogleListCo
|
|
|
27624
28145
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27625
28146
|
primary_for_goal: boolean;
|
|
27626
28147
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28148
|
+
click_through_lookback_window_days: number | null;
|
|
28149
|
+
view_through_lookback_window_days: number | null;
|
|
27627
28150
|
value_settings: {
|
|
27628
28151
|
default_value: number | null;
|
|
27629
28152
|
default_currency_code: string | null;
|
|
@@ -27658,6 +28181,8 @@ declare const googleListConversionActionsOptions: (options: Options<GoogleListCo
|
|
|
27658
28181
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27659
28182
|
primary_for_goal: boolean;
|
|
27660
28183
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28184
|
+
click_through_lookback_window_days: number | null;
|
|
28185
|
+
view_through_lookback_window_days: number | null;
|
|
27661
28186
|
value_settings: {
|
|
27662
28187
|
default_value: number | null;
|
|
27663
28188
|
default_currency_code: string | null;
|
|
@@ -27703,6 +28228,8 @@ declare const googleGetConversionActionOptions: (options: Options<GoogleGetConve
|
|
|
27703
28228
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27704
28229
|
primary_for_goal: boolean;
|
|
27705
28230
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28231
|
+
click_through_lookback_window_days: number | null;
|
|
28232
|
+
view_through_lookback_window_days: number | null;
|
|
27706
28233
|
value_settings: {
|
|
27707
28234
|
default_value: number | null;
|
|
27708
28235
|
default_currency_code: string | null;
|
|
@@ -27723,6 +28250,8 @@ declare const googleGetConversionActionOptions: (options: Options<GoogleGetConve
|
|
|
27723
28250
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27724
28251
|
primary_for_goal: boolean;
|
|
27725
28252
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28253
|
+
click_through_lookback_window_days: number | null;
|
|
28254
|
+
view_through_lookback_window_days: number | null;
|
|
27726
28255
|
value_settings: {
|
|
27727
28256
|
default_value: number | null;
|
|
27728
28257
|
default_currency_code: string | null;
|
|
@@ -27748,6 +28277,8 @@ declare const googleGetConversionActionOptions: (options: Options<GoogleGetConve
|
|
|
27748
28277
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27749
28278
|
primary_for_goal: boolean;
|
|
27750
28279
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28280
|
+
click_through_lookback_window_days: number | null;
|
|
28281
|
+
view_through_lookback_window_days: number | null;
|
|
27751
28282
|
value_settings: {
|
|
27752
28283
|
default_value: number | null;
|
|
27753
28284
|
default_currency_code: string | null;
|
|
@@ -27779,6 +28310,8 @@ declare const googleGetConversionActionOptions: (options: Options<GoogleGetConve
|
|
|
27779
28310
|
origin: "UNSPECIFIED" | "UNKNOWN" | "WEBSITE" | "GOOGLE_HOSTED" | "APP" | "CALL_FROM_ADS" | "STORE" | "YOUTUBE_HOSTED";
|
|
27780
28311
|
primary_for_goal: boolean;
|
|
27781
28312
|
counting_type: "UNSPECIFIED" | "UNKNOWN" | "ONE_PER_CLICK" | "MANY_PER_CLICK";
|
|
28313
|
+
click_through_lookback_window_days: number | null;
|
|
28314
|
+
view_through_lookback_window_days: number | null;
|
|
27782
28315
|
value_settings: {
|
|
27783
28316
|
default_value: number | null;
|
|
27784
28317
|
default_currency_code: string | null;
|
|
@@ -27794,6 +28327,22 @@ declare const googleGetConversionActionOptions: (options: Options<GoogleGetConve
|
|
|
27794
28327
|
[dataTagErrorSymbol]: GoogleGetConversionActionError;
|
|
27795
28328
|
};
|
|
27796
28329
|
};
|
|
28330
|
+
/**
|
|
28331
|
+
* Update a Google Ads conversion action
|
|
28332
|
+
*
|
|
28333
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
28334
|
+
*
|
|
28335
|
+
* Updates the mutable fields of a conversion action (name, category, status, value settings, counting type, lookback windows, primary-for-goal) by numeric id. Only the supplied fields change. Pass `dry_run: true` to validate against Google without applying.
|
|
28336
|
+
*/
|
|
28337
|
+
declare const googleUpdateConversionActionMutation: (options?: Partial<Options<GoogleUpdateConversionActionData>>) => UseMutationOptions<GoogleUpdateConversionActionResponse, GoogleUpdateConversionActionError, Options<GoogleUpdateConversionActionData>>;
|
|
28338
|
+
/**
|
|
28339
|
+
* Remove a Google Ads conversion action
|
|
28340
|
+
*
|
|
28341
|
+
* **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:write` scoped to the profile that owns the connection.
|
|
28342
|
+
*
|
|
28343
|
+
* Removes a conversion action by numeric id (Google’s native remove — a soft delete to status REMOVED). Set `dry_run: true` in the body to validate the removal against Google without applying it.
|
|
28344
|
+
*/
|
|
28345
|
+
declare const googleRemoveConversionActionMutation: (options?: Partial<Options<GoogleRemoveConversionActionData>>) => UseMutationOptions<GoogleRemoveConversionActionResponse, GoogleRemoveConversionActionError, Options<GoogleRemoveConversionActionData>>;
|
|
27797
28346
|
/**
|
|
27798
28347
|
* Send Google Ads conversion events
|
|
27799
28348
|
*
|
|
@@ -29109,4 +29658,4 @@ declare const webhooksPingMutation: (options?: Partial<Options<WebhooksPingData>
|
|
|
29109
29658
|
*/
|
|
29110
29659
|
declare const tokensMintMutation: (options?: Partial<Options<TokensMintData>>) => UseMutationOptions<TokensMintResponse, TokensMintError, Options<TokensMintData>>;
|
|
29111
29660
|
|
|
29112
|
-
export { type QueryKey, connectionsConnectMutation, connectionsDeleteMutation, connectionsGetOptions, connectionsGetQueryKey, connectionsListAccountsOptions, connectionsListAccountsQueryKey, connectionsListByProfileInfiniteOptions, connectionsListByProfileInfiniteQueryKey, connectionsListByProfileOptions, connectionsListByProfileQueryKey, connectionsSelectMutation, googleCreateAdGroupCriterionMutation, googleCreateAdGroupMutation, googleCreateAdMutation, googleCreateBudgetMutation, googleCreateCampaignCriterionMutation, googleCreateCampaignMutation, googleCreateConversionActionMutation, googleCreateDisplayAdMutation, googleCreateKeywordMutation, googleEditAccountMutation, googleEditAdGroupMutation, googleEditBudgetMutation, googleEditCampaignMutation, googleEnableAdGroupMutation, googleEnableAdMutation, googleEnableCampaignMutation, googleEnableKeywordMutation, googleGetAccountOptions, googleGetAccountQueryKey, googleGetAdGroupOptions, googleGetAdGroupQueryKey, googleGetAdOptions, googleGetAdQueryKey, googleGetAdTreeOptions, googleGetAdTreeQueryKey, googleGetCampaignOptions, googleGetCampaignQueryKey, googleGetConversionActionOptions, googleGetConversionActionQueryKey, googleGetConversionStatusOptions, googleGetConversionStatusQueryKey, googleGetInsightsMutation, googleGetKeywordOptions, googleGetKeywordQueryKey, googleListAdGroupCriteriaOptions, googleListAdGroupCriteriaQueryKey, googleListAdGroupsOptions, googleListAdGroupsQueryKey, googleListAdsOptions, googleListAdsQueryKey, googleListAudiencesOptions, googleListAudiencesQueryKey, googleListCampaignCriteriaOptions, googleListCampaignCriteriaQueryKey, googleListCampaignsOptions, googleListCampaignsQueryKey, googleListConversionActionsOptions, googleListConversionActionsQueryKey, googleListConversionGoalsOptions, googleListConversionGoalsQueryKey, googleListConversionRequestsInfiniteOptions, googleListConversionRequestsInfiniteQueryKey, googleListConversionRequestsOptions, googleListConversionRequestsQueryKey, googleListKeywordsOptions, googleListKeywordsQueryKey, googlePauseAdGroupMutation, googlePauseAdMutation, googlePauseCampaignMutation, googlePauseKeywordMutation, googleRemoveAdGroupCriterionMutation, googleRemoveAdGroupMutation, googleRemoveAdMutation, googleRemoveBudgetMutation, googleRemoveCampaignCriterionMutation, googleRemoveCampaignMutation, googleRemoveKeywordMutation, googleRunGaqlMutation, googleSearchGeoTargetsOptions, googleSearchGeoTargetsQueryKey, googleSendConversionsMutation, googleSetAdGroupBidsMutation, googleSetCampaignGeoSettingsMutation, googleSetCampaignTargetingSettingMutation, googleSetConversionGoalMutation, googleSetKeywordBidMutation, googleUploadImageAssetMutation, logsGetOptions, logsGetQueryKey, logsListInfiniteOptions, logsListInfiniteQueryKey, logsListOptions, logsListQueryKey, mediaAbortMutation, mediaCompleteMutation, mediaCreateMutation, mediaDeleteMutation, mediaGetOptions, mediaGetQueryKey, mediaListInfiniteOptions, mediaListInfiniteQueryKey, mediaListOptions, mediaListPartsOptions, mediaListPartsQueryKey, mediaListQueryKey, mediaSignPartMutation, mediaUpdateMutation, metaAccountOptions, metaAccountQueryKey, metaAdOptions, metaAdQueryKey, metaAdsOptions, metaAdsQueryKey, metaAdsetOptions, metaAdsetQueryKey, metaAdsetsOptions, metaAdsetsQueryKey, metaCampaignOptions, metaCampaignQueryKey, metaCampaignsOptions, metaCampaignsQueryKey, metaInsightsOptions, metaInsightsQueryKey, postsCreateMutation, postsDeleteMutation, postsGetOptions, postsGetQueryKey, postsListInfiniteOptions, postsListInfiniteQueryKey, postsListOptions, postsListQueryKey, postsUpdateMutation, postsValidateMutation, profilesCreateMutation, profilesDeleteMutation, profilesGetOptions, profilesGetQueryKey, profilesListInfiniteOptions, profilesListInfiniteQueryKey, profilesListOptions, profilesListQueryKey, profilesUpdateMutation, tiktokCreatorInfoOptions, tiktokCreatorInfoQueryKey, tokensMintMutation, webhooksCreateEndpointMutation, webhooksCreatePortalMutation, webhooksDeleteEndpointMutation, webhooksGetEndpointOptions, webhooksGetEndpointQueryKey, webhooksListEndpointsInfiniteOptions, webhooksListEndpointsInfiniteQueryKey, webhooksListEndpointsOptions, webhooksListEndpointsQueryKey, webhooksListEventTypesOptions, webhooksListEventTypesQueryKey, webhooksPingMutation, webhooksUpdateEndpointMutation };
|
|
29661
|
+
export { type QueryKey, connectionsConnectMutation, connectionsDeleteMutation, connectionsGetOptions, connectionsGetQueryKey, connectionsListAccountsOptions, connectionsListAccountsQueryKey, connectionsListByProfileInfiniteOptions, connectionsListByProfileInfiniteQueryKey, connectionsListByProfileOptions, connectionsListByProfileQueryKey, connectionsSelectMutation, googleCreateAdGroupCriterionMutation, googleCreateAdGroupMutation, googleCreateAdMutation, googleCreateBudgetMutation, googleCreateCampaignCriterionMutation, googleCreateCampaignMutation, googleCreateConversionActionMutation, googleCreateDisplayAdMutation, googleCreateKeywordMutation, googleEditAccountMutation, googleEditAdGroupMutation, googleEditBudgetMutation, googleEditCampaignMutation, googleEnableAdGroupMutation, googleEnableAdMutation, googleEnableCampaignMutation, googleEnableKeywordMutation, googleGetAccountOptions, googleGetAccountQueryKey, googleGetAdGroupOptions, googleGetAdGroupQueryKey, googleGetAdOptions, googleGetAdQueryKey, googleGetAdTreeOptions, googleGetAdTreeQueryKey, googleGetCampaignOptions, googleGetCampaignQueryKey, googleGetConversionActionOptions, googleGetConversionActionQueryKey, googleGetConversionStatusOptions, googleGetConversionStatusQueryKey, googleGetInsightsMutation, googleGetKeywordOptions, googleGetKeywordQueryKey, googleListAdGroupCriteriaOptions, googleListAdGroupCriteriaQueryKey, googleListAdGroupsOptions, googleListAdGroupsQueryKey, googleListAdsOptions, googleListAdsQueryKey, googleListAudiencesOptions, googleListAudiencesQueryKey, googleListCampaignCriteriaOptions, googleListCampaignCriteriaQueryKey, googleListCampaignsOptions, googleListCampaignsQueryKey, googleListConversionActionsOptions, googleListConversionActionsQueryKey, googleListConversionGoalsOptions, googleListConversionGoalsQueryKey, googleListConversionRequestsInfiniteOptions, googleListConversionRequestsInfiniteQueryKey, googleListConversionRequestsOptions, googleListConversionRequestsQueryKey, googleListKeywordsOptions, googleListKeywordsQueryKey, googlePauseAdGroupMutation, googlePauseAdMutation, googlePauseCampaignMutation, googlePauseKeywordMutation, googleRemoveAdGroupCriterionMutation, googleRemoveAdGroupMutation, googleRemoveAdMutation, googleRemoveBudgetMutation, googleRemoveCampaignCriterionMutation, googleRemoveCampaignMutation, googleRemoveConversionActionMutation, googleRemoveKeywordMutation, googleRunGaqlMutation, googleSearchGeoTargetsOptions, googleSearchGeoTargetsQueryKey, googleSendConversionsMutation, googleSetAdGroupBidsMutation, googleSetCampaignGeoSettingsMutation, googleSetCampaignTargetingSettingMutation, googleSetConversionGoalMutation, googleSetKeywordBidMutation, googleUpdateConversionActionMutation, googleUploadImageAssetMutation, logsGetOptions, logsGetQueryKey, logsListInfiniteOptions, logsListInfiniteQueryKey, logsListOptions, logsListQueryKey, mediaAbortMutation, mediaCompleteMutation, mediaCreateMutation, mediaDeleteMutation, mediaGetOptions, mediaGetQueryKey, mediaListInfiniteOptions, mediaListInfiniteQueryKey, mediaListOptions, mediaListPartsOptions, mediaListPartsQueryKey, mediaListQueryKey, mediaSignPartMutation, mediaUpdateMutation, metaAccountOptions, metaAccountQueryKey, metaAdOptions, metaAdQueryKey, metaAdsOptions, metaAdsQueryKey, metaAdsetOptions, metaAdsetQueryKey, metaAdsetsOptions, metaAdsetsQueryKey, metaCampaignOptions, metaCampaignQueryKey, metaCampaignsOptions, metaCampaignsQueryKey, metaInsightsOptions, metaInsightsQueryKey, postsCreateMutation, postsDeleteMutation, postsGetOptions, postsGetQueryKey, postsListInfiniteOptions, postsListInfiniteQueryKey, postsListOptions, postsListQueryKey, postsUpdateMutation, postsValidateMutation, profilesCreateMutation, profilesDeleteMutation, profilesGetOptions, profilesGetQueryKey, profilesListInfiniteOptions, profilesListInfiniteQueryKey, profilesListOptions, profilesListQueryKey, profilesUpdateMutation, tiktokCreatorInfoOptions, tiktokCreatorInfoQueryKey, tokensMintMutation, webhooksCreateEndpointMutation, webhooksCreatePortalMutation, webhooksDeleteEndpointMutation, webhooksGetEndpointOptions, webhooksGetEndpointQueryKey, webhooksListEndpointsInfiniteOptions, webhooksListEndpointsInfiniteQueryKey, webhooksListEndpointsOptions, webhooksListEndpointsQueryKey, webhooksListEventTypesOptions, webhooksListEventTypesQueryKey, webhooksPingMutation, webhooksUpdateEndpointMutation };
|