Hello everybody, i have a small question. Is there a way that adwords
can directly send me the statistique's by adgroups total ?
A small example :
$tab;
$tab[0] = id number 1;
$tab[1] = id number 2;
$tab[2] = id number 3;
$adGroupService = $user->GetAdGroupService();
$selectorAdGpe = new AdGroupSelector();
$selectorAdGpe->adGroupIds = $tab;
$statsSelectorAdGpe = new StatsSelector();
$dateRange = new DateRange();
$dateRange->min = $start_date = "20100213";
$dateRange->max = $end_date = "20100214";
$statsSelectorAdGpe->dateRange = $dateRange;
$selectorAdGpe->statsSelector = $statsSelectorAdGpe;
$adGroupPage = $adGroupService->get($selectorAdGpe);
foreach ($adGroupPage->entries as $adGroup)
{
echo ( $adGroup->stats->clicks." " $adGroup->stats-
>impressions." ");
}
This will give me : 0 73 2 4544 3 228
But is there a way that i can get 0 + 2 + 3 = 5 for the clicks and 73
+ 4544 + 228 = 4845 directly witout having to sum it myself ?
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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