Hi,

What are you trying to do?
I recommend refer to example code first, (e.g. PHP 
examples<https://code.google.com/p/google-api-adwords-php/source/browse/#git%2Fexamples%2FAdWords%2Fv201309%2FBasicOperations>
)

Best,
- Takeshi, AdWords API Team

On Tuesday, December 3, 2013 10:55:48 PM UTC+9, KAMOUN Ilyess wrote:
>
> Hello, i dont understand what the meaning this error and why i have this 
> error :
>
> [message:protected] => [AdError.INVALID_AD_TYPE @ operations[0].operand.ad
> ]
>
> Can you help me please to solve this problem?
>
> here are my script and response soap; thank you in advance.
>
>
> *********************************************************************************
> *******************************RESPONSE SOAP********************
> SoapFault Object
> (
>     [message:protected] => [AdError.INVALID_AD_TYPE @ operations[0].
> operand.ad]
>     [string:Exception:private] => 
>     [code:protected] => 0
>     [file:protected] => /var/www/vhosts/httpdocs/
> example.com/adwords_api_php_4.6.1/autreesai.php
>     [line:protected] => 122
>     [trace:Exception:private] => Array
>         (
>             [0] => Array
>                 (
>                     [file] => /var/www/vhosts/httpdocs/
> example.com/adwords_api_php_4.6.1/autreesai.php
>                     [line] => 122
>                     [function] => __call
>                     [class] => SoapClient
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => mutate
>                             [1] => Array
>                                 (
>                                     [0] => Array
>                                         (
>                                             [0] => AdGroupAdOperation 
> Object
>                                                 (
>                                                     [operand] => AdGroupAd 
> Object
>                                                         (
>                                                             [adGroupId] => 
> 8424820921
>                                                             [ad] => TextAd 
> Object
>                                                                 (
>                                                                     
> [headline] => Cruise
>                                                                     
> [description1] => Visit
>                                                                     
> [description2] => Low-gravity
>                                                                     [id] 
> => 
>                                                                     [url] 
> => http://www.example.com
>                                                                     
> [displayUrl] => www.example.com
>                                                                     
> [devicePreference] => 
>                                                                     
> [disapprovalReasons] => 
>                                                                     
> [AdType] => TextAd
>                                                                     
> [_parameterMap:Ad:private] => Array
>                                                                         (
>                                                                           
>   [Ad.Type] => AdType
>                                                                         )
>
>                                                                 )
>
>                                                             
> [experimentData] => 
>                                                             [status] => 
> PAUSED
>                                                             
> [approvalStatus] => 
>                                                             
> [trademarkDisapproved] => 
>                                                             [stats] => 
>                                                             
> [forwardCompatibilityMap] => 
>                                                         )
>
>                                                     [exemptionRequests] => 
>                                                     [operator] => ADD
>                                                     [OperationType] => 
>                                                     
> [_parameterMap:Operation:private] => Array
>                                                         (
>                                                             
> [Operation.Type] => OperationType
>                                                         )
>
>                                                 )
>
>                                         )
>
>                                 )
>
>                         )
>
>                 )
>
>             [1] => Array
>                 (
>                     [file] => /var/www/vhosts/
> example.com/adwords_api_php_4.6.1/autreesai.php
>                     [line] => 122
>                     [function] => mutate
>                     [class] => SoapClient
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => Array
>                                 (
>                                     [0] => AdGroupAdOperation Object
>                                         (
>                                             [operand] => AdGroupAd Object
>                                                 (
>                                                     [adGroupId] => 
> 8424820921
>                                                     [ad] => TextAd Object
>                                                         (
>                                                             [headline] => 
> Cruise
>                                                             [description1] 
> => Visit
>                                                             [description2] 
> => Low-gravity
>                                                             [id] => 
>                                                             [url] => 
> http://www.example.com
>                                                             [displayUrl] 
> => www.example.com
>                                                             
> [devicePreference] => 
>                                                             
> [disapprovalReasons] => 
>                                                             [AdType] => 
> TextAd
>                                                             
> [_parameterMap:Ad:private] => Array
>                                                                 (
>                                                                     
> [Ad.Type] => AdType
>                                                                 )
>
>                                                         )
>
>                                                     [experimentData] => 
>                                                     [status] => PAUSED
>                                                     [approvalStatus] => 
>                                                     [trademarkDisapproved] 
> => 
>                                                     [stats] => 
>                                                     
> [forwardCompatibilityMap] => 
>                                                 )
>
>                                             [exemptionRequests] => 
>                                             [operator] => ADD
>                                             [OperationType] => 
>                                             
> [_parameterMap:Operation:private] => Array
>                                                 (
>                                                     [Operation.Type] => 
> OperationType
>                                                 )
>
>                                         )
>
>                                 )
>
>                         )
>
>                 )
>
>         )
>
>     [previous:Exception:private] => 
>     [faultstring] => [AdError.INVALID_AD_TYPE @ operations[0].operand.ad]
>     [faultcode] => soap:Server
>     [detail] => stdClass Object
>         (
>             [ApiExceptionFault] => stdClass Object
>                 (
>                     [message] => [AdError.INVALID_AD_TYPE @ operations[0].
> operand.ad]
>                     [ApplicationException.Type] => ApiException
>                     [errors] => SoapVar Object
>                         (
>                             [enc_type] => 0
>                             [enc_value] => stdClass Object
>                                 (
>                                     [fieldPath] => operations[0].
> operand.ad
>                                     [trigger] => 
>                                     [errorString] => 
> AdError.INVALID_AD_TYPE
>                                     [ApiError.Type] => AdError
>                                     [reason] => INVALID_AD_TYPE
>                                 )
>
>                             [enc_stype] => AdError
>                             [enc_ns] => 
> https://adwords.google.com/api/adwords/cm/v201306
>                         )
>
>                 )
>
>         )
>
> )
>
> **********************************************************************************************
>
> ***********************************************************************************************
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to