Hello, please explain me how use paging. Im try to get keywrods idea more 
than 700 items. I know what on onbe api call i get a 700 keywords, but i 
must get more.
i try to set a startindwex in 700,800 and other, but answer is null.
this is part of my code

$selector->setSearchParameters($searchParameters);
$selector->setPaging(new Paging(699, 700));
$page = $targetingIdeaService->get($selector);

$entries = $page->getEntries();
if ($entries !== null) {
    $totalNumEntries += $page->getTotalNumEntries();
    foreach ($entries as $targetingIdea) {
        $data = MapEntries::toAssociativeArray($targetingIdea->getData());
        $keyword = $data[AttributeType::KEYWORD_TEXT]->getValue();
        $searchVolume =
            ($data[AttributeType::SEARCH_VOLUME]->getValue() !== null)
                ? $data[AttributeType::SEARCH_VOLUME]->getValue() : 0;
        $averageCpc = $data[AttributeType::AVERAGE_CPC]->getValue();
        $competition = $data[AttributeType::COMPETITION]->getValue();
        $monthly = $data[AttributeType::TARGETED_MONTHLY_SEARCHES]->getValue();
        if(!empty($monthly) && is_array($monthly)) {
            $keyword_stats = array();
            foreach ($monthly as $month_stats) {
                $stats = new stdClass();
                $stats->year = $month_stats->getYear();
                $stats->month = $month_stats->getMonth();
                $stats->count = $month_stats->getCount();
                $keyword_stats[] = $stats;
            }
        }

        $keyword_obj = new  \stdClass();
        $keyword_obj->keyword = $keyword;
        $keyword_obj->search_volume = $searchVolume;
        $keyword_obj->average_CPC = ($averageCpc === null) ? 0 : 
number_format($averageCpc->getMicroAmount()/1000000,'2');
        $keyword_obj->competition = number_format($competition,'3');
        $keyword_obj->year_stats = $keyword_stats;

        $result_keyword['keywords'][] = $keyword_obj;
        unset($keyword_obj);
    }
    $result_keyword['count_data'] +=  $totalNumEntries;
}


Please, explain the algoritm of get more keywords items.
Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/80242f44-44c3-4528-a872-543d01c072a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Please, ... Александр Михайленко
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to