Re: implement RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2019-06-18 Thread Best Dev
Hi peter,
Good day to you!

I have already solved that issue. It's working well.

Best regards!!!

On Tuesday, June 18, 2019 at 9:55:50 AM UTC+8, Best Dev wrote:
>
> Greetings, Adwords Team!
>
> I'm trying to implement RelatedToUrlSearchParameter as Targeting idea.
>
> It's working well with keywords parameters But nothing got when I try this 
> with URL parameter in PHP.
>
> The only response is an empty array.
>
> Below is some code base for Targeting idea.
>
> $selector = new TargetingIdeaSelector();
> $selector->setRequestType(\Google\AdsApi\AdWords\v201809\o\RequestType::
> IDEAS);
> $selector->setIdeaType(\Google\AdsApi\AdWords\v201809\o\IdeaType::KEYWORD
> );
>
> $selector->setRequestedAttributeTypes(self::attributes);
>
> $searchParameters = [];
> $relatedToQuerySearchParameter = new 
> \Google\AdsApi\AdWords\v201809\o\RelatedToQuerySearchParameter();
> $relatedToUrlSearchParameter = new 
> \Google\AdsApi\AdWords\v201809\o\RelatedToUrlSearchParameter();
>
>
> if (is_string($query)) {
> $query = explode(',', $query);
> $query = array_map(function ($item) {
> return trim($item);
> }, $query);
> }
> $relatedToQuerySearchParameter->setQueries($query);
> $searchParameters[] = $relatedToQuerySearchParameter;
>
> $relatedToUrlSearchParameter->setUrls(['https://sellerseo.com']);
> $searchParameters[] = $relatedToUrlSearchParameter;
>
> $selector->setSearchParameters($searchParameters);
>
>
> Could you please help me to fix this issue?
> Thanks in advance!
>
> Best regards!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f070c8ab-7a5d-43ea-bf17-faf760d674e2%40googlegroups.com.


RE: implement RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2019-06-18 Thread Google Ads API Forum Advisor Prod
Hi,

Could you confirm if you also tried a similar request using the Keyword Planner 
and were the results the same or were there any discrepancies? If the results 
between your API and Keyword Planner requests are the same then it would mean 
that it is the intended output.

However, in the event that there are indeed discrepancies between the results, 
could you provide to me the Keyword Planner screenshot and the complete SOAP 
request and response logs so I can further investigate? You may send to the 
said details via the Reply privately to author option.

Thanks and regards,
Peter
Google Ads API Team
ref:_00D1U1174p._5001UBnsA6:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/L-ADq0PTA6RN0071_yEg06RtCUAXHzFY3NaQ%40sfdc.net.


implement RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2019-06-17 Thread Best Dev
Greetings, Adwords Team!

I'm trying to implement RelatedToUrlSearchParameter as Targeting idea.

It's working well with keywords parameters But nothing got when I try this 
with URL parameter in PHP.

The only response is an empty array.

Below is some code base for Targeting idea.

$selector = new TargetingIdeaSelector();
$selector->setRequestType(\Google\AdsApi\AdWords\v201809\o\RequestType::
IDEAS);
$selector->setIdeaType(\Google\AdsApi\AdWords\v201809\o\IdeaType::KEYWORD);

$selector->setRequestedAttributeTypes(self::attributes);

$searchParameters = [];
$relatedToQuerySearchParameter = new 
\Google\AdsApi\AdWords\v201809\o\RelatedToQuerySearchParameter();
$relatedToUrlSearchParameter = new 
\Google\AdsApi\AdWords\v201809\o\RelatedToUrlSearchParameter();


if (is_string($query)) {
$query = explode(',', $query);
$query = array_map(function ($item) {
return trim($item);
}, $query);
}
$relatedToQuerySearchParameter->setQueries($query);
$searchParameters[] = $relatedToQuerySearchParameter;

$relatedToUrlSearchParameter->setUrls(['https://sellerseo.com']);
$searchParameters[] = $relatedToUrlSearchParameter;

$selector->setSearchParameters($searchParameters);


Could you please help me to fix this issue?
Thanks in advance!

Best regards!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/96621a90-71bc-4b94-be39-b4b8ece34508%40googlegroups.com.


Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2014-12-22 Thread Evgeni
Hi,

I'm facing the same issue with v201409 version. Am I missing something or 
it wasn't changed yet?
Thanks in advance!


On Tuesday, October 8, 2013 5:15:03 PM UTC+3, Danial Klimkin wrote:

 Hello KG,


 Yes, this is the expected behavior. I've logged Display Planner support as 
 a feature request and it will be considered for the future API versions.


 -Danial, AdWords API Team.


 On Tuesday, October 8, 2013 12:37:18 PM UTC+4, KG wrote:

 I see. That explains it. I just tried Keyword Planner and see the same 
 results.

 Could you please tell me if it's expected for different URLs on the name 
 domain to return the same set of keywords?

 Basically, with the Display Planner, the resulting keywords differ based 
 on the theme of the page (as shown in my example).
 But with the Keyword Planner, I get the same set of keywords for 
 different URLs on a domain.

 It differs for pages/sections of very large websites, but for smaller 
 sites I get the same keywords.

 It most definitely used to be different in the past.I remember because I 
 used to rely on this functionality during my keyword research, and it was 
 extremely helpful.

 Could you please confirm that this (the same keywords for different 
 pages) is the expected behavior and is not likely to change in the (near) 
 future?

 Don't get me wrong, I'm not complaining. I just want to try and plan out 
 how to use this part of the API going forward. Given the current 
 information.

 And of course, I'll wait for the possibility of the addition of the 
 Display Planner to the API.

 Thanks for the info. I appreciate it.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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
--- 
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5bd4fe1b-057d-4248-a850-53214e9e491a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-10-08 Thread KG
I see. That explains it. I just tried Keyword Planner and see the same 
results.

Could you please tell me if it's expected for different URLs on the name 
domain to return the same set of keywords?

Basically, with the Display Planner, the resulting keywords differ based on 
the theme of the page (as shown in my example).
But with the Keyword Planner, I get the same set of keywords for different 
URLs on a domain.

It differs for pages/sections of very large websites, but for smaller sites 
I get the same keywords.

It most definitely used to be different in the past.I remember because I 
used to rely on this functionality during my keyword research, and it was 
extremely helpful.

Could you please confirm that this (the same keywords for different pages) 
is the expected behavior and is not likely to change in the (near) future?

Don't get me wrong, I'm not complaining. I just want to try and plan out 
how to use this part of the API going forward. Given the current 
information.

And of course, I'll wait for the possibility of the addition of the Display 
Planner to the API.

Thanks for the info. I appreciate it.

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

--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-10-08 Thread Danial Klimkin
Hello KG,


Yes, this is the expected behavior. I've logged Display Planner support as 
a feature request and it will be considered for the future API versions.


-Danial, AdWords API Team.


On Tuesday, October 8, 2013 12:37:18 PM UTC+4, KG wrote:

 I see. That explains it. I just tried Keyword Planner and see the same 
 results.

 Could you please tell me if it's expected for different URLs on the name 
 domain to return the same set of keywords?

 Basically, with the Display Planner, the resulting keywords differ based 
 on the theme of the page (as shown in my example).
 But with the Keyword Planner, I get the same set of keywords for different 
 URLs on a domain.

 It differs for pages/sections of very large websites, but for smaller 
 sites I get the same keywords.

 It most definitely used to be different in the past.I remember because I 
 used to rely on this functionality during my keyword research, and it was 
 extremely helpful.

 Could you please confirm that this (the same keywords for different pages) 
 is the expected behavior and is not likely to change in the (near) future?

 Don't get me wrong, I'm not complaining. I just want to try and plan out 
 how to use this part of the API going forward. Given the current 
 information.

 And of course, I'll wait for the possibility of the addition of the 
 Display Planner to the API.

 Thanks for the info. I appreciate it.


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

--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-09-20 Thread Danial Klimkin
Hello Konstantin,


I've checked with the team and we found this is expected behavior. TIS 
currently is the API version of Keyword Planner available in the UI. 
Comparing TIS and KP results, they fully match.

We currently don't have Display Planner functionality in the API. I'll 
check if we can introduce it in the future versions.


-Danial, AdWords API Team.


On Monday, September 16, 2013 4:12:50 PM UTC+4, KG wrote:

 Thanks for getting back to me.
 Here is an example.

 ===***===
 URL #1:
 http://www.uglyhedgehog.com/
 (a home page of a photography forum)

 Top 10 (or first 10) keywords returned by the API:
 a canon 7d
 buy canon 60d
 canon 7d pricing
 photography editing programs
 buy a canon 60d
 canon 60d buy
 canon 7d prices
 price canon 7d
 canon 7d cost
 photo editing software programs

 Keywords returned by Display Planner:
 photography photo gallery
 photography wedding photographer
 photography
 photograph photography
 photos photo
 royalty free photo images
 photographers family photography
 photography contest
 art photography prints
 wildlife photography contest

 screenshot of the Display Planner page:
 http://www.goudkov.com/temp/aw-api-kw-ideas-01.png

 ===***===
 URL #2:
 http://www.uglyhedgehog.com/t-147398-1.html
 (a thread discussing UV filters)

 keywords returned by the API:
 a canon 7d
 buy canon 60d
 canon 7d pricing
 photography editing programs
 buy a canon 60d
 canon 60d buy
 canon 7d prices
 price canon 7d
 canon 7d cost
 photo editing software programs

 Keywords returned by Display Planner:
 hoya uv filter review
 uv filter review
 camera uv filters
 nikon uv filters
 hoya 55mm uv filter
 hoya uv filter 62mm
 hoya 62mm uv filter
 tiffen uv filter
 uv filter 55 mm
 uv filter 72 mm

 screenshot of the Display Planner page:
 http://www.goudkov.com/temp/aw-api-kw-ideas-02.png

 ===***===
 URL #3:
 http://www.uglyhedgehog.com/t-148205-1.html
 (a thread discussing graphics editors, gimp in particular)

 keywords returned by the API:
 a canon 7d
 buy canon 60d
 canon 7d pricing
 photography editing programs
 buy a canon 60d
 canon 60d buy
 canon 7d prices
 price canon 7d
 canon 7d cost
 photo editing software programs

 Keywords returned by Display Planner:
 how to make gimp
 how to take good photos with a digital camera
 gimp how to
 how to do gimp
 how to use gimp
 photo editing gimp
 gimp photo editor
 how to take great pictures with a digital camera
 gimp crop image
 gimp

 screenshot of the Display Planner page:
 http://www.goudkov.com/temp/aw-api-kw-ideas-03.png


 =
 As you can see, Display Planner actually gets them right.
 The home page is vague, which is to be expected.
 But individual thread pages are right on spot.
 I just included the home page as well to show that the API always returns 
 the same set of keywords.
 In the past, the API always returned the keywords sorted according to 
 relevance.
 I haven't seen anything in the docs suggesting that it changed. So I'm 
 assuming, the API is still supposed to return the results based on 
 relevance, which is the default sort order for Display Planner too.
 Yet, we can see a discrepancy.
 ===
 Here is the relevant bits of code I use with the client library:

 String url=THE USR IS SUPPLIED HERE, ELSEWHER IN THE CODE;
 int maxResults=10; //just as a test

 TargetingIdeaSelector selector = new TargetingIdeaSelector();
 selector.setRequestType(RequestType.IDEAS);
 selector.setIdeaType(IdeaType.KEYWORD);
 selector.setRequestedAttributeTypes(new AttributeType[] { 
 AttributeType.KEYWORD_TEXT });

 RelatedToUrlSearchParameter relatedToUrlSearchParameter = new 
 RelatedToUrlSearchParameter();
 relatedToUrlSearchParameter.setUrls(new String[] { url });
 relatedToUrlSearchParameter.setIncludeSubUrls(false);

 //I'm assuming 2840 is the US
 LocationSearchParameter ctsp = new LocationSearchParameter();
 Location usLoc = new Location();
 usLoc.setId(new Long(2840));
 ctsp.setLocations(new Location[] { usLoc });

 //I'm assuming 1000 is English
 LanguageSearchParameter ltsp = new LanguageSearchParameter();
 Language englishLang = new Language();
 englishLang.setId(new Long(1000));
 ltsp.setLanguages(new Language[] { englishLang });

 selector.setSearchParameters(new SearchParameter[] { 
 relatedToUrlSearchParameter, ctsp, ltsp });

 Paging paging = new Paging();
 paging.setStartIndex(0);
 paging.setNumberResults(maxResults);
 selector.setPaging(paging);

 //tried either of the two methods, the same result
 TargetingIdeaPage page = targetingIdeaService.get(selector);
 //TargetingIdeaPage page = 
 targetingIdeaService.getBulkKeywordIdeas(selector);

 //outside code deals with the list
 List kwdList = new LinkedList();
 if (page.getEntries() != null  page.getEntries().length  0) {
 for (TargetingIdea targetingIdea : page.getEntries()) {
 kwdList.add(((StringAttribute) 
 targetingIdea.getData()[0].getValue()).getValue());
 }
 }
 return kwdList;



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find

Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-09-16 Thread Danial Klimkin
Hello KG,


To make sure we are looking at the same data, could you please provide a 
few API requests as an examples and corresponding UI screenshots showing 
different data?


-Danial, AdWords API Team.


On Thursday, September 12, 2013 3:03:52 PM UTC+4, KG wrote:

 Last year, I used RelatedToUrlSearchParameter with idea type KEYWORD when 
 doing keyword research. It worked great.

 It used to return results similar to what Display Planner returns, sorted 
 by relevance and for that specific URL (not for domain).

 These days, when I try it, it seems to return the same set of keywords for 
 different URLs on a domain.

 It returns different sets of keywords for different pages of large sites, 
 but it no longer works for smaller sites. (Not tiny, but smaller than, say, 
 NYtimes or Reddit or sites of that size.)

 For example, I would supply URLs like these:

 example.com/
 example.com/some-page
 example.com/another-page

 (at different runs not at the same time)

 But I would get the same set of keyword ideas for all those URLs. And the 
 content on those pages would be different.

 Trying, right now, Display Planner in Adwords provides the expected 
 results (different sets of keyword ideas for different pages on a site), 
 but Adwords API doesn't (the same keywords).

 Does anyone else see the same thing or is it something I'm doing wrong on 
 my end?






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

--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-09-16 Thread KG
Thanks for getting back to me.
Here is an example.

===***===
URL #1:
http://www.uglyhedgehog.com/
(a home page of a photography forum)

Top 10 (or first 10) keywords returned by the API:
a canon 7d
buy canon 60d
canon 7d pricing
photography editing programs
buy a canon 60d
canon 60d buy
canon 7d prices
price canon 7d
canon 7d cost
photo editing software programs

Keywords returned by Display Planner:
photography photo gallery
photography wedding photographer
photography
photograph photography
photos photo
royalty free photo images
photographers family photography
photography contest
art photography prints
wildlife photography contest

screenshot of the Display Planner page:
http://www.goudkov.com/temp/aw-api-kw-ideas-01.png

===***===
URL #2:
http://www.uglyhedgehog.com/t-147398-1.html
(a thread discussing UV filters)

keywords returned by the API:
a canon 7d
buy canon 60d
canon 7d pricing
photography editing programs
buy a canon 60d
canon 60d buy
canon 7d prices
price canon 7d
canon 7d cost
photo editing software programs

Keywords returned by Display Planner:
hoya uv filter review
uv filter review
camera uv filters
nikon uv filters
hoya 55mm uv filter
hoya uv filter 62mm
hoya 62mm uv filter
tiffen uv filter
uv filter 55 mm
uv filter 72 mm

screenshot of the Display Planner page:
http://www.goudkov.com/temp/aw-api-kw-ideas-02.png

===***===
URL #3:
http://www.uglyhedgehog.com/t-148205-1.html
(a thread discussing graphics editors, gimp in particular)

keywords returned by the API:
a canon 7d
buy canon 60d
canon 7d pricing
photography editing programs
buy a canon 60d
canon 60d buy
canon 7d prices
price canon 7d
canon 7d cost
photo editing software programs

Keywords returned by Display Planner:
how to make gimp
how to take good photos with a digital camera
gimp how to
how to do gimp
how to use gimp
photo editing gimp
gimp photo editor
how to take great pictures with a digital camera
gimp crop image
gimp

screenshot of the Display Planner page:
http://www.goudkov.com/temp/aw-api-kw-ideas-03.png


=
As you can see, Display Planner actually gets them right.
The home page is vague, which is to be expected.
But individual thread pages are right on spot.
I just included the home page as well to show that the API always returns 
the same set of keywords.
In the past, the API always returned the keywords sorted according to 
relevance.
I haven't seen anything in the docs suggesting that it changed. So I'm 
assuming, the API is still supposed to return the results based on 
relevance, which is the default sort order for Display Planner too.
Yet, we can see a discrepancy.
===
Here is the relevant bits of code I use with the client library:

String url=THE USR IS SUPPLIED HERE, ELSEWHER IN THE CODE;
int maxResults=10; //just as a test

TargetingIdeaSelector selector = new TargetingIdeaSelector();
selector.setRequestType(RequestType.IDEAS);
selector.setIdeaType(IdeaType.KEYWORD);
selector.setRequestedAttributeTypes(new AttributeType[] { 
AttributeType.KEYWORD_TEXT });

RelatedToUrlSearchParameter relatedToUrlSearchParameter = new 
RelatedToUrlSearchParameter();
relatedToUrlSearchParameter.setUrls(new String[] { url });
relatedToUrlSearchParameter.setIncludeSubUrls(false);

//I'm assuming 2840 is the US
LocationSearchParameter ctsp = new LocationSearchParameter();
Location usLoc = new Location();
usLoc.setId(new Long(2840));
ctsp.setLocations(new Location[] { usLoc });

//I'm assuming 1000 is English
LanguageSearchParameter ltsp = new LanguageSearchParameter();
Language englishLang = new Language();
englishLang.setId(new Long(1000));
ltsp.setLanguages(new Language[] { englishLang });

selector.setSearchParameters(new SearchParameter[] { 
relatedToUrlSearchParameter, ctsp, ltsp });

Paging paging = new Paging();
paging.setStartIndex(0);
paging.setNumberResults(maxResults);
selector.setPaging(paging);

//tried either of the two methods, the same result
TargetingIdeaPage page = targetingIdeaService.get(selector);
//TargetingIdeaPage page = 
targetingIdeaService.getBulkKeywordIdeas(selector);

//outside code deals with the list
List kwdList = new LinkedList();
if (page.getEntries() != null  page.getEntries().length  0) {
for (TargetingIdea targetingIdea : page.getEntries()) {
kwdList.add(((StringAttribute) 
targetingIdea.getData()[0].getValue()).getValue());
}
}
return kwdList;

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

--- 
You received this message because you are subscribed

Re: Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-09-16 Thread Danial Klimkin
Thanks for the detailed report. It looks like an issue, we'll look into it 
internally.


-Danial, AdWords API Team.


On Monday, September 16, 2013 4:12:50 PM UTC+4, KG wrote:

 Thanks for getting back to me.
 Here is an example.

 ===***===
 URL #1:
 http://www.uglyhedgehog.com/
 (a home page of a photography forum)

 Top 10 (or first 10) keywords returned by the API:
 a canon 7d
 buy canon 60d
 canon 7d pricing
 photography editing programs
 buy a canon 60d
 canon 60d buy
 canon 7d prices
 price canon 7d
 canon 7d cost
 photo editing software programs

 Keywords returned by Display Planner:
 photography photo gallery
 photography wedding photographer
 photography
 photograph photography
 photos photo
 royalty free photo images
 photographers family photography
 photography contest
 art photography prints
 wildlife photography contest

 screenshot of the Display Planner page:
 http://www.goudkov.com/temp/aw-api-kw-ideas-01.png

 ===***===
 URL #2:
 http://www.uglyhedgehog.com/t-147398-1.html
 (a thread discussing UV filters)

 keywords returned by the API:
 a canon 7d
 buy canon 60d
 canon 7d pricing
 photography editing programs
 buy a canon 60d
 canon 60d buy
 canon 7d prices
 price canon 7d
 canon 7d cost
 photo editing software programs

 Keywords returned by Display Planner:
 hoya uv filter review
 uv filter review
 camera uv filters
 nikon uv filters
 hoya 55mm uv filter
 hoya uv filter 62mm
 hoya 62mm uv filter
 tiffen uv filter
 uv filter 55 mm
 uv filter 72 mm

 screenshot of the Display Planner page:
 http://www.goudkov.com/temp/aw-api-kw-ideas-02.png

 ===***===
 URL #3:
 http://www.uglyhedgehog.com/t-148205-1.html
 (a thread discussing graphics editors, gimp in particular)

 keywords returned by the API:
 a canon 7d
 buy canon 60d
 canon 7d pricing
 photography editing programs
 buy a canon 60d
 canon 60d buy
 canon 7d prices
 price canon 7d
 canon 7d cost
 photo editing software programs

 Keywords returned by Display Planner:
 how to make gimp
 how to take good photos with a digital camera
 gimp how to
 how to do gimp
 how to use gimp
 photo editing gimp
 gimp photo editor
 how to take great pictures with a digital camera
 gimp crop image
 gimp

 screenshot of the Display Planner page:
 http://www.goudkov.com/temp/aw-api-kw-ideas-03.png


 =
 As you can see, Display Planner actually gets them right.
 The home page is vague, which is to be expected.
 But individual thread pages are right on spot.
 I just included the home page as well to show that the API always returns 
 the same set of keywords.
 In the past, the API always returned the keywords sorted according to 
 relevance.
 I haven't seen anything in the docs suggesting that it changed. So I'm 
 assuming, the API is still supposed to return the results based on 
 relevance, which is the default sort order for Display Planner too.
 Yet, we can see a discrepancy.
 ===
 Here is the relevant bits of code I use with the client library:

 String url=THE USR IS SUPPLIED HERE, ELSEWHER IN THE CODE;
 int maxResults=10; //just as a test

 TargetingIdeaSelector selector = new TargetingIdeaSelector();
 selector.setRequestType(RequestType.IDEAS);
 selector.setIdeaType(IdeaType.KEYWORD);
 selector.setRequestedAttributeTypes(new AttributeType[] { 
 AttributeType.KEYWORD_TEXT });

 RelatedToUrlSearchParameter relatedToUrlSearchParameter = new 
 RelatedToUrlSearchParameter();
 relatedToUrlSearchParameter.setUrls(new String[] { url });
 relatedToUrlSearchParameter.setIncludeSubUrls(false);

 //I'm assuming 2840 is the US
 LocationSearchParameter ctsp = new LocationSearchParameter();
 Location usLoc = new Location();
 usLoc.setId(new Long(2840));
 ctsp.setLocations(new Location[] { usLoc });

 //I'm assuming 1000 is English
 LanguageSearchParameter ltsp = new LanguageSearchParameter();
 Language englishLang = new Language();
 englishLang.setId(new Long(1000));
 ltsp.setLanguages(new Language[] { englishLang });

 selector.setSearchParameters(new SearchParameter[] { 
 relatedToUrlSearchParameter, ctsp, ltsp });

 Paging paging = new Paging();
 paging.setStartIndex(0);
 paging.setNumberResults(maxResults);
 selector.setPaging(paging);

 //tried either of the two methods, the same result
 TargetingIdeaPage page = targetingIdeaService.get(selector);
 //TargetingIdeaPage page = 
 targetingIdeaService.getBulkKeywordIdeas(selector);

 //outside code deals with the list
 List kwdList = new LinkedList();
 if (page.getEntries() != null  page.getEntries().length  0) {
 for (TargetingIdea targetingIdea : page.getEntries()) {
 kwdList.add(((StringAttribute) 
 targetingIdea.getData()[0].getValue()).getValue());
 }
 }
 return kwdList;



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

Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-09-13 Thread KG
Last year, I used 
RelatedToUrlSearchParameterhttps://developers.google.com/adwords/api/docs/reference/v201306/TargetingIdeaService.RelatedToUrlSearchParameter.htmlwith
 idea type KEYWORD when doing keyword research. It worked great.

It used to return results similar to what Display Planner returns, sorted 
by relevance and for that specific URL (not for domain).

These days, when I try it, it seems to return the same set of keywords for 
different URLs on a domain.

It returns different sets of keywords for different pages of large sites, 
but it no longer works for smaller sites. (Not tiny, but smaller than, say, 
NYtimes or Reddit or sites of that size.)

For example, I would supply URLs like these:

http://example.com/
http://example.com/some-page
http://example.com/another-page

(at different runs not at the same time)

But I would get the same set of keyword ideas for all those URLs. And the 
content on those pages would be different.

Trying, right now, Display Planner in Adwords provides the expected results 
(different sets of keyword ideas for different pages on a site), but 
Adwords API doesn't (the same keywords).

Does anyone else see the same thing or is it something I'm doing wrong on 
my end?



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

--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Targeting idea for RelatedToUrlSearchParameter returns the same keywords for different pages on a domain

2013-09-13 Thread KG
Last year, I used RelatedToUrlSearchParameter with idea type KEYWORD when 
doing keyword research. It worked great.

It used to return results similar to what Display Planner returns, sorted 
by relevance and for that specific URL (not for domain).

These days, when I try it, it seems to return the same set of keywords for 
different URLs on a domain.

It returns different sets of keywords for different pages of large sites, 
but it no longer works for smaller sites. (Not tiny, but smaller than, say, 
NYtimes or Reddit or sites of that size.)

For example, I would supply URLs like these:

http://example.com/
http://example.com/some-page
http://example.com/another-page

(at different runs not at the same time)

But I would get the same set of keyword ideas for all those URLs. And the 
content on those pages would be different.

Trying, right now, Display Planner in Adwords provides the expected results 
(different sets of keyword ideas for different pages on a site), but 
Adwords API doesn't (the same keywords).

Does anyone else see the same thing or is it something I'm doing wrong on 
my end?




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

--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: PHP API - TargetingIdeaService - RelatedToUrlSearchParameter - [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[2].includeSubUrls]

2012-07-24 Thread Alexander Nitschke
Hi Josh,

please look further down to the documentation for includeSubUrls. This 
one is ignored for KEYWORD queries, generally the KEYWORD idea query 
supports only one Url. But I think Kevin's link was misleading as he linked 
to the v201206 doc and your code is using v201109. Still, the documentation 
for this specific field hasn't changed. 

Alexander

Am Montag, 23. Juli 2012 19:57:30 UTC+2 schrieb Josh:

 Hi,

 thanks for the answer.

 Sorry I must be blind but the I don't see such mention in provided link, 
 the documentation states :

 - This element is supported by following 
 RequestTypehttps://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RequestType.htmls:
  
 IDEAS, STATS.  
 - This search parameter can be used in bulk keyword requests through the 
 TargetingIdeaService.getBulkKeywordIdeas(TargetingIdeaSelector)https://developers.google.com/adwords/api/docs/reference/v201109/TargetingIdeaService.html#getBulkKeywordIdeas%28TargetingIdeaSelector%29method

 I'm not using the Bulk Method but this parameter was also used to be 
 supported by versions prior to v201109



 Le lundi 23 juillet 2012 16:59:02 UTC+2, Kevin Winter a écrit :

 Hi,
   The documentation indicates that for KEYWORD requests (ideaType), this 
 field isn't supported: 
 https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RelatedToUrlSearchParameter#includeSubUrls

 - Kevin Winter
 AdWords API Team

 On Friday, June 22, 2012 8:02:25 AM UTC-4, Josh wrote:

 Hi,

 it looks as if the includeSubUrls parameter is not correctly supported 
 as I keep getting this error :

 [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
 selector.selector.searchParameters[2].includeSubUrls]

 My code is really straightforward :

   $targetingIdeaService = $user-GetTargetingIdeaService('v201109');
   // Create selector.
   $selector = new TargetingIdeaSelector();
   $selector-requestType = 'IDEAS';
   $selector-ideaType = 'KEYWORD';
   $selector-requestedAttributeTypes =
   array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
 'COMPETITION', 'NGRAM_GROUP');

   // Set selector paging (required for targeting idea service).
   $paging = new Paging();
   $paging-startIndex = 0;

 $paging-numberResults = 50;

 $search = new RelatedToUrlSearchParameter();
 $search-urls = 'www.foo.com';
 $search-includeSubUrls = true;



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


Re: PHP API - TargetingIdeaService - RelatedToUrlSearchParameter - [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[2].includeSubUrls]

2012-07-24 Thread Josh
Hi Alexander,

so can I assume or not the bulk method will allow for using includeSubUrls ?

Josh

Le mardi 24 juillet 2012 10:41:54 UTC+2, Alexander Nitschke a écrit :

 Hi Josh,

 please look further down to the documentation for includeSubUrls. This 
 one is ignored for KEYWORD queries, generally the KEYWORD idea query 
 supports only one Url. But I think Kevin's link was misleading as he linked 
 to the v201206 doc and your code is using v201109. Still, the documentation 
 for this specific field hasn't changed. 

 Alexander

 Am Montag, 23. Juli 2012 19:57:30 UTC+2 schrieb Josh:

 Hi,

 thanks for the answer.

 Sorry I must be blind but the I don't see such mention in provided link, 
 the documentation states :

 - This element is supported by following 
 RequestTypehttps://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RequestType.htmls:
  
 IDEAS, STATS.  
 - This search parameter can be used in bulk keyword requests through the 
 TargetingIdeaService.getBulkKeywordIdeas(TargetingIdeaSelector)https://developers.google.com/adwords/api/docs/reference/v201109/TargetingIdeaService.html#getBulkKeywordIdeas%28TargetingIdeaSelector%29method

 I'm not using the Bulk Method but this parameter was also used to be 
 supported by versions prior to v201109



 Le lundi 23 juillet 2012 16:59:02 UTC+2, Kevin Winter a écrit :

 Hi,
   The documentation indicates that for KEYWORD requests (ideaType), this 
 field isn't supported: 
 https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RelatedToUrlSearchParameter#includeSubUrls

 - Kevin Winter
 AdWords API Team

 On Friday, June 22, 2012 8:02:25 AM UTC-4, Josh wrote:

 Hi,

 it looks as if the includeSubUrls parameter is not correctly supported 
 as I keep getting this error :

 [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
 selector.selector.searchParameters[2].includeSubUrls]

 My code is really straightforward :

   $targetingIdeaService = $user-GetTargetingIdeaService('v201109');
   // Create selector.
   $selector = new TargetingIdeaSelector();
   $selector-requestType = 'IDEAS';
   $selector-ideaType = 'KEYWORD';
   $selector-requestedAttributeTypes =
   array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
 'COMPETITION', 'NGRAM_GROUP');

   // Set selector paging (required for targeting idea service).
   $paging = new Paging();
   $paging-startIndex = 0;

 $paging-numberResults = 50;

 $search = new RelatedToUrlSearchParameter();
 $search-urls = 'www.foo.com';
 $search-includeSubUrls = true;



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


Re: PHP API - TargetingIdeaService - RelatedToUrlSearchParameter - [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[2].includeSubUrls]

2012-07-24 Thread Kevin Winter
Hi Josh,
  The 
getBulkKeywordIdeashttps://developers.google.com/adwords/api/docs/reference/v201109/TargetingIdeaService#getBulkKeywordIdeas
 only 
returns keywords - since includeSubUrls doesn't work for keywords, you 
can't use it in bulk either.

- Kevin Winter
AdWords API Team

On Tuesday, July 24, 2012 2:26:17 PM UTC-4, Josh wrote:

 Hi Alexander,

 so can I assume or not the bulk method will allow for using includeSubUrls 
 ?

 Josh

 Le mardi 24 juillet 2012 10:41:54 UTC+2, Alexander Nitschke a écrit :

 Hi Josh,

 please look further down to the documentation for includeSubUrls. This 
 one is ignored for KEYWORD queries, generally the KEYWORD idea query 
 supports only one Url. But I think Kevin's link was misleading as he linked 
 to the v201206 doc and your code is using v201109. Still, the documentation 
 for this specific field hasn't changed. 

 Alexander

 Am Montag, 23. Juli 2012 19:57:30 UTC+2 schrieb Josh:

 Hi,

 thanks for the answer.

 Sorry I must be blind but the I don't see such mention in provided link, 
 the documentation states :

 - This element is supported by following 
 RequestTypehttps://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RequestType.htmls:
  
 IDEAS, STATS.  
 - This search parameter can be used in bulk keyword requests through 
 the 
 TargetingIdeaService.getBulkKeywordIdeas(TargetingIdeaSelector)https://developers.google.com/adwords/api/docs/reference/v201109/TargetingIdeaService.html#getBulkKeywordIdeas%28TargetingIdeaSelector%29method

 I'm not using the Bulk Method but this parameter was also used to be 
 supported by versions prior to v201109



 Le lundi 23 juillet 2012 16:59:02 UTC+2, Kevin Winter a écrit :

 Hi,
   The documentation indicates that for KEYWORD requests (ideaType), 
 this field isn't supported: 
 https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RelatedToUrlSearchParameter#includeSubUrls

 - Kevin Winter
 AdWords API Team

 On Friday, June 22, 2012 8:02:25 AM UTC-4, Josh wrote:

 Hi,

 it looks as if the includeSubUrls parameter is not correctly supported 
 as I keep getting this error :

 [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
 selector.selector.searchParameters[2].includeSubUrls]

 My code is really straightforward :

   $targetingIdeaService = $user-GetTargetingIdeaService('v201109');
   // Create selector.
   $selector = new TargetingIdeaSelector();
   $selector-requestType = 'IDEAS';
   $selector-ideaType = 'KEYWORD';
   $selector-requestedAttributeTypes =
   array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
 'COMPETITION', 'NGRAM_GROUP');

   // Set selector paging (required for targeting idea service).
   $paging = new Paging();
   $paging-startIndex = 0;

 $paging-numberResults = 50;

 $search = new RelatedToUrlSearchParameter();
 $search-urls = 'www.foo.com';
 $search-includeSubUrls = true;



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


Re: PHP API - TargetingIdeaService - RelatedToUrlSearchParameter - [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[2].includeSubUrls]

2012-07-23 Thread Kevin Winter
Hi,
  The documentation indicates that for KEYWORD requests (ideaType), this 
field isn't supported: 
https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RelatedToUrlSearchParameter#includeSubUrls

- Kevin Winter
AdWords API Team

On Friday, June 22, 2012 8:02:25 AM UTC-4, Josh wrote:

 Hi,

 it looks as if the includeSubUrls parameter is not correctly supported as 
 I keep getting this error :

 [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
 selector.selector.searchParameters[2].includeSubUrls]

 My code is really straightforward :

   $targetingIdeaService = $user-GetTargetingIdeaService('v201109');
   // Create selector.
   $selector = new TargetingIdeaSelector();
   $selector-requestType = 'IDEAS';
   $selector-ideaType = 'KEYWORD';
   $selector-requestedAttributeTypes =
   array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
 'COMPETITION', 'NGRAM_GROUP');

   // Set selector paging (required for targeting idea service).
   $paging = new Paging();
   $paging-startIndex = 0;

 $paging-numberResults = 50;

 $search = new RelatedToUrlSearchParameter();
 $search-urls = 'www.foo.com';
 $search-includeSubUrls = true;



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


Re: PHP API - TargetingIdeaService - RelatedToUrlSearchParameter - [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[2].includeSubUrls]

2012-07-23 Thread Josh
Hi,

thanks for the answer.

Sorry I must be blind but the I don't see such mention in provided link, 
the documentation states :

- This element is supported by following 
RequestTypehttps://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RequestType.htmls:
 
IDEAS, STATS.  
- This search parameter can be used in bulk keyword requests through the 
TargetingIdeaService.getBulkKeywordIdeas(TargetingIdeaSelector)https://developers.google.com/adwords/api/docs/reference/v201109/TargetingIdeaService.html#getBulkKeywordIdeas%28TargetingIdeaSelector%29method

I'm not using the Bulk Method but this parameter was also used to be 
supported by versions prior to v201109



Le lundi 23 juillet 2012 16:59:02 UTC+2, Kevin Winter a écrit :

 Hi,
   The documentation indicates that for KEYWORD requests (ideaType), this 
 field isn't supported: 
 https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RelatedToUrlSearchParameter#includeSubUrls

 - Kevin Winter
 AdWords API Team

 On Friday, June 22, 2012 8:02:25 AM UTC-4, Josh wrote:

 Hi,

 it looks as if the includeSubUrls parameter is not correctly supported as 
 I keep getting this error :

 [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
 selector.selector.searchParameters[2].includeSubUrls]

 My code is really straightforward :

   $targetingIdeaService = $user-GetTargetingIdeaService('v201109');
   // Create selector.
   $selector = new TargetingIdeaSelector();
   $selector-requestType = 'IDEAS';
   $selector-ideaType = 'KEYWORD';
   $selector-requestedAttributeTypes =
   array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
 'COMPETITION', 'NGRAM_GROUP');

   // Set selector paging (required for targeting idea service).
   $paging = new Paging();
   $paging-startIndex = 0;

 $paging-numberResults = 50;

 $search = new RelatedToUrlSearchParameter();
 $search-urls = 'www.foo.com';
 $search-includeSubUrls = true;



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


PHP API - TargetingIdeaService - RelatedToUrlSearchParameter - [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[2].includeSubUrls]

2012-06-22 Thread Josh
Hi,

it looks as if the includeSubUrls parameter is not correctly supported as I 
keep getting this error :

[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.selector.searchParameters[2].includeSubUrls]

My code is really straightforward :

  $targetingIdeaService = $user-GetTargetingIdeaService('v201109');
  // Create selector.
  $selector = new TargetingIdeaSelector();
  $selector-requestType = 'IDEAS';
  $selector-ideaType = 'KEYWORD';
  $selector-requestedAttributeTypes =
  array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', 
'COMPETITION', 'NGRAM_GROUP');

  // Set selector paging (required for targeting idea service).
  $paging = new Paging();
  $paging-startIndex = 0;

$paging-numberResults = 50;

$search = new RelatedToUrlSearchParameter();
$search-urls = 'www.foo.com';
$search-includeSubUrls = true;

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


Re: Getting error when using RelatedToUrlSearchParameter

2012-03-06 Thread Kevin Winter
Hi,
  I believe I responded to this complaint off-list.  I think the issue is 
that your RelatedToUrlSearchParameter is being constructed by passing in 
the string URL rather than an array of strings (as the 
RelatedToKeywordSearchParameter is).

- Kevin Winter
AdWords API Team

On Monday, March 5, 2012 9:22:45 AM UTC-5, Michael T wrote:

 Hi, could someone help? I need to use the RelatedToUrlSearchParameter to 
 limit my results by URL.

 Thanks!

 On Monday, February 27, 2012 4:04:25 PM UTC-7, Michael T wrote:

 Hi, I am trying to get some data using tergetingIdeaService with 
 keywords, url and country as the search parameters. The code works just 
 fine if I exclude the url.

 error: [CollectionSizeError.TOO_MANY @ 
 selector.selector.searchParameters[2].urls; errorDetails:actual: 1, max: 0]

 Any ideas?
 Thanks!

 Code:

   $keyword = new Keyword();
   $keyword-text = 'test';
   $keyword-matchType = 'BROAD';
   $keyword_array = array($keyword);

   $relatedToKeywordSearchParameter = new 
 RelatedToKeywordSearchParameter($keyword_array);

   $countryTargetSearchParameter = new LocationSearchParameter();

   $location1 = new location();
   $location1-id = '2840';

   $countryTargetSearchParameter-locations = array($location1);

  
   $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter('
 http://www.google.com/');

   $targetingIdeaSelector = new TargetingIdeaSelector();

   $targetingIdeaSelector-searchParameters = array(
 $relatedToUrlSearchParameter
 ,$relatedToKeywordSearchParameter
 ,$countryTargetSearchParameter
 );

   $targetingIdeaSelector-ideaType = 'KEYWORD';
   $targetingIdeaSelector-requestType = 'STATS';
   $targetingIdeaSelector-requestedAttributeTypes = 
 array('CRITERION','TARGETED_MONTHLY_SEARCHES');

   $targetingIdeaSelector-paging = new Paging(0,5);

   $page = $targetingIdeaService-get($targetingIdeaSelector);





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


Re: Getting error when using RelatedToUrlSearchParameter

2012-03-05 Thread Michael T
Hi, could someone help? I need to use the RelatedToUrlSearchParameter to 
limit my results by URL.

Thanks!

On Monday, February 27, 2012 4:04:25 PM UTC-7, Michael T wrote:

 Hi, I am trying to get some data using tergetingIdeaService with keywords, 
 url and country as the search parameters. The code works just fine if I 
 exclude the url.

 error: [CollectionSizeError.TOO_MANY @ 
 selector.selector.searchParameters[2].urls; errorDetails:actual: 1, max: 0]

 Any ideas?
 Thanks!

 Code:

   $keyword = new Keyword();
   $keyword-text = 'test';
   $keyword-matchType = 'BROAD';
   $keyword_array = array($keyword);

   $relatedToKeywordSearchParameter = new 
 RelatedToKeywordSearchParameter($keyword_array);

   $countryTargetSearchParameter = new LocationSearchParameter();

   $location1 = new location();
   $location1-id = '2840';

   $countryTargetSearchParameter-locations = array($location1);

  
   $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter('
 http://www.google.com/');

   $targetingIdeaSelector = new TargetingIdeaSelector();

   $targetingIdeaSelector-searchParameters = array(
 $relatedToUrlSearchParameter
 ,$relatedToKeywordSearchParameter
 ,$countryTargetSearchParameter
 );

   $targetingIdeaSelector-ideaType = 'KEYWORD';
   $targetingIdeaSelector-requestType = 'STATS';
   $targetingIdeaSelector-requestedAttributeTypes = 
 array('CRITERION','TARGETED_MONTHLY_SEARCHES');

   $targetingIdeaSelector-paging = new Paging(0,5);

   $page = $targetingIdeaService-get($targetingIdeaSelector);





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


Getting error when using RelatedToUrlSearchParameter

2012-02-27 Thread mtanj...@acronym.com
Hi, I am trying to get some data using tergetingIdeaService with keywords, 
url and country as the search parameters. The code works just fine if I 
exclude the url.

error: [CollectionSizeError.TOO_MANY @ 
selector.selector.searchParameters[2].urls; errorDetails:actual: 1, max: 0]

Any ideas?
Thanks!

Code:

  $keyword = new Keyword();
  $keyword-text = 'test';
  $keyword-matchType = 'BROAD';
  $keyword_array = array($keyword);

  $relatedToKeywordSearchParameter = new 
RelatedToKeywordSearchParameter($keyword_array);

  $countryTargetSearchParameter = new LocationSearchParameter();

  $location1 = new location();
  $location1-id = '2840';

  $countryTargetSearchParameter-locations = array($location1);

 
  $relatedToUrlSearchParameter = new 
RelatedToUrlSearchParameter('http://www.google.com/');

  $targetingIdeaSelector = new TargetingIdeaSelector();

  $targetingIdeaSelector-searchParameters = array(
$relatedToUrlSearchParameter
,$relatedToKeywordSearchParameter
,$countryTargetSearchParameter
);

  $targetingIdeaSelector-ideaType = 'KEYWORD';
  $targetingIdeaSelector-requestType = 'STATS';
  $targetingIdeaSelector-requestedAttributeTypes = 
array('CRITERION','TARGETED_MONTHLY_SEARCHES');

  $targetingIdeaSelector-paging = new Paging(0,5);

  $page = $targetingIdeaService-get($targetingIdeaSelector);



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


Re: Please help - RelatedToUrlSearchParameter

2011-07-25 Thread Eric Koleda
Hi All,

Please see this other thread for more information:

https://groups.google.com/d/msg/adwords-api/Nda-5sT4b7k/m7JAOEOFuggJ

Best,
- Eric Koleda, AdWords API Team

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


Re: RelatedToUrlSearchParameter

2011-07-20 Thread Kevin Winter
Hi,
  I think this is a change to the service itself.  If you load the keyword 
tool in the AdWords UI and use that URL, you will also only get 100 results.

- Kevin Winter
AdWords API Team

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


Re: RelatedToUrlSearchParameter

2011-07-20 Thread penaz
Thanks for your response.
Cheers, pen

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


Re: Please help - RelatedToUrlSearchParameter

2011-07-19 Thread David S
Hello..

Yes, I see this exact problem too.  I'm using v201101 with the 
aw_api_php_lib_2.6.3 lib.  To be sure it wasn't something in my code, I 
started a test from a clean slate and used the test script found at:
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201101/GetRelatedKeywords.php

With that script, I made the following changes only:
//get 300 results rather than 10
$paging = new Paging();
$paging-startIndex = 0;
$paging-numberResults = 300;
$selector-paging = $paging;

I then ran the script, and as expected, I got 300 results.  I then made the 
following minor changes:
//create relatedToUrl
$relatedToUrlSearchParameter = new RelatedToUrlSearchParameter();
$relatedToUrlSearchParameter-urls = array('http://www.intel.com/');

//use my new relatedToUrl search param rather than relatedToKeyword
//$selector-searchParameters = array($relatedToKeywordSearchParameter, 
$keywordMatchTypeSearchParameter);
$selector-searchParameters = array($relatedToUrlSearchParameter, 
$keywordMatchTypeSearchParameter);

I then ran the script again and only got 100 results!  Very strange indeed. 
 I dug a little further and inspected the TargetingIdeaPage object which is 
returned from the selector-get() method and discovered that the 
totalNumEntries property is actually set to 100:

TargetingIdeaPage Object
(
[totalNumEntries] = 100
[entries] = Array

At this point I think my code is setup correctly, and the data being 
returned is somehow being cutoff at 100 whenever I try to query for keyword 
ideas related to a URL.

Any ideas what is causing this?  My code was working fine up until about 1 
week ago when it suddenly started returning only 100 keyword ideas.  Any 
inputs would certainly be appreciated.

Thank you

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


Re: Please help - RelatedToUrlSearchParameter

2011-07-19 Thread David S
One other thing worth noting:  I ran my test case with the following php 
libs:

aw_api_php_lib_2.2.0
aw_api_php_lib_2.5.1
aw_api_php_lib_2.6.3

And against the following versions of targetingIdeaService:

v201003
v201008
v201101

And got the same results for all.  And in my previous post I forgot one 
additional change I made to the php code:
//$targetingIdeaService = $user-GetService('TargetingIdeaService', 
'v201101'); //this throws an error
$targetingIdeaService = $user-GetTargetingIdeaService('v201101');

Thanks again!

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


Re: Please help - RelatedToUrlSearchParameter

2011-07-19 Thread penaz
Thanks David
My programmer has tried a number of adjustments too. We still just keep 
getting 100 results.

Hopefully Eric will help ... he's resolved a number of issues in the past.
best,
pen

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


RelatedToUrlSearchParameter

2011-07-17 Thread penaz
In the past several days whenever we submit a RelatedToUrlSearchParameter 
query for a specific url, we are only getting max of 100 keyword ideas 
results.

Example:
We submit a URL: www.prettybabygifts.com and we get only 100 keyword ideas 
from that URL.  We've been getting 300 ideas.

Has something changed that we're unaware of?  I would appreciate any help in 
solving this issue.

Thanks.
 

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


Re: RelatedToUrlSearchParameter

2010-11-29 Thread AdWords API Advisor
Hi,

I'm not able to replicate the issue, as these URLs are returning the
same number of results as the UI.

- Eric

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/
envelope/ xmlns:v20=https://adwords.google.com/api/adwords/o/
v201008 xmlns:cm=https://adwords.google.com/api/adwords/cm/v201008;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   soapenv:Header
  v20:RequestHeader
 ... snip ...
  /v20:RequestHeader
   /soapenv:Header
   soapenv:Body
  v20:get
 v20:selector
v20:searchParameters
xsi:type=v20:RelatedToUrlSearchParameter
   v20:urlswww.prettybabygifts.com /v20:urls
/v20:searchParameters
v20:ideaTypeKEYWORD/v20:ideaType
v20:requestTypeIDEAS/v20:requestType
v20:requestedAttributeTypesKEYWORD/
v20:requestedAttributeTypes
v20:requestedAttributeTypesEXTRACTED_FROM_WEBPAGE/
v20:requestedAttributeTypes
v20:paging
   cm:startIndex0/cm:startIndex
   cm:numberResults300/cm:numberResults
/v20:paging
 /v20:selector
  /v20:get
   /soapenv:Body
/soapenv:Envelope

soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Header
  ResponseHeader xmlns:ns2=https://adwords.google.com/api/
adwords/cm/v201008 xmlns=https://adwords.google.com/api/adwords/o/
v201008
 ... snip ...
  /ResponseHeader
   /soap:Header
   soap:Body
  getResponse xmlns=https://adwords.google.com/api/adwords/o/
v201008 xmlns:ns2=https://adwords.google.com/api/adwords/cm/
v201008
 rval
totalNumEntries300/totalNumEntries
entries
   data
  keyEXTRACTED_FROM_WEBPAGE/key
  value xsi:type=WebpageDescriptorAttribute
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 Attribute.TypeWebpageDescriptorAttribute/
Attribute.Type
 value
urlhttp://www.prettybabygifts.com/baby-
shower-favor-boxes-gfvby001.html/url
titleJungle Animal Baby Shower Favor Boxes -
Set of 25 - $15.95, You Save 27%/title
 /value
  /value
   /data
   data
  keyKEYWORD/key
  value xsi:type=KeywordAttribute xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instance
 Attribute.TypeKeywordAttribute/Attribute.Type
 value
ns2:Criterion.TypeKeyword/
ns2:Criterion.Type
ns2:textjungle animal baby shower/ns2:text
ns2:matchTypeBROAD/ns2:matchType
 /value
  /value
   /data
/entries
   ... snip ...
 /rval
  /getResponse
   /soap:Body
/soap:Envelope

On Nov 23, 3:47 pm, penaz gbc...@cox.net wrote:
 Hi Eric,

 Thanks for your response. you asked for some examples.

 Some 
 examples:www.prettybabygifts.comwww.cornerstorkbabygifts.comwww.simplyuniquebabygifts.com

 In each case, we got 98 to 100 keywords from the API ... but 300 from
 the ExternalKeywordTool when I'm signed-in. We asked for linked pages
 as well.

 My question was simply: Can we get more than 98 to 100 keyword ideas
 from the RelatedToUrlSearchParameter ... because so far, that's all
 we're getting for ANY URL we submit via the API. I'm wondering if
 we're doing something wrong???

 (Note:www.example.comwas just for illustrative purposes.)

 thanks, pen
 ~~~

 On Nov 23, 10:02 am, AdWords API Advisor







 adwordsapiadvi...@google.com wrote:
  Hi,

  Forwww.example.comI'mseeing 111 results returned with both the API
  and the logged in UI.  Can you provide some specific examples where
  the number of results are different?

  Best,
  - Eric Koleda, AdWords API Team

  On Nov 18, 8:23 pm, penaz gbc...@cox.net wrote:

   I've read all the posts re: RelatedToUrlSearchParameter and I still
   can not find the info I'm requesting.

   When we submit a domain likewww.example.com, and request  keyword
   ideas we get prox 100 keywords.

   However, when I'm signed in and use The ExternalKeywordTool it gives
   300 keywords for the same domain.

   Can we get more than 100 results from this TargetingIdea service
   RelatedToUrlSearchParameter API request?

   If so, please provide a link to info.
   thanks.

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


Re: RelatedToUrlSearchParameter

2010-11-23 Thread penaz
Hi Eric,

Thanks for your response. you asked for some examples.

Some examples:
www.prettybabygifts.com
www.cornerstorkbabygifts.com
www.simplyuniquebabygifts.com

In each case, we got 98 to 100 keywords from the API ... but 300 from
the ExternalKeywordTool when I'm signed-in. We asked for linked pages
as well.

My question was simply: Can we get more than 98 to 100 keyword ideas
from the RelatedToUrlSearchParameter ... because so far, that's all
we're getting for ANY URL we submit via the API. I'm wondering if
we're doing something wrong???

(Note: www.example.com was just for illustrative purposes.)

thanks, pen
~~~


On Nov 23, 10:02 am, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 Hi,

 Forwww.example.comI'm seeing 111 results returned with both the API
 and the logged in UI.  Can you provide some specific examples where
 the number of results are different?

 Best,
 - Eric Koleda, AdWords API Team

 On Nov 18, 8:23 pm, penaz gbc...@cox.net wrote:



  I've read all the posts re: RelatedToUrlSearchParameter and I still
  can not find the info I'm requesting.

  When we submit a domain likewww.example.com, and request  keyword
  ideas we get prox 100 keywords.

  However, when I'm signed in and use The ExternalKeywordTool it gives
  300 keywords for the same domain.

  Can we get more than 100 results from this TargetingIdea service
  RelatedToUrlSearchParameter API request?

  If so, please provide a link to info.
  thanks.

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


Re: TargetingIdea service RelatedToUrlSearchParameter

2010-11-18 Thread AdWords API Advisor
Hi Penaz,

To address your questions:

1) Yes, this is correct.

