Thanks for your help. I solved like this:

$ad = $googleAdsRow->getAdGroupAd()->getAd();
$responsiveSearchAdInfo = $ad->getResponsiveSearchAd();
            
$assets_headlines = $responsiveSearchAdInfo->getHeadlines();

foreach($assets_headlines as $asset){
        echo $asset->getText();
}

On Monday, 18 July 2022 at 14:19:56 UTC+3 adsapi wrote:

> Hi Mahir,
>
> Thank you for raising this concern to the Google Ads API support team.
>
> With regard to your concern, you can use this code 
> <https://developers.google.com/google-ads/api/docs/samples/get-responsive-search-ads#php>
>  as 
> reference in Google Ads API. However, if the issue is still persisting I 
> would suggest you reach out to the author of the PHP client library to get 
> help here. You can reach out to them via the PHP issues tracker on github 
> <https://github.com/googleads/google-ads-php/issues> to get further 
> assistance here as they are more equipped for this matter.
>
> Best regards,
> [image: Google Logo] 
> Jinky 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2cX3bf: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/5d9962a5-e7b3-4aac-83b9-490e7662e1b3n%40googlegroups.com.
  • I ... ma...@sumer.me
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... ma...@sumer.me
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to