Error 404 when accessing the Google Ads API on all endpoints

25 views
Skip to first unread message

Xavier Paz

unread,
Jun 19, 2025, 6:26:55 PMJun 19
to Google Ads API and AdWords API Forum
Hi,

I'm trying to integrate the Google Ads API with a service account to automate the retrieval of Keyword Planner metrics. I've set everything up according to the official documentation, but I'm getting 404 errors on all API endpoints, even though the API appears as "enabled" in the Google Cloud Console.

I'm including all the details (Cursor prepared them).

=== Issue

Main Error: 404 Not Found on all Google Ads API endpoints
Symptom: The API appears as "enabled" in the Google Cloud Console, but it's not available in Discovery, and all endpoints fail.
Impact: I can't access any Google Ads API endpoints.

=== Project Configuration

Project ID: keyword-explorer-******
Google Cloud Console: Google Ads API enabled for more than 24 hours.
Status: "Enabled" in APIs and Services.
Billing: Enabled and linked (Account: 010042-21EC96-******)

=== Credentials and Authentication

Service Account: kw-explorer-srv@keyword-explorer-******.iam.gserviceaccount.com
Authentication Type: Service Account (not OAuth2).
Scope Used: https://www.googleapis.com/auth/adwords
Access Token: Generated successfully ✅

=== Developer Token

Token: 35583SrClUWFnXOo******
Length: 22 characters
Status: Active and approved in the Google Ads API Center
Type: Basic (pending upgrade to Standard)

=== Google Ads Accounts

Login Customer ID (MCC): 1559******
Customer ID (Specific Customer): 5737******
Service account authorized on both accounts with Administrator permissions ✅

=== Specific Errors

All of these endpoints return 404 Not Found:

https://googleads.googleapis.com/v14/customers/5737******/googleAds:searchStream
https://googleads.googleapis.com/v15/customers/5737******/googleAds:searchStream
https://googleads.googleapis.com/v14/customers/5737******/googleAds:search
https://googleads.googleapis.com/v14/customers/5737******/customers:listAccessibleCustomers

=== Headers used:

Authorization: Bearer [token generated successfully]
developer-token: 35583SrClUWFnXOo******
login-customer-id: 1559******
Content-Type: application/json

=== Diagnostics Performed

✅ Access token generated successfully
✅ User API is working (https://www.googleapis.com/oauth2/v2/userinfo)
✅ Discovery API is working
❌ Google Ads API v14 NOT found in Discovery
❌ All Google Ads endpoints return 404
❌ 403 error in Google Cloud Management APIs (normal for Service Accounts)

=== Checks Completed

✅ API enabled in Google Cloud Console
✅ Service account in IAM with ServiceAccountTokenCreator
✅ Service account authorized in Google Ads (MCC and client)
✅ Developer Token active and approved
✅ Billing enabled and linked

=== Sample Code

// Configuration
$developerToken = '35583SrClUWFnXOo******';
$loginCustomerId = '1559******';
$customerId = '5737******';

// Headers
$headers = [
    'Authorization' => "Bearer $accessToken",
    'developer-token' => $developerToken,
    'login-customer-id' => $loginCustomerId,
    'Content-Type' => 'application/json'
];

// Failing Endpoint
$url = "https://googleads.googleapis.com/v14/customers/$customerId/googleAds:searchStream";
$data = ['query' => 'SELECT customer.id FROM customer LIMIT 1'];

=== Specific Questions

Why does the API appear as "enabled" but is not available in Discovery?
Google Ads API v14 does NOT appear in the list of available APIs
All endpoints return 404 Not Found
Is the 22-character Developer Token normal? The documentation mentions 24 characters, but mine is 22.
Could this be causing the issue?
Are there any additional steps required for Service Accounts?
Do I need any special permissions or additional configuration?
Is this a known issue with Google Ads API v14?
Should I try v15 or v16?
Are there any specific requirements for the authentication scope?
Is the scope https://www.googleapis.com/auth/adwords sufficient?

=== Additional Technical Information

Language: PHP
Library: GuzzleHttp
Time since enablement: More than 24 hours
Goal: Automate Keyword Planner to obtain keyword metrics

=== Sensitive Data (Obfuscated until requested)

I've put asterisks on all IDs. I can provide them.

=== Conclusion

I have everything configured correctly according to the documentation, but the API is not responding. Is there a step I'm missing, or is this a known issue with setting up Service Accounts and the Google Ads API?

Google Ads API Forum Advisor

unread,
Jun 19, 2025, 7:05:42 PMJun 19
to xp...@logorapid.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team. 

Upon reviewing your concern, I understand that you are encountering error 404 while trying to access the Google Ads API endpoints. I observed that the endpoints which you have provided have the mentioned version as either ‘v14’ or ‘v15’. 

Please note that the versions ‘v14’ and 'v15' of Google Ads API are sunsetted. Therefore, any requests sent to ‘v14’ or ‘v15’ API endpoint will fail. I would recommend you to upgrade to the latest version, 'v20' to benefit from the new features. In order to upgrade to the latest version 'v20' of Google Ads API, you can refer to the Upgrade to the latest version documentation. You can also refer to the documentation on deprecation and sunset for more information regarding the specific deprecation and sunset dates for each available version.

I hope this clarifies your concern. Feel free to reach out for any further concerns/ queries.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-06-19 23:04:52Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rfnHm:ref" (ADR-00315007)



Reply all
Reply to author
Forward
0 new messages