Ok, this may be quite the "what are you actually asking" question so bear with me a bit. As a rule, I'm a .NET and SQL developer. I'm working with AWQL trying to get an adwords script to make a tailored report. Short version, I need to pull from separate date ranges and I'm having issues figuring out how the "compiler" they have deals with it or if even possible to do. In a nutshell I need the data from two months separately compiled into one report. Right now I'm thinking syntax error, but not sure. End goal in geek terms is to the effect of "WHERE(IMPRESSIONS_FROM_THIS_MONTH > IMPRESSIONS_FROM_LAST_MONTH) AND (IMPRESSIONS_FROM_LAST_MONTH > MONTH_BEFORE_THAT). In theory all in the same output (don't care if it's logger or straight to a google doc. I do have the code to put this into a spreadsheet and email me the link), but currently struggling to get it to pull the data. And by struggling I mean a few days of failing lol.
"SELECT KeywordText, ConversionValue, Id, QualityScore " +
"FROM KEYWORDS_PERFORMANCE_REPORT " +
"WHERE " +
"Id = " + kw +
" AND CampaignId = " + id +
" AND AdGroupId = " + gName +
" AND Impressions" +
" (DURING 20150101, 20150131) > IMPRESSIONS (DURING 20141201, 20141231)" );
(the variables like gName are there in the full code btw and working until I try compound logic) I'm not sure if the best approach is to query it all at once, or to query separately and somehow splice the results into a single report. AdWords scripting seems to be a lot more restricted than I'm used to and some of the rules it has aren't well documented or explained. Any links or code chunks relevant to this anywhere? Thanks in advance for any help!