Receiving two rows per Keywords from Keywords Performance report

19 views
Skip to first unread message

Christian

unread,
Jun 17, 2018, 10:58:34 AM6/17/18
to AdWords API and Google Ads API Forum
Hi,

We are using the Keywords Performance Report to receive the number of conversions per Keyword.
Therefore we use the current Java Library and the v201710 API.

Now we came across a single Keyword which returns two rows.
One with the correct number of conversions and one row with a number of conversions we cannot allocate.

I created a test case for reproduction.
This is the ReportDefinition:

Long campaignId = <CAMPAIGN_ID>;
Long keywordId = <KEYWORD_ID>;
Long accountId = <ACCOUNT_ID>;
String dateRange = "LAST_30_DAYS";

Predicate campaignPredicate = new Predicate();
campaignPredicate.setField("CampaignId");
campaignPredicate.setOperator(PredicateOperator.EQUALS);
campaignPredicate.getValues().add(String.valueOf(campaignId));

Predicate keywordPredicate = new Predicate();
keywordPredicate.setField("Id");
keywordPredicate.setOperator(PredicateOperator.EQUALS);
keywordPredicate.getValues().add(String.valueOf(keywordId));

Selector selector = new Selector();
selector.getFields().addAll(Arrays.asList(new String[] { "Id", "Conversions" }));
selector.getPredicates().add(campaignPredicate);
selector.getPredicates().add(keywordPredicate);

ReportDefinition reportDefinition = new ReportDefinition();
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.fromValue(dateRange));
reportDefinition.setDownloadFormat(DownloadFormat.TSV);
reportDefinition.setReportName("ConversionTest");
reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT);
reportDefinition.setSelector(selector);


Output:

Keyword ID Conversions

299612791579 182.00

299612791579 311.00



Any idea, why this could happen?

Thanks,
Christian
 

Christian

unread,
Jun 17, 2018, 11:34:03 AM6/17/18
to AdWords API and Google Ads API Forum
Problem solved.
Keyword was two times in one campaign in different AdGroups ...
Reply all
Reply to author
Forward
0 new messages