adUnionId error

2013-11-12 Thread pete
Hello I'm getting an error when creating a TemplateAd AdError: the violating text is "", located in the adUnionId field; the Policy violated is called "" The process flow is to create an Ad by using the API to "get" an Ad, make a copy in memory, change the url field, set the id field to nul

Re: adUnionId error

2013-11-19 Thread Danial Klimkin
Hello pete, For copying Template Ads please consider using originAdId field, see release notes: https://developers.google.com/adwords/api/docs/reference/#v201309 Some template ad fields are not available via the API and can only be copied server-side. -Danial, AdWords API Team. On Tuesd

Re: adUnionId error

2013-11-20 Thread pete
Hi Danial I think I understand. If I have an existing template ad and I want to make an exact copy but with a different dest URL then all I do is create a "new", empty, template ad in memory set the url property of the new Ad to the new value set the originAdId property of the new Ad to b

Re: adUnionId error

2013-11-21 Thread Danial Klimkin
Hi Pete, This sounds correct. Please let me know if you face any issues. -Danial, AdWords API Team. On Wednesday, November 20, 2013 6:49:24 PM UTC+4, pete wrote: > > Hi Danial > > I think I understand. > > If I have an existing template ad and I want to make an exact copy but > with a differ

Re: adUnionId error

2013-11-21 Thread pete
> > Hi Danial >> > It seems to work properly when I 1. GET a ful copy of the template Ad 2. Clear the "templates" property of the Ad 3. set the originAdOd to the "id" of the original 4. clear the "id" property 5. set the "url" as appropriate 6. ADD this copy as a new Ad l