Hi Joseph,

When you request multiple attributes targetingIdea.getData() will
contain more than one value.  The attribute for
AVERAGE_TARGETED_MONTHLY_SEARCHES will contain the information you
need.

Best,
- Eric

On May 11, 3:24 pm, iosif feygin <iosif.fey...@gmail.com> wrote:
> Hi Eric,
>
> My problem is - also to dispaly "average search volume". I see methods
> - keyword.getText(), keyword.getMatchType(). What do I have to use for
> "average search Volume".
>
> I would really appreciate if you can give me advice how to modify
> this:
>
>      // Display related keywords.
>     if (page.getEntries() != null && page.getEntries().length > 0) {
>       for (TargetingIdea targetingIdea : page.getEntries()) {
>         keyword = ((KeywordAttribute) targetingIdea.getData()
> [0].getValue()).getValue();
>         System.out.println("Keyword with text \"" + keyword.getText()
> + "\" and match type \""
>             + keyword.getMatchType() + "\" was found.");
>       }
>     } else {
>       System.out.println("No related keywords were found.");
>     }
>
> Thank you very much.
> Joseph.
> On May 5, 2:57 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
>
>
>
>
> > Hi Joseph,
>
> > You need to modify the following line:
>
> >   selector.setRequestedAttributeTypes(new AttributeType[]
> > {AttributeType.KEYWORD});
>
> > to be:
>
> >   selector.setRequestedAttributeTypes(new AttributeType[]
> > {AttributeType.KEYWORD,
> > AttributeType.AVERAGE_TARGETED_MONTHLY_SEARCHES});
>
> > This will add an additional attribute to targetingIdea.getData(),
> > which will contain the average search volume.
>
> > Best,
> > - Eric
>
> > On May 4, 1:21 pm,iosif feygin<iosif.fey...@gmail.com> wrote:
>
> > > Hi Eric,
>
> > > This is from My Code (it is - your example to find related keywords).
> > > Where I have to put -
> > > AVERAGE_TARGETED_MONTHLY_SEARCHES. Is it will give extra fields for a
> > > volume?. I can not see volume class in keyword.java in library. Is it
> > > possible to give a full example? I think it can be usefull for many
> > > people.
>
> > >              TargetingIdeaSelector selector = new
> > > TargetingIdeaSelector();
> > >              selector.setRequestType(RequestType.IDEAS);
> > >              selector.setIdeaType(IdeaType.KEYWORD);
> > >              selector.setRequestedAttributeTypes(new AttributeType[]
> > > {AttributeType.KEYWORD});
>
> > >              // Set selector paging (required for targeting idea
> > > serivce).
> > >              Paging paging = new Paging();
> > >              paging.setStartIndex(0);
> > >              paging.setNumberResults(10);
> > >              selector.setPaging(paging);
>
> > >              // Create related to keyword search parameter.
> > >              RelatedToKeywordSearchParameter
> > > relatedToKeywordSearchParameter =
> > >                  new RelatedToKeywordSearchParameter();
> > >              relatedToKeywordSearchParameter.setKeywords(new Keyword[]
> > > {keyword});
> > >              selector.setSearchParameters(new SearchParameter[]
> > > {relatedToKeywordSearchParameter});
>
> > >              // Get related keywords.
> > >              TargetingIdeaPage page =
> > > targetingIdeaService.get(selector);
>
> > >              // Display related keywords.
> > >              if (page.getEntries() != null && page.getEntries().length> 
> > > 0) {
>
> > >                  for (TargetingIdea targetingIdea : page.getEntries())
> > > {
>
> > >                    keyword = ((KeywordAttribute)
> > > targetingIdea.getData()[0].getValue()).getValue();
> > >                    System.out.println("Keyword with text \"" +
> > > keyword.getText() + "\" and match type \""
> > >                       + keyword.getMatchType() + "\" was found.");
>
> > > On Apr 28, 2:59 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > wrote:
>
> > > > My apologies,
>
> > > > The URL I included had a typo.  The correct URL is:
>
> > > >  http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde...
>
> > > > Best,
> > > > - Eric
>
> > > > On Apr 28, 2:58 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > > wrote:
>
> > > > > Hi Joseph,
>
> > > > > You can get this information using the AttributeTypes
> > > > > AVERAGE_TARGETED_MONTHLY_SEARCHES, GLOBAL_MONTHLY_SEARCHES, or
> > > > > TARGETED_MONTHLY_SEARCHES.
>
> > > > >  http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde...
>
> > > > > Best,
> > > > > - Eric Koleda, AdWords API Team
>
> > > > > On Apr 27, 10:51 am,iosif feygin<iosif.fey...@gmail.com> wrote:
>
> > > > > > I am using java Code from the example getRelatedKeywords.java. This
> > > > > > example returns a list of keywords. Is it possible to get a 
> > > > > > statistic
> > > > > > about these keywords (the volume per month)?
>
> > > > > > Thanks,
> > > > > > Joseph.
>
> > > > > > --
> > > > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > > > > Have you migrated to v200909 yet?
> > > > > > The v13 sunset is on April 22, 2010.
>
> > > > > > Also find us on our blog and discussion 
> > > > > > group:http://adwordsapi.blogspot.comhttp://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 
> > > > > > athttp://groups.google.com/group/adwords-api?hl=en
>
> > > > > --
> > > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > > > Have you migrated to v200909 yet?
> > > > > The v13 sunset is on April 22, 2010.
>
> > > > > Also find us on our blog and discussion 
> > > > > group:http://adwordsapi.blogspot.comhttp://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 
> > > > > athttp://groups.google.com/group/adwords-api?hl=en
>
> > > > --
> > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > > Have you migrated to v200909 yet?
> > > > The v13 sunset is on April 22, 2010.
>
> > > > Also find us on our blog and discussion 
> > > > group:http://adwordsapi.blogspot.comhttp://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 
> > > > athttp://groups.google.com/group/adwords-api?hl=en-Hidequotedtext -
>
> > > > - Show quoted text -
>
> > > --
> > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > Also find us on our blog and discussion 
> > > group:http://adwordsapi.blogspot.comhttp://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 
> > > athttp://groups.google.com/group/adwords-api?hl=en
>
> > --
> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > Also find us on our blog and discussion 
> > group:http://adwordsapi.blogspot.comhttp://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 
> > athttp://groups.google.com/group/adwords-api?hl=en-Hide quoted text -
>
> > - Show quoted text -
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion 
> group:http://adwordsapi.blogspot.comhttp://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 
> athttp://groups.google.com/group/adwords-api?hl=en

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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