Hi Mahir,
Thank you for raising this concern to the Google Ads API Forum.
With regard to your concern, you can use this code 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
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 Mon
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 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. Y
Hi,
I am using PHP Client Library. I get every metric, resource etc. except
responsive search ads headlines and descriptions.
When i run this code sample i get an error like this:
print_r($googleAdsRow->getAdGroupAd()->getAd()->getResponsiveSearchAd()->getHeadlines());
*Fatal error*: Allowed m