Google Ads API - campaign_criterion_simulation

53 views
Skip to first unread message

Jarek Zambrzycki

unread,
Jun 8, 2022, 11:05:55 AM6/8/22
to Google Ads API and AdWords API Forum
Hi,

I am trying to make an estimate of the budget and CPA increase based on the Google API and the table: campaign_criterion_simulation, my uery is:

$query = 'SELECT campaign_criterion_simulation.criterion_id, campaign_criterion_simulation.start_date, campaign_criterion_simulation.end_date, campaign_criterion_simulation.bid_modifier_point_list.points FROM campaign_criterion_simulation WHERE campaign_criterion_simulation.campaign_id = '.$campaignId.' AND campaign_criterion_simulation.criterion_id = 30002';

Unfortunately, every time I get a blank page (the query does not return anything, I checked on all campaigns).

A similar problem is here: Google Ads API - Campaign Target CPA

I spent a few days on it. Do you know the answer what could be the reason?

thx

Google Ads API Forum Advisor

unread,
Jun 8, 2022, 1:12:23 PM6/8/22
to jarek.za...@gmail.com, adwor...@googlegroups.com
Hi Jarek,

Thank you for reaching out to Google Ads API support. For us to assist you with your campaign_criterion_simulation no show, we will need the following:
  • Full screen screenshot of the UI  showing functionality you are trying to duplicate using the API.
  • Request and response  'DEBUG' log level log of API communications of the API report download. 

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java, .NET, PHP, Python, Ruby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,
 

Google Logo
Aryeh
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2bdauI:ref

Jarek Zambrzycki

unread,
Jun 10, 2022, 9:52:11 AM6/10/22
to Google Ads API and AdWords API Forum
Thank you for your response,


Other queries return correct data for me, but when I use campaign_criterion_simulation API, it returns an empty query.
No runtime error is returned when asked.

The query must be correct because in the case of using a table that does not exist/not correct, the API returns the exact name of the error. In my case there is an empty answer

I don't know exactly what I can send because I don't have any bug number. The library also works properly because it does not return an error. All other queries return the correct values, I only have a problem with this one
Message has been deleted

Google Ads API Forum Advisor

unread,
Jun 17, 2022, 12:27:20 PM6/17/22
to jarek.za...@gmail.com, adwor...@googlegroups.com
Hi Jarek,

You may turn on Logging with log level set to 'DEBUG', the request log is also useful. You may also send us a full screen screenshot of the UI showing what you are trying to access via API. If the query is correct but there is no data to return the API sends an empty response without an error message.
Reply all
Reply to author
Forward
0 new messages