RE: I can't get Responsive Search Ads Headlines and Descriptions

2022-07-18 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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 reach out to 
them via the PHP issues tracker on github to get further assistance here as 
they are more equipped for this matter.

Best regards,

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/4IqpK0RF7RNF00GfWW4YOtT5KaVq2bVdNTuA%40sfdc.net.


Re: I can't get Responsive Search Ads Headlines and Descriptions

2022-07-18 Thread ma...@sumer.me
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 
> 
>  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 
>  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.


RE: I can't get Responsive Search Ads Headlines and Descriptions

2022-07-18 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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. You can reach out to 
them via the PHP issues tracker on github to get further assistance here as 
they are more equipped for this matter.

Best regards,

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/-CzY-0RF7RGO00Uy4iTJylTHOohkxl9Xwv0A%40sfdc.net.


I can't get Responsive Search Ads Headlines and Descriptions

2022-07-18 Thread ma...@sumer.me
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.