Custom Url Parameters XML Question

11 views
Skip to first unread message

jack.e...@gmail.com

unread,
Nov 19, 2018, 6:12:49 AM11/19/18
to AdWords API and Google Ads API Forum
Hello,

This is my request:
'<?xml version="1.0"?>' +
      '  <soapenv:Header>' +
      '    <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">' +
      '      <ns1:clientCustomerId>' + this.customerClientId + '</ns1:clientCustomerId>' +
      '      <ns1:developerToken>' + this.developerToken + '</ns1:developerToken>' +
      '      <ns1:userAgent>AdWords API Practice</ns1:userAgent>' +
      '      <ns1:validateOnly>' + validate + '</ns1:validateOnly>' +
      '      <ns1:partialFailure>' + partialFailure + '</ns1:partialFailure>' +
      '    </ns1:RequestHeader>' +
      '  </soapenv:Header>' +
      '  <soapenv:Body>' +
      '    <ns1:mutate xmlns:ns1="https://adwords.google.com/api/adwords/cm/' + this.constraints.apiVersion + '">' +
      '      <ns1:operations xsi:type="ns1:CampaignOperation">' +
      '        <ns1:operator>SET</ns1:operator>' +
      '          <ns1:operand xsi:type="ns1:Campaign">' +
      '            <ns1:id>1621838844</ns1:id>' +
      '            <ns1:urlCustomParameters>' +
      '              <ns1:parameters>' +
      '                <ns1:key>iAmKey</ns1:key>' +
      '                <ns1:value>iAmValue</ns1:value>' +
      '                <ns1:isRemove>false</ns1:isRemove>' +
      '              </ns1:parameters>' +
      '              <ns1:doReplace>true</ns1:doReplace>' +
      '            </ns1:urlCustomParameters>' +      
      '          </ns1:operand>' +
      '      </ns1:operations>' +
      '    </ns1:mutate>' +
      '  </soapenv:Body>' +
      '</soapenv:Envelope>';

This is my response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<requestId>00057ae2dff9cd280a0108168e060393</requestId>
<serviceName>CampaignService</serviceName><methodName>mutate</methodName><operations>0</operations><responseTime>121</responseTime></ResponseHeader></soap:Header><soap:Body><mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809"></mutateResponse></soap:Body></soap:Envelope>


I am receiving no errors, but no urlCustomParameters are added to my campaign. I am guessing I am doing something simple wrong, what might it be?

Thank you for your time.

Bharani Cherukuri (AdWords API Team)

unread,
Nov 19, 2018, 12:24:21 PM11/19/18
to AdWords API and Google Ads API Forum
Hello, 

I was able to add custom parameters on my testing without any issues using the Java client library. Please find the attached SOAP logs as a reference. Please note that this field cannot be set for campaign channel subtype UNIVERSAL_APP_CAMPAIGN. Can you make sure that you're not using the Universal App campaign? If you continue to have an issue with this, could you share us the complete SOAP request and response logs without redacting any information so I can take a closer look? You can reply back via Reply privately to author option.

Thanks,
Bharani, AdWords API Team
CampaignService.docx
Reply all
Reply to author
Forward
0 new messages