I have fixed this problem by AdService, even though the UniversalAppAd 
doesn't in this list 
<https://developers.google.com/adwords/api/docs/guides/ad-features#ad_types_that_support_mutability>

I don't know why it works, but it works. (-:

Maybe it's about the priority of my Access Token, I have just changed it 
from test access priory to basic access priority.


follows the code, maybe help for others

@Test
public void testAdModify() throws RemoteException{
    Long adId = 1L; // your ad ID here


    AdServiceInterface adServiceInterface =
            adWordsServices.get(session, AdServiceInterface.class);

    UniversalAppAd  universalAppAd = new UniversalAppAd();
    universalAppAd.setId(adId);

    TextAsset titleAsset1 = new TextAsset();
    titleAsset1.setAssetText("new Title 1");
    TextAsset titleAsset2 = new TextAsset();
    titleAsset2.setAssetText("new Title 2");
    TextAsset descAsset = new TextAsset();
    descAsset.setAssetText("new Description");

    AssetLink titleLink1 = new AssetLink();
    titleLink1.setAsset(titleAsset1);
    AssetLink titleLink2 = new AssetLink();
    titleLink2.setAsset(titleAsset2);
    AssetLink descLink = new AssetLink();
    descLink.setAsset(descAsset);

    universalAppAd.setHeadlines(new AssetLink[]{titleLink1, titleLink2});
    universalAppAd.setDescriptions(new AssetLink[]{descLink});


    AdOperation adOperation = new AdOperation();
    adOperation.setOperand(universalAppAd);
    adOperation.setOperator(Operator.SET);

    adServiceInterface.mutate(new AdOperation[]{adOperation});
}




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eb9e2762-c1ab-4f40-9ef0-c59b1311106c%40googlegroups.com.

Reply via email to