Hello,
I'm facing a problem concerning a BatchJob process. I recreated my code 
with the code sample you provided 
"add_complete_campaigns_using_batch_job.py". Even when just executing the 
sample you provided I'm facing the following error message (see below). Am 
I doing something wrong or are you facing the same problem?

I use Python 2.7, the latest version of the API (v201601).

Thanks for your help
Martin

Created BatchJob with ID "1225919", status "AWAITING_FILE", and upload URL 
"https://www.googleapis.com/upload/storage/v1/b/batch-job-upload-prod-ebe9b43/o?uploadType=resumable&upload_id=AEnB2UrzuQY6KrMtetEUv16ji6i3ZbC9pPhtanm0p2pouA28XovaTPhUSizx4ijGQ3HzibmQx3j5heRvtupD_SidYlUniVEgbA";
Traceback (most recent call last):
  File 
"/Users/UserName/PycharmProjects/AdwordsAPI/Bid_Implementer/add_complete_campaigns_using_batch_job.py",
 
line 430, in <module>
    NUMBER_OF_KEYWORDS_TO_ADD)
  File 
"/Users/MartinWinkel/PycharmProjects/AdwordsAPI/Bid_Implementer/add_complete_campaigns_using_batch_job.py",
 
line 70, in main
    adgroup_criterion_operations, adgroup_ad_operations)
  File 
"/Users/UserName/.virtualenvs/adwordsAPI/lib/python2.7/site-packages/googleads/adwords.py",
 
line 815, in UploadOperations
    version=self._version)
  File 
"/Users/UserName/.virtualenvs/adwordsAPI/lib/python2.7/site-packages/googleads/adwords.py",
 
line 884, in __init__
    self._upload_url = self._InitializeURL(upload_url, 
current_content_length)
  File 
"/Users/UserName/.virtualenvs/adwordsAPI/lib/python2.7/site-packages/googleads/adwords.py",
 
line 917, in _InitializeURL
    return resp.headers['location']
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/rfc822.py",
 
line 393, in __getitem__
    return self.dict[name.lower()]
KeyError: 'location'

Process finished with exit code 1

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/059c3144-28ee-48dc-9560-27cf5daa55cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to