Adwords API throwing UNEXPECTED_INTERNAL_API_ERROR on campaigns creation even though the campaigns are created fine.

41 views
Skip to first unread message

jeff...@homeyou.com

unread,
Nov 12, 2015, 12:44:16 PM11/12/15
to AdWords API Forum
Hello there!

Im having some random problems when creating campaigns. Im creating 10.000 campaigns into an account in bulk operations of 500 campaigns each. It was working fine last week but since yesterday I´m receiveing lots of InternalApiError.UNEXPECTED_INTERNAL_API_ERROR.
Im also treating this error with 3 retry requests on 30, 60 and 90 seconds as it is described in best practices. If I persist trying sometimes it works but the response I receive from the API are all errors duo duplicate campaigns names (im checking partial errors). 
So I asked myself how am I receiving duplicate campaigns name error message if all requests had an 'InternalApiError.UNEXPECTED_INTERNAL_API_ERROR'? I investigated deeper and I realized that Adwords is sending me wrong response when creating those campaigns because in fact the campaigns were created.

I removed all campaigns from the account using the Adwords website then I run my script again and I didnt receive any partial success nor error messages all I received in most of the time is an InternalApiError.UNEXPECTED_INTERNAL_API_ERROR even though I checked Adwords website and all campaigns were created fine. For some reason Adwords is throwing an exception when in fact the ADD operation succeeded but failing to send back the partial results. My application ended up in constant loop because it does not receive the campaigns ids so it makes not possible to mark as a synced campaign in our local database.

Is anyone having the same problem? I realized this problem started to happen yesterday but until last week it was working fine.


Please help! :) 

ps. Im using the Adwords PHP Library v201509 and working in an MCC Test account.

Anthony Madrigal

unread,
Nov 12, 2015, 4:44:43 PM11/12/15
to AdWords API Forum
Hi,

That is very strange behavior. Would you happen to have a SOAP request and response where you are seeing this? If so could you please message me through reply privately to author with it?

Thanks,
Anthony
AdWords API Team

jeff...@homeyou.com

unread,
Nov 13, 2015, 1:39:37 PM11/13/15
to AdWords API Forum
Hello Anthony Madrigal Im not in my work pc at the moment but I will send it to you later.

Also I managed to "solve" the problem by creating a new shared budget. So it seems the problem is related to the shared budget on campaigns.

Here are the steps to reproduce de problem:

1 Create a shared budget
2 Create 10.000 campaigns all of them using the above shared budget. The campaigns names are sequencial numbers from 1 to 10.000.
3 Delete all campaigns.
4 Create 10.000 campaigns again using the same shared budget as before and same campaign names.
The API responds with unexpected problem but the campaigns were all created fine.

I solved the problem by deleting the old shared budget and creating a new one. It seems I will have to do that everytime I want to re create my campaigns.
Definetly it is something related to the shared budget + campaigns with the same old names.

As soon as I get on my work computer Ill send you the SOAP request and response logs.

Thanks!

jeff...@homeyou.com

unread,
Nov 16, 2015, 11:38:25 AM11/16/15
to AdWords API Forum
Hello Anthony I have the logs in my hands but i cant find the option to reply privately to author here in this forum. Could you drive me on how to do it so i can send you my log files? Thanks.


On Thursday, November 12, 2015 at 7:44:43 PM UTC-2, Anthony Madrigal wrote:

Anthony Madrigal

unread,
Nov 16, 2015, 4:31:26 PM11/16/15
to AdWords API Forum
Hello,

You can send me a private message my clicking on the drop-down menu next to the Reply arrow then click Reply privately to author.
Reply all
Reply to author
Forward
0 new messages