How to change a campaign budget

29 views
Skip to first unread message

AvdV

unread,
Dec 21, 2018, 9:02:21 AM12/21/18
to AdWords API and Google Ads API Forum
Hi,

I am trying to set the budget of a campaign to 5000 but I'm getting this error:

    for k, v in data if k != 'xsi_type'}
KeyError: 'budgetId:'

My operation looks like this:
 operations.append({
                        'operator': 'SET',
                        'operand': {
                                'xsi_type': 'Budget',
                                'budgetId:': budget_id,
                                'amount': {
                                    'microAmount': '5000000000'
                                            },

                            }
                    })

What am I doing wrong? (using python library)

Teja Makani

unread,
Dec 21, 2018, 11:40:57 AM12/21/18
to AdWords API and Google Ads API Forum
Hello Andre,

I was able to set the budget to 5000000000 microAmount. Could you double check the budget Id you are passing? Could you please share the SOAP logs(request and response) of the operation you are performing without redacting any information to investigate further? You could refer to the instructions shown in this README.md file to enable logging. You could use reply privately to the author option while sharing the information requested.

Regards,
Sai Teja, AdWords API Team
Reply all
Reply to author
Forward
0 new messages