Dynamic keyword insertion setHeadlinePart1

17 views
Skip to first unread message

Ildar Khakimov

unread,
Aug 4, 2017, 4:04:07 PM8/4/17
to AdWords API Forum

Good day

I'm trying to insert "{Keyword}" as setHeadlinePart1, using the class AddExpandedTextAds, but getting an error

[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart1, key=PolicyViolationKey{policyName=empty_line,violatingText=}

Shwetha Vastrad (AdWords API Team)

unread,
Aug 4, 2017, 4:19:25 PM8/4/17
to AdWords API Forum
Hi,

When using keyword insertion, the formula and default ad text you specify must be formatted correctly. Please ensure that you place the default ad text within {squiggly brackets}, as shown here: {keyword:default text}, where "default text" is the word or words you want to appear when the text can't be replaced by a keyword. Please retry the request after making this change and let me know if it works. 

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages