Skip to content

Commit f4cbe89

Browse files
committed
gaarf-js: support Google Ads API v19 (updated google-ads-api to v19)
Change-Id: Ida3fd0e81fbc6c297445296273f7e4db1565b0f1
1 parent 0375f04 commit f4cbe89

File tree

7 files changed

+28
-21
lines changed

7 files changed

+28
-21
lines changed

js/CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.1.0 - 2025-04-08
4+
5+
- support Google Ads API v19 (updated google-ads-api to v19)
6+
37
## 3.0.1 - 2025-02-13
48

59
- Fix: fixed gaarf-bq cli entrypoint
@@ -9,8 +13,8 @@
913
- support authentication under service accounts
1014
- GAQL parser based on Peggy grammar (https://peggyjs.org/online.html) - support any form of comments and whitespaces
1115
- reworked parsing of virtual column expressions (with mathjs):
12-
- compatibility with resource indexes and nested fields, e.g. the following are examples that didn't work and work now:
13-
- `'http://' + ad_group_ad.ad.final_urls[1]` - failed previously
16+
- compatibility with resource indexes and nested fields, e.g. the following are examples that didn't work and work now:
17+
- `'http://' + ad_group_ad.ad.final_urls[1]` - failed previously
1418
- any other expressions contained '~' and ':' in strings failed
1519
- `(change_event.new_resource:campaign.target_cpa.target_cpa_micros) / 1000000` - nested field customizers in expressions
1620
- support method calls (e.g. `(metrics.clicks / metrics.impressions).toFixed(2)` or `campaign.name.split('.').pop()`)

js/dist/cli.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/dist/cli.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package-lock.json

+14-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-ads-api-report-fetcher",
3-
"version": "3.0.1",
3+
"version": "3.1.0",
44
"description": "Google Ads API Report Fetcher (gaarf)",
55
"main": "./dist/index.js",
66
"types": "./src/index.ts",
@@ -56,7 +56,7 @@
5656
"date-fns": "^4.1.0",
5757
"find-up": "^7.0.0",
5858
"glob": "^11.0.0",
59-
"google-ads-api": "17.1",
59+
"google-ads-api": "19.0",
6060
"google-auth-library": "^9.15.0",
6161
"js-yaml": "^4.1.0",
6262
"lodash-es": "^4.17.21",

js/src/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const argv = yargs(hideBin(process.argv))
8989
// But having them at root level is better for TS typings
9090
.option('ads-config', {
9191
type: 'string',
92-
description: 'path to yaml config for Google Ads (google-ads.yaml)',
92+
description: 'Path to a YAML/JSON config for Google Ads (google-ads.yaml)',
9393
})
9494
.option('ads', {hidden: true})
9595
.option('ads.developer_token', {
@@ -113,7 +113,7 @@ const argv = yargs(hideBin(process.argv))
113113
alias: ['customer', 'customer-id', 'customer_id'],
114114
type: 'string',
115115
description:
116-
'Google Ads account id (w/o dashes), a.k.a customer id or multiple accounts separeted with comma',
116+
'Google Ads account id (w/o dashes), a.k.a customer id, or multiple accounts comma-separated',
117117
})
118118
.option('customer-ids-query', {
119119
alias: ['customer_ids_query'],

js/src/test/query-editor.tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {AdsQueryEditor} from '../lib/ads-query-editor.js';
2020
import {ApiType, FieldTypeKind} from '../lib/types.js';
2121

2222
suite('AdsQueryEditor', () => {
23-
const editor = new AdsQueryEditor(ApiType.gRPC, 'v16');
23+
const editor = new AdsQueryEditor(ApiType.gRPC, 'v19');
2424

2525
test('parse aliases', () => {
2626
const query_text = `

0 commit comments

Comments
 (0)