Thanks for the excellent answer!

This is the solution I was looking for. A thing like that is necessary to avoid buffer overruns, memory exhaustion etc.

However, in my personal repository I will extend my GAQL parser for transpiling a corresponding COUNT clause into the SearchSettings <https://developers.google.com/google-ads/api/reference/rpc/v21/SearchSettings> option you described.

Best regards


Am 01.09.2025 um 08:07 schrieb Google Ads API Forum Advisor:

Hi,

Please note that you can't get a row count before a GAQL search using a COUNT() function like you would in SQL. It's not a supported feature, and it's not possible to submit a feature request for it.

However, you can use the _return_total_results_count_ <https://developers.google.com/google-ads/api/reference/rpc/v21/SearchSettings#:~:text=Default%20is%20false.-,return_total_results_count,-bool> field to get a similar result. By setting this field to True in your search request, the Google Ads API will return the total number of rows that match your query, regardless of any LIMIT clause. This field is set to False by default.


Thanks,
Google Logo     Google Ads API Team


Feedback
How was our support today?

rating1 <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001u5Uw5IAE> rating2 <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001u5Uw5IAE> rating3 <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001u5Uw5IAE> rating4 <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001u5Uw5IAE> rating5 <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001u5Uw5IAE> [2025-09-01 06:07:40Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u5Uw5:ref" (ADR-00331366)




--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/f395ba05-b294-4662-93ef-7c4a57dbff93%40axeldahmen.de.
  • GA... MS
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... MS
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Axel Dahmen
          • ... Axel Dahmen
            • ... Axel Dahmen
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... Axel Dahmen

Reply via email to