How to get Volume (statistical information) about Keywords.

50 views
Skip to first unread message

iosif feygin

unread,
Apr 27, 2010, 10:51:07 AM4/27/10
to AdWords API Forum
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.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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

AdWords API Advisor

unread,
Apr 28, 2010, 2:58:41 PM4/28/10
to AdWords API Forum
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/TargetingIdeaService.AttributeType.html3

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

AdWords API Advisor

unread,
Apr 28, 2010, 2:59:54 PM4/28/10
to AdWords API Forum
My apologies,

The URL I included had a typo. The correct URL is:

http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIdeaService.AttributeType.html

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...

iosif feygin

unread,
May 4, 2010, 1:21:02 PM5/4/10
to AdWords API Forum
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
>
> For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en- Hide quoted text -
>
> - Show quoted text -

--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

AdWords API Advisor

unread,
May 5, 2010, 2:57:59 PM5/5/10
to AdWords API Forum
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
> > 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 adwor...@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en

--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

iosif feygin

unread,
May 11, 2010, 3:24:04 PM5/11/10
to AdWords API Forum
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
>
> > > For more options, visit this group athttp://groups.google.com/group/adwords-api?hl=en-Hidequoted 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 adwor...@googlegroups.com
> > To unsubscribe from this group, send email to
> > adwords-api...@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 adwor...@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api...@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:

AdWords API Advisor

unread,
May 12, 2010, 11:18:58 AM5/12/10
to AdWords API Forum
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
> > > > 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 adwor...@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > adwords-api...@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 adwor...@googlegroups.com
> > To unsubscribe from this group, send email to
> > adwords-api...@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 adwor...@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api...@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:

iosif feygin

unread,
May 12, 2010, 2:15:22 PM5/12/10
to AdWords API Forum
Hi Eric,

Thank you very much. It works.

Joseph.
Reply all
Reply to author
Forward
0 new messages