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,

On Tuesday, January 23, 2018 at 3:19:35 PM UTC-5, Dhanya Sundararaju 
(AdWords API Team) wrote:

> 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
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5772143c-0fc5-4264-b5ca-7ce4119a2af0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ReportDefini... Chaitanya Phani
    • Re: Rep... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... Chaitanya Phani
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to