Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL is required to perform this operation #505

Open
zjinpeng opened this issue Feb 5, 2025 · 0 comments
Open

SSL is required to perform this operation #505

zjinpeng opened this issue Feb 5, 2025 · 0 comments

Comments

@zjinpeng
Copy link

zjinpeng commented Feb 5, 2025

  1. macos
  2. "google-ads-api": "^17.1.0-rest-beta"
  3. node version v22.13.0
  4. OAuth client ID app type is Desktop app.

main code:
const customer = client.Customer({ customer_id: customer_id, refresh_token: refresh_token, }); const campaigns = await customer.report({ entity: "campaign", attributes: [ "campaign.id", "campaign.name", "campaign.bidding_strategy_type", "campaign_budget.amount_micros", ], metrics: [ "metrics.cost_micros", "metrics.clicks", "metrics.impressions", "metrics.all_conversions", ], constraints: { "campaign.status": enums.CampaignStatus.ENABLED, }, limit: 20, });

I got the error:
node_modules/google-ads-api/build/src/customer.js:395
googleAdsFailure = new Error(data?.value?.error?.message ?? defaultErrorMessage, { cause: data?.value?.error ?? data?.value });
^

Error: SSL is required to perform this operation.
at Chain. (/xx/node_modules/google-ads-api/build/src/customer.js:395:36)
at Object.onceWrapper (node:events:639:26)
at Chain.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushObjectMode (node:internal/streams/readable:538:3)
at Readable.push (node:internal/streams/readable:393:5)
at StreamArray. (/xx/node_modules/stream-chain/index.js:136:45)
at StreamArray.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushObjectMode (node:internal/streams/readable:538:3) {
[cause]: {
code: 403,
message: 'SSL is required to perform this operation.',
status: 'PERMISSION_DENIED'
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant