ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH

143 views
Skip to first unread message

Chaitanya Phani

unread,
Jan 23, 2018, 1:31:12 PM1/23/18
to AdWords API Forum
Hi,

Trying to pull product reports and getting the following error. 

Error Message:

ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH

when I checked internet it was mentioned, generally it will give this error for manager accounts need to provide advertiser account. 
But it is working for campaign report not for Product. May I know why it is working for one product but not another one. 

Thanks,

Dhanya Sundararaju (AdWords API Team)

unread,
Jan 23, 2018, 3:19:35 PM1/23/18
to AdWords API Forum
Hi Chaitanya,

Could you send us the complete SOAP request and response as well as report definitions of both the reports and the client customer id used in the header. You may opt to reply privately to author.

Regards,
Dhanya, AdWords API Team

Chaitanya Phani

unread,
Jan 23, 2018, 3:41:48 PM1/23/18
to AdWords API Forum
Hi, 

I am using python code. Please find python code here.
  for client_customer_id in list(set(advertiser_accounts)):
   
print client_customer_id
    o2client
= GoogleRefreshTokenClient(adc['client_id'],adc['client_secret'],adc['refresh_token'])
    client
=AdWordsClient(adc['developer_token'],o2client,'OBI',client_customer_id=client_customer_id)
    _fpath
=os.path.join('D:/adwords/temp/Adwords_Shopping_MMA_'+str(client_customer_id)+'_'+datetime.datetime.now().strftime( "%Y%m%d%H%M") + '.csv')
 
##    client = AdWordsClient.LoadFromStorage('googleads.yaml')
    rep_downloader
= client.GetReportDownloader(version='v201710')
    report
= {
           
'reportName' : 'SHOPPING_PERFORMANCE_REPORT',
           
'dateRangeType' :'CUSTOM_DATE',
           
'reportType': 'SHOPPING_PERFORMANCE_REPORT',
           
'downloadFormat': 'CSV',
           
'selector': {
               
'fields': ['AccountDescriptiveName','AdGroupId','AdGroupName','AggregatorId','Brand','CampaignId','CampaignName','CategoryL1','CategoryL2','CategoryL3','CategoryL4','CategoryL5','CountryCriteriaId','CustomAttribute0','CustomAttribute1','CustomAttribute2','CustomAttribute3','CustomAttribute4','ExternalCustomerId','LanguageCriteriaId','MerchantId','OfferId','ProductTypeL1','ProductTypeL2','ProductTypeL3','ProductTypeL4','ProductTypeL5','StoreId','Date','AverageCpc','Clicks','ConversionRate','Conversions','ConversionValue','Cost','CostPerAllConversion','CostPerConversion','CrossDeviceConversions','Ctr','Impressions'],
               
'dateRange' : { 'min': '20171225' , 'max' : '20171231'}
               
}
           
}
    _f
=open(_fpath,'wb')
    rep_downloader
.DownloadReport(report,output=_f,skip_report_header=False,skip_column_header=False,skip_report_summary=True)


Thanks,

Dhanya Sundararaju (AdWords API Team)

unread,
Jan 24, 2018, 1:17:09 PM1/24/18
to AdWords API Forum
Hi Chaitanya,

The client customer id of a client account should be used in the header while running a report from the API. As I am unable to verify this in your code, to troubleshoot further, could you share the client customer id from the header? Also, could you please enable logging and share the SOAP request and response for both reports? You may opt to reply privately to author. 
Reply all
Reply to author
Forward
0 new messages