Also I'm having problems setting a campaign to a cityTarget. Can you provide a list of values for cityName? or a valid xml request for w/ cityTarget. Btw this is on sandbox August 27. 2009 16:19 GMT+8 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v200906"><SOAP- ENV:Header><RequestHeader xmlns="https://adwords.google.com/api/ adwords/cm/ v200906"><authToken>DQAAAH4AAAAGenJjfkektXHsFcrUCJLBfiGknZ8T_DoMKUKplePkX- gUSDHX40ZjYIlIPR-3Qwxq8mNkhn19VR0RgStnyaCYTMbjI33XZRkdRJr- npFW96xWgwnTo3ae_33a_Tolekbs_nblgVVzqgkkFGc9aJjPjOg0x51jbYfVr8FDslcq5g</ authToken><clientEmail>client_1+ernni...@gmail.com</ clientEmail><userAgent>Katana Agent</ userAgent><developerToken>*********************</ developerToken><applicationToken>*****************</applicationToken></ RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><mutate xmlns="https:// adwords.google.com/api/adwords/cm/v200906"><operations><operator>SET</ operator><operand xsi:type="GeoTargetList"><campaignId>64446</ campaignId><targets xsi:type="CityTarget"><cityName>Bishop's</ cityName><provinceCode>Stortford</provinceCode><countryCode>ENG</ countryCode><excluded>false</excluded></targets><targets xsi:type="CityTarget"><cityName>Dunstable</cityName><provinceCode>ENG</ provinceCode><countryCode>GB</countryCode><excluded>false</excluded></ targets><targets xsi:type="CityTarget"><cityName>Luton</ cityName><provinceCode>ENG</provinceCode><countryCode>GB</ countryCode><excluded>false</excluded></targets><targets xsi:type="CityTarget"><cityName>Milton</cityName><provinceCode>Keynes</ provinceCode><countryCode>ENG</countryCode><excluded>false</excluded></ targets></operand></operations></mutate></SOAP-ENV:Body></SOAP- ENV:Envelope> Response: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/ envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</ faultcode><faultstring>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.Type><errors xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></ fieldPath><trigger></trigger><ApiError.Type>InternalApiError</ ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></ ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> Thanks --Ernnie On Aug 26, 11:36 pm, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Ernnie, > > This appears to be a new issue, even though the error code is the same > in the returned SOAP fault. The core engineering team is looking into > the issue now, and I'll let you know when I get more information. > > Best, > - Eric > > On Aug 26, 4:46 am, ernnie <ernni...@gmail.com> wrote: > > > Eric, > > > Here's another call when retrieving active campaigns > > August 26, 2009 16:46 GMT+8 > > btw i call this on sandbox. > > Request: > > > <?xml version="1.0" encoding="UTF-8"?> > > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ > > envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v200906"><SOAP- > > ENV:Header><RequestHeader xmlns="https://adwords.google.com/api/ > > adwords/cm/ > > v200906"><authToken>DQAAAH4AAACzSFjBeZjgMieNCfw12N0H8ePLGlTvgv3w94HLYEzMCXu > > jH2m83s- > > QtCseVOFY_szVJ8IZhYZ9b6otE2SPzCwMc6Cn1R88DoY9Bvz5BiqSW0dSD3CykLEBhkhI0EwQXX > > _4cT4PsxfEPajlGY42XxAZyfRt5vAfkGrcHlIkYoPScQ</ > > authToken><clientEmail>client_1+ernni...@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><campaignStatuses>ACTIVE</campaignStatuses></ > > selector></get></SOAP-ENV:Body></SOAP-ENV:Envelope> > > > Response: > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/ > > envelope/"><soap:Header><ResponseHeader xmlns="https:// > > adwords.google.com/api/adwords/cm/ > > v200906"><requestId>94c3feebe08d9caea1de2956080dca00</ > > requestId><operations>1</operations><responseTime>951</ > > responseTime><units>1</units></ResponseHeader></ > > soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</ > > faultcode><faultstring>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.Type><errors xmlns:xsi="http://www.w3.org/2001/ > > XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></ > > fieldPath><trigger></trigger><ApiError.Type>InternalApiError</ > > ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></ > > ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> > > > Thanks > > --Ernnie > > On Aug 26, 2:42 pm, ernnie <ernni...@gmail.com> wrote: > > > > Eric, > > > > Again I'm experiencing the same error, Here's the soap request & > > > response btw. August 26, 2009 GMT+8 14:44 > > > > Request: > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ > > > envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/ > > > v200906"><SOAP-ENV:Header><RequestHeader xmlns="https:// > > > adwords.google.com/api/adwords/cm/ > > > v200906"><authToken>DQAAAH8AAADBdoSs3MVwq1ZupoTQ1C33LjvunegOCeIcsbdlsTNQLka > > > > > > Uqxlp0i2SdZQJcfZoYbgLArHVa6eIIyvHdZ7rgk1zFKGC5ZRoTOX1d5aIsRR0xpK6BH8XfDpYMm > > > - > > > ZsJ0QDj5jE5NtUN3D3YcxtUe5qC7NVgChEJsN2-TZyB8KVcq3sQ</ > > > authToken><clientEmail>client_1+ernni...@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></selector></ > > > get></SOAP-ENV:Body></SOAP-ENV:Envelope> > > > > Response: > > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/ > > > envelope/"><soap:Header><ResponseHeader xmlns="https:// > > > adwords.google.com/api/adwords/cm/ > > > v200906"><requestId>111c50ca6a2b3fe2c8f799e16bfe5d78</ > > > requestId><operations>1</operations><responseTime>2029</ > > > responseTime><units>1</units></ResponseHeader></ > > > soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</ > > > faultcode><faultstring>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.Type><errors xmlns:xsi="http://www.w3.org/2001/ > > > XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></ > > > fieldPath><trigger></trigger><ApiError.Type>InternalApiError</ > > > ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></ > > > ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> > > > > Thanks > > > --Ernnie > > > > On Aug 20, 11:32 pm, AdWords API Advisor > > > > <adwordsapiadvi...@google.com> wrote: > > > > 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_sandbo.... > > > > > 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> > > ... > > 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 -~----------~----~----~----~------~----~------~--~---