I have a problem getting averge_CPC attribute with Get keyword Ideas class.
For each suggested keyword I try to request average_CPC. Result is an three
arguments object. I only need microAmount value. Then I want to save it on
other variable but I can,t. Log tells to me that I can't access to
protected object. What can I do?
PHPexample
$average_cpc =
($data[AttributeType::SEARCH_VOLUME]->getValue() !== null)
? $data[AttributeType::SEARCH_VOLUME]->getValue() : 0;
$cpc_suggested = $average_cpc->microAmount;
Regards
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/a2933232-48fb-4b34-86ee-be54f1973d80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.