mcp-google-ads 1.5.0 → 1.6.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.
@@ -23,5 +23,6 @@ export interface AdGroupCreatePayload {
23
23
  status: number;
24
24
  cpc_bid_micros: number;
25
25
  type: number | string;
26
+ optimized_targeting_enabled?: boolean;
26
27
  }
27
28
  export declare function buildAdGroupCreatePayload(input: AdGroupCreateInput): AdGroupCreatePayload;
@@ -1,13 +1,18 @@
1
1
  import { enums } from "google-ads-api";
2
2
  function buildAdGroupCreatePayload(input) {
3
- const typeEnum = input.type === "DEMAND_GEN_MULTI_ASSET_AD_GROUP" ? "DEMAND_GEN_MULTI_ASSET_AD_GROUP" : enums.AdGroupType.SEARCH_STANDARD;
4
- return {
3
+ const isDemandGen = input.type === "DEMAND_GEN_MULTI_ASSET_AD_GROUP";
4
+ const typeEnum = isDemandGen ? "DEMAND_GEN_MULTI_ASSET_AD_GROUP" : enums.AdGroupType.SEARCH_STANDARD;
5
+ const payload = {
5
6
  name: input.name,
6
7
  campaign: `customers/${input.customer_id_clean}/campaigns/${input.campaign_id}`,
7
8
  status: enums.AdGroupStatus.PAUSED,
8
9
  cpc_bid_micros: input.cpc_bid_micros ?? 1e6,
9
10
  type: typeEnum
10
11
  };
12
+ if (isDemandGen) {
13
+ payload.optimized_targeting_enabled = false;
14
+ }
15
+ return payload;
11
16
  }
12
17
  export {
13
18
  buildAdGroupCreatePayload
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha": "cc6cf6c",
3
- "builtAt": "2026-04-27T14:57:08.443Z",
2
+ "sha": "7d2b185",
3
+ "builtAt": "2026-05-27T23:45:13.595Z",
4
4
  "embeddedSecrets": true
5
5
  }