Hi,
It is exactly the url indicate in the guide
The complete error I receive is this
[FeedError.INVALID_AUTH_TOKEN_FOR_EMAIL @ operations[0].operand.systemFeedGenerationData.oAuthInfo;
trigger:'x...@xxx.com']
and my code of call is this
$feedService = $this->adWordsServiceFactory->getFeedService($adWordsAccount->getAccount(), $adWordsAccount->getCustomerId());
$gmbFeed = new Feed();
$gmbFeed->setName('Google My Business feed #' . uniqid('', true));
$feedData = new PlacesLocationFeedData();
$oAuth2Credential = (new OAuth2TokenBuilder())
->withClientId($this->managerClientId)
->withClientSecret($this->managerClientSecret)
->withRefreshToken($this->managerRefreshToken)
->build();
$oAuthInfo = new OAuthInfo();
$oAuthInfo->setHttpMethod('GET');
$oAuthInfo->setHttpAuthorizationHeader(
sprintf('Bearer %s', $oAuth2Credential->fetchAuthToken()['access_token'])
);
$feedData->setOAuthInfo($oAuthInfo);
$gmbFeed->setSystemFeedGenerationData($feedData);
$gmbFeed->setOrigin(FeedOrigin::ADWORDS);
$operation = new FeedOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperand($gmbFeed);
$operations = [$operation];
$addedFeed = $feedService->mutate($operations)->getValue()[0];
and error is generated from mutate
$feedService->mutate($operations)->getValue()[0];
Thanks,
Enam