Re: Validate Query via API

2023-03-28 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi All,

You may refer to this SearchGoogleAdsRequest documentation, when setting 
validate_only to “true” the request will be validated but not executed. You may 
also refer to GoogleAdsService documentation for the list of thrown errors for 
each corresponding method.

Please note that when executing a query when you have test access, this 
operation can only be done on test accounts.

Regards,

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/0SAxV0RS8OUQ00zQNWM2faSEWS9-L6bocfrA%40sfdc.net.


Re: Validate Query via API

2023-03-28 Thread Zweitze
Check out the validate_only parameter of 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* 
> ” 
> 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.


Validate Query via API

2023-03-27 Thread Nicholas Lee
Is there a way to validate a google ads query before sending it to the 
search api without having to check it manually via the validator?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2d9e37ba-7309-443f-a1cd-fae982382f7cn%40googlegroups.com.