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())

);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8ae4db52-7ee9-4eaf-bc00-211c462c6da7n%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