Hi,
I pulled all the campaigns and their metrics by using Python API. I
uploaded into database and when I calculated Sum, numbers are matching but
precision is not.
Example :
cost in UI: 567.87
it is retrieving as 56787.
Please let me know why
The following code I used to pull the data.
def download_Performance_Criteria_Report():
for client_customer_id in list(set(account_list)):
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/inbound/Adwords_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' : 'CAMPAIGN_PERFORMANCE_REPORT',
'dateRangeType' :'CUSTOM_DATE',
'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': ['CampaignId','CampaignName','ExternalCustomerId',
'CustomerDescriptiveName','Impressions','Clicks','Cost','Date'],
'dateRange' : { 'min': '20170101' , 'max' : '20171231'}
}
}
_f=open(_fpath,'wb')
rep_downloader.DownloadReport(report,output=_f,skip_report_header=False,
skip_column_header=False,skip_report_summary=True)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/d48e377b-c0df-45f1-a9f8-fed044d987b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.