Hi Joseph,

APPROX_CONTENT_IMPRESSIONS_PER_DAY is a LongRangeAttribute, and the
value of this type of attribute is a Range, not a number:

 
http://code.google.com/apis/adwords/v2009/docs/reference-v200909/TargetingIdeaService.AttributeType.html#APPROX_CONTENT_IMPRESSIONS_PER_DAY
  
http://code.google.com/apis/adwords/v2009/docs/reference-v200909/TargetingIdeaService.LongRangeAttribute.html

Best,
- Eric Koleda, AdWords API Team

On Jul 15, 10:20 am, joseph feygin <iosif.feyg...@gmail.com> wrote:
> I try to get aapprox_content_impressions_per_day for placement. It
> returns very srange values like:
> com.google.api.adwords.v200909.o.ra...@7e954957
>
> This is extract from my code. Any Ideas? Please Help.
>
>                       if (page.getEntries() != null &&
> page.getEntries().length > 0) {
>                                 for (TargetingIdea targetingIdea :
> page.getEntries()) {
>                                         System.out.println("New Line
> Feygin.");
>                                         Type_AttributeMapEntry[] data
> = targetingIdea.getData();
>                                         KeyWordsItem item = new
> KeyWordsItem();
>                                         for (int i = 0; i <
> data.length; i++) {
>
> System.out.println(data[i].getKey());
>                                                 if
> (data[i].getKey().equal(                                                      
>            AttributeType.APPROX_CONTENT_IMPRESSIONS_PER_DAY))
> {
>
> System.out.println(((LongRangeAttribute)
> data[i].getValue()).getValue());
>                                                 }
>                                                else if
> (data[i].getKey().equals(AttributeType.PLACEMENT)) {

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to