googleads / googleads/googleads-python-lib

parse argument int on str

Open
#544 2 comments 0 reactions 1 assignee View on GitHub

@msaniscalchi is already working on this.

Since Jul 11, 2024.

Dominant language
Python
Stars
749
Forks
967
PR merge metrics
No merged PRs in 30d

Description

Running this query
{'reportQuery': {'dimensions': ['DATE', 'HOUR', 'AD_UNIT_ID', 'AD_UNIT_NAME'], 'adUnitView': 'HIERARCHICAL', 'columns': ['AD_EXCHANGE_LINE_ITEM_LEVEL_IMPRESSIONS', 'AD_EXCHANGE_LINE_ITEM_LEVEL_CLICKS', 'TOTAL_LINE_ITEM_LEVEL_CPM_AND_CPC_REVENUE'], 'dateRangeType': 'LAST_MONTH'}}

I faced with this traceback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/googleads/common.py", line 982, in MakeSoapRequest
return soap_service_method(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/zeep/proxy.py", line 46, in call
return self._proxy._binding.send(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send
return self.process_reply(client, operation_obj, response)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
return self.process_error(doc, operation)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 317, in process_error
raise Fault(
zeep.exceptions.Fault: Unknown fault occured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/Users/thalysongaldino/Dev/roi-manager-project/batch_schedule_processing./scheduler/jobs.py", line 214, in get_data_ad_manager
run_report = run_report_and_wait(report_service, report_job)
File "/Users/thalysongaldino/Dev/roi-manager-project/batch_schedule_processing./scheduler/jobs.py", line 224, in run_report_and_wait
report_job_id = report_service.WaitForReport(report_job)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/googleads/ad_manager.py", line 896, in WaitForReport
report_job_id = service.runReportJob(report_job)['id']
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/googleads/common.py", line 987, in MakeSoapRequest
underlying_exception = e.detail.find(
TypeError: argument should be integer or bytes-like object, not 'str'

anyone can i help my?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.