Hi Google Ads API Support,
I am following up on my previous ticket(
This message is in relation to case "ref:!00D1U01174p.!500Ht01rgV1N:ref" (ADR-00315985)( regarding the inability to fetch campaigns for real client accounts using the Google Ads API v20 (Node.js client library).
I apologize if I created another post instead of Replying privately, I'm having an error when doing so.
Summary of the Issue:- I am able to fetch campaigns for a test account, but for all real client accounts, the API returns an empty array.
- The OAuth user is directly added to the client accounts with active status.
- The accounts have active campaigns visible in the Google Ads UI.
API Call Details:
- I am using the Node.js client library for v20.
- For each request:
customer_id is set to the client account ID (not an MCC).
login_customer_id is set to the top-level MCC ID (from listAccessibleCustomers).
- The query used is: SELECT campaign.id, campaign.name, campaign.advertising_channel_type, campaign.status FROM campaign
- The refresh token is valid and works for the test account.
Console Log Output:
[DEBUG] Target client account ID (customer_id): [redacted]
[DEBUG] Executing query on customer instance...
[DEBUG] Successfully received API response: []
--- [SUCCESS] CAMPAIGN FETCH for clientId: [redacted] ---
(node:XXXXX) MetadataLookupWarning: received unexpected error = All promises were rejected code = UNKNOWN
(Use `node --trace-warnings ...` to show where the warning was created)
What I’ve Tried:- Verified the OAuth user is directly added to each client account (not just inherited via MCC).
- Confirmed the accounts have active campaigns.
- Used the recommended query and parameters per your previous advice.
- The same code works for the test account, but not for real accounts.
Request:- Can you help investigate why the API returns empty results for real client accounts, despite the correct setup and active campaigns?
- Is there anything else I should check regarding permissions, account status, or API usage for v20?
Thank you for your assistance!