-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing request Id when we upload offline conversions #1005
Comments
It may be related to the change of new generated code and |
BTW, what google/gax did you install in your project? |
We are using "googleads/google-ads-php": "^v22.1.0" and google/gax (^1.19.1) as an internal dependency |
Without looking too deeply (I'm not at a laptop), the first example contains |
Hmm, after a second thought, I think the issue is that the API has changed, and the second way you have is the new (and correct) way to make the API call, which would mean this is working as designed. |
I don't think so. The API specification itself hasn't changed. We have
The GAPIC v1 classes can call these functions successfully, but somehow for GAPIC v2 classes (like GoogleAdsServiceClient), it looks like there is something changed underneath that makes the result of a callable not propagated back. Has anything in |
@fiboknacky If I could get a repro test going for this, we could roll back versions of GAX until we land on a version where it works - this would go a long way in helping diagnose this issue |
FYI @rilwanfit Brent (@bshaffer) and I synced offline and we found the root cause. |
New version of the client library was released. |
Is there an example to get metadata in the new update? It seems the api docs are still outdated https://developers.google.com/google-ads/api/docs/client-libs/php/response-metadata |
We've just updated the doc. Sorry for your inconvenience. |
Using v17 example:
$conversionUploadServiceClient->getResponseMetadata(); will return null |
I cannot reproduce your issue. It works as expected on my machine. |
Hi @fiboknacky this is not working even after the changes. Here are how the code looks like
For conversionUploadClient the getResponseMetadata is always null but for search stream apis I get ResponseMedataObject with empty attributes. This one is from the https://developers.google.com/google-ads/api/docs/client-libs/php/response-metadata this example.
|
@dabontv I am still stuck around this issue, were you able to find a workaround? |
We set up our own logs (https://developers.google.com/google-ads/api/docs/client-libs/php/logging) |
Thanks for reply. |
Your question:
We are currently migrating our project from Google Ads API V15 to V16 with the release of Google Ads PHP 22.1.0.
In our application, we used to log the
RequestID
whenever we sent offline conversions to Google Ads API. (both success calls as well as failed calls)We used the following code when we used V15.
The
$status
is theGoogleAdsResponseMetadata
where we can get the request-id.Problem
With V16 the above code is NOT working anymore. So we have updated the code to the following
With this code, we missed the entire
GoogleAdsResponseMetadata
object.How can we get the request Id with new version (V16)? (both success calls as well as failed calls)
The text was updated successfully, but these errors were encountered: