question

EricCaginicolau-9537 avatar image
0 Votes"
EricCaginicolau-9537 asked EricUrban-MSFT edited

Microsoft Ads API issue when using AddCampaignCriterions Service Operation : "An internal error has occurred" Without any detail

Hi,
I'm trying to use the AddCampaignCriterions Service Operation to add an Audience Criterion to a campaign but I always get an error without any detail:

The reply I get is:

 <?xml version="1.0" encoding="UTF-8"?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
       <s:Fault>
          <faultcode>s:Client</faultcode>
          <faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information. TrackingId: 03bf33b5-ebe1-43e9-a777-db5a1f8df5d5.</faultstring>
          <detail>
             <ApiFaultDetail xmlns="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <TrackingId xmlns="https://adapi.microsoft.com">03bf33b5-ebe1-43e9-a777-db5a1f8df5d5</TrackingId>
                <BatchErrors />
                <OperationErrors>
                   <OperationError>
                      <Code>0</Code>
                      <Details i:nil="true" />
                      <ErrorCode>InternalError</ErrorCode>
                      <Message>An internal error has occurred.</Message>
                   </OperationError>
                </OperationErrors>
             </ApiFaultDetail>
          </detail>
       </s:Fault>
    </s:Body>
 </s:Envelope>


How can I find the issue with only the TrackingId?
I've been able to work around my issues previously but this time I'm stuck

Thanks in advance





advertising-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EricUrban-MSFT avatar image
0 Votes"
EricUrban-MSFT answered

Sorry for the delayed response! If you still observe this error please send the latest tracking ID + timestamp and we can review it. The SOAP request message is also helpful. Thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EricCaginicolau-9537 avatar image
0 Votes"
EricCaginicolau-9537 answered

Hi,

Thanks for the answer. I was on vacation I couldn't try earlier but I still have the same issue.
Here is sa sample of the request. I've juste removed the header to anonymise them a bit


 <?xml version="1.0" encoding="UTF-8"?>
 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
     [REMOVED]
    </SOAP-ENV:Header>
    <ns1:Body>
       <ns0:AddCampaignCriterionsRequest>
          <ns0:CampaignCriterions>
             <ns0:CampaignCriterion xsi:type="ns0:BiddableCampaignCriterion">
                <ns0:CampaignId>367849381</ns0:CampaignId>
                <ns0:Criterion xsi:type="ns0:AudienceCriterion">
                   <ns0:Type>AudienceCriterion</ns0:Type>
                   <ns0:AudienceType>RemarketingList</ns0:AudienceType>
                </ns0:Criterion>
                <ns0:Status>Active</ns0:Status>
                <ns0:Type>BiddableCampaignCriterion</ns0:Type>
                <ns0:CriterionBid xsi:type="ns0:BidMultiplier">
                   <ns0:Type>BidMultiplier</ns0:Type>
                   <ns0:Multiplier>0.3</ns0:Multiplier>
                </ns0:CriterionBid>
             </ns0:CampaignCriterion>
          </ns0:CampaignCriterions>
          <ns0:CriterionType>Targets</ns0:CriterionType>
       </ns0:AddCampaignCriterionsRequest>
    </ns1:Body>
 </SOAP-ENV:Envelope>


I still get the same error

 <?xml version="1.0" encoding="UTF-8"?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
       <s:Fault>
          <faultcode>s:Client</faultcode>
          <faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information. TrackingId: 89585f35-51bf-4fa0-9698-0da0119ccc80.</faultstring>
          <detail>
             <ApiFaultDetail xmlns="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <TrackingId xmlns="https://adapi.microsoft.com">89585f35-51bf-4fa0-9698-0da0119ccc80</TrackingId>
                <BatchErrors />
                <OperationErrors>
                   <OperationError>
                      <Code>0</Code>
                      <Details i:nil="true" />
                      <ErrorCode>InternalError</ErrorCode>
                      <Message>An internal error has occurred.</Message>
                   </OperationError>
                </OperationErrors>
             </ApiFaultDetail>
          </detail>
       </s:Fault>
    </s:Body>
 </s:Envelope>

I'm unsure where to find the timestamp, but I did this request 2-5 mins ago

Thanks in advance

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EricUrban-MSFT avatar image
0 Votes"
EricUrban-MSFT answered EricUrban-MSFT edited

Be sure to use 'Audience' as the CriterionType, and whole numbers e.g., '30' for bid multiplier. This request works for me:

<AddCampaignCriterionsRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
  <CampaignCriterions xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<CampaignCriterion i:type="BiddableCampaignCriterion">
  <CampaignId>CampaignIdHere</CampaignId>
  <Criterion i:type="AudienceCriterion">
<Type i:nil="true" />
<AudienceId>AudienceIdHere</AudienceId>
<AudienceType>RemarketingList</AudienceType>
  </Criterion>
  <ForwardCompatibilityMap xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="true" />
  <Id i:nil="true" />
  <Status>Active</Status>
  <Type i:nil="true" />
  <CriterionBid i:type="BidMultiplier">
<Type i:nil="true" />
<Multiplier>30</Multiplier>
  </CriterionBid>
</CampaignCriterion>
  </CampaignCriterions>
  <CriterionType>Audience</CriterionType>
</AddCampaignCriterionsRequest>


Please reach out if you have any follow up questions.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.