Hello, 

I'm trying to *create a Search campaign* using a *Total Amount Budget* 
using the REST interface.

*Params* to create the *total budget*: (no errors)
create:{
    name: <NAME>,
    totalAmountMicros: <TOTAL_AMOUNT_MICROS>, 
    explicitly_shared: false,
    status: "ENABLED",
    delivery_method: "STANDARD",
    period: "CUSTOM_PERIOD"
}

*Params* to *create the Campaign* (*works if DAILY budget period* and 
amountMicros param instead of totalAmoutMicros):
{
  "operations": [
    {
      "create": {
        "name": "<CAMPAIGN_NAME>",
        "status": "PAUSED",
        "advertisingChannelType": "SEARCH",
        "networkSettings": {
          "targetGoogleSearch": true,
          "targetSearchNetwork": true,
          "targetContentNetwork": false,
          "targetPartnerSearchNetwork": false
        },
        "manualCpc": {
          "enhancedCpcEnabled": false
        },
        "campaignBudget": 
"customers/1980789725/campaignBudgets/13411425829",
      }
    }
  ]
}

Even with *start* & *end date* *params*, I still have the same issue: 
(below the error I got)
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "campaignBudgetError": "INVALID_PERIOD"
            },
            "message": "The period of the budget is not allowed.",
            "trigger": {
              "int64Value": "13411425829"
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "operations",
                  "index": 0
                },
                {
                  "fieldName": "create"
                },
                {
                  "fieldName": "campaign_budget"
                }
              ]
            }
          }
        ],
        "requestId": "yPqlO-Tw9N1uMwBP5olR0g"
      }
    ]
  }
}

So i wanted to know *how can I create campaigns using Total Amount Budget 
(No set date + consume budget until exhausted)*, and if not, what are the 
campaigns i cannot use with this type of Budget.
I can provide you more informations if needed

Thank you

Sincerely, 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5a1fd0a7-420f-41ab-80d6-a346c5924e2en%40googlegroups.com.
  • To... Maxime Heurtevent
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Maxime Heurtevent

Reply via email to