hi,
i'm trying to get the keywords and all their criteria for each client
account( for one campaign at a time). I've used
adgroupcriterionservice for it. I could get the keywords for few
campaigns and couldn't get for few of them.
Here is my code.......

for($i=0;$i<count($campaignids);$i++)
{
  $idFilter = new AdGroupCriterionIdFilter();
  $idFilter->campaignId = $campaignids[$i];
  $selector->idFilters = array($idFilter);
  $selector->statsSelector=new StatsSelector();
  $daterange=new DateRange();
  $today = date("Ymd");
  $yesterday = mktime(0,0,0,date("m"),date("d")-1,date("Y"));
  $yesterday = date("Ymd", $yesterday);
  $daterange->min=$yesterday;
  $daterange->max=$today;
  $selector->statsSelector->dateRange = $daterange;

$page = $adGroupCriteriaService->get($selector);

  if (isset($page->entries))
        {
        foreach ($page->entries as $adGroupCriterion)
                {
                $adgrpids[$counter]=$adGroupCriterion->adGroupId;
                $keywordids[$counter]=$adGroupCriterion->criterion->id;
...............................
.........................


                $counter++;
                }
        }

 }

It neither throws an exception nor retrieves the keywords for all the
campaigns within a given client account....
It only retrieves for few campaigns and then stops. Please, suggest me
if i've to make any changes to fix this error.

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

Reply via email to