Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/925292a9-e33e-4a5d-8edb-f2eb9f1092f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
Hi, the challenge is to only use the Google Ads API lib, i can't use the Google Adwords API.So what can i do ?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/413facb7-859f-4418-a6a1-310626ddffd9%40googlegroups.com.
$customerManagerLink = new CustomerManagerLink([
'manager_customer' => new StringValue(['value' => $resourceName]),
'manager_link_id' => new Int64Value(['value' => '??????']),
'status' => ManagerLinkStatusEnum\ManagerLinkStatus::ACTIVE
]);
$googleAds->getCustomerManagerLinkServiceClient()->mutateCustomerManagerLink($resourceName,$customerManagerLink);Where can i find the Manager_link_id ??? Or create it ?
Cheers !
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/297b518d-47a3-4bab-8c02-6776b8beb931%40googlegroups.com.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/9276c1f3-759e-4226-8fd9-209033fff866%40googlegroups.com.
$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);
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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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.
I'm sorry but i don't understand ... Can you give me a sample code for that please ?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/a06dcddd-dd24-47d8-b3f4-2b6ca857c76c%40googlegroups.com.
$customerClientLink = new CustomerClientLink([
'client_customer' => new StringValue(['value' => $customerId])
]);
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
$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);
$customerManagerLinkServiceClient = $sessionCustomer->getCustomerManagerLinkServiceClient();
$customerManagerLink = new CustomerManagerLink([
"resource_name" => new StringValue(['value' => 'customers/1xxxxxxx1/customerClientLinks/1xxxxxx1_1xxxxxxx1']),
"manager_customer" => new StringValue(['value' => 'customers/1xxxxxxx1']),
"manager_link_id" => new Int64Value(['value' => 1xxxxxxx1]),
"status" => 2
]);
$operationM = new CustomerManagerLinkOperation();
$operationM->setUpdate($customerManagerLink);
$responseM = $customerManagerLinkServiceClient->mutateCustomerManagerLink(2xxxxxxx2, [$operationM]);
$result = $responseM->getResults();
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/72a06e46-9670-4825-af62-c8633b1ddb15%40googlegroups.com.
$customerClientLink = new CustomerClientLink([ "client_customer" => new StringValue(['value' => $customerId]), "status" => ManagerLinkStatus::PENDING ]);require __DIR__ . '/vendor/autoload.php';
use GetOpt\GetOpt;use Google\Auth\CredentialsLoader;use Google\Auth\OAuth2;use Psr\Http\Message\ServerRequestInterface;use React\EventLoop\Factory;use React\Http\Response;use React\Http\Server;use UnexpectedValueException;
use Google\Ads\GoogleAds\Examples\Utils\ArgumentNames;use Google\Ads\GoogleAds\Examples\Utils\ArgumentParser;use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClient;use Google\Ads\GoogleAds\Lib\V1\GoogleAdsClientBuilder;use Google\Ads\GoogleAds\Lib\V1\GoogleAdsException;use Google\Ads\GoogleAds\Lib\OAuth2TokenBuilder;use Google\Ads\GoogleAds\V1\Errors\GoogleAdsError;use Google\Ads\GoogleAds\V1\Services\GoogleAdsRow;use Google\ApiCore\ApiException;use Google\Ads\GoogleAds\V1\Resources\Customer;use Google\Ads\GoogleAds\V1\Resources\CustomerManagerLink;--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/92d7d3b2-50f5-4dba-979f-6edd94c4f27c%40googlegroups.com.