This is my code for V201008
if i put column : KeywordDestUrlDisplay, it gives invalid filed.
if i remove it, it works fine
==
$user = new AdWordsUser();
$user->SetClientId($client_id); // select the client with clientId
$reportDefinitionService = $user->GetReportDefinitionService('v201008');
// Create selector.
$selector = new Selector();
$selector->fields =
array('AdGroupId', 'Id',
'KeywordText','KeywordMatchType','KeywordDestUrlDisplay',
'IsNegative','Impressions', 'Clicks', 'Cost');
// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition->reportName = 'Keywords performance report #' .
time();
$reportDefinition->dateRangeType = 'YESTERDAY';
$reportDefinition->reportType = 'KEYWORDS_PERFORMANCE_REPORT';
$reportDefinition->downloadFormat = 'CSV';
$reportDefinition->selector = $selector;
// Create operations.
$operation = new ReportDefinitionOperation();
$operation->operand = $reportDefinition;
$operation->operator = 'ADD';
$operations = array($operation);
// Add report definition.
$result = $reportDefinitionService->mutate($operations);
==
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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