Hi Kemal, I took another look at the criterionIds, and I can see the problem. You passed in different values, but they ended up as 2147483647 in the request. This is a known issue with some versions of PHP, where numbers too large for integer values are truncated to 2147483647. More information is available here:
http://code.google.com/p/google-api-adwords-php/issues/detail?id=5 The solution is to cast your numbers as floats before setting them on the objects. Best, - Eric On Mar 26, 9:49 am, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Kemal, > > I looked at the logs for that request, and the errors are accurate. > There are multiple operation that have the same adGroupId, > criertionId, and paramIndex in that request. Please ensure that there > are no duplicate operations in the request and this error should go > away. > > Best, > - Eric Koleda, AdWords API Team > > On Mar 24, 3:45 pm, Kemal <dis...@gmail.com> wrote: > > > > > Hi, > > > The requestId is 09adeafeb0c60d291d19880e8aac3bf1 > > > Cheers, > > Kemal > > > On Mar 24, 9:12 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > > wrote: > > > > Hi Kemal, > > > > What you are trying to accomplish should be allowed. Can you double > > > check that the adGroupId-criterionId-paramIndex combination is unique > > > for each operation? Do you have the SOAP XML logs or requestId from a > > > request that demonstrates this behavior? > > > > Best, > > > - Eric Koleda, AdWords API Team > > > > On Mar 23, 10:19 am, Kemal <dis...@gmail.com> wrote: > > > > > Hello, > > > > > I am trying to set the same AdParams (AdParamId's are the same, so are > > > > the values) for different criteria in the same AdGroup, all in one > > > > mutate call. But it throws me a > > > > AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES error. > > > > > The documentation states that "The same ad param cannot be specified > > > > in multiple operations". Isn't this quite a bit limiting? How are we > > > > supposed to set a bunch of AdParams for an entire AdGroup in one go? > > > > Multiple calls to mutate() for each and every keyword would just kill > > > > the backend. Or do I have to use the BulkMutateJob service, even if I > > > > don't want to? > > > > > Or maybe (well, hopefully) I triggered a bug in the API. Any comments? > > > > > The data goes like this: > > > > An array of AdParamOperations with 14 elements. Operator is SET. Each > > > > AdParam with the same AdGroupId. > > > > First 7 AdParams set the same paramIndex (1) and the same > > > > insertionText ("4") but each with different criterionIds. > > > > Second 7 AdParams set the other paramIndex (2) and the same > > > > insertionText ("8" in this case) each with different criterionIds as > > > > well. (Actually the order of criterionIds match the first 7 > > > > operations) > > > > > The result is an array of AdParamErrors: > > > > [AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[2].operand; trigger:'AdParam already defined at index 1', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[3].operand; trigger:'AdParam already defined at index 1', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[4].operand; trigger:'AdParam already defined at index 1', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[5].operand; trigger:'AdParam already defined at index 1', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[6].operand; trigger:'AdParam already defined at index 1', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[9].operand; trigger:'AdParam already defined at index 8', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[10].operand; trigger:'AdParam already defined at index 8', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[11].operand; trigger:'AdParam already defined at index 8', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[12].operand; trigger:'AdParam already defined at index 8', > > > > AdParamError.AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES @ > > > > operations[13].operand; trigger:'AdParam already defined at index 8'] > > > > > Best, > > > > Kemal -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 To unsubscribe from this group, send email to adwords-api+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.