Criteria Performance Report stop working since Octuber 27

48 views
Skip to first unread message

Oscar Martinez

unread,
Nov 20, 2014, 10:55:58 AM11/20/14
to adwor...@googlegroups.com
Hi all, 

I have a Marketing Report that executes different requests to different API reports. We get, for example, CriteriaType (selector) from Criteria Performance Report, using Id, AdGroupId and CampaignId as filters (predicates). It has been working, but we realized that this report stopped working in Octuber 27 (we are not getting data). We modified the report to select Id and removed all the predicates, but it still empty. 

Here is our code:
                ReportDefinition definition = new ReportDefinition();

                definition.reportName = "CRITERIA_PERFORMANCE_REPORT";
                definition.reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT;
                definition.downloadFormat = DownloadFormat.XML;
                definition.dateRangeType = ReportDefinitionDateRangeType.ALL_TIME;
                definition.includeZeroImpressions = true;

                // Create selector, only the criteria type field.   
                Selector selector = new Selector();
                selector.fields = new string[] { "CriteriaType" };

                //Create the condition by keywordId, adGroupId, CampaignId
                Predicate predicate = new Predicate();
                predicate.field = "Id";
                predicate.@operator = PredicateOperator.EQUALS;
                predicate.values = new string[] { keywordId };

                Predicate predicate2 = new Predicate();
                predicate2.field = "AdGroupId";
                predicate2.@operator = PredicateOperator.EQUALS;
                predicate2.values = new string[] { adGroupId };

                Predicate predicate3 = new Predicate();
                predicate3.field = "CampaignId";
                predicate3.@operator = PredicateOperator.EQUALS;
                predicate3.values = new string[] { campaignId };

                selector.predicates = new Predicate[] { predicate, predicate2, predicate3 };

                definition.selector = selector;
                definition.includeZeroImpressions = false;

                //Apply the customer id
                (user.Config as AdWordsAppConfig).ClientCustomerId = pCustomerCliendId;

                ReportUtilities utilities = new ReportUtilities(user);
                utilities.ReportVersion = "v201406";
                ClientReport criteriaPerformanceReport = utilities.GetClientReport(definition);

Here is the response:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<report>
  <report-name name='CRITERIA_PERFORMANCE_REPORT'/>
  <date-range date='All Time'/>
  <table>
    <columns>
      <column name='criteriaType' display='Criteria Type'/>
    </columns>
  </table>
</report>

Notes: I found a thread with a similar problem, but the problem was distinct, because the guy has the problem when he use Date as selector.

Thanks, 

Josh Radcliff (AdWords API Team)

unread,
Nov 20, 2014, 4:21:11 PM11/20/14
to adwor...@googlegroups.com
Hi,

Could you send over a sample campaign ID for which you are getting an empty response?

Thanks,
Josh, AdWords API Team

Oscar Martinez

unread,
Nov 20, 2014, 4:25:23 PM11/20/14
to adwor...@googlegroups.com
Hi Josh, 

You can try with: 21831951 and 128445621

Josh Radcliff (AdWords API Team)

unread,
Nov 20, 2014, 4:37:17 PM11/20/14
to adwor...@googlegroups.com
Hi Oscar,

Please try adding at least one metric field (such as Impressions) to your report and let me know if that resolves the problem.

Thanks,
Josh, AdWords API Team

Oscar Martinez

unread,
Nov 21, 2014, 10:51:40 AM11/21/14
to adwor...@googlegroups.com
Hi Josh!

Yes it resolved the problem.

Thanks, 


On Thursday, November 20, 2014 9:55:58 AM UTC-6, Oscar Martinez wrote:
Reply all
Reply to author
Forward
0 new messages