You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an AdAccount to create an object, such as a campaign, the returned object is an AdAccount where the fields are those of the created object.
eg:
const account = new AdAccount(ACCOUNT_ID);
account.createCampaign(
['id', 'name'],
{
'name': 'My Campaign',
'status': 'ACTIVE',
}
).then(campaign => {
// do something with the campaign
});
Here the variable campaign is an AdAccount with its name set as My Campaign and its id being the id of the campaign created.
The returned object should be of the type of the object created.
The text was updated successfully, but these errors were encountered:
thierryjacoel
changed the title
Creating objects return instance of AdAccount
Creating objects returns instance of AdAccount
Mar 22, 2018
When using an AdAccount to create an object, such as a campaign, the returned object is an AdAccount where the fields are those of the created object.
eg:
Here the variable
campaign
is anAdAccount
with its name set asMy Campaign
and itsid
being the id of the campaign created.The returned object should be of the type of the object created.
The text was updated successfully, but these errors were encountered: