Hi,

I am a colleague of Dave, allow me to provide assistance for your concerns.
Could you confirm if you are also encountering the 500 error issue? If yes,
I would suggest to open your concern in the Ruby Github Issue tracker
<https://github.com/googleads/google-ads-ruby/issues> as the client library
owners are better equipped in answering your concerns. At the same time, I
will file a feature request on your behalf to add sample codes of different
languages in the Google Ads API documentation.

If you are encountering a different issue, could you provide the JSON
request and response logs via *reply privately to author* so I could
further investigate this?

Regards,
Dannison
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 04/11/19 21:41:01 [email protected] wrote:

Hi, i use the ruby library and i also can not link accounts with the new
API, looks like the ManagerCustomerLink service has problems.
I agree that an example in all client libraries can be useful.
Thanks.

El jueves, 11 de abril de 2019, 8:26:54 (UTC+2), googleadsapi-forumadvisor
escribió:

Hi,

Upon checking, the error that you are encountering seems to be related more
to the client library. You can reach out to the php client library owners
through this link <https://github.com/googleads/google-ads-php/issues> in
Github as they are better equipped to assist you for this matter.

Regards,
Dave Paurillo
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=0-7203000025673&hl=en&ctx=1>

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 04/10/19 19:02:40 [email protected] wrote:

Hello Dave,

I'm trying to use  code to link Adwords accounts. I get 500 error from
server.

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;


 $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();

        // Construct a Google Ads client configured from a properties file
and the
       // OAuth2 credentials above.
       $googleAdsClient = (new GoogleAdsClientBuilder())
           ->fromFile()
           ->withOAuth2Credential($oAuth2Credential)
           ->build();

$customerId = "1234112123";  /* Example */

$customerClientLinkServiceClient = $googleAdsClient->getCustomerC
lientLinkServiceClient();

$customerClientLink = new CustomerClientLink([
                                         "client_customer" => new
StringValue(['value' => $customerId]),
                                         "status"                  =>
ManagerLinkStatus::PENDING
                                        ]);


If I remove a piece of code, then there is no error 500

$customerClientLink = new CustomerClientLink([
                                         "client_customer" => new
StringValue(['value' => $customerId]),
                                         "status"                  =>
ManagerLinkStatus::PENDING
                                        ]);

I think the problem is with new CustomerClientLink.

[LOGGING]
; Optional logging settings.
logFilePath = "/xxx/xxx/xxxxx/xxxxxx.xx/xxxxx/google-ads/file.log"
logLevel = "INFO"

file.log is empty.



среда, 10 апреля 2019 г., 7:55:11 UTC+2 пользователь
googleadsapi-forumadvisor написал:

Hi,

To further investigate this, could you confirm if you will still encounter
the error when you try to run other Google Ads API service? If yes, could
you provide the complete JSON request and response logs when you
encountered the error? If you haven't enabled logging yet, you could enable
it by following this guide
<https://developers.google.com/google-ads/api/docs/client-libs/php/logging>.

Moving forward, I may not provide you a sample code in PHP. I can only
point you to the documentation that you might be able to use regarding your
concern.

Regards,
Dave Paurillo
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api


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

Reply via email to