Closed urvashihirkar closed 4 years ago
Thanks! I'll check it ASAP
Keep trying to find a good solution!
Sorry for the delay!
Hello @urvashihirkar
I've found a temporary solution. But I cannot test it until next week. App I have access to, doesn't have permissions until next week to Audience API.
Could you try this way and tell me what kind of response do you have?
PS: Download v6.0.3
$data = [
[
'operation_type' => "Update",
'params' => [
"users" => [
[
"email" => [
"4798b8bbdcf6f2a52e527f46a3d7a7c9aefb541afda03af79c74809ecc6376f3"
]
]
]
]
]
];
$responseAudieUser = $api->post('accounts/'.$twAdsAccId.'/tailored_audiences/'.$audienceId.'/users',['raw' => json_encode($data)]);
I am trying to post user in audience list id(which i am creating dynamically).
Here is code i am using -:
` require '../vendor/autoload.php'; require 'config.php';
`
But when I am printing the response it is showing error :-
caught exception 'Hborras\TwitterAdsSDK\TwitterAds\Errors\ServerError' with message 'SERVER_ERROR' in /opt/lampp/htdocs/demo/tweets-php/vendor/hborras/twitter-php-ads-sdk/src/TwitterAds.php:501
please help me so I can add user to audiecnce.