You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
>
>
> 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);
>