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
no data returned when calling $adCreative->read() without specifying fields #49
Comments
This is expected behaviour. You should only request the fields from the API that you need as it decreases load and increases performance. You also cannot read all possible fields of an object. Some fields can only be used when writing. You can set the default fields to read on an object once which you may want to do if you always read the same fields. Sent from my iPhone
|
Ok, makes sense. Thanks for clarifying. |
hi cornernote, |
hey @bibibaonam, It's explained here: |
here is my quick guide:
|
Please don't share access tokens publicly. That's a quick way to get your account into a lot of trouble. |
To answer your question, prefix the account ID with act_ like in all the examples:
|
Thank you very much Paulbain. |
Hi @paulbain Do you know any solution for this issue? |
I try to read an AdCreative like this:
But it results in:
I then try using
$adCreative->getFields()
as an argument to$adCreative->read()
:Which throws an exception:
I then remove
image_file
from the list of fields:Which results again in no data:
I try making my own fields array, and then remove any that cause an exception, and end up with this list:
Now I get what is expected (i have replaced the actual data incase of any security issue sharing it):
My question is, is this the expected behaviour? Or should I be able to do
$adCreative->read()
without specifying a field list?The text was updated successfully, but these errors were encountered: