How do you set a custom date with python

614 views
Skip to first unread message

laboo

unread,
Apr 29, 2014, 9:33:38 PM4/29/14
to adwor...@googlegroups.com
Can't seem to figure this out, or find any reference to how it's done.

Setting this in the report definition, which seems to match how it's done in Java and PHP:

          "dateRangeType": "CUSTOM_DATE",
       "dateRange": {"min" : "20140427"},

fails with:

Type not found: 'dateRange'

Help?

Thanks,

laboo


Ray Tsang (AdWords API Team)

unread,
Apr 30, 2014, 10:37:32 AM4/30/14
to adwor...@googlegroups.com
laboo,

Please see the XSD for the schema definition.  In short, dateRange is part of the selector.  Please give that a try.  Thanks!

report = {
      ...
      'reportType': 'CRITERIA_PERFORMANCE_REPORT',
      'downloadFormat': 'CSV',
      'selector': {
          'fields': [...],
          'dateRange': [...],
      }
      ....

pe...@cuponomia.com.br

unread,
Jan 21, 2016, 4:30:58 PM1/21/16
to AdWords API Forum
How can I set this value from script input (using terminal)?
Reply all
Reply to author
Forward
0 new messages