Error what I'am getting is
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: [SelectorError.INVALID_PREDICATE_ENUM_VALUE @
serviceSelector; trigger:'REMOVED']
faultActor:
faultNode:
faultDetail:
{https://adwords.google.com/api/adwords/cm/v201605}ApiExceptionFault:<message>[SelectorError.INVALID_PREDICATE_ENUM_VALUE
@ serviceSelector;
trigger:'REMOVED']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="SelectorError"><fieldPath>serviceSelector</fieldPath><trigger>REMOVED</trigger><errorString>SelectorError.INVALID_PREDICATE_ENUM_VALUE</errorString><ApiError.Type>SelectorError</ApiError.Type><reason>INVALID_PREDICATE_ENUM_VALUE</reason></errors>
[SelectorError.INVALID_PREDICATE_ENUM_VALUE @ serviceSelector;
trigger:'REMOVED']
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
at
com.google.api.ads.adwords.axis.v201605.cm.ApiException.getDeserializer(ApiException.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
On Tuesday, March 14, 2017 at 8:42:18 PM UTC+5:30, Eshwar Chettri wrote:
>
> Hi,
> can we get the ad ids of both existing and removed ads using
> AdGroupAdService?
> I tried this but unable to get Ids of removed ads.
> Predicate idsPredicate = new Predicate();
> idsPredicate.setField("AdGroupId");
> idsPredicate.setOperator(PredicateOperator.IN);
> idsPredicate.setValues(new
> String[]{String.valueOf(gleAdGrpId)});
> Predicate idsPredicate1 = new Predicate();
> idsPredicate1.setField("Status");
> idsPredicate1.setOperator(PredicateOperator.IN);
> idsPredicate1.setValues(new String[]{"ENABLED", "PAUSED",
> "REMOVED"});
> selector.setFields(new String[]{"Id", "Status"});
> selector.setPredicates(new Predicate[]{idsPredicate,
> idsPredicate1});
> selector.setFields(selectedFields);
>
>
> thanks,
> Eshwar.
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7085f8d2-0ffc-4744-9a0a-2787e0ee7c88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.