Hi Giles,

Thanks for helping identify the change in behavior with duplicate keywords. 
I'm following up with the upgraded URLs team to see if this was 
intentional. I'll post back once I have an update.

As to whether you'll be able to continue to pass "" for *destinationUrl* after 
July 1st, I'm not aware of any plans to change the behavior of that 
particular validation, so you should be fine. Note, though, that the 
*destinationUrl* field may eventually go away completely in a future 
version of the API. When and if that happens, you'll presumably have to 
remove your code that's setting that attribute.

Thanks,
Josh, AdWords API Team

On Thursday, June 25, 2015 at 8:05:32 PM UTC-4, Giles Bodger wrote:
>
> Hi Josh - ok so it looks like we were trying to add a keyword text / match 
> type combination that already existed. But we were actually trying to Add 
> and not update. So the system is smart enough to think that if there is 
> already a match on keyword and  matchtype within the adgroup you are trying 
> to add to, it tries to update the existing criterion. 
>
> We can solve the issue by setting all destinationUrls to an empty string 
> "" while we are setting the finalUrls to the actual landing page. Is it 
> something we can simply leave in our code so as to "set" the destinationUrl 
> field to empty string by default. And if so, will this be possible after 
> the 1st of July, as from that date the destinationUrl field becomes read 
> only ??
>
> Lastly, the scenraio where we were sending in duplicate keywords in the 
> same request. Previously if this had happened while setting the 
> destinationUrl properties we would have had 2 successful operations each 
> given the same criterion immutable id. Now it appears that if we do this 
> but with the duplicate keywords having the finalUrls set we get both 
> operations erroring with the 
> *.CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS* error. Am i right in 
> saying that the creational operations have become more strict? Not a 
> problem and totally down to our side not deduping, but just want to clarify 
> that with you 
>
> cheers
>
> On Tuesday, June 23, 2015 at 8:59:47 PM UTC+1, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Giles,
>>
>> On #1, are you sure this is happening when adding a *new* keyword to an 
>> existing campaign's ad group, and not when trying to issue a *SET* operation 
>> that passes the final URLs? To my knowledge, we'll only throw that error in 
>> two scenarios:
>>
>>    1. On a *SET* where *finalUrls* is specified, the criterion already 
>>    has a *destinationUrl*, and the operation does not set the 
>>    *destinationUrl* to empty string ("")
>>    2. On an *ADD* where both *finalUrls* and *destinationUrl* is 
>>    specified.
>>
>> For both #1 and #2, could you pass along the *requestId*s from the 
>> failed responses if you have them? If not, could you provide me with the 
>> date/time (including timezone) and ad group and criterion IDs of the failed 
>> requests?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Tuesday, June 23, 2015 at 10:16:06 AM UTC-4, Giles Bodger wrote:
>>>
>>> Hi all
>>>
>>> We have made a change to our API integration that now sets the finalUrls 
>>> value and not the destinationUrl on a BiddableAdGroupCriterion when adding 
>>> a keyword to an AdGroup and Campaign.
>>>
>>> We have been seeing a couple of weird errors though
>>>
>>> 1. When adding a COMPLETELY NEW campaign i can create a 
>>> BiddableAdGroupCriterion and set the finalUrls value (new string[] 
>>> {"myurl"}) and i do nothing with the destinationUrl property. My keyword is 
>>> created no problem. HOWEVER when i try to apply the same logic to adding a 
>>> new keyword to a campaign that already exists (but has yet to be migrated 
>>> (i.e. it isn't July yet)) I am getting this error ....
>>>
>>> *AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS*
>>>
>>> This, i cannot understand because i removed the code that would set my 
>>> url to the old destinationUrl property, and coded up the setting of the 
>>> finalUrls.
>>>
>>> Does your whole campaign have to have been migrated before you can start 
>>> to add new entities with a finalUrls value ? Are you not allowed to have 
>>> keywords in a campaign that some have destinationUrl set and others have 
>>> finalUrls set ??
>>>
>>> I have read that a work around might be to set the detinationUrl to null 
>>> or an empty string, but that seems to be a hack and in any way the 
>>> destinationUrl is readonly as of july 1st so trying to set it after that 
>>> time will give me an error i believe
>>>
>>>
>>> 2. Our internal processes caused a duplication of several new keywords 
>>> we were adding. All with the finalUrls set, but for whatever reason we 
>>> created pairs of identical keywords to be added in 1 api call. All good, 
>>> and we have built in management to account for the errors given back by the 
>>> interface, BUT the error we got is a little misleading - if indeed it 
>>> actually means "you have a duplicate in your request" - the error we are 
>>> getting is ...
>>>
>>> *AdGroupCriterionError.CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS*
>>>
>>> We would have expected an error like "DUPLICATE_ELEMENT" or something, 
>>> if indeed this is a duplicate error issue
>>>
>>>
>>>
>>> Anyhow, many thanks in advance
>>>
>>> Giles
>>>
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ddf429f8-539e-4da1-a40b-f61e595c2069%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to