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
Can I create a AdCreative duplicate? #120
Comments
tl;dr; the API do not have a clone functionality what's the end goal? creatives may be used for multiple ads. If you just need to replicate the same creatives under different AdSets for targeting reason, there is no need to duplicate the creative. |
@pruno |
Ok. Duplicate is a bad idea in any case. How to update AdCreative.url_tags? |
@Mirko09: the API allows it. $creative = new AdCreative(<AD_CREATIVE_ID>);
$creative->read([AdCreativeFields::URL_TAGS]);
if ($creative->{AdCreativeFields::URL_TAGS} === null) {
$creative->{AdCreativeFields::URL_TAGS} = 'key1=val1&key2=val2';
$creative->save();
} If you still encounter errors, can you please share the error? |
@pruno The only allowed update to an existing creative is to rename it. How can I update AdCreativeFields::URL_TAGS? It is impossible? Can you add this feature, please? |
@Mirko09, you'r right, unfortunately i think the only way is to download them, copy the data (augmenting with the url_tag), create new ones and re-map the adgroups |
Sorry, this thread closed, but I would like to ask still, how to make sure you don't loose social credibility like |
any update on this? What d3m3tr1s asked |
@ConcourseMedia yes we have figured out that call should be like
where $curCreative is an array of previously extracted creative with updated url_tag param |
@dmitrywicked should we need to create new Ad Creative? If so, what about the old one? |
@bilaliqbal-te Good question. @dmitrywicked From what I can tell using the Facebook GUI, facebook deletes the old one, and attaches the new adcreative to the ad. You can see this happen by editing an ad creative in the interface, then querying the ad id, via the API. you can see that only 1 ad creative is attached. And that one is the new one thats created from the edit. I would love to know what you do though. |
I have AdCreative.
How do I create a duplicate using the SDK? Read existing AdCreative and create new AdCreative using old params - not a good idea. Is there a better option?
The text was updated successfully, but these errors were encountered: