Opteo / google-ads-api

Google Ads API client library for Node.js
https://opteo.com
MIT License
270 stars 90 forks source link

How to Pass LoggedIn userID in Customer of google-ads-api #440

Open itsmohsinali5 opened 1 year ago

itsmohsinali5 commented 1 year ago

Hi Team!

I want to clear my point a bit more as to what I actually have to do. So, basically:

const { GoogleAdsApi, enums } = require("google-ads-api");

const client = new GoogleAdsApi({ client_id: ${client_id}, client_secret: ${client_secret}, developer_token: ${developer_token_from_googleAdsManagerAccount}, }); const customer = client.Customer({ customer_account_id: id, refresh_token: refresh_token, });

InstantRoofer commented 3 months ago

see "login-customer-id" on https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid