Keyword Density Based on URL

166 views
Skip to first unread message

jd_jason

unread,
May 4, 2010, 10:57:01 PM5/4/10
to AdWords API Forum
I would like to recreate this functionality from google into our
website.

https://adwords.google.com/o/Targeting/Explorer?__u=1000000000&__c=1000000000&stylePrefOverride=2#search.none!ideaType=KEYWORD&requestType=IDEAS

I'm still new with the API. I use PHP and have modified the code from
the examples.
Here is the code that I modified from "GetRelatedPlacements.php"

// Create seed url.
$url = 'http://www.carlosonweb.com';

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

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

// Create related to url search parameter.
$relatedToUrlSearchParameter = new RelatedToUrlSearchParameter();
$relatedToUrlSearchParameter->urls = array($url);
$relatedToUrlSearchParameter->includeSubUrls = false;
$selector->searchParameters = array($relatedToUrlSearchParameter);

I have uploaded this into http://www.ppcrenegade.com/keyword/examples/v200909/GetRelatedPlacements.php

But the result was totally different from the once that google
produced.

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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

AdWords API Advisor

unread,
May 6, 2010, 2:35:28 PM5/6/10
to AdWords API Forum
Hi,

The sandbox environment will always return dummy keywords when using
the TargetingIdeaService. Please use the production environment to
get real results.

Best,
- Eric Koleda, AdWords API Team

On May 4, 10:57 pm, jd_jason <mystory.jason.d...@gmail.com> wrote:
> I would like to recreate this functionality from google into our
> website.
>
> https://adwords.google.com/o/Targeting/Explorer?__u=1000000000&__c=10...
>
> I'm still new with the API. I use PHP and have modified the code from
> the examples.
> Here is the code that I modified from "GetRelatedPlacements.php"
>
> // Create seed url.
>   $url = 'http://www.carlosonweb.com';
>
>   // Create selector.
>   $selector = new TargetingIdeaSelector();
>   $selector->requestType = 'IDEAS';
>   $selector->ideaType = 'KEYWORD';
>   $selector->requestedAttributeTypes = array('KEYWORD');
>
>   // Set selector paging (required for targeting idea service).
>   $paging = new Paging();
>   $paging->startIndex = 0;
>   $paging->numberResults = 20;
>   $selector->paging = $paging;
>
>   // Create related to url search parameter.
>   $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter();
>   $relatedToUrlSearchParameter->urls = array($url);
>   $relatedToUrlSearchParameter->includeSubUrls = false;
>   $selector->searchParameters = array($relatedToUrlSearchParameter);
>
> I have uploaded this intohttp://www.ppcrenegade.com/keyword/examples/v200909/GetRelatedPlaceme...
>
> But the result was totally different from the once that google
> produced.
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:http://adwordsapi.blogspot.comhttp://groups.google.com/group/adwords-api
Reply all
Reply to author
Forward
0 new messages