Hi Mike, 

The "dateRangeType" will have to be set as "CUSTOM_DATE" like the code 
sample 
<https://developers.google.com/adwords/api/docs/samples/perl/reporting> is 
setting it to LAST_7_DAYS. The min and max dates needs to be set in the 
dateRange which will need to be set in the selector. dateRange will have to 
be set just like you set predicate in the selector. Please see the report 
definition given below for more clarity. 

__rdxml: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<reportDefinition 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201802";>
  <ns2:selector>
    <ns2:fields>AccountDescriptiveName</ns2:fields>
    <ns2:fields>Date</ns2:fields>
    <ns2:fields>HourOfDay</ns2:fields>
    <ns2:fields>CampaignId</ns2:fields>
    <ns2:fields>CampaignName</ns2:fields>
    <ns2:fields>AveragePosition</ns2:fields>
    <ns2:fields>Impressions</ns2:fields>
    <ns2:fields>Clicks</ns2:fields>
    <ns2:fields>Cost</ns2:fields>
    <ns2:predicates>
      <ns2:field>CampaignId</ns2:field>
      <ns2:operator>IN</ns2:operator>
      <ns2:values>*******</ns2:values>
      <ns2:values>*******</ns2:values>
    </ns2:predicates>
  *  <ns2:dateRange>*
*      <ns2:min>20180101</ns2:min>*
*      <ns2:max>20180102</ns2:max>*
*    </ns2:dateRange>*
*  </ns2:selector>*
  <ns2:reportName>CampaignPerformanceReport #1522696392597</ns2:reportName>
  <ns2:reportType>CAMPAIGN_PERFORMANCE_REPORT</ns2:reportType>
 * <ns2:dateRangeType>CUSTOM_DATE</ns2:dateRangeType>*
  <ns2:downloadFormat>CSV</ns2:downloadFormat>
</reportDefinition>

Please give this a try and let me know if you are still facing issues. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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
--- 
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a44e519c-c619-4220-97c9-e6ab5820f39b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Trying t... Mike Diehl
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... Mike Diehl
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to