Hi Javier,

Could you try the following to get the average CPC? 

$average_cpc =
($data[AttributeType::AVERAGE_CPC]->getValue() !== null)
? $data[AttributeType::AVERAGE_CPC]->getValue() : 0; 

The resulting attribute is a MoneyAttribute 
<https://developers.google.com/adwords/api/docs/reference/v201702/TargetingIdeaService.MoneyAttribute.html>
 and 
you can retrieve the microAmount from this attribute. 

Regards,
Shwetha, 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 [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/3290d83f-c236-48fa-bd11-0e10d27ba2b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Problems gettin... Javier Martinez
    • Re: Proble... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to