getricky 0.1.31 → 0.1.32

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.
@@ -2172,10 +2172,128 @@ export type GoogleAdsAccountReport = {
2172
2172
  time_zone: string;
2173
2173
  };
2174
2174
  status: 'ready' | 'access_denied' | 'unavailable';
2175
+ period: {
2176
+ from: string;
2177
+ to: string;
2178
+ };
2179
+ /**
2180
+ * The immediately preceding period of equal length; null if the read failed.
2181
+ */
2182
+ previous_period: {
2183
+ from: string;
2184
+ to: string;
2185
+ } | null;
2186
+ totals: {
2187
+ /**
2188
+ * Spend in the account currency.
2189
+ */
2190
+ spend: number;
2191
+ clicks: number;
2192
+ impressions: number;
2193
+ /**
2194
+ * Conversions as Google reports them.
2195
+ */
2196
+ conversions: number;
2197
+ /**
2198
+ * Total spend divided by clicks; null with zero clicks.
2199
+ */
2200
+ cost_per_click: number | null;
2201
+ /**
2202
+ * Total spend divided by conversions; null with zero conversions.
2203
+ */
2204
+ cost_per_conversion: number | null;
2205
+ /**
2206
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2207
+ */
2208
+ click_through_rate: number | null;
2209
+ } | null;
2210
+ previous_totals: {
2211
+ /**
2212
+ * Spend in the account currency.
2213
+ */
2214
+ spend: number;
2215
+ clicks: number;
2216
+ impressions: number;
2217
+ /**
2218
+ * Conversions as Google reports them.
2219
+ */
2220
+ conversions: number;
2221
+ /**
2222
+ * Total spend divided by clicks; null with zero clicks.
2223
+ */
2224
+ cost_per_click: number | null;
2225
+ /**
2226
+ * Total spend divided by conversions; null with zero conversions.
2227
+ */
2228
+ cost_per_conversion: number | null;
2229
+ /**
2230
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2231
+ */
2232
+ click_through_rate: number | null;
2233
+ } | null;
2234
+ changes: {
2235
+ spend: number | null;
2236
+ clicks: number | null;
2237
+ impressions: number | null;
2238
+ conversions: number | null;
2239
+ cost_per_click: number | null;
2240
+ cost_per_conversion: number | null;
2241
+ click_through_rate: number | null;
2242
+ } | null;
2243
+ /**
2244
+ * One row per calendar day in the account time zone, including zero activity after a successful read.
2245
+ */
2246
+ daily: Array<{
2247
+ /**
2248
+ * Spend in the account currency.
2249
+ */
2250
+ spend: number;
2251
+ clicks: number;
2252
+ impressions: number;
2253
+ /**
2254
+ * Conversions as Google reports them.
2255
+ */
2256
+ conversions: number;
2257
+ /**
2258
+ * Total spend divided by clicks; null with zero clicks.
2259
+ */
2260
+ cost_per_click: number | null;
2261
+ /**
2262
+ * Total spend divided by conversions; null with zero conversions.
2263
+ */
2264
+ cost_per_conversion: number | null;
2265
+ /**
2266
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2267
+ */
2268
+ click_through_rate: number | null;
2269
+ day: string;
2270
+ }>;
2271
+ previous_daily: Array<{
2272
+ /**
2273
+ * Spend in the account currency.
2274
+ */
2275
+ spend: number;
2276
+ clicks: number;
2277
+ impressions: number;
2278
+ /**
2279
+ * Conversions as Google reports them.
2280
+ */
2281
+ conversions: number;
2282
+ /**
2283
+ * Total spend divided by clicks; null with zero clicks.
2284
+ */
2285
+ cost_per_click: number | null;
2286
+ /**
2287
+ * Total spend divided by conversions; null with zero conversions.
2288
+ */
2289
+ cost_per_conversion: number | null;
2290
+ /**
2291
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2292
+ */
2293
+ click_through_rate: number | null;
2294
+ day: string;
2295
+ }>;
2175
2296
  campaigns: Array<{
2176
- id: string;
2177
- name: string;
2178
- status: string;
2179
2297
  /**
2180
2298
  * Spend in the account currency.
2181
2299
  */
@@ -2186,6 +2304,58 @@ export type GoogleAdsAccountReport = {
2186
2304
  * Conversions as Google reports them.
2187
2305
  */
2188
2306
  conversions: number;
2307
+ /**
2308
+ * Total spend divided by clicks; null with zero clicks.
2309
+ */
2310
+ cost_per_click: number | null;
2311
+ /**
2312
+ * Total spend divided by conversions; null with zero conversions.
2313
+ */
2314
+ cost_per_conversion: number | null;
2315
+ /**
2316
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2317
+ */
2318
+ click_through_rate: number | null;
2319
+ id: string;
2320
+ name: string;
2321
+ status: string;
2322
+ channel_type: string | null;
2323
+ previous: {
2324
+ /**
2325
+ * Spend in the account currency.
2326
+ */
2327
+ spend: number;
2328
+ clicks: number;
2329
+ impressions: number;
2330
+ /**
2331
+ * Conversions as Google reports them.
2332
+ */
2333
+ conversions: number;
2334
+ /**
2335
+ * Total spend divided by clicks; null with zero clicks.
2336
+ */
2337
+ cost_per_click: number | null;
2338
+ /**
2339
+ * Total spend divided by conversions; null with zero conversions.
2340
+ */
2341
+ cost_per_conversion: number | null;
2342
+ /**
2343
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2344
+ */
2345
+ click_through_rate: number | null;
2346
+ };
2347
+ /**
2348
+ * Relative changes from the previous period, as fractions; null with a zero or unknown baseline.
2349
+ */
2350
+ changes: {
2351
+ spend: number | null;
2352
+ clicks: number | null;
2353
+ impressions: number | null;
2354
+ conversions: number | null;
2355
+ cost_per_click: number | null;
2356
+ cost_per_conversion: number | null;
2357
+ click_through_rate: number | null;
2358
+ };
2189
2359
  }>;
2190
2360
  };
2191
2361
  /**
@@ -2172,10 +2172,128 @@ export type GoogleAdsAccountReport = {
2172
2172
  time_zone: string;
2173
2173
  };
2174
2174
  status: 'ready' | 'access_denied' | 'unavailable';
2175
+ period: {
2176
+ from: string;
2177
+ to: string;
2178
+ };
2179
+ /**
2180
+ * The immediately preceding period of equal length; null if the read failed.
2181
+ */
2182
+ previous_period: {
2183
+ from: string;
2184
+ to: string;
2185
+ } | null;
2186
+ totals: {
2187
+ /**
2188
+ * Spend in the account currency.
2189
+ */
2190
+ spend: number;
2191
+ clicks: number;
2192
+ impressions: number;
2193
+ /**
2194
+ * Conversions as Google reports them.
2195
+ */
2196
+ conversions: number;
2197
+ /**
2198
+ * Total spend divided by clicks; null with zero clicks.
2199
+ */
2200
+ cost_per_click: number | null;
2201
+ /**
2202
+ * Total spend divided by conversions; null with zero conversions.
2203
+ */
2204
+ cost_per_conversion: number | null;
2205
+ /**
2206
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2207
+ */
2208
+ click_through_rate: number | null;
2209
+ } | null;
2210
+ previous_totals: {
2211
+ /**
2212
+ * Spend in the account currency.
2213
+ */
2214
+ spend: number;
2215
+ clicks: number;
2216
+ impressions: number;
2217
+ /**
2218
+ * Conversions as Google reports them.
2219
+ */
2220
+ conversions: number;
2221
+ /**
2222
+ * Total spend divided by clicks; null with zero clicks.
2223
+ */
2224
+ cost_per_click: number | null;
2225
+ /**
2226
+ * Total spend divided by conversions; null with zero conversions.
2227
+ */
2228
+ cost_per_conversion: number | null;
2229
+ /**
2230
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2231
+ */
2232
+ click_through_rate: number | null;
2233
+ } | null;
2234
+ changes: {
2235
+ spend: number | null;
2236
+ clicks: number | null;
2237
+ impressions: number | null;
2238
+ conversions: number | null;
2239
+ cost_per_click: number | null;
2240
+ cost_per_conversion: number | null;
2241
+ click_through_rate: number | null;
2242
+ } | null;
2243
+ /**
2244
+ * One row per calendar day in the account time zone, including zero activity after a successful read.
2245
+ */
2246
+ daily: Array<{
2247
+ /**
2248
+ * Spend in the account currency.
2249
+ */
2250
+ spend: number;
2251
+ clicks: number;
2252
+ impressions: number;
2253
+ /**
2254
+ * Conversions as Google reports them.
2255
+ */
2256
+ conversions: number;
2257
+ /**
2258
+ * Total spend divided by clicks; null with zero clicks.
2259
+ */
2260
+ cost_per_click: number | null;
2261
+ /**
2262
+ * Total spend divided by conversions; null with zero conversions.
2263
+ */
2264
+ cost_per_conversion: number | null;
2265
+ /**
2266
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2267
+ */
2268
+ click_through_rate: number | null;
2269
+ day: string;
2270
+ }>;
2271
+ previous_daily: Array<{
2272
+ /**
2273
+ * Spend in the account currency.
2274
+ */
2275
+ spend: number;
2276
+ clicks: number;
2277
+ impressions: number;
2278
+ /**
2279
+ * Conversions as Google reports them.
2280
+ */
2281
+ conversions: number;
2282
+ /**
2283
+ * Total spend divided by clicks; null with zero clicks.
2284
+ */
2285
+ cost_per_click: number | null;
2286
+ /**
2287
+ * Total spend divided by conversions; null with zero conversions.
2288
+ */
2289
+ cost_per_conversion: number | null;
2290
+ /**
2291
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2292
+ */
2293
+ click_through_rate: number | null;
2294
+ day: string;
2295
+ }>;
2175
2296
  campaigns: Array<{
2176
- id: string;
2177
- name: string;
2178
- status: string;
2179
2297
  /**
2180
2298
  * Spend in the account currency.
2181
2299
  */
@@ -2186,6 +2304,58 @@ export type GoogleAdsAccountReport = {
2186
2304
  * Conversions as Google reports them.
2187
2305
  */
2188
2306
  conversions: number;
2307
+ /**
2308
+ * Total spend divided by clicks; null with zero clicks.
2309
+ */
2310
+ cost_per_click: number | null;
2311
+ /**
2312
+ * Total spend divided by conversions; null with zero conversions.
2313
+ */
2314
+ cost_per_conversion: number | null;
2315
+ /**
2316
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2317
+ */
2318
+ click_through_rate: number | null;
2319
+ id: string;
2320
+ name: string;
2321
+ status: string;
2322
+ channel_type: string | null;
2323
+ previous: {
2324
+ /**
2325
+ * Spend in the account currency.
2326
+ */
2327
+ spend: number;
2328
+ clicks: number;
2329
+ impressions: number;
2330
+ /**
2331
+ * Conversions as Google reports them.
2332
+ */
2333
+ conversions: number;
2334
+ /**
2335
+ * Total spend divided by clicks; null with zero clicks.
2336
+ */
2337
+ cost_per_click: number | null;
2338
+ /**
2339
+ * Total spend divided by conversions; null with zero conversions.
2340
+ */
2341
+ cost_per_conversion: number | null;
2342
+ /**
2343
+ * Clicks divided by impressions, as a fraction; null with zero impressions.
2344
+ */
2345
+ click_through_rate: number | null;
2346
+ };
2347
+ /**
2348
+ * Relative changes from the previous period, as fractions; null with a zero or unknown baseline.
2349
+ */
2350
+ changes: {
2351
+ spend: number | null;
2352
+ clicks: number | null;
2353
+ impressions: number | null;
2354
+ conversions: number | null;
2355
+ cost_per_click: number | null;
2356
+ cost_per_conversion: number | null;
2357
+ click_through_rate: number | null;
2358
+ };
2189
2359
  }>;
2190
2360
  };
2191
2361
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getricky",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Official TypeScript SDK for the Ricky REST API",
5
5
  "keywords": [
6
6
  "api",