Hi,

Please be informed that I have removed your response from the forums as it 
contains the PII information.

Based on the logs, I could see that you have encountered 
OPERATION_NOT_PERMITTED_FOR_CONTEXT error particularly at the 'manual_cpc' 
field while creating the demand gen campaign. Kindly note that 'manual_cpc' 
bidding strategy is not supported for the demand gen campaigns and that's the 
main reason why you are encountering OPERATION_NOT_PERMITTED_FOR_CONTEXT error. 
Supported bidding strategies for the demand gen campaigns are maximize clicks, 
target CPA, maximize conversions, and target ROAS. I would recommend you to 
refer to this documentation for more detailed information regarding the demand 
gen campaign bidding strategies.

Additionally, as your main goal is to create the demand gen campaign with 
'Clicks' as the main goal, so I would recommend you to create the demand gen 
campaign with 'maximize clicks' as a bidding strategy. Maximize clicks 
corresponding bidding strategy name in the Google Ads API is 'TARGET_SPEND'. I 
would recommend you to refer to this guide for more information. We have tried 
this approach and we were able to achieve it as per your requirement, so I 
would suggest you to remove the 'manaul_cpc' and try adding the TARGET_SPEND 
and let us know how it goes from your end. However, I am sharing a sample 
request body for the campaign operation:

{
  "operations": [
    {
      "create": {
        "advertisingChannelType": "DEMAND_GEN",
        "name": "Demand gen campaign cpc",
        "campaignBudget": 
"customers/{customerId}/campaignBudgets/{campaignBudgetId}",
        "status": "ENABLED",
        "containsEuPoliticalAdvertising": 
"DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING",
        "targetSpend": {}
      }
    }
  ]
}

As you are performing bulk mutate calls using the GoogleAdsService and the 
campaign operation failed which resulted in the following operations to fail 
and resulted in a RESOURCE_NOT_FOUND error. Once you update your campaign 
operation with the 'TARGET_SPEND' bidding strategy the corresponding operations 
will succeed and the RESOURCE_NOT_FOUND error will get resolved.

Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-10-15 10:05:52Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!500Ht01szPi2:ref" (ADR-00330269)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/2Ggfr000000000000000000000000000000000000000000000T4641S00Fw_tSZGbQqWUV3FaTiFfow%40sfdc.net.
  • De... Ashish Chaturvedi (Ashu)
    • ... flywheel
    • ... flywheel
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to