Hi, how are you today ?
Thanks a lot for this code. I've tried to convert it to PHP but i have this
error :
*Type:* Google\Ads\GoogleAds\Lib\GoogleAdsException
*Code:* 13
*Message:* { "message": "Internal error encountered.", "code": 13,
"status": "INTERNAL", "details": [ { "@type":
"google.ads.googleads.v0.errors.googleadsfailure-bin", "data": "<Unknown
Binary Data>" }, { "@type": "grpc-status-details-bin", "data": "<Unknown
Binary Data>" }, { "@type": "request-id", "data": "D4xHl8hAr_Im37hVfMO6Ww"
} ] }
*File:*
C:\xampp\htdocs\ApiAdsWrapper\vendor\googleads\google-ads-php\src\Google\Ads\GoogleAds\Lib\GoogleAdsExceptionMiddleware.php
*Line:* 106
This is my code below :
$oAuth2Credential = (new OAuth2TokenBuilder())
->withClientId('CLIENT_ID')
->withClientSecret('CLIENT_SECRET')
->withRefreshToken('REFRESH_TOKEN')
->build();
$session = (new GoogleAdsClientBuilder())
->withDeveloperToken('DEVELOPER_TOKEN')
->withOAuth2Credential($oAuth2Credential)
->build();
$customerId = ResourceNames::forCustomer(8xxxxxxxx8);
$customerClientLinkServiceClient = $session->
getCustomerClientLinkServiceClient();
$customerClientLink = new CustomerClientLink([
"client_customer" => new StringValue(['value' => $customerId]),
"status" => ManagerLinkStatus::PENDING
]);
$operation = new CustomerClientLinkOperation();
$operation->setCreate($customerClientLink);
$response = $customerClientLinkServiceClient->mutateCustomerClientLink(
"5xxxxxxx5", $operation);
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads 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/c3501526-a157-4d0c-845f-04b3aabd29eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.