@adport/provider-google 0.12.2 → 0.13.1
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/index.d.ts +159 -3
- package/dist/index.js +1363 -552
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -280,6 +280,94 @@ declare class GoogleConversionService {
|
|
|
280
280
|
private uploadErrors;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
interface Plan$4 extends Omit<WritePreview, 'serverValidated'> {
|
|
284
|
+
execute(validateOnly: boolean): Promise<string[]>;
|
|
285
|
+
resultDetails?: () => unknown;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Native v25 protos googleapis@97f6460c (custom_conversion_goal, conversion_goal_campaign_config,
|
|
289
|
+
* campaign_conversion_goal, google_ads_service); campaign/custom goal guides checked 2026-11-25.
|
|
290
|
+
* The per-service mutate requests have no partial_failure field, so writes use atomic googleAds:mutate.
|
|
291
|
+
*/
|
|
292
|
+
declare class GoogleConversionGoalService {
|
|
293
|
+
private readonly client;
|
|
294
|
+
private readonly conversions;
|
|
295
|
+
constructor(client: GoogleAdsRestClient, conversions: GoogleConversionService);
|
|
296
|
+
/** Goals are owned by the selected customer or, with cross-account tracking, its conversion customer. */
|
|
297
|
+
private owners;
|
|
298
|
+
private goal;
|
|
299
|
+
private goalView;
|
|
300
|
+
/** Resolves action resource names to native actions; unreturned resources stay unresolved. */
|
|
301
|
+
private actions;
|
|
302
|
+
/** Lists custom goals; with campaign_ids, also the goal state of those campaigns and the snapshot that binds google_set_campaign_conversion_goal. */
|
|
303
|
+
list(input: {
|
|
304
|
+
account_id: string;
|
|
305
|
+
after_goal_id?: string;
|
|
306
|
+
include_removed?: boolean;
|
|
307
|
+
limit: number;
|
|
308
|
+
campaign_ids?: string[];
|
|
309
|
+
}): Promise<{
|
|
310
|
+
campaigns?: {
|
|
311
|
+
campaign_id: string;
|
|
312
|
+
name: unknown;
|
|
313
|
+
status: unknown;
|
|
314
|
+
channel_type: unknown;
|
|
315
|
+
goal_config_level: "CUSTOMER" | "CAMPAIGN";
|
|
316
|
+
custom_conversion_goal: {
|
|
317
|
+
custom_conversion_goal_id: string;
|
|
318
|
+
resource_name: string;
|
|
319
|
+
name: string;
|
|
320
|
+
status: string;
|
|
321
|
+
conversion_actions: {
|
|
322
|
+
status?: unknown;
|
|
323
|
+
category?: unknown;
|
|
324
|
+
conversion_action_id: string;
|
|
325
|
+
resource_name: string;
|
|
326
|
+
name: string | null;
|
|
327
|
+
}[];
|
|
328
|
+
snapshot_hash: string;
|
|
329
|
+
} | {
|
|
330
|
+
resource_name: string;
|
|
331
|
+
} | null;
|
|
332
|
+
standard_goals: {
|
|
333
|
+
category: string;
|
|
334
|
+
origin: string;
|
|
335
|
+
biddable: boolean;
|
|
336
|
+
}[];
|
|
337
|
+
summary: string;
|
|
338
|
+
}[] | undefined;
|
|
339
|
+
snapshot_hash?: string | undefined;
|
|
340
|
+
next_cursor?: string | undefined;
|
|
341
|
+
conversion_customer: string | null;
|
|
342
|
+
goals: {
|
|
343
|
+
custom_conversion_goal_id: string;
|
|
344
|
+
resource_name: string;
|
|
345
|
+
name: string;
|
|
346
|
+
status: string;
|
|
347
|
+
conversion_actions: {
|
|
348
|
+
status?: unknown;
|
|
349
|
+
category?: unknown;
|
|
350
|
+
conversion_action_id: string;
|
|
351
|
+
resource_name: string;
|
|
352
|
+
name: string | null;
|
|
353
|
+
}[];
|
|
354
|
+
snapshot_hash: string;
|
|
355
|
+
}[];
|
|
356
|
+
truncated: boolean;
|
|
357
|
+
}>;
|
|
358
|
+
private goalById;
|
|
359
|
+
private checkedGoal;
|
|
360
|
+
/** Reads exactly the requested campaigns, their goal configuration and standard (category/origin) goals. */
|
|
361
|
+
private campaignContext;
|
|
362
|
+
private describe;
|
|
363
|
+
private campaignView;
|
|
364
|
+
private referencedGoals;
|
|
365
|
+
/** Every referenced action must be an enabled action visible from the selected customer. */
|
|
366
|
+
private enabledActions;
|
|
367
|
+
plan(op: WriteOperation): Promise<Plan$4>;
|
|
368
|
+
private planCampaigns;
|
|
369
|
+
}
|
|
370
|
+
|
|
283
371
|
/** Official Data Manager v1 contracts: googleapis/googleapis@492a18f4; guides checked 2026-11-04. */
|
|
284
372
|
declare class GoogleDataManagerService {
|
|
285
373
|
private readonly client;
|
|
@@ -430,7 +518,7 @@ declare class GoogleExperimentService {
|
|
|
430
518
|
}
|
|
431
519
|
|
|
432
520
|
type Row$1 = Record<string, unknown>;
|
|
433
|
-
type Plan$
|
|
521
|
+
type Plan$3 = Omit<WritePreview, 'serverValidated'> & {
|
|
434
522
|
execute: (validateOnly: boolean) => Promise<string[]>;
|
|
435
523
|
};
|
|
436
524
|
/** Official v25 resource/service contracts, discovery, and native GAQL checked 2026-11-04. */
|
|
@@ -546,7 +634,7 @@ declare class GooglePerformanceMaxService {
|
|
|
546
634
|
private createCampaign;
|
|
547
635
|
private createGroup;
|
|
548
636
|
private updateAssets;
|
|
549
|
-
plan(op: WriteOperation, guard: WriteGuard): Promise<Plan$
|
|
637
|
+
plan(op: WriteOperation, guard: WriteGuard): Promise<Plan$3>;
|
|
550
638
|
private updateBrandAssets;
|
|
551
639
|
private changeSignals;
|
|
552
640
|
private replaceFilters;
|
|
@@ -560,7 +648,7 @@ declare const targetingList: z.ZodObject<{
|
|
|
560
648
|
}, z.core.$strict>;
|
|
561
649
|
|
|
562
650
|
type Row = Record<string, unknown>;
|
|
563
|
-
interface Plan extends Omit<WritePreview, 'serverValidated'> {
|
|
651
|
+
interface Plan$2 extends Omit<WritePreview, 'serverValidated'> {
|
|
564
652
|
execute(validateOnly: boolean): Promise<string[]>;
|
|
565
653
|
resultDetails(): unknown;
|
|
566
654
|
}
|
|
@@ -617,6 +705,71 @@ declare class GoogleTargetingService {
|
|
|
617
705
|
total_criteria: number;
|
|
618
706
|
truncated: boolean;
|
|
619
707
|
}>;
|
|
708
|
+
plan(op: WriteOperation): Promise<Plan$2>;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
interface Plan$1 extends Omit<WritePreview, 'serverValidated'> {
|
|
712
|
+
execute(validateOnly: boolean): Promise<string[]>;
|
|
713
|
+
resultDetails(): unknown;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Wire contracts: Google Ads API v25 SharedSet, SharedCriterion, CampaignSharedSet
|
|
717
|
+
* and CampaignCriterion resources and services (developers.google.com/google-ads/api,
|
|
718
|
+
* checked 2026-11-25).
|
|
719
|
+
*/
|
|
720
|
+
declare class GoogleNegativeKeywordService {
|
|
721
|
+
private readonly client;
|
|
722
|
+
constructor(client: GoogleAdsRestClient);
|
|
723
|
+
private listResource;
|
|
724
|
+
private parseList;
|
|
725
|
+
private readLists;
|
|
726
|
+
private list;
|
|
727
|
+
private links;
|
|
728
|
+
private criteria;
|
|
729
|
+
private campaigns;
|
|
730
|
+
private campaignNegatives;
|
|
731
|
+
/** Every enabled list, or one list (shared_set_id) with its keywords up to limit. */
|
|
732
|
+
listLists(input: {
|
|
733
|
+
account_id: string;
|
|
734
|
+
shared_set_id?: string | undefined;
|
|
735
|
+
limit?: number | undefined;
|
|
736
|
+
}): Promise<{
|
|
737
|
+
lists: {
|
|
738
|
+
keywords?: {
|
|
739
|
+
criterion_id: string;
|
|
740
|
+
text: string;
|
|
741
|
+
match_type: "EXACT" | "PHRASE" | "BROAD";
|
|
742
|
+
}[] | undefined;
|
|
743
|
+
truncated?: boolean | undefined;
|
|
744
|
+
campaigns: {
|
|
745
|
+
id: string;
|
|
746
|
+
name: string;
|
|
747
|
+
status: string;
|
|
748
|
+
}[];
|
|
749
|
+
id: string;
|
|
750
|
+
name: string;
|
|
751
|
+
member_count: number;
|
|
752
|
+
reference_count: number;
|
|
753
|
+
}[];
|
|
754
|
+
}>;
|
|
755
|
+
plan(op: WriteOperation): Promise<Plan$1>;
|
|
756
|
+
/** Runs service mutates in bounded batches; each request is atomic (partialFailure=false). */
|
|
757
|
+
private batches;
|
|
758
|
+
private outcome;
|
|
759
|
+
private review;
|
|
760
|
+
private planCreate;
|
|
761
|
+
private planUpdate;
|
|
762
|
+
private planLink;
|
|
763
|
+
private planCampaignNegatives;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
interface Plan extends Omit<WritePreview, 'serverValidated'> {
|
|
767
|
+
execute(validateOnly: boolean): Promise<string[]>;
|
|
768
|
+
}
|
|
769
|
+
/** AdGroupCriterion keyword URL updates; Google Ads v25 AdGroupCriterion reference, checked 2026-11-25. */
|
|
770
|
+
declare class GoogleKeywordService {
|
|
771
|
+
private readonly client;
|
|
772
|
+
constructor(client: GoogleAdsRestClient);
|
|
620
773
|
plan(op: WriteOperation): Promise<Plan>;
|
|
621
774
|
}
|
|
622
775
|
|
|
@@ -628,10 +781,13 @@ declare class GoogleAdsProvider implements AdProvider {
|
|
|
628
781
|
readonly assetLinks: GoogleAssetLinks;
|
|
629
782
|
readonly labels: GoogleLabelService;
|
|
630
783
|
readonly conversions: GoogleConversionService;
|
|
784
|
+
readonly conversionGoals: GoogleConversionGoalService;
|
|
631
785
|
readonly dataManager: GoogleDataManagerService;
|
|
632
786
|
readonly experiments: GoogleExperimentService;
|
|
633
787
|
readonly performanceMax: GooglePerformanceMaxService;
|
|
634
788
|
readonly targeting: GoogleTargetingService;
|
|
789
|
+
readonly negativeKeywords: GoogleNegativeKeywordService;
|
|
790
|
+
readonly keywords: GoogleKeywordService;
|
|
635
791
|
constructor(client: GoogleAdsRestClient, media?: MediaResolver);
|
|
636
792
|
keywordPlanning(customerId: string, method: 'generateKeywordIdeas' | 'generateKeywordHistoricalMetrics', body: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
637
793
|
fieldMetadata(query: string, pageSize: number, pageToken?: string): Promise<{
|