Hi,

You'll encounter the AdError.CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR 
<https://developers.google.com/adwords/api/docs/common-errors#AdError.CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR>
 error 
when you try to modify attributes other than the status or use a concrete 
AdType. To update the status of an Ad, you need to include just the Ad 
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupAdService.Ad>
 object 
in the mutate operation without setting the AdType in the Ad object. Please 
see the PauseAd 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201702/BasicOperations/PauseAd.php>
 PHP 
example which shows how to pause an Ad. Let me know if the error is 
resolved after making this change. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/41badab7-3cfd-4139-bffd-774c272d8662%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to