Re: why I got a null report ?

2014-12-02 Thread Zhuo Chen
It's because that account only contains a video campaign.

On Monday, December 1, 2014 10:26:33 AM UTC+8, 张君峰 wrote:

 api.adwords.clientCustomerId=522-517-5857

  selector.getFields().addAll(Lists.newArrayList(
 Cost,
 Date));

 DateRange dateRange = new DateRange();
 dateRange.setMin(20140905);
 dateRange.setMax(20140925);
 selector.setDateRange(dateRange);

 ReportDefinition reportDefinition = new ReportDefinition();
 reportDefinition.setReportName(Account performance report # + 
 System.currentTimeMillis());

  reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE);
 

  
 reportDefinition.setReportType(ReportDefinitionReportType.ACCOUNT_PERFORMANCE_REPORT);
 reportDefinition.setDownloadFormat(DownloadFormat.CSV);
 
 reportDefinition.setIncludeZeroImpressions(false);
 reportDefinition.setSelector(selector);

 在 2014年11月28日星期五UTC+8下午8时07分40秒,Danial Klimkin写道:

 What is the report definition you are using? Which account do you ran 
 report against?


 -Danial, AdWords API Team.

 On Thursday, November 27, 2014 1:02:18 PM UTC+3, 张君峰 wrote:


 https://lh3.googleusercontent.com/-qstaSfUvMes/VHb1_iQS2nI/AAM/7R2q1L3EP6k/s1600/Z0DPQY%25O_CK%40%5BYX%60%7E%29GP3%7BJ.png


 https://lh6.googleusercontent.com/-2OfEEQUmNq0/VHb2C2lsjXI/AAU/2PGvAkXt1t8/s1600/SN9K8XG%25%25P%28%7EJ76MO8381WY.jpg
 The reason in the pictures.

 Can anyone help me?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e8790e3f-f63a-430a-9edf-fd8a408e1f52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: why I got a null report ?

2014-12-01 Thread 张君峰
api.adwords.clientCustomerId=522-517-5857

 selector.getFields().addAll(Lists.newArrayList(
Cost,
Date));

DateRange dateRange = new DateRange();
dateRange.setMin(20140905);
dateRange.setMax(20140925);
selector.setDateRange(dateRange);
   
ReportDefinition reportDefinition = new ReportDefinition();
reportDefinition.setReportName(Account performance report # + 
System.currentTimeMillis());
   
 reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE);

   
 
reportDefinition.setReportType(ReportDefinitionReportType.ACCOUNT_PERFORMANCE_REPORT);
reportDefinition.setDownloadFormat(DownloadFormat.CSV);

reportDefinition.setIncludeZeroImpressions(false);
reportDefinition.setSelector(selector);

在 2014年11月28日星期五UTC+8下午8时07分40秒,Danial Klimkin写道:

 What is the report definition you are using? Which account do you ran 
 report against?


 -Danial, AdWords API Team.

 On Thursday, November 27, 2014 1:02:18 PM UTC+3, 张君峰 wrote:


 https://lh3.googleusercontent.com/-qstaSfUvMes/VHb1_iQS2nI/AAM/7R2q1L3EP6k/s1600/Z0DPQY%25O_CK%40%5BYX%60%7E%29GP3%7BJ.png


 https://lh6.googleusercontent.com/-2OfEEQUmNq0/VHb2C2lsjXI/AAU/2PGvAkXt1t8/s1600/SN9K8XG%25%25P%28%7EJ76MO8381WY.jpg
 The reason in the pictures.

 Can anyone help me?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d2531561-5e46-4dc3-be8e-a0a8ae8781b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.