Danial, I completely understand you're trying to be helpful. But the biggest obstacle to getting started with the API **is** the code examples shipped with every library! You're trying to do the best you can and answering a lot of emails --- but it's the lack of proper dox that is causing the the problem. No one is doubting that the examples exist, simply that they aren't terribly useful, at least during the "getting started" phase.
That isn't meant as a criticism, it's meant as a plea to "get someone to write the documentation who knows how to write" On Thursday, June 7, 2012 6:41:31 AM UTC-5, Danial Klimkin wrote: > > Hello enkil2003, > > > We have code examples shipped with every client library. Please refer to > this one for PHP: > > > http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109_1/Reporting/DownloadCriteriaReport.php > > The ReportDefinitionService is deprecated and no longer used. > > > -Danial, AdWords API Team. > > > On Tuesday, June 5, 2012 12:51:56 AM UTC+4, enkil2003 wrote: >> >> Well this is very frustrating, I cant find any good documentation that >> shows working examples about how to download reports neither a good >> documentation. There are tons and tons of webpages blogs and so on, but >> none of the are clarifying to me. >> >> This is my code, (not working) What i want is to download >> the DESTINATION_URL_REPORT, so I do this >> >> $user = new AdWordsUser(); >> >> // >> >> $selector = new Selector(); >> >> $selector->fields = array( >> >> 'Date', >> >> 'CampaignId', >> >> 'Id', >> >> 'HourOfDay', >> >> 'Impressions', >> >> 'Clicks', >> >> 'Cost' >> >> ); >> >> $reportDefinitionService = $user->GetService('ReportDefinitionService'); >> >> $reportDefinition = new ReportDefinition(); >> >> $reportDefinition->reportName = 'El nombre del reporte'; >> >> $reportDefinition->reportType = 'DESTINATION_URL_REPORT'; >> >> $reportDefinition->dateRangeType = 'LAST_7_DAYS'; >> >> $reportDefinition->downloadFormat = 'CSV'; >> >> $reportDefinition->selector = $selector; >> >> >> $page = $reportDefinitionService->get($reportDefinition); >> >> print_r($page); >> >> >> of course this doesnt work, because >> the $reportDefinitionService->get($reportDefinition); does not expect this >> kind of parameter, but i hope you can get the idea behind. >> >> >> Thanks in advance! >> > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
