You're using C#, right?

Note that if you are using:

   - .NET Framework (eg. 4.7.2)
   - WinForms project (but other project types may be affected too)
   - Synchronous calls
   
In that case, calling the API may hang. This problem was introduced in the 
Google Ads library some time ago - last August I believe. See
https://github.com/googleads/google-ads-dotnet/issues/488
https://github.com/googleads/google-ads-dotnet/issues/480

The solution would be to migrate to .NET Core, or use a different WinForms 
project, or, start using the async methods of the library.
That last option may be very hard, but usually you have no alternative.


On Wednesday, March 1, 2023 at 3:37:54 AM UTC+1 Rajendra Yadav wrote:

> Hi
> I have tried below code it is not returing any response and Same code was 
> working with v10 version when we have updated version v10 to v13 then it is 
> not working
>
> Please suggeste me  
>
>  GoogleAdsServiceClient googleAdsService = client.GetService(
>                 Services.V13.GoogleAdsService);
>
>             string searchQuery =
>                 $@"SELECT
>                  ad_group.id,
>                  ad_group_ad.ad.id,
>                  ad_group_ad.ad.responsive_search_ad.headlines,
>                  ad_group_ad.ad.responsive_search_ad.descriptions,
>                  ad_group_ad.status
>             FROM ad_group_ad
>             WHERE
>                 ad_group_ad.ad.type = 'RESPONSIVE_SEARCH_AD'";
>
>
>             if (adGroupId != null)
>             {
>                 searchQuery += $" AND ad_group.id = {adGroupId} AND 
> ad_group_ad.ad.id ={Id}  ORDER BY ad_group_ad.status ASC";
>             }
>
>             SearchGoogleAdsRequest request = new SearchGoogleAdsRequest()
>             {
>                 CustomerId = customerId.ToString(),
>                 PageSize = PAGE_SIZE,
>                 Query = searchQuery
>             };
>
>             try
>             {
>               
>                 PagedEnumerable<SearchGoogleAdsResponse, GoogleAdsRow> 
> searchPagedResponse =
>                     googleAdsService.Search(request);
>
>             
>                 foreach (GoogleAdsRow googleAdsRow in searchPagedResponse)
>                 {
>                     Ad ad = googleAdsRow.AdGroupAd.Ad;
>                     adsItem.Add(ad);
> }
>  }
>             catch (GoogleAdsException e)
>             {
> }
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f65da358-cc93-43e4-a93f-e1f708d9eedan%40googlegroups.com.

Reply via email to