Retrieve AdGroupSimulations return error

177 views
Skip to first unread message

Diogo Pereira

unread,
May 28, 2019, 2:39:19 AM5/28/19
to adwor...@googlegroups.com
Hi,

Someone can help me? 
I try to obtain ad group simulation but return an error.


Method Name: /google.ads.googleads.v1.services.AdGroupSimulationService/GetAdGroupSimulation
Headers: {
    "x-goog-api-client": "gl-php\/7.1.23 gapic\/ gax\/0.38.0 grpc\/1.20.0",
    "x-goog-request-params": "resource_name=customers\/<XXXXXXXXX>\/adGroupSimulations\/<XXXXXXXXX>~BID_MODIFIER~DEFAULT~2019-05-01~2019-12-12",
    "developer-token": "REDACTED",
    "login-customer-id": "<the_customerId>"
}
Request: {"resourceName":"customers/<XXXXXXXXX>/adGroupSimulations/<XXXXXXXXX>~BID_MODIFIER~DEFAULT~2019-05-01~2019-12-12"}

Response
-------
Headers: {
    "request-id": "<the_requestid>",
    "date": "Mon, 27 May 2019 13:42:45 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,44,43,39\""
}

Fault
-------
Status code: 5
Details: Requested entity was not found.
Failure: {"errors":[{"errorCode":{"requestError":"BAD_RESOURCE_ID"},"message":"'2019-05-01' part of the resource name is invalid."}]}  
Request with ID '<the_requestid>' has failed.
Google Ads failure details:
        request_error: '2019-05-01' part of the resource name is invalid.

Google Ads API Forum Advisor Prod

unread,
May 28, 2019, 11:56:06 PM5/28/19
to adwor...@googlegroups.com
Hi Diogo,

My apologies for the delay. Also, I had to edit some of the details of your initial post for security. You may refer to our forum posting guidelines for more information on what you may share publicly.

Moving forward, could you try and remove the hyphens in the dates of your resource name? You may refer to the below example :

~BID_MODIFIER~DEFAULT~20190501~20191212

Let me know if this works. If the issue persists, you may send to me privately, via the Reply privately to author option, the JSON logs so I can further investigate.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UAqoHb:ref

Diogo Pereira

unread,
May 29, 2019, 5:00:10 AM5/29/19
to AdWords API and Google Ads API Forum
Hi Peter,

Thanks for your reply

Now returns the error resource not found. But the customer exists and the ad group.

Note: Because ours email server blocks send email to you i can't send private reply :(

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 5:11:48 AM5/29/19
to adwor...@googlegroups.com
Hi Diogo,

Could you confirm if the below (full) example resource name was what you passed in the request?

customers\/2xxxxxxx41\/adGroupSimulations\/7xxxxxxxxx7~BID_MODIFIER~DEFAULT~20190501~20191212

If yes, and you continue to encounter issues, could you send to me the updated JSON logs? You may reply using the Reply privately to author option.

Diogo Pereira

unread,
May 29, 2019, 5:17:11 AM5/29/19
to AdWords API and Google Ads API Forum
Hi,

No. Was customers/3xxxxxxx48/adGroupSimulations/7xxxxxxxxx5~BID_MODIFIER~DEFAULT~20190501~20191212

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 5:27:01 AM5/29/19
to adwor...@googlegroups.com

Hi Diogo,

Thank you for confirming the resource name you used. Could you send to me your updated JSON logs, with the error, so I can further investigate? You may reply using the Reply privately to author option.

Best regards,


Peter
Google Ads API Team



ref:_00D1U1174p._5001UAqoHb:ref

Diogo Pereira

unread,
May 29, 2019, 9:40:21 AM5/29/19
to AdWords API and Google Ads API Forum
HI Peter

I send the reply with another account. Please confirm if receive them.

Diogo Pereira

unread,
May 29, 2019, 9:40:37 AM5/29/19
to AdWords API and Google Ads API Forum
Hi Peter,

I send the reply with this account.

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 10:24:02 AM5/29/19
to dioogo....@gmail.com, adwor...@googlegroups.com
Hi Diogo,

Thank you for sending that information over, I did receive it and was able to look into the issue for you. The problem is that the customer account ID you provided is for a test account. Since simulations use historical data to simulate performance, they can't be used with test accounts that do not serve ads. To access ad group simulations you'll need to query a production ad group that's been serving ads and has some performance data.

Hope that helps!

Best,
Ben Karl, Google Ads API Team

ref:_00D1U1174p._5001UAqoHb:ref

Diogo Pereira

unread,
May 29, 2019, 11:03:40 AM5/29/19
to AdWords API and Google Ads API Forum
Hi ,

Thank you for your fast reply.

I change to an production ad group, but now return RESOURCE_NOT_FOUND. 7xxxxxxxx1~BID_MODIFIER~DEFAULT~20190501~20190530

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 11:32:17 PM5/29/19
to adwor...@googlegroups.com
Hi Diogo,

Apologies for the back and forth. Can you once again send the generated logs of your most recent request with the RESOURCE_NOT_FOUND error?

You may send it to me privately.

Thanks and regards,
Peter

Diogo Pereira

unread,
Jun 4, 2019, 5:18:11 AM6/4/19
to AdWords API and Google Ads API Forum
Hi

Any news?

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2019, 6:10:49 AM6/4/19
to adwor...@googlegroups.com
Hi Diogo,

I sent my response to you in private. If you haven't seen it yet, you may refer below for its contents :

"Upon further discussion with the team, it would appear that the issue might be originating from the newly created ad group. It appears that, due to being new, it doesn't have enough information for a proper simulation to be performed. The requirements for a successful simulation should depend on having established criterion, ad group, or campaign

For now, I would recommend that you wait for some time before you resend your request for the simulation.
"

That said, could you confirm if you continue to encounter the said issue?
Reply all
Reply to author
Forward
0 new messages