Hi,

Please see the following post for an explanation:

https://groups.google.com/d/msg/adwords-api/OWH-81q_uAk/AhDSyrcqsuEJ

Below is some sample code based on the download_criteria_report.py example 
<https://github.com/googleads/googleads-python-legacy-lib/blob/master/examples/adspygoogle/adwords/v201402/reporting/download_criteria_report.py>
:

  report = {
      'reportName': 'Last 7 days CRITERIA_PERFORMANCE_REPORT',
      'dateRangeType': 'CUSTOM_DATE',
      'reportType': 'CRITERIA_PERFORMANCE_REPORT',
      'downloadFormat': 'CSV',
      'selector': {
          'fields': ['CampaignId', 'AdGroupId', 'Id', 'CriteriaType',
                     'Criteria', 'Impressions', 'Clicks', 'Cost'],
          'dateRange': { 'min': '20140501', 'max': '20140502'}
      },
      # Enable to get rows with zero impressions.
      'includeZeroImpressions': 'false'
  }

Cheers,
Josh, AdWords API Team

On Saturday, May 31, 2014 4:09:28 PM UTC-4, [email protected] wrote:
>
> Hi!
>
> I am having some trouble specifying a startdate and enddate when I choose 
> CUSTOM_DATE while getting a report. This is my report definition:
>
>   report = {
>       'reportName': 'Last 7 days CRITERIA_PERFORMANCE_REPORT',
>       'dateRangeType': 'CUSTOM_DATE',
>       'startDate': datetime.datetime(2014, 05, 01),
>       'endDate': datetime.datetime(2014, 05, 01),
>       'reportType': 'DESTINATION_URL_REPORT',
>       'downloadFormat': 'CSV',
>       'selector': {
>           'fields': ['CampaignName', 'AdGroupName', 
>                      'Impressions', 'Clicks', 'Cost', 'Year', 'Month', 
> 'Week']
>       },
>       # Enable to get rows with zero impressions.
>       'includeZeroImpressions': 'false'
>   }
>
> And this is what python tells me:
> raise TypeNotFound(content.tag) suds.TypeNotFound: Type not found: 
> 'endDate'
>
> What is it that I amd doing wrong?
>
> Thank you very much.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to