I Can't make requests to Adwords API "Invalid Grant" Error

90 views
Skip to first unread message

Dyego Borges

unread,
Nov 3, 2019, 6:43:42 PM11/3/19
to AdWords API and Google Ads API Forum
I am receiving this error, but I think I already allow permissions to this app.
('invalid_grant: Bad Request', '{\n "error": "invalid_grant",\n "error_description": "Bad Request"\n}')


It is the python code

def add_campaign(adwords_client):
    budget_service
= adwords_client.GetService('BudgetService', version='v201809')

   
# Create a budget, which can be shared by multiple campaigns.
    budget = {
       
'name': 'Interplanetary budget #%s' % uuid.uuid4(),
       
'amount': {
           
'microAmount': '50000000'
        },
       
'deliveryMethod': 'STANDARD'
    }

    budget_operations
= [{
       
'operator': 'ADD',
       
'operand': budget
   
}]


What I have to do to no get it error.

Google Ads API Forum Advisor Prod

unread,
Nov 4, 2019, 1:51:03 PM11/4/19
to dyegobo...@gmail.com, adwor...@googlegroups.com

Hi Dyego,

 

Thank you for reaching out. Can you please provide the client customer ID of the account you're making the call from via reply privately to author?

 

Regards,

Mitchell

Google Ads API Team



ref:_00D1U1174p._5001UMufiU:ref
Reply all
Reply to author
Forward
0 new messages