Hi,

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

To enable the 'Broad match keywords', set the 'keywordMatchType':BROAD in the 
campaign:mutate while creating the campaign as below:

POST https://googleads.googleapis.com/v19/customers/{customer 
Id}/campaigns:mutate?key=[YOUR_API_KEY] HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "create": {
        "campaignBudget": "customers/{customer Id}/campaignBudgets/{campaign 
Budget Id}",
        "biddingStrategy": "customers/{customer Id}/biddingStrategies/{bidding 
strategy Id}",
        "advertisingChannelType": "SEARCH",
        "name": "test_forBoradMatch1",
        "keywordMatchType": "BROAD"
      }
    }
  ]
}

{
  "results": [
    {
      "resourceName": "customers/{customer Id}/campaigns/{campaign Id}"
    }
  ]
}

To disable the 'Broad match keywords', set the 'keywordMatchType':UNSPECIFIED 
in the campaign:mutate while creating a campaign or you can update for an 
existing campaign as below:

curl --request POST \

 'https://googleads.googleapis.com/v19/customers/{customer 
Id}/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":[{"update":{"resourceName":"customers/{customer 
Id}/campaigns/{campaign 
id}","keywordMatchType":"UNSPECIFIED"},"updateMask":"resourceName,keywordMatchType"}]}'
 \

 --compressed

 

{

 "results": [

  {

   "resourceName": "customers/{customer Id}/campaigns/{campaign id}"

  }

 ]

}





Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-04-28 11:25:27Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!500Ht01qV8Sz:ref" (ADR-00302514)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/1XaRT000000000000000000000000000000000000000000000SVFEEF00fCyIBZTqSlSosZckpTzqdQ%40sfdc.net.
  • Se... Amit Tomar
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Amit Tomar

Reply via email to