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
<https://screenshot.googleplex.com/WGVAMUthzNz>), the client made a try
with Operator: SET:

const operations = [{
        operator: 'SET',
        operand: {
            adGroupId: data.adGroup.id <http://data.adgroup.id/>,
            status: 'ENABLED',
            policySummary: {},
            labels: [],
            baseCampaignId: data.campaignId,
            baseAdGroupId: data.adGroup.id <http://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?

Thanks,
Rita Wang  王  蕊 |  Technical Solution Consultant |  ritaw...@google.com |

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAN-NxPuWUz1XVEW2ehscecsSbSp2WGJJy3h0G-cX8cTP9tde7w%40mail.gmail.com.
  • How to update image a... 'Rita Wang' via AdWords API and Google Ads API Forum

Reply via email to