ManagedCustomerServiceError NOT_AUTHORIZED

2018-07-01 Thread Bryan Natter
I am trying to send an invite to link and account with our MCC account. I 
keep getting [ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]] 
error when i try to send invite.
The developer token with client id was created by a user with admin access. 
Also the user of the account that has been oauth that we are trying to link 
also has admin access.

This is the code im using to send the link
$linkOperation = new LinkOperation();
$managedCustomerLink = new ManagedCustomerLink();
$managedCustomerLink->setClientCustomerId($clientAdwordsId);
$managedCustomerLink->setLinkStatus(LinkStatus::PENDING);
$managedCustomerLink->setManagerCustomerId($managerAdwordsId);
$linkOperation->setOperand($managedCustomerLink);
$linkOperation->setOperator(Operator::ADD);
$session = $this->getAdWordsSession();
$adWordsServices = new AdWordsServices();
/** @var  ManagedCustomerService $adService */
$adService = $adWordsServices->get($session, ManagedCustomerService::class);
$response = $adService->mutateLink([$linkOperation]);

This is the xml we are sending to google with credentials stripped out

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201806; 
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201806;>
   
  
 XXX-XXX-
 XXX
 SandO (AwApi-PHP, googleads-php-lib/35.2.0, 
PHP/5.6.14-1+deb.sury.org~trusty+1)
 false
 false
  
   
   
  
 
ADD

   X
   XX
   PENDING

 
  
   



This is the response we get back from google

http://schemas.xmlsoap.org/soap/envelope/;>
   
  https://adwords.google.com/api/adwords/mcm/v201806; 
xmlns="https://adwords.google.com/api/adwords/cm/v201806;>
 00056fc8e30c69280ac155ea820d4bcd
 ManagedCustomerService
 mutateLink
 1
 192
  
   
   
  
 soap:Server
 [ManagedCustomerServiceError.NOT_AUTHORIZED @ 
operations[0]]
 
https://adwords.google.com/api/adwords/mcm/v201806; 
xmlns="https://adwords.google.com/api/adwords/cm/v201806;>
   [ManagedCustomerServiceError.NOT_AUTHORIZED @ 
operations[0]]
   
ApiException
   http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns2:ManagedCustomerServiceError">
  operations[0]
  
 operations
 0
  
  
  
ManagedCustomerServiceError.NOT_AUTHORIZED
  ManagedCustomerServiceError
  NOT_AUTHORIZED
   

 
  
   



Any ideas on how I can get past this error
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/b9c324bb-a413-4d9d-aecf-473848dc6385%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sunset date for 201710 is July 25th but I recieved an email saying it would stop working on June 25th.

2018-07-01 Thread Robert Neal
I received this email:

You’re receiving this message because your AdWords API Developer account 
submitted 100% of your API requests to an outdated API version within the 
past seven days. *AdWords API v201710 has been deprecated and will stop 
accepting requests starting 06/25/2018.* 

Migrate to a current AdWords API version.


However my version is still working and the schedule says the sunset date 
is JULY 25th.   It it possible the email is in error?


Thanks

Bob 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/942f5def-1743-4d84-8775-7367b65fff2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]]

2018-07-01 Thread Bryan Natter
I am trying to send an invite to link and account with our MCC account. I 
keep getting [ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]] 
error when i try to send invite.
The developer token with client id was created by a user with admin access. 
Also the user of the account that has been oauth that we are trying to link 
also has admin access.

This is the code im using to send the link
$linkOperation = new LinkOperation();
$managedCustomerLink = new ManagedCustomerLink();
$managedCustomerLink->setClientCustomerId($clientAdwordsId);
$managedCustomerLink->setLinkStatus(LinkStatus::PENDING);
$managedCustomerLink->setManagerCustomerId($managerAdwordsId);
$linkOperation->setOperand($managedCustomerLink);
$linkOperation->setOperator(Operator::ADD);
$session = $this->getAdWordsSession();
$adWordsServices = new AdWordsServices();
/** @var  ManagedCustomerService $adService */
$adService = $adWordsServices->get($session, ManagedCustomerService::class);
$response = $adService->mutateLink([$linkOperation]);

This is the xml we are sending to google with credentials stripped out

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201806; 
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201806;>
   
  
 XXX-XXX-
 XXX
 SandO (AwApi-PHP, googleads-php-lib/35.2.0, 
PHP/5.6.14-1+deb.sury.org~trusty+1)
 false
 false
  
   
   
  
 
ADD

   X
   XX
   PENDING

 
  
   



This is the response we get back from google

http://schemas.xmlsoap.org/soap/envelope/;>
   
  https://adwords.google.com/api/adwords/mcm/v201806; 
xmlns="https://adwords.google.com/api/adwords/cm/v201806;>
 00056fc8e30c69280ac155ea820d4bcd
 ManagedCustomerService
 mutateLink
 1
 192
  
   
   
  
 soap:Server
 [ManagedCustomerServiceError.NOT_AUTHORIZED @ 
operations[0]]
 
https://adwords.google.com/api/adwords/mcm/v201806; 
xmlns="https://adwords.google.com/api/adwords/cm/v201806;>
   [ManagedCustomerServiceError.NOT_AUTHORIZED @ 
operations[0]]
   
ApiException
   http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns2:ManagedCustomerServiceError">
  operations[0]
  
 operations
 0
  
  
  
ManagedCustomerServiceError.NOT_AUTHORIZED
  ManagedCustomerServiceError
  NOT_AUTHORIZED
   

 
  
   



Any ideas on how I can get past this error
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/a4368fdd-f39c-4735-b333-bf40a0b75e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How i can download or get Budget Performance Report using http request

2018-07-01 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Rajkumar,

Could you confirm if you only have access to the refreshToken and 
developerToken of the said accounts?  of your accounts? If yes, then there 
is no way to dynamically retrieve the other details of the account via 
AdWords API. You have to individually assign the account details in the 
ads.properties file.

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/9515e499-3b2c-4a66-9b7c-bbba81ab83df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.