OK I what you suggested:
1. replaced sitelinkUrl with sitelinkFinalUrls
2. instead of a string I pass an array ( 'sitelinkFinalUrls':
['http://www.awesome.com']
I get a an exception:
Traceback (most recent call last):
File ".../app/utils/actions.py", line 110, in perform
ret = self.callback(self.order, *self.args)
File ".../app/scheduler/funcs.py", line 80, in do
d = adw.create_sitelinks(order)
File ".../app/services/adword_service/adwordwrapper.py", line 235, in
create_sitelinks
response = campaign_extension_setting_service.mutate([operation])
File ".virtualenvs/adwiz/lib/python2.7/site-packages/googleads/common.py",
line 296, in MakeSoapRequest
for arg in args])
File
"/home/lawalpha9marketi/.virtualenvs/adwiz/lib/python2.7/site-packages/suds/client.py"
, line 542, in __call__
return client.invoke(args, kwargs)
File virtualenvs/adwiz/lib/python2.7/site-packages/suds/client.py", line
602, in invoke
result = self.send(soapenv)
File ".virtualenvs/adwiz/lib/python2.7/site-packages/suds/client.py",
line 649, in send
result = self.failed(binding, e)
File ".virtualenvs/adwiz/lib/python2.7/site-packages/suds/client.py",
line 702, in failed
r, p = binding.get_fault(reply)
File adwiz/lib/python2.7/site-packages/suds/bindings/binding.py", line 265
, in get_fault
raise WebFault(p, faultroot)
WebFault: Server raised fault: 'Unmarshalling Error: cvc-complex-type.2.3:
Element 'ns1:sitelinkFinalUrls' cannot have character [children], because
the type's content type is element-only. '
On Monday, 31 August 2015 22:35:37 UTC+2, Josh Radcliff (AdWords API Team)
wrote:
>
> Hi,
>
> It looks like that example is outdated. I'll speak with the owner of that
> library to have that fixed.
>
> In the meantime, could you try making the following changes and let me
> know if you still run into errors?
>
> 1. Specify sitelinkFinalUrls
>
> <https://developers.google.com/adwords/api/docs/reference/v201506/CampaignExtensionSettingService.SitelinkFeedItem#sitelinkFinalUrls>
> instead
> of *sitelinkUrl*
> 2. Set *sitelinkFinalUrls* to an *array* containing your final URL
>
> Thanks,
> Josh, AdWords API Team
>
> On Monday, August 31, 2015 at 2:49:03 PM UTC-4, A Neuen wrote:
>>
>> I am getting the same error using version v201502:
>>
>>
>> Are the examples here:
>>
>> https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201502/extensions/add_site_links.py#L55
>>
>> wrong?
>>
>> I tried to replace with sitelinkFinalUrls
>> <https://developers.google.com/adwords/api/docs/reference/v201506/CampaignExtensionSettingService.SitelinkFeedItem#sitelinkFinalUrls>
>> as
>> suggested in an answer and I get the same as a user below:
>> suds.WebFault: Server raised fault: 'Unmarshalling Error:
>> cvc-complex-type.2.3: Element 'ns0:sitelinkFinalUrls' cannot have character
>> [children], because the type's content type is element-only. '
>>
>>
>> On Tuesday, 14 July 2015 08:35:16 UTC+2, MCC Test wrote:
>>>
>>> Hello All,
>>>
>>> From Past few days I am getting error like *WRITE_ACCESS_DENIED* while
>>> posting new sitelinks via adwords api.I am using
>>> *AdGroupExtensionSettingService
>>> *to create new sitelinks under adgroups.
>>>
>>> "[Jul 14 2015 02:23:27.000000 - ERROR] effectiveUser=xxx-xxx-xxxx
>>> service=AdGroupExtensionSettingService method=mutate operators={ADD: 4}
>>> operations=4 units= server=adwords.google.com isFault=true
>>> faultMessage=[EntityAccessDenied.WRITE_ACCESS_DENIED @
>>> operations[0].operand.extensionSetting.extensions,
>>> EntityAccessDenied.WRITE_ACCESS_DENIED @
>>> operations[1].operand.extensionSetting.extensions,
>>> EntityAccessDenied.WRITE_ACCESS_DENIED @
>>> operations[2].operand.extensionSetting.extensions,
>>> EntityAccessDenied.WRITE_ACCESS_DENIED @
>>> operations[3].operand.extensionSetting.extensions]"
>>>
>>> Before few days it was all working good suddenly recently started
>>> getting error.
>>>
>>> Please look into this.
>>>
>>> Thanks,
>>> Ronak Shah
>>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/7eeda49e-6069-4324-afc7-513160823ca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.