Hi Marco,

here's a report definition for use with the ad hoc reporting functionality 
(<https://developers.google.com/adwords/api/docs/guides/reporting> that 
should produce the data you need (although I haven't tested it):

<reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
    <selector>
      <fields>
        <item>Date</item>
        <item>Name</item>
        <item>Clicks</item>
        <item>AverageCpc</item>
      </fields>
      <predicates>
        <field>Status</field>
        <operator>IN</operator>
        <values>ACTIVE</values>
        <values>PAUSED</values>
        <values>DELETED</values>
      </predicates>
      <dateRange>
        <min>20120501</min>
        <max>20120504</max>
      </dateRange>
    </selector>
    <reportName>Test report</reportName>
    <reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType>
    <dateRangeType>CUSTOM_DATE</dateRangeType>
    <downloadFormat>XML</downloadFormat>
</reportDefinition>

Please note that the PHP client library will very likely provide methods to 
download these reports without actually having to construct the report 
definition XML yourself. I can't tell you which ones, however, as I am 
using the Python library myself.

Cheers,
Dorian

On Wednesday, July 11, 2012 11:20:41 PM UTC+2, Marco Contreras wrote:
>
> Hi Dorian
>
> Thanks for the help, but what I really wanted to have this format.
>
> Data 01/05/2012 to 04/05/2012
>   
> *Date*
>  
> *Campaign*
>  
> *Clics*
>  
> *CPC*
>   
> 01/05/2012
>  
> demo
>  
> 1500
>  
> 0,25
>   
> 02/05/2012
>  
> demo
>  
> 1235
>  
> 0,24
>   
> 03/05/2012
>  
> demo
>  
> 1874
>  
> 0,27
>   
> 01/05/2012
>  
> autos
>  
> 1200
>  
> 0,15
>   
> 02/05/2012
>  
> autos
>  
> 1500
>  
> 0,26
>   
> 03/05/2012
>  
> autos
>  
> 1369
>  
> 0,3
>   
> 04/05/2012
>  
> autso
>  
> 1247
>  
> 0,5
>   
>  
>
> The definition "CampaignStats" startDate and endDate is only in the case 
> of endDate only shows me the last time interval. I tested the generation of 
> reports by the "ReportDefinitionService" which has dateRangeType = 
> 'All_Time', which did not give me many results, any other ideas of how to 
> obtain these data
>
> Thanks
>
> On Tuesday, July 10, 2012 5:50:38 PM UTC-5, Marco Contreras wrote:
>>
>> Hello
>>
>> I am working with php library version v201109, reviewing the 
>> documentation in which I saw examples of working with 'CampaignService' 
>> which allows me to retrieve the cpc, clicks, etc.
>>
>> My question is whether you can recover data from campaigns within a 
>> specified date range, but show me the progress of the campaign for days
>>
>> I tried but without success, I could after the reports with the statement 
>> 'dateRangeType', but I have not seen option to 'CampaignService'
>>
>> Thanks
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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

Reply via email to