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/0a5de186-be5e-4c9d-a0bb-87c8b533c2e9n%40googlegroups.com.

Reply via email to