GAM soap API getAvailabilityForecast ServerError.SERVER_ERROR

3 views
Skip to first unread message

Richard

unread,
6:50 PM (3 hours ago) 6:50 PM
to Google Ad Manager API Forum
Hello, I am looking to use the soap api to create an availability forecast with a proposal line item, but have been receiving the generic server error. Please let me know what I can do to fix it, thanks

Request Id: 6569f3e06de5fff87c2e2f4751f9c394
Network Code: 7675

SoapFault exception: [soap:Server] [ServerError.SERVER_ERROR @ ] in /file.php:300

REQUEST:
<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://www.google.com/apis/ads/publisher/v202508">
    <SOAP-ENV:Header>
        <ns1:RequestHeader>
            <ns1:networkCode>7675</ns1:networkCode>
            <ns1:applicationName>[REDACTED]</ns1:applicationName>
        </ns1:RequestHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <ns1:getAvailabilityForecast>
            <ns1:lineItem>
                <ns1:proposalLineItem>
                    <ns1:startDateTime>
                        <ns1:date>
                            <ns1:year>2025</ns1:year>
                            <ns1:month>9</ns1:month>
                            <ns1:day>10</ns1:day>
                        </ns1:date>
                        <ns1:hour>0</ns1:hour>
                        <ns1:minute>0</ns1:minute>
                        <ns1:second>0</ns1:second>
                        <ns1:timeZoneId>America/New_York</ns1:timeZoneId>
                    </ns1:startDateTime>
                    <ns1:endDateTime>
                        <ns1:date>
                            <ns1:year>2025</ns1:year>
                            <ns1:month>9</ns1:month>
                            <ns1:day>30</ns1:day>
                        </ns1:date>
                        <ns1:hour>23</ns1:hour>
                        <ns1:minute>59</ns1:minute>
                        <ns1:second>59</ns1:second>
                        <ns1:timeZoneId>America/New_York</ns1:timeZoneId>
                    </ns1:endDateTime>
                    <ns1:goal>
                        <ns1:goalType>NONE</ns1:goalType>
                        <ns1:unitType>IMPRESSIONS</ns1:unitType>
                        <ns1:units>100000</ns1:units>
                    </ns1:goal>
                    <ns1:deliveryRateType>EVENLY</ns1:deliveryRateType>
                    <ns1:lineItemType>STANDARD</ns1:lineItemType>
                    <ns1:rateType>CPM</ns1:rateType>
                    <ns1:creativePlaceholders>
                        <ns1:size>
                            <ns1:width>300</ns1:width>
                            <ns1:height>250</ns1:height>
                            <ns1:isAspectRatio>false</ns1:isAspectRatio>
                        </ns1:size>
                    </ns1:creativePlaceholders>
                    <ns1:targeting>
                        <ns1:inventoryTargeting>
                            <ns1:targetedAdUnits>
                                <ns1:adUnitId>[REDACTED]</ns1:adUnitId>
                            </ns1:targetedAdUnits>
                        </ns1:inventoryTargeting>
                    </ns1:targeting>
                    <ns1:netRate>
                        <ns1:currencyCode>USD</ns1:currencyCode>
                        <ns1:microAmount>5000000</ns1:microAmount>
                    </ns1:netRate>
                </ns1:proposalLineItem>
            </ns1:lineItem>
            <ns1:forecastOptions>
                <ns1:includeContendingLineItems>true</ns1:includeContendingLineItems>
            </ns1:forecastOptions>
        </ns1:getAvailabilityForecast>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

RESPONSE:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://www.google.com/apis/ads/publisher/v202508">
            <requestId>6569f3e06de5fff87c2e2f4751f9c394</requestId>
            <responseTime>257</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[ServerError.SERVER_ERROR @ ]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v202508">
                    <message>[ServerError.SERVER_ERROR @ ]</message>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServerError">
                        <fieldPath></fieldPath>
                        <trigger></trigger>
                        <errorString>ServerError.SERVER_ERROR</errorString>
                        <reason>SERVER_ERROR</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>
Reply all
Reply to author
Forward
0 new messages