Hello everyone,

I'm using the ReportDefinitionService to return a list of all AdGroups in a 
client:

The report download works however the data in the report isn't consistent 
with the client in the AdWords GUI.

So for example the client in the AdWords GUI shows 6814 AdGroups, however 
the downloaded report only shows 1846.

The important part of what I'm doing can be seen below.

Any advice on this would be greatly appreciated.

Thanks

$user->LoadService('ReportDefinitionService', ADWORDS_VERSION);


 // Create selector.
 $selector = new Selector();
 //$selector->fields = array('CampaignId', 'Cost', 'Query', 'AdGroupName');
 $selector->fields = array( 'CampaignId', 'Cost', 'AdGroupName', 
'AdGroupStatus' );
 // Filter out deleted criteria.
 //$selector->predicates[] = new Predicate('Status', 'NOT_IN', 
array('DELETED'));
 $selector->predicates[] = new Predicate('AdGroupStatus', 'IN', array(
'ENABLED', 'PAUSED', 'DELETED'));
 //$selector->predicates[] = new Predicate('CampaignStatus', 'EQUALS', 
array('ACTIVE'));
 $selector->predicates[] = new Predicate('CampaignId', 'EQUALS', $campaignid
);


 // Create report definition.
 $reportDefinition = new ReportDefinition();
 $reportDefinition->selector = $selector;
 $reportDefinition->reportName = uniqid();
 $reportDefinition->dateRangeType = 'ALL_TIME';
 $reportDefinition->reportType = 'ADGROUP_PERFORMANCE_REPORT';
 $reportDefinition->downloadFormat = 'CSV';





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/463de7ff-0e8f-4886-bbe6-057b9c6ea461%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to