Hi,
I was trying to write a very similar code to get Criterion stats. I
think I have it wrong. The below code is different from what I have
written. But I cannot get this to work because I am not sure what is
the object type of $selector variable. Can someone throw light on what
object type $selec
Many thanks Dan and Eric, I got it now.
Solution (Displays first page min CPC, stats such as clicks,
impressions, etc and quality score):
// Create id filter.
$idFilter = new AdGroupCriterionIdFilter();
$idFilter->adGroupId = $adGroupId;
$idFilter->criterionId = $c
Hi Mike,
The hierarchy of objects should be:
AdGroupCriterionSelector
|_ StatsSelector
|_ DateRange
Here is an example:
$selector = new CampaignSelector();
$selector->statsSelector = new StatsSelector();
$selector->statsSelector->dateRange = new DateRange('20090101',
'20090131');
Best,
- E
The examples show the dateRange being used in this way.
// For today's date.
$selector->dateRange = new DateRange(date('Ymd'), date('Ymd'));
Dan
On Mar 9, 10:06 pm, Mike-Indiana wrote:
> Hi Eric, could you help me out with the dateRange for stats? This is
> still pulling all stats, and not the