Adding Campaign through CampaignService returns a CampaignId, but doesn't appear in AdWords front-end

47 views
Skip to first unread message

Vince Lee

unread,
Aug 22, 2014, 6:29:20 AM8/22/14
to adwor...@googlegroups.com
Hello!

I am trying to add a campaign via the CampaignService. The API returns a valid response, but when I go to find the Campaign in the AdWords Web UI, the Campaign doesn't show up. Any ideas?

Here are my SOAP request and response:


REQUEST

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.17929)
Authorization: Bearer ya29.aQDPeqTfLlvtLxwAAACQUAMsDRIfisTuLHSYcPHQ3Jtu0t2IWNilpnF0OGsLDA
VsDebuggerCausalityData: uIDPoyEvzFfPv0xKpch/iNX2EFMAAAAAeGbowC87YkqGa1+PCKt1XK6OXAwiZ4lCtHsrW66MK+IACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1828
Accept-Encoding: gzip
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?>
    <soap:Header>
        <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201402">
            <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201402">xxxxxxxxxxx</developerToken>
            <clientCustomerId xmlns="https://adwords.google.com/api/adwords/cm/v201402">xxxxxxx</clientCustomerId>
            <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201402">INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE (AwApi-DotNet/16.7.0, Common-Dotnet/2.2.0, .NET CLR/4.0.30319.17929, gzip)</userAgent>
        </RequestHeader>
    </soap:Header>
    <soap:Body>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <name>vince test 1109</name>
                    <status>PAUSED</status>
                    <budget>
                        <budgetId>277878389</budgetId>
                        <name>vince test 1109</name>
                        <period>DAILY</period>
                        <amount>
                            <ComparableValue.Type>Money</ComparableValue.Type>
                            <microAmount>20000000</microAmount>
                        </amount>
                        <deliveryMethod>STANDARD</deliveryMethod>
                        <isExplicitlyShared>false</isExplicitlyShared>
                        <status>ACTIVE</status>
                    </budget>
                    <adServingOptimizationStatus>ROTATE</adServingOptimizationStatus>
                    <settings xsi:type="KeywordMatchSetting">
                        <optIn>false</optIn>
                    </settings>
                    <advertisingChannelType>SEARCH</advertisingChannelType>
                    <networkSetting>
                        <targetGoogleSearch>true</targetGoogleSearch>
                        <targetSearchNetwork>true</targetSearchNetwork>
                        <targetContentNetwork>false</targetContentNetwork>
                        <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork>
                    </networkSetting>
                    <biddingStrategyConfiguration>
                        <biddingStrategyType>MANUAL_CPC</biddingStrategyType>
                    </biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soap:Body>
</soap:Envelope>


RESPONSE

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Fri, 22 Aug 2014 10:14:06 GMT
Expires: Fri, 22 Aug 2014 10:14:06 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 2466
Server: GSE

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201402">
            <requestId>0005013518e4d6500a8083c64a0088d1</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>mutate</methodName>
            <operations>0</operations>
            <responseTime>553</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201402">
            <rval>
                <ListReturnValue.Type>CampaignReturnValue</ListReturnValue.Type>
                <value>
                    <id>221939909</id>
                    <name>vince test 1109</name>
                    <status>PAUSED</status>
                    <servingStatus>SUSPENDED</servingStatus>
                    <startDate>20140822</startDate>
                    <endDate>20371230</endDate>
                    <budget>
                        <budgetId>277878389</budgetId>
                        <name>vince test 1109</name>
                        <period>DAILY</period>
                        <amount>
                            <ComparableValue.Type>Money</ComparableValue.Type>
                            <microAmount>20000000</microAmount>
                        </amount>
                        <deliveryMethod>STANDARD</deliveryMethod>
                        <isExplicitlyShared>false</isExplicitlyShared>
                        <status>ACTIVE</status>
                    </budget>
                    <conversionOptimizerEligibility>
                        <eligible>false</eligible>
                        <rejectionReasons>CAMPAIGN_IS_NOT_ACTIVE</rejectionReasons>
                        <rejectionReasons>CONVERSION_TRACKING_NOT_ENABLED</rejectionReasons>
                    </conversionOptimizerEligibility>
                    <adServingOptimizationStatus>ROTATE</adServingOptimizationStatus>
                    <settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="GeoTargetTypeSetting">
                        <Setting.Type>GeoTargetTypeSetting</Setting.Type>
                        <positiveGeoTargetType>DONT_CARE</positiveGeoTargetType>
                        <negativeGeoTargetType>DONT_CARE</negativeGeoTargetType>
                    </settings>
                    <settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="KeywordMatchSetting">
                        <Setting.Type>KeywordMatchSetting</Setting.Type>
                        <optIn>false</optIn>
                    </settings>
                    <advertisingChannelType>SEARCH</advertisingChannelType>
                    <networkSetting>
                        <targetGoogleSearch>true</targetGoogleSearch>
                        <targetSearchNetwork>true</targetSearchNetwork>
                        <targetContentNetwork>false</targetContentNetwork>
                        <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork>
                    </networkSetting>
                    <biddingStrategyConfiguration>
                        <biddingStrategyType>MANUAL_CPC</biddingStrategyType>
                        <biddingScheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ManualCpcBiddingScheme">
                            <BiddingScheme.Type>ManualCpcBiddingScheme</BiddingScheme.Type>
                            <enhancedCpcEnabled>false</enhancedCpcEnabled>
                        </biddingScheme>
                    </biddingStrategyConfiguration>
                    <displaySelect>true</displaySelect>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>

Josh Radcliff (AdWords API Team)

unread,
Aug 22, 2014, 1:09:40 PM8/22/14
to adwor...@googlegroups.com
Hi,

That campaign is in the REMOVED state, so you'll only see it in the UI if you change the filter drop down to All instead of All enabled or All but removed. Once you select the campaign you can see who removed it by clicking the View History link above the tabs.

By the way, I noticed that you included the Authorization header in your post. In this particular case, the post wasn't made public until after the access token in the header had expired, but in general you should avoid posting any sensitive information to the forum.

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages