Hi,
A key API use case of the client is to optimize the campaign by replacing the bad performance assets with new one.
When client try to modify the image assets to an AC campaign via Adwords API, they met following issue.
Since the headlines and descriptions are mandatory with Operators: ADD (
ss), the client made a try with Operator: SET:
const operations = [{
operator: 'SET',
operand: {
adGroupId:
data.adGroup.id,
status: 'ENABLED',
policySummary: {},
labels: [],
baseCampaignId: data.campaignId,
baseAdGroupId:
data.adGroup.id,
forwardCompatibilityMap: [],
adStrengthInfo: {},
ad: {
images: [{
asset: {
'xsi:type': 'ImageAsset',
assetId: '647xxxxx11',
},
}],
},
},
}];
const ret = await adGroupAdService.mutate({operations: operations});
Get error:
Error: cvc-complex-type.2.4.d: Invalid content was found starting with element 'ad'. No child element is expected at this point.
Would you provide a code sample to the client?