Hello,

It looks like my last response went only to your private email address
instead of getting posted publicly on the forum. I apologize for that. I
will paste that response here:

To link two accounts using the Google Ads API, you first need to add a
CustomerClientLink from the manager account, then accept the invitation by
mutating the existing CustomerManagerLink from the client account. You
cannot initiate the process from the client account.
If you're still having trouble with the PHP library once you attempt to
follow this workflow, then you can file a bug for the PHP library
specifically here: https://github.com/googleads/google-ads-php/issues


Regards,
Mike, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/04/19 03:27:34 ludovic.web2...@gmail.com wrote:

Hi, last time i send you a private message and i have no response yet !

This is my code and i don't know how to use it with Google Ads (not
adwords) and i really need a solution for this one please !

$oAuth2Credential = (new OAuth2TokenBuilder())
    ->fromFile('google_ads_php.ini')
    ->withRefreshToken(self::getRefreshToken())
    ->build();

$googleAds = (new GoogleAdsClientBuilder())
    ->fromFile('google_ads_php.ini')
    ->withOAuth2Credential($oAuth2Credential)
    ->build();

$resourceName = Customer ID;


$customerManagerLinkOperation = new \Google\Ads\GoogleAds\V0\Services\CustomerManagerLinkOperation([ 'manager_customer' => new StringValue(['value' => $googleAds->getLoginCustomerId()])
]);
$googleAds->getCustomerManagerLinkServiceClient()->mutateCustomerManagerLink($resourceName,$customerManagerLinkOperation);

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8c630a44-a279-410b-a15e-cd7ab9577a4c%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/8c630a44-a279-410b-a15e-cd7ab9577a4c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/186v6h80000000008tkvtq0011mslgz70mj8cpl6co30c1g68q3ie9p%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • RE: [PH... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
  • Re: [PH... ludovic . web2roi
  • Re: [PH... ludovic . web2roi
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... Непомнющий Александр
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to