I'm using 201502 I'll try it.

On Monday, April 13, 2015 at 1:36:23 PM UTC+2, Mariusz wrote:
>
> As Thanet said, you need to clear destiantionUrl, but instead of setting 
> it to null, set it to empty string. Unfortunately I am working in .NET, but 
> this is a test we used:
>
>             var k = GetKeyword(); // just gets keyword from AdWords
>
>             var url = k.destinationUrl;
>             k.finalUrls = new UrlList {urls = new[] {url}};
>             k.destinationUrl = "";
>
>
>             UpdateKeyword(k); // simply SETs updated keyword
>
> We ran the test against version v201409.
>
>
> Cheers,
>
> Mariusz
>
>
> On Monday, 13 April 2015 11:56:56 UTC+1, Adxsearch Adxpand wrote:
>>
>> Setting it to null doesn't work. You have to go into the campaign in 
>> adwords and manually change destination url to final url. That's the only 
>> way I got it to work. I also tried a very trivial example not doing 
>> anything else than in the C# Example. If a keyword has a destination url in 
>> AdWords it is not possible to change it to use a final url instead. Can you 
>> change the server implementation so this will be possible. The way it is 
>> right now it's not possible to do this via the API.
>>
>> On Friday, April 10, 2015 at 5:31:27 PM UTC+2, Thanet Knack Praneenararat 
>> (AdWords API Team) wrote:
>>>
>>> Hi,
>>>
>>> Sorry that we don't have Java code examples for AdGroupCriterion now.
>>> But that error was probably because you haven't cleared the destination 
>>> URLs when setting final URLs via MUTATE operation.
>>>
>>> Could you please try clearing the value of destination URLs too (by 
>>> setting it to null)?
>>>
>>> Cheers,
>>> Thanet
>>>
>>> On Friday, April 10, 2015 at 11:22:05 AM UTC+1, Adxsearch Adxpand wrote:
>>>>
>>>> I'm preparing for the upgraded URLs sunset on 7/1 2015. There is an 
>>>> example for programmatically upgrading adGroupAds (TextAds) in Java, but I 
>>>> cannot find a corresponding example for keywords (AdGroupCriterions). 
>>>> There 
>>>> is an example in C#, but our webapplication is written in Java. I tried to 
>>>> translate it since they're similar. It builds but when I try to deploy / 
>>>> upload / mutate my keyword I get:
>>>>
>>>>  [AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS 
>>>> @ operations[1].operand.finalUrls; trigger:'UrlList{urls=[
>>>> http://www.google.com]}']
>>>>
>>>>  Is there an example in Java which you can point me to? Is it possible 
>>>> to upgrade keywords to use the new upgraded URLs programmatically?
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/45fc346d-f9d0-4a99-b719-11a98dfc3040%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to