-
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
MutateAdGroupCriterionResult does not return CpcBidMicros #1044
Comments
Could you share your code too please? |
Hi @fiboknacky , The code :
|
Could you share the whole code like how you created the ad group criterion operation? |
Hi @fiboknacky , Part of the code:
RequestId: "4Kz5u1DT2MXMEZtOR3Q9BQ" |
Hi @fiboknacky , This is strange. worked with this code
But not with this code
"request-id": "DFTKWP1FJufECXQBo-xiHA", |
Thanks. That's interesting information and should be helpful to my investigation. Allow me some time to check this. |
Hi @fiboknacky , did you get a chance to check this? Thanks, |
Sorry, I'm pretty swamped right now and would be able to take a look at this next week. |
I might also think
it should be ['partial_failure'=>true] ? So that in my code Thanks, |
First, for your mentioned code:
It should be MutateAdGroupsRequest::build($customerId, $operations)->setPartialFailure(true) as explained in this section. I'll update this example soon. Therefore, for your code, it should be: MutateAdGroupCriteriaRequest::build($this->client_id, $adGroupCriterionOperations)
->setPartialFailure(true)
->setResponseContentType(ResponseContentType::MUTABLE_RESOURCE) Could you please try it? |
Hi @fiboknacky , Yes, it is working as I mentioned in my earlier comment here However, the issue arises with options passed as an array like this or
This would fail. As I checked examples, partial failures are used as 'partialFailure' in examples everywhere, but I believe it should be 'partial_failure'. Therefore, using:
should work? Thanks |
No. That wouldn't work after we migrated to GAPIC v2 as I mentioned above. HandleRateExceededError.php would need an update too. Sorry that we didn't see this earlier. |
[DO NOT INCLUDE ANY PERSONAL OR SENSITIVE DATA - MAKE SURE TO REDACT CONTENT WHEN NECESSARY]
Your client library and Google Ads API versions:
v23.1.0
V17
Your environment:
PHP 8.1.2-1ubuntu2.18
Linux
Description of the bug:
I am not able to get AdGroupCriterion object with option getAdGroupCriterion();
And so that I cannot see CpcBidMicros
Steps to reproduce:
I was trying to update response for keywords through mutateAdGroupCriteria.
Expected behavior:
Should have return macCPC and AdGroupCriterion Object.
Request/Response Logs:
object(Google\Ads\GoogleAds\V17\Services\MutateAdGroupCriterionResult)#146 (0) {
}
Operation 0 succeeded: ad group with resource name 'customers/XXXXX/adGroupCriteria/1148XXX3111~39774910'.
Anything else we should know about your project / environment:
The text was updated successfully, but these errors were encountered: