Example code:

$feed_service = $this->getService(FeedService::class);

$feed = new Feed();
$feed->setName('GMB');

$feedData = new PlacesLocationFeedData();
$feedData->setEmailAddress('***');
$feedData->setBusinessAccountIdentifier('***');

$oAuthInfo = new OAuthInfo();
$oAuthInfo->setHttpMethod('GET');
$oAuthInfo->setHttpRequestUrl('https://www.googleapis.com/auth/plus.business.manage');
$oAuthInfo->setHttpAuthorizationHeader('Bearer '.$gmb->getAccessToken());
$feedData->setOAuthInfo($oAuthInfo);
$feed->setSystemFeedGenerationData($feedData);
$feed->setOrigin(FeedOrigin::ADWORDS);

$feed_operation = new FeedOperation();
$feed_operation->setOperand($feed);
$feed_operation->setOperator(Operator::ADD);

$feed_service->mutate(array($feed_operation));


Return error: FeedError.GMB_ACCESS_ERROR @ operations[0].operand.
systemFeedGenerationData.gaiaId

If using "businessAccountIdentifier" i'm get error: 
FeedError.BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT 
@ operations[0].operand.systemFeedGenerationData.businessAccountIdentifier


The error appeared a day ago, by itself (the source code was not touched)

Who will say what kind of errors?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2638b940-d1bb-4c4a-9306-674269f14f6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Adwords ... Дмитрий Мачехин
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to