New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL tags creating error (V2.6) #38
Comments
Hi sang-d, It might be related to json escaping of special characters. Would you mind posting some code snippet of your code? Also, you can pass an AdCreative object as param instead of a json string, which would better handle the encoding. Thanks! |
hi JiamingFB,
Thanks, |
hi JiamingFB, This issue happens only when creating ad in a BATCH request. For eg above, if I set: Please take a look. |
Hi sang-d, Looks like there is a bug in encoding when assembling batch request. The "body" in batch request is supposed to be url-encoded, but it's not encoded right now. Sorry for the inconvenience. I'll work on the fix. |
I just applied a patch for it in latest code. Looks like the encoding bug has been there for a while, but seemingly it didn't break the request (server has some level of tolerance) unless the body contains special characters like "&" If you want to stay in v2.6, you can copy that one-line change :) |
Hi,
I'm still using v2.6 and I got this error while creating ad with url_tags having more than 1 value:
creative to submit:
{"body":"test desc","image_hash":"c6e035cb89c48000b7e5eb8af0e2b012","link_url":"http://sdinh.net","object_url":"http://sdinh.net","title":"my headline","url_tags":"key=1&key=2"}
error:
{\"message\":\"(#100) Creative spec must be an associative array (optionally json-encoded)
It happened with different type of creative (Domain, Post page ad...).
Can you take a look and advise.
Thanks,
Sang
The text was updated successfully, but these errors were encountered: