Hi
I'm updating max_cpc via the python API to my Adwords account. I would like
to restrict the amount of console output so that I can email the output to
myself in the cron and keep track of success/failures. However the size of
SOAP messages is so large that my mail server is unable to mail the output
to me. Are there specific flags I can use to suppress the console messages?
Ideally I'd only like to be able to see what I explicitly print out in my
code as the email content. Snippet from my code:
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
}
}
}
}
}]
try:
ad_group_criteria = ad_group_criterion_service.Mutate(operations)[0]
except Exception as e:
print "Failed to update bid (%s,%s,%s) for account %s Exception %s"
%(ad_group_id,criterion_id,max_cpc,input_account,e)
print str(cursor.rowcount) + " Bids updated for account " + input_account
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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