StoreVisit ConversionTrackerId ADGROUP_PERFORMANCE_REPORT

28 views
Skip to first unread message

Carmine Pagliaro

unread,
Feb 21, 2019, 2:06:14 PM2/21/19
to AdWords API and Google Ads API Forum
Dear Team,

I have some problems with the following:

    String query = "";
    query
= "SELECT  AccountDescriptiveName,AccountCurrencyCode, Device, "
       
+ "CampaignId, CampaignName, CampaignStatus, AdGroupId,AdGroupName, AdGroupStatus, "
       
+ "Date, AllConversions " + "FROM ADGROUP_PERFORMANCE_REPORT " + "WHERE ConversionTrackerId = 239 "
       
+ " DURING " + dataStart + ", " + dataEnd;

   
ReportingConfiguration reportingConfiguration = new ReportingConfiguration.Builder().skipReportHeader(true)
       
.skipColumnHeader(false).skipReportSummary(true).includeZeroImpressions(false).build();
    session
.setReportingConfiguration(reportingConfiguration);
   
ReportDownloadResponse response = null;
   
try {
        response
= new ReportDownloader(session).downloadReport(query, DownloadFormat.XML);
   
} catch (ReportDownloadResponseException e) {
       
System.out.printf("Report was not downloaded due to: %s%n", e);
   
}
   
return response;


When i run the code I get an empty response, just only header.

What am I doing wrong?

Thank you
.

googleadsapi...@google.com

unread,
Feb 21, 2019, 5:10:33 PM2/21/19
to AdWords API and Google Ads API Forum
Hi Carmine,

If you run your report definition against a MCC or if your adgroups have zero impressions(since you have set includeZeroImpressions(false)), you can get empty results. Are you getting values via the UI? If yes, please reply privately to author with your client customer id and date range that you are using, so that I can check further.

Regards,
Dhanya, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Carmine Pagliaro

unread,
Mar 7, 2019, 12:56:37 PM3/7/19
to AdWords API and Google Ads API Forum
SOLVED.

Add field ConversionTrackerId, ConversionTypeName from the API call removing the where condition.
Get and set the new ConversionTrackeId.
Reply all
Reply to author
Forward
0 new messages