Setting BidModifiers using Batch Processing

102 views
Skip to first unread message

martin...@auto1.com

unread,
Feb 16, 2016, 5:46:36 AM2/16/16
to AdWords API Forum
Hello,

I'm trying to set (mobile) BidModifiers using a BatchJob. I therefore create a list of operations and pass them along to the BatchJob. With the same set up I also set keyword bids (which works fine), so I guess there's a flaw in the BidModifier operations.
I don't run into any error messages, but the Batch Job just times out (after 5 attempts). My Batch Job is basically the same used in "add_complete_campaigns_using_batch_job.py" from the code samples.

I already tried it serveral times on different daytimes (yesterday and today).

I'm using python 2.7 and the latest API version (v201601).

I attached you my code. Please have a look at..
  • main file: "Bid_MBM_Impelementer-MAIN.py"
  • the modifier operations are appended in "set_mbm.py"
Even when passing over just one operation the batch job times out. Here's an example output:
/Users/UserName/.virtualenvs/adwordsAPI/bin/python /Users/UserName/PycharmProjects/AdwordsAPI/Bid_Implementer/Bid_MBM_Impelementer-MAIN.py
{'AnotherTest1': [['huhu', 'EXACT', '1.00', '1.20']]}
CustomerId: 6435062477
AnotherTest1: ['huhu', 'EXACT', '1.00', '1.20']
[]
[{'operator': 'SET', 'operand': {'adGroupId': 22652613613L, 'criterion': {'id': '30001', 'xsi_type': 'Platform'}, 'bidModifier': 1.2, 'xsi_type': 'AdGroupBidModifier'}, 'xsi_type': 'AdGroupBidModifierOperation'}]
________________________________________________________________________________________
BATCHJOBHELPER
<googleads.adwords.BatchJobHelper object at 0x10d30ed90>
===============================================================
Batch Job not ready, sleeping for 31 seconds.
Batch Job not ready, sleeping for 66 seconds.
Batch Job not ready, sleeping for 123 seconds.
Batch Job not ready, sleeping for 244 seconds.
Batch Job not ready, sleeping for 484 seconds.
Traceback (most recent call last):
  File "/Users/UserName/PycharmProjects/AdwordsAPI/Bid_Implementer/Bid_MBM_Impelementer-MAIN.py", line 213, in <module>
    main(adwords_client)
  File "/Users/UserName/PycharmProjects/AdwordsAPI/Bid_Implementer/Bid_MBM_Impelementer-MAIN.py", line 102, in main
    download_url = GetBatchJobDownloadUrlWhenReady(client, batch_job_id)
  File "/Users/UserName/PycharmProjects/AdwordsAPI/Bid_Implementer/Bid_MBM_Impelementer-MAIN.py", line 187, in GetBatchJobDownloadUrlWhenReady
    raise Exception('Batch Job not finished downloading. Try checking later.')
Exception: Batch Job not finished downloading. Try checking later.

Process finished with exit code 1


Thanks for your help!
Bid_Implementer.zip

Yin Niu

unread,
Feb 16, 2016, 2:44:13 PM2/16/16
to AdWords API Forum
Hello, 

This is a known issue at our end. The API team is investigating. 

Thanks,
Yin, AdWords API Team. 

Yin Niu

unread,
Feb 23, 2016, 10:59:21 AM2/23/16
to AdWords API Forum
Hello, 

This has been fixed. Please try it again. 
Reply all
Reply to author
Forward
0 new messages