Discovery Campaing Error Create Via Google Ads Api

121 views
Skip to first unread message

DAN_BLOXYTT

unread,
Jun 16, 2023, 10:24:39 PM6/16/23
to Google Ads API and AdWords API Forum
Please, I would like to know how to create the discovery campaign via the google ads api, I have already tried it as shown in the tutorial and it will not work at all, it always gives an error in python saying The operation is not allowed for the given context, and the id is this here: gV5RtLgc9bBevHkkNZmakw.

We need urgent help, thank you in advance

Vinicius R A

unread,
Jun 19, 2023, 4:34:58 PM6/19/23
to Google Ads API and AdWords API Forum
I'm having the same problem, when I call mutate to generate the campaign. I've set up all sorts of bidding strategies and it keeps crashing. I would also like to know how to set up a conversion goal for a discovery campaign.
we need help, thanks

Google Ads API Forum Advisor

unread,
Jun 21, 2023, 6:00:01 AM6/21/23
to valentin...@gmail.com, adwor...@googlegroups.com

Hi all,

Thank you for reaching out to Google Ads API Forum.

You may refer to this guide (https://developers.google.com/google-ads/api/docs/discovery/create-campaign) regarding Creating a Discovery Campaign. Kindly note that as per this guide (https://developers.google.com/google-ads/api/docs/discovery/create-campaign#create_budget) Discovery campaign cannot use a shared budget. It is recommended that you have a sufficient daily budget to account for at least 10 times your target CPA bid.

Let us know how it goes and if the issue persists after trying the suggested solution, then you may provide to us the complete API logs (request and response with request-id and request header) generated when you encountered the issue. This is so we can investigate further and provide more appropriate answers accordingly.

For the client libraries, logging can be enabled by navigating to the Client libraries > Your client library (ex Java) > Logging documentation, which you can access from this link (https://developers.google.com/google-ads/api/docs/client-libs). You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reference links included in this email:


 
This message is in relation to case "ref:_00D1U1174p._5004Q2mUncq:ref"

Thanks,
 
Google Logo Google Ads API Team


Vinicius R A

unread,
Jun 21, 2023, 5:51:17 PM6/21/23
to Google Ads API and AdWords API Forum
Hello ,
Thanks for the feedback, but yes, I am following the budget rule, including setting it as a non-shared budget, I just can't create it with the strategy of maximizing conversions because if I send it empty, it doesn't accept empty and if I send it with maximize_conversions, they return me "The operation is not allowed for the given context" , with target_cpa i got success. 
I'm using api v14.

Google Ads API Forum Advisor

unread,
Jun 23, 2023, 3:09:24 AM6/23/23
to vinir...@gmail.com, adwor...@googlegroups.com

Hi Vinicius,

Thank you for the reply.

For our team to further investigate this and provide you with appropriate recommendations, could you please provide us with the complete API logs (request, response, request-id ) generated on your end where you can see the two errors you are referring to? 

Note that logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output. 

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
 

Reply all
Reply to author
Forward
0 new messages