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 memory size of 134217728 bytes exhausted (tried to allocate 58724352 bytes)...
How can i get all texts?
Note: I tried upgrade memory and try sample code like this:
$responsiveSearchAdInfo = $ad->getResponsiveSearchAd();
printf(
'Headlines:%1$s%2$sDescriptions:%1$s%3$s%1$s',
PHP_EOL,
self::convertAdTextAssetsToString($responsiveSearchAdInfo->getHeadlines()),
self::convertAdTextAssetsToString($responsiveSearchAdInfo->getDescriptions())
);