adwords apiv201402 - How to run AwReporting in Eclipse? -
i getting error
error|com.google.api.ads.adwords.awreporting.awreporting|awreporting] missing required option: 'file'
when try run awreporting.java
you have provide information command line argument program run (-file, -startdate, -enddate).
solution 1:
- right click inside awreporting.java in eclipe, go run as->run configuration.
- click arguments tab , add following in program arguments box
-file adword property file location -startdate start date -enddate end date
example:
-file src/main/resources/aw-report-sample.properties -startdate 20160126 -enddate 20160127
solution 2:
you can replace args variable below code in first line on main() function on awreporting.java.
args = new string[] {"-file","<adword property file location>","-startdate","<yyyymmdd>","-enddate","<yyyymmdd>"};
example:
public static void main(string args[]) { args = new string[] {"-file","src/main/resources/aw-report-sample.properties","-startdate","20160126","-enddate","20160127"};
Comments
Post a Comment