We updated the Google Ads API Version from V2 to V3 via the composer.
(We use this API in the PHP system.)

Before updated, our system went well.
However after updated, our system using this API says "segmentation fault".

The below is the code when occurs the error.

```
// We set the API setting via the INI file.
$objOAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile(PATH_ADWORDS_INI)
                                                     ->build();
$googleAdsClient = (new GoogleAdsClientBuilder)->fromFile(PATH_ADWORDS_INI)
                                              
 ->withOAuth2Credential($objOAuth2Credential)
                                               ->build();
$serviceClient = $googleAdsClient->getGoogleAdsServiceClient();
```

And, the next below is the walk-through we found.

```
// We set the API setting by each setter, not using the INI file.
$objOAuth2Credential = (new 
OAuth2TokenBuilder())->withClientId(ApiSettingInfo::CLIENT_ID)
                                                    
 ->withClientSecret(ApiSettingInfo::CLIENT_SECRET)
                                                    
 ->withRefreshToken(ApiSettingInfo::REFRESH_TOKEN)
                                                     ->build();
$googleAdsClient = (new 
GoogleAdsClientBuilder)->withOAuth2Credential($objOAuth2Credential)
                                              
 ->withDeveloperToken(ApiSettingInfo::DEVELOPER_TOKEN)
                                              
 ->withLoginCustomerId(ApiSettingInfo::LOGIN_CUSTOMER_ID)
                                               ->build();
$serviceClient = $googleAdsClient->getGoogleAdsServiceClient();
```

So, I have some questions.

1) The V3 class wants the INI file to a perfect writable or other 
permission?
2) We cannot find any inforamtion about this issue in the API reference 
web-site. Is it a bug of the V3?
    If so, this issue will be solved in the next release?

Best Regards.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e6d66dd-e94e-4fc3-ac1b-229bfa194c76%40googlegroups.com.

Reply via email to