Hi,

Thank you for reaching out to the Google Ads API support team.

Please find the following answers to your questions:

1) Is it possible to add image, video and other types of assets to the search 
campaign, if yes then how to do so. also, is it required or optional ?

Yes, you can add the image asset to a search campaign. but the video asset is 
not supported. You may check this document to know how the Asset types linked 
to customers, campaigns, and ad groups.

To do this you need to

create an asset with type image

{
  "operations": [
    {
      "create": {
        "imageAsset": {
          "fullSize": {
            "url": "https://gaagl.page.link/Eit5";,
            "heightPixels": 1200,
            "widthPixels": 628
          },
          "mimeType": "IMAGE_PNG",
          "data": ""
        },
        "name": "marketing image"
      }
    }
  ]
}

Later you need to link that asset to a search campaign. Adding the image asset 
is optional and it's based on your requirement.

{
  "operations": [
    {
      "create": {
        "campaign": "customers/customerId/campaigns/campaignId",
        "asset": "customers/customerId/assets/assetID",
        "status": "ENABLED",
        "fieldType": "AD_IMAGE"
      }
    }
  ]
}


2) How to use client library to make search campaigns. kindly tell the methods 
required to set up search campaigns, budget, bidding strategy and targeting 
options.

I would suggest you refer to this document to know how to get started with the 
Java client library. Also, you may check this sample Java code to create a 
search campaign for settings required for establishing a new campaign, 
including the budget, bidding strategy, campaign type, start & end dates, and 
more.

3) Can you provide a sample cURL for making search campaigns including all the 
possible fields.

Please find the below sample cURL request for your reference :

curl --request POST \
  
'https://googleads.googleapis.com/v17/customers/5494898462/campaigns:mutate?key=[YOUR_API_KEY]'
 \
  --header 'developer-token: **********************' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data 
'{"operations":[{"create":{"name":"Test_search_campaign","advertisingChannelType":"SEARCH","campaignBudget":"customers/5494898462/campaignBudgets/13949138531","maximizeConversions":{"targetCpaMicros":17249760000},"status":"ENABLED","startDate":"2024-09-26","endDate":"2024-12-26","targetingSetting":{"targetRestrictions":[{"bidOnly":true,"targetingDimension":"AUDIENCE"}]}}}],"partialFailure":true}'
 \
  --compressed


4) Please list down all the required and optional fields for the search 
campaigns so, that we have an idea to modify the campaign according to one's 
needs.

The required fields for the search campaigns are the budget, bidding strategy, 
campaign type, start & end dates, target setting. You may check this campaign 
document to know more fields.

I hope this helps! Let us know if you have any further questions.
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGaiu:ref" 
(ADR-00269634)

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/DSyTx000000000000000000000000000000000000000000000SKF6TT00wMqi02fZRQGPVXzwwTdtYA%40sfdc.net.
  • re... Dushyant
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to