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