I am sending a batch job through the Adwords API with the following operations:
[
{
'operand': {
'adGroupId': 68069102381,
'extensionType': 'SITELINK',
'extensionSetting': {
'extensions': [
{
'xsi_type': 'SitelinkFeedItem',
'sitelinkText': '008642-74-86 really long field to
make all the things fail',
'sitelinkLine2': '008642-74-86 really long field to
make all the things fail',
'sitelinkLine3': 'stuff',
'sitelinkFinalUrls': {'urls': [
'https://channable.com']},
}
]
},
},
'operator': 'ADD',
'xsi_type': 'AdGroupExtensionSettingOperation',
},
{
'operand': {
'ad': {
'id': -2,
'path1': '',
'path2': '',
'xsi_type': 'ExpandedTextAd',
'finalUrls': 'https://channable.com',
'description': 'd1',
'description2': 'd2',
'headlinePart1': 'h1',
'headlinePart2': 'h2',
'headlinePart3': 'h3',
},
'status': 'ENABLED',
'xsi_type': 'AdGroupAd',
'adGroupId': 68069102381,
},
'operator': 'ADD',
'xsi_type': 'AdGroupAdOperation',
},
]
The batch job id I got for this was:
1488888306
This batch job's results were the following:
[OrderedDict([('errorList',
OrderedDict([('errors',
[OrderedDict([('@xmlns:xsi',
'http://www.w3.org/2001/XMLSchema-instance'),
('@xsi:type', 'StringLengthError'
),
('fieldPath',
'operations[0].operand.extensionSetting.extensions[0].sitelinkText'),
('fieldPathElements',
[OrderedDict([('field',
'operations'),
('index', '0')]),
OrderedDict([('field',
'operand')]),
OrderedDict([('field',
'extensionSetting')]),
OrderedDict([('field',
'extensions'),
('index', '0')]),
OrderedDict([('field',
'sitelinkText'
)])]),
('trigger', None),
('errorString',
'StringLengthError.TOO_LONG'),
('ApiError.Type',
'StringLengthError'),
('reason', 'TOO_LONG')]),
OrderedDict([('@xmlns:xsi',
'http://www.w3.org/2001/XMLSchema-instance'),
('@xsi:type', 'StringLengthError'
),
('fieldPath',
'operations[0].operand.extensionSetting.extensions[0].sitelinkLine2'),
('fieldPathElements',
[OrderedDict([('field',
'operations'),
('index', '0')]),
OrderedDict([('field',
'operand')]),
OrderedDict([('field',
'extensionSetting')]),
OrderedDict([('field',
'extensions'),
('index', '0')]),
OrderedDict([('field',
'sitelinkLine2'
)])]),
('trigger', None),
('errorString',
'StringLengthError.TOO_LONG'),
('ApiError.Type',
'StringLengthError'),
('reason', 'TOO_LONG')])])])),
('index', '0')]),
OrderedDict([('errorList',
OrderedDict([('errors',
[OrderedDict([('@xmlns:xsi',
'http://www.w3.org/2001/XMLSchema-instance'),
('@xsi:type', 'StringLengthError'
),
('fieldPath',
'operations[1].operand.extensionSetting.extensions[0].sitelinkLine2'),
('fieldPathElements',
[OrderedDict([('field',
'operations'),
('index', '1')]),
OrderedDict([('field',
'operand')]),
OrderedDict([('field',
'extensionSetting')]),
OrderedDict([('field',
'extensions'),
('index', '0')]),
OrderedDict([('field',
'sitelinkLine2'
)])]),
('trigger', None),
('errorString',
'StringLengthError.TOO_LONG'),
('ApiError.Type',
'StringLengthError'),
('reason', 'TOO_LONG')]),
OrderedDict([('@xmlns:xsi',
'http://www.w3.org/2001/XMLSchema-instance'),
('@xsi:type', 'StringLengthError'
),
('fieldPath',
'operations[1].operand.extensionSetting.extensions[0].sitelinkText'),
('fieldPathElements',
[OrderedDict([('field',
'operations'),
('index', '1')]),
OrderedDict([('field',
'operand')]),
OrderedDict([('field',
'extensionSetting')]),
OrderedDict([('field',
'extensions'),
('index', '0')]),
OrderedDict([('field',
'sitelinkText'
)])]),
('trigger', None),
('errorString',
'StringLengthError.TOO_LONG'),
('ApiError.Type',
'StringLengthError'),
('reason', 'TOO_LONG')])])])),
('index', '1')])]
So, even though I create a valid ad, I am getting an error for the ad that
references the sitelink. This ad does not get created in the adwords
account.
If I try a similar batch job with just the ad and no sitelink, I get no
problems. We just started noticing this problem recently. Any idea what is
going on here?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/08ffe2b5-8a65-4021-9104-0eb5b6b962fa%40googlegroups.com.
