Hello,

If you are having a separate issue, please create a new forum thread and 
please provide more information about exactly what you are trying 
(preferably with SOAP).

Unfortunately, we have determined that to accept a link request from a 
client account via the API, you have to authorize as the client account 
itself. Maybe try using a refresh token generated directly from the client 
account you wish to link to. At that point, however, you are already logged 
into the child account manually, so it may be easier to just accept the 
link manually. We are working with the API team to determine a way to 
improve the ability to programmatically link accounts without requiring 
manual user intervention to get authorization.

Regards,
Mike, AdWords API Team

On Thursday, June 23, 2016 at 4:40:05 AM UTC-4, asma batool wrote:
>
> Hi,
>
> I am also having issue linking account 
> but errors is [ManagedCustomerServiceError.NOT_AUTHORIZED @ operations[0]]
>
>
>
> On Friday, May 23, 2014 at 6:15:49 PM UTC+5, [email protected] 
> wrote:
>>
>> Hi!
>>
>> I tried to link an account with this code in php AdWords api:
>>
>> private function linkingUser( & $data )
>>     {
>>         
>>         // Get the service, which loads the required classes.
>>         $managedCustomerService =
>>             $this->user->GetService('ManagedCustomerService', 
>> ADWORDS_VERSION);
>>
>>
>>         $link = new ManagedCustomerLink();
>>         $link->clientCustomerId = $data["googleClientId"];//CLIENT_CID;
>>         $link->pendingDescriptiveName = "";
>>         $link->linkStatus = 'PENDING';
>>         $link->managerCustomerId = $data["googleClientId"];//MANAGER_CID;
>>         
>>         // Create operation.
>>         $operation2 = new LinkOperation();
>>         
>>         $operation2->operand = $link;
>>         $operation2->operator = 'ADD';
>>
>>         $operations = array( $operation2);
>>         
>>         
>>         
>>         try
>>         {
>>             // Make the mutate request.
>>             $result = $managedCustomerService->mutate( $operations );
>>         }
>>         catch (Exception $e) {
>>             $this->errors[] = $this->parseAdWordsError( $e->getMessage() 
>> );
>>             return FALSE;
>>         }
>>         
>>         
>>         if( empty( $result->value[0] ) )
>>         {
>>             $error = "AdWordsUser not created (garfx)." ;
>>             $this->errors[] = $error;
>>             return FALSE;
>>         }
>>                 
>>         return $result->value[0];
>>     }
>>     
>> The response was: 
>>
>> [RequiredError.REQUIRED @ operations[0].operand.customerCurrencyCode, 
>> RequiredError.REQUIRED @ operations[0].operand.clientName, 
>> RequiredError.REQUIRED @ operations[0].operand.dateTimeZone]
>>
>> Please help me. What is wrong with my code?
>>
>> Thx.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0392acb1-8161-4ec9-8541-0928a2965a7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Linking acc... asma batool
    • Re: Linkin... 'Michael Cloonan (AdWords API Team)' via AdWords API Forum

Reply via email to