Re: Mock Google Ads API request

2022-03-17 Thread Javier Val
Thank you both very much for your answers.

For our unit tests we will rely on the Google Ads .NET client package 
sources, as Zweitze suggests. And for our integration tests I think using 
test accounts and validate_only is a very good solution.

Thanks for your help.
Regards


El jueves, 17 de marzo de 2022 a las 7:07:05 UTC+1, adsapi escribió:

> Hi Javier,
>
> Thanks for reaching out.
>
> Thank you also Zweitze for your recommendations.
>
> In addition to that, when testing out the various features of the API, you 
> can opt to use test accounts 
> 
>  
> , and also the *validate_only* feature for services that support it (ex. 
> validate_only 
> 
>  
> of the CampaignService).
>
> Let us know if you have any questions.
>
> Best regards,
> [image: Google Logo] 
> Heidi 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2YlspV: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/1cd40806-e865-4517-a44b-524ca312c9d8n%40googlegroups.com.


Re: Mock Google Ads API request

2022-03-16 Thread Zweitze
Take a look at the Google Ads .NET client package sources. These sources 
have themselves unit tests, and some utilities - for instance, mock an 
error.
https://github.com/googleads/google-ads-dotnet


On Wednesday, March 16, 2022 at 3:02:01 PM UTC+1 Javier Val wrote:

> Hello everyone, 
>
> When implementing our integration tests, there is a number of cases when 
> we don't want to send real API requests. Instead we only want to imitate 
> such sending. 
>
> We are using the Google Ads .NET client, do you know a way to mock this 
> behavior? Any tool, package or implementation?
>
> Thanks for your help
>
> Regards
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5be29bca-28d1-4630-8c8e-0e3a291bb36an%40googlegroups.com.


Mock Google Ads API request

2022-03-16 Thread Javier Val
Hello everyone, 

When implementing our integration tests, there is a number of cases when we 
don't want to send real API requests. Instead we only want to imitate such 
sending. 

We are using the Google Ads .NET client, do you know a way to mock this 
behavior? Any tool, package or implementation?

Thanks for your help

Regards

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c3fe2d4c-b120-48ba-99ba-9c15b60c125bn%40googlegroups.com.