Most Google ads API interface call results return segmentation fault

102 views
Skip to first unread message

xmarcle

unread,
Feb 10, 2022, 5:39:02 AM2/10/22
to Google Ads API and AdWords API Forum
Hi,
     I understood that I can still use stored refresh tokens when migrating from Google Adwords to Google Ads as per https://developers.google.com/google-ads/api/docs/migration/carryover . so I used the authorization credentials of the AdWords API, and the call to the google.ads.googleads.v9.services.CustomerService.ListAccessibleCustomers interface succeeded, but the calls to other interfaces failed, returning the result: segmentation faultD16107F9-EC23-4f60-BB14-201536175CF5.png

Google Ads API Forum Advisor

unread,
Feb 10, 2022, 4:40:06 PM2/10/22
to xmarc...@gmail.com, adwor...@googlegroups.com
Hi there,

Ads API requires that you log in to an account that you are a user on. If the account you want to access doesn't have you as a user in it, but you are a user in an MCC account higher up in the hierarchy, then you can add the login customer Id header with the account you are a user in to the call and you can access the account that is lower in the hierarchy. Feel free to get back to us.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W61dT:ref

xmarcle

unread,
Feb 15, 2022, 3:04:14 AM2/15/22
to Google Ads API and AdWords API Forum
According to the example(https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy), I called the getaccounthierarchy interface and successfully obtained $accessiblecustomers, but the result of segmentation fault still appeared.
85FC0128-A77C-43af-B868-D35EA5FEC690.png

Google Ads API Forum Advisor

unread,
Feb 16, 2022, 12:09:31 AM2/16/22
to xmarc...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for getting back to us.

Could you provide us with the complete request and response logs with the request-id generated when you say the result of the segmentation fault appearing, so our team can better check?

For the PHP client library, logging can be enabled by navigating to the Client libraries > Your client library (Select PHP) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 

 

 



ref:_00D1U1174p._5004Q2W61dT:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Feb 16, 2022, 4:47:40 PM2/16/22
to xmarc...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please detail what the issue is that is related to the logs? I see that no manager customer ID is specified, and so all accounts that are accessible by the authenticating user are retrieved. If the issue is related specifically to the PHP client library, please contact the client library owners, here

You do not need to apply for a new developer token to use the Ads API. The same developer token can be used.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2WwAXP:ref

xmarcle

unread,
Feb 21, 2022, 8:45:39 PM2/21/22
to Google Ads API and AdWords API Forum
Thanks,
I finally solved the problem because my grpc and protobuf versions are too low. After upgrading, I can call the interface normally

Google Ads API Forum Advisor

unread,
Feb 22, 2022, 1:56:42 AM2/22/22
to xmarc...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for updating us on the issue. We’re glad to know that your issue has been resolved after updating the gRPC and protobuf versions to the latest. Please don’t hesitate to reach out to us again if you have any queries related to our API.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2WwAXP:ref
Reply all
Reply to author
Forward
0 new messages