campaign objective

64 views
Skip to first unread message

adatestaccount

unread,
Sep 11, 2023, 4:15:35 AM9/11/23
to Google Ads API and AdWords API Forum
Hi,

how do I define the campaign objective in the payload I am using to create a campaign. 
Need to set the campaign objective to one of the following:  Sales, Leads, Website Traffic, Brand Awareness and Reach, App Promotion.

FYI: using REST interface

payload I am using to create a campaign:

var payload = {
    "operations": [
      {
        "create": {
          "name": cname,
          "status": "PAUSED",
          "advertisingChannelType": String(campaignType),
          "networkSettings": {
            "targetGoogleSearch": true,
            "targetSearchNetwork": true,
            "targetContentNetwork": true,
            "targetPartnerSearchNetwork": false
          },
          "campaignBudget": "customers/" + customer_id + "/campaignBudgets/" + campaignBudgetId,
          "biddingStrategy": "customers/"+customer_id+"/biddingStrategies/"+bidding_strategy_id,
          "startDate": startDate, // Add startDate
          "endDate": endDate     // Add endDate
        }
      }
    ]
  };

Google Ads API Forum Advisor

unread,
Sep 11, 2023, 8:01:49 AM9/11/23
to adaaut...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to Google Ads API Support.

With regards to your concern, kindly note that Google Ads API mirrors the Google Ads UI. Meaning by using the Google Ads API, you can get and manage the data that you are seeing in the UI. With that being said, can you provide us with the full (not cropped) and non-redacted screenshot of the Google Ads UI showing what data you want to retrieve in Google Ads API? This is for us to be able to replicate the data on our side and suggest you proper guidance.

Additionally, for creating campaigns you may refer to this link (https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.campaigns/mutate). You may also use our API Explorer to validate your requests (https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.campaigns/mutate?apix=true). 

Links included in this email:

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

Thanks,
 
Google Logo Google Ads API Team


adatestaccount

unread,
Sep 11, 2023, 9:00:18 AM9/11/23
to Google Ads API and AdWords API Forum
This is what I want to define when creating a campaign through the Ads API.
campaign_objective.PNG

Google Ads API Forum Advisor

unread,
Sep 11, 2023, 3:15:55 PM9/11/23
to adaaut...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for providing us with that screenshot. You may use conversion goals which helps you organize your conversion actions so that you can more easily optimize toward your advertising objectives. Goals are organized and identified by the unique combinations of category and origin in the set of ConversionActions in your account's effective conversion account.

In the Google Ads UI goal management tabs, the origin attribute is labeled Conversion source. The Google Ads API uses the term origin to clearly differentiate between this attribute and the Source field in the UI Conversion actions tab. For more information, you may check this page

Reply all
Reply to author
Forward
0 new messages