2) Try using TargetingIdeaService.getBulkKeywordIdeas() instead
of .get().  It may return more results.

Best,
- Eric Koleda, AdWords API Team

On Nov 16, 3:55 pm, penaz gbc...@cox.net wrote:
 Hi
 2 Questions:

 Question 1:
 We're using the API to query for keywords found on a webpage and want
 to include keywords from linked pages.
      Example:  www.prettybabygifts.com

 We've set the 'includeSubUrls': 'True'

 Is this the correct way to get keywords from linked pages?  The
 default is False.

 Question 2:
 Even when we submit a domain likewww.simplyuniquebabygifts.com, we
 only get 98 to 100 keywords.
 The ExternalKeywordTool gives 300 keywords for the same domain (when
 I'm signed in).

 Why are we only getting 100 via the API???

 Are we submitting the request incorrectly?

 thanks.

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


RelatedToUrlSearchParameter

2010-11-18 Thread penaz
I've read all the posts re: RelatedToUrlSearchParameter and I still
can not find the info I'm requesting.

When we submit a domain like www.example.com, and request  keyword
ideas we get prox 100 keywords.

However, when I'm signed in and use The ExternalKeywordTool it gives
300 keywords for the same domain.

Can we get more than 100 results from this TargetingIdea service
RelatedToUrlSearchParameter API request?

If so, please provide a link to info.
thanks.

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


TargetingIdea service RelatedToUrlSearchParameter

2010-11-16 Thread penaz
Hi
2 Questions:

Question 1:
We're using the API to query for keywords found on a webpage and want
to include keywords from linked pages.
 Example:  www.prettybabygifts.com

We've set the 'includeSubUrls': 'True'

Is this the correct way to get keywords from linked pages?  The
default is False.

Question 2:
Even when we submit a domain like www.simplyuniquebabygifts.com, we
only get 98 to 100 keywords.
The ExternalKeywordTool gives 300 keywords for the same domain (when
I'm signed in).

Why are we only getting 100 via the API???

Are we submitting the request incorrectly?

thanks.


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


Re: TargetingIdea service RelatedToUrlSearchParameter

2010-08-17 Thread AdWords API Advisor
Hi,

The services uses Google's knowledge of the web to determine what
keywords are related to the web page at the URL specified.  You can
include just a domain or a full URL, and the results will be
customized to the content on that page.

Best,
- Eric Koleda, AdWords API Team

On Aug 13, 12:47 pm, grba agr...@gmail.com wrote:
 Hello,

 I was looking for more information about RelatedToUrlSearchParameter.

 Documentation says that when this is used, results will be related to
 theURL passed, but how exactly are they related, and also is it enough
 to pass the site URL, or even some more detailed URL can be used?

 If that is that case, what would the effect be of using a sub-URL?

 If there is already a post about this please let me know.

 Thanks!

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


TargetingIdea service RelatedToUrlSearchParameter

2010-08-13 Thread grba
Hello,

I was looking for more information about RelatedToUrlSearchParameter.

Documentation says that when this is used, results will be related to
theURL passed, but how exactly are they related, and also is it enough
to pass the site URL, or even some more detailed URL can be used?

If that is that case, what would the effect be of using a sub-URL?

If there is already a post about this please let me know.


Thanks!

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


AdWords API Re: RelatedToUrlSearchParameter

2010-04-09 Thread icecoke
Hi Eric,

many thanks for your response!
Ok, then, is it possible to receive data like from the free google
tool:
https://adwords.google.com/select/KeywordToolExternal
for a given URL?

Maybe I'm using the wrong API and google offers a different one?
I would be really pleased if you point me the right way!

Many thanks in advance,
Jimmy


On 7 Apr., 16:29, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Jimmy,

 The TargetingIdeaService doesn't support sorting of the results.

 Best,
 - Eric Koleda, AdWords API Team

 On Apr 7, 5:32 am, icecoke duengst...@hostnet.de wrote:



  anyone? Isn't it possible at all?

  Any suggestion is welcome!
  Jimmy- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

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


AdWords API Re: RelatedToUrlSearchParameter

2010-04-09 Thread AdWords API Advisor
Hi Jimmy,

The TargetingIdeaService can do this using the
RelatedToUrlSearchParameter.

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

Best,
- Eric

On Apr 9, 4:49 am, icecoke duengst...@hostnet.de wrote:
 Hi Eric,

 many thanks for your response!
 Ok, then, is it possible to receive data like from the free google
 tool:https://adwords.google.com/select/KeywordToolExternal
 for a given URL?

 Maybe I'm using the wrong API and google offers a different one?
 I would be really pleased if you point me the right way!

 Many thanks in advance,
 Jimmy

 On 7 Apr., 16:29, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:



  Hi Jimmy,

  The TargetingIdeaService doesn't support sorting of the results.

  Best,
  - Eric Koleda, AdWords API Team

  On Apr 7, 5:32 am, icecoke duengst...@hostnet.de wrote:

   anyone? Isn't it possible at all?

   Any suggestion is welcome!
   Jimmy- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -

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

To unsubscribe, reply using remove me as the subject.


AdWords API Re: RelatedToUrlSearchParameter

2010-04-07 Thread icecoke
anyone? Isn't it possible at all?

Any suggestion is welcome!
Jimmy

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

To unsubscribe, reply using remove me as the subject.


AdWords API Re: RelatedToUrlSearchParameter

2010-04-07 Thread AdWords API Advisor
Hi Jimmy,

The TargetingIdeaService doesn't support sorting of the results.

Best,
- Eric Koleda, AdWords API Team

On Apr 7, 5:32 am, icecoke duengst...@hostnet.de wrote:
 anyone? Isn't it possible at all?

 Any suggestion is welcome!
 Jimmy

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

To unsubscribe, reply using remove me as the subject.


AdWords API RelatedToUrlSearchParameter

2010-04-06 Thread icecoke
Hi there,

I'd like to have a way to retrieve the e.g. 'top ten' of keywords that
google saved for a specific URL. Sorted by relevance. I tried around
with RelatedToUrlSearchParameter, but it seems it is not sorted in any
way and there are 'many' suggestions with does not have to much to do
with the content of the URL. Is there a good way to see how google
sees an URL?

best regards,
jimmy

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

To unsubscribe, reply using remove me as the subject.


Re: AdWords API RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2010-03-22 Thread AdWords API Advisor
Hi,

Please see my response on your other thread:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/b65a608798caa7c8/

Best,
- Eric Koleda, AdWords API Team

On Mar 19, 11:02 am, shaselton shasel...@gmail.com wrote:
 Hello All,

 Right to the situation on hand...

 $url = 'www.example.com';

 $selector = new TargetingIdeaSelector();
 $selector-requestType = 'IDEAS';
 $selector-ideaType = 'KEYWORD';
 $selector-requestedAttributeTypes = array('KEYWORD');

 $paging = new Paging();
 $paging-startIndex = 0;
 $paging-numberResults = 21;
 $selector-paging = $paging;

 $relatedToKeywordSearchParameter = new RelatedToUrlSearchParameter();
 $relatedToKeywordSearchParameter-urls = array($url);
 $selector-searchParameters = array($relatedToKeywordSearchParameter);

 This returns 7 keywords of each matching type (exact, broad, and
 phrase)   ( 7 [keywords] * 3 [types] = 21 results)
 I am wanting only a single type (such as 'exact') of keyword returned
 on searching the url, so I will have 21 keywords of one type rather
 than 7.  Not quite sure how to do this on the
 RelatedToUrlSearchParameter.  I know it can be done with
 RelatedToKeywordSearchParameter, but that isn't my parameter.  Any
 ideas?  Thanks!

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


AdWords API RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2010-03-19 Thread shaselton
Hello All,

Right to the situation on hand...

$url = 'www.example.com';

$selector = new TargetingIdeaSelector();
$selector-requestType = 'IDEAS';
$selector-ideaType = 'KEYWORD';
$selector-requestedAttributeTypes = array('KEYWORD');

$paging = new Paging();
$paging-startIndex = 0;
$paging-numberResults = 21;
$selector-paging = $paging;

$relatedToKeywordSearchParameter = new RelatedToUrlSearchParameter();
$relatedToKeywordSearchParameter-urls = array($url);
$selector-searchParameters = array($relatedToKeywordSearchParameter);

This returns 7 keywords of each matching type (exact, broad, and
phrase)   ( 7 [keywords] * 3 [types] = 21 results)
I am wanting only a single type (such as 'exact') of keyword returned
on searching the url, so I will have 21 keywords of one type rather
than 7.  Not quite sure how to do this on the
RelatedToUrlSearchParameter.  I know it can be done with
RelatedToKeywordSearchParameter, but that isn't my parameter.  Any
ideas?  Thanks!

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


AdWords API Re: RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2010-03-19 Thread AdWords API Advisor
Hi,

This can be accomplished by using the KeywordMatchTypeSearchParameter:

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

Best,
- Eric Koleda, AdWords API Team

On Mar 18, 4:41 pm, shaselton shasel...@gmail.com wrote:
 Hello All,

 Right to the situation on hand...

 $url = 'www.example.com';

 $selector = new TargetingIdeaSelector();
 $selector-requestType = 'IDEAS';
 $selector-ideaType = 'KEYWORD';
 $selector-requestedAttributeTypes = array('KEYWORD');

 $paging = new Paging();
 $paging-startIndex = 0;
 $paging-numberResults = 21;
 $selector-paging = $paging;

 $relatedToKeywordSearchParameter = new RelatedToUrlSearchParameter();
 $relatedToKeywordSearchParameter-urls = array($url);
 $selector-searchParameters = array($relatedToKeywordSearchParameter);

 This returns 7 keywords of each matching type (exact, broad, and
 phrase)   ( 7 [keywords] * 3 [types] = 21 results)
 I am wanting only a single type (such as 'exact') of keyword returned
 on searching the url, so I will have 21 keywords of one type rather
 than 7.  Not quite sure how to do this on the
 RelatedToUrlSearchParameter.  I know it can be done with
 RelatedToKeywordSearchParameter, but that isn't my parameter.  Any
 ideas?  Thanks!

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


AdWords API RelatedToUrlSearchParameter--TargetingIdeaSelector (PHP)

2010-03-18 Thread shaselton
Hello All,

Right to the situation on hand...

$url = 'www.example.com';

$selector = new TargetingIdeaSelector();
$selector-requestType = 'IDEAS';
$selector-ideaType = 'KEYWORD';
$selector-requestedAttributeTypes = array('KEYWORD');

$paging = new Paging();
$paging-startIndex = 0;
$paging-numberResults = 21;
$selector-paging = $paging;

$relatedToKeywordSearchParameter = new RelatedToUrlSearchParameter();
$relatedToKeywordSearchParameter-urls = array($url);
$selector-searchParameters = array($relatedToKeywordSearchParameter);

This returns 7 keywords of each matching type (exact, broad, and
phrase)   ( 7 [keywords] * 3 [types] = 21 results)
I am wanting only a single type (such as 'exact') of keyword returned
on searching the url, so I will have 21 keywords of one type rather
than 7.  Not quite sure how to do this on the
RelatedToUrlSearchParameter.  I know it can be done with
RelatedToKeywordSearchParameter, but that isn't my parameter.  Any
ideas?  Thanks!

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


AdWords API Re: keyword matchtype for RelatedToUrlSearchParameter

2010-02-05 Thread AdWords API Advisor
Hi Ajit,

I've been able to use that parameter successfully.  Do you have the
SOAP XML of the failed request?

Best,
- Eric

On Feb 5, 11:33 am, Ajit ajitscor...@gmail.com wrote:
 I tried using that.. but then system just hangs up.. I never get
 response back from Google.

 On Feb 5, 11:08 am, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:



  Hi,

  You'll want to use the KeyworkMatchTypeSearchParameter:

   http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde...

  Best,
  - Eric Koleda, AdWords API Team

  On Feb 4, 12:24 pm, Ajit ajitscor...@gmail.com wrote:

   Hello team

   I am trying to get suggested keyword for a give website. it is working
   fine.. but I only want BROAD match type..

   is there a way to specify matchtype = BROAD for
   RelatedToUrlSearchParameter method.

   following is my code:

   related_search = @ti_srv.module::RelatedToUrlSearchParameter.new
         related_search.urls =http://yahoo.com#options[:urls]

         g =
   @ti_srv.module::AverageTargetedMonthlySearchesSearchParameter.new
         o = @ti_srv.module::LongComparisonOperation.new
         o.minimum = 0
         o.maximum = 100_000_000_000
         g.operation = o

         @selector.searchParameters = [related_search, g]
         @selector.ideaType = 'KEYWORD'
         @selector.requestType = 'IDEAS'

         @selector.requestedAttributeTypes = ['KEYWORD',
   AVERAGE_TARGETED_MONTHLY_SEARCHES]

          paging = @ti_srv.module::Paging.new
          paging.startIndex = 0
          paging.numberResults = 20
         �...@selector.paging = paging

            # Get results
       index = 20
       results = []
       while true
         page = @ti_srv.get(@selector).rval
         return nil if page.nil?
         results += page.entries if page.entries
         break if page.totalNumEntries  index

         index += paging.numberResults

         paging.startIndex = index

       end

       return results

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



AdWords API keyword matchtype for RelatedToUrlSearchParameter

2010-02-04 Thread Ajit
Hello team

I am trying to get suggested keyword for a give website. it is working
fine.. but I only want BROAD match type..

is there a way to specify matchtype = BROAD for
RelatedToUrlSearchParameter method.

following is my code:


related_search = @ti_srv.module::RelatedToUrlSearchParameter.new
  related_search.urls =http://yahoo.com#options[:urls]

  g =
@ti_srv.module::AverageTargetedMonthlySearchesSearchParameter.new
  o = @ti_srv.module::LongComparisonOperation.new
  o.minimum = 0
  o.maximum = 100_000_000_000
  g.operation = o

  @selector.searchParameters = [related_search, g]
  @selector.ideaType = 'KEYWORD'
  @selector.requestType = 'IDEAS'

  @selector.requestedAttributeTypes = ['KEYWORD',
AVERAGE_TARGETED_MONTHLY_SEARCHES]


   paging = @ti_srv.module::Paging.new
   paging.startIndex = 0
   paging.numberResults = 20
   @selector.paging = paging

 # Get results
index = 20
results = []
while true
  page = @ti_srv.get(@selector).rval
  return nil if page.nil?
  results += page.entries if page.entries
  break if page.totalNumEntries  index

  index += paging.numberResults

  paging.startIndex = index

end

return results

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



AdWords API InternalApiError.UNEXPECTED_INTERNAL_API_ERROR with RelatedToUrlSearchParameter

2009-12-11 Thread phatzimo
HI,

I'm using the .net api client to query the RelatedToUrlSearchParameter
as described in this sample for pyton:

selector = {
'searchParameters': [
{
'type': 'RelatedToUrlSearchParameter',
'urls': ['http://finance.google.com'],
'includeSubUrls': 'False'
},
{
'type': 'LanguageTargetSearchParameter',
'languageTargets': [
{'languageCode': 'en'},
]
},
{
'type': 'CountryTargetSearchParameter',
'countryTargets': [
{'countryCode': 'US'},
]
}
],
'ideaType': 'PLACEMENT',
'requestType': 'IDEAS',
'paging': {
'startIndex': '0',
'numberResults': '100'
}
}
targeting_idea_service.Get(selector)

The web service is responding me with the following obscure error:

InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @

Do you know what is wrong with my request?

Thanks,

Francesco


--

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




AdWords API Re: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR with RelatedToUrlSearchParameter

2009-12-11 Thread AdWords API Advisor
Hi Francesco,

Do you have the request ID from one of these failed requests?  Also, a
similar example was added to the .NET client library, so you might
want to try that out:

  
http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/Examples/v200909/GetRelatedPlacements.cs

Best,
- Eric Koleda, AdWords API Team

On Dec 11, 8:34 am, phatzimo francescosimones...@gmail.com wrote:
 HI,

 I'm using the .net api client to query the RelatedToUrlSearchParameter
 as described in this sample for pyton:

 selector = {
     'searchParameters': [
         {
             'type': 'RelatedToUrlSearchParameter',
             'urls': ['http://finance.google.com'],
             'includeSubUrls': 'False'
         },
         {
             'type': 'LanguageTargetSearchParameter',
             'languageTargets': [
                 {'languageCode': 'en'},
             ]
         },
         {
             'type': 'CountryTargetSearchParameter',
             'countryTargets': [
                 {'countryCode': 'US'},
             ]
         }
     ],
     'ideaType': 'PLACEMENT',
     'requestType': 'IDEAS',
     'paging': {
         'startIndex': '0',
         'numberResults': '100'
     }}

 targeting_idea_service.Get(selector)

 The web service is responding me with the following obscure error:

 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @

 Do you know what is wrong with my request?

 Thanks,

 Francesco

--

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