Hi Joseph, The value of getMin() in this case is a LongValue, which has a "number" field that contains the actual number:
http://code.google.com/apis/adwords/v2009/docs/reference-v200909/TargetingIdeaService.LongValue.html The documentation is a great resource and you can use it to find out the answers to many of your questions. Best, - Eric On Jul 20, 9:37 am, joseph feygin <iosif.feyg...@gmail.com> wrote: > Hi Eric, > > I still have strange numbers - > > com.google.api.adwords.v200909.cm.longva...@8432ef49 > com.google.api.adwords.v200909.cm.longva...@194c92ef > > Do I have to convert it to other type? > > This is what I have in my code: > > if (data[i].getKey().equals( > AttributeType.APPROX_CONTENT_IMPRESSIONS_PER_DAY)) { > > Range range = new Range(); > range = ((LongRangeAttribute) data[i].getValue()).getValue(); > System.out.println(range.getMin()); > > System.out.println(range.getMax()); > .................................... > .................................... > > Thanks, > Iosif. > > On Jul 19, 5:32 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > wrote: > > > > > Hi Joseph, > > > It should be range.getMin() and range.getMax using the Java client > > library. > > > Best, > > - Eric > > > On Jul 19, 10:48 am, josephfeygin<iosif.feyg...@gmail.com> wrote: > > > > Hi Eric, > > > > This is my problem I can not extract min and max Values from Range. > > > > Could you please give me an example or methods that I have to use? > > > > Thanks, > > > Iosif. > > > > On Jul 16, 5:07 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > > > wrote: > > > > > 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/Targ... > > > > http://code.google.com/apis/adwords/v2009/docs/reference-v200909/Targ... > > > > > Best, > > > > - Eric Koleda, AdWords API Team > > > > > On Jul 15, 10:20 am, josephfeygin<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)) {- Hide quoted > > > > > text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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