Hi Kevin,

Sorry for the double posting and thanks for your response.

I posted a 
question<https://groups.google.com/d/msg/adwords-api/ORYwDBvqWIE/lbcv2YLeJEcJ>on
 the other thread regarding Image & Text Ads, if you can reply.

Thank you.
Cristi

miercuri, 20 februarie 2013, 20:29:54 UTC+2, Kevin Winter (AdWords API 
Team) a scris:
>
> Hi Cristi,
>   I responded in your other 
> thread<https://groups.google.com/d/msg/adwords-api/ORYwDBvqWIE/oavtonK4E68J> 
> that 
> this template has been deprecated and we'll update the documentation to 
> reflect this.
>
> - Kevin Winter
> AdWords API Team
>
> On Wednesday, February 20, 2013 6:00:59 AM UTC-5, cristi mihailescu wrote:
>>
>> Hi Kevin,
>>
>> Any chance for a solution for the above error message: 
>> USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE ?
>>
>> In the attached file you can find the SOPA request / response for this 
>> API call.
>>
>> The complete response looks like this:
>>
>> <soap:Fault>
>> <faultcode>soap:Server</faultcode>
>> <faultstring>[AdError.USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE @ 
>> operations[0].operand.ad.templateId; trigger:'190']</faultstring>
>> <detail>
>> <ApiExceptionFault xmlns="
>> https://adwords.google.com/api/adwords/cm/v201209";>
>> <message>[AdError.USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE @ 
>> operations[0].operand.ad.templateId; trigger:'190']</message>
>> <ApplicationException.Type>ApiException</ApplicationException.Type>
>> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:type="AdError">
>> <fieldPath>operations[0].operand.ad.templateId</fieldPath>
>> <trigger>190</trigger>
>> <errorString>AdError.USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE</errorString>
>> <ApiError.Type>AdError</ApiError.Type>
>> <reason>USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE</reason>
>> </errors>
>> </ApiExceptionFault>
>> </detail>
>> </soap:Fault>
>>
>> Thank you.
>> Cristi
>>
>>
>> vineri, 15 februarie 2013, 19:31:00 UTC+2, Kevin Winter (AdWords API 
>> Team) a scris:
>>>
>>> Hi Cristi,
>>>   We're currently looking into this.
>>>
>>> - Kevin Winter
>>> AdWords API Team
>>>
>>> On Wednesday, February 13, 2013 12:27:14 AM UTC-5, cristi mihailescu 
>>> wrote:
>>>>
>>>> Hello,
>>>>
>>>> I'm using v201209 .NET Client Libraries with the ClientId 186-121-2518 ( 
>>>> which is a Test Account ).
>>>>
>>>> The publishing of basic TextAds and ImageAds went ok, but when I try to 
>>>> create a TemplateAd ( templateId = 190, "Image Search Ad" ),
>>>> the sevice responds with: USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE
>>>> ( The user does not have permissions to create a template ad for the 
>>>> given template. )
>>>>
>>>> This is a limitation for a TestAccount, or I'm doing something wrong?
>>>>
>>>> Here's a snippet:
>>>>
>>>> var newAd = new v201209.Ad();
>>>>>  
>>>>
>>>> // create the ad image
>>>>> var adImage = new Image();
>>>>> adImage.data = MiscUtil.ResizeImage(creative.ImageData, 160, 160, 
>>>>> ImageFormat.Jpeg);
>>>>> var templateAdElement = new TemplateElement();
>>>>> templateAdElement.uniqueName = "adData";
>>>>> templateAdElement.fields = new TemplateElementField[]
>>>>> {
>>>>> new TemplateElementField
>>>>> {
>>>>> name = "headline",
>>>>> type = TemplateElementFieldType.TEXT,
>>>>> fieldText = GetAdDescription(creative.Title, true, 25)
>>>>> },
>>>>> new TemplateElementField
>>>>> {
>>>>> name = "description1",
>>>>> type = TemplateElementFieldType.TEXT,
>>>>> fieldText = GetAdDescription(creative.Description, true, 25)
>>>>> },
>>>>> new TemplateElementField
>>>>> {
>>>>> name = "description2",
>>>>> type = TemplateElementFieldType.TEXT,
>>>>> fieldText = GetAdDescription(creative.Description, false, 25)
>>>>> },
>>>>> new TemplateElementField
>>>>> {
>>>>> name ="inlineImage",
>>>>> type = TemplateElementFieldType.IMAGE,
>>>>> fieldMedia = adImage
>>>>> }
>>>>> };
>>>>> newAd = new TemplateAd
>>>>>  {
>>>>>  templateId = 190,
>>>>>  name = creative.Title,
>>>>>  templateElements = new TemplateElement[] {templateAdElement},
>>>>>  displayUrl = creative.DisplayedUrl,
>>>>>  url = creative.Url
>>>>>  };
>>>>>  
>>>>>  
>>>>> AdGroupAd adGroupAd = null;
>>>>> if (isChanging)
>>>>> {
>>>>> adGroupAd = new AdGroupAd { adGroupId = adWordsAdGroupId, ad = newAd, 
>>>>> status = AdGroupAdStatus.ENABLED };
>>>>> adGroupAd.ad.id = adWordsAdGroupAdId;
>>>>> }
>>>>> else
>>>>> {
>>>>> adGroupAd = new AdGroupAd { adGroupId = adWordsAdGroupId, ad = newAd, 
>>>>> status = AdGroupAdStatus.ENABLED };
>>>>> }
>>>>> var adOperation = new AdGroupAdOperation {@operator = Operator.ADD};
>>>>> if (isChanging)
>>>>> adOperation.@operator = Operator.SET;
>>>>> adOperation.operand = adGroupAd;
>>>>> operations.Add(adOperation);
>>>>> try
>>>>> {
>>>>> AdGroupAdReturnValue returnValue = 
>>>>> adService.mutate(operations.ToArray());
>>>>> if (returnValue != null && returnValue.value != null && 
>>>>> returnValue.value.Length > 0)
>>>>> return returnValue.value[0].ad.id;
>>>>> }
>>>>> catch (Exception ex)
>>>>> {
>>>>> throw new System.ApplicationException("Error adding new Ad.", ex);
>>>>> }
>>>>
>>>>  
>>>> Thank you.
>>>> Cristi
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to