Skip to content
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

getting Call to undefined method Hborras\TwitterAdsSDK\TwitterAds\TailoredAudience\TailoredAudience::getAccount() #35

Closed
garima-goyal opened this issue Nov 23, 2017 · 10 comments

Comments

@garima-goyal
Copy link

There is no function like getAccount() in class TailoredAudience.

Please help asap

Thanks in advance

@hborras
Copy link
Owner

hborras commented Nov 23, 2017

Hi @garima-goyal ,

Sorry for the inconvence. TailoredAudience is fixed now in new release https://github.com/hborras/twitter-php-ads-sdk/releases/tag/v1.0.4

Please upgrade to the new version

@hborras hborras closed this as completed Nov 23, 2017
@garima-goyal
Copy link
Author

Hi @hborras,

Thanks a lot for the quick response.

@garima-goyal
Copy link
Author

getting "Cannot use object of type Hborras\TwitterAdsSDK\TwitterAds\Analytics\Job as array in /home/garimag/Desktop/twitter-ads-api/twitter-php-ads-sdk-latest/examples/analytics.php on line 79" now

@hborras hborras reopened this Nov 24, 2017
@hborras
Copy link
Owner

hborras commented Nov 24, 2017

Hi,

Could you paste your analytics.php code? It will be helpfull for detect the problem.

Thanks :D

@garima-goyal
Copy link
Author

garima-goyal commented Nov 24, 2017

yes sure

I am using the example code you shared in the release.

getting error in the below statement

$stats = $stats[0]->id_data[0]->metrics;

Thanks in advance

@garima-goyal
Copy link
Author

Hi @hborras,

Can you also help me with this in Account.php class.

public function getTailoredAudiences($id = '', $params = [])
{
// TODO: Next Release
}

@hborras
Copy link
Owner

hborras commented Nov 24, 2017

Of course, let me check everything and I'll come back

@hborras
Copy link
Owner

hborras commented Nov 25, 2017

Hi @garima-goyal

I've updated the library with some changes.

1 - I've added more example, analytics.php was incomplete because I've mixed async and non-async request. Now there are two examples. One for async request and another one for non-async request.

2 - I've modified Account.php class in order to suppor getTailoredAudiences function.

Check new version of the lib.

Hope this will help you!

Thanks!

@hborras hborras closed this as completed Nov 25, 2017
@garima-goyal
Copy link
Author

Hi @hborras,

Thanks a lot for the help

I will try with this and will ask for the help if needed.:P

@garima-goyal
Copy link
Author

Hi @hborras,

Can you please tell me if there is any way to fetch the analytics of the tailerored audience (given audience id ) with the attached campaign (USING YOUR LIBRARY)..

Lets say I have a tailored audience named "test audience". I have shared this audience with n number of advertiser. Now I want to pull stats/anlytics of the campaigns which are using my audience (test audience) with the account id in the response.

I couldn't find any solution for the above problem in twitter ads api document.

Please help if possible.

Thanks in advance

@ghost ghost mentioned this issue Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants