OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE while setting MAXIMIZE_CONVERSION_VALUE for campaign bidding strategy

42 views
Skip to first unread message

duong xuan toi

unread,
Sep 8, 2019, 11:27:30 PM9/8/19
to AdWords API and Google Ads API Forum
Hi,

Iam getting Error OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE while setting MAXIMIZE_CONVERSION_VALUE for campaign bidding strategy
Here is SOAP request and response:
SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>xxx</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>Knorex-adwords (AwApi-Java, AdWords-Axis/4.1.0, Common-Java/4.1.0, Axis/1.4, Java/1.8.0_201, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <name>31 may campaign adgroup test 1</name>
                    <startDate>20191201</startDate>
                    <budget>
                        <budgetId>6496185000</budgetId>
                    </budget>
                    <advertisingChannelType>SEARCH</advertisingChannelType>
                    <networkSetting>
                        <targetGoogleSearch>true</targetGoogleSearch>
                        <targetSearchNetwork>true</targetSearchNetwork>
                        <targetContentNetwork>false</targetContentNetwork>
                    </networkSetting>
                    <biddingStrategyConfiguration>
                        <biddingStrategyId>6458155126</biddingStrategyId>
                    </biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

2019-09-09 10:25:29.938  INFO 2211 --- [  XNIO-2 task-1] c.g.a.a.a.l.c.A.soapXmlLogger            : SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
            <requestId>0005921656f7b76f0aa7874f64090e03</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>138</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
                    <message>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OperationAccessDenied">
                        <fieldPath>operations[0].operand.biddingStrategyConfiguration.biddingStrategyType</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>biddingStrategyConfiguration</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>biddingStrategyType</field>
                        </fieldPathElements>
                        <trigger/>
                        <errorString>OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE</errorString>
                        <ApiError.Type>OperationAccessDenied</ApiError.Type>
                        <reason>OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Reply all
Reply to author
Forward
0 new messages