I am getting an exception: AdError.INVALID_AD_TYPE @ operations[0].
operand.idfull error:
[{:field_path=>"operations[0].
operand.id", :field_path_elements=>[{:field=>"operations", :index=>0}, {:field=>"operand"}, {:field=>"id"}], :trigger=>"", :error_string=>"AdError.INVALID_AD_TYPE", :api_error_type=>"AdError", :reason=>"INVALID_AD_TYPE", :xsi_type=>"AdError"}]
I am using 'AdService', creating both shopping as well as expanded dynamic search ads.
below are my operations set for shopping and expanded dynamic search ad respectively:
shopping:
[{:operator=>"SET", :operand=>{:id=>"438598577711", :xsi_type=>"ProductAd"}}]
Expanded Dynamic Search Ad:
[{:operator=>"SET", :operand=>{:id=>"438551952907", :xsi_type=>"ExpandedDynamicSearchAd", :description=>"too tired for this"}}]
My ad type seems to be valid according to me, my [operator -> 'ADD'] requests are working fine. This exception is only happening while updating an ad.