Should I be able to update the trackingUrlTemplate field of a running Ad?

I tried:

public Object updateAd(long adGroupId, long adId, String newTemplate) throws 
RemoteException {
    AdGroupAdServiceInterface s = services.get(session, 
AdGroupAdServiceInterface.class);
    AdGroupAdOperation up = new AdGroupAdOperation();
    up.setOperator(Operator.SET);

    AdGroupAd group = new AdGroupAd();
    group.setAdGroupId(adGroupId);
    group.setStatus(AdGroupAdStatus.ENABLED);
    TextAd ad = new TextAd();

    ad.setId(adId);
    ad.setTrackingUrlTemplate(newTemplate);
    group.setAd(ad);
    up.setOperand(group);

    return s.mutate(new AdGroupAdOperation[] { up });
}


The operation succeeds but the change to ad.setTrackingUrlTemplate is 
ignored and the old one is returned.

Do I have to create a new ad and pause the old one or should that update 
work?

Thanks.


On Wednesday, February 25, 2015 at 11:30:03 AM UTC+1, Thomas Heller wrote:
>
> AdGroupAdService.upgradeUrl seems to have done the trick. I just assumed 
> that would also switch the web interface to show the new options but that 
> is not the case.
>
> On Tuesday, February 24, 2015 at 3:46:22 PM UTC+1, Michael Cloonan 
> (AdWords API Team) wrote:
>>
>> Hello,
>>
>> All API accounts should have Upgraded URLs enabled. Please see our 
>> API-specific 
>> guide 
>> <https://developers.google.com/adwords/api/docs/guides/upgraded-urls> for 
>> information on how to set them up via the API.
>>
>> If you're still having trouble after looking over the guide, please 
>> include a SOAP request/response, making sure to remove private information.
>>
>> Regards,
>> Mike, AdWords API Team
>>
>> On Tuesday, February 24, 2015 at 8:38:53 AM UTC-5, Thomas Heller wrote:
>>>
>>> Hello,
>>>
>>>
>>> http://adwords.blogspot.de/2015/02/get-faster-and-easier-url-tracking-with.html
>>>  
>>> made me think upgraded URLs were live but I cannot find any of the options 
>>> for any of our Campaigns, AdGroups, Ads. Creating new ones does not show 
>>> any of the options either.
>>>
>>> If I do a Campaign.setTrackingUrlTemplate via the API the field is 
>>> updated but simply ignored.
>>>
>>> The "old" signup 
>>> http://googleadsdeveloper.blogspot.de/2014/09/sign-up-for-upgraded-urls-in-adwords-api.html
>>>  
>>> expired.
>>>
>>> Is there anything I need to do on the account-level to get upgraded URLs 
>>> or do I have to wait until our account gets migrated?
>>>
>>> Thanks.
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c0399211-7798-49ef-b813-b73750241cfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to