Check out the validate_only parameter of SearchGoogleAdsRequest 
<https://developers.google.com/google-ads/api/reference/rpc/v13/SearchGoogleAdsRequest>
.
Of course, you actually do send the query to the API - but the query won't 
be executed, just tested for errors.

Beware of the following (or: my disclaimers)
1. I don't know whether this still counts as an operation - important if 
you have Basic access.
2. I don't know whether this catches all possible errors.



On Monday, March 27, 2023 at 11:49:51 PM UTC+2 Google Ads API Forum Advisor 
wrote:

> Hi Nicholas, 
>
> Thanks for reaching out to the Google Ads API Team. I hope you are doing 
> well today.
>
> Moving forward to our concern, you really need to put your query in the 
> query validator to validate it. If you don’t use the query validator 
> beforehand and your query happens to be invalid, then, you will surely get 
> an error. That is why we really recommend using the “*Google Ads Query 
> Validator* 
> <https://developers.google.com/google-ads/api/fields/v13/query_validator>” 
> to test if the entered query is valid.
>
> Have a great day.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2kCBNj:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6eac8b77-1b75-42a6-b2ad-66dd2c007372n%40googlegroups.com.
  • Va... Nicholas Lee
    • ... Zweitze
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to