keyword bid upload duplicacy error

14 views
Skip to first unread message

Harisankar Mohanty

unread,
May 26, 2020, 6:24:41 PM5/26/20
to AdWords API and Google Ads API Forum

Hello,

We are using adwords PHP library for uploading bid adjustment for keywords to adwords server. For this we are using "BiddableAdGroupCriterion" service.

We have some keywords which have the same keywordId (criteriaId), adwordsID and campaignID. They are distinguished ONLY in capitalization. Here is an example.  We have "group therapy" and "Group Therapy". When we try to upload bids for those keywords, we are getting this error :

PHP Fatal error:  Uncaught Google\\AdsApi\\AdWords\\v201809\\cm\\ApiException: [DistinctError.DUPLICATE_ELEMENT @ operations[37], DistinctError.DUPLICATE_ELEMENT @ operations[44], DistinctError.DUPLICATE_ELEMENT @ operations[82], DistinctError.DUPLICATE_ELEMENT @ operations[84]] in /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43\nStack trace:\n#0 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array)\n#1 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202): Google\\AdsApi\\Common\\Util\\Reflection->createInstance('Google\\\\AdsApi\\\\A...', Array)\n#2 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\\AdsApi\\Common\\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))\n#3 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/cm/AdGroupCriterionService.php(198): Google\\AdsApi\\Com in /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

Can you suggest any way so that we can also upload bids for these keywords without getting any error?

Regards,
Hari

Google Ads API Forum Advisor Prod

unread,
May 27, 2020, 2:20:28 PM5/27/20
to harish....@gmail.com, adwor...@googlegroups.com
Hi Hari,

Thank you for reaching out. All unique keywords in an ad group should have a different Keyword ID so please make sure you are checking the proper value. Please share your client customer ID, campaign ID, and ad group ID via Reply privately to author so I can further investigate the issue.

Regards,
Mitchell
Google Ads API Team

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