Internal server error while creating campaign

39 views
Skip to first unread message

Priya

unread,
Jun 20, 2019, 1:39:26 PM6/20/19
to AdWords API and Google Ads API Forum
I am using Goole ads api v1.0 and .net client library. 

I got an Internal server error while creating campaign  and when retied the same request I got "Duplicate Campaign name error".

2019-06-20 12:02:58.213
Error Message : {    "StatusCode": 13,    "Details": "Internal error encountered.",    "RequestId": "sA2-qKEDqgqtK9_W5NE_hA",    "Failure": {      "errors": [        {          "errorCode": {            "internalError": "INTERNAL_ERROR"          },          "message": "An internal error has occurred."        }      ]    }  }


2019-06-20 12:08:47.163
Error Message : {    "StatusCode": 3,    "Details": "Request contains an invalid argument.",    "RequestId": "ahAahbwLpLtidCuPpTDl_g",    "Failure": {      "errors": [        {          "errorCode": {            "campaignError": "DUPLICATE_CAMPAIGN_NAME"          },          "message": "Trying to modify the name of an active or paused campaign, where the name is already assigned to another active or paused campaign.",          "trigger": {            "stringValue": "XXXXX"          },          "location": {            "fieldPathElements": [              {                "fieldName": "operations",                "index": "0"              },              {                "fieldName": "create"              },              {                "fieldName": "name"              }            ]          }        }      ]    }  }


Is campaign  got created after sending  send us an error response ?


Google Ads API Forum Advisor Prod

unread,
Jun 20, 2019, 4:18:04 PM6/20/19
to adwor...@googlegroups.com
Hello Priya,

Account to the error duplicate_campaign_name you have to create the campaign with name that is existing in your account even for paused and removed campaigns. campaign name should be unique.

Regards,
Sai Teja, Google Ads API Team

ref:_00D1U1174p._5001UCYeJg:ref

Priya

unread,
Jun 20, 2019, 11:40:27 PM6/20/19
to AdWords API and Google Ads API Forum
Hi Sai Teja,

Thanks for your feedback.

I used this campaign name for the request for which I received "internal server error" as response. My assumption is that in this scenario , the campaign should not have created as the api returned "internal server error" exception.

However when I retry using the same campaign name in my subsequent attempt, I received a duplicate campaign name error. Does this mean that the campaign was created for my first api call even though the response returned was an internal server error?

Regards,
Priya

Priya

unread,
Jun 21, 2019, 9:45:08 AM6/21/19
to AdWords API and Google Ads API Forum
I used a unique campaign name for the mutate campaign create operation which returned me an internal server error. when I retry using the same campaign name in my subsequent attempt, I received a duplicate campaign name error. Does this mean that the campaign was created for my first api call even though the response returned was an internal server error?


On Thursday, June 20, 2019 at 1:39:26 PM UTC-4, Priya wrote:

Google Ads API Forum Advisor Prod

unread,
Jun 21, 2019, 1:28:50 PM6/21/19
to adwor...@googlegroups.com
Hello Priya,

It could be possible. If the internal error occurred in the subsequent operation that are supposed to run after creating the campaign. You could try to pull the campaign by that name to see if any campaign exists with that name. 
Reply all
Reply to author
Forward
0 new messages