Hi
I'm running a python script to update keyword bids to Adwords. This script
runs fine when executed by hand. However when I run it at 8 am PST as a
cron job, it doesn't even start making the connection to Adwords. Could it
be due to the nature of traffic at 8 am which that it is not able to get a
connection? Is there anyway I can make it retry after a timeout? Or any
other known issues or suggestions?
Thank you.
Code snippet:
client = AdWordsClient(path="/home/sid/sem");
ad_group_criterion_service =
client.GetAdGroupCriterionService('https://adwords.google.com', 'v201109')
cursor.execute ("SELECT * from kw_bids");
rows = cursor.fetchall ()
for row in rows:
ad_group_id = str(row[0])
criterion_id = str(row[1])
max_cpc = row[2]
operations = [{
'operator': 'SET',
'operand': {
'xsi_type': 'BiddableAdGroupCriterion',
'adGroupId': ad_group_id,
'criterion': {
'id': criterion_id,
},
'bids': {
'xsi_type': 'ManualCPCAdGroupCriterionBids',
'maxCpc': {
'amount': {
'microAmount': max_cpc
}
}
}
}
}]
ad_group_criteria = ad_group_criterion_service.Mutate(operations)[0]
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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