Hi Tam, I've found your entries in the log, and the cause of your error is that you are setting the clientEmail header to your MCC account, not an AdWords client account. MCC accounts cannot run campaigns, and that was causing the error. In your example for instance, the clientEmail header should be something like client_1+j_...@google.com. You can read more about the headers required in the sandbox here: http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html#requestheaders.
Best, - Eric On Aug 19, 11:24 am, Tam <tam.lani...@tradedoubler.com> wrote: > Hi Eric > > I'm still getting UNEXPECTED_INTERNAL_API_ERROR @ responses to my > soap calls. I have generated this using your add_campaign.php script > although I slightly moved the position of the <endDate> tag and > removed the <currencyCode> from your code so it exactly matches what > you showed in the example, (the one in the link below) just in case > this matters. I'm assuming the order of these fields doesn't matter > anyway, but swapped it to be on the safe side. > > http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/... > > So here is our header with the tags the order suggested in the link > above (authToken, userAgent,developerToken, applicationToken, > clientEmail) > > (note that I've changed the email but everything else is the same) > > <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/ > v200906"> > <authToken>DQAAAHUAAABmo4KIjOHn- > ytmhAg_j_ZqLtKnXUUOvvt6Sy3KIxamrvRPlQrOtP9L_ueEryLHmicXwe3KhSQ8gXw0hxqWR_6z > dDdjuo- > TSnVW53RZV8LwudeRIRveU4dJK1BbM6mW5d4L08bVplDBpaH7MaKK_B9GMMOIAFL6b6MncgOkWi > FgOg</ > authToken> > <userAgent>blah</userAgent> > <developerToken>j_...@google.com++gbp</ > developerToken><applicationToken>blah</applicationToken> > <clientEmail>j_...@google.com</clientEmail> > </RequestHeader> > > I've also tried several different versions of the header, ordering it > in several ways in case the problem is with my header. I've tried the > following arrangements but none have worked. These include : > > -the order you hard coded in your example code (authToken, > clientEmail, userAgent, developerToken, applicationToken) > > - the order Mauro used in this thread above (authToken, userAgent, > developerToken, applicationToken) > > Can you please clarify, does it matter which of the above formats we > ought to be using? Or do they all work? > > and the request is : > > <mutate xmlns="https://adwords.google.com/api/adwords/cm/v200906"> > <operations> > <operator>ADD</operator> > <operand> > <name>Test Campaign - 1250690230</name> > <status>PAUSED</status> > <endDate>20101001</endDate> > <biddingStrategy xsi:type="ManualCPC"/> > <budget> > <period>DAILY</period> > <amount> > <microAmount>1000000</microAmount> > </amount> > <deliveryMethod>STANDARD</deliveryMethod> > </budget> > </operand> > </operations> > </mutate> > > Have you any thoughts why this API call might still be failing > please? Apologies if this is something stupid but I'm baffled! > > Kind Regards > > Tam > > On Aug 18, 7:31 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > wrote: > > > > > Hi Tam, > > > It is possible that your errors are caused by malformed requests. Can > > you please post the request id of the request that failed? > > > Thanks, > > - Eric > > > On Aug 18, 11:02 am, Tam <tam.lani...@tradedoubler.com> wrote: > > > > Hi There > > > > We're also still getting similar error messages, (i.e. > > > 'UNEXPECTED_INTERNAL_API_ERROR ') to what Mauro's getting above. Can > > > you please clarify whether this message could conceivably be generated > > > in response to a problem at our end or something we are doing wrong, > > > (for example, due to the soap or xml being incorrectly formatted) or > > > is it always / usually going to be indicative of a problem with the > > > actual web service? > > > > Regards > > > > Tam Laniado > > > > On Aug 18, 3:56 pm, Mauro <mau...@gmail.com> wrote: > > > > > I'll post the request as well. > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ > > > > envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- > > > > ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2057="http:// > > > > tempuri.org"> > > > > <SOAP-ENV:Header> > > > > <RequestHeader > > > > xmlns="https://adwords.google.com/api/adwords/cm/ > > > > v200906"> > > > > > <authToken>DQAAAHwAAACMWmX77qL1nk4o7qti1M9RqqkTPDEboquSKCmEIqM5cC9vf0upGw34 > > > > KtnQ3U40zORn2NgFo3VUxTRNBU_M2J7ubn8mMAZygR- > > > > T5N5X0RQ0v5O32uMO4rk_iaRT6wsJEukRQzA7aDxrBHvlEgjmn0qVsQcTfL8fLRULrYlg7-9dbQ > > > > </ > > > > authToken> > > > > <userAgent>Me</userAgent> > > > > > > > > <developerToken>j...@doe.com++usd</developerToken> > > > > <applicationToken/> > > > > </RequestHeader> > > > > </SOAP-ENV:Header> > > > > <SOAP-ENV:Body> > > > > <mutate > > > > xmlns="https://adwords.google.com/api/adwords/cm/v200906"> > > > > <operations> > > > > <operation> > > > > <name>Test</name> > > > > <status>Active</status> > > > > <startDate>20091001</startDate> > > > > <endDate>20091225</endDate> > > > > <budget> > > > > <period>Daily</period> > > > > > > > > <deliveryMethod>STANDARD</deliveryMethod> > > > > <amount> > > > > > > > > <currencyCode>USD</currencyCode> > > > > > > > > <microAmount>1000000</microAmount> > > > > </amount> > > > > </budget> > > > > </operation> > > > > </operations> > > > > </mutate> > > > > </SOAP-ENV:Body> > > > > </SOAP-ENV:Envelope> > > > > > On Aug 18, 10:59 am, Mauro Spivak <mau...@gmail.com> wrote: > > > > > > Hi, > > > > > Still getting the error. Do you think I might be doing something > > > > > wrong? Or > > > > > does the "internal" thing tells the error is in the API server? > > > > > > This is the XML response I just got: > > > > > > Date: Tue, 18 Aug 2009 13:49:22 GMT > > > > > > <soap:Envelope > > > > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader > > > > > xmlns="https://adwords.google.com/api/adwords/cm/v200906"><requestId>b35a146a232d6526ff8ac99cb07a8b34</requestId><operations>1</ope > > > > > > > > > > rations><responseTime>279</responseTime><units>1</units></ResponseHeader></ > > > > > > > > > > soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><fault > > > > > string>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR > > > > > @ </faultstring><detail><ApiExceptionFault > > > > > xmlns="https://adwords.google.com/api/adwords/cm/v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR > > > > > @ > > > > > </message><ApplicationException.Type>ApiException</ApplicationException.Typ > > > > > e><errors > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > xsi:type="InternalApiError"><fieldPath></fieldPath><trigger></trigger><ApiE > > > > > > > > > > rror.Type>InternalApiError</ApiError.Type><reason>UNEXPECTED_INTERNAL_API_E > > > > > > > > > > RROR</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body > > > > > ></soap:Envelope> > > > > > > Cheers, > > > > > > Mauro > > > > > > On Tue, Aug 18, 2009 at 10:29 AM, AdWords API Advisor < > > > > > > adwordsapiadvi...@google.com> wrote: > > > > > > > Although it returned the same SOAP fault, the errors yesterday were > > > > > > actually caused by another problem. That problem has now been > > > > > > resolved, so let us know if you still are receiving exceptions. > > > > > > > Best, > > > > > > - Eric > > > > > > > On Aug 18, 1:09 am, ernnie <ernni...@gmail.com> wrote: > > > > > > > It seems ok now.. the error occurred yesterday.. I'll post again > > > > > > > if > > > > > > > the problem persists. > > > > > > > btw GMT+8 is my timezone. > > > > > > > > Thanks > > > > > > > --Ernnie > > > > > > > > On Aug 17, 10:11 pm, AdWords API Advisor > > > > > > > > <adwordsapiadvi...@google.com> wrote: > > > > > > > > Hi Ernie, > > > > > > > > > When did that error occur? We are trying to locate it in the > > > > > > > > logs and > > > > > > > > knowing the time of the error (and your timezone) would help. > > > > > > > > > Thanks, > > > > > > > > - Eric > > > > > > > > > On Aug 17, 2:51 am, ernnie <ernni...@gmail.com> wrote: > > > > > > > > > > same here: here's the soap request and response: > > > > > > > > > > Request: > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > > > > <SOAP-ENV:Envelope > > > > > > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ > > > > > > > > > envelope/" xmlns:ns1="https://adwords.goog > > > > > > > > > le.com/api/adwords/cm/v200906"><SOAP-ENV:Header><RequestHeader > > > > > > > > > xmlns="https://adwords.google.com/api/adwords/ > > > > > > > > > cm/ > > > > > > > v200906"><authToken>DQAAAH8AAAC6EmNlvQyf6FVkixpw6eEwJagOsOESaYigsZ1LkqVE4Up > > > > > > 7guH4ej4- > > > > > > > > > WTsg2BEH_tIuBfzBSJQaCF > > > > > > > Cz0Bf4VGWy97g17I36uWL1RvrsL8SbXMybohR98r2hfwrOnBqQIaLkMkvNOySHeGnrVldMzngrq > > > > > > dS3GGK9oDsEbeTbSwceNA</ > > > > > > > > > authToken>< > > > > > > > > > clientEmail>client_1+ernni...@gmail.com<client_1%2bernni...@gmail.com> > > > > > > </clientEmail><userAgent>Katana > > > > > > > > > Agent</userAgent><developerToken>***************</ > > > > > > > developerToken><applicationToken>*****************</applicationToken></ > > > > > > > > > RequestHeader> > > > > > > > > > </SOAP-ENV:Header><SOAP-ENV:Body><get xmlns="https:// > > > > > > > > > adwords.google.com/api/adwords/cm/v200906"><selector></s > > > > > > > > > elector></get></SOAP-ENV:Body></SOAP-ENV:Envelope> > > > > > > > > > > Response: > > > > > > > > > > <soap:Envelope > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---