Hello, I applied for basic access and get approved. But when I use the 
developer token to create or update (campaign, campaign_budget, ad_group, 
...), the InternalServerError will appear. I have tried for 2 days but get 
the same error:

campaign_budget_service = client.get_service('CampaignBudgetService',
                                                 version='v1')
campaign_budget_operation = client.get_type('CampaignBudgetOperation',

                                            version='v1')
campaign_budget = campaign_budget_operation.create
campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4()
campaign_budget.delivery_method = client.get_type(
    'BudgetDeliveryMethodEnum').STANDARD
campaign_budget.explicitly_shared.value = False
campaign_budget.amount_micros.value = 50000000000


# Add budget.
try:
    campaign_budget_response = (
        campaign_budget_service.mutate_campaign_budgets(
            customer_id, [campaign_budget_operation]))




Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v1.services.CampaignBudgetService/
MutateCampaignBudgets, RequestId: EOv_I7_BBgcjTz2MUuKCuA, IsFault: True, 
FaultMessage: Internal error encountered.

 _Rendezvous: <_Rendezvous of RPC that terminated with:
 status = StatusCode.INTERNAL
 details = "Internal error encountered."
 debug_error_string = "{"created":"@1560329105.222377878","description":"
Error received from peer ipv4:74.125.203.95:443","file":"src/core/lib/
surface/call.cc","file_line":1046,"grpc_message":"Internal error encountered
.","grpc_status":13}"
>
The above exception was the direct cause of the following exception:
InternalServerError                       Traceback (most recent call last)
InternalServerError: 500 Internal error encountered


*Some details*:
 - I can get all the information from my account using the API, for 
example: 'SELECT campaign.id, campaign.name, campaign.campaign_budget FROM 
campaign'
 - The code is correct (I test with my test account for adding and updating 
my test campaigns and ad_groups with no problem)
 - The code is in Python.
 - I have the developer token for Basic Access.
 - My account works normally with Google Ads UI (adding, updating 
campaigns, budgets, ...)

Looking forwards to hearing from you.

Thanks,
Hoa Mai

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/01a0c701-aa11-4113-a384-e63f35ad1ed0%40googlegroups.com.

Reply via email to