API Queries - Add Suggest

The add_keyword function creates a new brand. This function requires additional parameters. Failing to include them will result in an error response.


Additional Parameters

  • keyword - Keyword to be added. Does not accept multiple keywords. (Required, for suggest keywords should be from list_brands keywords list)
  • folder - Name of the folder where the keyword is to be added. (Required)
  • my_bid - Your bid for the keyword. (Required)
  • traffic_type - Choose from traffic type "all", "mobile" or "desktop". Default is "all". (Optional)
  • daily_limit - Daily spend limit for the keyword. (Optional)
  • channel - suggest (Required)
  • target_url - The Target URL, including https:// (Required) geo_target - The Geo Target, either "all", "us", "uk", "ca", "au", "nz", "in", "br", "de", "fr", "nl", "it", or "es". Default is "all". (Optional)
  • active - Activate the keyword upon creation. On "1" or off "0". Default is "1" (on). (Optional) (for suggest 0 means do not turn campaign ON once admin approves)
  • freq_cap - Limit on number of visits per unique user in 24 hour period. Choose from "3", "6" or "12". Default is "6". (Optional)
  • include_coupon - Include Coupon traffic. "1" to include, "0" to exclude. Default is "0" (optional)

Note: Make sure to URL encode all values, most importantly the target_url value.


Example query and response:

1) List Brands Query:

To get brand list for suggest need to pass list_brands to get list of brands with keywords

https://bid.trellian.com/api.html?username=user&password=pass&api_key=key&mode=list_brands

<results>
<result brand="zZounds.com" Keyword="zzoundscom" url="zzounds.com"/>
<result brand="Zyro" Keyword="zyro" url="zyro.com"/>
<result brand="Zyppah" Keyword="zyppah" url="zyppah.com"/>
<result brand="Zygor Guides" Keyword="zygorguides" url="zygorguides.com"/>
<result brand="Zygo" Keyword="zygo" url="shopzygo.com"/>
<result brand="Zwillingsherz" Keyword="zwillingsherz" url="zwillingsherz.com"/>
<result brand="Zwilling.com" Keyword="zwillingcom" url="zwilling.com"/>
<result brand="Wlowood" Keyword="wlowood" url="wlowood.com"/>
</results>
                    

Note: This will not give result and will show 421 - Please contact your Account Manager if user does not have suggest in not enabled in their account.

2) Add Query:

https://bid.trellian.com/api.html?username=username&password=XXXXX&api_key=XXXXXXXXXX&mode=add_keyword
&keyword=1001hobbies&folder=test&my_bid=45.00&daily_limit=100.00
&target_url=http://www.trillion.com&geo_target=ALL&channel=suggest&active=1

Note: Keyword should be from step 1

<results>
<result Folder="test" Keyword="1001hobbies" Status="Keyword sent for approval"/>
</results>

Error Responses:

Possible error responses for this function are:

For a complete list of error responses, see the Error Codes manual page.