Adding a List of Keywords in a Keyword Plan Ad Group

37 views
Skip to first unread message

Mehmet Kocak

unread,
Apr 5, 2022, 1:00:05 AM4/5/22
to Google Ads API and AdWords API Forum
Hey,

I am working with the KeywordPlanAdGroupKeywordOperation and would like to include a list of 10.000 keywords in my keyword plan. Here is my Code at the moment: 

    operation = client.get_type("KeywordPlanAdGroupKeywordOperation")
    keyword_plan_ad_group_keyword1 = operation.create
    keyword_plan_ad_group_keyword1.text = "car"
    keyword_plan_ad_group_keyword1.match_type = (
        client.enums.KeywordMatchTypeEnum.EXACT
    )
    keyword_plan_ad_group_keyword1.keyword_plan_ad_group = plan_ad_group
    operations.append(operation)

    operation = client.get_type("KeywordPlanAdGroupKeywordOperation")
    keyword_plan_ad_group_keyword2 = operation.create
    keyword_plan_ad_group_keyword2.text = "computer"
    keyword_plan_ad_group_keyword2.match_type = (
        client.enums.KeywordMatchTypeEnum.EXACT
    )
    keyword_plan_ad_group_keyword2.keyword_plan_ad_group = plan_ad_group
    operations.append(operation)

    operation = client.get_type("KeywordPlanAdGroupKeywordOperation")
    keyword_plan_ad_group_keyword3 = operation.create
    keyword_plan_ad_group_keyword3.text = "lights"
    keyword_plan_ad_group_keyword3.match_type = (
        client.enums.KeywordMatchTypeEnum.EXACT
    )
    keyword_plan_ad_group_keyword3.keyword_plan_ad_group = plan_ad_group
    operations.append(operation)
   
    operation = client.get_type("KeywordPlanAdGroupKeywordOperation")
    keyword_plan_ad_group_keyword4 = operation.create
    keyword_plan_ad_group_keyword4.text = "microfon"
    keyword_plan_ad_group_keyword4.match_type = (
        client.enums.KeywordMatchTypeEnum.EXACT
    )

My Question:
Can I define my KeywordMatch type just once and then somehow put a list in that operation.create.text argument? Or do I need to define this line for every single keyword?

Google Ads API Forum Advisor

unread,
Apr 5, 2022, 5:30:50 AM4/5/22
to mehmet...@lampenwelt.de, adwor...@googlegroups.com
Hi Mehmet,

Thank you for raising this concern to the Google Ads API forum.

To answer the question below, I am afraid that there is no bulk set match type for a list of keywords and you will need to define this line for every single keyword.


"Can I define my KeywordMatch type just once and then somehow put a list in that operation.create.text argument? Or do I need to define this line for every single keyword?"

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZJpaz:ref

Mehmet Kocak

unread,
Apr 7, 2022, 5:37:15 PM4/7/22
to Google Ads API and AdWords API Forum

Hey,

okey then I will do it that way.
Thanks you very much

Greetings,
Mehmet

Google Ads API Forum Advisor

unread,
Apr 7, 2022, 11:26:34 PM4/7/22
to mehmet...@lampenwelt.de, adwor...@googlegroups.com
Hi Mehmet,

Thank you for the updates.

If you have additional questions regarding the topic being discussed in this thread, feel free to send those over to our team and we would be happy to assist you further.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZJpaz:ref
Reply all
Reply to author
Forward
0 new messages