where I approve ThirdPartyRedirectAd?

26 views
Skip to first unread message

angel...@societao.com

unread,
Oct 24, 2017, 2:15:30 AM10/24/17
to AdWords API Forum

I tried to create a ThirdPartyRedirectAd but sent me this error "AdError.CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS". where I approve this type of ads? my code:
ThirdPartyRedirectAd thirdPartyRedirectAd = new ThirdPartyRedirectAd(); thirdPartyRedirectAd.setName("Example third party ad #" + System.currentTimeMillis()); thirdPartyRedirectAd.setUrl("http://www.example.com"); thirdPartyRedirectAd.setDimensions(new Dimensions(1080, 566)); // This field normally contains the javascript ad tag. thirdPartyRedirectAd .setSnippet("<img src=\"https://goo.gl/IfVlpF\"/>"); thirdPartyRedirectAd.setImpressionBeaconUrl("http://www.examples.com/"); // Image & Flash format id. thirdPartyRedirectAd.setCertifiedVendorFormatId(119L); thirdPartyRedirectAd.setIsCookieTargeted(false); thirdPartyRedirectAd.setIsUserInterestTargeted(false); thirdPartyRedirectAd.setIsTagged(false); AdGroupAd adGroupAd = new AdGroupAd(); adGroupAd.setAdGroupId(adGroupId); adGroupAd.setAd(thirdPartyRedirectAd); AdManager showcaseAdManager = new AdManager(adWordsConfig); AdGroupAd result = showcaseAdManager.createAd(adGroupAd);

    public AdGroupAd createAd(AdGroupAd adGroupAd) throws Exception {
// Create operations.
AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation();
    adGroupAdOperation.setOperand(adGroupAd);
    adGroupAdOperation.setOperator(Operator.ADD);

    // Add ad groups.
    AdGroupAdOperation[] operations = new AdGroupAdOperation[] {adGroupAdOperation};
    AdGroupAdReturnValue result = adGroupAdService.mutate( operations );
    return result.getValue(0);
}

Peter Oliquino

unread,
Oct 24, 2017, 3:19:35 AM10/24/17
to AdWords API Forum
Hi Angel,

To better assist you, could you provide your clientCustomerId? You may reply to me using the Reply privately to author option.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages