Thursday, 26 November 2015

Re: Object of class MonthlySearchVolume could not be converted to string

Hi Umesh! Thanks for your help =) finally the same day i can use this:

$var=print_r($monthlysearches['x'],true);
echo $var; 

To show the data about last 'x' months

=)

El martes, 24 de noviembre de 2015, 22:57:29 (UTC+1), Umesh Dengale escribió:
Hello,

The MonthlySearchVolumeAttribute.value is of type array of MonthlySearchVolume. The MonthlySearchVolume is a type and to access its properties (e.g countmonthyear etc.) you could specify like $monthlysearches[1].count.

Regards,
Umesh, AdWords API Team.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f1a30554-8e15-47f3-8257-6aec1dd8c1e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment