How to refer 0 impressions keyword performance in the report.

33 views
Skip to first unread message

T.Motodate

unread,
Oct 6, 2017, 12:54:30 AM10/6/17
to AdWords API Forum
I'm using AdWords API v201708.

To get ALL (including 0 impressions) keywords' performances from the report, 
I made the below codes:

[PHP Code]
=====
$objOAuth2Credential = (new OAuth2TokenBuilder())->fromFile(PATH_ADWORDS_INI)
                                                                                     ->build();
$objReportSetting = (new ReportSettingsBuilder())->includeZeroImpressions(true) <<< Set "includeZeroImpressions" property true.
                                                     ->skipColumnHeader(true)
                                                     ->skipReportHeader(true)
                                                     ->skipReportSummary(true)
                                                     ->build();
$objSession = (new AdWordsSessionBuilder())->fromFile(PATH_ADWORDS_INI)
                                               ->withOAuth2Credential($objOAuth2Credential)
                                               ->withReportSettings($objReportSetting)
                                               ->build();
$objReport = new ReportDownloader($objSession);
=====

I set the "includeZeroImrepssions" property true.
However, I couldn't get keywords with 0 impressions.

What should I do to get those keywords?
I have to set some necessary properties?

Regards.

Vincent Racaza (AdWords API Team)

unread,
Oct 6, 2017, 3:10:07 AM10/6/17
to AdWords API Forum
Hi,

The Keywords Performance Report supports zero impression, so it is possible to return rows with zero impression. Upon checking your code above, setting includeZeroImpressions() to true is correct.

With your scenario, there is a possibility that there is indeed no keywords with zero impression given your report definition. So I can further check this, can you provide your clientCustomerId as well as your report definition? Kindly use the Reply privately to author option.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
Message has been deleted
0 new messages