Adwords Api Migration

40 views
Skip to first unread message

Olayinka Popoola

unread,
Jun 21, 2022, 8:06:30 AM6/21/22
to Google Ads API and AdWords API Forum
Hi,
I have a task to migrate an application to  Google ads API.  There is a part of the code that I have not been able to convert. Could you please help. 

AdwordsUser user = new AdWordsUser();
 AdWordsAppConfig config = (AdWordsAppConfig)user.Config;
    // Optional: Include zero impression rows.
     config.IncludeZeroImpressions = (ReportParams[1] == "1")

Thank you in anticipation.

Kind regards

Google Ads API Forum Advisor

unread,
Jun 21, 2022, 8:56:26 AM6/21/22
to ayotade...@gmail.com, adwor...@googlegroups.com
Hi Olayinka,

Thank you for raising this concern to the Google Ads API Forum.

With regard to your concern, it seems that you are looking to the zero impression report in the Google Ads API. However, there is no includeZeroImpressions parameter. If you want to exclude zero impression rows, use a predicate such as metrics.impressions > 0 in your Google Ads Query Language as discussed in this document.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2byZpz:ref
Reply all
Reply to author
Forward
0 new messages