RE: Revoking invitations

2020-07-06 Thread Google Ads API Forum Advisor Prod
Hi,

Issues such as these are out of scope for my team. You will need to reach out 
to the product team by navigating to this link.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q218MRn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/nZSRs0QD1WME00uf6UxxJDRXKkZmFPC2H1WQ%40sfdc.net.


Re: Revoking invitations

2020-07-02 Thread MWA
Found the problem,

API is working fine, but on web interface request takes an hour or so to 
disappear the request, when I request again then NO_PENDING_INVITATION 
error occurs because the request was fulfilled first time only request 
doesn't go way on website, it would be great help if you look into this and 
remove the request from web interface ASAP too.

Thanks.

On Monday, June 22, 2020 at 6:49:07 PM UTC+5, MWA wrote:
>
> Hi,
>
> I want to revoke the invitation via API. My code is
>
> $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
>
>
> $session = (new AdWordsSessionBuilder())->fromFile()->withOAuth2Credential
> ($oAuth2Credential)->build();
>
>
> $adWordsServices=new AdWordsServices();
>
>
> $managedCustomerService = $adWordsServices->get($session, 
> ManagedCustomerService::class);
>
>
> $link = new ManagedCustomerLink();
> $link->setClientCustomerId($customerid);
> $link->setLinkStatus(LinkStatus::CANCELLED);
> $link->setManagerCustomerId(ADWORDS_MANAGER_ID);
>
>
> $linkop = new LinkOperation();
> $linkop->setOperand($link);
> $linkop->setOperator(Operator::SET);
>
>
> $operations = array($linkop);
>
>
> try{
>  $result = $managedCustomerService->mutateLink($operations);
>  print_r($result);
> }catch(ApiException $e){
>  print_r($e->getErrors());
> }
>
> But I'm receiving error.
>
>
> Array
> (
> [0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerServiceError 
> Object
> (
> [reason:protected] => NO_PENDING_INVITATION
> [customerIds:protected] =>
> [fieldPath:protected] => operations[0]
> [fieldPathElements:protected] => Array
> (
> [0] => Google\AdsApi\AdWords\v201809\cm\
> FieldPathElement Object
> (
> [field:protected] => operations
> [index:protected] => 0
> )
>
>
> )
>
>
> [trigger:protected] =>
> [errorString:protected] => ManagedCustomerServiceError.
> NO_PENDING_INVITATION
> [ApiErrorType:protected] => ManagedCustomerServiceError
> [parameterMap:Google\AdsApi\AdWords\v201809\cm\ApiError:
> private] => Array
> (
> [ApiError.Type] => ApiErrorType
> )
>
>
> )
>
>
> )
>
> And I'm sure there is pending link request which I can see in Sub-account 
> settings.
>
> P.S: I've checked
>
> https://developers.google.com/adwords/api/docs/guides/accounts-overview#rescinding_invitations
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/35cc3e79-5e29-4184-898b-251fcc011b02o%40googlegroups.com.


RE: Revoking invitations

2020-06-22 Thread Google Ads API Forum Advisor Prod
Hello,

Please share your SOAP request and response and a screenshot that shows a 
pending invitation through reply privately to author so I can take a closer 
look.

Thanks,
Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q218MRn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/HHmeI0QCC9FE004NrMqbbuRlKhGSTnrVD2rA%40sfdc.net.