Hi,

I was able to replicate the behavior you are seeing, but this is
likely as designed.  The sandbox environment does not usually have the
complete set validation features enabled, as the purpose is for
testing code, not content.  In this case it is likely that the API
returns "FORBIDDEN" for all ads created in the sandbox.  Let me know
if you have any other questions.

Best,
- Eric Koleda, AdWords API Team

On Jul 29, 10:08 am, Exiges <[email protected]> wrote:
> For some reason whenever I try to add an Ad to the Sandbox, I'm
> getting an error, I've tried all manner of permutations
>
> Using the example given in the Perl API docs, I'm posting this:
>
> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance" 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Header><RequestHeader
>  xmlns="https://adwords.google.com/api/
>
> adwords/cm/v200906"><applicationToken>MyAppToken</
> applicationToken><authToken>REDACTED</
> authToken><clientEmail>[email protected]</
> clientEmail><developerToken>MyDevToken</developerToken><userAgent>Perl
> Google::AdWords::Client v1.2.1: </userAgent></RequestHeader></SOAP-
> ENV:Header><SOAP-ENV:Body><mutate xmlns="https://adwords.google.com/
> api/adwords/cm/v200906"><operations><operator>SET</
> operator><operand><adGroupId>5412383304</adGroupId><ad
> xsi:type="TextAd"><id>353862</id><url>http://www.myurl.com</
> url><displayUrl>http://www.myurl.com</displayUrl><headline>Luxary
> Cruise to Mars</headline><description1>Visit the Red Planet in style</
> description1><description2>Low-gravity fun for everyone</
> description2></ad><status>ENABLED</status></operand></operations></
> mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>
>
> The Sandbox gives me this:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Header><ResponseHeader xmlns="https://
> adwords.google.com/api/adwords/cm/
> v200906"><requestId>1f99bb63e133263c67fb3ca667674fec</
> requestId><operations>1</operations><responseTime>1160</
> responseTime><units>1</units></ResponseHeader></
> soap:Header><soap:Body><mutateResponse xmlns="https://
> adwords.google.com/api/adwords/cm/
> v200906"><rval><ListReturnValue.Type>AdGroupAdReturnValue</
> ListReturnValue.Type><value><adGroupId>5412383304</adGroupId><ad
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:type="TextAd"><id>353862</id><url>http://www.myurl.com</
> url><displayUrl>myurl.com</displayUrl><approvalStatus>FORBIDDEN</
> approvalStatus><Ad.Type>TextAd</Ad.Type><headline>Luxary Cruise to
> Mars</headline><description1>Visit the Red Planet in style</
> description1><description2>Low-gravity fun for everyone</
> description2></ad><status>ENABLED</status></value></rval></
> mutateResponse></soap:Body></soap:Envelope>
>
> But if I post it to the live server, it posts fine.
>
> Adding/updating Campaign and AdGroups work fine.
>
> Any ideas what is FORBIDDEN about it ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to