Hi Jessica,
Thank you for reaching out to us.
For our team to further check this and provide you with an appropriate recommendation, could you please provide us with the complete API logs (request and response with request-id) generated on your end?
Note that logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled.
This is the specific guideline to enable PHP: https://developers.google.com/google-ads/api/docs/client-libs/php/logging
You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.![]() |
Google Ads API Team |
SELECT customer.id, customer.descriptive_name, ad_group.id, ad_group.name FROM ad_group WHERE ad_group.id = 'AD_YOUR_ADGROUP_ID_HERE'
Hi,
Thanks for getting back to us.
Please note that as per the guide included in the links below, both GoogleAdsService.Search and GoogleAdsService.SearchStream would require the customer_id to be supplied in the request body.
Can you try performing a request to List Accessible Accounts method? Through this method, you can list customers accessible to you. Listing accessible customers is one of the few requests in the Google Ads API that does not require you to specify a customer ID in the request. The resulting list of customers is based on your OAuth credentials. The request returns a list of all accounts that you are able to act upon directly given your current credentials. This will not necessarily include all accounts within the account hierarchy, rather, it will only include accounts where your authenticated user has been added with admin or other rights in the account.
You may also try checking the Find your Google Ads customer ID help article in finding your customer ID from Google Ads UI.
Let us know how it goes.
Reference links included in this email: