Hi,

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

Thanks,
Josh, AdWords API Team

On Thursday, November 20, 2014 10:55:58 AM UTC-5, Oscar Martinez wrote:
>
> 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, 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b0075242-59ed-4cc4-a4e6-d54186785619%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to