QualityScore in AdGroupCriterionService, results are different in v201609

49 views
Skip to first unread message

Cesar D.

unread,
Sep 22, 2016, 4:07:32 AM9/22/16
to AdWords API Forum
I have a piece of code that returns the count of keywords within a given QualityScore range (0 to 6, for instance) through the AdGroupCriterionService.

{u'dateRange': {u'max': '20160921', u'min': '20160921'},
 u'fields': [u'Id'],
 u'paging': {u'numberResults': u'0'},
 u'predicates': [{u'field': u'CriteriaType',
                  u'operator': u'EQUALS',
                  u'values': [u'KEYWORD']},
                 {u'field': u'CriterionUse',
                  u'operator': u'EQUALS',
                  u'values': [u'BIDDABLE']},
                 {u'field': u'Status',
                  u'operator': u'EQUALS',
                  u'values': [u'ENABLED']},
                 {u'field': u'QualityScore',
                  u'operator': u'GREATER_THAN_EQUALS',
                  u'values': ['0']},
                 {u'field': u'QualityScore',
                  u'operator': u'LESS_THAN_EQUALS',
                  u'values': ['6']},
                 {u'field': u'AdGroupId',
                  u'operator': u'IN',
                  u'values': [XXXXXX]}]}

This has been working properly until I updated to API v201609. Now I get 0 results whenever using QualityScore or HasQualityScore as predicates. This also diverges from what I see in the User Interface, which displays the proper number of keywords that match the criteria (non 0 by the way).

How can I get the API to give the right amount of keywords filtered by QualityScore?

Peter Oliquino

unread,
Sep 22, 2016, 6:30:19 AM9/22/16
to AdWords API Forum
Hi Cesar,

Could you confirm if you meant version v201607 instead of v201609? Our latest version currently is v201607. Also, as of this latest version, the QualityInfo (QualityScore) attribute is no longer returned by the AdGroupCriterionService, however, it is still available in the reports. For more information, kindly refer to this link.

Best regards,
Peter
AdWords API Team

Cesar D.

unread,
Sep 22, 2016, 7:25:55 AM9/22/16
to AdWords API Forum
Hi Peter,

    Thanks for answering. Yes, I meant v201607.

     I understand that some keywords may not have a QualityScore and thus have no data for QualityInfo. However, according to the link kindly provided by you if a keyword has a quality score I should be still able to get QualityInfo.

     The problem is that the AdWords User Interface shows 101 matches for my query, all of then with a QualityScore of 6/10, a result that can be replicated using v201605 with the predicates below, which is not the case anymore for v201607. What are the chances of a keyword being shown as having a value for QS on the UI, but not through the API?

     I'm wondering if the predicates need to be adapted, or if the only option is now to switch to using Reports instead of AdGroupCriterionService.

     Thank you,
     César

Anthony Madrigal

unread,
Sep 22, 2016, 3:18:14 PM9/22/16
to AdWords API Forum
Hi Cesar,

The Quality Score in the UI still currently shows 6/10 for these keywords. On October 10th, you will see these quality scores changed to -- to reflect the behavior of AdWords API v201607. Just like you said, if you use AdWords API v201605, you will see the quality scores returned as 6. To filter for these keywords in reports using v201607, you can add a predicate that searches for "QualityScore = null".

Hope this helps!

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages