I think I got it.
I removed the AdCustomizers from the selector and it now works.
These are the issues that were causing it
1. EQUALS I was passing 2 types (long day, sorry)
2. AdGroupFeedService does not accept IN operator for the types predicate,
so, one type per request.
Please consider it resolved from my side.
On Monday, 10 April 2017 18:40:02 UTC+2, Paris Theofanidis wrote:
>
> Hi,
>
> I'm getting the following API error
> Exception 'Google\AdsApi\AdWords\v201702\cm\ApiException' with message
> '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]'
>
> <requestId>00054cd26769c3880a37624e25050c1d</requestId>
>
>
> The is caused when I use the following selector
>
> /** @var FeedService $service */
> $service = $this->getService(AdGroupFeedService::class);
>
> $selector = new Selector();
> $selector
> ->setFields(['FeedId', 'AdGroupId', 'MatchingFunction', 'Status'])
> ->setPredicates([
> new Predicate('FeedId', PredicateOperator::IN, [$feedId]),
> new Predicate('PlaceholderTypes', PredicateOperator::EQUALS,
> [PlaceholderSitelinks::TYPE_ID, PlaceholderCustomizers::TYPE_ID]),
> ])
> ->setPaging(new Paging(0, self::PAGE_SZ));
>
>
> PlaceholderSitelinks::TYPE_ID is 1 (sitelinks)
> PlaceholderCustomizers::TYPE_ID is 10 (ad customizers)
>
> I'm running this against the sandbox for the
> FeedId = 36660283
>
> which is feed in account
> AccountId = 608-661-6078
>
>
> Is it data related bug or something else?
> My concern is, will I face similar issues on production AdWords accounts
> or I can ignore it assuming it's some data corruption issue that you guys
> can take care off?
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/791e3b99-6adf-411d-99b2-b720622d37dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.